/* ============================================================
   Gospel Companion — the reference layer (people, places, the
   dictionary, book intros, the timeline and the atlas). Static
   pages built by scripts/build_reference_pages.py.

   The house system: a void ground, one gold breath and one accent
   nebula behind a star field at the top of every page; Cinzel for
   display, Outfit for body; glass panels with a hairline; and the
   app's own thread-and-star motif (Woven Word, Constellation,
   Prophecy Loom) for outlines, mentions and chapters.
   Tokens come from styles.css.
   ============================================================ */
body.refPage{position:relative;background:linear-gradient(180deg,#080C1C,#04060F 46%,#04060F);
  min-height:100vh;color:var(--starlight);overflow-x:hidden}
.refPage a{color:var(--gold);text-decoration:none}
.refPage a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---- the sky: one gold breath, one accent nebula, a star field ---- */
.sky{position:absolute;left:0;right:0;top:0;height:640px;pointer-events:none;z-index:0;
  background:
    radial-gradient(680px 300px at 50% -40px, rgba(232,184,115,.16), transparent 70%),
    radial-gradient(900px 420px at 86% -60px, var(--neb,rgba(91,227,213,.10)), transparent 72%),
    radial-gradient(1.3px 1.3px at 12% 22%, rgba(239,243,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 9%, rgba(239,243,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 32%, rgba(232,184,115,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 12%, rgba(239,243,255,.55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 44% 41%, rgba(239,243,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 38%, rgba(232,184,115,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 48%, rgba(239,243,255,.45) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 21% 55%, rgba(239,243,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 17%, rgba(239,243,255,.45) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 75% 52%, rgba(232,184,115,.45) 50%, transparent 51%)}

/* ---- slim bar ---- */
.wbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;height:56px;padding:0 22px;
  border-bottom:1px solid var(--hairline);background:rgba(10,15,34,.86);backdrop-filter:blur(10px)}
.wbar .brand{font-family:var(--font-display);font-size:17px;letter-spacing:.06em;color:var(--starlight);white-space:nowrap}
.wbar .brand em{font-style:normal;color:var(--gold)}
.wbar .site{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--faint);white-space:nowrap}
.wsearch{flex:1;max-width:420px;min-width:120px}
.wsearch input{width:100%;height:36px;padding:0 14px;border-radius:999px;background:rgba(13,18,40,.72);
  border:1px solid var(--line-faint);color:var(--starlight);font:400 13px var(--font-body);outline:none}
.wsearch input:focus{border-color:rgba(232,184,115,.5)}
.wsearch input::placeholder{color:rgba(142,153,194,.6)}
.wnav{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px solid rgba(142,153,194,.3);
  padding:6px 11px;font-size:12px;color:var(--starlight);white-space:nowrap;line-height:1.2}
.pill.on{border-color:var(--hairline);background:var(--glass-soft);color:var(--starlight)}
.pill.gold{color:var(--gold);border-color:rgba(232,184,115,.4);background:rgba(232,184,115,.08)}
.pill.aqua{color:var(--aqua);border-color:rgba(91,227,213,.4)}
a.pill:hover{text-decoration:none;border-color:var(--gold);color:var(--gold)}
.pill .orig{font-family:Georgia,'Times New Roman',serif;font-size:14.5px;color:#F5D9A8}
.pill .src{color:rgba(142,153,194,.85);font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.pill i{font-style:italic}

/* ---- layout ---- */
.wwrap{position:relative;z-index:1;max-width:1160px;margin:0 auto;padding:0 24px 80px;
  display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}
.wwrap.single{grid-template-columns:minmax(0,1fr)}
.wmain{min-width:0}
.wrail{position:sticky;top:72px}
.crumb{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--faint);padding-top:30px}
.crumb a{color:var(--faint)}.crumb a:hover{color:var(--gold)}.crumb b{color:var(--gold);font-weight:600}

/* ---- the hero ---- */
.whero{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;align-items:start}
.whero.art{grid-template-columns:minmax(0,1fr) 300px}
.wheroTxt{min-width:0}
.wh1{font-family:var(--font-display);font-size:clamp(32px,5vw,52px);letter-spacing:.04em;
  margin:10px 0 0;line-height:1.08;font-weight:600;overflow-wrap:anywhere;hyphens:auto}
.wh1.xl{font-size:clamp(36px,6.2vw,74px);line-height:1.06}
/* beside an illustration the title has a narrower column — a long single
   name must still sit on one line rather than run off the page */
.whero.art .wh1.xl{font-size:clamp(30px,3.8vw,52px)}
.wsub{color:#B4BDDD;font-size:16px;font-weight:300;margin:16px 0 0;line-height:1.6;max-width:66ch}
.wsub i{font-style:italic;color:#C6CDE8}
.wsub .orig{font-family:Georgia,'Times New Roman',serif;font-size:18px;color:#F5D9A8}
.wlede{font-size:17px;line-height:1.6;color:#B4BDDD;font-weight:300;max-width:66ch;margin:16px 0 0}
.heroChips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.wmain>.wsub:last-child,.wmain>.wlede:last-child{margin-bottom:22px}

/* ---- the illustrations ---- */
.wart-hero{position:relative;display:block;margin:10px 0 0;border-radius:18px;overflow:hidden;
  border:1px solid rgba(232,184,115,.3);background:#070B1C;box-shadow:0 0 44px rgba(232,184,115,.07)}
.wart-hero img{display:block;width:100%;height:auto;aspect-ratio:1086/1448;object-fit:cover}
.wart-hero .scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,6,15,.45),transparent 34%,transparent 62%,rgba(4,6,15,.72))}
.wart-hero figcaption{position:relative;padding:10px 14px 12px;font-size:11px;line-height:1.5;
  color:rgba(142,153,194,.85);background:rgba(7,11,28,.9);border-top:1px solid rgba(232,184,115,.16)}
.wart-card{position:relative;display:block;overflow:hidden;background:#070B1C}
.wart-card img{display:block;width:100%;height:auto;aspect-ratio:1086/1448;object-fit:cover}
.wart-card .scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 34%,rgba(4,6,15,.94) 92%)}
.wart-thumb{flex:none;display:block;width:34px;height:45px;border-radius:7px;overflow:hidden;
  border:1px solid rgba(142,153,194,.25);background:#070B1C}
.wart-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.artNote{font-size:11.5px;color:rgba(142,153,194,.72);margin-top:10px;line-height:1.5}
/* the featured band of illustrated entities on an index */
.artBand{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:14px;margin-top:6px}
.artTile{position:relative;display:block;border-radius:16px;overflow:hidden;border:1px solid rgba(142,153,194,.22);
  background:#070B1C;color:var(--starlight)}
.artTile .cap{position:absolute;left:0;right:0;bottom:0;padding:34px 14px 12px;
  background:linear-gradient(180deg,transparent,rgba(4,6,15,.94) 64%)}
.artTile .cap b{display:block;font-family:var(--font-display);font-size:15px;letter-spacing:.04em;font-weight:600}
.artTile .cap span{display:block;margin-top:3px;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.artTile:hover{text-decoration:none;border-color:var(--hairline)}

/* ---- section headings: small caps with a gold rule trailing off ---- */
.sec{font-family:var(--font-display);font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);margin:44px 0 16px;font-weight:600;display:flex;align-items:center;gap:14px}
.sec::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,rgba(232,184,115,.4),transparent)}
.sec>span{flex:none}
.wart{font-size:16px;line-height:1.75;font-weight:300;color:#DDE3F5}
.wart p{margin:0 0 14px}.wart p:last-child{margin-bottom:0}
.wart em{color:var(--starlight)}
.wart strong{font-weight:600;color:var(--starlight)}
.vref{color:var(--aqua);border-bottom:1px dotted rgba(91,227,213,.45)}
.vref:hover{text-decoration:none;border-bottom-style:solid}
.ref-x{color:#B4BDDD}
.credit{font-size:11.5px;color:rgba(142,153,194,.78);margin-top:8px;line-height:1.5}
.credit a{color:rgba(142,153,194,.95)}
.rowline{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:8px}
.rowline .credit{margin:0}.rowline .more{margin-left:auto;font-size:12.5px}

/* ---- a long article: a 68-character measure, a drop cap, Cinzel heads ---- */
.wart.read{max-width:68ch;font-size:17px;line-height:1.78}
.wart.read p{margin:0 0 20px}
.wart.read p.drop::first-letter{float:left;font-family:var(--font-display);font-size:62px;line-height:.86;
  padding:6px 12px 0 0;color:var(--gold);font-weight:600}
.wart.read p.artH{font-family:var(--font-display);font-size:14px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);font-weight:600;margin:38px 0 14px;line-height:1.4;scroll-margin-top:76px}
.wart.read p.artH:first-child{margin-top:0}
.masthead{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;
  border:1px solid rgba(142,153,194,.22);background:rgba(13,18,40,.5);font-size:12.5px;
  color:var(--faint);margin:0 0 6px;line-height:1.5;max-width:68ch}
.masthead::before{content:'\25A3';color:var(--gold);font-size:14px;flex:none}
.toc{display:block}
.toc a{display:block;padding:7px 0 7px 14px;font-size:13px;color:var(--faint);
  border-left:1px solid rgba(142,153,194,.2);line-height:1.45}
.toc a:hover{color:var(--gold);border-left-color:var(--gold);text-decoration:none}

/* ---- the pull quote: a purpose verse at the size it deserves ---- */
.pullq{position:relative;margin:22px 0 0;padding:34px 34px 28px 62px;border-radius:20px;max-width:840px;
  background:linear-gradient(140deg,rgba(232,184,115,.10),rgba(15,20,42,.5) 60%);
  border:1px solid rgba(232,184,115,.3)}
.pullq::before{content:'\201C';position:absolute;left:22px;top:4px;font-family:var(--font-display);
  font-size:82px;color:rgba(232,184,115,.5);line-height:1}
.pullq p{margin:0;font-family:var(--font-display);font-size:clamp(19px,2.4vw,26px);line-height:1.44;
  color:#F5F7FF;font-weight:500}
.pullq .credit{margin-top:14px}

/* ---- facts: three columns under one gold rule, each with its source ---- */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0;
  border-top:1px solid rgba(232,184,115,.25);margin-top:16px}
.fact{padding:18px 26px 10px;border-right:1px solid rgba(142,153,194,.14)}
.fact:last-child{border-right:0}.fact:first-child{padding-left:0}
.fact .label{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--faint);font-weight:600}
.fact p{margin:9px 0 0;font-size:14.5px;line-height:1.6;color:#DDE3F5;font-weight:300}
.fact .credit{margin-top:7px}

/* ---- the thread: a lit line through nodes ---- */
.thread{position:relative;padding-left:34px;margin-top:4px}
.thread::before{content:'';position:absolute;left:8px;top:10px;bottom:14px;width:1px;
  background:linear-gradient(180deg,rgba(232,184,115,.65),rgba(232,184,115,.18))}
.node{position:relative;display:block;padding:0 0 22px;color:inherit}
.node::before{content:'';position:absolute;left:-30px;top:6px;width:9px;height:9px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 0 4px rgba(232,184,115,.14)}
.node.dim::before{background:rgba(142,153,194,.6);box-shadow:0 0 0 4px rgba(142,153,194,.1)}
.node .r{display:block;font-family:var(--font-display);font-size:12px;letter-spacing:.08em;color:var(--gold);font-weight:600}
.node .t{display:block;font-size:16px;color:var(--starlight);margin-top:3px;line-height:1.5}
.node .s{display:block;font-size:12.5px;color:var(--faint);margin-top:3px;line-height:1.5}
a.node:hover{text-decoration:none}
a.node:hover .t{color:var(--gold)}
.thread.verses .t{font-size:15px;font-weight:300;color:#DDE3F5}
.thread.verses .t .wj{color:#F27676}

/* ---- numerals as constellation figures ---- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:18px;margin-top:6px}
.stat{position:relative;text-align:center;padding:22px 10px 16px;border-radius:16px;
  border:1px solid rgba(142,153,194,.18);
  background:radial-gradient(120px 80px at 50% 0%, rgba(232,184,115,.1), transparent 70%)}
.stat b{display:block;font-family:var(--font-display);font-size:clamp(24px,3vw,34px);color:#F5D9A8;
  font-weight:600;letter-spacing:.02em;line-height:1.1}
.stat span{display:block;margin-top:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--faint);line-height:1.5}

/* ---- chapters as a field of stars ---- */
.chGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:9px}
.chGrid a{aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:transparent;
  border:1px solid rgba(142,153,194,.28);color:var(--faint);font:400 12.5px var(--font-body)}
.chGrid a:hover{text-decoration:none;background:rgba(232,184,115,.16);border-color:rgba(232,184,115,.6);color:#F5D9A8}

/* ---- mentions ---- */
.bookHead{font-family:var(--font-display);font-size:13.5px;letter-spacing:.08em;color:var(--starlight);
  margin:22px 0 10px;display:flex;align-items:baseline;gap:8px}
.bookHead span{font:400 11px var(--font-body);color:var(--faint);letter-spacing:.04em}
.refGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ref{display:flex;flex-direction:column;gap:3px;padding:9px 12px;border-radius:11px;
  border:1px solid rgba(142,153,194,.2);background:rgba(13,18,40,.6);color:inherit}
a.ref:hover{text-decoration:none;border-color:var(--hairline)}
.ref b{font-family:var(--font-display);font-size:11.5px;letter-spacing:.06em;color:var(--aqua);font-weight:600}
.ref span{font-size:12.5px;color:#B4BDDD;line-height:1.45;font-weight:300}
.ref .wj{color:#F27676}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px}
.chips .pill{padding:4px 10px;font-size:11.5px}

/* ---- mentions, folded by book: open at a readable length, everything one
   tap away. The pills need JavaScript, so a page without it never sees
   them — it keeps the plain folds instead of a dead control. ---- */
.refPage .hid{display:none!important}
.viewPills{display:none;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
html.js .viewPills{display:flex}
.viewPills .vp{font:400 12px var(--font-body);background:transparent;cursor:pointer;
  min-height:34px;padding:6px 13px;letter-spacing:.02em}
.viewPills .vp:hover{border-color:rgba(232,184,115,.5);color:var(--gold)}
.viewPills .vp.on{color:var(--gold);border-color:rgba(232,184,115,.55);background:rgba(232,184,115,.1)}
.viewPills .vp:focus-visible{outline:2px solid rgba(91,227,213,.7);outline-offset:2px}
.mentions{margin-top:10px}
.bookFold{border-top:1px solid rgba(142,153,194,.14)}
.bookFold:last-child{border-bottom:1px solid rgba(142,153,194,.14)}
.bookFold>summary{display:flex;align-items:center;gap:14px;min-height:46px;padding:9px 2px;
  cursor:pointer;list-style:none;color:var(--starlight)}
.bookFold>summary::-webkit-details-marker{display:none}
.bookFold>summary:hover .bfName{color:var(--gold)}
.bookFold>summary:focus-visible{outline:2px solid rgba(91,227,213,.7);outline-offset:-2px;border-radius:8px}
.bfName{flex:1;min-width:0;font-family:var(--font-display);font-size:14.5px;letter-spacing:.06em;
  font-weight:600;overflow-wrap:anywhere}
.bfN{flex:none;font-size:11px;letter-spacing:.06em;color:var(--faint);white-space:nowrap}
/* the chapter sparkline: a bar per chapter that names this one, at that
   chapter's place across the whole book (heights counted, never estimated) */
.spark{flex:none;display:block}
.spark rect{fill:rgba(232,184,115,.62)}
.spark rect.base{fill:rgba(142,153,194,.22)}
.bookFold>summary:hover .spark rect{fill:rgba(232,184,115,.85)}
.bookFold>summary::after{content:'';flex:none;width:7px;height:7px;margin-left:2px;
  border-right:1.5px solid rgba(232,184,115,.8);border-bottom:1.5px solid rgba(232,184,115,.8);
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s ease}
.bookFold[open]>summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.bfBody{padding:4px 0 20px}
.foldMore{margin-top:14px;padding-left:34px}
.foldMore .more{font:400 12px var(--font-body);background:transparent;cursor:pointer;
  min-height:38px;padding:8px 15px;color:var(--gold);border-color:rgba(232,184,115,.4)}
.foldMore .more:hover{background:rgba(232,184,115,.1);text-decoration:none}
.foldMore .more:focus-visible{outline:2px solid rgba(91,227,213,.7);outline-offset:2px}
/* "All" — one flat list in canonical order; every verse label names its
   own book, so the book rows step out of the way */
.mentions.flat>.bookFold{border:0}
.mentions.flat>.bookFold>summary{display:none}
.mentions.flat .bfBody{padding:0}
@media(prefers-reduced-motion:reduce){.bookFold>summary::after{transition:none}}
.kv{display:grid;grid-template-columns:112px 1fr;gap:8px 14px;font-size:14.5px;margin:6px 0 4px}
.kv .k{color:var(--faint);font-size:10px;letter-spacing:.22em;text-transform:uppercase;padding-top:4px;font-weight:600}
.kv .src{display:block;font-size:11px;color:rgba(142,153,194,.78);margin-top:2px}
.quote{padding:14px 16px;border-radius:14px;border:1px solid rgba(232,184,115,.45);background:rgba(17,22,44,.78);
  box-shadow:0 0 26px rgba(232,184,115,.08);font-size:16px;line-height:1.7;font-weight:300;color:#DDE3F5}
.quote .credit{margin-top:8px}
.srcList{margin:0;padding:0 0 0 18px;font-size:12.5px;color:var(--faint);line-height:1.7}
.srcList a{color:rgba(142,153,194,.95)}
.mapc{border-radius:14px;overflow:hidden;border:1px solid rgba(91,227,213,.35);background:#070B1C;margin:4px 0 6px}
.mapc svg{display:block;width:100%;height:auto}

/* ---- rail cards ---- */
.wcard{background:rgba(15,20,42,.72);border:1px solid rgba(142,153,194,.2);border-radius:16px;
  padding:16px 18px;margin-bottom:14px;backdrop-filter:blur(6px)}
.wcard h3{margin:0 0 10px;font-family:var(--font-display);font-size:10.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold);font-weight:600}
.wcard.door{border-color:rgba(232,184,115,.35);box-shadow:0 0 30px rgba(232,184,115,.07)}
.wcard .credit{margin-top:8px;font-size:10.5px}
.wref{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;padding:7px 0;
  border-bottom:1px solid rgba(142,153,194,.12)}
.wref:last-of-type{border-bottom:0}
.wref span{color:var(--faint);flex:0 1 auto;min-width:0;overflow-wrap:break-word}
.wref b{color:var(--starlight);font-weight:500;text-align:right;min-width:0;overflow-wrap:break-word}
.wref b .orig{font-family:Georgia,'Times New Roman',serif;font-size:15px;color:#F5D9A8}
.wref b a{color:var(--aqua)}
.doorTxt{margin:0;font-size:13px;color:#B4BDDD;line-height:1.55}
/* the section rail: where you are on a long page */
.onthis{position:sticky;top:72px;z-index:2;max-height:calc(100vh - 100px);overflow:auto}
.onthis .toc a{padding:8px 0 8px 14px}
.toc a.on{color:var(--gold);border-left-color:var(--gold)}
.mentionbar{display:flex;gap:3px;align-items:flex-end;height:34px;margin-top:4px}
.mentionbar i{display:block;flex:1;min-width:5px;border-radius:2px 2px 0 0;background:rgba(232,184,115,.55)}

/* ---- index pages ---- */
.bigsearch{display:flex;align-items:center;gap:14px;height:64px;border-radius:16px;max-width:720px;
  border:1px solid rgba(232,184,115,.45);background:rgba(13,18,40,.72);padding:0 20px;
  box-shadow:0 0 40px rgba(232,184,115,.1);margin-top:30px}
.bigsearch::before{content:'\232C';color:var(--gold);font-size:19px;flex:none;opacity:.85}
.bigsearch input{flex:1;min-width:0;height:100%;border:0;background:transparent;outline:none;
  color:var(--starlight);font:300 17px var(--font-body)}
.bigsearch input::placeholder{color:var(--faint)}
.bigsearch button{flex:none;border:1px solid rgba(232,184,115,.4);background:rgba(232,184,115,.08);
  color:var(--gold);border-radius:999px;padding:8px 16px;font:500 12px var(--font-body);
  letter-spacing:.06em;cursor:pointer}
.bigsearch button:hover{background:rgba(232,184,115,.16)}
.letters{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0 10px}
.letters a{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;
  border:1px solid rgba(142,153,194,.22);background:transparent;color:#B4BDDD;
  font:500 15px var(--font-display)}
.letters a:hover{text-decoration:none;border-color:rgba(232,184,115,.45);color:var(--gold);background:rgba(232,184,115,.07)}
.letters a.dim{opacity:.3;pointer-events:none}
.letters a.on{border-color:rgba(232,184,115,.55);color:var(--gold);background:rgba(232,184,115,.12)}
.ixRow{display:grid;grid-template-columns:minmax(120px,1fr) 2fr auto;gap:12px;align-items:baseline;
  padding:8px 4px;border-bottom:1px solid rgba(142,153,194,.1);color:inherit;font-size:13.5px}
.ixRow:hover{text-decoration:none;background:rgba(232,184,115,.05)}
.ixRow b{color:var(--starlight);font-weight:500}
.ixRow span{color:var(--faint);font-weight:300;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ixRow i{font-style:normal;color:var(--aqua);font-family:var(--font-display);font-size:11px}
.grpTitle{font-family:var(--font-display);font-size:11.5px;letter-spacing:.26em;text-transform:uppercase;
  margin:34px 0 12px;display:flex;align-items:center;gap:12px}
.grpTitle i{width:8px;height:8px;border-radius:50%;display:inline-block;box-shadow:0 0 8px currentColor;background:currentColor;flex:none}
.grpTitle::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,currentColor,transparent);opacity:.35}
.bookGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:10px}
.bookTile{padding:14px 13px;border-radius:14px;background:rgba(15,20,42,.5);
  border:1px solid rgba(142,153,194,.18);color:var(--starlight);font-family:var(--font-display);
  font-size:14.5px;font-weight:600;letter-spacing:.03em;transition:border-color .2s,transform .2s}
.bookTile small{display:block;font-family:var(--font-body);font-weight:300;font-size:11px;color:var(--faint);
  margin-top:5px;letter-spacing:0;line-height:1.45}
.bookTile:hover{text-decoration:none;border-color:var(--bc,#E8B873);transform:translateY(-2px)}
/* dictionary entry cards */
.termGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.term{display:block;padding:14px 16px;border-radius:14px;border:1px solid rgba(142,153,194,.18);
  background:rgba(15,20,42,.5);color:inherit}
.term b{display:block;font-family:var(--font-display);font-size:16px;color:var(--starlight);font-weight:600;letter-spacing:.03em}
.term span{display:block;margin-top:5px;font-size:13px;color:var(--faint);line-height:1.5;font-weight:300}
.term i{display:inline-block;margin-top:8px;font-style:normal;font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:rgba(142,153,194,.75)}
.term:hover{text-decoration:none;border-color:var(--hairline)}
.term:hover b{color:var(--gold)}
.wfoot{position:relative;z-index:1;max-width:1160px;margin:0 auto;padding:30px 24px 60px;font-size:11px;
  letter-spacing:.12em;color:rgba(142,153,194,.6);text-align:center}
.wfoot a{color:rgba(142,153,194,.8)}

/* ============================================================
   When (/when) and Where (/where) — the timeline band, the event
   pages, the drawn maps and their stop lists.
   ============================================================ */
.bandc{border:1px solid rgba(142,153,194,.22);background:rgba(13,18,40,.55);border-radius:16px;
  padding:14px 18px;margin:26px 0 4px;overflow-x:auto}
.bandc svg{display:block;width:100%;min-width:560px;height:auto}
.bandc a rect{transition:fill .15s}
.bandc a:hover rect{fill:#E8B873}
.periodChips{margin:18px 0 4px}
.periodChips .pill .faint{color:rgba(142,153,194,.75);font-size:11px}
.sec .secYr{font-family:var(--font-body);letter-spacing:.04em;text-transform:none;color:var(--faint);
  font-weight:400;font-size:12.5px;margin-left:-6px}
.periodBlurb{font-size:14.5px;line-height:1.7;color:#B4BDDD;font-weight:300;margin:0 0 14px;max-width:68ch}
/* the event list: the year in Cinzel in its own column, an em dash when undated */
.evList{display:flex;flex-direction:column}
.evRow{display:grid;grid-template-columns:104px minmax(0,1fr);gap:18px;padding:13px 4px;
  border-bottom:1px solid rgba(142,153,194,.1);transition:background .15s}
.evRow .yr{font-family:var(--font-display);font-size:13px;letter-spacing:.04em;color:var(--gold);
  font-weight:600;text-align:right;padding-top:2px}
.evRow .yr.none{color:rgba(142,153,194,.55)}
.evRow .evT{display:block;font-size:16px;color:var(--starlight);line-height:1.45}
.evRow .evRefs{font-size:12.5px;color:var(--aqua);margin-top:3px;line-height:1.5}
.evRow.on,.evRow:target{background:rgba(232,184,115,.08);border-radius:10px}
.evRow:hover{background:rgba(232,184,115,.05)}
.evRow:hover .evT{color:var(--gold)}
@media(max-width:560px){.evRow{grid-template-columns:1fr;gap:2px}.evRow .yr{text-align:left}}
/* the event page */
.evTop{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0 2px}
.evTop .eyebrow{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);font-weight:600}
.srcQuote{margin:0 0 14px;padding:16px 18px;border-left:2px solid rgba(91,227,213,.5);
  background:rgba(13,18,40,.6);border-radius:0 14px 14px 0;max-width:68ch}
.srcQuote p{margin:0;font-size:15.5px;line-height:1.7;font-weight:300;color:#DDE3F5}
.srcQuote footer{margin-top:8px;font-size:11.5px;color:rgba(142,153,194,.85)}
.srcQuote footer b{color:var(--gold);font-weight:600}
.quote.noDate{border-color:rgba(142,153,194,.35);box-shadow:none;font-size:14.5px;max-width:68ch}
.quote.noDate b{color:var(--starlight);font-weight:600}
.apoDoor{display:block;padding:9px 0;border-bottom:1px solid rgba(142,153,194,.12);color:inherit}
.apoDoor:last-child{border-bottom:0}
.apoDoor b{display:block;font-size:13.5px;color:var(--starlight);font-weight:500}
.apoDoor span{font-size:11.5px;color:var(--faint)}
.apoDoor:hover{text-decoration:none}
.apoDoor:hover b{color:var(--gold)}
/* the maps */
.mapBig{border-color:rgba(142,153,194,.3);border-radius:22px;margin:26px 0 2px}
.mapBig svg{width:100%;height:auto}
.mapBig text{pointer-events:none}
.mapBig a text{pointer-events:auto}
/* the stop list */
.stopList{display:flex;flex-direction:column}
.stopRow{display:flex;gap:14px;padding:11px 4px;border-bottom:1px solid rgba(142,153,194,.14)}
.stopRow:last-child{border-bottom:0}
.stopRow>b{font-family:var(--font-display);font-size:12px;color:var(--gold);min-width:22px;flex:none;padding-top:2px}
.stopBody{min-width:0;flex:1}
.stopHead{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:15px;color:var(--starlight)}
.stopHead a{color:var(--starlight)}
.stopHead a:hover{color:var(--gold)}
.stopRefs{margin-left:auto;font-size:12px;color:var(--faint);white-space:nowrap}
.stopTxt{margin:4px 0 0;font-size:13px;line-height:1.55;color:#B4BDDD;font-weight:300}
.stopRow:target{background:rgba(232,184,115,.08);border-radius:10px}
/* the layer cards: the map bleeds to the edge, the title sits on a scrim */
.layerGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:18px;margin-top:16px}
.layerTile{position:relative;display:block;border-radius:18px;overflow:hidden;background:#070B1C;
  border:1px solid rgba(142,153,194,.2);color:var(--starlight);transition:border-color .2s,transform .2s}
.layerTile .ltMap{display:block}
.layerTile .ltMap svg{display:block;width:100%;height:auto}
.layerTile .ltBody{position:absolute;left:0;right:0;bottom:0;display:block;padding:46px 18px 16px;
  background:linear-gradient(180deg,transparent,rgba(4,6,15,.94) 58%)}
.layerTile b{display:block;font-family:var(--font-display);font-size:17px;letter-spacing:.04em;font-weight:600}
.layerTile .ltN{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--lc,#8E99C2);margin:5px 0 0}
.layerTile small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:12px;line-height:1.5;color:rgba(180,189,221,.85);font-weight:300;margin-top:6px}
.layerTile:hover{text-decoration:none;border-color:var(--lc,#E8B873);transform:translateY(-2px)}
/* the featured journey */
.heroMap{position:relative;border-radius:22px;overflow:hidden;border:1px solid rgba(232,184,115,.3);
  background:#070B1C;margin-top:26px;display:block;color:var(--starlight)}
.heroMap .ltMap{display:block}
.heroMap svg{display:block;width:100%;height:auto}
.heroMap .cap{position:absolute;left:0;right:0;bottom:0;padding:56px 26px 22px;
  background:linear-gradient(180deg,transparent,rgba(4,6,15,.94) 60%)}
.heroMap .cap .eyebrow{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);font-weight:600}
.heroMap .cap b{display:block;font-family:var(--font-display);font-size:clamp(19px,2.4vw,26px);
  letter-spacing:.04em;margin-top:6px;font-weight:600}
.heroMap .cap span{display:block;margin-top:4px;font-size:13px;color:#B4BDDD;font-weight:300}
.heroMap:hover{text-decoration:none;border-color:var(--gold)}
/* the wide layout — the band and the maps want the room */
.refPage.wide .wwrap{max-width:1360px}
.refPage.wide .wfoot{max-width:1360px}

@media(max-width:1200px){.refPage.wide .wwrap{max-width:1100px}}
@media(max-width:900px){
  .wwrap{grid-template-columns:1fr;gap:24px;padding:0 16px 60px}
  .wrail{position:static}
  .onthis{position:static;max-height:none}
  .whero.art{grid-template-columns:minmax(0,1fr)}
  .wart-hero{max-width:340px}
  .wbar{gap:10px;padding:0 14px}.wbar .site{display:none}.wsearch{max-width:none}
  /* the section pills are a row that scrolls rather than one that spills
     past the edge and is clipped by the wrapper's overflow */
  .wnav{margin-left:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    max-width:100%;padding-bottom:2px}
  .wnav::-webkit-scrollbar{display:none}
  .wnav .pill{padding:5px 9px;font-size:11px;flex:none}
  .refGrid{grid-template-columns:1fr}
  .fact{padding:16px 0 10px;border-right:0;border-bottom:1px solid rgba(142,153,194,.14)}
  .fact:last-child{border-bottom:0}
  .pullq{padding:30px 22px 24px 50px}
  .sky{height:420px}
}
@media(max-width:600px){
  .wbar{height:auto;flex-wrap:wrap;padding:10px 14px}
  .wsearch{order:3;flex-basis:100%}
  .kv{grid-template-columns:1fr;gap:2px 0}.kv .k{padding-top:8px}
  .bigsearch{height:56px;padding:0 14px}.bigsearch input{font-size:15px}
  .letters a{width:36px;height:36px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .bookTile:hover,.layerTile:hover{transform:none}
}
