/* The Neville Library: lecture page. Parchment (light) / Night (dark) / System. */

:root {
  --frame: #121823; --frame-hi: #222c3d;
  --paper: #F4EDE0; --paper-edge: #EFE5D3;   /* = landing hero cream (owner 2026-10-11) */
  --ink: #2a2017; --ink-soft: #5a4934; --muted: #6f5c3d;
  --gold: #a8833e; --gold-text: #7a5a22; --rule: #cdb98f;
  --link: #2c4a6e; --link-visited: #5e3a73; --cite: #8f877b;   /* article links: fountain-pen blue; citations: warm grey (owner pick 2026-11-10) */
  --mark: rgba(176, 134, 52, .16); --mark-line: rgba(140, 104, 36, .55);
  --find: rgba(222, 178, 60, .45); --find-cur: rgba(226, 128, 40, .55);
  --flash: rgba(214, 170, 72, .22);
  --cap-bg: linear-gradient(160deg, #f0d798 0%, #d3a656 55%, #b88a3a 100%); --cap-ink: #2a1c0c; --cap-line: #7d5b20;
  --art-opacity: .19; --art-blend: multiply; --art-filter: none; --noise: .07;
  --fs: 1.1875rem;
  color-scheme: light;
}
:root[data-size="1"] { --fs: 1.03rem; }
:root[data-size="2"] { --fs: 1.094rem; }
:root[data-size="4"] { --fs: 1.281rem; }
:root[data-size="5"] { --fs: 1.406rem; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, var(--frame-hi), var(--frame) 70%) fixed, var(--frame);
  color: var(--ink);
  font: 400 14px/1.45 Inter, system-ui, sans-serif;
}
a { color: var(--gold-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.smallcaps { font-family: "Playfair Display SC", Georgia, serif; letter-spacing: .14em; }

/* ---- page ------------------------------------------------------------- */
.frame { display: flex; justify-content: center; padding: 28px 24px 0; }
.page {
  position: relative; width: min(1180px, 100%); container: page / inline-size;
  background: var(--paper);   /* flat, like the landing hero (owner 2026-10-11) */
  border-radius: 6px 6px 0 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .35);
}

/* ---- toolbar ---------------------------------------------------------- */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 18px; color: var(--ink-soft);
  background: var(--paper); border-bottom: 1px solid var(--rule); border-radius: 6px 6px 0 0;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 2px; }
.navbtn, .tb {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 34px; height: 34px; padding: 0 7px; border-radius: 6px; color: var(--ink-soft); text-decoration: none;
}
.navbtn:hover, .tb:hover, .tb[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.navbtn.disabled { opacity: .3; }
.pos { min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-soft); }
.tb.txt { font-family: Fraunces, Georgia, serif; font-size: 15px; gap: 0; }
.tb.txt span { font-size: 12px; margin-left: 1px; }
.tb[data-action="larger"] { font-size: 18px; }
.sep { width: 1px; height: 20px; background: var(--rule); margin: 0 6px; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 250px; padding: 6px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .25);
}
.menu > * {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px;
  color: var(--ink); text-decoration: none; text-align: left; font-size: 13.5px;
}
.menu > *:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.menu [aria-checked="true"] { color: var(--gold-text); }
.menu .m-only { display: none; }

.findbar {
  position: sticky; top: 55px; z-index: 9; display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.findbar input {
  width: min(340px, 55vw); padding: 7px 10px; border-radius: 6px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 5%, var(--paper)); color: var(--ink); font: 14px Inter, sans-serif;
}
.findbar input::placeholder { color: var(--muted); }
.find-count { min-width: 64px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- sheet: margins + reading column ---------------------------------- */
.sheet {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, calc(var(--fs) * 35)) minmax(48px, 1fr);
}
.margin { position: relative; }
.margin .art {
  position: sticky; top: 120px; height: min(68vh, 640px); width: 100%; max-width: 132px; margin: 140px auto 0;
  background: center top / contain no-repeat;
  opacity: var(--art-opacity); mix-blend-mode: var(--art-blend); filter: var(--art-filter);
  pointer-events: none;
}
.margin.left .art { background-image: url(/static/art/margin-left.webp?v=14ba2dcf44); }
.margin.right .art { background-image: url(/static/art/margin-right.webp?v=d82e34e395); }
.column { min-width: 0; padding: 56px 0 48px; }

.masthead { text-align: center; }
.kicker {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font: 400 14px/1 "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--gold-text);
}
.kicker time { font-variant-numeric: lining-nums; }
h1 {
  margin: .7em 0 .4em; font: 700 clamp(1.9rem, 1.1rem + 2.3vw, 2.95rem)/1.08 "Playfair Display SC", Georgia, serif;
  letter-spacing: .035em; color: var(--ink); text-wrap: balance;
}
.ornament { display: block; width: 210px; height: 14px; margin: 0 auto 2.6rem; color: var(--gold); }

/* ---- transcript ------------------------------------------------------- */
#transcript {
  font-family: Fraunces, Georgia, serif; font-size: var(--fs); line-height: 1.64; font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums; color: var(--ink);
  hyphens: manual; -webkit-hyphens: manual; text-align: left;   /* whole words, ragged right (owner 2026-11-19: no words split across lines) */
}
.pw { position: relative; }
.para { margin: 0 0 1.05em; scroll-margin-top: 92px; border-radius: 3px; transition: background-color 1.2s ease; }
.para.flash { background-color: var(--flash); transition: none; box-shadow: 0 0 0 .35em var(--flash); }
.pmark {
  position: absolute; left: -2.3em; top: .1em; width: 1.6em; text-align: center;
  color: var(--muted); text-decoration: none; opacity: 0; user-select: none; -webkit-user-select: none;
  font: 400 .9em/1.6 Fraunces, Georgia, serif; transition: opacity .15s;
}
.pmark::before { content: "¶"; }   /* pseudo-content: never part of the transcript text */
.pw:hover .pmark, .pmark:focus-visible { opacity: .75; }
.pmark:hover { color: var(--gold-text); }

/* The source page's own heading lines (author/date/title), kept and shown as printed. */
.para.src-head {
  margin: 0 0 .15em; text-align: center; hyphens: manual;
  font: 400 12px/1.5 Inter, sans-serif; letter-spacing: .1em; color: var(--muted);
}
.pw:has(> .first), .pw:has(> .lead) { margin-top: 1.8em; }

.para.first:not(.capped)::first-letter, .para.first.capped > .cap {      /* reader.js wraps it; ::first-letter without JS */
  float: left; margin: .08em .14em 0 0; padding: .1em .13em .05em;
  font: 700 3.55em/.8 "Playfair Display SC", Georgia, serif; color: var(--cap-ink);
  background: var(--cap-bg); border: 1px solid var(--cap-line); border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255, 244, 214, .45), 0 1px 0 rgba(0, 0, 0, .15);
}

mark.ref {
  color: inherit; background: var(--mark); border-bottom: 1px solid var(--mark-line);
  padding: 0 .06em; border-radius: 2px; cursor: help;
}
::highlight(hl) { background-color: var(--find); color: inherit; }
::highlight(find) { background-color: var(--find); color: inherit; }
::highlight(find-current) { background-color: var(--find-cur); color: inherit; }
::highlight(refjump) { background-color: var(--find-cur); color: inherit; }

.endmark { margin-top: 3rem; opacity: .7; }
.endmark .ornament { margin-bottom: 0; }

/* ---- reading status --------------------------------------------------- */
.status {
  position: sticky; bottom: 0; z-index: 8; padding: 10px 26px 11px;
  background: var(--paper); border-top: 1px solid var(--rule);
}
.track { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--rule) 70%, transparent); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--gold); }
.status-row {
  display: flex; justify-content: space-between; margin-top: 7px;
  font: 400 11.5px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--muted);
  font-variant-numeric: lining-nums tabular-nums;
}

.toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 50;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper);
  font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

/* ---- responsive: the sheet follows its own width (panels may take some) -- */
@container page (max-width: 940px) {
  .margin .art { display: none; }
  .sheet { grid-template-columns: minmax(40px, 1fr) minmax(0, calc(var(--fs) * 35)) minmax(40px, 1fr); }
}
@container page (max-width: 640px) {
  .sheet { grid-template-columns: 20px minmax(0, 1fr) 20px; }
  .column { padding-top: 32px; }
  #transcript { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
  .pmark { display: none; }
}
@media (max-width: 700px) {
  .frame { padding: 0; }
  .page { border-radius: 0; box-shadow: none; }
  .toolbar { padding: 6px 8px; border-radius: 0; }
  .findbar { top: 47px; padding: 8px 12px; }
  .tb-right .desk-only, .sep { display: none; }
  .pos { min-width: 62px; }
  .menu .m-only { display: flex; }
  .kicker { font-size: 12px; }
  .ornament { margin-bottom: 2rem; }
  .status { padding: 8px 16px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .para, .pmark { transition: none; }
}


/* ======================================================================
   Step 2: the library (left) and Details / References (right).
   Fixed navy "shelf" palette in every theme so the page stays the one bright surface.
   ====================================================================== */
:root {
  /* navy, same as the top bar (Nav 5) so the reader and the browsing pages read as one app */
  --shelf: #121823; --shelf-2: #19202c; --shelf-rule: #2f3949;
  --shelf-ink: #e9e1cf; --shelf-soft: #cdc5b3; --shelf-muted: #9aa3b2; --shelf-gold: #d8b56d;
  --shelf-sel: rgba(216, 181, 109, .14);
  --lib-w: 0px; --info-w: 320px;   /* library is a drawer, never a column */
}
:root[data-info="closed"] { --info-w: 0px; }
.app { display: grid; grid-template-columns: var(--lib-w) minmax(0, 1fr) var(--info-w); min-height: 100vh; }
.app > .frame { min-width: 0; grid-column: 2; grid-row: 1; }
.app > .library { grid-column: 1; grid-row: 1; }
.app > .info { grid-column: 3; grid-row: 1; }

.library, .info {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, var(--shelf-2), var(--shelf) 240px); color: var(--shelf-ink);
  font: 400 13px/1.45 Inter, system-ui, sans-serif;
}
.library { border-right: 1px solid var(--shelf-rule); }
.info { border-left: 1px solid var(--shelf-rule); }
:root[data-lib="closed"] .library, :root[data-info="closed"] .info { display: none; }
.library a, .info a { color: var(--shelf-gold); }
.library button, .info button { color: inherit; }
.library :focus-visible, .info :focus-visible { outline-color: var(--shelf-gold); }
.n { font: 400 11px Inter, sans-serif; color: var(--shelf-muted); font-variant-numeric: tabular-nums; }

/* -- library -- */
.lib-top { padding: 22px 20px 6px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--shelf-gold) !important; }
.wordmark > span { font: 700 15px/1.25 "Playfair Display SC", Georgia, serif; letter-spacing: .16em; }
.wordmark .the { display: block; font-size: 10.5px; font-weight: 400; letter-spacing: .3em; color: var(--shelf-soft); }
.holdings { margin: 10px 0 0; color: var(--shelf-muted); font-size: 12px; }
.holdings .m-close { display: none; }
.lib-section { margin-top: 18px; }
.lib-h {
  margin: 0 0 8px; font: 400 11.5px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: var(--shelf-muted);
  display: flex; align-items: baseline; gap: 6px;
}
.kinds { display: grid; gap: 2px; }
.kind, .shelf {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%;
  padding: 6px 10px; border-radius: 5px; text-align: left; font-size: 13px; color: var(--shelf-soft);
  box-shadow: inset 2px 0 0 transparent;
}
.kind:hover, .shelf:hover { background: rgba(255, 255, 255, .04); color: var(--shelf-ink); }
.kind[aria-pressed="true"], .shelf[aria-pressed="true"] { background: var(--shelf-sel); color: var(--shelf-ink); box-shadow: inset 2px 0 0 var(--shelf-gold); }
.shelves { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
.shelf { font-variant-numeric: lining-nums tabular-nums; }

.cat-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 16px; padding: 12px 20px 8px; border-top: 1px solid var(--shelf-rule);
}
.cat-head .lib-h { margin: 0; }
.cat-count { font: 400 11px Inter, sans-serif; letter-spacing: 0; color: var(--shelf-muted); white-space: nowrap; }
.cat-head .lib-h { white-space: nowrap; }
#cat-sort {
  max-width: 122px; min-width: 0; padding: 4px 4px; border-radius: 5px; border: 1px solid var(--shelf-rule);
  background: var(--shelf); color: var(--shelf-soft); font: 12px Inter, sans-serif;
}
.cat-list {
  flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 10px 14px; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--shelf-rule) transparent;
}
.yr {
  position: sticky; top: 0; z-index: 1; padding: 12px 10px 5px; background: var(--shelf);
  font: 700 12.5px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--shelf-gold);
  font-variant-numeric: lining-nums;
}
.item a {
  display: block; padding: 7px 10px 8px; border-radius: 5px; text-decoration: none; color: var(--shelf-ink) !important;
  box-shadow: inset 2px 0 0 transparent;
}
.item a:hover { background: rgba(255, 255, 255, .045); }
.item a[aria-current="page"] { background: var(--shelf-sel); box-shadow: inset 2px 0 0 var(--shelf-gold); }
.item .t { display: block; font: 400 14px/1.3 Fraunces, Georgia, serif; overflow-wrap: anywhere; }
.item .d { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 11.5px; color: var(--shelf-muted); font-variant-numeric: lining-nums tabular-nums; }
.item[data-precision="year"] .date, .item[data-precision="none"] .date { font-style: italic; }
.item[data-precision="none"] .date { color: var(--shelf-muted); }
.badge {
  display: inline-block; padding: 0 5px; border: 1px solid rgba(210, 174, 103, .45); border-radius: 3px;
  font: 600 9.5px/1.6 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--shelf-gold);
}
.lib-foot { margin: 0; padding: 9px 20px 12px; border-top: 1px solid var(--shelf-rule); font-size: 10.5px; color: var(--shelf-muted); }

/* -- details / references -- */
.info-tabs { display: flex; align-items: flex-end; gap: 16px; padding: 16px 18px 0; border-bottom: 1px solid var(--shelf-rule); }
.info-tabs [role="tab"] {
  padding: 8px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font: 400 13.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--shelf-muted);
}
.info-tabs [role="tab"][aria-selected="true"] { color: var(--shelf-ink); border-bottom-color: var(--shelf-gold); }
.info-tabs .close { margin-left: auto; align-self: center; width: 30px; height: 30px; border-radius: 6px; font-size: 20px; color: var(--shelf-muted); }
.info-tabs .close:hover { background: rgba(255, 255, 255, .05); color: var(--shelf-ink); }
.pane { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 24px; scrollbar-width: thin; scrollbar-color: var(--shelf-rule) transparent; }
.details { margin: 0; }
.details dt { font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--shelf-muted); }
.details dd { margin: 2px 0 13px; color: var(--shelf-ink); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.details .sub { display: block; margin-top: 1px; font-size: 12px; color: var(--shelf-muted); }
.details code, .info code { font: 11.5px Menlo, ui-monospace, monospace; color: var(--shelf-soft); }
.pane-foot { margin: 6px 0 0; font-size: 12.5px; }
.pane-note { margin: 0 0 12px; font: italic 400 12.5px/1.5 Fraunces, Georgia, serif; color: var(--shelf-muted); }
.pane-h {
  display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px;
  font: 400 12.5px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--shelf-gold);
}
.pane-h:first-of-type { margin-top: 4px; }
.refs { list-style: none; margin: 0 0 10px; padding: 0; }
.ref-book { margin: 10px 0 2px; font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--shelf-muted); }
.ref-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--shelf-rule); }
.ref-label { font: 400 14.5px/1.3 Fraunces, Georgia, serif; color: var(--shelf-ink); font-variant-numeric: lining-nums; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.chip {
  padding: 1px 7px; border: 1px solid rgba(210, 174, 103, .4); border-radius: 999px; text-decoration: none;
  font: 500 11.5px/1.5 Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--shelf-gold) !important;
}
.chip:hover { background: var(--shelf-sel); }
.as-written { grid-column: 1 / -1; font-size: 11.5px; font-style: italic; color: var(--shelf-muted); }
.mentions { margin-top: 16px; }
.mentions summary { cursor: pointer; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--shelf-muted); }
.empty { margin: 0 0 8px; font: italic 400 13px Fraunces, Georgia, serif; color: var(--shelf-muted); }

.panel-toggle[aria-expanded="true"] { color: var(--gold-text); }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(8, 6, 4, .5); }

/* -- drawers: below the dock widths the panels yield the full width to reading -- */
@media (max-width: 1359.98px) {
  :root { --info-w: 0px; }
  .info {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; height: auto; width: min(380px, 92vw);
    transform: translateX(102%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s;
    box-shadow: -20px 0 50px rgba(0, 0, 0, .45);
  }
  :root[data-info="closed"] .info { display: flex; }
  :root[data-drawer="info"] .info { transform: none; visibility: visible; transition: transform .22s ease; }
}
/* The library is a slide-over drawer at every width (reader redesign 2026-10-06). */
.library {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; height: auto; width: min(360px, 88vw);
  transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s;
  box-shadow: 20px 0 50px rgba(0, 0, 0, .45);
}
:root[data-lib="closed"] .library { display: flex; }
:root[data-drawer="lib"] .library { transform: none; visibility: visible; transition: transform .22s ease; }
.holdings .m-close { display: inline; }
@media (prefers-reduced-motion: reduce) { .library, .info { transition: none !important; } }

/* ======================================================================
   Step 3: search. Results sit on the same parchment page as the reading view.
   ====================================================================== */
.lib-search { position: relative; margin-top: 16px; }
.lib-search input {
  width: 100%; padding: 8px 44px 8px 11px; border-radius: 6px; border: 1px solid var(--shelf-rule);
  background: var(--shelf); color: var(--shelf-ink); font: 13px Inter, system-ui, sans-serif;
}
.lib-search input::placeholder { color: var(--shelf-muted); }
.lib-search input:focus-visible { outline: 2px solid var(--shelf-gold); outline-offset: 1px; }
.lib-search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--shelf-rule); font: 10.5px Inter, sans-serif; color: var(--shelf-muted);
}
.back-results span { font-size: 12.5px; }
.back-results { color: var(--gold-text); }

body.search .app { grid-template-columns: var(--lib-w) minmax(0, 1fr); }
.searchpage { min-height: calc(100vh - 28px); }
.tb-title { font-size: 13px; color: var(--ink-soft); margin-left: 6px; }
.swrap { max-width: 50rem; margin: 0 auto; padding: 34px 28px 60px; }

.sform { color: var(--ink-soft); }
.srow.main { display: flex; gap: 8px; }
#f-q, #tl-q {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 4%, var(--paper)); color: var(--ink);
  font: 400 19px Fraunces, Georgia, serif;
}
#f-q::placeholder, #tl-q::placeholder { color: var(--muted); }
.sbtn {
  padding: 0 18px; border-radius: 8px; background: var(--ink); color: var(--paper);
  font: 600 13px Inter, sans-serif; letter-spacing: .04em;
}
.sbtn:hover { background: var(--gold-text); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 6px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-soft); }
.seg label + input + label { border-left: 1px solid var(--rule); }
.seg input:checked + label { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: -2px; }
.filters { margin-top: 14px; }
.filters summary { cursor: pointer; width: fit-content; font: 400 13px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--gold-text); }
.fgrid { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-top: 12px; font-size: 12.5px; }
.fgrid label { color: var(--muted); }
.fgrid select, .fgrid input {
  width: 100%; min-width: 0; padding: 5px 7px; border-radius: 6px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 4%, var(--paper)); color: var(--ink); font: 12.5px Inter, sans-serif;
}
.fgrid .pair { display: flex; gap: 6px; min-width: 0; }
.fgrid .pair input { width: 64px; flex: none; }
.fnote { margin: 10px 0 0; font: italic 12.5px/1.5 Fraunces, Georgia, serif; color: var(--muted); }
.syntax { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.syntax code, .serror code { font: 11px Menlo, ui-monospace, monospace; padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 6%, transparent); }

.results { margin-top: 30px; }
.ssum { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }
.ssum b { color: var(--ink); font-weight: 600; }
.ssum .how { color: var(--muted); }
.snote, .sempty, .serror { font-size: 13.5px; color: var(--ink-soft); }
.serror { padding: 12px 14px; border: 1px solid #c58a6e; border-radius: 8px; background: rgba(197, 138, 110, .1); }
.sempty { font: italic 16px/1.6 Fraunces, Georgia, serif; color: var(--muted); margin-top: 8px; }
.rgroup { padding: 18px 0 8px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.rhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rtitle { font: 700 18px/1.25 "Playfair Display SC", Georgia, serif; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.rtitle:hover { color: var(--gold-text); }
.rmeta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.rmeta .prec-year, .rmeta .prec-none { font-style: italic; }
.searchpage .badge { color: var(--gold-text); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.hits { list-style: none; margin: 8px 0 0; padding: 0; }
.hitlink {
  display: grid; grid-template-columns: 3.2em 1fr; gap: 2px 10px; padding: 9px 10px; margin: 0 -10px;
  border-radius: 6px; text-decoration: none; color: var(--ink);
}
.hitlink:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.pnum { font: 500 12px/1.9 Inter, sans-serif; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.ex { font: 400 16.5px/1.6 Fraunces, Georgia, serif; font-variant-numeric: oldstyle-nums; }
.ex .vtag { display: block; margin-top: 2px; font: 500 11.5px/1.5 Inter, sans-serif; letter-spacing: .02em; color: var(--muted); }
.ell { color: var(--muted); }
mark.hit { background: var(--find); color: inherit; border-radius: 2px; padding: 0 .04em; }
.nhits { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.more summary { cursor: pointer; margin: 4px 0 6px; font-size: 12.5px; color: var(--gold-text); }
.nohits { font-size: 13px; color: var(--muted); margin: 8px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 28px 0 0; font-size: 13px; }

@media (max-width: 700px) {
  .swrap { padding: 22px 18px 48px; }
  .fgrid { grid-template-columns: max-content minmax(0, 1fr); }
  .seg label { padding: 6px 9px; }
  .rhead { flex-direction: column; }
  .hitlink { grid-template-columns: 2.6em 1fr; }
  .ex { font-size: 16px; }
}
.overflow { padding: 8px 0 4px 3.2em; font-size: 12.5px; color: var(--muted); }

/* ======================================================================
   Step 4: notes, highlights, bookmarks. Paint-only highlights; marks beside the text.
   ====================================================================== */
:root {
  --hl-gold: rgba(232, 190, 92, .42); --hl-rose: rgba(226, 136, 132, .36);
  --hl-sage: rgba(140, 178, 120, .38); --hl-sky: rgba(120, 166, 214, .36);
  --note-line: #a6782a; --ink-note: #6b4a1c;
}
::highlight(ann-gold) { background-color: var(--hl-gold); color: inherit; }
::highlight(ann-rose) { background-color: var(--hl-rose); color: inherit; }
::highlight(ann-sage) { background-color: var(--hl-sage); color: inherit; }
::highlight(ann-sky) { background-color: var(--hl-sky); color: inherit; }
::highlight(ann-note) { text-decoration: underline dotted var(--note-line) 1.5px; text-underline-offset: .22em; }

.selbar {
  position: fixed; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px;
  background: #1c1712; color: #efe3c8; border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
  font: 500 12.5px Inter, system-ui, sans-serif;
}
.selbar.docked { left: 12px; right: 12px; bottom: 54px; top: auto; justify-content: center; }
.swatches { display: flex; gap: 6px; padding: 0 6px 0 4px; margin-right: 2px; border-right: 1px solid rgba(255, 255, 255, .14); }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); padding: 0; }
.sw[aria-pressed="true"] { border-color: #fff; }
.sw-gold { background: #e3b958; } .sw-rose { background: #dc8a86; } .sw-sage { background: #8fb27a; } .sw-sky { background: #7ea7d6; }
.sb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 7px; color: inherit; }
.sb:hover { background: rgba(255, 255, 255, .1); }
.sb.danger { color: #f0a48f; }
.sb.primary { background: var(--ink); color: var(--paper); }

.note-editor {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 72px; width: min(440px, calc(100vw - 24px));
  padding: 16px 16px 12px; border-radius: 12px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.ne-head { margin: 0 0 8px; font: 400 13px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--gold-text); }
.ne-where { font: 400 12px Inter, sans-serif; letter-spacing: 0; color: var(--muted); }
.ne-quote { margin: 0 0 10px; padding-left: 10px; border-left: 2px solid var(--gold); font: italic 400 14px/1.5 Fraunces, Georgia, serif; color: var(--ink-soft); max-height: 6.5em; overflow: hidden; }
#ne-text {
  width: 100%; resize: vertical; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 4%, var(--paper)); color: var(--ink-note);
  font: 400 21px/1.3 Caveat, Fraunces, cursive;
}
.ne-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-soft); }
.ne-actions .sb:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ne-actions .sb.danger { color: #a4472f; }
.grow { flex: 1; }

/* beside the paragraph, never inside it */
.ribbon {
  position: absolute; left: -1.25em; top: -.35em; width: .62em; height: 1.5em; pointer-events: none;
  background: linear-gradient(180deg, #b78a35, #9a6f22); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.note-pin {
  position: absolute; right: -2.1em; top: .15em; width: 1.4em; height: 1.4em; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 25%, transparent); border: 1px solid var(--gold);
}
.note-pin::before { content: "✎"; font-size: .8em; color: var(--gold-text); }
.pw:has(.ribbon) .pmark { left: -3.1em; }

.margin.right { position: relative; }
.marginalia { display: none; position: absolute; inset: 0 0 auto 0; }
.margin.right.has-notes .art { visibility: hidden; }
.mnote {
  position: absolute; left: 18px; right: 10px; padding: 4px 8px 4px 12px; text-align: left; cursor: pointer;
  font: 400 19px/1.15 Caveat, cursive; color: var(--ink-note);
  border-left: 2px solid var(--note-line); border-radius: 0 6px 6px 0; background: none;
  overflow-wrap: anywhere; max-height: 12em; overflow: hidden;
}
.mnote:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.mn-rose { border-left-color: #c47b77; } .mn-sage { border-left-color: #7d9e69; } .mn-sky { border-left-color: #6d96c6; }
@container page (min-width: 1080px) {
  .marginalia { display: block; }
  .note-pin { display: none; }
}
@container page (max-width: 640px) {
  .ribbon { left: -15px; }
  .note-pin { right: -19px; width: 18px; height: 18px; }
}

/* Notes tab */
.notes-filter { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.nf { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--shelf-rule); font-size: 12px; color: var(--shelf-soft); }
.nf[aria-pressed="true"] { background: var(--shelf-sel); color: var(--shelf-ink); border-color: rgba(210, 174, 103, .5); }
.ann-list { list-style: none; margin: 0; padding: 0; }
.ann { padding: 10px 0; border-bottom: 1px dashed var(--shelf-rule); }
.ann-go { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; text-decoration: none; color: var(--shelf-ink) !important; }
.ann-go .pnum { color: var(--shelf-gold); }
.ann-kind { font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--shelf-muted); align-self: center; }
.ann-quote { grid-column: 1 / -1; font: 400 14px/1.45 Fraunces, Georgia, serif; padding-left: 8px; border-left: 3px solid var(--shelf-rule); }
.ann-quote.sw-gold { border-left-color: #e3b958; background: none; } .ann-quote.sw-rose { border-left-color: #dc8a86; background: none; }
.ann-quote.sw-sage { border-left-color: #8fb27a; background: none; } .ann-quote.sw-sky { border-left-color: #7ea7d6; background: none; }
.ann-body { grid-column: 1 / -1; margin-top: 4px; font: 400 19px/1.2 Caveat, cursive; color: #e7cf98; white-space: pre-wrap; }
.ann-actions { display: flex; gap: 12px; margin-top: 6px; font-size: 11.5px; }
.ann-actions button { color: var(--shelf-muted); }
.ann-actions button:hover { color: var(--shelf-ink); text-decoration: underline; }
.k-bookmark .ann-quote { border-left-color: #b78a35; color: var(--shelf-soft); }
.ann-empty kbd, .sempty kbd { padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font: 11px Inter, sans-serif; }
.mine { display: grid; gap: 2px; }
.mine .kind { text-decoration: none; }
.sub-inline { font-size: 12px; color: var(--shelf-muted); margin-left: 4px; }

/* /notes page */
.ntabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.ntab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; color: var(--ink-soft); font-size: 13px; }
.ntab[aria-current="page"] { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); }
.ntab .n { color: var(--muted); }
.ngroup { padding: 18px 0 8px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.nlist { list-style: none; margin: 8px 0 0; padding: 0; }
.nkind { display: block; font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--muted); }
.nquote { padding: 0 .1em; border-radius: 2px; }
.nquote.sw-gold { background: var(--hl-gold); } .nquote.sw-rose { background: var(--hl-rose); }
.nquote.sw-sage { background: var(--hl-sage); } .nquote.sw-sky { background: var(--hl-sky); }
.k-note .nquote:not([class*="sw-"]) { text-decoration: underline dotted var(--note-line); text-underline-offset: .2em; }
.nbody { display: block; margin-top: 6px; font: 400 21px/1.2 Caveat, cursive; color: var(--ink-note); white-space: pre-wrap; }

/* ======================================================================
   Step 5: home (passage of the day) and timeline.
   ====================================================================== */
.home-wrap { max-width: 46rem; padding-top: 64px; }
.potd { text-align: center; }
.potd .kicker { margin-bottom: 28px; }
.potd-text { margin: 0; font: 400 clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem)/1.45 Fraunces, Georgia, serif; color: var(--ink); text-wrap: balance; font-variant-numeric: oldstyle-nums; }
.potd-text .qm { color: var(--gold); font-size: 1.15em; line-height: 0; }
.potd-src { margin: 22px 0 0; font-size: 14px; color: var(--ink-soft); }
.potd-src a { font: 700 15px "Playfair Display SC", Georgia, serif; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.potd-src a:hover { color: var(--gold-text); }
.potd-date { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-variant-numeric: lining-nums; }
.potd-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.potd-actions .sbtn { display: inline-flex; align-items: center; height: 38px; text-decoration: none; }
.ghost { height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--rule); color: var(--ink-soft); font: 600 13px Inter, sans-serif; }
.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.lib-h-light { margin: 0 0 8px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--gold-text); }
.continue { margin: 52px 0 0; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px; }
.continue-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; text-decoration: none; }
.c-title { font: 700 17px "Playfair Display SC", Georgia, serif; color: var(--ink); }
.c-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: lining-nums; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.way { display: block; padding: 16px 18px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); text-decoration: none; }
.way:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.way-h { display: block; font: 700 16px "Playfair Display SC", Georgia, serif; letter-spacing: .03em; color: var(--ink); }
.way-p { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.holdings-line { margin: 34px 0 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: lining-nums; }

/* Timeline: a research chronology, not a grid of boxes. Matches in navy ink, the rest stays faintly visible. */
:root { --tl-hit: #1f2a3c; --tl-faint: color-mix(in srgb, var(--gold) 42%, var(--paper)); }
.timeline-wrap { max-width: 64rem; }
.timeline-wrap.has-results { max-width: 84rem; }
.tl-intro { margin-bottom: 22px; }
.tl-intro h1 { font-size: 40px; }
.tl-lede { margin: 2px 0 0; font: 400 17px/1.5 Fraunces, Georgia, serif; color: var(--ink-soft); }
.tl-form { max-width: 50rem; }
.tl-form .toggles { align-items: center; font-size: 13px; color: var(--ink-soft); }
.tl-sel select { margin-left: 6px; padding: 5px 7px; border-radius: 6px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--ink) 4%, var(--paper)); color: var(--ink); font: 12.5px Inter, sans-serif; }
.tl-check { display: inline-flex; align-items: center; gap: 6px; }
.tl-clear { font-size: 12.5px; }

.tl-summary { margin: 26px 0 6px; padding: 18px 0 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sm-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; }
.sm { display: flex; flex-direction: column; gap: 3px; padding: 0 22px; border-left: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.sm:first-child { padding-left: 0; border-left: 0; }
.sm-k { font: 400 11.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--gold-text); }
.sm.lead .sm-k { font: italic 400 15px Fraunces, Georgia, serif; letter-spacing: 0; color: var(--ink-soft); }
.sm-big { font: 400 30px/1.15 Fraunces, Georgia, serif; color: var(--ink); font-variant-numeric: lining-nums; }
.sm-big b { font-weight: 600; }
.sm-sub { font-size: 12px; color: var(--muted); font-variant-numeric: lining-nums; }
.sm-foot, .sm-none { margin: 12px 0 0; font: italic 13px Fraunces, Georgia, serif; color: var(--muted); }
.sm-none { margin: 0; font-size: 15px; }

.tl-layout { margin-top: 18px; }
@media (min-width: 1180px) {
  .tl-layout.with-results { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 36px; }
  .tl-layout.with-results { align-items: stretch; }
  .tl-results { height: 0; min-height: 100%; overflow: auto; overscroll-behavior: contain; }  /* as tall as the timeline, scrolls inside */
}
.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 7px; }

.tl { --cols: 2.8rem repeat(12, minmax(0, 1fr)) minmax(0, 1.25fr) 3.6rem; }
.tl-head, .tl-row { display: grid; grid-template-columns: var(--cols); align-items: stretch; }
.tl-head { position: sticky; top: 55px; z-index: 2; padding: 8px 0 6px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.mh { font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .1em; color: var(--muted); text-align: center; }
.yo-h { font-style: italic; }
.tl-row { padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 38%, transparent); }
.tl-year { align-self: center; font: 700 14px "Playfair Display SC", Georgia, serif; color: var(--muted); font-variant-numeric: lining-nums; }
.tl-row.lit .tl-year, .tl:not(:has(.dim)) .tl-year { color: var(--ink); }
.tl-count { align-self: center; text-align: right; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-count b { color: var(--ink); font-weight: 600; }
.cell { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; min-height: 20px; padding: 3px 2px; border-left: 1px solid color-mix(in srgb, var(--rule) 28%, transparent); }
.cell.yo { border-left: 1px dashed color-mix(in srgb, var(--rule) 80%, transparent); }

.dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--ink) 58%, var(--paper)); transition: transform .12s; }
.dot.yearonly { background: transparent; box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--ink) 58%, var(--paper)); }
.dot.dim { background: var(--tl-faint); }
.dot.dim.yearonly { background: transparent; box-shadow: inset 0 0 0 1.4px var(--tl-faint); }
.dot.hit { background: var(--tl-hit); }
.dot.hit.yearonly { background: transparent; box-shadow: inset 0 0 0 2px var(--tl-hit); }
.dot.mine::after { content: ""; position: absolute; top: -3px; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--paper); }
a.dot:hover, a.dot:focus-visible, a.dot.on { transform: scale(1.3); outline: 1.5px solid var(--gold); outline-offset: 2px; }

.tl-gap { display: flex; gap: 14px; align-items: center; padding: 5px 0 5px 2px; font-size: 12px; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--rule) 22%, transparent) 6px 7px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 38%, transparent); }
.gap-yrs { min-width: 2.6rem; font: 400 12px "Playfair Display SC", Georgia, serif; font-variant-numeric: lining-nums; }
.gap-note { font: italic 12.5px Fraunces, Georgia, serif; }

.tl-results { padding-top: 2px; }
.tl-rh { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font: 400 20px Fraunces, Georgia, serif; color: var(--ink); }
.tl-rh b { font-weight: 600; }
.tl-rh span { font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--gold-text); }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-item { display: block; padding: 11px 8px; margin: 0 -8px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 45%, transparent); border-radius: 4px; text-decoration: none; color: var(--ink); }
.tl-item:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.tl-d { display: block; font: 400 11.5px Inter, sans-serif; color: var(--muted); font-variant-numeric: lining-nums; }
.tl-t { display: block; margin-top: 1px; font: 700 15px/1.3 "Playfair Display SC", Georgia, serif; color: var(--ink); }
.tl-item .ex { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 3px; font: 400 13.5px/1.45 Fraunces, Georgia, serif; color: var(--ink-soft); }
.tl-n { display: block; margin-top: 3px; font-size: 11px; color: var(--gold-text); }
.tl-item mark, .tc-ex mark { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -1.5px var(--gold); }

.tl-undated { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }
.ud-head { display: flex; align-items: baseline; gap: 12px; }
.ud-head h2 { margin: 0; font: 400 24px Fraunces, Georgia, serif; color: var(--ink); }
.ud-n { padding: 2px 9px; border-radius: 99px; font-size: 11.5px; color: var(--gold-text); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.ud-note { max-width: 44rem; margin: 6px 0 0; font: 400 14px/1.55 Fraunces, Georgia, serif; color: var(--ink-soft); }
.ud-sub { display: flex; gap: 8px; align-items: baseline; margin: 22px 0 10px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--gold-text); }
.ud-sub span { font-family: Inter, sans-serif; letter-spacing: 0; color: var(--muted); }
.ud-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr)); gap: 10px; }
.tcard { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 11px 14px 12px; border: 1px solid color-mix(in srgb, var(--rule) 75%, transparent); border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 2.5%, var(--paper)); color: var(--ink); text-decoration: none; position: relative; }
.tcard:hover, .tcard.on { border-color: var(--gold); }
.tc-k { font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--muted); }
.tc-t { font: 400 15px/1.3 Fraunces, Georgia, serif; overflow-wrap: anywhere; }
.tc-d { margin-top: auto; padding-top: 4px; font-size: 11.5px; color: var(--muted); font-variant-numeric: lining-nums; }
.tcard.dim { opacity: .45; }
.tcard.hit { border-color: var(--tl-hit); box-shadow: inset 3px 0 0 var(--tl-hit); }
.tcard.mine::after { content: ""; position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.tl-card { position: fixed; z-index: 20; width: min(22rem, calc(100vw - 24px)); box-sizing: border-box; padding: 16px 18px 18px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); box-shadow: 0 14px 34px -12px rgb(30 20 8 / .35), 0 2px 6px rgb(30 20 8 / .08); }
.tl-card[hidden] { display: none; }
.tc-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.tl-card:not(.pinned) .tc-x { display: none; }
.tc-date { margin: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: lining-nums; }
.tc-title { margin: 3px 28px 0 0; font: 400 21px/1.25 Fraunces, Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.tc-kind { margin: 2px 0 0; font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--gold-text); }
.tc-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 10px 0 0; padding: 0; }
.tc-tags li { padding: 2px 8px; border-radius: 4px; font-size: 11.5px; color: var(--ink-soft); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.tc-tags:empty { display: none; }
.tc-ex { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); font: 400 14px/1.5 Fraunces, Georgia, serif; color: var(--ink-soft); }
.tc-ex[hidden], .tc-mine[hidden] { display: none; }
.tc-mine { margin: 10px 0 0; font-size: 12px; color: var(--gold-text); }
.tc-open { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin-top: 14px; padding: 0 16px; border-radius: 6px; text-decoration: none; }

@media (max-width: 700px) {
  .home-wrap { padding-top: 34px; }
  .ways { grid-template-columns: 1fr; }
  .tl { --cols: 2.1rem repeat(12, minmax(0, 1fr)) minmax(0, 1.1fr) 2.2rem; }
  .tl-head { top: 47px; }
  .mh { font-size: 0; }
  .mh::first-letter { font-size: 10px; }
  .yo-h::first-letter { font-size: 10px; }
  .dot { width: 7px; height: 7px; }
  .cell { gap: 2px; padding: 2px 1px; min-height: 13px; }
  .tl-year { font-size: 10.5px; }
  .tl-count { font-size: 10px; }
  .tl-intro h1 { font-size: 32px; }
  .sm-row { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .sm:nth-child(4) { padding-left: 0; border-left: 0; }
  .sm.lead { grid-column: 1 / -1; }
  .sm:nth-child(2) { padding-left: 0; border-left: 0; }
  .sm-big { font-size: 24px; }
  .tl-results { margin-top: 30px; }
  .gap-note { font-size: 11.5px; }
}

/* ======================================================================
   Step 6: mobile polish. Chrome collapses before reading width does.
   ====================================================================== */
.menu .m-tiny { display: none; }
.pos { white-space: nowrap; }
h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.hitlink { grid-template-columns: 3.2em minmax(0, 1fr); }
.ex, .nquote, .nbody, .ann-body, .ann-quote, .mnote, .rtitle, .c-title, .tl-t, .ud { overflow-wrap: anywhere; }
.tl-count { white-space: nowrap; }

/* Narrowest phones (320–380): the citation button moves into ⋯ (it's also on the selection bar). */
@media (max-width: 380px) {
  .cite-btn { display: none; }
  .menu .m-tiny { display: flex; }
  .toolbar { padding: 6px 4px; }
  .navbtn, .tb { min-width: 34px; padding: 0 5px; }
  .pos { min-width: 0; font-size: 12px; padding: 0 2px; }
  .sheet { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .kicker { font-size: 11px; letter-spacing: .14em; }
  .hitlink { grid-template-columns: 2.4em minmax(0, 1fr); }
  .swrap { padding-left: 14px; padding-right: 14px; }
  .tl-count { font-size: 9px; }
}

/* Phones: the status strip shrinks to one quiet line. */
@media (max-width: 700px) {
  .status { padding: 6px 16px 7px; }
  .status-row { margin-top: 5px; font-size: 10.5px; }
}

/* Short screens (phone landscape): drop the desk frame and keep chrome to two thin strips. */
@media (max-height: 520px) {
  .frame { padding: 0; }
  .page { border-radius: 0; box-shadow: none; }
  .toolbar { padding: 3px 12px; border-radius: 0; }
  .findbar { top: 41px; }
  .status { padding: 4px 16px 5px; }
  .status-row { display: none; }
  .column { padding-top: 24px; }
  .h1, h1 { margin-top: .4em; }
  .ornament { margin-bottom: 1.4rem; }
  .selbar.docked { bottom: 12px; }
  .note-editor { bottom: 8px; max-height: calc(100vh - 16px); overflow: auto; }
  #ne-text { min-height: 3.2em; }
}

/* Touch: every control gets a finger-sized target (44 px is the platform guideline; 40 keeps rows compact). */
@media (pointer: coarse) {
  .info-tabs .close { width: 44px; height: 44px; }
  .nf { min-height: 40px; padding: 0 14px; }
  .ann-actions { gap: 4px; margin-top: 2px; }
  .ann-actions button { min-height: 40px; padding: 0 10px; margin-left: -10px; }
  .holdings .m-close a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  #cat-sort, .fgrid select, .fgrid input, .tl-sel select { min-height: 40px; }
  .tl-check { min-height: 40px; }
  .tl-check input { width: 22px; height: 22px; }
  .tl-clear, .lib-foot a { display: inline-block; padding: 11px 4px; }
  .potd-src a { display: inline-block; padding: 8px 0; }
  .pager a { display: inline-block; padding: 10px 6px; }
  .more summary { padding: 10px 0; }
  [data-tab-link] { display: inline-block; padding: 10px 0; }
}
/* Drawers never widen the page, whatever the text size. */
.library, .info { max-width: 100vw; overflow: hidden; }
.info-tabs { flex-wrap: wrap; row-gap: 0; }
@media (max-width: 380px) {
  .navbtn, .tb { min-width: 32px; padding: 0 4px; }
  .tb-left, .tb-right { gap: 0; }
  /* no room for a pin in a 16px gutter: the dotted underline marks a note, and tapping it opens the note */
  .note-pin { display: none; }
  .ribbon { left: -13px; width: 9px; }
}
.note-pin { overflow: hidden; }
@container page (max-width: 640px) { .note-pin::before { font-size: 11px; line-height: 1; } }
@media (max-width: 380px) { .findbar input { width: auto; flex: 1; min-width: 0; } .findbar { gap: 2px; padding: 8px 8px; } .find-count { min-width: 0; } }
@media (max-width: 700px) {
  .para.first:not(.capped)::first-letter, .para.first.capped > .cap { font-size: 2.45em; margin-right: .1em; }   /* two lines, not three, on a phone */
}
@media (max-width: 400px) {
  .info-tabs { gap: 12px; padding: 12px 12px 0; }
  .info-tabs [role="tab"] { font-size: 12.5px; letter-spacing: .06em; }
}
@media (max-width: 400px) {
  .info-tabs { position: relative; padding-right: 46px; }
  .info-tabs .close { position: absolute; right: 4px; top: 6px; }
}
@media (max-width: 380px) {
  .info { width: 100vw !important; }
  .info-tabs { gap: 10px; }
}

/* ======================================================================
   Print: a typeset Neville Library document, not a printed web page.
   Only the reading material prints: type/date, title, the lecture text.
   ====================================================================== */
@page {
  size: auto;
  margin: 20mm 30mm 22mm;
  @top-center { content: "The Neville Library"; font: 400 7.5pt "Playfair Display SC", Georgia, serif; letter-spacing: .22em; color: #8a8a8a; }
  @bottom-center { content: counter(page); font: 400 8.5pt Fraunces, Georgia, serif; color: #555; }
}
@page :first { @top-center { content: none; } }

@media print {
  :root { color-scheme: light; --fs: 11pt; --ink: #111; --muted: #555; --gold: #777; }
  html, body { background: #fff !important; color: #111 !important; }
  .toolbar, .findbar, .status, .margin, .pmark, .toast, .menu, .library, .info, .scrim, .selbar, .note-editor,
  .note-pin, .ribbon, .marginalia, .back-results, .endmark, .sr { display: none !important; }
  .app, .frame, .page, .sheet, .column { display: block !important; margin: 0 !important; padding: 0 !important;
    width: auto !important; max-width: none !important; background: none !important; box-shadow: none !important; border: 0 !important; }

  /* no screen highlighting of any kind on paper */
  ::highlight(hl), ::highlight(find), ::highlight(find-current), ::highlight(refjump),
  ::highlight(ann-gold), ::highlight(ann-rose), ::highlight(ann-sage), ::highlight(ann-sky) { background-color: transparent; color: inherit; }
  ::highlight(ann-note) { text-decoration: none; }
  mark.ref { background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; }
  .para, .para.flash { background: none !important; box-shadow: none !important; }

  /* title block */
  .masthead { margin: 0 0 16pt; break-after: avoid; page-break-after: avoid; }
  .kicker { font: 400 8.5pt "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: #555; }
  h1 { margin: 22pt 0 10pt; font: 700 22pt/1.15 "Playfair Display SC", Georgia, serif; letter-spacing: .03em; color: #111;
       break-after: avoid; page-break-after: avoid; text-wrap: balance; }
  .ornament { width: 120pt; height: 8pt; margin: 0 auto 4pt; color: #999; }

  /* the lecture */
  #transcript { font: 400 11pt/1.48 Fraunces, Georgia, serif; color: #111; text-align: left; hyphens: manual; -webkit-hyphens: manual;
                font-variant-numeric: oldstyle-nums; }
  .pw { margin: 0; }
  .para { margin: 0 0 7pt; orphans: 3; widows: 3; text-indent: 0; }
  .pw:has(> .first), .pw:has(> .lead) { margin-top: 12pt; }
  .para.src-head { font: 400 7.5pt/1.5 Inter, sans-serif; letter-spacing: .12em; color: #666; text-align: center; margin: 0; }
  .para.first:not(.capped)::first-letter, .para.first.capped > .cap { float: left; font: 700 3.1em/.8 "Playfair Display SC", Georgia, serif; color: #111;
    margin: .06em .08em 0 0; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; }
  /* a short paragraph is never split across pages; long ones may break, keeping 3 lines each side */
  .pw:has(> .para:not(.src-head)) { break-inside: auto; }
  a { color: inherit; text-decoration: none; }

  /* other pages print plainly */
  .searchpage .toolbar, .tl-form, .tl-card, .sform, .potd-actions, .ways, .continue, .pager { display: none !important; }
}

/* ======================================================================
   Home redesign: navy top bar (Nav 5) + engraved home. Browsing pages only;
   lecture pages keep the reading toolbar and library drawer.
   ====================================================================== */
:root { --navy: #19202c; --navy-2: #121823; --navy-line: #3a4456; --navy-ink: #e9e1cf; --navy-mute: #9aa3b2; --brass: #d8b56d; --brass-2: #b38a43; }
body.topbar-page { background: var(--paper); }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px;
  padding: 0 32px; color: var(--navy-ink); border-bottom: 2px solid var(--brass-2);
  background: linear-gradient(180deg, #232c3d 0%, var(--navy) 100%);   /* light top-down lift on the navy */
}
.tbrand { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--brass); text-decoration: none; }
.tbrand > span { font: 400 23px/1.2 "Playfair Display SC", Georgia, serif; letter-spacing: .07em; color: var(--navy-ink); white-space: nowrap; }
.tlinks { flex: 1; min-width: 0; display: flex; justify-content: center; flex-wrap: nowrap; }   /* one row of links, never two */
.tnav {
  display: inline-flex; align-items: center; gap: 6px; height: 64px; padding: 0 14px; text-decoration: none;
  font: 400 14px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--navy-ink);
}
.tnav:hover { color: #fff; }
.tnav[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brass); }
.tb-badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--brass); color: var(--navy); font: 600 10.5px/18px Inter, sans-serif; text-align: center; letter-spacing: 0; padding: 0 4px; }
.tsearch { display: flex; align-items: center; gap: 8px; width: 260px; height: 40px; padding: 0 14px; border: 1px solid var(--navy-line); border-radius: 999px; background: var(--navy-2); color: var(--navy-mute); }
.tsearch input { flex: 1; min-width: 0; background: none; border: 0; color: var(--navy-ink); font: 13px Inter, sans-serif; outline: none; }
.tsearch input::placeholder { color: var(--navy-mute); }
.tsearch:focus-within { border-color: var(--navy-ink); box-shadow: 0 0 0 1px var(--navy-ink); }   /* the pill shows focus; the inner field has no box */
.tsearch kbd { font: 11px Inter, sans-serif; border: 1px solid var(--navy-line); border-radius: 4px; padding: 1px 5px; }
.topbar a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.tnotes { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 10px;
  border: 1px solid var(--navy-line); border-radius: 50%; background: var(--navy-2); color: var(--navy-ink); text-decoration: none; }
.tnotes:hover, .tnotes[aria-current="page"] { color: #fff; border-color: var(--navy-ink); }
.tnotes .tb-badge { position: absolute; top: -5px; right: -5px; }
.tsearch-btn { display: none; }   /* phones only: the search pill folds into this icon (owner 2026-11-08) */
.tsearch { position: relative; }
/* "Search the project" dropdown (owner spec 2026-11-13; premium pass 2026-11-18): a deep navy panel that fades in under the
   pill, serif titles with the typed letters in gold, quiet uppercase group labels, a filter switch and key hints */
.tsd { --g: #E9C25F; --g-hi: #F7DA8B; position: absolute; top: calc(100% + 12px); right: -6px; z-index: 60; width: min(460px, calc(100vw - 32px));
  max-height: min(72vh, 600px); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; text-align: left;
  border: 1px solid rgba(233, 194, 95, .28); background: linear-gradient(180deg, #1b2436 0%, #121926 100%); color: var(--navy-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .35);
  font: 13px Inter, sans-serif; animation: tsd-in .16s ease-out; }
@keyframes tsd-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tsd { animation: none; } }
.tsd[hidden] { display: none; }
.tsd-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 14px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tsd-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.tsd-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--navy-mute); font: 500 12px Inter, sans-serif;
  cursor: pointer; transition: background .15s ease, color .15s ease; }
.tsd-seg button:hover { color: #fff; }
.tsd-seg button[aria-pressed="true"] { background: linear-gradient(180deg, #2c3850, #222c40); color: #F4EDE0;
  box-shadow: inset 0 0 0 1px rgba(233, 194, 95, .45), 0 1px 3px rgba(0, 0, 0, .4); }   /* no solid yellow (owner 2026-11-18): raised chip, gold hairline */
.tsd-yr { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--navy-mute); font-size: 12px; }
.tsd-yr input { width: 50px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--navy-ink);
  font: 12px Inter, sans-serif; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tsd-yr input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--g); }
.tsd-yr input::placeholder { color: #5f6878; }
.tsd-list { overflow-y: auto; padding: 6px 8px 8px; scrollbar-width: thin; scrollbar-color: #3a4456 transparent; }
.tsd-h { display: flex; align-items: center; gap: 8px; padding: 12px 10px 6px; color: var(--g-hi); font: 600 10.5px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tsd-h svg { opacity: .9; }
.tsd-o { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 8px 12px; border-radius: 10px;
  color: var(--navy-ink); text-decoration: none; transition: background .12s ease; }
.tsd-o span { min-width: 0; font: 400 16px/1.25 "Fraunces", Georgia, serif; color: #F1E8D7; }
.tsd-o mark { background: none; color: var(--g-hi); }
.tsd-o small { flex: none; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8E97A8; font-size: 11.5px; }
.tsd-o:hover, .tsd-o.on { background: rgba(255, 255, 255, .06); }
.tsd-o.on { box-shadow: inset 0 0 0 1px rgba(233, 194, 95, .35); }
.tsd-all { margin-top: 8px; justify-content: flex-start; gap: 10px; color: var(--g-hi); border-top: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; }
.tsd-all span { color: var(--g-hi); font-size: 15px; }
.tsd-all svg { flex: none; color: var(--g); }
.tsd-foot { display: flex; gap: 16px; justify-content: flex-end; padding: 9px 16px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .18);
  color: #7d8698; font-size: 11px; }
.tsd-foot kbd { display: inline-block; min-width: 18px; margin-right: 5px; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4); color: #c9cfda; font: 11px Inter, sans-serif; text-align: center; }
.tsd-empty { margin: 0; padding: 18px 12px; color: #8E97A8; font: italic 15px "Fraunces", Georgia, serif; }

.tb-page { width: auto; margin: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 66px);
  background: var(--paper); }
.tb-page .swrap { padding-top: 34px; }

/* home */
.tb-page .home-wrap { max-width: none; padding: 0 0 48px; }
.hero { position: relative; height: 470px; overflow: hidden; border-bottom: 1px solid #cdb98f; background: #e8dcc2; text-align: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,232,214,0) 0, rgba(240,232,214,0) 36%, rgba(240,232,214,.55) 52%, rgba(240,232,214,.72) 100%); }
.hero-copy { position: relative; z-index: 1; height: 100%; box-sizing: border-box; margin-left: auto; width: min(640px, 58%); padding: 52px 64px 36px 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hero .kicker { color: #3a2d1c; }
.hero .potd-text { font-size: clamp(1.45rem, .9rem + 1.3vw, 2.1rem); color: #1f170f; }
.hero .potd-src { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin: 4px 0 0; }
.hero .potd-src a { font: 400 14px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: #1f170f; }
.hero .rule { width: 60px; height: 1px; background: #8a7553; }
.hero .potd-date { flex-basis: 100%; margin: 0; color: #3a2d1c; }
.hero .potd-actions { margin-top: 6px; }
.sbtn.navy { background: var(--navy); color: #f3ead6; border-radius: 6px; box-shadow: 0 2px 6px rgba(25,32,44,.25); }
.sbtn.navy:hover { background: #26304a; }
.hero .ghost { background: rgba(246,239,224,.85); border-color: #8a7553; color: #1f170f; }

.home-body { max-width: 1240px; margin: 0 auto; padding: 28px 36px 0; display: flex; flex-direction: column; gap: 30px; }
.continue { position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); min-height: 220px; border: 1px solid #cdb98f; border-radius: 10px; overflow: hidden; background: #f6efe0; }
.continue[hidden] { display: none; }
.cont-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.continue::before { content: ""; grid-column: 1; }
.continue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,239,224,0) 0, rgba(246,239,224,0) 30%, rgba(246,239,224,.92) 44%, #f6efe0 52%); }
.cont-body { position: relative; z-index: 1; grid-column: 2; display: flex; align-items: center; gap: 28px; padding: 24px 34px 24px 18px; }
.cont-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.continue .lib-h-light { margin: 0; color: #3a2d1c; letter-spacing: .24em; }
.continue-link { text-decoration: none; display: block; }
.c-title { font: 400 30px/1.1 "Playfair Display SC", Georgia, serif; color: #1f170f; }
.continue .c-meta { margin: 0; font-size: 15px; color: #3a2d1c; }
.cont-track { height: 5px; max-width: 420px; margin-top: 10px; border-radius: 3px; background: #e2d4b4; }
.cont-fill { width: 0; height: 100%; border-radius: 3px; background: #b38a43; }
.cont-go { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: 6px; background: linear-gradient(180deg, #d8b46a, #b68b40); color: #1f170f; text-decoration: none; font: 500 17px Inter, sans-serif; box-shadow: inset 0 1px 0 rgba(255,240,200,.6), 0 1px 2px rgba(80,55,20,.3); }

.xsection { display: flex; flex-direction: column; gap: 14px; }
.xhead { display: flex; align-items: center; gap: 16px; }
.xhead h2 { margin: 0; font: 400 14px "Playfair Display SC", Georgia, serif; letter-spacing: .24em; color: #3a2d1c; }
.xline { flex: 1; height: 1px; background: #cdb98f; }
.xcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xcard { display: flex; flex-direction: column; border: 1px solid #d6c39b; border-radius: 10px; overflow: hidden; background: #f4ecdb; text-decoration: none; color: inherit; }
.xcard img { width: 100%; height: 132px; object-fit: cover; display: block; border-bottom: 1px solid #d6c39b; }
.xbody { display: flex; align-items: flex-end; gap: 12px; padding: 14px 16px 16px; }
.xtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.xtitle { font: 400 25px/1.1 Fraunces, Georgia, serif; color: #1f170f; }
.xdesc { font-size: 13.5px; line-height: 1.4; color: #3a2d1c; }
.xarrow { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #a8833e; display: grid; place-items: center; color: #7a5a22; }
.xcard:hover .xarrow { background: rgba(179,138,67,.1); }

/* Explore V2 (owner pick 2026-10-11): slide-in navy sidebar, questions, ways, start here, themes, research */
.xshell { display: flex; align-items: stretch; }
.xmain { flex: 1 1 auto; min-width: 0; }
.xside { position: relative; flex: 0 0 248px; box-sizing: border-box; background: #14203A; color: #D9CFBC; border-right: 1px solid #2A3A5E; transition: margin-left .32s ease; z-index: 5; }
.xside.shut { margin-left: -248px; }
.xside-in { position: sticky; top: 66px; max-height: calc(100vh - 66px); overflow-y: auto; scrollbar-width: thin; padding: 28px 14px 32px; box-sizing: border-box; }
.xside h2 { margin: 22px 12px 10px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .24em; color: #C4A46A; }
.xside h2:first-child { margin-top: 0; }
.xside hr { border: 0; border-top: 1px solid #2A3A5E; margin: 16px 12px; }
.xnav { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 6px; text-decoration: none; font: 15.5px Fraunces, Georgia, serif; color: #E9E1CF; }
.xnav:hover, .xnav:focus-visible { background: #1D2C4D; color: #fff; }
.xnav img { width: 20px; height: 20px; object-fit: contain; }
.xtab { position: absolute; top: 28px; right: -30px; width: 30px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid #2A3A5E; border-left: 0; border-radius: 0 8px 8px 0; background: #14203A; color: #D4B67A; cursor: pointer; box-shadow: 2px 0 10px rgba(0,0,0,.18); }
.xtab:hover { background: #1D2C4D; color: #fff; }
.xtab svg { transition: transform .32s ease; }
.xside.shut .xtab svg { transform: rotate(180deg); }
.xside a:focus-visible, .xtab:focus-visible { outline: 2px solid #D4B67A; outline-offset: 2px; }
.xask { display: flex; max-width: 720px; }
.xask input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #cdb896; background: #FFFDF8; font: 17px Fraunces, Georgia, serif; color: #1f170f; }
.xask button { height: 52px; padding: 0 24px; background: #16233F; color: #F4EDE0; border: 1px solid #16233F; font: 17px Fraunces, Georgia, serif; cursor: pointer; }
.xqs { display: flex; flex-wrap: wrap; gap: 10px; }
.xq { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid #d6c39b; border-radius: 999px; background: #f4ecdb; text-decoration: none; font: 17px Fraunces, Georgia, serif; color: #1f170f; }
.xq small { font: 12px Inter, sans-serif; color: #6A5644; }
.xq:hover { border-color: #A07C52; background: #EFE5D3; }
.xk { margin: 0; font: 400 12.5px/1.4 "Playfair Display SC", Georgia, serif; letter-spacing: .26em; color: #6B4A2F; }
.xh { margin: -8px 0 0; font: 400 30px/1.15 Fraunces, Georgia, serif; color: #1f170f; }
.xsub { margin: -6px 0 6px; font: 17px/1.5 Fraunces, Georgia, serif; color: #4A3628; max-width: 680px; }
.xpaths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.xpath { display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid #DDCDB3; border-radius: 10px; background: #F8F3EA; }
.xpath .k, .xfeat .k { font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .22em; color: #6B4A2F; }
.xpath h4 { margin: 6px 0 0; font: 400 26px/1.15 Fraunces, Georgia, serif; color: #1f170f; }
.xpath p { margin: 10px 0 0; font: 16px/1.55 Fraunces, Georgia, serif; color: #4A3628; }
.xpath ol { margin: 14px 0 0; padding-left: 20px; font: 15px/1.7 Fraunces, Georgia, serif; color: #4A3628; }
.xpath ol a { color: inherit; text-underline-offset: 3px; }
.xgo { align-self: flex-end; margin-top: auto; padding-top: 20px; font: 16px Fraunces, Georgia, serif; color: #1f170f; text-decoration: none; }
.xgo:hover { text-decoration: underline; text-underline-offset: 4px; }
.xgo-l { align-self: flex-start; display: inline-block; margin-top: 14px; padding-top: 0; border-bottom: 1px solid #A07C52; }
.xthemes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xtheme { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 14px 20px; border: 1px solid #DDCDB3; border-radius: 8px; background: #F8F3EA;
  text-decoration: none; text-align: center; font: 18px/1.25 Fraunces, Georgia, serif; color: #1f170f; transition: border-color .15s, background-color .15s; }
.xtheme:hover { border-color: #A07C52; background: #EFE5D3; }
.xtheme img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 2px; }
.xtheme small { font: 14px Fraunces, Georgia, serif; color: #6B4A2F; }
.xatlas { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 40px; align-items: start; }
.xatlas .xh { margin-top: 4px; }
.xfeats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.xfeat { display: flex; flex-direction: column; padding: 24px 24px 20px; border: 1px solid #2F416B; border-radius: 10px; background: radial-gradient(120% 90% at 50% 0%, #26304a 0%, #19202c 70%); text-decoration: none; color: #F1E8D7; }
.xfeat .k { color: #D4B67A; }
.xfeat h4 { margin: 6px 0 0; font: 400 26px/1.15 Fraunces, Georgia, serif; color: #F4EDE0; }
.xfeat p { margin: 10px 0 0; font: 15.5px/1.5 Fraunces, Georgia, serif; color: #CFC3AD; }
.xfeat .lk { margin-top: auto; padding-top: 16px; font: 15px Fraunces, Georgia, serif; color: #D4B67A; }
.xfeat:hover { border-color: #C4A46A; color: #F1E8D7; }
@media (prefers-reduced-motion: reduce) { .xside, .xtab svg { transition: none; } }
@media (max-width: 1100px) {
  .xside { display: none; }   /* narrow screens: the page itself is the menu */
  .xpaths, .xfeats { grid-template-columns: minmax(0, 1fr); }
  .xatlas { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 860px) { .xthemes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* category + library pages */
.chead { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.chead h1 { margin: 2px 0 4px; font: 700 32px "Playfair Display SC", Georgia, serif; color: var(--ink); }
.chead .ssum { border: 0; padding: 0; margin: 0; }
.lyear { margin: 26px 0 6px; font: 700 15px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--gold-text); border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.llist { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 32px; }
.llist li { break-inside: avoid; }
.llist a { display: flex; flex-direction: column; padding: 8px 0; text-decoration: none; color: var(--ink); }
.ltitle { font: 400 16px/1.3 Fraunces, Georgia, serif; }
.ldate { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ldate.prec-year, .ldate.prec-none { font-style: italic; }

/* Top bar fit, measured with the real fonts (four links): the full bar needs ~1150px. Tighten in steps, then go two-row at 980px. */
@media (max-width: 1180px) {
  .topbar { padding: 0 24px; gap: 0 18px; }
  .tnav { padding: 0 10px; }
  .tbrand > span { font-size: 20px; }
}
@media (max-width: 1100px) {
  .xcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .tsearch { width: 180px; }
  .tsearch kbd { display: none; }
}
@media (max-width: 980px) {
  .topbar { padding: 0 16px; gap: 0 12px; }
  .tlinks { order: 3; flex-basis: calc(100% + 32px); justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 6px; border-top: 1px solid var(--navy-line); }
  .tnav:first-child { margin-left: auto; }   /* centred when the four fit; auto margins fall to 0 and the row scrolls from the left when they don't */
  .tnav:last-child { margin-right: auto; }
  .tnav { height: 46px; padding: 0 12px; flex: none; }
  .tsearch { flex: 1; width: auto; margin-left: auto; }
}
@media (max-width: 860px) {
  .hero { height: auto; }
  .hero-img { position: static; height: 210px; object-position: 0% 50%; }
  .hero::after { display: none; }
  .hero-copy { width: auto; padding: 22px 20px 26px; }
  .home-body { padding: 22px 16px 0; }
  .continue { display: block; }
  .continue::after { background: linear-gradient(180deg, rgba(246,239,224,.2) 0, #f6efe0 150px); }
  .cont-img { height: 150px; position: static; }
  .cont-body { flex-direction: column; align-items: stretch; padding: 0 18px 20px; margin-top: -10px; }
  .cont-go { justify-content: center; }
  .c-title { font-size: 24px; }
  .xmeta { display: none; }
}
@media (max-width: 520px) {
  .topbar { padding-top: 8px; }   /* room above the bookmark circle and its badge */
  .tbrand > span { font-size: 19px; }
  .tsearch { flex-basis: 100%; order: 2; margin: 2px 0 10px; }
  .topbar:not(.ts-open) .tsearch { display: none; }   /* one row on a phone: brand, search icon, bookmark; the icon opens the pill */
  .tsd { left: 0; right: 0; width: auto; }
  .tsearch-btn, .tnotes { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 0;
    border: 1px solid var(--navy-line); border-radius: 50%; background: var(--navy-2); color: var(--navy-ink); }
  .tsearch-btn { margin-left: auto; }
  .tsearch-btn svg { width: 18px; height: 18px; }
  .ts-open .tsearch-btn { color: #fff; border-color: var(--navy-ink); }
  .xcards { grid-template-columns: minmax(0, 1fr); }
  .tb-page .swrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 400px) { .tnav { padding: 0 6px; letter-spacing: .09em; } }   /* all four links fit, centred, down to 320px */
@media (max-width: 360px) { .tbrand > span { font-size: 15px; } .topbar { gap: 0 8px; } }   /* keeps both icons beside the wordmark at 320px */
@media print { .topbar { display: none !important; } }
.sbtn.navy { display: inline-flex; align-items: center; gap: 10px; }
.chead > div { min-width: 0; }
.chead h1 { overflow-wrap: anywhere; }
@media (max-width: 400px) { .chead { gap: 12px; } .chead img { width: 52px; height: 52px; } .chead h1 { font-size: 25px; } }
.tb-page .swrap.home-wrap { padding: 0 0 48px; max-width: none; }
@media (max-width: 860px) { .hero .rule { display: none; } }
/* Browsing pages follow the theme (Night in dark mode); the home stays parchment by design. */
body.topbar-page, .tb-page { background: var(--paper); }
body.topbar-page.home, body.home .tb-page { background: var(--paper); }

/* Explore Neville category marks: beside the paragraph, never inside it */
.pcats { position: absolute; right: -2.6em; top: .1em; display: flex; flex-direction: column; gap: 4px; }
.pcats a { display: block; width: 22px; height: 22px; border-radius: 50%; opacity: .55; transition: opacity .15s; }
.pcats a:hover, .pcats a:focus-visible { opacity: 1; }
.pcats img { width: 22px; height: 22px; object-fit: contain; display: block; }
.pw:has(.pcats) .note-pin { top: auto; bottom: .1em; }
@container page (max-width: 640px) { .pcats { right: -19px; } .pcats a, .pcats img { width: 16px; height: 16px; } }
@media print { .pcats { display: none !important; } }
.para.src-head { color: var(--ink-soft); }
@media (max-width: 380px) { .pcats { display: none; } }


/* ======================================================================
   Reader redesign (2026-10-06): navy top bar, a reading strip for "where am I",
   floating navy tools for "what do I do to the text" (canvas board "Reader A+B").
   ====================================================================== */
.reader .topbar { position: relative; }
.strip { display: grid; grid-template-columns: 1fr auto 1fr; padding: 8px 16px; }
.strip .tb-right { justify-content: flex-end; }
.strip-mid { display: flex; align-items: center; gap: 6px; min-width: 0; }
.strip-title { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 34rem; line-height: 1.25; text-align: center; }
.st-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14.5px "Playfair Display SC", Georgia, serif; letter-spacing: .04em; color: var(--ink); }
.st-d { font-size: 11.5px; color: var(--muted); font-variant-numeric: lining-nums; }
.strip .pos { min-width: 0; font-size: inherit; color: inherit; }
.tb-label { font-size: 13px; }

.tools {
  position: sticky; bottom: 58px; z-index: 12; width: max-content; margin: 0 auto -50px; display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px; background: var(--navy); box-shadow: 0 14px 30px -12px rgba(18, 24, 35, .6);
}
.tool { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; border-radius: 999px; color: var(--shelf-soft); }
.tool:hover, .tool[aria-expanded="true"] { background: rgba(216, 181, 109, .16); color: var(--brass); }
.tool[aria-pressed="true"] { color: var(--brass); }
.tool:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.tool.aa { font: 600 16px Fraunces, Georgia, serif; }
.tools .menu {
  top: auto; bottom: calc(100% + 12px); right: auto; left: 50%; transform: translateX(-50%); min-width: 260px;
  background: var(--navy); border-color: var(--navy-line); color: var(--navy-ink); box-shadow: 0 18px 38px -14px rgba(18, 24, 35, .65);
}
.tools .menu > * { color: var(--navy-ink); }
.tools .menu > button:hover, .tools .m-row button:hover { background: rgba(216, 181, 109, .14); }
.tools .menu .m-h { margin: 4px 10px 2px; padding: 0; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--navy-mute); }
.tools .menu .m-h:hover { background: none; }
.m-row { gap: 6px; padding: 4px 6px 8px !important; }
.m-row button { flex: 1; height: 38px; border: 1px solid var(--navy-line); border-radius: 7px; color: var(--navy-ink); font: 500 15px Fraunces, Georgia, serif; }
.m-row button + button { font-size: 19px; }
body:has(.selbar:not([hidden])) .tools { visibility: hidden; }   /* the selection bar takes over */
@media (max-width: 700px) {
  .tb-label { display: none; }
  .strip { padding: 6px 8px; }
  .st-t { font-size: 13px; }
}
@media print { .tools, .reader .topbar { display: none !important; } }

/* Timeline pillars (owner art, 2026-10-06): fixed in both outer margins, only where the margin can hold them. */
:root { --pillar-w: 0px; }
body.timeline::before, body.timeline::after {
  content: ""; position: fixed; top: 66px; bottom: 0; z-index: 1; width: var(--pillar-w); pointer-events: none;   /* above the page, which paints over a z-index 0 ::before */
  background: no-repeat; background-size: auto 100%;               /* full height, top to bottom... */
  transform: translateY(calc(-1 * var(--foot, 0px)));             /* ...and ride up on the footer (timeline.js) */
}
body.timeline::before { left: 0; background-image: url(/static/art/pillar-left.webp?v=5f56474cec); background-position: left bottom;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
body.timeline::after { right: 0; background-image: url(/static/art/pillar-right.webp?v=31c20ff447); background-position: right bottom;
  -webkit-mask-image: linear-gradient(270deg, #000 78%, transparent); mask-image: linear-gradient(270deg, #000 78%, transparent); }
@media (min-width: 1180px) { .timeline-wrap.has-results { max-width: 76rem; } }
/* width = the art's width at full height (305:1024), but never wider than the margin = (viewport - content) / 2;
   a narrower margin trims the faded inner edge rather than shrinking the pillar. Shown once the margin is >= ~150px. */
@media (min-width: 1330px) { body.timeline:not(:has(.has-results)) { --pillar-w: min(calc((100vh - 66px) * .298), calc((100vw - 64rem) / 2 - 12px)); } }
@media (min-width: 1520px) { body.timeline:has(.has-results) { --pillar-w: min(calc((100vh - 66px) * .298), calc((100vw - 76rem) / 2 - 12px)); } }
@media print { body.timeline::before, body.timeline::after { display: none; } }

/* Site footer (browsing pages): navy like the top bar. */
.sitefoot { background: var(--navy); color: var(--navy-ink); border-top: 2px solid var(--brass-2); font: 400 13.5px/1.5 Inter, sans-serif; }
.sf-top { display: flex; flex-wrap: wrap; gap: 36px 64px; max-width: 76rem; margin: 0 auto; padding: 48px 32px 36px; }
.sf-brand { flex: 1 1 260px; }
.sf-brand .tbrand { padding: 0; display: inline-flex; }
.sf-brand p { max-width: 22rem; margin: 14px 0 0; font: italic 400 15px/1.5 Fraunces, Georgia, serif; color: var(--navy-mute); }
.sf-cols { flex: 3 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.sf-col h2 { margin: 0 0 12px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--brass); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitefoot a { color: var(--navy-ink); text-decoration: none; }
.sitefoot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sitefoot a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 76rem; margin: 0 auto; padding: 16px 32px 22px;
  border-top: 1px solid var(--navy-line); font-size: 12.5px; color: var(--navy-mute); }
.sf-bottom a { display: inline-flex; align-items: center; gap: 5px; color: var(--brass); font-weight: 500; }
.sf-bottom a:hover { color: #fff; }
.sf-bottom svg { position: relative; top: -.5px; }
.sf-bottom a.sf-legal { color: var(--navy-mute); font-weight: 400; }
.sf-bottom a.sf-legal:hover { color: #fff; }
.sf-dot { margin: 0 8px; color: var(--navy-mute); }
body.timeline .sitefoot { position: relative; z-index: 2; }   /* above the fixed pillars */
@media (max-width: 700px) {
  .sf-top { padding: 36px 18px 28px; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-bottom { padding: 14px 18px 20px; }
}
@media print { .sitefoot { display: none; } }

/* Scripture index (2026-10-06) */
.scripture-wrap { max-width: 64rem; }
.stop { margin: 26px 0 8px; }
.topch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 8px; }
.topch a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--rule) 75%, transparent); border-radius: 6px; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--ink) 2.5%, var(--paper)); }
.topch a:hover { border-color: var(--gold); }
.tc-l { font: 400 16px Fraunces, Georgia, serif; }
.tc-n { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.testament { margin: 40px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font: 400 26px Fraunces, Georgia, serif; color: var(--ink); }
.sbooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 0 32px; }
.sbook { padding: 16px 0 14px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 45%, transparent); }
.sbook h3 { margin: 0; font: 700 17px "Playfair Display SC", Georgia, serif; letter-spacing: .03em; color: var(--ink); }
.sb-n { margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.schips { display: flex; flex-wrap: wrap; gap: 5px; }
.sch { display: inline-flex; align-items: baseline; gap: 4px; min-width: 2.4em; justify-content: center; padding: 4px 8px; border-radius: 5px; text-decoration: none;
  font: 500 13px Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.sch span { font-size: 10.5px; color: var(--muted); }
.sch:hover { background: color-mix(in srgb, var(--gold) 26%, transparent); }
.s-note { margin: 32px 0 0; font: italic 13px Fraunces, Georgia, serif; color: var(--muted); }
@media (pointer: coarse) { .sch { min-height: 40px; align-items: center; } }

/* Reader: related by scripture, after the end ornament */
.related { margin: 2.5rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-family: Inter, sans-serif; }
.related h2 { margin: 0 0 10px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--gold-text); text-align: center; }
.related ol { list-style: none; margin: 0; padding: 0; }
.related li a { display: grid; grid-template-columns: 1fr auto; gap: 1px 14px; padding: 10px 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.related li a:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.rl-t { font: 500 15px Fraunces, Georgia, serif; overflow-wrap: anywhere; }   /* plain titles, as in the Library menu (owner 2026-10-28; bold small caps were hard to read) */
.rl-d { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums; }
.rl-why { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); }
.rl-more { margin: 8px 0 0; text-align: center; font-size: 12.5px; }
.ref-more { grid-column: 1 / -1; font-size: 11.5px; color: var(--shelf-muted) !important; text-decoration: none; }
.ref-more:hover { color: var(--shelf-gold) !important; }
@media print { .related { display: none; } }

/* Search: works whose title (or an alternate title) matches */
.title-matches { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.title-matches ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.title-matches a { font: 700 15px "Playfair Display SC", Georgia, serif; color: var(--ink); text-decoration: none; }
.title-matches a:hover { color: var(--gold-text); }
.tm-also { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* Details panel: transcript versions / claimed dates */
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.versions li[aria-current] b { color: var(--shelf-ink); font-weight: 600; }
.authorship { margin: .4rem 0 0; font: italic 400 15px Fraunces, Georgia, serif; color: var(--gold-text); text-align: center; }

/* ======================================================================
   Knowledge pages (/knowledge): a scholarly article inside the Library.
   ====================================================================== */
.tb-page .swrap.k-wrap { max-width: 74rem; }
.k-head { margin-bottom: 22px; }
.k-head .lib-h-light a { color: inherit; text-decoration: none; }
.k-head .lib-h-light a:hover { text-decoration: underline; }
.k-head h1 { margin: 4px 0 6px; font: 700 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1.08 "Playfair Display SC", Georgia, serif; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.k-aka { margin: 0; font: italic 400 17px Fraunces, Georgia, serif; color: var(--ink-soft); }
.k-orn { display: block; width: 200px; height: 14px; margin-top: 14px; color: var(--gold); }

.k-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 0 48px; align-items: start; }
.k-side { grid-column: 2; grid-row: 1; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; padding-bottom: 8px; }   /* taller than the window: scrolls on its own instead of hiding its foot (2026-11-10) */
.k-body { grid-column: 1; grid-row: 1; max-width: 42rem; font: 400 18px/1.72 Fraunces, Georgia, serif; color: var(--ink); font-variant-numeric: oldstyle-nums; }
.k-body > p:first-child { font-size: 19.5px; }
.k-body p { margin: 0 0 1.05em; }
.k-body h2 { margin: 1.9em 0 .55em; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font: 700 23px/1.2 "Playfair Display SC", Georgia, serif; letter-spacing: .03em; scroll-margin-top: 84px; }
.k-body h3 { margin: 1.5em 0 .4em; font: 600 19px Fraunces, Georgia, serif; scroll-margin-top: 84px; }
.k-body blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 2px solid var(--gold); color: var(--ink-soft); font-style: italic; }
.k-body ul, .k-body ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.k-body li { margin: .2em 0; }
.k-body li::marker { color: var(--gold); }
.k-body code { font: 14px Menlo, ui-monospace, monospace; padding: 0 4px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.k-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

/* wikilinks: gold for pages and works, a quiet citation for paragraphs, rust for pages not written yet */
.wl { color: var(--link); text-decoration: underline 1px color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: .2em; }
.wl:visited { color: var(--link-visited); text-decoration-color: color-mix(in srgb, var(--link-visited) 40%, transparent); }   /* purple once read on this device (owner 2026-11-10) */
.wl:hover { background-color: color-mix(in srgb, var(--link) 10%, transparent); border-radius: 2px; }
.wl.cite, .wl.cite:visited { font: 500 .68em Inter, sans-serif; letter-spacing: .01em; color: var(--cite); text-decoration: none; background-image: none; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; margin-left: .2em; }
.k-body .kq, .k-diagram .kq { font-style: italic; color: var(--ink); }   /* his words set apart from the page's narration (owner 2026-11-10) */
.k-body .kq em, .k-diagram .kq em { font-style: normal; }
@media (max-width: 600px) { .wl.cite { white-space: normal; overflow-wrap: anywhere; } }   /* a long lecture title must wrap on a phone */
.wl.cite:hover { color: var(--link); }
.wl-new { color: #a4482d; background-image: none; text-decoration: none; border-bottom: 1px dashed currentColor; }
.wl-amb { background-image: none; text-decoration: none; border-bottom: 1px dashed currentColor; }
.wl-broken { text-decoration: line-through; }

.k-info { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); background: color-mix(in srgb, var(--ink) 3%, var(--paper)); font: 13.5px/1.45 Inter, sans-serif; }
.k-info caption { padding: 11px 14px; background: var(--navy); color: var(--brass); border: 1px solid var(--navy); font: 700 15px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; text-align: left; }
.k-info th, .k-info td { padding: 9px 14px; text-align: left; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.k-info th { width: 42%; font: 400 11.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--muted); }
.k-info td { color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.k-info i { font-family: Fraunces, Georgia, serif; font-size: 14.5px; }
.k-dim { color: var(--muted); font-size: 12.5px; }
.k-toc { padding: 12px 14px; border: 1px solid var(--rule); }
.k-toc h2 { margin: 0 0 6px; font: 400 11.5px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--gold-text); }
.k-toc ol { margin: 0; padding-left: 1.3em; font: 13.5px/1.7 Inter, sans-serif; }
.k-toc li::marker { color: var(--muted); font-size: 12px; }
.k-toc a { color: var(--ink-soft); text-decoration: none; }
.k-toc a:hover { color: var(--gold-text); text-decoration: underline; }

.k-sec { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 50rem; }
.k-sec > h2 { margin: 0 0 12px; font: 400 13px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: var(--gold-text); }
.k-note { margin: 0 0 8px; font: italic 14.5px/1.55 Fraunces, Georgia, serif; color: var(--muted); }
.k-more { margin: 10px 0 0; font-size: 13px; }
.k-works { list-style: none; margin: 0; padding: 0; columns: 2 20rem; column-gap: 28px; }
.k-works li { break-inside: avoid; }
.k-works a { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.k-works a:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.k-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font: 400 16px Fraunces, Georgia, serif; }
.k-chip small { font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--muted); }
.k-chip:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.k-src { display: block; margin-bottom: 2px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .08em; color: var(--muted); }
.k-backlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.k-bl-t { font: 700 16px "Playfair Display SC", Georgia, serif; color: var(--ink); text-decoration: none; }
.k-bl-t:hover { color: var(--gold-text); }
.k-backlinks small { margin-left: 6px; font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; color: var(--muted); }
.k-bl-c { margin: 4px 0 0; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); font: 400 14.5px/1.55 Fraunces, Georgia, serif; color: var(--ink-soft); }
.k-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.k-actions { display: flex; gap: 18px; }

.k-index { list-style: none; margin: 0 0 8px; padding: 0; }
.k-index a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.k-index b { font: 700 18px "Playfair Display SC", Georgia, serif; }
.k-index span { font: 400 14.5px/1.5 Fraunces, Georgia, serif; color: var(--ink-soft); }
.k-index a:hover b { color: var(--gold-text); }
.k-unres, .k-warn { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.9; }
.k-warn { color: var(--ink-soft); }

.keditor textarea { width: 100%; min-height: 60vh; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 8px; resize: vertical;
  background: color-mix(in srgb, var(--ink) 3%, var(--paper)); color: var(--ink); font: 14px/1.6 Menlo, ui-monospace, monospace; }
.keditor textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.keditor .k-note code { font: 12.5px Menlo, ui-monospace, monospace; font-style: normal; }
.k-edit-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 14px; }
.k-edit-actions .sbtn { height: 42px; }

@media (max-width: 900px) {
  .k-grid { grid-template-columns: minmax(0, 1fr); }
  .k-side { grid-column: 1; grid-row: auto; position: static; margin-bottom: 26px; max-height: none; overflow: visible; }
  .k-body { grid-row: auto; }
  .k-toc { display: none; }
}
@media (max-width: 480px) { .k-body { font-size: 17px; } .k-body > p:first-child { font-size: 18px; } .k-foot { flex-direction: column; } }
@media print { .k-side .k-toc, .k-foot, .topbar, .sitefoot { display: none !important; } .k-grid { grid-template-columns: 1fr; } .k-side { position: static; max-height: none; overflow: visible; } }

/* ======================================================================
   Local graph: an antique star chart on the Library's navy.
   ====================================================================== */
.lgraph { position: relative; display: flex; flex-direction: column; border: 1px solid #3a4456; border-radius: 10px; overflow: hidden; background: #121823; color: var(--navy-ink); }
.lgraph canvas { display: block; width: 100%; height: 460px; cursor: grab; touch-action: none; }
.lgraph[aria-busy] canvas { opacity: .6; }
.g-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid #2a3344; font: 12.5px Inter, sans-serif; }
.g-hops { display: inline-flex; border: 1px solid #3a4456; border-radius: 7px; overflow: hidden; }
.g-hops button { padding: 5px 12px; color: var(--navy-mute); font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .12em; }
.g-hops button + button { border-left: 1px solid #3a4456; }
.g-hops button[aria-pressed="true"] { background: rgba(216,181,109,.16); color: var(--brass); }
.g-count { flex: 1; color: var(--navy-mute); font-variant-numeric: tabular-nums; }
.g-btn, .g-full { color: var(--brass); font-size: 12.5px; text-decoration: none; }
.g-btn:hover, .g-full:hover { text-decoration: underline; }
.g-tip { position: absolute; z-index: 2; max-width: 280px; padding: 10px 12px; border: 1px solid rgba(216,181,109,.5); border-radius: 8px;
  background: rgba(18,24,35,.96); box-shadow: 0 8px 24px rgba(0,0,0,.4); pointer-events: none; display: flex; flex-direction: column; gap: 3px; }
.g-tip b { font: 700 15px "Playfair Display SC", Georgia, serif; color: #f3ead6; }
.g-kind { font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--brass); }
.g-sum { font: 400 13.5px/1.45 Fraunces, Georgia, serif; color: #cfc6b2; }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 14px; border-top: 1px solid #2a3344; font: 11.5px Inter, sans-serif; color: var(--navy-mute); }
.g-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: -1px; background: #e9e1cf; }
.g-legend .lg-star::before { clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); width: 11px; height: 11px; }
.g-legend .lg-person::before { border-radius: 50%; background: radial-gradient(#e9e1cf 32%, transparent 34% 56%, #e9e1cf 58% 70%, transparent 72%); }
.g-legend .lg-work::before { border-radius: 50%; width: 7px; height: 7px; }
.g-legend .lg-comp::before { background: none; border: 1.5px solid #e9e1cf; }
.g-legend .lg-theme::before { border-radius: 50%; background: #f3e9d2; box-shadow: 0 0 0 1.5px #d8b56d; }
.g-legend .lg-scrip::before { transform: rotate(45deg) scale(.8); }
.g-legend .lg-ghost::before { border-radius: 50%; background: none; border: 1px dashed #e9e1cf; }
.g-legend .lg-solid::before { height: 1.5px; width: 16px; background: #d8b56d; vertical-align: 3px; }
.g-legend .lg-dash::before { height: 0; width: 16px; background: none; border-top: 1.5px dotted #d8b56d; vertical-align: 3px; }
.g-listbox { padding: 0 14px 10px; font: 13px Inter, sans-serif; }
.g-listbox summary { cursor: pointer; color: var(--navy-mute); font-size: 12px; padding: 4px 0; }
.g-list { margin: 6px 0 0; padding-left: 1.2em; columns: 2 16rem; line-height: 1.8; }
.g-list a { color: #f3ead6; }
.g-list span { color: var(--navy-mute); font-size: 11.5px; }
.k-sec.k-graph { max-width: none; }
/* full-screen page */
.tb-page .swrap.g-wrap { max-width: none; padding: 18px 24px 24px; }
.g-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.g-head .lib-h-light { margin: 0; }
.g-head h1 { margin: 0; font: 700 26px "Playfair Display SC", Georgia, serif; }
.g-head h1 a { color: var(--ink); text-decoration: none; }
.g-page canvas { height: calc(100vh - 250px); min-height: 420px; }
@media (max-width: 600px) { .lgraph canvas { height: 380px; } .g-head { flex-direction: column; gap: 2px; } .tb-page .swrap.g-wrap { padding: 14px 12px; } }
/* Global graph */
.gg-search { flex: 0 1 340px; }
.gg-search input { width: 100%; height: 32px; padding: 0 12px; border: 1px solid #3a4456; border-radius: 999px; background: #0e131c; color: var(--navy-ink); font: 13px Inter, sans-serif; outline: none; }
.gg-search input:focus { border-color: var(--brass); }
.gg-search input::placeholder { color: var(--navy-mute); }
.gg-card { position: absolute; z-index: 3; top: 64px; right: 14px; width: min(320px, calc(100% - 28px)); max-height: calc(100% - 140px); overflow: auto;
  padding: 16px 18px; border: 1px solid rgba(216,181,109,.45); border-radius: 10px; background: rgba(18,24,35,.96); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.gg-card h2 { margin: 2px 26px 6px 0; font: 700 20px/1.2 "Playfair Display SC", Georgia, serif; color: #f3ead6; }
.gg-kind { margin: 0; font: 400 10.5px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--brass); }
.gg-sum { margin: 0 0 12px; font: 400 14px/1.5 Fraunces, Georgia, serif; color: #cfc6b2; }
.gg-acts { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.gg-acts .sbtn { display: inline-flex; align-items: center; height: 32px; background: var(--brass); color: var(--navy); text-decoration: none; }
.gg-acts a:not(.sbtn) { color: var(--brass); font-size: 13px; }
.gg-h { margin: 0 0 6px; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--navy-mute); }
.gg-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gg-card li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gg-card li button { padding: 3px 0; text-align: left; color: #f3ead6; font: 14px Fraunces, Georgia, serif; }
.gg-card li button:hover { color: var(--brass); text-decoration: underline; }
.gg-card li span { flex: none; font-size: 11px; color: var(--navy-mute); }
.gg-close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; color: var(--navy-mute); font-size: 20px; }
.gg-close:hover { color: var(--brass); }
.ggraph canvas { height: calc(100vh - 230px); }
@media (max-width: 600px) { .gg-card { top: auto; bottom: 60px; max-height: 50%; } .gg-search { flex-basis: 100%; } }
/* evidence panel (graph lines) */
.g-evid { top: 56px; width: min(380px, calc(100% - 28px)); }
.gg-card .ev-amp { color: var(--brass); font-size: .8em; }
.gg-card section { margin-top: 12px; padding-top: 10px; border-top: 1px solid #2a3344; }
.gg-card h3 { margin: 0; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--brass); }
.ev-sub, .ev-none { margin: 2px 0 8px; font-size: 12px; color: var(--navy-mute); }
.gg-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gg-card ol a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; }
.gg-card ol a:hover { background: rgba(216,181,109,.1); }
.ev-src { display: block; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .06em; color: var(--navy-mute); }
.ev-text { display: block; font: 400 14px/1.5 Fraunces, Georgia, serif; color: #e3dac6; }
.ev-text mark { background: rgba(216,181,109,.28); color: #fff3d6; border-radius: 2px; padding: 0 .1em; }
.gg-ev { margin-left: auto; padding: 2px 0; color: var(--navy-mute); font-size: 11px; text-decoration: underline dotted; text-underline-offset: 3px; }
.gg-ev:hover { color: var(--brass); }
.gg-back { margin: 0 0 8px; color: var(--brass); font-size: 12.5px; }
.gg-time { flex-basis: 100%; display: flex; align-items: center; gap: 12px; }
.gg-time button { width: 30px; height: 30px; border: 1px solid #3a4456; border-radius: 50%; color: var(--brass); font-size: 11px; }
.gg-time button:hover { border-color: var(--brass); }
.gg-time input { flex: 1; max-width: 640px; accent-color: #d8b56d; }
.gg-time output { min-width: 15em; font: 400 12.5px "Playfair Display SC", Georgia, serif; letter-spacing: .08em; color: var(--brass); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 600px) { .gg-time output { min-width: 0; font-size: 11px; } }
.g-legend span:not([class])::before { display: none; }
/* draft review */
.kd-banner { margin: 0 0 26px; padding: 14px 18px; border: 1px dashed var(--gold); border-radius: 10px; background: color-mix(in srgb, var(--gold) 8%, var(--paper)); font-size: 14px; }
.kd-banner p { margin: 0 0 6px; }
.kd-banner ul { margin: 4px 0 8px; padding-left: 1.2em; color: #a4482d; font-size: 13px; }
.kd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px !important; }
.kd-acts .sbtn { height: 36px; }
.kd-acts .sbtn[disabled] { opacity: .45; cursor: not-allowed; }
.kd-file { font: 12px Menlo, ui-monospace, monospace; color: var(--muted); }
.kd-ok { color: #4f7a3a; font-size: 13px; }
.kd-bad { color: #a4482d; font-size: 13px; }
.k-drafts { list-style: none; margin: 18px 0 0; padding: 0; }
.k-drafts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.k-drafts a { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; text-decoration: none; color: var(--ink); }
.k-drafts b { font: 700 18px "Playfair Display SC", Georgia, serif; }
.k-drafts span { font-size: 12.5px; color: var(--muted); }

/* ---- books: chapters, contents, epigraphs, title page (owner 2026-10-12). Classes only; the text is as stored. */
#transcript .para.bk-front { margin: 0 0 .3em; text-align: center; hyphens: manual; font: 400 .82em/1.5 "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--ink-soft); }
#transcript .pw:has(> .bk-front) + .pw:has(> :not(.bk-front)) { margin-top: 2.2em; }
#transcript .para.bk-num { margin: 3em 0 .25em; text-align: center; hyphens: manual; font: 400 .8em/1.4 "Playfair Display SC", Georgia, serif; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); }
#transcript .para.bk-head { margin: 2.6em 0 1.1em; text-align: center; hyphens: manual; text-wrap: balance; font: 700 1.32em/1.25 "Playfair Display SC", Georgia, serif; letter-spacing: .03em; color: var(--ink); }
#transcript .pw:has(> .bk-num) + .pw > .bk-head { margin-top: 0; }
#transcript .pw:has(> .bk-head) + .pw > .bk-head { margin-top: -.6em; font-size: 1.05em; font-weight: 400; }   /* a subtitle under a title */
#transcript .pw:first-child > .bk-head, #transcript .pw:first-child > .bk-num { margin-top: 0; }
#transcript .para.bk-toc { margin: 0 0 1.6em; padding: .9em 1.2em; text-align: left; hyphens: manual; font-size: .9em; line-height: 1.55;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
#transcript .pw:has(> .bk-toc) + .pw > .bk-toc { margin-top: -1.6em; border-top: 0; padding-top: 0; }   /* a contents list stored one line per paragraph */
#transcript .bk-toc .ti { display: block; padding: .15em 0; }
#transcript .para.bk-epi { margin: 0 2.4em .35em; text-align: center; hyphens: manual; font-style: italic; font-size: .95em; color: var(--ink-soft); }
#transcript .para.bk-by { margin: 0 2.4em 1.5em; text-align: right; hyphens: manual; font: 400 .8em/1.4 "Playfair Display SC", Georgia, serif; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 640px) { #transcript .para.bk-epi, #transcript .para.bk-by { margin-left: .8em; margin-right: .8em; } }
@media print {
  #transcript .para.bk-head { font-size: 13pt; margin: 14pt 0 8pt; break-after: avoid; }
  #transcript .para.bk-num { font-size: 8pt; margin: 18pt 0 2pt; break-after: avoid; color: #555; }
  #transcript .pw:has(> .bk-head), #transcript .pw:has(> .bk-num) { break-after: avoid; }
}
.lib-head { display: none; }   /* the reader's Library has its own header (reader.css) */

/* SEO pass 2026-10-13: breadcrumbs, hub pages (texts by year, Scripture book/chapter/verse), lecture Connections */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 14px; padding: 0; font: 12.5px Inter, sans-serif; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }   /* the current page's name sits on the same line as the links, which are taller on touch screens */
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); overflow-wrap: anywhere; }
.column > .crumbs ol { justify-content: center; margin-bottom: 4px; }
@media print { .crumbs, .connections { display: none; } }
.hubpage section { margin-top: 22px; }
.hub-years { margin: 6px 0 4px; }
.sch[aria-current] { border-color: var(--gold); color: var(--ink); font-weight: 600; }
.hub-year, .hub-pass { list-style: none; margin: 0; padding: 0; }
.hub-year li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.hub-year li > a { color: var(--ink); text-decoration: none; font: 17px Fraunces, Georgia, serif; }
.hub-year li > a:hover { text-decoration: underline; }
.hub-year .hy-t { grid-column: 1 / -1; margin: 0; font: 12.5px Inter, sans-serif; color: var(--muted); }
.hub-year .hy-t a, .hub-themes a, .connections a { color: var(--ink-soft); }
.ht-d { font: 12.5px Inter, sans-serif; color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.hub-text { margin-top: 18px !important; }
.hub-text h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; margin: 0 0 6px; font: 400 19px Fraunces, Georgia, serif; }
.hub-text h3 a { color: var(--ink); text-decoration: none; }
.hub-text h3 a:hover { text-decoration: underline; }
.hub-pass li { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; padding: 6px 0; }
.hp-n { font: 12px Inter, sans-serif; color: var(--gold-text); text-decoration: none; padding-top: 3px; }
.hp-x { margin: 0; font: 15.5px/1.6 Fraunces, Georgia, serif; color: var(--ink); }
.hub-themes { font: 13px Inter, sans-serif; color: var(--ink-soft); }
.hub-themes .lib-h-light { display: block; }
.connections { margin: 1.5rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font: 13.5px/1.6 Inter, sans-serif; }
.connections h2 { margin: 0 0 10px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--gold-text); text-align: center; }
.connections dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.connections dt { color: var(--muted); }
.connections dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .connections dl { grid-template-columns: 1fr; gap: 0; } .connections dd { margin-bottom: 8px; } .hub-pass li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 760px) {   /* phones: links people tap get a finger-sized box (2026-11-08) */
  .hub-themes { line-height: 1; }
  .hub-themes a { display: inline-flex; align-items: center; min-height: 44px; }
  .g-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
}
@media (pointer: coarse) { .crumbs a, .connections a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; } }
.more-wrap { margin: 28px 0 8px; text-align: center; }
.more-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 6px; font: 500 14px Inter, sans-serif; color: var(--ink); text-decoration: none; }
.more-link:hover { border-color: var(--gold); }
.more-link[aria-busy] { opacity: .6; }
.bk-list { display: grid; gap: 14px; margin-top: 18px; }
.bk-card { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--rule) 75%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--ink) 2%, var(--paper)); }
.bk-card h2 { margin: 0 0 2px; font: 400 22px Fraunces, Georgia, serif; }
.bk-card h2 a { color: var(--ink); text-decoration: none; }
.bk-card h2 a:hover { text-decoration: underline; }
.bk-toc { margin: 10px 0 0; padding-left: 1.3em; font: 14px/1.7 Fraunces, Georgia, serif; columns: 2 16rem; column-gap: 28px; }
.bk-toc a { color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.bk-toc a:hover { text-decoration: underline; }
.bk-more, .bk-also { margin: 8px 0 0; font: 13px Inter, sans-serif; color: var(--muted); }
.bk-more a, .bk-also a { color: var(--ink-soft); }

/* Public read-only site (library.py --public): notes, highlights and bookmarks exist only in the private reader */
[data-mode="public"] .selbar .swatches, [data-mode="public"] [data-action="add-note"], [data-mode="public"] [data-action="remove-ann"],
[data-mode="public"] [data-action="bookmark"], [data-mode="public"] #tab-notes, [data-mode="public"] .marginalia,
[data-mode="public"] .sp-act[data-act="save"], [data-mode="public"] .tnotes { display: none !important; }
.bk-note { margin: 6px 0 0; font: italic 13px Fraunces, Georgia, serif; color: var(--ink-soft); }
/* Knowledge index (owner 2026-10-26): emblem cards that lead with his line, The Promise, people, research, a small live Graph */
.tb-page .swrap.kx-wrap { max-width: 76rem; }
.kx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; padding: 34px; margin-bottom: 44px;
  border-radius: 14px; background: var(--navy-2); color: var(--navy-ink); border-bottom: 3px solid var(--brass-2); }
.kx-hero .lib-h-light { margin: 0 0 6px; color: var(--brass); }
.kx-hero h1 { margin: 0 0 12px; font: 700 44px/1.05 "Playfair Display SC", Georgia, serif; color: #f3ead6; }
.kx-intro > p:not(.lib-h-light):not(.kx-acts) { margin: 0; max-width: 30rem; font: 400 18px/1.55 Fraunces, Georgia, serif; color: #cfc6b2; }
.kx-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.kx-btn, .kx-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 14px Inter, sans-serif; text-decoration: none; }
.kx-btn { background: var(--brass); color: var(--navy-2); }
.kx-btn:hover { background: #e4c483; color: var(--navy-2); }
.kx-ghost { border: 1px solid rgba(233,225,207,.35); color: var(--navy-ink); }
.kx-ghost:hover { border-color: var(--brass); color: var(--brass); }
.gg-mini { border-color: #2a3344; }
.gg-mini canvas { height: 340px; cursor: default; }
.kx-sec { margin: 0 0 48px; }
.kx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.kx-h h2, .kx-promise h2 { margin: 0; font: 700 24px "Playfair Display SC", Georgia, serif; color: var(--ink); }
.kx-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 18px; }
.kx-card { display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box; padding: 22px; border-radius: 14px;
  background: #FBF6EC; border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.kx-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(80,60,20,.08); }
.kx-card img { width: 64px; height: 64px; mix-blend-mode: multiply; }
.kx-card h3 { margin: 0; font: 700 20px "Playfair Display SC", Georgia, serif; }
.kx-line { margin: 0; font: 400 18px/1.4 Fraunces, Georgia, serif; color: var(--ink); }
.kx-sum { margin: 0; font: 14px/1.5 Inter, sans-serif; color: var(--ink-soft); }
.kx-src { margin: auto 0 0; padding-top: 4px; font: 500 12px Inter, sans-serif; color: var(--gold-text); }
.kx-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kx-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule);
  color: var(--ink); font: 500 14px Inter, sans-serif; text-decoration: none; }
.kx-chips a:hover { border-color: var(--gold); color: var(--gold-text); }
.kx-promise { margin: 0 0 48px; padding: 34px; border-radius: 14px; background: var(--navy-2); color: var(--navy-ink); }
.kx-promise h2, .kx-promise h2 a { color: #f3ead6; text-decoration: none; }
.kx-promise h2 a:hover { color: var(--brass); }
.kx-promise > p { margin: 8px 0 24px; max-width: 38rem; font: 400 17px/1.5 Fraunces, Georgia, serif; color: #cfc6b2; }
.kx-promise ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 16px; }
.kx-promise li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 2px solid var(--brass); }
.kx-when { font: 600 12px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.kx-promise li a { font: 500 20px Fraunces, Georgia, serif; color: #f3ead6; text-decoration: none; }
.kx-promise li a:hover { color: var(--brass); }
.kx-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 18px; }
.kx-person { display: flex; gap: 16px; height: 100%; box-sizing: border-box; padding: 20px; border-radius: 14px; background: #FBF6EC;
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); color: var(--ink); text-decoration: none; }
.kx-person:hover { border-color: var(--gold); }
.kx-person.has-pic { padding: 0; overflow: hidden; }
.kx-person.has-pic > span { padding: 20px 20px 20px 0; }
.kx-person img { flex: none; width: 120px; object-fit: cover; object-position: center 30%; }
.kx-mono { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-2); color: var(--brass); font: 500 26px/1 Fraunces, Georgia, serif; padding-bottom: 3px; box-sizing: border-box; }
.kx-person > span { display: flex; flex-direction: column; gap: 4px; }
.kx-person small { font: 600 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.kx-person b { font: 700 20px "Playfair Display SC", Georgia, serif; }
.kx-person > span > span { font: 14px/1.5 Inter, sans-serif; color: var(--ink-soft); }
.kx-research { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); column-gap: 44px; }
.kx-research li { display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.kx-num { grid-row: span 2; font: 400 26px/1 Fraunces, Georgia, serif; color: var(--gold); }
.kx-research a { font: 700 18px "Playfair Display SC", Georgia, serif; color: var(--ink); text-decoration: none; }
.kx-research a:hover { color: var(--gold-text); }
.kx-research li > span:last-child { font: 14px/1.5 Inter, sans-serif; color: var(--ink-soft); }
@media (max-width: 760px) {
  .kx-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .kx-hero h1 { font-size: 34px; }
  .gg-mini canvas { height: 280px; }
  .kx-promise { padding: 24px 20px; }
  .kx-research { grid-template-columns: 1fr; }
}
/* Worlds Within Worlds cards with the owner's engraved scenes (2026-10-26): picture beside the group and title */
.xfeat.has-pic { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 18px; }
.xfeat.has-pic img { grid-row: 1 / 3; width: 88px; height: 88px; border-radius: 10px; align-self: center; box-shadow: 0 0 0 1px rgba(212,182,122,.35); }
.xfeat.has-pic .k { grid-column: 2; align-self: end; }
.xfeat.has-pic h4 { grid-column: 2; align-self: start; }
.xfeat.has-pic p, .xfeat.has-pic .lk { grid-column: 1 / -1; }
.xfeat.has-pic p { margin-top: 16px; }
.xfeat.has-pic .lk { align-self: end; }
/* hover: the card lifts and warms, the picture brightens and grows a little, Read's arrow moves on; Read sits bottom right */
.xfeat { position: relative; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.xfeat:hover, .xfeat:focus-visible { transform: translateY(-4px); border-color: #C4A46A; box-shadow: 0 14px 30px rgba(18,24,35,.35), 0 0 0 1px rgba(196,164,106,.35), 0 0 28px rgba(212,182,122,.12); }
.xfeat .lk { align-self: flex-end; display: inline-flex; gap: 6px; }
.xfeat.has-pic .lk { justify-self: end; }
.lk-ar { display: inline-block; transition: transform .25s ease; }
.xfeat:hover .lk-ar, .xfeat:focus-visible .lk-ar { transform: translateX(5px); }
.xfeat:hover .lk, .xfeat:focus-visible .lk { color: #EBD39A; }
.xfeat.has-pic img { transition: transform .35s ease, filter .35s ease, box-shadow .35s ease; }
.xfeat.has-pic:hover img, .xfeat.has-pic:focus-visible img { transform: scale(1.06) rotate(-1deg); filter: brightness(1.12) saturate(1.1); box-shadow: 0 0 0 1px rgba(212,182,122,.7), 0 6px 18px rgba(212,182,122,.25); }
.xfeat h4 { transition: color .25s ease; }
.xfeat:hover h4 { color: #FFF8EA; }
@media (prefers-reduced-motion: reduce) { .xfeat, .xfeat.has-pic img { transition: none; } .xfeat:hover, .xfeat.has-pic:hover img { transform: none; } }
/* the owner's photographs on Knowledge pages and the Life page (2026-10-26) */
.k-secpic { margin: 18px 0 22px; }   /* a section's picture from the app's Art mode, full column width (2026-11-10) */
.k-secpic img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rule) 70%, transparent); }
/* a ```diagram block (2026-11-10), collapsible with its steps named in the summary (owner 2026-11-13).
   Style A (default): numbered steps on a gold rail. B: a dark engraved plate. C: cards in a flow. Preview: ?dg=b / ?dg=c */
.k-dgwrap { margin: 22px 0 28px; border: 1px solid var(--rule); border-radius: 12px; background: color-mix(in srgb, var(--rule) 12%, var(--paper)); }
.k-dgwrap > summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; user-select: none; }
.k-dgwrap > summary::-webkit-details-marker { display: none; }
.k-dgwrap > summary::before { content: "▸"; flex: none; color: var(--gold); transition: transform .15s; }
.k-dgwrap[open] > summary::before { transform: rotate(90deg); }
.kd-label { flex: none; font: 400 12px/1.3 "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--gold-text); }
.kd-chain { min-width: 0; font: 400 13.5px/1.45 Inter, sans-serif; color: var(--muted); }
.k-dgwrap[open] .kd-chain { display: none; }
.k-dgwrap > summary:hover .kd-label { color: var(--ink); }
.k-diagram { margin: 0; padding: 4px 18px 18px; counter-reset: kd; }
.kd-row { position: relative; display: grid; gap: 10px; margin-left: 44px; padding: 2px 0 16px; counter-increment: kd; }
.kd-row::before { content: counter(kd); position: absolute; left: -44px; top: 4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--paper); font: 700 13px/1 Inter, sans-serif; }
.kd-row::after { content: ""; position: absolute; left: -31px; top: 34px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--gold) 45%, transparent); }
.kd-row:last-child { padding-bottom: 0; }
.kd-row:last-child::after { display: none; }
.kd-arrow { display: none; }
.kd-split { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kd-box { padding: 4px 0; }
.kd-split .kd-box { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); border-radius: 8px; background: var(--paper); }
.kd-t { margin: 0; font: 700 17px/1.3 "Playfair Display", Georgia, serif; color: var(--ink); }
.kd-c { margin: 4px 0 0; max-width: 62ch; font-size: .92em; line-height: 1.5; color: var(--ink-soft); }
.kd-c + .kd-c { margin-top: 6px; font-size: .88em; }

/* B: a dark engraved plate */
.dg-b .k-dgwrap { background: var(--frame); border-color: #2a3446; }
.dg-b .kd-label { color: #d8b56d; } .dg-b .kd-chain { color: #9aa3b2; } .dg-b .k-dgwrap > summary:hover .kd-label { color: #f3e9d4; }
.dg-b .kd-t { color: #f3e9d4; font: 400 15px/1.3 "Playfair Display SC", Georgia, serif; letter-spacing: .08em; }
.dg-b .kd-c { color: #cdc5b3; } .dg-b .k-diagram .kq { color: #f3e9d4; }
.dg-b .k-diagram a { color: #d8b56d; }
.dg-b .kd-row::before { background: transparent; border: 1px solid #d8b56d; color: #d8b56d; font-family: "Playfair Display", Georgia, serif; }
.dg-b .kd-row::after { background: #3a4558; }
.dg-b .kd-split .kd-box { background: #19202c; border-color: #2f3949; }

/* C: cards in a flow */
.dg-c .k-diagram { display: grid; gap: 10px; }
.dg-c .kd-row { margin: 0; padding: 14px 16px 14px 56px; border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); border-radius: 10px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(42, 32, 23, .06); }
.dg-c .kd-row::before { left: 14px; top: 14px; }
.dg-c .kd-row::after { left: 27px; top: auto; bottom: -11px; height: 10px; width: 2px; display: block; }
.dg-c .kd-row:last-child::after { display: none; }
@media (max-width: 600px) { .kd-row { margin-left: 36px; } .kd-row::before { left: -36px; width: 24px; height: 24px; } .kd-row::after { left: -25px; } }

.k-pic { margin: 0 0 14px; }
.k-pic img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rule) 70%, transparent); }
.k-pic figcaption { margin-top: 6px; font: 12.5px/1.45 Inter, sans-serif; color: var(--ink-soft); }
.k-art img { aspect-ratio: 1; object-fit: cover; }                               /* the page's engraved scene */
.k-emb { display: flex; justify-content: center; padding: 14px 0; border-radius: 8px; background: color-mix(in srgb, var(--rule) 22%, transparent); }
.k-emb img { width: 96px; box-shadow: none; }
.lx-pics a, .k-pic, .histdoc img { cursor: zoom-in; }
.lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(14,18,26,.86); backdrop-filter: blur(3px); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: zoom-out; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { max-width: 60ch; text-align: center; font: 14px/1.5 Inter, sans-serif; color: #e9e1cf; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(233,225,207,.35); background: transparent; color: #e9e1cf; font-size: 24px; cursor: pointer; }
/* drafts in the A–Z, local desk only (owner 2026-11-10) */
.rs-azdraft a { color: var(--ink-soft); font-style: italic; }
.rs-dtag { font: 600 10px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 3px; padding: 2px 4px; vertical-align: 2px; }
.rs-azn { margin-left: .5em; font: 500 13px/1 Inter, sans-serif; letter-spacing: .02em; color: var(--cite); vertical-align: middle; }

/* Research article hover cards (static/kpreview.js, owner 2026-11-13) */
.kpv { position: fixed; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(420px, calc(100vh - 24px)); overflow: auto;
  padding: 14px 16px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(42, 32, 23, .18), 0 2px 6px rgba(42, 32, 23, .08); font: 400 15px/1.55 Fraunces, Georgia, serif; }
.kpv[hidden] { display: none; }
.kpv-meta { margin: 0 0 4px; font: 400 11.5px/1.3 "Playfair Display SC", Georgia, serif; letter-spacing: .1em; color: var(--muted); }
.kpv-title { margin: 0 0 6px; font: 700 18px/1.25 "Playfair Display", Georgia, serif; }
.kpv-text { margin: 0 0 8px; }
.kpv-cite .kpv-text { padding-left: 10px; border-left: 2px solid var(--gold); font-style: italic; color: var(--ink-soft); }
.kpv-pts { margin: 0 0 8px; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.kpv-pts li { margin: 0 0 2px; }
.kpv-go { display: inline-block; font: 600 12.5px Inter, sans-serif; color: var(--link); text-decoration: none; }
.kpv-go:hover { text-decoration: underline; }
.kpv-cite mark { background: var(--mark); color: inherit; font-style: normal; box-shadow: inset 0 -1px 0 var(--mark-line); }

/* Research article callouts (owner 2026-11-13): In short, Where the tellings differ, the closing "So, …?", review notes */
.k-call { margin: 1.9em 0 1.4em; padding: 4px 20px 6px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  background: color-mix(in srgb, var(--gold) 7%, var(--paper)); }
.k-body .k-call h2 { margin: .8em 0 .5em; padding: 0; border: 0; font: 400 13px/1.3 "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--gold-text); }
.k-body .k-call h2::before { margin-right: .55em; font-family: Georgia, serif; letter-spacing: 0; }
.k-call ul, .k-call ol { margin: 0 0 .9em; padding-left: 1.2em; }
.k-call li { margin: 0 0 .35em; }
.k-call p:last-child, .k-call ul:last-child { margin-bottom: .7em; }
.k-call-short { border-left: 3px solid var(--gold); }
.k-call-short h2::before { content: "✦"; }
.k-call-so { border-left: 3px solid var(--link); background: color-mix(in srgb, var(--link) 6%, var(--paper)); }
.k-body .k-call-so h2 { color: var(--link); }
.k-call-so h2::before { content: "→"; }
.k-call-differ { border-left: 3px solid var(--muted); background: color-mix(in srgb, var(--ink) 4%, var(--paper)); font-size: .94em; }
.k-body .k-call-differ h2 { color: var(--ink-soft); }
.k-call-differ h2::before { content: "⇄"; }
.k-call-review { border: 1px dashed var(--rule); background: transparent; font-size: .9em; }
.k-call-review h2::before { content: "✎"; }

/* Reading paths (owner 2026-11-13): the foot of an article on a path, and the paths on the Research page */
.k-path { margin: 2.4em 0 .5em; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 10px; background: color-mix(in srgb, var(--gold) 5%, var(--paper)); font: 400 14px/1.4 Inter, sans-serif; }
.k-path + .k-path { margin-top: 1em; }
.k-path-h { margin: 0 0 10px; color: var(--ink-soft); }
.k-path-h > span:first-child { font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--gold-text); margin-right: 4px; }
.k-path-h a { font-weight: 600; color: var(--ink); text-decoration: none; }
.k-path-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.k-path-steps a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); font-size: 12px; color: var(--muted); text-decoration: none; }
.k-path-steps a:hover { border-color: var(--gold); color: var(--ink); }
.k-path-steps [aria-current] a { background: var(--gold); border-color: var(--gold); color: var(--paper); font-weight: 700; }
.k-path-nav { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.k-path-nav a { display: flex; flex-direction: column; max-width: 48%; color: var(--link); text-decoration: none; font-weight: 600; }
.k-path-nav a:hover { text-decoration: underline; }
.k-path-nav small { font-weight: 400; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.k-path-next { margin-left: auto; text-align: right; }
.rs-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rs-path { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: color-mix(in srgb, var(--gold) 5%, var(--paper)); }
.rs-path-start { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.rs-path-t { font: 700 19px/1.25 "Playfair Display", Georgia, serif; }
.rs-path-d { font: 400 14.5px/1.45 Fraunces, Georgia, serif; color: var(--ink-soft); }
.rs-path-n { margin-top: 2px; font: 600 12.5px Inter, sans-serif; color: var(--link); }
.rs-path-list { margin: 10px 0 0; padding-left: 1.3em; font: 400 13px/1.5 Inter, sans-serif; color: var(--muted); }
.rs-path-list a { color: var(--ink-soft); text-decoration: none; }
.rs-path-list a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 600px) { .k-path-nav { flex-direction: column; } .k-path-nav a { max-width: none; } .k-path-next { margin-left: 0; text-align: left; } }
