/* The Neville Library: reader A+B (owner 2026-10-12, canvas "Web reader A + B").
   Contents or "around this date" on the left, the book-styled text in the middle, a cream Details panel on the right.
   Loaded after library.css; only the lecture page (body.rdr) uses it. */

body.rdr { background: var(--paper); }
:root { --nav-w: 15.5rem; --info-w: 340px; }
.rdr .app { --rail-w: 0px; grid-template-columns: var(--rail-w) var(--lib-w) var(--nav-w) minmax(0, 1fr) var(--info-w); }
.rdr .app > .rrail { grid-column: 1; grid-row: 1; }
.rdr .app > .library { grid-column: 2; grid-row: 1; }
.rdr .app > .leftnav { grid-column: 3; grid-row: 1; }
.rdr .app > .frame { grid-column: 4; grid-row: 1; }
.rdr .app > .info { grid-column: 5; grid-row: 1; }
/* layout D (owner 2026-10-28): a slim rail; Contents, Library and Find each open from it, one panel at a time */
.rrail { display: none; }
@media (min-width: 900px) {
  .rdr .app { --rail-w: 0px; }   /* the rail is gone (owner 2026-10-28): one button in the bar, tabs in the panel */
  /* the rail: deep navy with a faint lift at the top, a hairline of light on its edge, the house star as its crest */
  .rrail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0;
    background: radial-gradient(120% 40% at 50% 0%, #1b2c52 0%, transparent 70%), linear-gradient(180deg, #0f1a33, #08101f);
    border-right: 1px solid #1f2d4d; box-shadow: inset -1px 0 0 #ffffff08, 6px 0 18px -12px #000c; z-index: 2; }
  .rrail::before { content: "✦"; display: block; margin: 4px 0 12px; font-size: 14px; line-height: 1; color: #ECC873;
    text-shadow: 0 0 12px #ECC87366; }
  .rr-b { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; width: 64px; height: 60px; padding: 0; border: 0; border-radius: 12px;
    background: none; color: #A9B8D6; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
  .rr-b svg { width: 21px; height: 21px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .rr-b span { font: 500 10.5px/1 Inter, sans-serif; letter-spacing: 0; white-space: nowrap; }
  .rr-b:hover { background: #ffffff0c; color: #F7F3EA; }
  .rr-b:hover svg { transform: translateY(-1px); }
  .rr-b:active { transform: scale(.96); }
  .rr-b:focus-visible { outline: 2px solid #ECC873; outline-offset: 1px; }
  /* the open panel's button: gold, a soft glow behind it, a rounded marker on the rail's edge */
  .rr-b::before { content: ""; position: absolute; left: -6px; top: 50%; width: 3px; height: 28px; border-radius: 0 3px 3px 0; background: #ECC873;
    box-shadow: 0 0 10px #ECC87399; transform: translateY(-50%) scaleY(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  :root:not([data-lib="closed"]) .rr-lib, :root[data-lib="closed"]:not([data-nav="closed"]) .rr-contents {
    color: #ECC873; background: #ffffff12; }
  :root:not([data-lib="closed"]) .rr-lib::before, :root[data-lib="closed"]:not([data-nav="closed"]) .rr-contents::before { transform: translateY(-50%) scaleY(1); }
  /* a panel arriving slides in a little and fades up, instead of popping */
  @keyframes rr-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
  :root[data-lib="closed"]:not([data-nav="closed"]) .rdr .leftnav > *, :root:not([data-lib="closed"]) .rdr .rlib > * { animation: rr-in .32s cubic-bezier(.2, .8, .2, 1) both; }
  :root:not([data-lib="closed"]) .rdr .rlib > :nth-child(2) { animation-delay: .03s; }
  :root:not([data-lib="closed"]) .rdr .rlib > :nth-child(3) { animation-delay: .06s; }
  :root:not([data-lib="closed"]) .rdr .rlib > :nth-child(n+4) { animation-delay: .09s; }
  .rdr .bookbar .lib-toggle { display: none; }      /* the rail carries it on wide screens */
  :root[data-nav="closed"] .rdr .app { --nav-w: 0px; }
  :root[data-nav="closed"] .rdr .leftnav { overflow: hidden; visibility: hidden; padding: 0; border: 0; }
}
.rdr .frame { padding: 0; }
.rdr .page { width: 100%; border-radius: 0; box-shadow: none; }

/* ---- left: contents (books) or around this date (lectures) ---- */
.leftnav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; box-sizing: border-box; min-width: 0;
  padding: 22px 14px 24px 20px; border-right: 1px solid var(--rule);
  font: 400 14px/1.35 Fraunces, Georgia, serif; scrollbar-width: thin;
}
.ln-h { margin: 0 0 8px; font: 600 12px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-text); }
.ln-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ln-list a { display: block; padding: 7px 10px; border-radius: 7px; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ln-list a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ln-list a[aria-current] { background: color-mix(in srgb, var(--gold) 16%, var(--paper)); box-shadow: inset 2px 0 0 var(--gold); font-weight: 500; }
.ln-grp { margin: 12px 0 2px; padding-left: 10px; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--muted); }
.ln-near a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 6px; }
.ln-d { padding-top: 2px; font: 500 12px Inter, sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.ln-empty { margin: 0; font: italic 13px/1.5 Fraunces, Georgia, serif; color: var(--muted); }
.ln-more { margin: 12px 0 0 10px; font: 600 13px Inter, sans-serif; }
.ln-more a { color: var(--gold-text); text-decoration: none; }
.ln-lib {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin-top: 20px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 8px; background: none; font: 500 13px Inter, sans-serif; color: var(--ink-soft); cursor: pointer;
}
.ln-lib svg { width: 16px; height: 16px; }
.ln-lib kbd { margin-left: auto; font: 11px Inter, sans-serif; color: var(--muted); }
.ln-lib:hover { border-color: var(--gold); color: var(--ink); }

/* ---- the book bar ---- */
.rdr .bookbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 6px 14px;
  background: var(--paper); border-bottom: 1px solid var(--rule); border-radius: 0; transition: transform .2s ease;
}
.bb-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.bb-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--ink-soft); }
.bb-d { font: 12px Inter, sans-serif; color: var(--muted); font-variant-numeric: lining-nums; }
.versions-seg { display: inline-flex; margin-top: 3px; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.vseg { padding: 3px 11px; font: 500 12px Inter, sans-serif; color: var(--ink-soft); text-decoration: none; }
.vseg + .vseg { border-left: 1px solid var(--rule); }
.vseg[aria-current] { background: var(--frame); color: var(--paper); }
.vseg-k { padding: 3px 9px 3px 11px; font: 500 12px Inter, sans-serif; color: var(--muted); border-right: 1px solid var(--rule); }
.also-pub { margin: 6px auto 0; max-width: 34rem; font: italic 14px/1.5 Fraunces, Georgia, serif; color: var(--muted); }
.bb-tools { display: flex; align-items: center; gap: 2px; }
.bb-study { gap: 5px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 999px; }
.bb-study[aria-pressed="true"] { background: var(--frame); border-color: var(--frame); color: var(--paper); }
.bb-more { display: none; }
.rdr .menu .m-sub { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.rdr .menu > button { align-items: flex-start; }
.menu.keys { min-width: 290px; }
.menu.keys dl { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 7px 10px; margin: 6px 10px; font: 13px Inter, sans-serif; }
.menu.keys dt, .menu.keys dd { margin: 0; }
.menu.keys kbd { font: 600 12px Inter, sans-serif; color: var(--gold-text); }

/* ---- paragraph numbers: on hover, every one in Study ---- */
/* the ¶ number hugs the text: right-aligned just left of the paragraph, centred on its first line, clear of the margin rule */
.rdr .pmark {
  left: auto; right: calc(100% + .7rem); top: 0; width: auto; white-space: nowrap; text-align: right;
  font: 500 12px Inter, sans-serif; line-height: calc(var(--fs) * 1.64); font-variant-numeric: tabular-nums;
}
.rdr .pw:has(.ribbon) .pmark { left: auto; right: calc(100% + 1.4rem); }
/* the sign in the text's serif, the number in Inter lining figures, so neither looks shrunken */
.rdr .pmark { display: inline-flex; align-items: baseline; gap: 1px; }
.rdr .pmark::before { content: "¶"; font: 400 14px Fraunces, Georgia, serif; color: inherit; }
/* owner 2026-10-28: no ¶ numbers in the reader; the mark still links to the paragraph */
:root[data-study="on"] .rdr .pmark { opacity: .8; }
.pw.psel > .para { background: color-mix(in srgb, var(--gold) 11%, transparent); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--gold) 11%, transparent); }
.pw.psel > .pmark { opacity: 1; color: var(--gold-text); font-weight: 700; }

/* ---- concepts and scripture in the text (painted, never wrapped) ---- */
::highlight(concept) { text-decoration: underline dotted; text-decoration-color: var(--gold-text); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
::highlight(voice) { background-color: rgba(214, 178, 96, .45); color: inherit; }
::highlight(voice-soft) { background-color: rgba(214, 178, 96, .2); color: inherit; }        /* the sentence, when words are timed */
::highlight(voice-word) { background-color: rgba(214, 178, 96, .62); color: inherit; }       /* the word he is saying */
.rdr mark.ref { cursor: pointer; }
.pop {
  position: fixed; z-index: 45; width: min(21rem, calc(100vw - 24px)); box-sizing: border-box; padding: 14px 16px; border-radius: 12px;
  background: var(--frame); color: #e9e1cf; box-shadow: 0 18px 40px rgba(25, 32, 44, .3);
}
.pop[hidden] { display: none; }
.pop-k { margin: 0 0 4px; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: #d8b56d; }
.pop-t { margin: 0 0 6px; font: 500 17px/1.25 Fraunces, Georgia, serif; color: #F4EDE0; }
.pop-d { margin: 0 0 10px; font: 14px/1.5 Inter, sans-serif; color: #cfc6b3; }
.pop-d:empty { display: none; }
.pop-a { font: 600 13px Inter, sans-serif; color: #d8b56d; text-decoration: none; }

/* ---- the reading footer: previous · where you are · next ---- */
.readfoot {
  position: sticky; bottom: 0; z-index: 12; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 10px 18px; padding: 10px 24px 10px; background: color-mix(in srgb, var(--paper) 92%, white); border-top: 1px solid var(--rule);
  transition: transform .2s ease;
}
.readfoot .rf-prev { justify-self: start; }
.readfoot .rf-next { justify-self: end; }
/* the reading tools: one small pill in the middle of the footer (owner 2026-10-12) */
.ft-tools {
  display: flex; align-items: center; gap: 2px; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 60%, white); box-shadow: 0 4px 14px rgba(43, 30, 22, .06);
}
.ft-tools .tb { height: 36px; min-width: 36px; border-radius: 999px; }
.ft-tools .bb-study { border: 0; padding: 0 10px; }
.ft-tools .menu { top: auto; bottom: calc(100% + 10px); right: auto; left: 50%; transform: translateX(-50%); }
.readfoot > a { display: flex; flex-direction: column; min-width: 0; max-width: 17rem; min-height: 40px; justify-content: center; text-decoration: none; color: var(--ink); }
.readfoot .rf-next { align-items: flex-end; text-align: right; }
.rf-k { font: 500 11px Inter, sans-serif; color: var(--muted); }
.rf-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px Fraunces, Georgia, serif; }
.rf-none { width: 4rem; }
.readfoot .track { position: absolute; left: 0; right: 0; top: -2px; height: 3px; border-radius: 0; overflow: visible; }
.readfoot .tick { position: absolute; top: -3px; width: 2px; height: 10px; border-radius: 1px; background: var(--muted); opacity: .45; }

/* ---- right: the Details panel, cream instead of navy ---- */
.rdr .info {
  --shelf-ink: var(--ink); --shelf-soft: var(--ink-soft); --shelf-muted: var(--muted); --shelf-gold: var(--gold-text);
  --shelf-rule: var(--rule); --shelf-sel: color-mix(in srgb, var(--gold) 16%, transparent);
  background: color-mix(in srgb, var(--paper) 70%, white); color: var(--ink); border-left: 1px solid var(--rule);
}
.rdr .info a { color: var(--gold-text); }
.rdr .ann-body { color: #6b4a1c; }
.rdr .info-tabs .close:hover, .rdr .chip:hover { background: var(--shelf-sel); }

/* "In this paragraph" at the top of Details */
.ppanel { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.ppanel[hidden] { display: none; }
.pp-h { margin: 0 0 10px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--muted); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pp-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--rule); font: 500 12.5px Inter, sans-serif; color: var(--ink) !important; text-decoration: none; }
.pp-chip:hover { border-color: var(--gold); }
.pp-card { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--frame); color: #e9e1cf; }
.pp-card .k { margin: 0 0 3px; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: #d8b56d; }
.pp-card .t { margin: 0 0 3px; font: 500 15px Fraunces, Georgia, serif; color: #F4EDE0; }
.pp-card .d { margin: 0 0 8px; font: 13px/1.5 Inter, sans-serif; color: #cfc6b3; }
.pp-card a { font: 600 12.5px Inter, sans-serif; color: #d8b56d !important; text-decoration: none; }
.pp-sub { margin: 4px 0 2px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--muted); }
.pp-note { margin: 0 0 6px; font: 12px Inter, sans-serif; color: var(--muted); }
.pp-else { list-style: none; margin: 0; padding: 0; }
.pp-else a { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink) !important; }
.pp-else .y { font: 600 12px Inter, sans-serif; color: var(--gold-text); }
.pp-else .t { font: 14px/1.3 Fraunces, Georgia, serif; }
.pp-else .p { font: 12px Inter, sans-serif; color: var(--muted); }
.pp-quiet { margin: 0; font: italic 13px Fraunces, Georgia, serif; color: var(--muted); }

/* ---- read along (hidden until a text has a recording) ---- */
.listen-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-right: 4px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: var(--frame); color: var(--paper); font: 600 13px Inter, sans-serif; cursor: pointer; }
.listen-pill svg { width: 13px; height: 13px; fill: #d8b56d; }
.listen-pill.on { background: color-mix(in srgb, var(--gold) 20%, var(--paper)); color: var(--gold-text); }
.listen-card { display: flex; align-items: center; gap: 16px; margin: 0 0 2.2rem; padding: 16px 18px; border-radius: 14px; background: var(--frame); color: #e9e1cf; }
.listen-card .play { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: #d8b56d; color: #19202c; cursor: pointer; }
.listen-card .lc-t { margin: 0; font: 500 17px Fraunces, Georgia, serif; color: #F4EDE0; }
.listen-card .lc-d { margin: 3px 0 0; font: 13px Inter, sans-serif; color: #b9c0cc; }
a.listen-card { text-decoration: none; }
.listen-card > span:not(.play) { display: block; }
.listen-card .lc-t, .listen-card .lc-d { display: block; }
.listen-elsewhere:hover { box-shadow: 0 0 0 2px #d8b56d inset; }
.listen-card .resume { flex: none; margin-left: auto; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #3a4456; background: none; color: #e9e1cf; font: 500 13px Inter, sans-serif; cursor: pointer; }
.player {
  position: fixed; left: 0; right: 0; bottom: var(--rf-h, 0px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 12px 28px 14px; background: var(--frame); border-top: 2px solid #b38a43; color: #F4EDE0; font: 13px Inter, sans-serif;
}
.player[hidden] { display: none; }
.player button { display: grid; place-items: center; min-width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: #e9e1cf; cursor: pointer; }
.player .pl-play { width: 52px; height: 52px; border-radius: 50%; background: #d8b56d; color: #19202c; }
.player .pl-title { flex: 0 1 15rem; min-width: 0; }
.player .pl-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px Fraunces, Georgia, serif; }
.player .pl-title span { font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: #d8b56d; }
.player .pl-time { flex: 1 1 16rem; display: flex; align-items: center; gap: 12px; color: #b9c0cc; font-variant-numeric: tabular-nums; }
.player input[type="range"] { flex: 1; accent-color: #d8b56d; }
.player .pl-rate, .player .pl-follow { min-height: 40px; padding: 0 12px; border: 1px solid #3a4456; border-radius: 10px; font: 600 13px Inter, sans-serif; }
.player .pl-follow[aria-pressed="true"] { background: #d8b56d; border-color: #d8b56d; color: #19202c; }
.player .pl-next { flex: 1; font: 500 15px Fraunces, Georgia, serif; }
.player .pl-next small { display: block; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: #d8b56d; }
.player .pl-go { width: auto; padding: 0 18px; background: #d8b56d; color: #19202c; font: 600 14px Inter, sans-serif; }
.player .pl-stop { width: auto; padding: 0 14px; border: 1px solid #3a4456; font: 500 14px Inter, sans-serif; }
.back-voice { position: fixed; left: 50%; bottom: calc(104px + var(--rf-h, 0px)); transform: translateX(-50%); z-index: 31; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--frame); color: #F4EDE0; font: 600 14px Inter, sans-serif; box-shadow: 0 12px 28px rgba(25, 32, 44, .3); cursor: pointer; }
.back-voice[hidden] { display: none; }
@media (max-width: 899.98px) {
  body.listening .readfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; }   /* stays, under the player */
  body.listening .column { padding-bottom: calc(120px + var(--rf-h, 0px)); }
  :root[data-chrome="hidden"] body.listening .readfoot { transform: none; }   /* phones: the footer doesn't slide away while listening */
}
.voice-para > .para { box-shadow: -1.1rem 0 0 -0.95rem #b38a43; }

/* ---- the "more" sheet (phones) ---- */
.more-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: grid; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 80%, white); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 34px rgba(25, 32, 44, .25);
}
.more-sheet[hidden] { display: none; }
.more-sheet > button, .ms-row { display: flex; align-items: center; gap: 12px; min-height: 50px; border: 0; border-bottom: 1px solid var(--rule); background: none; font: 500 15px Inter, sans-serif; color: var(--ink); text-align: left; }
.more-sheet svg { width: 19px; height: 19px; }
.ms-row > span:first-child { flex: 1; }
.ms-row > button { width: 44px; height: 38px; border: 1px solid var(--rule); border-radius: 10px; background: none; font: 500 15px Fraunces, Georgia, serif; color: var(--ink); }

/* ---- widths ---- */
@media (max-width: 1100px) {
  :root { --nav-w: 0px; }
  .leftnav { display: none; }
}
/* Details docks from 900px and slides: the text column narrows to make room instead of being covered. */
@media (min-width: 900px) {
  :root:not([data-info="closed"]) { --info-w: 340px; }
  .rdr .app { transition: grid-template-columns .25s ease; }
  .rdr .info {
    position: sticky; top: 0; right: auto; bottom: auto; height: 100vh; width: auto; min-width: 0; overflow: hidden;
    transform: none; box-shadow: none; visibility: visible; transition: visibility 0s;
  }
  :root[data-info="closed"] .rdr .info { display: flex; visibility: hidden; transition: visibility 0s .25s; }
  .rdr .info > * { min-width: 300px; }
}
/* The Library slides in on the left the same way; this page's own contents column steps aside meanwhile. */
@media (min-width: 900px) {
  :root:not([data-lib="closed"]) { --lib-w: 340px; --nav-w: 0px; }
  .rdr .library {
    position: sticky; top: 0; left: auto; bottom: auto; height: 100vh; width: auto; min-width: 0; overflow: hidden;
    transform: none; box-shadow: none; visibility: visible; transition: visibility 0s;
  }
  :root[data-lib="closed"] .rdr .library { display: flex; visibility: hidden; transition: visibility 0s .25s; }
  .rdr .library > * { min-width: 300px; }
  :root:not([data-lib="closed"]) .rdr .leftnav { overflow: hidden; visibility: hidden; padding: 0; border: 0; }
}
@media (min-width: 900px) and (max-width: 1100px) { :root:not([data-info="closed"]) { --info-w: 300px; } }
@media (max-width: 899.98px) { :root { --info-w: 0px; } }
@media (prefers-reduced-motion: reduce) { .rdr .app { transition: none; } }
@media (max-width: 700px) {
  .rdr .bookbar { padding: 4px 6px; }
  .bb-tools > .panel-toggle { display: none; }
  .ft-tools > :not([data-action="bookmark"]):not(.bb-more) { display: none; }
  .bb-more { display: inline-flex; }
  .rdr .lib-toggle, .rdr .bookbar .navbtn, .bb-d { display: none; }
  :root[data-chrome="hidden"] .rdr .bookbar { transform: translateY(-110%); }
  :root[data-chrome="hidden"] .readfoot { transform: translateY(110%); }
  .readfoot { padding: 6px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px 12px; }
  .readfoot .rf-t { font-size: 13px; max-width: 8.5rem; }
  .player { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); gap: 8px 10px; }
  .player .pl-title { flex-basis: 100%; }
  .player .pl-time { order: 3; flex-basis: 100%; }
  .listen-card { gap: 12px; padding: 12px 14px; }
  .listen-card .resume { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rdr .bookbar, .readfoot { transition: none; } }
@media print { .leftnav, .readfoot, .pop, .more-sheet, .player, .back-voice, .listen-card, .bookbar { display: none !important; } }

/* ---- Details: about this text (A+B, 2026-10-12) ---- */
.pp-hint { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--rule); font: 13px/1.5 Inter, sans-serif; color: var(--muted); }
.ppanel:not([hidden]) ~ .pp-hint { display: none; }
.rdr .about { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 8px 12px; margin: 0 0 16px; font: 13.5px/1.45 Inter, sans-serif; }
.rdr .about dt { margin: 0; color: var(--muted); }
.rdr .about dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.rdr .about .sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.rdr .about .sub-inline { font-size: 12px; color: var(--muted); }
.flag { display: inline-block; margin: 0 6px 4px 0; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font: 500 12px/1.5 Inter, sans-serif; color: var(--ink-soft); }
.flag.warn { background: #F3DCCF; color: #7a3a22; }
.pp-more { display: inline-block; margin-top: 2px; font: 600 13px Inter, sans-serif; text-decoration: none; }
.rdr .info-tabs .n { display: none; }   /* no count badges (owner rule: no stat numbers) */

/* ---- the Library, restyled to match Details (cream, quiet, no counts) — 2026-10-12 ---- */
.rdr .library {
  --shelf: color-mix(in srgb, var(--paper) 70%, white); --shelf-2: var(--shelf);
  --shelf-ink: var(--ink); --shelf-soft: var(--ink-soft); --shelf-muted: var(--muted); --shelf-gold: var(--gold-text);
  --shelf-rule: var(--rule); --shelf-sel: color-mix(in srgb, var(--gold) 16%, transparent);
  background: var(--shelf); color: var(--ink); border-right: 1px solid var(--rule); font: 400 13.5px/1.45 Inter, sans-serif;
}
.rdr .lib-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 4px 20px; }
.rdr .lib-head h2 { margin: 0; font: 400 13px "Playfair Display SC", Georgia, serif; letter-spacing: .22em; color: var(--gold-text); }
.lib-x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.lib-x:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.rdr .lib-top { padding: 6px 20px 4px; }
.rdr .wordmark, .rdr .holdings { display: none; }
.rdr .lib-search { margin-top: 4px; }
.rdr .lib-search input {
  width: 100%; box-sizing: border-box; height: 40px; padding: 0 44px 0 14px; border-radius: 10px;
  border: 1px solid var(--rule); background: #FFFDF8; color: var(--ink); font: 14px Inter, sans-serif;
}
.rdr .lib-search input::placeholder { color: var(--muted); }
.rdr .lib-search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.rdr .lib-search kbd { color: var(--muted); }
.rdr .lib-section { margin-top: 16px; }
.rdr .lib-h { margin: 0 0 8px; font: 400 11.5px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: var(--muted); }
.rdr .library .n { display: none; }   /* no counts (owner rule) */
/* Your library: a row of quiet links */
.rdr .mine { display: flex; flex-wrap: wrap; gap: 6px; }
.rdr .mine .kind { width: auto; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); box-shadow: none; font: 500 12.5px Inter, sans-serif; color: var(--ink) !important; text-decoration: none; }
.rdr .mine .kind:hover { border-color: var(--gold); background: none; }
/* Collections: one segmented control */
.rdr .kinds { display: flex; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; gap: 0; }
.rdr .kinds .kind { flex: 1; justify-content: center; padding: 8px 6px; border-radius: 0; box-shadow: none; font: 500 13px Inter, sans-serif; color: var(--ink-soft); }
.rdr .kinds .kind + .kind { border-left: 1px solid var(--rule); }
.rdr .kinds .kind:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.rdr .kinds .kind[aria-pressed="true"] { background: var(--frame); color: var(--paper); box-shadow: none; }
/* Shelves by year: wrapping chips */
.rdr .shelves { display: flex; flex-wrap: wrap; gap: 6px; }
.rdr .shelf { width: auto; justify-content: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); box-shadow: none; font: 500 12.5px Inter, sans-serif; color: var(--ink-soft); }
.rdr .shelf:hover { border-color: var(--gold); background: none; color: var(--ink); }
.rdr .shelf[aria-pressed="true"] { background: var(--frame); border-color: var(--frame); color: var(--paper); box-shadow: none; }
/* Catalogue */
.rdr .cat-head { margin-top: 18px; padding: 12px 20px 8px; border-top: 1px solid var(--rule); }
.rdr #cat-sort { height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--rule); background: #FFFDF8; color: var(--ink); font: 12.5px Inter, sans-serif; }
.rdr .cat-count { color: var(--muted); }
.rdr .cat-list { padding: 0 10px 14px; scrollbar-color: var(--rule) transparent; }
.rdr .yr { background: var(--shelf); padding: 14px 10px 6px; font: 700 12.5px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--gold-text); }
.rdr .item a { padding: 8px 10px; border-radius: 8px; color: var(--ink) !important; }
.rdr .item a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.rdr .item a[aria-current="page"] { background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: inset 2px 0 0 var(--gold); }
.rdr .item .t { font: 400 14.5px/1.3 Fraunces, Georgia, serif; }
.rdr .item .d { color: var(--muted); font-size: 12px; }
.rdr .badge { border-color: var(--rule); color: var(--gold-text); }
.rdr .lib-foot { border-top: 1px solid var(--rule); color: var(--muted); }
.rdr .lib-foot a { color: var(--muted); }

/* Phones (prelaunch pass 2026-10-13). The ¶ numbers sit outside the column; under 640px there is no margin for them
   (the Study button isn't offered there), so they stay hidden as library.css intended; this rule's specificity had
   switched them back on, half off-screen. A work with many transcripts keeps its switch inside the bar: it scrolls. */
@container page (max-width: 640px) { .rdr .pmark { display: none; } }
.versions-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.versions-seg::-webkit-scrollbar { display: none; }
.vseg { flex: none; white-space: nowrap; }

/* Paragraphs that are not the author's words (paragraphs.origin, owner policy 2026-10-13): labelled, set apart */
.para.ed { color: var(--ink-soft); font-size: .92em; border-left: 2px solid var(--rule); padding-left: .9em; }
.para.ed::before { content: attr(data-ed); display: block; font-family: Inter, sans-serif; font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .2em; }

/* ---- navy frame (owner 2026-10-15): the reading page stays cream; around it, the site's navy and a deeper parchment ---- */
.rdr { --on-navy: #F7F3EA; --on-navy-soft: #CFD8EA; --on-navy-mute: #B3C2DE; --navy-line: #2c3d61; --brass-hi: #ECC873; }   /* palette C, True navy (owner 2026-10-28), as the Library menu */
.rdr .leftnav { background: linear-gradient(180deg, #15233F, #0E1830); color: var(--on-navy); border-right: 1px solid #000; scrollbar-color: #2c3d61 transparent; }
.rdr .ln-h { color: var(--brass-hi); }
.rdr .ln-list a { color: var(--on-navy); }
.rdr .ln-list a:hover { background: rgba(255, 255, 255, .06); }
.rdr .ln-list a[aria-current] { background: #ffffff14; box-shadow: inset 3px 0 0 var(--brass-hi); color: #fff; }
.rdr .ln-grp, .rdr .ln-d, .rdr .ln-empty { color: var(--on-navy-mute); }
.rdr .ln-more a { color: var(--brass-hi); }
.rdr .ln-lib { border-color: #2c3d61; color: var(--on-navy); }
.rdr .ln-lib kbd { color: var(--on-navy-mute); }
.rdr .ln-lib:hover { border-color: var(--brass-hi); color: #fff; }

.rdr .bookbar { background: var(--frame); border-bottom: 2px solid #b38a43; }
.rdr .bb-t { color: #F4EDE0; }
.rdr .bb-d { color: var(--on-navy-soft); }
.rdr .bookbar .tb, .rdr .bookbar .navbtn { color: var(--on-navy); }
.rdr .bookbar .tb:hover, .rdr .bookbar .navbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rdr .bookbar .navbtn.disabled { color: #4f5a6d; }
.rdr .bookbar .panel-toggle[aria-expanded="true"] { background: var(--frame-hi); color: var(--brass-hi); }
.rdr .versions-seg { border-color: #2c3d61; }
.rdr .vseg { color: #cfd5df; }
.rdr .vseg + .vseg, .rdr .vseg-k { border-color: #2c3d61; }
.rdr .vseg-k { color: var(--on-navy-mute); }
.rdr a.vseg:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rdr .vseg[aria-current] { background: var(--brass-hi); color: #19202c; }
.rdr .bookbar .listen-pill { background: var(--brass-hi); color: #19202c; }
.rdr .bookbar .listen-pill svg { fill: #19202c; }
.rdr .bookbar .listen-pill.on { background: var(--frame-hi); color: var(--brass-hi); }
.rdr .bookbar .listen-pill.on svg { fill: var(--brass-hi); }

.rdr .readfoot { background: var(--frame); border-top: 0; }
.rdr .readfoot .track { background: #2c3d61; }
.rdr .readfoot .fill { background: var(--brass-hi); }
.rdr .readfoot .tick { background: #6c7689; }
.rdr .rf-k { color: var(--on-navy-mute); }
.rdr .rf-t, .rdr .readfoot > a { color: #F4EDE0; }
.rdr .readfoot > a:hover .rf-t { color: var(--brass-hi); }
.rdr .ft-tools { background: var(--paper); border-color: transparent; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
body.listening .player { border-top-color: #b38a43; box-shadow: 0 -1px 0 #000 inset; }

.rdr .info { background: #E4D8C2; border-left: 1px solid var(--rule); }
.rdr .info .chip, .rdr .info .pp-chip { background: var(--paper); }

/* ---- desktop: the floating dock (owner 2026-10-15, design canvas "Bar D") ----
   The reading footer floats as one rounded navy dock over the page; while listening the player is its top row
   (reader.js moves it in). It steps aside while the site footer is on screen (body.at-foot). */
.rdr .dock-listen { display: none; }
@media (min-width: 900px) {
  .rdr .readfoot {
    position: sticky; bottom: 18px; z-index: 25; width: min(980px, calc(100% - 48px)); margin: 0 auto 18px; box-sizing: border-box;
    padding: 8px 12px 10px; border-radius: 20px; box-shadow: 0 18px 40px rgba(18, 24, 35, .35);   /* no overflow clip: the Copy/Aa menus open above it */
    transition: transform .25s ease, opacity .25s ease;
  }
  /* the progress line rounds its own ends: a see-through layer the dock's shape, the line drawn along its top */
  .rdr .readfoot .track { inset: 0; height: auto; border-radius: inherit; overflow: hidden; pointer-events: none;
    background: linear-gradient(#2c3d61, #2c3d61) top / 100% 3px no-repeat; }
  .rdr .readfoot .fill { height: 3px; }
  body.rdr.at-foot .readfoot { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .rdr .readfoot > .player {
    position: static; grid-column: 1 / -1; margin: 2px -12px 6px; padding: 6px 18px 12px; border: 0; border-bottom: 1px solid #2c3d61;
    background: none; gap: 10px 16px; flex-wrap: nowrap;
  }
  .rdr .readfoot > .player .pl-title { flex: 0 1 13rem; }
  .rdr .readfoot > .player .pl-play { width: 46px; height: 46px; }
  .rdr .readfoot > .player .pl-next { flex: 1; }
  .rdr .dock-listen {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; margin-right: 4px; padding: 0 13px 0 10px; border: 0; border-radius: 999px;
    background: var(--brass-hi, #ECC873); color: #19202c; font: 600 13px Inter, sans-serif; cursor: pointer;
  }
  .rdr .dock-listen svg { width: 13px; height: 13px; fill: currentColor; }
  body.rdr.listening .dock-listen { display: none; }
  .rdr .back-voice { bottom: calc(var(--rf-h, 0px) + 40px); }
  .rdr .sitefoot { position: relative; z-index: 26; }
}

/* ---- the Library panel (owner 2026-10-15, canvas "A + C"; src/readernav.py) ---- */
.rdr.is-lecture .app { --nav-w: 0px; }   /* lectures: the panel replaces "Around this date"; books keep their Contents */
.rdr .rlib { display: flex; flex-direction: column; padding: 0; background: linear-gradient(180deg, #15233F, #0E1830); color: #F7F3EA; border-right: 1px solid #000; }
.rl-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 10px 18px; }
.rl-head h2 { margin: 0; font: 600 12px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: #ECC873; }
.rlib .lib-x { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: #F7F3EA; font: 400 22px/1 Inter, sans-serif; cursor: pointer; }
.rlib .lib-x:hover { background: rgba(255, 255, 255, .08); }
.rl-filter { display: flex; align-items: center; gap: 10px; height: 42px; margin: 0 18px 10px; padding: 0 12px; border: 1px solid #2c3d61; border-radius: 10px; background: #1d2f55; color: #CFD8EA; }
.rl-filter:focus-within { border-color: #ECC873; }
.rl-filter input { flex: 1; min-width: 0; border: 0; background: none; color: #F4EDE0; font: 14px Inter, sans-serif; outline: none; }
.rl-filter input::placeholder { color: #B3C2DE; }
.rl-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 18px; border-bottom: 1px solid #2c3d61; }
.rl-tabs button { height: 42px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; background: none; color: #B3C2DE; font: 500 13px Inter, sans-serif; cursor: pointer; }
.rl-tabs button:hover { color: #F7F3EA; }
.rl-tabs [aria-selected="true"] { border-bottom-color: #ECC873; color: #F4EDE0; font-weight: 600; }
.rl-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 10px 16px; scrollbar-color: #2c3d61 transparent; scrollbar-width: thin; }
.rl-pane[hidden] { display: none; }
.rl-allpane { display: grid; grid-template-columns: 72px minmax(0, 1fr); padding: 0; overflow: hidden; }
.rl-allpane[hidden] { display: none; }
.rl-years { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; border-right: 1px solid #2c3d61; background: #0b1428; scrollbar-width: none; }
.rl-years a { display: block; padding: 7px 0 7px 14px; color: #B3C2DE; text-decoration: none; font: 500 12.5px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.rl-years a:hover { color: #F4EDE0; }
.rl-years a[aria-current] { color: #F4EDE0; background: #1d2f55; box-shadow: inset 3px 0 0 #ECC873; }
.rl-allpane .rl-list { overflow-y: auto; min-height: 0; padding: 4px 12px 10px 14px; scrollbar-color: #2c3d61 transparent; scrollbar-width: thin; }
.rl-list { list-style: none; margin: 0; padding: 0; }
.rl-list > li[hidden] { display: none; }
.rl-y { margin: 18px 0 4px 8px; font: 600 12px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: #ECC873; }
.rl-y:first-child { margin-top: 8px; }
.rl-m { margin: 12px 0 3px 10px; font: 600 10.5px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: #B3C2DE; }
.rl-i a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: #F7F3EA; text-decoration: none; font: 500 14.5px/1.35 Fraunces, Georgia, serif; }
.rl-i a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rl-i a[aria-current="page"] { background: #1d2f55; box-shadow: inset 3px 0 0 #ECC873; color: #fff; font-weight: 500; }
.rl-d { font: 500 12px Inter, sans-serif; color: #B3C2DE; font-variant-numeric: tabular-nums; }
.rl-tag { padding: 1px 5px; border: 1px solid #7a6636; border-radius: 4px; font: 600 10px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ECC873; }
.rl-none, .rl-empty { margin: 14px 18px; font: italic 14px Fraunces, Georgia, serif; color: #B3C2DE; }
.rl-foot { margin: 0; padding: 12px 18px 16px; border-top: 1px solid #2c3d61; text-align: right; }
.rl-foot a { font: 600 13px Inter, sans-serif; color: #ECC873; text-decoration: none; }
.rdr .leftnav, .rdr .rlib { -webkit-font-smoothing: antialiased; }

/* the panels beside the rail, finished (owner 2026-10-28: premium) */
@media (min-width: 900px) {
  .rdr .leftnav, .rdr .rlib { background: linear-gradient(180deg, #14213d 0%, #0d1730 100%); border-right: 1px solid #1f2d4d; box-shadow: 8px 0 24px -16px #000a; }
  .rdr .leftnav { padding: 22px 14px 28px; }
  .rdr .ln-h, .rl-head h2 { display: flex; align-items: center; gap: 10px; }
  .rdr .ln-h::after, .rl-head h2::after { content: ""; flex: 1; height: 1px; min-width: 24px; background: linear-gradient(90deg, #ECC87355, transparent); }
  .rdr .ln-h { margin: 0 6px 14px; }
  .rdr .ln-list a, .rl-i a { position: relative; border-radius: 8px; transition: background .18s ease, color .18s ease, padding-left .2s ease; }
  .rdr .ln-list a:hover, .rl-i a:hover { background: #ffffff0a; padding-left: 14px; }
  .rdr .ln-list a[aria-current], .rl-i a[aria-current="page"] { background: linear-gradient(90deg, #ECC8731c, #ffffff08 70%); box-shadow: inset 2px 0 0 #ECC873; color: #fff; }
  .rl-filter { background: #0b1428; border-color: #24365e; transition: border-color .2s, box-shadow .2s; }
  .rl-filter:focus-within { box-shadow: 0 0 0 3px #ECC8731f; }
  .rl-tabs button { transition: color .18s, border-color .18s; }
  .rdr .leftnav, .rl-pane, .rl-list { scrollbar-width: thin; scrollbar-color: #2c3d61 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-b, .rr-b svg, .rr-b::before, .rdr .ln-list a, .rl-i a { transition: none; }
  .rdr .leftnav > *, .rdr .rlib > * { animation: none !important; }
}

/* rail polish (owner 2026-10-28): the focus ring is for the keyboard only; chapter titles in the house serif, not small caps */
.rr-b:focus:not(:focus-visible) { outline: none; }
@media (min-width: 900px) { .rdr .ln-list a { font: 500 15px/1.35 Fraunces, Georgia, serif; letter-spacing: 0; font-variant: normal; text-transform: none; } }

/* Find (owner 2026-10-28): a compact floating box at the top right of the page, over the text, with its own ×; not a full-width row */
.rdr .findbar { position: sticky; top: 66px; z-index: 12; width: max-content; max-width: calc(100% - 24px); margin: 10px 14px -58px auto;
  gap: 4px; padding: 6px 6px 6px 12px; border: 1px solid #2c3d61; border-radius: 12px;
  background: linear-gradient(180deg, #15233F, #0E1830); box-shadow: 0 12px 30px -10px #0e183099, 0 2px 6px #0e183040; }
.rdr .findbar:focus-within { box-shadow: 0 0 0 3px #ECC87333, 0 12px 30px -10px #0e183099; }
.rdr .findbar input { width: 220px; padding: 7px 4px; border: 0; border-radius: 0; background: none; color: #F7F3EA; font: 14px Inter, sans-serif; outline: none; }
.rdr .findbar input::placeholder { color: #B3C2DE; }
.rdr .findbar input::-webkit-search-cancel-button { display: none; }
.rdr .find-count { min-width: 0; padding: 0 6px; color: #B3C2DE; font-size: 12px; }
.rdr .findbar .tb { width: 32px; height: 32px; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: #F7F3EA; }
.rdr .findbar .tb:hover { background: #ffffff14; }
.rdr .findbar .find-x { margin-left: 2px; border-left: 1px solid #2c3d61; border-radius: 0 8px 8px 0; font: 400 20px/1 Inter, sans-serif; color: #B3C2DE; }
.rdr .findbar .find-x:hover { color: #fff; }
@media (max-width: 640px) { .rdr .findbar input { width: 140px; } }

/* the side as one unit (owner 2026-10-28): one button in the reading bar pulls the rail and its panel in and out */
.rdr .side-toggle { display: none; }
@media (min-width: 900px) {
  .rdr .side-toggle { display: inline-grid; place-items: center; }
  :root:not([data-side="closed"]) .rdr .side-toggle { color: #ECC873; background: #ffffff12; }
  :root[data-side="closed"] .rdr .app { --rail-w: 0px; --lib-w: 0px; --nav-w: 0px; }
  :root[data-side="closed"] .rdr .rrail, :root[data-side="closed"] .rdr .library, :root[data-side="closed"] .rdr .leftnav {
    visibility: hidden; overflow: hidden; padding: 0; border: 0; }
}

/* Contents | Library tabs at the top of the side panel, on books (owner 2026-10-28) */
.sidetabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 10px; background: #0b1428; border: 1px solid #24365e; }
.rdr .rlib .sidetabs { margin: 16px 18px 4px; }
.st-b { min-height: 36px; border: 0; border-radius: 7px; background: none; color: #B3C2DE; font: 600 13px Inter, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.st-b:hover { color: #F7F3EA; }
.st-b:focus:not(:focus-visible) { outline: none; }
.st-b:focus-visible { outline: 2px solid #ECC873; outline-offset: 1px; }
:root[data-lib="closed"] .st-contents, :root:not([data-lib="closed"]) .st-lib { background: #ffffff16; color: #ECC873; box-shadow: inset 0 0 0 1px #ECC87333; }
.rdr .bar-find { display: none; }
@media (min-width: 900px) { .rdr .bar-find { display: inline-grid; place-items: center; } }

/* ---- books: the printed page and the open spread (owner 2026-10-28, canvas R2 + R3; static/bookmodes.js) ---- */
.readmode { display: none; }
.rdr.is-book .readmode { display: inline-flex; gap: 2px; padding: 3px; margin-right: 6px; border-radius: 10px; background: #0b1428; border: 1px solid #24365e; }
.rm-b { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: #B3C2DE; font: 600 12.5px Inter, sans-serif; cursor: pointer; }
.rm-b:hover { color: #F7F3EA; }
.rm-b[aria-pressed="true"] { background: #ffffff16; color: #ECC873; }
.rm-b:focus:not(:focus-visible) { outline: none; }
@media (max-width: 1099.98px) { .rm-b[data-read="spread"] { display: none; } }   /* a spread needs room: narrow windows read as a page */
.turn, .spread-foot { display: none; }

/* the open spread: two pages on the walnut desk, turned a spread at a time */
@media (min-width: 1100px) {
  :root[data-read="spread"] .rdr.is-book .sheet { position: relative; display: block; padding: 8px 88px 14px;
    background: linear-gradient(180deg, #00000026, #00000059), url(/static/art/walnut-hero.svg?v=5e8fb8ee5b) center / 1100px auto; }
  :root[data-read="spread"] .rdr.is-book .margin,
  :root[data-read="spread"] .rdr.is-book .crumbs, :root[data-read="spread"] .rdr.is-book .masthead,
  :root[data-read="spread"] .rdr.is-book .listen-card-slot, :root[data-read="spread"] .rdr.is-book .endmark, :root[data-read="spread"] .rdr.is-book .related { display: none; }
  :root[data-read="spread"] .rdr.is-book .column { max-width: 1280px; margin: 0 auto; padding: 26px 46px; border-radius: 4px;
    background: linear-gradient(90deg, #f3ead8 0, #fbf6ea 30%, #f6efdf 47%, #c9b994 50%, #f6efdf 53%, #fbf6ea 70%, #f3ead8 100%);
    box-shadow: 0 30px 60px -20px #000d, 0 0 0 1px #0004; }
  :root[data-read="spread"] .rdr.is-book #transcript { columns: 2; column-gap: 92px; column-fill: auto; overflow: hidden; text-align: left; hyphens: manual; font-size: .9em; line-height: 1.6; }
  :root[data-read="spread"] .rdr.is-book #transcript .pmark { display: none; }
  :root[data-read="spread"] .rdr.is-book .turn { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px;
    border: 1px solid #ffffff33; border-radius: 50%; background: #0000004d; color: #F4EDE0; font: 400 24px/1 Fraunces, Georgia, serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
  :root[data-read="spread"] .rdr.is-book .turn:hover:not(:disabled) { background: #00000080; border-color: #ECC87399; color: #ECC873; }
  :root[data-read="spread"] .rdr.is-book .turn:disabled { opacity: .3; cursor: default; }
  :root[data-read="spread"] .rdr.is-book .turn-prev { left: 24px; }
  :root[data-read="spread"] .rdr.is-book .turn-next { right: 24px; }
  :root[data-read="spread"] .rdr.is-book .spread-foot { display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 8px auto 0; color: #E9DFCB; font: 12.5px Inter, sans-serif; }
  .sf-ch { flex: 0 1 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #F7F3EA; font: 500 14px Fraunces, Georgia, serif; }
  .sf-bar { flex: 1; height: 4px; border-radius: 2px; background: #ffffff26; overflow: hidden; }
  .sf-bar i { display: block; height: 100%; width: 0; background: #ECC873; transition: width .3s ease; }
  .sf-pg { font-variant-numeric: tabular-nums; }
}

@media (min-width: 1100px) {   /* Connections as the spread's closing pages: it starts on a fresh page, one page wide */
  :root[data-read="spread"] .rdr.is-book #transcript > .connections { break-before: column; margin: 0; padding-top: 0; border-top: 0; text-align: left; }
  :root[data-read="spread"] .rdr.is-book #transcript > .connections * { text-indent: 0; }
}
@media (min-width: 1100px) {   /* the spread's typesetting (owner 2026-10-28): no stranded labels or headings, one label per note */
  :root[data-read="spread"] .rdr.is-book #transcript .para { orphans: 3; widows: 3; }   /* no text-wrap: pretty: a split paragraph breaks differently with it, so copies drifted */
  :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .bk-head), :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .bk-num) { break-inside: avoid-column; break-after: avoid-column; }
  :root[data-read="spread"] .rdr.is-book #transcript .para.ed { border-left: 0; padding-left: 0; }
  :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .ed) + .pw > .ed::before,
  :root[data-read="spread"] .rdr.is-book #transcript .para.bk-num.ed::before, :root[data-read="spread"] .rdr.is-book #transcript .para.bk-head.ed::before { content: none; }
  :root[data-read="spread"] .rdr.is-book #transcript .para.ed::before { break-after: avoid-column; }
}

@media (min-width: 1100px) {   /* the page turn (bookmodes.js): a chain of narrow strips that curls; only transform and opacity move */
  :root[data-read="spread"] .rdr.is-book .column { position: relative; }
  .flip-stage { position: absolute; z-index: 6; visibility: hidden; perspective: 2400px; pointer-events: none; }
  .flip-stage.on { visibility: visible; }
  .flip-face { position: absolute; top: 0; height: 100%; overflow: hidden; }
  .flip-strip { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; will-change: transform; }
  .flip-strip > .flip-face { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .flip-strip > .flip-face.back { transform: rotateY(180deg); }
  .flip-sheet { position: absolute; top: 0; }
  .flip-sheet.is-left { border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #f3ead8 0, #fbf6ea 60%, #f6efdf 94%, #c9b994 100%); }
  .flip-sheet.is-right { border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #c9b994 0, #f6efdf 6%, #fbf6ea 40%, #f3ead8 100%); }
  .flip-pagebox { position: absolute; overflow: hidden; }
  :root[data-read="spread"] .rdr.is-book .flip-page#transcript { position: absolute; left: 0; columns: auto; height: auto; overflow: visible; }
  .flip-title { position: absolute !important; inset: 0; box-shadow: none !important; border-radius: inherit; }
  .flip-shade { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; will-change: opacity; }   /* spans the whole page */
  .flip-shade.is-right { background: linear-gradient(90deg, #0000003d 0%, #0000002e 30%, #0000001a 65%, #0000000a 100%); }
  .flip-shade.is-left { background: linear-gradient(270deg, #0000003d 0%, #0000002e 30%, #0000001a 65%, #0000000a 100%); }
  .flip-cast { position: absolute; top: 0; height: 100%; opacity: 0; pointer-events: none; will-change: opacity; }
  .flip-cast.on-right { background: linear-gradient(90deg, #0000004d, #0000001a 35%, #0000 70%); }
  .flip-cast.on-left { background: linear-gradient(270deg, #0000004d, #0000001a 35%, #0000 70%); }
}
@media (min-width: 1100px) {   /* more text to a page (owner 2026-10-28): tighter paragraphs in the spread */
  :root[data-read="spread"] .rdr.is-book #transcript .para { margin-top: 0; margin-bottom: .55em; line-height: 1.6; }
  :root[data-read="spread"] .rdr.is-book #transcript .pw { margin: 0; padding: 0; }
}
@media (min-width: 1100px) {   /* every chapter opens on a fresh page, set a little down it, like a printed book (owner 2026-10-28) */
  :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .bk-num),
  :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .bk-head):not(.pw:has(> .bk-num) + .pw):not(.pw:has(> .bk-head) + .pw) { break-before: column; }
  :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .bk-num) > .bk-num,
  :root[data-read="spread"] .rdr.is-book #transcript .pw:has(> .bk-head):not(.pw:has(> .bk-num) + .pw):not(.pw:has(> .bk-head) + .pw) > .bk-head { margin-top: 3.2em; }
  :root[data-read="spread"] .rdr.is-book #transcript .pw:first-child > .bk-num, :root[data-read="spread"] .rdr.is-book #transcript .pw:first-child > .bk-head { margin-top: 2em; }
}

/* the book as an object (owner 2026-10-28): closed in the middle, cover, title page, then the text; cloth as on the Books page */
.cover-stage { display: none; }
@media (min-width: 1100px) {
  :root[data-read="spread"] .rdr.is-book .cover-stage { position: absolute; z-index: 5; display: block; perspective: 2800px; pointer-events: none; visibility: hidden; }
  :root.book-closed[data-read="spread"] .rdr.is-book .cover-stage, :root.book-front[data-read="spread"] .rdr.is-book .cover-stage,
  :root.book-moving[data-read="spread"] .rdr.is-book .cover-stage { visibility: visible; }
  /* the text's pages are hidden until the title page turns; while it turns only the right page shows beneath it */
  :root.book-closed[data-read="spread"] .rdr.is-book .column, :root.book-front:not(.bk-turn)[data-read="spread"] .rdr.is-book .column { visibility: hidden; }
  :root.bk-flip[data-read="spread"] .rdr.is-book .column { clip-path: inset(-60px -60px -60px 50%); }
  :root.book-closed[data-read="spread"] .rdr.is-book #transcript, :root.book-closed[data-read="spread"] .rdr.is-book .spread-foot,
  :root.book-closed[data-read="spread"] .rdr.is-book .turn-prev { visibility: hidden; }
  /* the cover: closed it lies in the middle; at the front it lies open on the left (its inside showing) */
  .bk-cover { position: absolute; top: -6px; bottom: -6px; left: 50%; width: calc(50% + 8px); padding: 0; border: 0; background: none; cursor: pointer;
    transform-origin: left center; transform-style: preserve-3d; pointer-events: auto; z-index: 2; }
  :root.book-closed .bk-cover { transform: translateX(-50%); }
  :root.book-front .bk-cover { transform: rotateY(-180deg); }
  :root.book-moving .bk-cover { pointer-events: none; }
  :root.bk-landed .bk-cover, :root.book-open-hide .bk-cover { visibility: hidden; }
  .bk-cover > span { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 6px 6px 2px; }
  .tone-navy { --c1: #24396a; --c2: #0f1a33; --c3: #31497f; } .tone-walnut { --c1: #6a4529; --c2: #2c1b10; --c3: #7d5434; }
  .tone-oxblood { --c1: #6c2729; --c2: #2e1012; --c3: #823234; } .tone-forest { --c1: #2b5446; --c2: #10241d; --c3: #376656; }
  .cv-front { display: flex !important; flex-direction: column; align-items: center; justify-content: space-between; padding: 12% 10% 9% 13%; box-sizing: border-box;
    color: #F4EDE0; text-align: center; box-shadow: 0 30px 60px -20px #000d, 0 0 0 1px #0005;
    background: linear-gradient(90deg, #00000080 0, #0000 6px, #ffffff22 10px, #00000055 14px, #0000 22px), linear-gradient(160deg, var(--c3) 0%, var(--c1) 35%, var(--c2) 100%); }
  .cv-front::before { content: ""; position: absolute; inset: 22px 20px 22px 34px; border: 1px solid #d8b56dbb; outline: 1px solid #d8b56d66; outline-offset: -8px; }
  .cv-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, #ffffff12 45%, transparent 60%); }
  .cv-auth { position: relative; font: 600 13px Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #ECC873; }
  .cv-title { position: relative; max-width: 80%; font: 500 clamp(30px, 3.4vw, 52px)/1.1 Fraunces, Georgia, serif; text-wrap: balance; text-shadow: 0 1px 2px #0007; }
  .cv-star { position: relative; color: #ECC873; font-size: 20px; }
  .cv-year { position: relative; font: italic 22px Fraunces, Georgia, serif; color: #E9DFCB; }
  .bk-cover:hover .cv-front { filter: brightness(1.06); }
  .bk-cover:focus-visible { outline: 2px solid #ECC873; outline-offset: 6px; }
  .bk-cover:focus:not(:focus-visible) { outline: none; }
  .cv-inside { transform: rotateY(180deg); border-radius: 6px 2px 2px 6px !important; box-shadow: 0 20px 40px -20px #000a;
    background: radial-gradient(circle at 30% 30%, #b38a4322 0 2px, transparent 3px) 0 0 / 18px 18px, linear-gradient(270deg, #c9b994 0, #e9dfc7 8%, #f4ecda 60%, #ece2cc);
    box-shadow: inset 0 0 0 12px #f4ecda, inset 0 0 0 13px #c4a46a66; }
  /* the title page: the right-hand page under the cover, as on the Books page preview; it turns like a page */
  .tl-leaf { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d; z-index: 1; visibility: hidden; }
  :root.book-front .tl-leaf, :root.bk-turn .tl-leaf, :root.book-moving:not(.book-closed) .tl-leaf { visibility: visible; }
  :root.bk-turn .tl-leaf { visibility: hidden !important; }   /* while it turns, the title page is the turning leaf's face */
  :root.bk-turn[data-read="spread"] .rdr.is-book .cover-stage { visibility: visible; }
  :root.bk-turn .bk-cover { transform: rotateY(-180deg); }   /* the inside cover lies on the left under a turning first page */
  .tl-leaf > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .tl-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8%; text-align: center; color: #2B1E16;
    border-radius: 0 4px 4px 0; box-shadow: 0 30px 60px -20px #000c;
    background: linear-gradient(90deg, #c9b994 0, #ece2cb 5%, #fbf6ea 35%, #f6efdf); }
  .tl-front img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 3px 10px #2b1e1633; }
  .tl-auth { font: 600 12px Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #8a6a3a; }
  .tl-title { max-width: 80%; font: 500 clamp(28px, 3vw, 46px)/1.12 Fraunces, Georgia, serif; text-wrap: balance; }
  .tl-star { color: #b38a43; font-size: 16px; }
  .tl-year { font: italic 20px Fraunces, Georgia, serif; color: #6A5644; }
  .tl-press { margin-top: 18px; font: 400 13px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: #8a6a3a; }
  .tl-back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #f3ead8 0, #fbf6ea 60%, #f6efdf 94%, #c9b994 100%); }
}
@media (min-width: 900px) {   /* in a spread the dock sits in the strip under the desk, not floating over the book (owner 2026-10-28) */
  :root[data-read="spread"] .rdr.is-book .readfoot { position: relative; bottom: auto; margin: 12px auto 14px; box-shadow: 0 10px 24px rgba(18, 24, 35, .22); }
  :root[data-read="spread"] body.rdr.is-book.at-foot .readfoot { transform: none; opacity: 1; pointer-events: auto; }
}
