/* atlas_library.css - the full Atlas in the house's own look (Claude for Codex, 2026-10-11).
   Load AFTER /assets/site.css. Night, vellum, one old gold (DESIGN.md). It styles:
   1. the library chrome (Codex's page(): nav, h1, .notice, .grid, .card, .point, .sources, footer);
   2. the hub dossiers' own classes, so their blocks keep their shape: .abstract, .vitals, .prose,
      .pull, .timeline, .ledger/.col, .orbit, .assess, .gloss, .fields-h/.field, table.cmp, .research-point;
   3. the deck (suits, pips, portraits, re-check stamps), the field files, the Rings and the Web.
   Nothing folds (no drop-downs). AA contrast for anything a reader must read: --ink, or --dim at the least. */

:root { --gold-dim: #8f7d55; --red: #b9715f; --hold: rgba(201,179,126,.05); }

/* ---- 1. the library chrome ------------------------------------------------------------------- */
body.lib main, main.lib { max-width: 66rem; margin: 0 auto; padding: 0 16px 40px; }
main.lib > nav[aria-label="Breadcrumb"], body.lib main > nav[aria-label="Breadcrumb"] {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding: calc(14px + env(safe-area-inset-top)) 0 14px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
main.lib > nav a, body.lib main > nav a { color: var(--dim); text-decoration: none; }
main.lib > nav a:hover, body.lib main > nav a:hover { color: var(--ink); }
main.lib > h1, body.lib main > h1 { font-weight: 300; font-size: clamp(2rem, 6.4vw, 3.1rem); line-height: 1.15; margin: 4vh 0 16px; text-align: center; text-wrap: balance; }
main.lib h2 { font-family: var(--sc); font-weight: 400; letter-spacing: .2em; font-size: 1.2rem; color: var(--gold); margin: 0 0 14px; }
main.lib section { border-top: 1px solid var(--line); padding: 30px 0 26px; scroll-margin-top: 16px; }
main.lib p { font-size: 1.12rem; line-height: 1.62; font-weight: 300; }
main.lib p + p { margin-top: 10px; }
main.lib a { text-underline-offset: 4px; text-decoration-color: var(--faint); }
main.lib a:hover { text-decoration-color: var(--gold); }
main.lib .notice { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--gold);
  background: var(--hold); color: var(--ink); font-size: 1.05rem; }
main.lib .quiet { color: var(--dim); font-style: italic; }
main.lib small, main.lib .meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
main.lib .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 14px; margin: 18px 0; }
main.lib .card { border: 1px solid var(--faint); border-top: 2px solid var(--gold); background: var(--card); padding: 18px; overflow-wrap: anywhere; }
main.lib .card h2, main.lib .card h3 { margin: 6px 0 8px; font-family: var(--serif); letter-spacing: 0; color: var(--ink); font-weight: 400; font-size: 1.3rem; }
main.lib .card h2 a, main.lib .card h3 a { color: var(--ink); text-decoration: none; }
main.lib .card p { font-size: 1.02rem; line-height: 1.5; }
main.lib .point { margin: 18px 0; }
main.lib .point h3 { font-family: var(--sc); font-weight: 400; letter-spacing: .14em; font-size: .98rem; color: var(--gold); margin-bottom: 4px; }
main.lib .sources, main.lib .srcs { list-style: none; margin: 10px 0 0; padding: 0; font-size: .95rem; line-height: 1.45; }
main.lib .sources li, main.lib .srcs li { margin: 4px 0; padding-left: 14px; position: relative; overflow-wrap: anywhere; }
main.lib .sources li::before, main.lib .srcs li::before { content: "·"; position: absolute; left: 2px; color: var(--gold); }
main.lib .sources a, main.lib .srcs a { color: var(--dim); }
main.lib .sources a:hover, main.lib .srcs a:hover { color: var(--ink); }
main.lib input[type=search] { width: 100%; background: #0b0b0a; color: var(--ink); border: 1px solid var(--faint); padding: 12px 14px; font: 400 1.12rem/1.4 var(--serif); }
main.lib input[type=search]:focus { outline: none; border-color: var(--gold); }
main.lib label { font-family: var(--sc); letter-spacing: .2em; font-size: .85rem; color: var(--dim); display: block; margin: 18px 0 6px; }
main.lib > footer, body.lib footer.hand { margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--line); text-align: center;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); line-height: 1.8; }
[hidden] { display: none !important; }

/* contents strip: every section of a dossier, laid open, numbered */
main.lib nav.contents { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0 8px; }
main.lib nav.contents a { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  text-decoration: none; border: 1px solid var(--line); padding: 7px 10px; }
main.lib nav.contents a b { color: var(--gold-dim); font-weight: 400; margin-right: 6px; }
main.lib nav.contents a:hover, main.lib nav.contents a:focus-visible { color: var(--ink); border-color: var(--gold); outline: none; }

/* ---- the dossier head (class bar, kicker, native name, creed, Executive Read) ------------------- */
.dhead { text-align: center; margin: 2vh 0 10px; }
.dhead .classbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; text-align: left;
  border: 1px solid var(--line); border-left: 2px solid var(--gold); padding: 8px 12px; margin-bottom: 22px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dhead .classbar span + span { color: var(--dim); }
.dhead .kicker { display: block; }
.dhead .native { color: var(--dim); font-style: italic; font-size: 1.15rem; margin-top: 10px; }
.dhead .creed { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; color: var(--gold); margin-top: 10px; line-height: 1.7; text-transform: uppercase; }
.dhead .counts { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--dim); margin-top: 14px; text-transform: uppercase; }
.abstract { margin: 22px auto 0; max-width: 46rem; text-align: left; padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--gold);
  background: var(--hold); font-size: 1.12rem; line-height: 1.62; font-weight: 300; }
.abstract .lbl { display: block; font-family: var(--sc); letter-spacing: .2em; color: var(--gold); font-size: .9rem; margin-bottom: 6px; }
.abstract b { font-weight: 500; }

/* ---- 2. the hub dossiers' own classes ----------------------------------------------------------- */
main.lib b, main.lib strong { font-weight: 500; color: var(--ink); }
main.lib em { font-style: italic; }
main.lib code { font-family: var(--mono); font-size: .85em; color: var(--dim); }
main.lib ul, main.lib ol { margin: 8px 0 14px; padding-left: 1.2em; }
main.lib li { font-size: 1.08rem; line-height: 1.55; font-weight: 300; margin: 6px 0; }
main.lib section h3 { font-family: var(--sc); font-weight: 400; letter-spacing: .14em; font-size: 1.02rem; color: var(--gold); margin: 22px 0 8px; }
main.lib section h4 { font-family: var(--mono); font-weight: 400; letter-spacing: .14em; font-size: .72rem; color: var(--gold); text-transform: uppercase; margin: 18px 0 6px; }
.prose p.lead::first-letter, p.lead::first-letter { float: left; font-size: 3.1rem; line-height: .82; color: var(--gold); padding: 6px 8px 0 0; font-weight: 400; }

.vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 10px; margin: 6px 0; }
.vitals.tally { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
.vitals.tally .vital { padding: 10px 8px; }
.vital { border: 1px solid var(--line); background: var(--card); padding: 12px 14px; }
.vital .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.vital .v { font-size: 1.06rem; line-height: 1.45; margin-top: 4px; }
.vital .v small { display: block; font-family: var(--serif); letter-spacing: 0; text-transform: none; font-size: .95rem; color: var(--dim); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 4px 8px; }

.pull, main.lib blockquote { margin: 18px 0; padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--hold); font-style: italic; font-size: 1.15rem; line-height: 1.6; }
.pull cite, main.lib blockquote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.timeline { margin: 8px 0; border-left: 1px solid var(--faint); }
.tl { position: relative; padding: 2px 0 14px 20px; }
.tl::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; background: var(--faint); transform: rotate(45deg); }
.tl.g::before { background: var(--gold); }
.tl.b::before { background: var(--red); }
.tl .yr { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--gold); }
.tl .ev { font-size: 1.06rem; line-height: 1.5; margin-top: 2px; }

.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.col { border: 1px solid var(--line); background: var(--card); padding: 14px 16px; border-top: 2px solid var(--faint); }
.col.help, .col.us { border-top-color: var(--gold); }
.col.hurt { border-top-color: var(--red); }
.col.them { border-top-color: var(--gold-dim); }
.col .ch { font-family: var(--sc); letter-spacing: .16em; font-size: .95rem; margin-bottom: 8px; color: var(--gold); }
.col.hurt .ch { color: var(--red); }
.col ul { list-style: none; padding: 0; margin: 0; }
.col li { position: relative; padding-left: 16px; font-size: 1.04rem; }
.col.help li::before, .col.us li::before { content: "+"; position: absolute; left: 0; color: var(--gold); }
.col.hurt li::before { content: "\2212"; position: absolute; left: 0; color: var(--red); }
.col.them li::before { content: "\00b7"; position: absolute; left: 2px; color: var(--gold-dim); }

.orbit { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.orbit-row { border: 1px solid var(--line); border-left: 2px solid var(--faint); background: var(--card); padding: 12px 16px; }
.orbit-row.up { border-left-color: var(--gold); } .orbit-row.mid { border-left-color: var(--gold-dim); }
.orbit-row .lvl { font-family: var(--sc); letter-spacing: .16em; font-size: .92rem; color: var(--gold); margin-bottom: 6px; }
.orbit-row.down .lvl { color: var(--dim); }

.assess { margin: 14px 0; border: 1px solid var(--gold-dim); background: var(--hold); padding: 14px 16px; }
.assess.warn { border-color: #5a2a22; background: rgba(122,52,40,.08); }
.assess .h { font-family: var(--sc); letter-spacing: .16em; font-size: .95rem; color: var(--gold); margin-bottom: 6px; }
.assess.warn .h { color: var(--red); }

.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 10px 22px; margin: 8px 0; }
.gloss dl { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0; }
.gloss dt { font-family: var(--sc); letter-spacing: .08em; color: var(--gold); font-size: 1.02rem; }
.gloss dd { font-size: 1.02rem; line-height: 1.5; margin: 2px 0 0; font-weight: 300; }

.fields-h { text-align: center; border-top: 1px solid var(--gold-dim); padding-top: 18px; margin: 6px 0 10px; }
.fields-h .ft { font-family: var(--sc); letter-spacing: .3em; color: var(--gold); font-size: 1.05rem; }
.fields-h .fd { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.field { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; margin: 14px 0; }
.field .fh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.field .fi { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--gold); }
.field .fn { font-family: var(--sc); letter-spacing: .08em; font-size: 1.15rem; }
.field .fs { color: var(--dim); font-style: italic; }
.field .take { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--gold); background: var(--hold); }

.cmp-wrap { overflow-x: auto; margin: 10px 0; }
main.lib table { border-collapse: collapse; font-size: 1rem; min-width: 32rem; }
main.lib th, main.lib td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.4; }
main.lib th { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.cmp-note, .cmp-hint { color: var(--dim); font-style: italic; font-size: 1rem; }

.research-point { padding: 12px 0 14px; border-bottom: 1px dashed var(--line); }
.research-point h3 { margin-top: 4px !important; }
.source, .source.muted, p.muted { color: var(--dim); font-size: .95rem !important; overflow-wrap: anywhere; }
.badge { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 4px 8px; }
.rules { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: var(--hold); font-size: 1.04rem; line-height: 1.6; }
.rules .lbl { display: block; font-family: var(--sc); letter-spacing: .18em; color: var(--gold); margin-bottom: 6px; }
.rules .stamp, .stamp { color: var(--dim); }
.deck-title { font-family: var(--serif) !important; font-weight: 300 !important; font-size: 1.8rem !important; letter-spacing: 0 !important; color: var(--ink) !important; margin: 6px 0 2px !important; }
.sub { color: var(--dim); font-style: italic; }
.amen { display: block; margin-top: 8px; font-family: var(--sc); letter-spacing: .2em; color: var(--gold); }
.mk-star { color: var(--gold); } .mk-warn { color: var(--red); }

/* ---- 3. the deck --------------------------------------------------------------------------------- */
.deck-head { text-align: center; margin-bottom: 10px; }
.suit-h { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 12px; border-bottom: 1px solid var(--faint); padding-bottom: 8px; flex-wrap: wrap; }
.suit-h .g { font-size: 1.4rem; color: var(--ink); } .suit-h .g.red { color: var(--red); }
.suit-h .t { font-family: var(--sc); letter-spacing: .22em; color: var(--gold); font-size: 1.1rem; }
.suit-h .d { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 14px; }
.lcard { position: relative; border: 1px solid var(--faint); background: var(--card); padding: 16px 16px 14px; overflow-wrap: anywhere; scroll-margin-top: 16px; }
.lcard:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.lcard .pip { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: .9rem; color: var(--ink); }
.lcard.red .pip { color: var(--red); }
.lcard figure { margin: 0 0 12px; display: flex; gap: 12px; align-items: flex-end; }
.lcard figure img { width: 84px; height: 104px; object-fit: cover; border: 1px solid var(--faint); filter: grayscale(.25) contrast(1.02); flex: none; background: #111; }
.lcard figure figcaption { font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; color: var(--dim); line-height: 1.5; }
.lcard figure figcaption a { color: var(--dim); }
.lcard .mono { width: 84px; height: 104px; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--sc); font-size: 1.6rem; color: var(--gold-dim); flex: none; }
.lcard h3 { font-family: var(--serif) !important; font-size: 1.3rem !important; letter-spacing: 0 !important; color: var(--ink) !important; margin: 0 40px 4px 0 !important; font-weight: 400 !important; }
.lcard .meta { display: block; margin-bottom: 8px; line-height: 1.5; }
.lcard .txt { font-size: 1.02rem !important; line-height: 1.55 !important; }
.lcard .stamp { display: block; margin-top: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.lcard .stamp.changed { color: var(--gold); } .lcard .stamp.unconfirmed { color: var(--red); }
.lcard .recheck { margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--red); background: rgba(122,52,40,.07); font-size: .98rem; line-height: 1.5; }
.lcard .file { display: inline-block; margin-top: 10px; font-family: var(--sc); letter-spacing: .14em; font-size: .9rem; color: var(--gold); text-decoration: none; }
.lcard .file:hover { text-decoration: underline; }
.deck-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); text-align: center; font-size: 1.02rem; line-height: 1.6; }

/* ---- the field files ------------------------------------------------------------------------------ */
.pf-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; margin: 2vh 0 12px; }
.pf-head figure { margin: 0; width: 160px; }
.pf-head figure img { width: 160px; height: 200px; object-fit: cover; border: 1px solid var(--faint); }
.pf-head figcaption { font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; color: var(--dim); margin-top: 6px; line-height: 1.5; }
.pf-head figcaption a { color: var(--dim); }
.pf-head .legal { color: var(--dim); font-style: italic; }
.pf-head .standing { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--gold); margin-top: 10px; line-height: 1.6; }
.pf-sec dl { margin: 0; }
.pf-sec .pt { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-sec .pt dt { font-family: var(--sc); letter-spacing: .08em; color: var(--gold); font-size: 1rem; }
.pf-sec .pt dd { margin: 0; font-size: 1.06rem; line-height: 1.55; font-weight: 300; }
.flag { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); padding: 1px 6px; vertical-align: middle; }
.flag.unverified { color: var(--red); border-color: #5a2a22; } .flag.star { color: var(--gold); }
.pins { list-style: none; padding: 0; counter-reset: pin; }
.pins li { counter-increment: pin; padding: 8px 0 8px 34px; position: relative; border-bottom: 1px solid var(--line); }
.pins li::before { content: counter(pin); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--mono); font-size: .7rem; display: grid; place-items: center; }
.pins .pl { font-family: var(--sc); letter-spacing: .08em; } .pins .yrs { font-family: var(--mono); font-size: .68rem; color: var(--dim); margin-left: 8px; }

/* ---- the Rings and the Web ---------------------------------------------------------------------- */
.ringmap { margin: 10px 0 20px; }
.ringmap svg { width: 100%; height: auto; max-height: 80vh; }
.ringmap .orbit-c { fill: none; stroke: var(--faint); } .ringmap .orbit-c.faint { stroke: var(--line); }
.ringmap .tie { fill: none; stroke: var(--gold-dim); stroke-width: 1; opacity: .45; }
.ringmap a circle { fill: var(--card); stroke: var(--dim); stroke-width: 1.2; }
.ringmap a.housed circle { stroke: var(--gold); }
.ringmap a:hover circle, .ringmap a:focus circle { fill: #1a1813; stroke: var(--ink); }
.ringmap .num { font-family: var(--mono); font-size: 11px; fill: var(--ink); }
.ringmap .lab { font-family: var(--serif); font-size: 15px; fill: var(--dim); }
.ringmap .core { font-size: 30px; fill: var(--gold); } .ringmap .core-lab { font-family: var(--mono); font-size: 10px; letter-spacing: 3px; fill: var(--dim); }
.ringmap figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.body-fields .pt { grid-template-columns: minmax(9rem, 13rem) 1fr; }
.tierow { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tierow a, .tierow span { font-size: 1rem; border: 1px solid var(--line); padding: 4px 10px; text-decoration: none; color: var(--ink); }
.tierow a:hover { border-color: var(--gold); }
.tierow .file-mark { color: var(--gold); margin-left: 4px; }

@media (max-width: 640px) {
  .ledger { grid-template-columns: 1fr; }
  .pf-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pf-sec .pt { grid-template-columns: 1fr; }
  .lcard figure img, .lcard .mono { width: 72px; height: 90px; }
}
@media print {
  .grain, nav.contents, main.lib > nav, .topbar { display: none !important; }
  body, main.lib { background: #fff !important; color: #000 !important; }
}

/* 10-11: "it won't open when I click on the tiles" -- the whole tile is the link, not only its title */
main.lib .card { position: relative; cursor: pointer; transition: border-color .3s, background .3s; }
main.lib .card h3 a::after, main.lib .card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
main.lib .card:hover, main.lib .card:focus-within { border-color: var(--gold); background: #13120f; }
main.lib .card a:focus-visible { outline: none; }

/* 10-27 look pass (asked: "make it look better, same vibe"): a hall of even shelves. Each card shows the first lines
   of its study and a quiet foot; the whole study is one tap away. Same gold rule, same type; less wall. */
main.lib .grid .card { display: flex; flex-direction: column; }
main.lib .grid .card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
  color: #cfc8b8; }
main.lib .grid .card p .mk-warn, main.lib .grid .card p .mk-star { color: var(--gold); opacity: .7; }
main.lib .grid .card small:last-child, main.lib .grid .card > :last-child:not(p):not(h3) { margin-top: auto; padding-top: 12px; }
main.lib .grid .card small:first-child { font-family: var(--sc); letter-spacing: .22em; color: var(--gold); opacity: .8; }
main.lib .grid .card:hover p, main.lib .grid .card:focus-within p { color: var(--ink); }
main.lib .grid .card::after { content: "Read the study \2192"; display: block; margin-top: 10px; font-family: var(--sc); letter-spacing: .2em;
  font-size: .78rem; color: var(--dim); transition: color .3s; }
main.lib .grid .card:hover::after, main.lib .grid .card:focus-within::after { color: var(--gold); }

/* 10-27 look pass, the dossier pages (asked: "make it look better, same vibe"): a book's measure. Running prose is set
   about seventy letters wide and centred, the bold eased to a quieter weight, each section head set between hairlines. */
main.lib .prose, main.lib section > p, main.lib .assess, main.lib .take, main.lib section > blockquote { max-width: 44rem; margin-left: auto; margin-right: auto; }
main.lib .prose b, main.lib .prose strong, main.lib section > p b, main.lib section > p strong, main.lib .take b, main.lib .assess b { font-weight: 500; color: #f3ecdd; }
main.lib section > h2 { display: flex; align-items: center; gap: 14px; }
main.lib section > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,179,126,.4), transparent); }
main.lib .prose p, main.lib section > p { line-height: 1.68; }

/* ---- the workbench (10-28): "Work this card", and the panel it opens (atlas_work.js) ---- */
.lcard .work-btn { display: block; margin-top: 12px; width: 100%; padding: 8px 10px; background: transparent; color: var(--gold);
  border: 1px solid var(--faint); font: 400 .95rem/1.2 var(--sc); letter-spacing: .14em; cursor: pointer; }
.lcard .work-btn:hover, .lcard .work-btn:focus-visible { border-color: var(--gold); color: var(--ink); outline: none; }
dialog.work { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 24px 20px;
  background: var(--card); color: var(--ink); border: 1px solid var(--faint); border-top: 2px solid var(--gold); font: 400 1.05rem/1.55 var(--serif); }
dialog.work::backdrop { background: rgba(5,5,5,.82); }
dialog.work .lbl { font-family: var(--sc); letter-spacing: .2em; color: var(--gold); margin: 0; }
dialog.work h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 2px 0 8px; color: var(--ink); letter-spacing: 0; }
dialog.work .work-x { position: absolute; top: 8px; right: 10px; margin: 0; }
dialog.work .work-x button { background: none; border: 0; color: var(--dim); font-size: 1.6rem; cursor: pointer; line-height: 1; }
dialog.work .work-x button:hover { color: var(--ink); }
dialog.work .work-why { color: var(--ink); margin: 0 0 14px; }
dialog.work fieldset { border: 1px solid var(--line); padding: 10px 14px; margin: 0 0 14px; }
dialog.work legend { font-family: var(--sc); letter-spacing: .14em; color: var(--gold-dim); padding: 0 6px; }
dialog.work fieldset label { display: block; padding: 3px 0; cursor: pointer; }
dialog.work ol.work-steps { margin: 0; padding-left: 1.4em; }
dialog.work ol.work-steps > li { margin: 0 0 16px; }
dialog.work ol.work-steps > li > span { display: block; margin-bottom: 6px; }
dialog.work textarea, dialog.work input:not([type=radio]) { width: 100%; box-sizing: border-box; background: #0b0b0a; color: var(--ink);
  border: 1px solid var(--faint); padding: 10px 12px; font: 400 .98rem/1.45 var(--serif); }
dialog.work textarea.work-prompt { font: 400 .8rem/1.5 var(--mono); color: var(--dim); }
dialog.work textarea:focus, dialog.work input:focus { outline: none; border-color: var(--gold); }
dialog.work label { display: block; margin: 6px 0; color: var(--dim); }
dialog.work .work-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
dialog.work button.work-copy, dialog.work button.work-send { margin-top: 8px; padding: 9px 16px; background: transparent; color: var(--gold);
  border: 1px solid var(--gold); font: 400 1rem/1.2 var(--sc); letter-spacing: .14em; cursor: pointer; }
dialog.work button.work-copy:hover, dialog.work button.work-send:hover { background: var(--hold); color: var(--ink); }
dialog.work button:disabled { opacity: .5; cursor: default; }
dialog.work .work-said { min-height: 1.5em; color: var(--gold); margin: 4px 0 8px; }
dialog.work .fine { font-size: .9rem; color: var(--dim); }

/* ---- the numbers (10-28): population, fertility, kept, 2076, each with its year and source ---- */
main.lib table.numbers { width: 100%; min-width: 0; border-collapse: collapse; margin: 6px 0 4px; font-size: 1.02rem; }
main.lib table.numbers th { text-align: left; vertical-align: top; width: 34%; padding: 10px 12px 10px 0; font: 400 .98rem/1.3 var(--sc); letter-spacing: .1em; color: var(--gold); border-top: 1px solid var(--line); }
main.lib table.numbers td { vertical-align: top; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
main.lib table.numbers td b { font-weight: 400; font-size: 1.15rem; }
main.lib table.numbers .yr, main.lib table.numbers .nt { color: var(--dim); }
/* 10-31 audit: on a phone each label sits above its value, so the table never pushes the page sideways */
@media (max-width: 600px) { main.lib table.numbers, main.lib table.numbers tbody, main.lib table.numbers tr, main.lib table.numbers th, main.lib table.numbers td { display: block; width: auto; }
  main.lib table.numbers th { padding: 10px 0 2px; } main.lib table.numbers td { border-top: 0; padding: 0 0 10px; } }
main.lib table.numbers .from, main.lib table.numbers .from a { color: var(--dim); font: 400 .92rem/1.4 var(--serif); letter-spacing: 0; text-transform: none; }
main.lib table.numbers td.nm { color: var(--dim); font-style: italic; }
main.lib div.older { margin-top: 10px; color: var(--dim); }
main.lib div.older .lbl { font-family: var(--sc); letter-spacing: .12em; color: var(--gold-dim); }
@media (max-width: 560px) { main.lib table.numbers th, main.lib table.numbers td { display: block; width: auto; padding: 6px 0; } main.lib table.numbers td { border-top: 0; padding-bottom: 12px; } }

/* ---- The Canon (10-28): wide comparison tables scroll inside their own frame; the tree keeps its lines ---- */
main.lib .tablewrap { overflow-x: auto; border: 1px solid var(--line); }
main.lib table.canon { border-collapse: collapse; min-width: 900px; font-size: .95rem; }
main.lib table.canon th { position: sticky; top: 0; background: var(--card); text-align: left; padding: 8px 10px; font: 400 .9rem/1.3 var(--sc); letter-spacing: .1em; color: var(--gold); border-bottom: 1px solid var(--faint); }
main.lib table.canon td { vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.45; }
main.lib pre.tree { overflow-x: auto; font: 400 .8rem/1.5 var(--mono); color: var(--ink); background: #0b0b0a; border: 1px solid var(--line); padding: 14px; }
main.lib ul.gloss { columns: 2 320px; column-gap: 28px; padding-left: 1.1em; }
main.lib ul.gloss li { break-inside: avoid; margin: 0 0 8px; line-height: 1.45; }

/* ---- The Cult Dossier (10-28): one person per block, under its group ---- */
main.lib article.person { border-top: 1px solid var(--line); padding: 18px 0 8px; }
main.lib article.person h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin: 0 0 4px; letter-spacing: 0; }
main.lib article.person .meta { color: var(--dim); }

/* 11-02: every page needs a way home, and on a phone the header ate the first screen. */
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-home { color: var(--gold); }
@media (max-width: 640px) {
  .topbar { padding: calc(8px + env(safe-area-inset-top)) 14px 8px; font-size: .72rem; letter-spacing: .12em; }
  .topbar .crumb { display: none; }
  .dhead .kicker { font-size: .66rem; }
  .dhead h1 { font-size: 1.75rem !important; margin: 8px 0 4px !important; }
  .dhead .counts { font-size: .68rem; letter-spacing: .08em; }
  .dhead .classbar, .dhead .creed { font-size: .8rem; }
  .doors { grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-top: 12px !important; }
  .doors .card { padding: 10px 12px !important; min-height: 0 !important; }
  .doors .card > :not(h3) { display: none !important; }
  .doors .card::after, .doors .card h3::after { display: none !important; }
  .doors .card h3 { font-size: 1rem !important; margin: 0 !important; }
}

/* 11-03 (asked: "more advanced insight into how everything is working"): the Rings and the Web's own room.
   A layer strip (how the parts of the Atlas hold one another) and plain bars, each row a link back into the Atlas. */
main.lib .layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 18px 0;
  border: 1px solid var(--faint); }
main.lib .layer { padding: 16px 14px; border-right: 1px solid var(--faint); position: relative; text-decoration: none; color: inherit; }
main.lib .layer:nth-child(3n) { border-right: 0; } main.lib .layer:nth-child(-n+3) { border-bottom: 1px solid var(--faint); }
@media (min-width: 1000px) { main.lib .layers { grid-template-columns: repeat(6, 1fr); } main.lib .layer { border-bottom: 0 !important; border-right: 1px solid var(--faint); } main.lib .layer:last-child { border-right: 0; } }
main.lib .layer b { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 400; color: var(--gold); line-height: 1.1; }
main.lib .layer span { display: block; font-family: var(--sc); letter-spacing: .14em; font-size: .9rem; margin-top: 4px; }
main.lib .layer i { display: block; font-style: normal; color: var(--dim); font-size: .92rem; margin-top: 6px; line-height: 1.35; }
main.lib a.layer:hover { background: var(--hold); }
main.lib .bars { list-style: none; margin: 14px 0; padding: 0; }
main.lib .bars li { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr 3rem; gap: 12px; align-items: center; padding: 5px 0;
  border-bottom: 1px solid rgba(201,179,126,.07); }
main.lib .bars .bar { height: 8px; background: linear-gradient(90deg, var(--gold), rgba(201,179,126,.35)); min-width: 3px; }
main.lib .bars .n { font-family: var(--mono); font-size: .8rem; color: var(--gold); text-align: right; }
main.lib .bars .why { grid-column: 1 / -1; color: var(--dim); font-size: .9rem; margin-top: -2px; }
main.lib .insight { font-size: 1.12rem; margin: 6px 0 12px; }
main.lib .insight b { color: var(--gold); font-weight: 400; }
@media (max-width: 560px) {
  main.lib .layers { grid-template-columns: 1fr; } main.lib .layer { border-right: 0; border-bottom: 1px solid var(--faint); }
  main.lib .layer:last-child { border-bottom: 0; }
  main.lib .bars li { grid-template-columns: 1fr 2.5rem; }
  main.lib .bars .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* 11-03 ("all full go"): the map of the Web, the tree's links, and the way in to the map */
main.lib a.w-call { display: block; margin: 22px 0; padding: 18px 20px; border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(201,179,126,.08), transparent 70%); text-decoration: none; color: inherit; }
main.lib a.w-call b { display: block; font-family: var(--sc); font-weight: 400; letter-spacing: .2em; color: var(--gold); font-size: 1.1rem; }
main.lib a.w-call span { display: block; margin-top: 6px; color: var(--ink); }
main.lib a.w-call:hover { background: linear-gradient(90deg, rgba(201,179,126,.14), transparent 80%); }
main.lib pre.tree a.t-faith { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 1px dotted var(--gold-dim); }
main.lib pre.tree a.t-faith:hover { border-bottom-style: solid; }
main.lib pre.tree .t-when { color: #e7cf8f; }
main.lib pre.tree .t-root { color: var(--gold); letter-spacing: .08em; }
main.lib .w-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 16px 0; }
main.lib #webkinds { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
main.lib #webkinds input { accent-color: #c9b37e; }
main.lib .w-path { display: flex; flex-wrap: wrap; gap: 8px; }
main.lib .w-path input { width: 13rem; max-width: 100%; background: #0b0b0a; color: var(--ink); border: 1px solid var(--faint); padding: 8px 10px; font: 400 1rem/1.3 var(--serif); }
main.lib .w-path button { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); padding: 8px 14px; font: 400 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
main.lib .w-path button:hover { background: rgba(201,179,126,.08); }
main.lib .w-stage { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 16px; align-items: start; }
main.lib #webmap { width: 100%; height: auto; background: #070706; border: 1px solid var(--line); touch-action: manipulation; }
main.lib #webpanel { border: 1px solid var(--faint); border-top: 2px solid var(--gold); background: var(--card); padding: 14px 16px; max-height: 760px; overflow-y: auto; }
main.lib #webpanel h3 { margin: 0 0 4px; }
main.lib .w-list { margin: 10px 0 0; padding-left: 1.1rem; }
main.lib .w-list li { margin: 0 0 10px; line-height: 1.4; }
#webmap .w-tie { stroke: rgba(201,179,126,.22); stroke-width: .8; }
#webmap .w-tie.t-funds, #webmap .w-tie.t-runs, #webmap .w-tie.t-held { stroke: rgba(126,201,160,.35); }
#webmap .w-tie.t-tie, #webmap .w-tie.t-housed { stroke: rgba(150,170,230,.35); }
#webmap .w-tie.inferred { stroke-dasharray: 3 3; }
#webmap .w-tie.lit { stroke: #f3e3b0; stroke-width: 2; }
#webmap .w-tie.dim { opacity: .12; }
#webmap .w-node { cursor: pointer; }
#webmap .w-node circle { stroke: #050505; stroke-width: 1; }
#webmap .k-dossier circle { fill: #c9b37e; } #webmap .k-body circle { fill: #8fa3d9; }
#webmap .k-fund circle { fill: #7ec9a0; } #webmap .k-person circle { fill: #d8d0bd; }
#webmap .w-node text { fill: #c9b37e; font: 400 11px var(--mono, monospace); letter-spacing: .04em; paint-order: stroke; stroke: #070706; stroke-width: 3px; pointer-events: none; }
#webmap .w-node.dim { opacity: .14; }
#webmap .w-node.on circle { stroke: #f3e3b0; stroke-width: 2.5; }
#webmap .w-node:focus-visible circle { stroke: #f3e3b0; stroke-width: 2.5; }
@media (max-width: 900px) { main.lib .w-stage { grid-template-columns: 1fr; } main.lib #webpanel { max-height: none; } }

/* 11-03 (asked: "highly interactive, highly visual ... for all of the data"): the whole Atlas, ring by ring */
main.lib .w-era { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
main.lib .w-era input[type=range] { width: 11rem; accent-color: #c9b37e; }
main.lib #wera-lab { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; max-width: 18rem; }
main.lib #wplay { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); padding: 8px 12px; font: 400 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
main.lib #wlayers { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
main.lib #wlayers input { accent-color: #c9b37e; }
main.lib .lk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.lk-faith { background: #c9b37e; } .lk-dossier { background: #f3e3b0; } .lk-camp { background: #8fa3d9; } .lk-person { background: #d8d0bd; } .lk-fund { background: #7ec9a0; } .lk-cult { background: #b9715f; }
main.lib .w-fig { position: relative; }
main.lib #whole { width: 100%; height: auto; background: radial-gradient(circle at 50% 50%, #12100b 0%, #070706 62%, #050505 100%); border: 1px solid var(--line); touch-action: manipulation; }
main.lib #whint { margin: 6px 0 0; font-size: .95rem; }
#whole .w-orbit { fill: none; stroke: rgba(201,179,126,.09); stroke-width: 1; }
#whole .w-core { fill: #c9b37e; font: 400 30px serif; } #whole .w-core-lab { fill: #8a8478; font: 400 10px var(--mono, monospace); letter-spacing: .3em; }
#whole .w-fam { fill: none; stroke: #c9b37e; stroke-width: 10; stroke-opacity: .28; }
#whole .w-fam-lab { fill: #c9b37e; font: 400 9px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
#whole .w-cfam { fill: none; stroke: #b9715f; stroke-width: 4; stroke-opacity: .3; }
#whole .w-n { cursor: pointer; transition: opacity .25s; }
#whole .w-n circle { stroke: #050505; stroke-width: .8; transition: r .2s; }
#whole .k-faith circle { fill: #c9b37e; } #whole .k-faith.s-extinct circle { fill: #6d6759; } #whole .k-faith.s-revived circle { fill: #8fa3d9; }
#whole .k-dossier circle { fill: #f3e3b0; filter: drop-shadow(0 0 4px rgba(243,227,176,.55)); }
#whole .k-camp circle { fill: #8fa3d9; } #whole .k-person circle { fill: #d8d0bd; opacity: .8; } #whole .k-fund circle { fill: #7ec9a0; }
#whole .k-cult circle { fill: #6e4a3f; } #whole .k-cult.active circle { fill: #e0715a; filter: drop-shadow(0 0 3px rgba(224,113,90,.8)); }
#whole .w-lab { fill: #e9dcb8; font: 400 10.5px var(--mono, monospace); letter-spacing: .03em; paint-order: stroke; stroke: #070706; stroke-width: 3px; pointer-events: none; }
#whole.focus .w-n { opacity: .16; } #whole.focus .w-n.on, #whole.focus .w-n.near { opacity: 1; }
#whole .w-n.on circle { stroke: #f3e3b0; stroke-width: 2.4; }
#whole.searching .w-n:not(.hit) { opacity: .12; } #whole .w-n.hit circle { stroke: #f3e3b0; stroke-width: 2; }
#whole .w-up { fill: none; stroke: #f3e3b0; stroke-width: 1.4; stroke-opacity: .85; }
#whole .w-down { fill: none; stroke: #c9b37e; stroke-width: .8; stroke-opacity: .45; }
#whole .w-tie { fill: none; stroke: #8fa3d9; stroke-width: 1.2; stroke-opacity: .8; } #whole .w-tie.inferred { stroke-dasharray: 3 3; }
#whole .w-links path { animation: wdraw .6s ease-out both; stroke-dasharray: 600; }
#whole .w-links path.inferred { animation: none; stroke-dasharray: 3 3; }
@keyframes wdraw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
main.lib #wpanel { border: 1px solid var(--faint); border-top: 2px solid var(--gold); background: var(--card); padding: 14px 16px; max-height: 860px; overflow-y: auto; }
main.lib #wpanel h4 { font-family: var(--sc); font-weight: 400; letter-spacing: .14em; color: var(--gold); margin: 14px 0 4px; font-size: .9rem; }
main.lib #wpanel .pt { display: grid; grid-template-columns: 7rem 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(201,179,126,.08); }
main.lib #wpanel dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
main.lib #wpanel dd { margin: 0; font-size: .98rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { #whole .w-links path { animation: none; stroke-dasharray: none; } }

#whole .w-isl { fill: none; stroke: #c9b37e; stroke-width: 3; stroke-opacity: .32; stroke-linecap: round; }
#whole .w-isl-lab { fill: #8a8478; font: 400 9px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
main.lib section#picture { border-top: 0; padding-top: 6px; }

/* 11-04 (asked: "make it much better"): the map of the Web, framed, lettered, zoomable */
main.lib .w-mapbox { position: relative; }
main.lib #webmap { cursor: grab; } main.lib #webmap.zoomed { cursor: move; }
#webmap .w-isle { fill: rgba(201,179,126,.025); stroke: rgba(201,179,126,.16); stroke-width: 1; }
#webmap .w-isle-lab { fill: #8a8478; font: 400 10.5px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
#webmap .w-lab { font: 400 10.5px var(--mono, monospace); paint-order: stroke; stroke: #070706; stroke-width: 3px; pointer-events: none; }
#webmap .w-lab.l-dossier { fill: #e9dcb8; font-size: 11.5px; } #webmap .w-lab.l-body { fill: #a9b8e3; } #webmap .w-lab.l-fund { fill: #9fd8b7; } #webmap .w-lab.l-person { fill: #bfb8a7; }
#webmap .w-node.dim .w-lab { opacity: .25; }
main.lib .w-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
main.lib .w-zoom button { width: 34px; height: 34px; background: rgba(7,7,6,.85); color: var(--gold); border: 1px solid var(--gold-dim); font: 400 1.1rem/1 var(--mono); cursor: pointer; }
main.lib .w-zoom button:hover { background: rgba(201,179,126,.12); }
main.lib #w-tip { position: absolute; pointer-events: none; background: rgba(7,7,6,.95); border: 1px solid var(--gold-dim); color: var(--ink); padding: 5px 9px; font: 400 .85rem/1.3 var(--serif); max-width: 22rem; z-index: 2; }
main.lib .w-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lk-body { background: #8fa3d9; } .lk-tie { background: rgba(201,179,126,.6); border-radius: 0 !important; height: 2px !important; width: 16px !important; }
.lk-inf { background: repeating-linear-gradient(90deg, rgba(201,179,126,.7) 0 3px, transparent 3px 6px); border-radius: 0 !important; height: 2px !important; width: 16px !important; }
.lk-money { background: rgba(126,201,160,.8); border-radius: 0 !important; height: 2px !important; width: 16px !important; }
.lk-ring { background: rgba(150,170,230,.8); border-radius: 0 !important; height: 2px !important; width: 16px !important; }

/* 11-04, the Elon lane's cut: the map answers one question at a time */
main.lib .w-look { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
main.lib .w-look input { flex: 1 1 15rem; min-width: 0; background: #0b0b0a; color: var(--ink); border: 1px solid var(--gold-dim); padding: 12px 14px; font: 400 1.12rem/1.3 var(--serif); }
main.lib .w-look button { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); padding: 10px 16px; font: 400 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
main.lib .w-look button[type=submit] { background: rgba(201,179,126,.12); }
main.lib h2.w-h { margin-top: 18px; }
main.lib .w-isles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 10px; margin: 10px 0 22px; }
main.lib .w-isle-card { text-align: left; background: var(--card); border: 1px solid var(--faint); border-top: 2px solid var(--gold-dim); padding: 12px 14px; color: var(--ink); cursor: pointer; }
main.lib .w-isle-card:hover, main.lib .w-isle-card:focus-visible { border-top-color: var(--gold); background: rgba(201,179,126,.06); }
main.lib .w-isle-card b { display: block; font-family: var(--sc); font-weight: 400; letter-spacing: .14em; color: var(--gold); }
main.lib .w-isle-card span { display: block; margin-top: 4px; font: 400 1rem/1.35 var(--serif); }
main.lib .w-isle-card i { display: block; margin-top: 6px; font: normal 400 .66rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
main.lib .w-stage3 { grid-template-columns: 22rem minmax(0, 1fr); }
main.lib #webpanel h4 { font-family: var(--sc); font-weight: 400; letter-spacing: .1em; color: var(--gold); margin: 14px 0 4px; font-size: .92rem; }
main.lib .w-to { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; cursor: pointer; text-align: left; }
main.lib .w-to:hover { text-decoration-color: var(--gold); }
main.lib .w-chain { margin: 10px 0 0; padding-left: 1.3rem; } main.lib .w-chain li { margin-bottom: 12px; line-height: 1.45; }
main.lib .w-note { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--dim); font-style: italic; font-size: .95rem; }
#webmap .w-node.centre circle { r: 15; stroke: #f3e3b0; stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(243,227,176,.6)); }
#webmap .w-node.centre .w-lab { fill: #f3e3b0; font-size: 14px; }
#webmap .w-node.far { opacity: .7; } #webmap .w-node.far .w-lab { font-size: 9.5px; }
#webmap .w-elab { fill: #a39c8e; font: 400 9px var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; paint-order: stroke; stroke: #070706; stroke-width: 3px; pointer-events: none; }
#webmap .w-hitline { stroke: transparent; stroke-width: 12; cursor: pointer; }
#webmap .w-edge:hover .w-tie { stroke: #f3e3b0; stroke-width: 2; }
#webmap .w-tie { stroke-width: 1.2; }
#webmap .w-hint-big { fill: #c9b37e; font: 400 22px var(--serif, serif); } #webmap .w-hint-small { fill: #8a8478; font: 400 12px var(--mono, monospace); letter-spacing: .1em; }
.lk-dossier { background: #c9b37e; } .lk-fund { background: #7ec9a0; } .lk-person { background: #d8d0bd; }
@media (max-width: 900px) { main.lib .w-stage3 { grid-template-columns: 1fr; } }
