/* Light local interactions. No scripts, external assets or persistent layers.
   Pointer hover: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
   Reduced motion: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion */
#contenido {
  --fx-gold: #a88a4f;
  --fx-shadow: 0 5px 12px #28203e16;
  --fx-ease: 180ms cubic-bezier(.2,.65,.3,1);
}

/* Shared finish for native actions and links explicitly styled as buttons.
   Keep each component's colours, dimensions and selected/disabled states. */
body {
  --espejos-button-radius: 6px;
  --espejos-button-shadow: inset 0 0 0 1px #c2a36288, 0 3px 7px #28203e18, 0 0 10px #c2a36266;
  --espejos-button-ease: 180ms cubic-bezier(.2,.65,.3,1);
}
body :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]),
body #contenido :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]) {
  border-radius: var(--espejos-button-radius);
}
body :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]):focus-visible {
  outline: 3px solid #a88a4f;
  outline-offset: 4px;
  box-shadow: var(--espejos-button-shadow);
  filter: brightness(1.04);
}

/* Keyboard feedback also works without a mouse or animation. */
#contenido :is(a.button,a.btn,button,a.library-section-card,.cover-grid a,.text-link,.hero-link):focus-visible {
  outline: 3px solid var(--fx-gold);
  outline-offset: 4px;
}
#contenido :is(.article-card:has(a),.small-story:has(a),.library-feature:has(a),a.library-section-card,.entry-card:has(a)):focus-within {
  border-color: var(--fx-gold);
  box-shadow: var(--fx-shadow);
}

/* Keep the book effect here, including the existing catalogue hover. */
#contenido .saga-page .cover-grid a .cover-art>img {
  transition: none;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  #contenido :is(.article-card:has(a),.small-story:has(a),.library-feature:has(a),a.library-section-card,.entry-card:has(a)):hover {
    border-color: var(--fx-gold);
    box-shadow: var(--fx-shadow);
  }
  body :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]):hover,
  body #contenido :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]):hover {
    box-shadow: var(--espejos-button-shadow);
    filter: brightness(1.04);
  }
  #contenido .atlas-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
  }
  #contenido :is(.chronology-period,.expanded-note) > summary:hover {
    background-color: #d8bd7930;
  }

  @media (prefers-reduced-motion: no-preference) {
    #contenido :is(.article-card:has(a),.small-story:has(a),.library-feature:has(a),a.library-section-card,.entry-card:has(a)) {
      transition: transform var(--fx-ease);
    }
    #contenido :is(.article-card:has(a),.small-story:has(a),.library-feature:has(a),a.library-section-card,.entry-card:has(a)):hover {
      transform: translateY(-2px);
    }
    body :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]),
    body #contenido :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]) {
      transition: box-shadow var(--espejos-button-ease), filter var(--espejos-button-ease);
    }
    #contenido .saga-page .cover-grid a .cover-art>img {
      transition: transform var(--fx-ease);
    }
    #contenido .saga-page .cover-grid a:hover .cover-art>img {
      transform: translateY(-2px);
    }
  }
}

/* SVG map markers and zoom/fullscreen controls never move. */
@media (prefers-reduced-motion: reduce) {
  body :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]),
  body #contenido :is(button,a.button,a.btn,.world-navigation a,input[type="submit"],input[type="button"],input[type="reset"]),
  #contenido :is(.article-card,.small-story,.library-feature,.library-section-card,.entry-card,.button,.btn,button):not(.wheel-cinema *),
  #contenido .saga-page .cover-grid a .cover-art>img {
    transition: none;
  }
}

/* Proposal for the existing common interactions block in custom.css. */
.site{--es-link-lit:#1836a6;--es-link-glow:none;--es-link-focus:#101278}
.site :is(.utility,.site-footer,.panel-title,.content-titlebar,.article-header,.editorial-scene-heading,.section-presentation,.discover-mirror,.jordan-visual-heading,.hero-links,[data-link-surface="dark"]){--es-link-lit:#fff3c4;--es-link-glow:none;--es-link-focus:#efd494}
.site a[href]{text-decoration-thickness:1px;text-underline-offset:3px}
body .site a[href]:not(:where(.button,.btn,.ce-button,.google-access-button,.skip,.world-navigation a,[aria-current="page"],[aria-disabled="true"],.main-nav *,.atlas-page *)):not(:has(img,picture)):focus-visible,
body .site #contenido a[href]:not(:where(.button,.btn,.ce-button,.google-access-button,.skip,.world-navigation a,[aria-current="page"],[aria-disabled="true"],.atlas-page *)):not(:has(img,picture)):focus-visible{
 color:var(--es-link-lit);text-shadow:var(--es-link-glow);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;outline:3px solid var(--es-link-focus);outline-offset:4px
}
@media(hover:hover) and (pointer:fine){
 body .site a[href]:not(:where(.button,.btn,.ce-button,.google-access-button,.skip,.world-navigation a,[aria-current="page"],[aria-disabled="true"],.main-nav *,.atlas-page *)):not(:has(img,picture)):hover,
 body .site #contenido a[href]:not(:where(.button,.btn,.ce-button,.google-access-button,.skip,.world-navigation a,[aria-current="page"],[aria-disabled="true"],.atlas-page *)):not(:has(img,picture)):hover{
  color:var(--es-link-lit);text-shadow:var(--es-link-glow);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px
 }
}
@media(prefers-reduced-motion:no-preference){
 body .site a[href]:not(:where(.button,.btn,.ce-button,.google-access-button,.skip,.world-navigation a,[aria-current="page"],[aria-disabled="true"],.main-nav *,.atlas-page *)):not(:has(img,picture)){
  transition:color var(--espejos-button-ease),text-shadow var(--espejos-button-ease),text-decoration-color var(--espejos-button-ease)
 }
}
@media(prefers-reduced-motion:reduce){
 body .site a[href]:not(:where(.button,.btn,.ce-button,.google-access-button,.skip,.world-navigation a,[aria-current="page"],[aria-disabled="true"],.main-nav *,.atlas-page *)):not(:has(img,picture)){transition:none}
}

/* Local trial of approved logo A; its ornate lettering stays in the image. */
.site .masthead a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(max(197px, 19.8%) + 80px);
  background: linear-gradient(90deg, #080d1c 0%, #080d1c calc(100% - 70px), #080d1c00 100%);
  pointer-events: none;
}
.site .masthead img.masthead-logo {
  left: 5px;
  top: 6px;
  width: 19.8%;
  min-width: 197px;
  max-width: 380px;
  height: calc(100% - 12px);
  aspect-ratio: 800 / 424;
  object-fit: contain;
  object-position: left center;
  filter: none;
  z-index: 1;
  mask-image: linear-gradient(90deg, #000 98%, transparent 100%);
}

/* Reading typography uses installed fonts, independently of the wordmark. */
#contenido .content-box .article-body {
  max-width: none;
  margin-inline: 0;
  color: #30291f;
  font: 18px/1.8 Georgia, "Times New Roman", serif;
  overflow-wrap: break-word;
}
#contenido .content-box > .article-header h1 {
  max-width: 32ch;
  font: 700 clamp(28px, 2.5vw, 34px)/1.3 Georgia, "Times New Roman", serif;
  text-wrap: balance;
  overflow-wrap: break-word;
}
#contenido .content-box .article-body :is(h2,h3) {
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: break-word;
}
#contenido .jordan-page #biografia > p {
  max-width: none;
  font-size: 18px;
  line-height: 1.8;
}

/* Desktop reading pass: native section widths, stronger ink, quieter paper. */
@media (min-width: 1000px) {
  .site .content-sheet {
    background-image: linear-gradient(#fffaf066, #fffaf066), url('../assets/fondo_crema.jpg');
    color: #282319;
  }
  #contenido .content-box .article-body,
  #contenido .jordan-page #biografia > p,
  #contenido .jordan-page .article-intro p:not(.eyebrow) {
    font-size: 20px;
    line-height: 1.8;
    color: #282319;
    max-width: none;
  }
  #contenido .jordan-page .article-intro p:nth-child(2) {font-size:24px}
  #contenido .jordan-page :is(.hero-intro,.insert-heading>p:not(.eyebrow),.writing-place figcaption p,.last-books-heading>p:not(.eyebrow),.book-band p:not(.eyebrow)) {font-size:16px;line-height:1.75}
  #contenido .jordan-page :is(.hero-links a,.contents a,.contents-note,.sources>p,.footnote ol,.photo-credits p,.reader-photo figcaption p,.author-shelf figcaption,table) {font-size:14px;line-height:1.75}
  #contenido .jordan-page :is(.life-strip li>span,.reading-note,.reading-time,.reference-count,.chapter-number,.contents a>span,.edition-note,.pen-name-books figcaption small) {font-size:13px;line-height:1.65}
  #contenido .jordan-page :is(.contents-note,.sources>p,.footnote ol,.photo-credits p,.life-strip li>span,.reading-time,.reference-count,.chapter-number,.pen-name-books figcaption small) {color:#51402b}
  #contenido .jordan-page .portrait figcaption {font-size:12px;color:#e0d9c7}
  #contenido .jordan-page .life-dates span {font-size:11px;color:#d4cdbf}
  #contenido .jordan-page .last-books .edition-note {color:#d4c8ad}
  #contenido :is(.feature-body,.preview-body,.library-feature-body,.entry-card)>p:not(.eyebrow):not(.preview-meta),
  #contenido :is(.saga-page,.encyclopedia-page,.dictionary-page,.faq-page,.chronology-page,.atlas-page)>.section-intro {font-size:17px;line-height:1.75;color:#3e3222}
  #contenido :is(.encyclopedia-list,.dictionary-list,.faq-answer,.chronology-timeline) {font-size:18px;line-height:1.8;color:#282319}
  #contenido .saga-page :is(.section-intro,.edition-section>p:not(.eyebrow),.related-article p,.library-bridge p:last-child) {font-size:17px;line-height:1.75;color:#3e3222;max-width:none}
  #contenido .saga-page :is(.saga-back,.text-link,.primary-link,.secondary-link,.reference-links>a,.book-anchors,.saga-reading,.saga-reading select,.saga-reading button) {font-size:16px}
  #contenido .saga-page :is(.saga-reading p,.safe-label,.book-facts span,.edition-grid span,.edition-grid small,.archive-gate,.reference-links span) {font-size:14px;line-height:1.7;color:#45351f}
  #contenido .saga-page .eyebrow {font-size:12px;color:#51402b}
  #contenido .saga-page .edition-grid strong {font-size:23px;line-height:1.4}
  #contenido .saga-page .edition-grid>div {padding:23px;background:#fffaf0aa}
  #contenido .saga-page .book-facts strong {font-size:23px}
  #contenido .saga-page .book-heading {
    grid-template-columns:190px minmax(0,1fr);gap:32px;align-items:center;
    padding:28px;background:linear-gradient(115deg,#151c35,#2b334b);
    border:1px solid #b19a65;color:#f4e8c6;
  }
  #contenido .saga-page .book-heading>figure {grid-column:1;grid-row:1}
  #contenido .saga-page .book-heading>div {grid-column:2;grid-row:1}
  #contenido .saga-page .book-heading h1 {color:#fff0c8;margin:10px 0 14px}
  #contenido .saga-page .book-heading .eyebrow {color:#dac58f}
  #contenido .saga-page .book-heading .author {font-size:24px;color:#e6d9ba}
  #contenido .saga-page .book-heading p:not(.eyebrow):not(.author) {font-size:18px;line-height:1.75;color:#e2ddcf;max-width:none}
  #contenido .saga-page .book-heading figure img {max-height:280px}
  #contenido .saga-page .book-heading figcaption {font-size:13px;color:#ddd4bd}
  #contenido .saga-page .book-heading :is(.safe-label,.book-anchors a) {color:#f2e6bd;border-color:#bca66d}
  #contenido #book-view .reference-links {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #contenido #book-view .reference-links>a {padding:18px;border:1px solid #bda77a;background:#fff9eeb3;min-height:64px}
  #contenido #book-view .reference-links>a:last-child:nth-child(odd) {grid-column:1/-1}
  .site .right-sidebar .panel-body {font-size:14px;line-height:1.7;color:#3e3222}
  #contenido :is(.historical-note,.library-credit,.faq-meta,.faq-filters>p,.encyclopedia-meta,.encyclopedia-note,.encyclopedia-filters>p,.dictionary-meta,.dictionary-note,.dictionary-filters>p,.chronology-meta,.chronology-note,.chronology-filters>p,.chronology-archive>p,.chronology-count) {font-size:14px;line-height:1.75;color:#51402b}
  #contenido :is(.encyclopedia-filters,.dictionary-filters,.faq-filters,.chronology-filters,.atlas-page .filters) :is(label,select,input,button),
  #contenido :is(.faq-actions,.encyclopedia-actions,.dictionary-actions) a {font-size:16px}
  #contenido .chronology-page .chronology-timeline>li>p:not([class]),
  #contenido .chronology-page .expanded-note {font-size:18px;line-height:1.8;color:#282319}
  #contenido .chronology-page :is(.chronology-when,.chronology-reference,.expanded-note>summary,.chronology-bibliography p,.chronology-bibliography ul,.chronology-bibliography summary) {font-size:14px;line-height:1.8;color:#51402b}
  #contenido .chronology-page .era-overview p:not(.eyebrow),
  #contenido .chronology-page .time-hero p:not(.eyebrow) {font-size:17px;line-height:1.75}
  #contenido .atlas-page :is(.card-copy>p:not(.eyebrow),.place-history p) {font-size:18px;line-height:1.75;color:#302b20}
  #contenido .atlas-page :is(.filters>p,.filter-status,.place-index a,.source-call,.source-list li,.atlas-nav a) {font-size:14px;line-height:1.7}
  #contenido .saga-page :is(.featured-book p:not(.eyebrow),.prequel-card p:not(.eyebrow)) {font-size:17px;line-height:1.75;color:#3e3222}
  #contenido .saga-page :is(.collection-note,.cover-credit,.cover-caption,.chapter) {font-size:14px;line-height:1.7;color:#51402b}
  #contenido :is(.library-section-card>span:nth-child(2),.library-reference>p:not(.eyebrow),.library-doorways p,.nick-return-card>p,.reunion-body p) {font-size:17px;line-height:1.75;color:#3e3222}
  #contenido :is(.library-front-actions,.library-reference-links span,.library-feature-body .preview-meta,.library-section-count,.preview-body .preview-meta,.content-strip,.library-reading-footer) {font-size:14px;line-height:1.7}
  #contenido :is(.library-feature-body .text-link,.library-sections,.home-library-links nav a) {font-size:15px}
}

/* Dark introductions need their own palette at every viewport size. */
#contenido .wheel-cinema>div:first-child>p:not(.eyebrow) {color:#e0ded7;font-size:17px;line-height:1.8}
#contenido .wheel-cinema>div:first-child>.eyebrow {color:#d7bd86}
#contenido .saga-page .hero-copy>p:not(.eyebrow) {color:#e7e2d5;font-size:17px;line-height:1.8}
#contenido .saga-page .hero-copy>.eyebrow {color:#dac58f}

/* Shared desktop readability; the page retains the full available width. */
@media(min-width:1101px) {
  .site .sidebar .side-menu a {font-size:13px;line-height:1.5;padding-block:5px}
  .site .sidebar .panel-title {padding:8px;font-size:13px;color:#f5dfa7}
  .site .sidebar .panel-body {padding:14px;line-height:1.7}
  .site .sidebar .mini-cover a {font-size:13px;line-height:1.5}
}
#contenido .saga-afterword {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:32px}
#contenido .saga-afterword .library-bridge {display:grid;grid-template-columns:130px minmax(0,1fr);gap:24px;align-items:center;padding:26px;margin:0;border:1px solid #b7a072;border-radius:var(--espejos-panel-radius,8px);background:#fff8e9b3}
#contenido .saga-afterword .jordan-bridge {background:linear-gradient(115deg,#182039,#303b51);color:#f5e9ca}
#contenido .saga-afterword .jordan-bridge>img {display:block;width:130px;height:150px;object-fit:cover;object-position:center 30%;border:3px solid #d2bf8d}
#contenido .saga-afterword .library-bridge>img.saga-library-art {display:block;width:130px;height:auto}
#contenido .saga-afterword .library-bridge :is(h2,p,a) {margin:0}
#contenido .saga-afterword .library-bridge h2 {font:400 28px/1.2 Georgia,serif;margin:8px 0 12px}
#contenido .saga-afterword .library-bridge p:not(.eyebrow) {font-size:17px;line-height:1.7;color:#3e3222}
#contenido .saga-afterword .jordan-bridge :is(h2,p:not(.eyebrow),a) {color:#f5e9ca}
#contenido .saga-afterword .jordan-bridge .eyebrow {color:#d7bd86}
#contenido .saga-afterword .library-bridge a {display:inline-block;font-size:16px;font-weight:bold;margin-top:16px;text-underline-offset:4px}
#contenido .saga-page .prequel-card {display:grid;grid-template-columns:58px minmax(0,1fr) max-content;gap:20px;align-items:center}
#contenido .saga-page .prequel-card>a {margin:0;font-size:15px;white-space:normal}
#contenido .saga-page .prequel-card .eyebrow {font-size:11px;line-height:1.6}
#contenido .saga-page .prequel-card>div {min-width:0}
@media(max-width:760px) {
  #contenido .saga-page .prequel-card {grid-template-columns:58px minmax(0,1fr);gap:12px 16px}
  #contenido .saga-page .prequel-card>img {grid-row:1/span 2}
  #contenido .saga-page .prequel-card>a {grid-column:2}
  #contenido .saga-page .prequel-card p {font-size:15px;line-height:1.7}
}
@media(max-width:1000px) {
  #contenido .saga-afterword {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px) {
  #contenido .saga-afterword .library-bridge {grid-template-columns:85px minmax(0,1fr);gap:16px;padding:18px}
  #contenido .saga-afterword .jordan-bridge>img {width:85px;height:105px}
  #contenido .saga-afterword .library-bridge>img.saga-library-art {width:85px}
  #contenido .saga-afterword .library-bridge h2 {font-size:24px}
  #contenido .saga-afterword .library-bridge p:not(.eyebrow) {font-size:15px}
}
#contenido .content-titlebar {padding:12px 16px;color:#f5dfa7}
#contenido .content-titlebar :is(h2,h3,a) {color:inherit}
#contenido .content-titlebar>a {font-size:12px}
#contenido .archive-catalog {background:#fff9ecb8}
#contenido .archive-catalog h1 {font-size:clamp(30px,3vw,42px);margin-block:12px 18px}
#contenido .archive-catalog .section-intro {font-size:17px;line-height:1.7;color:#3e3222}
#contenido .catalog-search {background:#eee2c8b3;padding:18px 20px}
#contenido .catalog-alphabet {gap:6px}
#contenido .catalog-count {font-size:14px;color:#51402b}
#contenido .catalog-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:12px;columns:auto}
#contenido .catalog-list>li {
  display:flex;flex-direction:column;justify-content:space-between;gap:12px;
  min-width:0;padding:20px;border:1px solid #c1ac80;border-radius:var(--espejos-panel-radius,8px);
  background:#fffaf0a6;box-shadow:0 2px 5px #31271908;
}
#contenido .catalog-list>li[hidden] {display:none}
#contenido .catalog-list a {font:400 21px/1.4 Georgia,serif;text-decoration:none;color:#161855;overflow-wrap:anywhere}
#contenido .catalog-list a:focus-visible {outline:3px solid #9d7833;outline-offset:4px}
#contenido .catalog-list small {font-size:13px;line-height:1.6;color:#51402b;margin:0}
#contenido :is(.catalog-heading,.library-front-heading) {display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:center;padding:26px;margin:0 0 24px;border:1px solid #b7a072;border-radius:var(--espejos-panel-radius,8px);background:var(--es-heading-background);color:#f5e9ca;overflow:hidden}
#contenido :is(.catalog-heading,.library-front-heading) :is(.eyebrow,.section-intro,p) {color:var(--es-heading-ink)}
#contenido :is(.catalog-heading,.library-front-heading) h1 {color:var(--es-heading-title)}
#contenido :is(.catalog-heading,.library-front-heading) .eyebrow {color:#d7bd86}
#contenido .catalog-heading .section-intro {margin-bottom:0}
#contenido .catalog-heading-art {display:flex;align-items:center;justify-content:center;gap:0;min-height:175px;isolation:isolate}
#contenido .catalog-heading-art img {width:96px;height:145px;object-fit:contain;filter:drop-shadow(0 8px 7px #0007);transform:rotate(-12deg) translateX(12px)}
#contenido .catalog-heading-art img:nth-child(2) {width:110px;height:165px;transform:none;z-index:1}
#contenido .catalog-heading-art img:nth-child(3) {transform:rotate(12deg) translateX(-12px)}
#contenido .catalog-heading-art img.catalog-author {width:145px;height:185px;object-fit:cover;transform:none;border:4px solid #d2bf8d;box-shadow:0 0 0 1px #6a7892}
#contenido .catalog-heading-art img.catalog-story-art {width:280px;height:196px;transform:none;filter:none}
#contenido .library-front-heading {margin:-26px -26px 28px;border-radius:var(--espejos-panel-radius,8px) var(--espejos-panel-radius,8px) 0 0}
#contenido .library-front-heading .library-front-actions>a:not(.button) {color:#f4dfaa}
#contenido .catalog-list>li {position:relative;flex-direction:row;align-items:center;justify-content:flex-start;min-height:130px;padding-right:35px}
#contenido .catalog-card-art {width:96px;flex:0 0 96px;align-self:stretch;display:flex;align-items:center;justify-content:center}
#contenido .catalog-card-art img {max-width:96px;max-height:140px;width:auto;height:auto;object-fit:contain;box-shadow:0 4px 9px #32210e28}
#contenido .catalog-card-copy {display:flex;flex-direction:column;gap:12px;min-width:0}
#contenido .catalog-card-arrow {position:absolute;right:14px;bottom:14px;color:#866524;font-size:20px}
#contenido .catalog-list>li:not(:has(.catalog-card-art)) {border-left:3px solid #a68c57;background:linear-gradient(120deg,#e6d3a944,#fffaf0b3)}
#contenido .catalog-pager {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0;font-size:14px}
#contenido .catalog-pager[hidden] {display:none}
#contenido .catalog-pager button {border:1px solid #9e8758;border-radius:var(--espejos-button-radius,6px);padding:10px 14px;background:#fff9e9;color:#171852;font:inherit;cursor:pointer}
#contenido .catalog-pager button:disabled {opacity:.45;cursor:default}
#contenido .catalog-pager button:focus-visible {outline:3px solid #9d7833;outline-offset:3px}
#contenido .search-heading {display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px;align-items:center;margin-bottom:28px}
#contenido .search-heading>img {width:100%;height:auto;background:#202d44;border-radius:7px;padding:12px}
#contenido .search-doorways {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:32px}
#contenido .search-doorways>a {display:flex;flex-direction:column;gap:12px;position:relative;padding:18px;border:1px solid #bca77a;border-radius:var(--espejos-panel-radius,8px);color:#252a49;background:#fffaf0;text-decoration:none;min-width:0}
#contenido .search-doorway-art {display:flex;align-items:center;justify-content:center;background:#eee3cc;overflow:hidden;min-height:140px}
#contenido .search-doorway-art img {object-fit:contain;width:auto;max-width:100%;height:120px;box-shadow:0 3px 7px #24243922}
#contenido .search-doorways strong {font:400 23px/1.3 Georgia,serif;color:#171852}
#contenido .search-doorways>a>span:not(.search-doorway-art) {font-size:14px;line-height:1.6}
#contenido .search-doorways>a:focus-visible {outline:3px solid #9d7833;outline-offset:4px}
#contenido .search-doorways>a:hover {border-color:#927034;box-shadow:0 4px 10px #31271916}
#contenido #kunena .kfrontend .table h3 {font-size:19px;line-height:1.4}
#contenido #kunena .kfrontend .table td {padding-block:16px}
#contenido #kunena .kfrontend .table tbody tr:hover {background:#fff8e9}
#contenido #espejos-archive .archive-nav a {color:#f5dfa7;font-size:14px}
@media(hover:hover) and (pointer:fine) {
  #contenido .catalog-list>li:hover {border-color:#927034;background:#fffaf0;box-shadow:0 4px 10px #31271912}
  #contenido .catalog-list a:hover {text-decoration:underline;text-underline-offset:4px}
  #contenido .catalog-pager button:not(:disabled):hover {background:#ede0bd}
  @media(prefers-reduced-motion:no-preference) {
    #contenido .catalog-list>li {transition:transform 180ms ease}
    #contenido .catalog-list>li:hover {transform:translateY(-2px)}
  }
}
@media(max-width:760px) {
  #contenido .search-heading {grid-template-columns:minmax(0,1fr)}
  #contenido .search-heading>img {max-width:230px;justify-self:center}
  #contenido .search-doorways {grid-template-columns:minmax(0,1fr)}
  #contenido :is(.catalog-heading,.library-front-heading) {grid-template-columns:minmax(0,1fr);gap:12px;padding:22px}
  #contenido .library-front-heading {margin:-22px -22px 24px}
  #contenido .catalog-heading-art {min-height:130px}
  #contenido .catalog-heading-art img {height:115px;width:75px}
  #contenido .catalog-heading-art img:nth-child(2) {height:135px;width:88px}
  #contenido .catalog-heading-art img.catalog-author {height:145px;width:112px}
  #contenido .catalog-heading-art img.catalog-story-art {height:140px;width:200px}
  #contenido .catalog-alphabet {flex-wrap:nowrap;overflow-x:auto;padding:3px 3px 10px}
  #contenido .catalog-alphabet button {flex-shrink:0}
  #contenido .catalog-list a {font-size:19px}
  #contenido .catalog-list {grid-template-columns:minmax(0,1fr)}
  #contenido .catalog-list>li {padding:17px 32px 17px 17px}
  #contenido .catalog-card-art {width:75px;flex-basis:75px}
  #contenido .catalog-card-art img {max-width:75px;max-height:112px}
  #contenido .catalog-pager {gap:8px;font-size:13px}
  #contenido .catalog-pager button {padding:10px}
}
@media(min-width:761px) and (max-width:1100px) {
  #contenido :is(.catalog-heading,.library-front-heading,.search-heading) {grid-template-columns:minmax(0,1fr)}
  #contenido .search-heading>img {max-width:230px;justify-self:center}
  #contenido .search-doorways {grid-template-columns:minmax(0,1fr)}
}

/* World links behave as cards; all links and reading parameters stay native. */
#contenido .reference-links>a:focus-visible {outline:3px solid #8b681e;outline-offset:3px}
@media (hover:hover) and (pointer:fine) {
  #contenido .reference-links>a:hover {background-color:#fff8e5;border-color:#987530;box-shadow:0 3px 9px #28203e18;text-decoration:none}
  @media (prefers-reduced-motion:no-preference) {
    #contenido .reference-links>a {transition:transform 180ms ease}
    #contenido .reference-links>a:hover {transform:translateY(-2px)}
  }
}

/* Fullscreen contains both the map and its live, spoiler-filtered notebook. */
#randland .atlas:is(:fullscreen,.is-fullscreen) {
  display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,28vw,440px);
  width:100vw;height:100dvh;max-width:none;align-items:stretch;
  margin:0;border:0;background:#182b3b;overflow:hidden;
}
#randland .atlas.is-fullscreen {position:fixed;inset:0;z-index:10000}
#randland .atlas:is(:fullscreen,.is-fullscreen) .map-column {display:flex;flex-direction:column;min-height:0;min-width:0}
#randland .atlas:is(:fullscreen,.is-fullscreen) .map-viewport {flex:1;min-height:0;max-height:none;height:auto;aspect-ratio:auto}
#randland .atlas:is(:fullscreen,.is-fullscreen) :is(.map-top,.map-bottom) {flex:none}
#randland .atlas:is(:fullscreen,.is-fullscreen) .field-notebook {display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:#f6edd8}
#randland .atlas:is(:fullscreen,.is-fullscreen) .place-index {max-height:28dvh;overflow:auto;flex:none}
#randland .atlas:is(:fullscreen,.is-fullscreen) #dossier {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#randland .atlas:is(:fullscreen,.is-fullscreen) .card-copy>p:not(.eyebrow) {font-size:18px;line-height:1.75;color:#302b20}
#randland .atlas:is(:fullscreen,.is-fullscreen) .place-index nav a {font-size:14px}
@media(max-width:760px) {
  #randland .atlas:is(:fullscreen,.is-fullscreen) {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,56dvh) minmax(0,1fr)}
  #randland .atlas:is(:fullscreen,.is-fullscreen) .field-notebook {border-top:2px solid #b49a65}
  #randland .atlas:is(:fullscreen,.is-fullscreen) .notebook-title {padding:8px 14px}
  #randland .atlas:is(:fullscreen,.is-fullscreen) .place-index {max-height:13dvh}
  #randland .atlas:is(:fullscreen,.is-fullscreen) .card-illustration:not(.card-illustration--scene) {display:none}
}

/* A photographic library fills its own card without separating the copy. */
#contenido .saga-afterword .library-scene-bridge {grid-template-columns:minmax(150px,.9fr) minmax(0,1.1fr);gap:0;padding:0;overflow:hidden}
#contenido .saga-afterword .library-scene-bridge>img.saga-library-art {width:100%;height:100%;min-height:230px;object-fit:cover;object-position:55% center}
#contenido .saga-afterword .library-scene-bridge>div {min-width:0;padding:24px}
@media(max-width:560px) {
  #contenido .saga-afterword .library-scene-bridge {grid-template-columns:minmax(0,1fr);padding:0;gap:0}
  #contenido .saga-afterword .library-scene-bridge>img.saga-library-art {width:100%;height:auto;min-height:0;aspect-ratio:16/9;object-position:center 45%}
  #contenido .saga-afterword .library-scene-bridge>div {padding:22px}
}

/* A single small masked SVG layer; the terrain and map labels stay still. */
#randland .water-ripples {animation:atlas-water-drift 14s linear infinite;animation-play-state:paused}
#randland .water-moving .water-ripples {animation-play-state:running}
@keyframes atlas-water-drift {to{transform:translate(96px,56px)}}
#randland #toggle-water {display:inline-flex;font:12px/1.5 Verdana,sans-serif;padding:5px 8px;color:#f0e5c9;white-space:nowrap}
#randland #toggle-water[hidden] {display:none}
#randland .map-bottom {flex-wrap:wrap;gap:8px}
@media(prefers-reduced-motion:reduce) {#randland .water-ripples {animation:none}}

/* Keep supporting explanations readable as well as the main article prose. */
@media(min-width:1000px) {
  #contenido :is(.archive-feature .feature-body>div>p,.jordan-selection>p,.jordan-selection-grid article>p) {font-size:17px;line-height:1.75}
  #contenido :is(.encyclopedia-note,.dictionary-note,.chronology-note,.chronology-filters,.chronology-archive,.historical-note)>p,
  #contenido :is(.encyclopedia-filters,.dictionary-filters)>p {font-size:16px;line-height:1.75;color:#453b2d}
  #contenido .jordan-page :is(.sources>p,.footnote ol,.photo-credits p) {font-size:16px;line-height:1.75;color:#453b2d}
  #contenido .history-source {font-size:15px;line-height:1.75;color:#453b2d}
}

/* Atlas reading hierarchy: main description, context, controls and references. */
#randland .card-copy .eyebrow {font-size:12px;line-height:1.6;color:#6a5028}
#randland .card-copy .place-region {font:14px/1.6 Verdana,sans-serif!important;color:#51402b!important}
#randland .card-copy>p:not(.eyebrow):not(.place-region):not(.outside-map),
#randland .reading-context p {font-size:18px;line-height:1.75;color:#302b20}
#randland .reading-context>span {font-size:12px;line-height:1.6;color:#51402b}
#randland .card-copy .outside-map {font-size:14px!important;line-height:1.7!important;color:#51402b!important}
#randland .source-call {font-size:14px;line-height:1.65;color:#51402b;min-height:32px}
#randland .place-index nav a {font-size:14px;line-height:1.5;min-height:38px;align-items:center}
#randland .place-index summary {font-size:18px;line-height:1.5}
#randland .place-index summary small {font-size:12px;color:#51402b}
#randland :is(.notebook-title,.map-top,.map-bottom,.reading-status,.label-status) {font-size:12px;line-height:1.6}
#randland .notebook-title {color:#51402b}
#randland .reading-status,#randland .label-status {color:#51402b}
#randland :is(.map-top,.notebook-title) {height:auto;min-height:40px;padding-block:8px}
#randland .map-bottom {flex-wrap:wrap;gap:8px 14px}
#randland .map-hint {font-size:11px;color:#344337;max-width:calc(100% - 110px);white-space:normal;text-align:center}
#randland :is(.map-caption,.atlas-notes>p,.sources p,.sources li,.sources summary) {font-size:15px;line-height:1.75;color:#51402b}
#randland .sources .eyebrow {font-size:12px}
#randland .filters label small {font-size:12px;line-height:1.6;color:#51402b}
#randland .base-choice {font:14px/1.5 Verdana,sans-serif;flex-wrap:wrap;gap:8px;color:#51402b}
#randland .base-choice a {display:inline-flex;align-items:center;min-height:42px;padding:8px 16px;background:#fff8e8;color:#24334a;border-color:#a38b58}
#randland .base-choice a[aria-current] {background:#24334a;color:#fff0cb;border-color:#24334a}
#randland .atlas-signatures {fill:#dce3d6;opacity:.28;font:italic 15px Georgia,serif;pointer-events:none}
#randland .atlas-signatures .signature-domain {font:9px Verdana,sans-serif;letter-spacing:.08em}
@media(max-width:760px) {
  #randland .map-tools button {width:44px;height:44px}
  #randland .map-bottom button {min-height:40px;font-size:12px}
  #randland .base-choice {justify-content:flex-start}
}
@media(max-width:520px) {
  #randland.base-painted .map-viewport {aspect-ratio:3/2}
  #randland .map-hint {display:none}
  #randland .card-copy {padding:20px}
}

/* Original ambient scenes: opaque reading panel, responsive still image, no JS. */
#contenido .editorial-scene-heading {
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:0;align-items:stretch;padding:0;margin:0 0 26px;overflow:hidden;
  border:1px solid #aa915f;border-radius:var(--espejos-panel-radius,8px);background:var(--es-heading-background);color:var(--es-heading-ink);
}
#contenido .editorial-scene-heading .editorial-scene-copy {min-width:0;padding:28px 30px;align-self:center}
#contenido .editorial-scene-heading :is(p,.section-intro) {color:var(--es-heading-ink)}
#contenido .editorial-scene-heading :is(h1,h2) {color:var(--es-heading-title)}
#contenido .editorial-scene-heading h1 {margin:8px 0 16px;line-height:1.15;font-size:clamp(28px,2.3vw,42px)}
#contenido .editorial-scene-heading .eyebrow {color:#dfc28b;line-height:1.7}
#contenido .editorial-scene-heading .section-intro {font-size:18px;line-height:1.75;margin:0 0 16px}
#contenido .editorial-scene-heading :is(.encyclopedia-meta,.dictionary-meta) {color:#dfcdb0;font-size:15px;line-height:1.7;margin:0}
#contenido .editorial-scene-heading a {color:#f3d68f;text-underline-offset:3px}
#contenido .editorial-scene-heading a:focus-visible {outline:3px solid #f3d68f;outline-offset:4px}
#contenido .community-scene h2 {color:#f5e9ca;font:400 clamp(28px,2.3vw,42px)/1.15 Georgia,serif;margin:8px 0 16px}
#contenido .editorial-scene-heading .editorial-scene-art {position:relative;min-width:0;min-height:280px;isolation:auto}
#contenido .editorial-scene-heading .editorial-scene-art img.editorial-scene-image {
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;
  object-fit:cover;object-position:center 58%;padding:0;border-radius:0;transform:none;filter:none;
}
#contenido .search-heading.editorial-scene-heading .search-scope {margin-bottom:0}
@media(min-width:761px) and (max-width:1100px) {
  #contenido .editorial-scene-heading {grid-template-columns:minmax(0,1fr)}
  #contenido .editorial-scene-heading .editorial-scene-art {min-height:190px}
}
@media(max-width:760px) {
  #contenido .editorial-scene-heading {grid-template-columns:minmax(0,1fr)}
  #contenido .editorial-scene-heading .editorial-scene-copy {padding:22px}
  #contenido .editorial-scene-heading .editorial-scene-art {min-height:180px}
  #contenido .editorial-scene-heading h1 {font-size:28px}
  #contenido .editorial-scene-heading .section-intro {font-size:17px}
}

/* Approved illustrations: responsive stills, no new animation or scripts. */
#contenido .editorial-library .section-scene {display:block;margin:-19px -23px 10px -19px;height:140px;overflow:hidden;border-bottom:1px solid #b8a274}
#contenido .editorial-library .section-scene img {display:block;width:100%;height:100%;object-fit:cover}
#contenido .editorial-library :is(.section-scene--reviews,.section-scene--interviews) {background:radial-gradient(ellipse at 50% 30%,#3e4962,#151e31)}
#contenido .editorial-library .section-scene--news img {object-position:top}
#contenido .editorial-library .section-scene--jordan {background:#182236}
#contenido .editorial-library .section-scene--jordan img {width:100%;max-width:none;margin:0;object-fit:cover;object-position:center 60%;border:0}
#contenido .editorial-library .library-section-description {font-size:15px;line-height:1.65}
#contenido .chronology-page .era-overview article {overflow:hidden}
#contenido .chronology-page .era-scene {margin:-20px -15px 20px;aspect-ratio:16/9;border-bottom:1px solid #bca676;background:#172236}
#contenido .chronology-page .era-scene img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
#contenido .chronology-page .era-scene-reserved {display:grid;place-items:center;margin:-20px -15px 20px;aspect-ratio:16/9;padding:20px;text-align:center;background:linear-gradient(135deg,#26344c,#121c2f);border-bottom:1px solid #bca676;color:#e3c991;font:15px/1.5 Georgia,serif}
#contenido .chronology-page .era-overview .era-number {font-size:32px;margin-bottom:12px}
#contenido .scene-credit {font-size:14px;line-height:1.7;color:#51402b;margin-top:22px}
#randland .card-illustration.card-illustration--scene {height:auto;aspect-ratio:3/2;overflow:hidden;background:#172236}
#randland .card-illustration--scene img {display:block;width:100%;height:100%;object-fit:cover}
#contenido .story-scene {margin:0 0 28px;border-bottom:1px solid #b8a274}
#contenido .story-scene img {display:block;width:100%;height:auto;max-height:460px;object-fit:cover;object-position:center 45%}
#contenido .story-scene figcaption {font:14px/1.65 Verdana,sans-serif;padding:10px 20px;color:#51402b;background:#f9efd6a6}
#contenido .story-scene-gate {padding:16px 22px;border-bottom:1px solid #b8a274;background:#fff6df88;font-size:15px}
@media(max-width:760px) {
  #contenido .chronology-page .era-overview article {padding:16px 15px}
  #contenido .chronology-page .era-overview .era-number {position:static}
  #contenido .chronology-page .era-scene,#contenido .chronology-page .era-scene-reserved {margin:-16px -15px 18px}
  #contenido .story-scene img {max-height:none}
}

/* History, reference entry and literary collections share the full page width. */
#contenido .history-intro.history-intro--visual {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);padding:0;overflow:hidden;gap:0}
#contenido .history-intro-copy {padding:28px 30px;min-width:0}
#contenido .history-intro-art {position:relative;min-width:0;min-height:340px;margin:0;background:#142136}
#contenido .history-intro-art img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:65% center}
#contenido .history-intro-art figcaption {position:absolute;left:0;right:0;bottom:0;padding:10px 15px;background:#101a2cde;color:#f2e3c4;font:12px/1.6 Verdana,sans-serif}
.site #contenido .editorial-library .library-directory-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
#contenido .editorial-library .library-world-heading {margin:0 0 22px}
#contenido .editorial-library .library-world-heading h2 {color:#f5e9ca;font:400 clamp(27px,2.3vw,40px)/1.2 Georgia,serif;margin:10px 0 16px}
#contenido .editorial-library .library-world-heading p:not(.eyebrow) {font-size:18px;line-height:1.75;margin:0}
.saga-page .entry-world>img {object-position:center 10%}
#contenido .library-world-heading .editorial-scene-art img.editorial-scene-image {object-position:center 10%}
.saga-page .entry-world figcaption {padding:2px 5px;background:#f6efdfeb;color:#262743}
.site #contenido>.lrcomments[data-preset=editorial] {width:100%;max-width:none;clear:both;margin:24px 0 8px;min-width:0;font-size:18px;--lrc-bg:var(--es-paper-reading);--lrc-surface:var(--es-paper-group);--lrc-border:var(--es-paper-border);--lrc-radius:var(--espejos-panel-radius);background:var(--es-paper-reading);border-radius:var(--espejos-panel-radius)}
.site #contenido>.lrcomments .lrc-header h2 {font-size:30px}
.site #contenido>.lrcomments :is(.lrc-session,.lrc-form,.lrc-comment) {min-width:0}
.site #contenido>.lrcomments :is(.lrc-content,.lrc-body) {overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1200px) {
  .site #contenido .editorial-library .library-directory-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px) {
  #contenido .history-intro.history-intro--visual {grid-template-columns:minmax(0,1fr)}
  #contenido .history-intro-copy {padding:22px}
  #contenido .history-intro-art {min-height:240px}
  .site #contenido .editorial-library .library-directory-grid {grid-template-columns:minmax(0,1fr)}
  .site #contenido>.lrcomments[data-preset=editorial] {font-size:17px}
}

/* Jordan archive: related writings retain their original locations. */
#contenido .jordan-archive-section {margin-top:30px;padding-top:26px;border-top:1px solid #b6a17a}
#contenido .jordan-archive-section>p {font-size:17px;line-height:1.75;margin-bottom:22px}
#contenido .jordan-archive-section .jordan-selection-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
#contenido .jordan-archive-section .jordan-selection-grid h3 {font-size:23px}
#contenido .jordan-archive-section .jordan-selection-grid p {font-size:16px;line-height:1.7}
#contenido .jordan-archive-section .jordan-selection-grid .preview-meta {font:12px/1.7 Verdana,sans-serif}
@media(max-width:760px) {#contenido .jordan-archive-section .jordan-selection-grid {grid-template-columns:minmax(0,1fr)}}
/* Preserve the White Tower, Dragonmount summit and Third Age skyline. */
#randland .card-illustration--scene img:is([data-editorial-scene="tar-valon"],[data-editorial-scene="monte-dragon"]),
#contenido .chronology-page .era-scene img:is([data-editorial-scene="tercera-era"],[data-editorial-scene="segunda-era"]) {object-position:center top}

#contenido .jordan-archive-section>h2,#contenido [data-jordan-library]>h2 {font:400 28px/1.3 Georgia,serif;color:#000070}
#contenido .jordan-blog-actions {display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin:18px 0 24px;font-size:14px}

#contenido .library-section-breakdown {font:12px/1.7 Verdana,sans-serif;color:#655132;overflow-wrap:anywhere}
#contenido .jordan-blog-index {margin:18px 0;border:1px solid #b6a17a;border-radius:var(--espejos-panel-radius,8px);background:#fff8e653}
#contenido .jordan-blog-index>summary {padding:16px 20px;cursor:pointer;font:700 20px/1.5 Georgia,serif;color:#000070}
#contenido .jordan-blog-index>summary:focus-visible {outline:3px solid #785416;outline-offset:3px}
#contenido .jordan-blog-index>p {padding:0 20px;font-size:15px;line-height:1.7}
#contenido .jordan-blog-list {list-style:none;margin:0;padding:0 20px 12px}
#contenido .jordan-blog-list>li {display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;padding:16px 0;border-top:1px solid #c7b58d}
#contenido .jordan-blog-list time {font:14px/1.7 Verdana,sans-serif;color:#655132}
#contenido .jordan-blog-list a {font:700 21px/1.45 Georgia,serif;overflow-wrap:anywhere}
#contenido .jordan-blog-list small {display:block;margin-top:6px;font:12px/1.7 Verdana,sans-serif;color:#655132}
#contenido .jordan-blog-list .blog-byline {display:block;margin-bottom:5px;font:700 13px/1.5 Verdana,sans-serif;color:#655132}
@media(max-width:760px) {#contenido .jordan-blog-list>li {grid-template-columns:minmax(0,1fr);gap:5px}#contenido .jordan-blog-index>summary {padding:14px 16px;font-size:19px}#contenido .jordan-blog-list {padding:0 16px 10px}}

/* Shared corners for navigation and filters that are links rather than buttons. */
.site #contenido :is(
  .world-navigation a,
  .encyclopedia-alphabet a,
  .dictionary-alphabet a,
  .editorial-library .library-section-card,
  .atlas-page .base-choice a,
  .atlas-page .related-content a
) {
  border-radius: var(--espejos-button-radius, 6px);
}


/* Rounded frames around control groups; preserve the compact reading bar. */
.site #contenido :is(
  .world-reading:not(.usability-reading-compact),
  .encyclopedia-filters,
  .dictionary-filters,
  .chronology-filters,
  .atlas-page .filters
) {
  border-radius: var(--espejos-panel-radius, 8px);
}

/* Approved parchment palette, 2026-10-26. Decorative assets remain local. */
.site {
  --es-navy: #000070;
  --es-gold-text: #f4e0a6;
  --es-ink: #30291f;
  --es-muted: #66543a;
  --es-paper-input: #fffaf0;
  --espejos-panel-radius: 8px;
  --es-paper-group: rgba(255,248,232,.42);
  --es-paper-reading: rgba(255,248,232,.28);
  --es-paper-control: rgba(255,250,238,.72);
  --es-paper-ochre: rgba(166,125,66,.10);
  --es-paper-border: #b6a17a;
  --es-blue-texture: url('../assets/background7.jpg');
  --es-aes-mark: url('../assets/jordan/aes-sedai-sin-puntos.svg');
}
.site #contenido :is(
  .world-reading:not(.usability-reading-compact),
  .encyclopedia-filters,.dictionary-filters,.chronology-filters,.faq-filters,
  .atlas-page .filters,.catalog-search,.forum-era-nav,.editorial-intro,
  .review-edition,.home-library-links,.jordan-blog-index,.collection-pager a,.com-finder,
  .library-reference,.library-reference-links a,.jordan-selection-grid article
) {
  background: var(--es-paper-group);
  border-color: var(--es-paper-border);
}
.site #contenido :is(
  .world-navigation a,.encyclopedia-alphabet a,.dictionary-alphabet a,
  .catalog-alphabet button,.library-sections a,.atlas-page .base-choice a,
  .atlas-page .base-choice button,.saga-page .collection-picker button
) {
  background: var(--es-paper-control);
  border-color: var(--es-paper-border);
  color: #000070;
}
.site #contenido :is(
  .world-navigation a[aria-current=page],
  .encyclopedia-alphabet a[aria-current]:not([aria-current=false]),
  .dictionary-alphabet a[aria-current]:not([aria-current=false]),
  .catalog-alphabet button[aria-pressed=true],
  .library-sections a[aria-current]:not([aria-current=false]),
  .atlas-page .base-choice a[aria-current]:not([aria-current=false]),
  .atlas-page .base-choice button[aria-pressed=true],
  .saga-page .collection-picker button[aria-pressed=true],
  .atlas-page .map-bottom button[aria-pressed=true],
  a.button,a.btn-primary,button.btn-primary,button[type=submit]:not([aria-pressed]),input[type=submit],
  .archive-search button,.catalog-search button,.com-finder .btn,
  #kunena .btn-primary,#kunena .active>.page-link,
  #kunena .navbar-nav .active>.nav-link,
  .com-finder .pagination .active>.page-link,
  .archive-pagination [aria-current]:not([aria-current=false])
) {
  background: #000070 var(--es-blue-texture) repeat;
  color: #f4e0a6;
  border-color: #000070;
}
/* Inline decoration cannot change reading order or accessible names. */
.site #contenido :is(
  .world-navigation a[aria-current=page],
  .encyclopedia-alphabet a[aria-current]:not([aria-current=false]),
  .dictionary-alphabet a[aria-current]:not([aria-current=false]),
  .catalog-alphabet button[aria-pressed=true],
  .library-sections a[aria-current]:not([aria-current=false]),
  .atlas-page .base-choice a[aria-current]:not([aria-current=false]),
  .atlas-page .base-choice button[aria-pressed=true],
  .saga-page .collection-picker button[aria-pressed=true],
  .atlas-page .map-bottom button[aria-pressed=true],
  #kunena .navbar-nav .active>.nav-link,
  #kunena .active>.page-link,.com-finder .pagination .active>.page-link,
  .archive-pagination [aria-current]:not([aria-current=false])
)::before {
  content: '';
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--es-aes-mark) center/contain no-repeat;
  vertical-align: middle;
  flex: none;
}
/* Section bars share the main heading surface; forum/archive layouts stay native. */
.site .sidebar .panel-title,
.site #contenido .content-titlebar {background:var(--es-heading-background);color:#f4e0a6}
.site #contenido :is(.history-card-heading,#kunena .card-header,.archive-group>h2),
.site #contenido .content-box>.article-header {
  background: #000070 var(--es-blue-texture) repeat;
  color: #f4e0a6;
}
.site #contenido :is(.history-card-heading>h2,.archive-group>h2,#kunena .card-header):not(.aes-heading),
.site #contenido .content-box>.article-header h1:not(.aes-heading) {
  position: relative;
  padding-left: 40px;
  min-height: 28px;
}
.site #contenido :is(.history-card-heading>h2,.archive-group>h2,#kunena .card-header):not(.aes-heading)::before,
.site #contenido .content-box>.article-header h1:not(.aes-heading)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: var(--es-aes-mark) center/contain no-repeat;
}
/* The Aes Sedai mark belongs to the content, not the sidebar menus. */
.site .sidebar .panel-title {padding-left:10px;text-align:left;min-height:30px}
.site .sidebar .panel-title::before {content:none;display:none}
.site #contenido :is(.archive-group>h2,#kunena .card-header) {padding-left:54px}
.site #contenido :is(.archive-group>h2,#kunena .card-header)::before {left:14px}
.site #contenido :is(.content-titlebar,.article-header,#kunena .card-header) a {color:inherit}
/* Forums: one light message surface, with restrained author and quote panels. */
.site #contenido #kunena {--es-forum-surface:var(--es-paper-group);--bs-border-color:var(--es-paper-border)}
.site #contenido #espejos-archive {--archive-surface:var(--es-paper-group)}
.site #contenido :is(#kunena.layout .row.message,#espejos-archive .archive-post) {background:var(--es-paper-reading)}
.site #contenido :is(#kunena.layout .message>.col-md-2,#espejos-archive .archive-author,
  #kunena .kmsg blockquote,#espejos-archive .archive-body blockquote) {background:var(--es-paper-ochre)}
.site #contenido :is(#espejos-archive .archive-notice,#espejos-archive .archive-body details,
  .editorial-warning) {background:var(--es-paper-group)}
.site #contenido :is(#kunena .btn-light,#kunena .btn-secondary,#kunena .page-link,
  #espejos-archive .archive-pagination a) {background:var(--es-paper-control);border-color:var(--es-paper-border)}
.site #contenido :is(#kunena .kfrontend,#kunena .card,#espejos-archive .archive-group,
  #espejos-archive .archive-heading,#espejos-archive .archive-search,
  #espejos-archive .archive-provenance,#espejos-archive .archive-result,
  #espejos-archive .archive-post,#espejos-archive .archive-nav,
  .forum-era-nav) {border-radius:var(--espejos-panel-radius,8px)}
.site #contenido #kunena .btn {border-radius:var(--espejos-button-radius,6px)}
.site #contenido #kunena.layout .kfrontend {border-radius:8px!important}
.site #contenido :is(#kunena .table thead,#kunena .table tfoot) :is(td,th) {background:var(--es-paper-ochre)}
.site #contenido #kunena .table {--bs-table-striped-bg:var(--es-paper-ochre)}
/* Specific primary colours win over the neutral pagination rule above. */
.site #contenido #kunena .active>.page-link {background:#000070 var(--es-blue-texture) repeat;color:#f4e0a6}
.site #contenido :is(.com-contact input[type=text],.com-contact input[type=email],
  .com-contact textarea,.com-finder input[type=text]) {background:#fffaf0;color:#30291f;border-color:var(--es-paper-border)}

/* Audit corrections: native forum accordions and account presentation. */
.site #contenido #kunena .accordion-button {
  background:#000070 var(--es-blue-texture) repeat;
  color:var(--es-gold-text);border-radius:var(--espejos-button-radius,6px);
  gap:10px;box-shadow:none;
}
.site #contenido #kunena .accordion-button::before {
  content:'';display:inline-block;width:24px;height:24px;flex:none;
  background:var(--es-aes-mark) center/contain no-repeat;
}
.site #contenido #kunena .accordion-button::after {filter:brightness(0) invert(1)}
.site #contenido #kunena .accordion-button:focus-visible {outline:3px solid #b68a32;outline-offset:3px}
.site #contenido #kunena .navbar :is(.btn-light,.btn-secondary) {background:var(--es-paper-input);color:var(--es-navy)}
.site #contenido :is(.com-users-login,.com-users-reset,.com-users-remind) {
  padding:clamp(18px,3vw,32px);border:1px solid var(--es-paper-border);
  border-radius:var(--espejos-panel-radius);background:var(--es-paper-group);min-width:0;
}
.site #contenido :is(.com-users-login,.com-users-reset,.com-users-remind) h1 {font:400 clamp(28px,3vw,38px)/1.25 Georgia,serif;color:var(--es-navy)}
.site #contenido .com-users-login fieldset {border:0;padding:0;margin:0;min-width:0}
.site #contenido .com-users-login .com-users-login__remember .form-check {display:flex;align-items:center;gap:10px;padding-left:0}
.site #contenido .com-users-login .com-users-login__remember .form-check-input {float:none;margin:0;flex:none}
.site #contenido .com-users-login .com-users-login__remember .form-check-label {display:inline-block;margin:0}

/* Approved section presentations: shared rhythm, original illustrations and covers. */
.site {
  --es-heading-background:linear-gradient(rgba(0,0,112,.76),rgba(0,0,112,.76)),#000070 var(--es-blue-texture) repeat;
  --es-heading-border:#aa915f;
  --es-heading-ink:#f5e9ca;
  --es-heading-title:#f4e0a6;
  --es-heading-gold:#dfc28b;
  --es-heading-radius:8px;
  --es-heading-font:var(--es-font-display,'Espejos Intro Display',Georgia,serif);
  --es-heading-reading:var(--es-font-reading,'Espejos Intro Reading',Georgia,serif);
  --es-heading-size:42px;
  --es-heading-lead-size:18px;
  --es-heading-padding:24px 28px;
}
.site #contenido :is(.welcome-compact,.section-presentation,.catalog-heading,.editorial-scene-heading,.section-visual-heading,.usability-compact-heading,.book-heading,.author-hero,.gd-intro,.wheel-faq-heading):not(.library-world-heading):not(:has(.jordan-mark)) :is(.eyebrow,.gd-kicker) {position:relative;padding-left:29px}
.site #contenido :is(.welcome-compact,.section-presentation,.catalog-heading,.editorial-scene-heading,.section-visual-heading,.usability-compact-heading,.book-heading,.author-hero,.gd-intro,.wheel-faq-heading):not(.library-world-heading):not(:has(.jordan-mark)) :is(.eyebrow,.gd-kicker)::before {
 content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
 width:20px;height:20px;border:1px solid var(--es-heading-border);border-radius:50%;
 background:var(--es-aes-mark) center/contain no-repeat;
}
@media(max-width:760px){.site{--es-heading-size:30px;--es-heading-lead-size:17px;--es-heading-padding:22px}}
.site #contenido .section-presentation {
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:0;align-items:stretch;min-height:280px;padding:0;margin-bottom:26px;
  border:1px solid var(--es-heading-border);border-radius:var(--es-heading-radius);background:var(--es-heading-background);color:var(--es-heading-ink);overflow:hidden;
}
.site #contenido .section-presentation .editorial-scene-copy {min-width:0;padding:var(--es-heading-padding);align-self:center}
.site #contenido .section-presentation h1 {font:600 var(--es-heading-size)/1.15 var(--es-heading-font);margin:8px 0 16px;color:var(--es-heading-title)}
.site #contenido .section-presentation p {color:var(--es-heading-ink)}
.site #contenido .section-presentation .eyebrow {color:var(--es-heading-gold);font:700 12px/1.55 Verdana,sans-serif;letter-spacing:.08em}
.site #contenido .section-presentation .editorial-scene-copy :is(.section-intro,.article-lead) {font:var(--es-heading-lead-size)/1.7 var(--es-heading-reading);margin:0;color:var(--es-heading-ink)}
.site #contenido .section-presentation--wheel .editorial-scene-art img.editorial-scene-image {object-position:center top}
.site #contenido .section-presentation--history .editorial-scene-art img.editorial-scene-image {object-position:65% center}
.site #contenido .library-front-heading.section-presentation {margin:-26px -26px 26px;border-radius:var(--es-heading-radius) var(--es-heading-radius) 0 0}
.site #contenido .library-front-heading.section-presentation .catalog-heading-art {min-height:280px;padding:22px;box-sizing:border-box}
.site #contenido .library-front > .library-front-actions {margin:0 0 26px}
.site #contenido .history-documentary-note {margin-bottom:26px}
@media(max-width:1100px) {
  .site #contenido .section-presentation {grid-template-columns:minmax(0,1fr)}
  .site #contenido .section-presentation .editorial-scene-art {min-height:210px}
  .site #contenido .library-front-heading.section-presentation .catalog-heading-art {min-height:190px}
}
@media(max-width:760px) {
  .site #contenido .section-presentation .editorial-scene-copy {padding:var(--es-heading-padding)}
  .site #contenido .section-presentation h1 {font-size:var(--es-heading-size)}
  .site #contenido .section-presentation .editorial-scene-copy :is(.section-intro,.article-lead) {font-size:var(--es-heading-lead-size)}
  .site #contenido .library-front-heading.section-presentation {margin:-22px -22px 26px}
}

/* Approved five-cover fan: existing assets; original presentation retained. */
.site #contenido .library-cover-fan--five {padding:22px 12px}
.site #contenido .library-cover-fan--five .library-cover-fan {display:flex;align-items:center;justify-content:center;width:100%;max-width:460px;min-height:190px;margin:auto}
.site #contenido .library-cover-fan--five .library-cover-fan img {flex:none;width:80px;height:126px;margin:0 0 0 -10px;object-fit:contain;transform:none;filter:drop-shadow(0 8px 7px #0007)}
.site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(1) {margin-left:0;transform:rotate(-15deg) translateY(9px);z-index:1}
.site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(2) {width:92px;height:145px;transform:rotate(-7deg);z-index:2}
.site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(3) {width:110px;height:165px;transform:none;z-index:3}
.site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(4) {width:92px;height:145px;transform:rotate(7deg);z-index:2}
.site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(5) {transform:rotate(15deg) translateY(9px);z-index:1}
@media(max-width:760px){
 .site #contenido .library-cover-fan--five .library-cover-fan {min-height:140px}
 .site #contenido .library-cover-fan--five .library-cover-fan img {width:50px;height:80px}
 .site #contenido .library-cover-fan--five .library-cover-fan img:is(:nth-child(2),:nth-child(4)) {width:60px;height:96px}
 .site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(3) {width:74px;height:116px}
}
@media(max-width:360px){
 .site #contenido .library-cover-fan--five .library-cover-fan img {width:44px;height:70px}
 .site #contenido .library-cover-fan--five .library-cover-fan img:is(:nth-child(2),:nth-child(4)) {width:50px;height:82px}
 .site #contenido .library-cover-fan--five .library-cover-fan img:nth-child(3) {width:64px;height:100px}
}

/* Shared, approved translucent back-to-top control. */
.site .espejos-back-to-top{
 position:fixed;inset-inline-end:max(16px,env(safe-area-inset-right));
 inset-block-end:calc(18px + env(safe-area-inset-bottom));z-index:500;
 display:grid;place-items:center;width:44px;height:44px;padding:0;min-height:44px;
 border:1px solid rgba(221,221,221,.7);border-radius:3px;
 background:rgba(255,255,255,.4);
 color:#161b30;cursor:pointer;
 box-shadow:none;text-shadow:none;filter:none;
}
.site .espejos-back-to-top[hidden]{display:none!important}
.site .espejos-back-to-top:hover{background:rgba(255,255,255,.7);border-color:rgba(221,221,221,.9);color:#090d20;filter:none;box-shadow:none}
.site .espejos-back-to-top:focus-visible{outline:3px solid #e9c875;outline-offset:4px}
@media(prefers-reduced-motion:no-preference){.site .espejos-back-to-top{transition:background-color .16s ease,border-color .16s ease,color .16s ease}}

/* Keep the mobile footer link outside the floating control. */
@media(max-width:760px){.site+.prototype-note{padding-inline:72px}}

/* Approved shared sidebar presentation, 6 November 2026. */
@media (min-width: 901px) {
  .site {
    --es-left: calc(clamp(166px, 14.6vw, 196px) + var(--es-home-side-extra, 0px));
    --es-right: calc(clamp(202px, 17.5vw, 232px) + var(--es-home-side-extra, 0px));
  }
}
@media (min-width: 1200px) {
  .site:has(#mobile-home-start) { --es-home-side-extra: 16px; }
}

.site .sidebar .panel {
  border-color: #bbaa82;
  border-radius: 5px;
}
.site .sidebar .panel-title {
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.35;
}
.site .left-sidebar { gap: 18px; }
.site .sidebar .side-menu { padding: 7px 11px 10px; }
.site .sidebar .side-menu a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 1px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.site .sidebar .side-menu a::before {
  content: "›";
  flex: 0 0 7px;
  margin: 0;
  color: #806731;
}
.site .sidebar .side-menu li + li { border-top: 1px solid #b8a37340; }
.site .sidebar .panel-body { padding: 15px; }
.site .right-sidebar .panel-body { font-size: 14px; line-height: 1.65; }
.site .right-sidebar .side-kicker {
  font-size: 10px;
  letter-spacing: .09em;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #695329;
}
.site .right-sidebar .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
}
.site .right-sidebar .mini-cover {
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 0 0 16px;
}
.site .right-sidebar .mini-cover + .mini-cover {
  padding-top: 16px;
  border-top: 1px solid #b8a37366;
}
.site .right-sidebar .mini-cover:last-child { padding-bottom: 0; }
.site .right-sidebar .mini-cover img {
  display: block;
  width: 60px;
  height: auto;
  max-height: none;
  object-fit: contain;
  box-shadow: 1px 2px 4px #4d3a232b;
}
.site .right-sidebar .mini-cover a { font-size: 15px; line-height: 1.4; }
.site .right-sidebar .mini-cover small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #594a32;
}
.site .right-sidebar .statline {
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}
.site .right-sidebar .statline strong { white-space: nowrap; }
.site .right-sidebar .statline ~ p {
  font-size: 12px !important;
  line-height: 1.55;
}
.site .sidebar a:focus-visible { outline: 2px solid #80621e; outline-offset: 3px; }
@media (max-width: 650px) {
  .site .right-sidebar .panel-title { font-size: 17px; }
  .site .right-sidebar .panel-body { padding: 16px; font-size: 15px; }
  .site .right-sidebar .mini-cover {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
  }
  .site .right-sidebar .mini-cover img { width: 68px; }
  .site .right-sidebar .mini-cover a { font-size: 17px; }
  .site .right-sidebar .mini-cover small { font-size: 13px; }
}

/* Shared footer: native cookie controls and community attribution retained. */
.site .site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(220px, 1fr) minmax(250px, 1fr);
  gap: 10px 40px;
  padding: 30px clamp(24px, 5vw, 96px) 22px;
  background-color: var(--es-navy);
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
.site .site-footer .footer-about { grid-column: 1; grid-row: 1 / span 2; }
.site .site-footer .footer-brand { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.site .site-footer .footer-about p { margin: 7px 0; max-width: 43ch; }
.site .site-footer .footer-status { color: #cfbc8c; font-size: 12px; padding-top: 5px; }
.site .site-footer .footer-heading {
  margin: 0 0 8px;
  color: #f4e0a6;
  font: 700 14px/1.5 Verdana, sans-serif;
}
.site .site-footer .footer-navigation { grid-column: 2; grid-row: 1 / span 2; }
.site .site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  gap: 2px 18px;
  margin: 0;
}
.site .site-footer .footer-privacy { grid-column: 3; grid-row: 1; }
.site .site-footer .footer-legal-links { display: grid; gap: 2px; }
.site .site-footer :is(.footer-links, .footer-legal-links) a,
.site .site-footer .espejosconsent-footer > :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
}
.site .site-footer .espejosconsent-footer {
  grid-column: 3;
  grid-row: 2;
  justify-content: flex-start;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  align-self: start;
}
.site .site-footer .espejosconsent-footer > button { text-decoration: underline; text-underline-offset: 3px; }
.site .site-footer > [data-community-credit] { grid-column: 1 / -1; font-size: 12px; }
.site .site-footer > [data-community-credit]:empty { display: none; }
.site .site-footer .cbPoweredBy.cb_template { margin-top: 10px; font-size: 12px; }
.site .site-footer .management-credit {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 15px;
  border-top: 1px solid #c5a55f55;
  color: #d9cba9;
  font-size: 12px;
  line-height: 1.7;
}
.site .site-footer a:focus-visible,
.site .site-footer button:focus-visible { outline: 2px solid #efd494; outline-offset: 4px; }
@media (max-width: 1000px) {
  .site .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; }
  .site .site-footer .footer-about { grid-column: 1 / -1; grid-row: 1; padding-bottom: 10px; }
  .site .site-footer .footer-navigation { grid-column: 1; grid-row: 2 / span 2; }
  .site .site-footer .footer-privacy { grid-column: 2; grid-row: 2; }
  .site .site-footer .espejosconsent-footer { grid-column: 2; grid-row: 3; }
}
@media (max-width: 650px) {
  .site .site-footer { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 27px 24px 24px; }
  .site .site-footer :is(.footer-about, .footer-navigation, .footer-privacy, .espejosconsent-footer) { grid-column: auto; grid-row: auto; }
  .site .site-footer .footer-about { padding-bottom: 0; }
  .site .site-footer .footer-brand { font-size: 25px; }
  .site .site-footer .footer-heading { font-size: 15px; }
  .site .site-footer .footer-links { gap: 3px 18px; }
  .site .site-footer .footer-legal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; }
  .site .site-footer .espejosconsent-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; margin-top: -15px; }
  .site .site-footer .management-credit { margin: 0; padding-inline-end: 56px; }
}

/* The site's panoramic profile gallery uses 3:1 images. */
@media (min-width: 768px) {
  .cb_template .cbCanvasLayout .cbCanvasLayoutTop:has(.cbFullCanvas[style*=".webp"]:is([style*="/images/comprofiler/gallery/canvas/espejos_"], [style*="/images/comprofiler/gallery/canvas/universos_"])) {
    min-height: 0;
    aspect-ratio: 3 / 1;
  }
}
