:root {
  --paper: #F5EFE9;
  --paper-2: #EDE3DA;
  --mount: #FBF8F4;
  --ink: #2B211E;
  --ink-2: #6E5C55;
  --accent: #8E4A3A;
  --accent-light: #E8CFC0;
  --link-hover: #EEDCD0;
  --accent-dark: #D9A995;
  --dark: #201815;
  --rule: rgba(43, 33, 30, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: 'Crimson Pro', Georgia, serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[data-viewer] { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-light); }
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; }
[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245,239,233,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.header-row { height: 52px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; }
.brand-dot { width: 8px; height: 8px; justify-self: center; border-radius: 50%; background: var(--accent); }
.header-middle { display: flex; align-items: baseline; gap: 28px; min-width: 0; }
.logo { flex: 0 0 auto; color: var(--ink); white-space: nowrap; font: 500 20px 'EB Garamond', serif; letter-spacing: .01em; }
.logo em { color: var(--accent); }
.part-nav { display: flex; flex: 1; min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font: 12.5px 'Work Sans', system-ui, sans-serif; letter-spacing: .01em; }
.part-nav::-webkit-scrollbar { display: none; }
.part-nav.is-scrollable { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.part-nav.is-scrollable.at-end { -webkit-mask-image: none; mask-image: none; }
.map-link { height: 32px; padding: 0 9px; display: flex; flex: 0 0 auto; align-items: center; color: var(--ink-2); }
.map-link:hover { color: var(--ink); }
.part-button { height: 32px; padding: 0 9px; display: flex; flex: 0 0 auto; align-items: center; gap: 7px; border: 0; border-radius: 3px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; transition: background .25s, color .25s; }
.part-button:hover, .part-button.open, .part-button.current { color: var(--ink); background: rgba(43,33,30,.05); }
.part-button.current { font-weight: 600; background: rgba(43,33,30,.06); }
.part-button > span { color: var(--accent); opacity: .55; font: 10px 'Geist Mono', monospace; }
.part-button.current > span, .part-button.open > span { opacity: 1; }
.part-button > i { width: 5px; height: 5px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .35s; }
.part-button.open > i { transform: rotate(225deg); }
.part-nav template { display: none; }
.nav-divider { width: 1px; height: 18px; margin: 7px 8px 7px auto; flex: 0 0 1px; background: rgba(43,33,30,.25); }
.archive-link { height: 32px; margin-left: 4px; padding: 0 9px; display: flex; align-items: center; color: var(--ink-2); }
.lang { display: flex; gap: 6px; padding-right: 22px; font: 11.5px 'Work Sans', system-ui, sans-serif; letter-spacing: .06em; }
.lang button { padding: 4px 6px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.lang button.active { border-color: var(--accent); color: var(--ink); }
.reading-progress { position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width .2s; }

.chapter-strip { height: 0; display: grid; grid-template-columns: 56px 1fr 56px; overflow: hidden; transition: height .5s var(--ease); }
.chapter-strip.open { height: 85px; border-top: 1px solid rgba(43,33,30,.1); }
.chapter-strip.no-animation, .chapter-strip.no-animation * { transition: none !important; animation: none !important; }
.strip-arrow { height: 84px; border: 0; background: none; color: var(--ink-2); font-size: 18px; cursor: pointer; transition: opacity .3s, color .2s; }
.strip-arrow:hover { color: var(--accent); }
.strip-arrow:disabled { opacity: .25; cursor: default; }
.strip-prev { border-right: 1px solid rgba(43,33,30,.08); }
.strip-next { border-left: 1px solid rgba(43,33,30,.08); }
.strip-track, .strip-cards { min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.strip-track::-webkit-scrollbar { display: none; }
.strip-cards { overflow: visible; flex: 0 0 auto; }
.strip-card { flex: 0 0 280px; height: 84px; padding: 13px 20px 12px; display: flex; flex-direction: column; justify-content: space-between; scroll-snap-align: start; border-right: 1px solid rgba(43,33,30,.08); color: var(--ink); animation: rise .45s var(--ease) both; transition: background .3s; }
.strip-card:hover { color: var(--ink); background: rgba(43,33,30,.045); }
.strip-card.current { background: rgba(142,74,58,.07); }
.strip-card > span { display: flex; justify-content: space-between; color: var(--accent); font: 11px 'Geist Mono', monospace; letter-spacing: .04em; }
.strip-card > span b { font-weight: 400; }
.strip-card > span i { color: var(--ink-2); font-style: normal; }
.strip-card > strong { margin-top: 6px; overflow: hidden; color: var(--ink); font: 400 21px/1.05 'Cormorant Garamond', serif; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.strip-card > u { width: 0; height: 1px; margin-top: 8px; background: var(--accent); text-decoration: none; transition: width .5s var(--ease); }
.strip-card.current > u { width: 100%; }
.strip-spacer { flex: 0 0 40vw; }
.outline-ribbon { position: sticky; top: 52px; z-index: 35; height: 22px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(43,33,30,.08); background: rgba(237,227,218,.94); color: var(--accent); font: 10px 'Geist Mono', monospace; letter-spacing: .08em; }
.nl-note { position: fixed; top: 61px; right: 18px; z-index: 70; padding: 6px 10px; background: var(--ink); color: var(--paper); font: 11px 'Work Sans', sans-serif; }

.chapter-hero { position: relative; padding: 96px clamp(40px,5vw,72px) 88px clamp(72px,9vw,120px); display: grid; grid-template-columns: minmax(440px,1.5fr) minmax(0,400px); gap: clamp(32px,5vw,72px); align-items: end; overflow: hidden; border-bottom: 1px solid var(--rule); }
.outline-number { position: absolute; top: 72px; left: clamp(72px,9vw,120px); color: transparent; font: 400 clamp(220px,24vw,340px)/.8 'EB Garamond', serif; -webkit-text-stroke: 1px rgba(43,33,30,.14); pointer-events: none; animation: fade 1.6s .2s both; }
.hero-copy { position: relative; }
.kicker-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px; animation: rise .9s .1s both; }
.hero-part { padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink-2); font: 11.5px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s; }
.hero-part:hover { border-color: var(--accent); color: var(--accent); }
.kicker-row span { color: var(--ink-2); font: 11px 'Geist Mono', monospace; letter-spacing: .04em; white-space: nowrap; }
.chapter-hero h1 { margin: clamp(72px,8.5vw,120px) 0 0; color: var(--ink); font: 400 clamp(56px,7vw,104px)/.95 'Cormorant Garamond', serif; letter-spacing: -.01em; animation: rise 1s .25s both; }
.chapter-hero h1 sup { margin-right: .2em; opacity: .55; font-size: .55em; font-style: italic; vertical-align: .5em; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; align-items: baseline; animation: rise 1s .4s both; }
.hero-meta b { flex: 0 0 auto; color: var(--accent); font: 12px 'Geist Mono', monospace; letter-spacing: .06em; white-space: nowrap; }
.hero-meta p { max-width: 520px; margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.hero-plate { margin: 0; animation: rise 1.1s .5s both; }
.plate-button { width: 100%; padding: 14px 14px 12px; display: block; border: 0; background: var(--mount); box-shadow: 0 30px 60px rgba(43,33,30,.16), 0 1px 0 rgba(43,33,30,.1); cursor: pointer; transition: transform .6s var(--ease), box-shadow .6s; }
.plate-button:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 40px 70px rgba(43,33,30,.2), 0 1px 0 rgba(43,33,30,.1); }
.plate-button img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; filter: sepia(.4) contrast(.95); }
.plate-placeholder { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.hero-plate figcaption { margin-top: 14px; color: var(--ink-2); font: 11px/1.6 'Geist Mono', monospace; letter-spacing: .02em; }

.chapter-layout { position: relative; display: grid; grid-template-columns: 56px minmax(0,1.72fr) minmax(0,1fr); align-items: start; }
.left-rail { position: sticky; top: 52px; z-index: 30; width: 56px; height: calc(100vh - 52px); overflow: hidden; border-right: 1px solid var(--rule); background: var(--paper); transition: width .45s var(--ease), background .45s, box-shadow .45s; }
.left-rail:hover, .left-rail.pinned { width: 272px; background: var(--paper-2); box-shadow: 24px 0 48px rgba(43,33,30,.12); }
.left-rail.pinned { box-shadow: none; }
.rail-inner { padding-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.rail-inner > label { width: 272px; height: 34px; padding-left: 18px; display: flex; align-items: center; opacity: 0; color: var(--ink-2); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; white-space: nowrap; transition: opacity .3s; }
.left-rail:hover label, .left-rail.pinned label { opacity: 1; }
.rail-inner button, .mobile-contents button { width: 272px; height: 40px; padding: 0; display: grid; grid-template-columns: 56px 28px 1fr; align-items: center; border: 0; background: none; color: var(--ink-2); font: 14.5px 'Crimson Pro', serif; text-align: left; white-space: nowrap; cursor: pointer; }
.rail-inner button > span, .mobile-contents button > span { width: 5px; height: 5px; justify-self: center; border-radius: 50%; background: rgba(43,33,30,.25); transition: all .3s; }
.rail-inner button b, .mobile-contents button b { color: var(--accent); font: 11px 'Geist Mono', monospace; }
.rail-inner button b, .rail-inner button b + text { opacity: 0; }
.left-rail:hover .rail-inner button, .left-rail.pinned .rail-inner button { color: var(--ink-2); }
.left-rail:hover .rail-inner button b, .left-rail.pinned .rail-inner button b { opacity: 1; }
.rail-inner button.current { color: var(--ink); }
.rail-inner button.current > span { width: 8px; height: 8px; background: var(--accent); }
.rail-inner button.passed > span { background: var(--accent); }
.rail-line, .rail-progress { position: absolute; top: 60px; bottom: 24px; left: 27px; width: 1px; background: var(--rule); pointer-events: none; }
.rail-progress { bottom: auto; height: 0; background: var(--accent); transition: height .3s; }
.rail-pin { position: absolute; bottom: 16px; left: 0; width: 56px; height: 32px; border: 0; background: none; color: var(--ink-2); font: 14px 'Work Sans', sans-serif; cursor: pointer; }
.mobile-contents { display: none; }

.chapter-layout > main { width: 100%; max-width: 820px; padding: 72px 72px 120px 64px; }
.draft-note { margin-bottom: 22px; color: var(--accent); font: 11.5px/1.45 'Geist Mono', monospace; letter-spacing: .04em; }
.story-section { scroll-margin-top: 86px; }
.story-section + .story-section { margin-top: 44px; }
.story-section h2 { margin: 0 0 20px; font: 500 34px/1.1 'Cormorant Garamond', serif; }
.story-section h2 span { margin-right: 12px; color: var(--accent); font: 11px 'Geist Mono', monospace; vertical-align: .55em; }
.prose p { margin: 0 0 24px; font-size: 18px; line-height: 1.66; text-wrap: pretty; hanging-punctuation: first; font-variant-numeric: oldstyle-nums proportional-nums; }
.story-section:first-of-type .prose > p:first-child::first-letter { padding: 8px 10px 0 0; float: left; color: var(--accent); font: 74px/.8 'Cormorant Garamond', serif; }
.prose h3 { font: 500 24px/1.2 'Cormorant Garamond', serif; }
.prose li { margin-bottom: 8px; font-size: 17px; line-height: 1.55; }
.design-outline-label { margin: 0 0 14px; padding: 5px 8px; display: inline-block; border: 1px solid rgba(142,74,58,.28); color: var(--accent); font: 9.5px 'Geist Mono', monospace; letter-spacing: .08em; }
.language-fallback { margin-bottom: 16px !important; padding: 7px 10px; border-left: 2px solid var(--accent); background: rgba(232,207,192,.25); color: var(--ink-2); font: 11px/1.45 'Work Sans', sans-serif !important; }
.fact-ref { margin: 0; font: 9px/1 'Geist Mono', monospace; vertical-align: super; }
.fact-ref > button { min-width: 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; line-height: 1; cursor: pointer; }
.fact-ref > button:hover { color: var(--ink); }
.citation-line { margin-top: 7px; display: block; color: var(--ink-2); font: 10.5px/1.45 'Work Sans', sans-serif; overflow-wrap: anywhere; }
.citation-line > span, .citation-line > small { display: block; }
.citation-line > small { margin-top: 2px; font-size: 9.5px; }
.content-figure figcaption, .source-quote figcaption { margin-top: 10px; color: var(--ink-2); font: 12px/1.45 'Work Sans', sans-serif; }
.content-figure figcaption > strong { display: block; color: var(--ink); font-weight: 500; }
.in-brief { margin: 0 0 38px; padding: 24px 26px 20px; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--rule); background: rgba(232,207,192,.18); }
.in-brief h2 { margin: 0 0 12px; color: var(--accent); font: 500 11px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.in-brief p { margin: 0 0 8px; color: var(--ink); font: 18px/1.5 'Crimson Pro', serif; }
.in-brief p:last-child { margin-bottom: 0; }
.source-quote { margin: 30px 0 36px; padding: 22px 24px; border-left: 3px solid var(--accent); background: rgba(232,207,192,.22); }
.source-quote blockquote { margin: 0; font: italic 22px/1.5 'EB Garamond', serif; }
.inference-block { margin: 28px 0; padding: 18px 20px; border: 1px solid rgba(142,74,58,.25); background: rgba(251,248,244,.7); }
.inference-block > b { display: block; margin-bottom: 8px; color: var(--accent); font: 10px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.inference-block p:last-child { margin-bottom: 0; }
.inference-legend { margin: 20px 0; display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font: 11px/1.45 'Work Sans', sans-serif; }
.inference-legend i { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: italic 11px serif; }
.deep-dives-line { position: relative; margin: 6px 0 20px; padding: 13px 0 0 20px; border-top: 1px solid var(--rule); color: var(--ink-2); font: 13px/1.55 'Work Sans', sans-serif; }
.deep-dives-line strong { color: var(--accent); font-weight: 500; }
.dossier-mark { padding: 2px 3px; border: 0; border-radius: 2px; background: none; color: var(--ink); font: 16px 'Crimson Pro', serif; text-decoration: underline; text-decoration-color: rgba(142,74,58,.45); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; transition: background .25s, text-decoration-color .25s; }
.dossier-mark:hover { background: var(--link-hover); text-decoration-color: var(--accent); }
.deep-dives-line::before { content: '◆'; position: absolute; top: 16px; left: -40px; color: rgba(142,74,58,.55); transition: color .25s, transform .35s var(--ease); }
.deep-dives-line:hover::before { color: var(--accent); transform: scale(1.35) rotate(45deg); }
.chip-row { margin: 12px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { max-width: 100%; padding: 4px 7px; overflow-wrap: anywhere; border: 1px solid rgba(43,33,30,.12); background: rgba(251,248,244,.7); color: var(--ink-2); font: 10.5px/1.35 'Work Sans', sans-serif; }
.chip-fact { color: var(--accent); font-family: 'Geist Mono', monospace; }
.chip-source { border-color: rgba(142,74,58,.25); }
.chip-gate { border-color: var(--accent); color: var(--accent); text-transform: uppercase; }
.source-chip-label { margin-top: 18px; color: var(--ink-2); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.owner-testimony { margin: 18px 0 24px; padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(232,207,192,.28); }
.owner-testimony b { color: var(--accent); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; }
.owner-testimony p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
.figure-grid { margin: 36px 0 44px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.figure-grid.two-up { grid-template-columns: 1fr 1fr; }
.figure-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure-grid figure { min-width: 0; margin: 0; }
.figure-button { width: 100%; padding: 0; display: block; overflow: hidden; border: 0; background: none; cursor: pointer; transition: transform .6s var(--ease), opacity .3s; }
.figure-button:hover { opacity: .94; transform: translateY(-3px); }
.figure-button img { width: 100%; aspect-ratio: 3/2; display: block; object-fit: cover; filter: sepia(.25); }
.two-up .figure-button img { aspect-ratio: 4/3; }
.figure-grid figcaption { margin-top: 10px; color: var(--ink-2); font: 12px/1.5 'Work Sans', sans-serif; }
.figure-grid figcaption strong, .figure-grid figcaption span, .figure-grid figcaption small { display: block; overflow-wrap: anywhere; }
.figure-grid figcaption strong { color: var(--ink); font-weight: 500; }
.figure-source { margin-top: 4px; font: 10.5px/1.5 'Work Sans', sans-serif; }
.figure-original { margin-top: 4px; display: inline-block; font: 10.5px/1.5 'Work Sans', sans-serif; text-decoration: underline; text-underline-offset: 2px; }
.hero-plate figcaption > * { display: block; }
.figure-grid figcaption small { margin-top: 3px; font-size: 9.5px; }
.chapter-footer { margin-top: 80px; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--rule); }
.chapter-footer a { padding: 18px 20px; display: flex; flex-direction: column; border: 1px solid rgba(43,33,30,.1); color: var(--ink); transition: background .25s, border-color .25s; }
.chapter-footer a:hover { border-color: rgba(43,33,30,.2); background: rgba(43,33,30,.04); }
.chapter-footer small { margin-bottom: 7px; color: var(--ink-2); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; }
.chapter-footer a:last-child { text-align: right; }
.chapter-footer a:last-child small { color: var(--accent); }
.chapter-footer strong { font: 400 24px/1.1 'Cormorant Garamond', serif; }

.right-column { position: sticky; top: 52px; height: calc(100vh - 52px); min-width: 0; padding: 36px 32px 60px; overflow-y: auto; overflow-x: hidden; border-left: 1px solid var(--rule); background: var(--paper-2); }
.side-heading { margin-bottom: 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.side-heading b { flex: 0 0 auto; color: var(--ink-2); font: 11px 'Geist Mono', monospace; letter-spacing: 0; text-transform: none; }
.side-heading b i { font-style: normal; }
.clear-pins { padding: 0; border: 0; background: none; color: var(--ink-2); font: 11.5px 'Work Sans', sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.pinned-area { margin-bottom: 40px; }
.pinned-list { display: flex; flex-direction: column; gap: 14px; }
.dossier-card { position: relative; min-width: 0; padding: 22px 24px; overflow-wrap: anywhere; border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 12px 30px rgba(43,33,30,.08); animation: rise .5s var(--ease) both; }
.dossier-unpin { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(43,33,30,.2); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.dossier-unpin:hover { color: var(--ink); }
.dossier-card > small { color: var(--ink-2); font: 11.5px 'Geist Mono', monospace; }
.dossier-card h3 { margin: 9px 40px 14px 0; font: 400 30px/1.08 'EB Garamond', serif; }
.dossier-card .in-brief { margin: 0 0 16px; padding: 14px 0 12px; background: none; }
.dossier-card .in-brief h2 { margin-bottom: 8px; }
.dossier-card .in-brief p { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.dossier-card figure { margin: 14px 0; }
.dossier-card figure button { padding: 0; border: 0; background: none; cursor: pointer; }
.dossier-card figure img { max-height: 240px; display: block; object-fit: cover; border: 1px solid var(--rule); filter: sepia(.3); }
.diagram-button { width: 100%; padding: 0; display: block; border: 0; background: none; color: inherit; cursor: pointer; }
.method-diagram { width: 100%; height: auto; display: block; background: #f8f4ef; }
.method-diagram .diagram-nodes rect { fill: #f5efe9; stroke: #8e4a3a; stroke-width: 1.5; }
.method-diagram .diagram-nodes text { fill: #2b211e; font: 14px 'Work Sans', sans-serif; text-anchor: middle; }
.method-diagram .diagram-arrows path { fill: none; stroke: #8e4a3a; stroke-width: 1.5; }
.method-diagram marker path { fill: #8e4a3a; }
.dossier-card figure figcaption { margin-top: 6px; color: var(--ink-2); font: 11.5px 'Work Sans', sans-serif; }
.dossier-read { width: 100%; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); font: 12px 'Work Sans', sans-serif; cursor: pointer; }
.dossier-read:hover { background: var(--accent-dark); color: var(--dark); }
.evidence-list { display: flex; flex-direction: column; gap: 22px; }
.evidence-item { min-width: 0; padding: 0; display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.evidence-item img { width: 96px; height: 72px; object-fit: cover; border: 1px solid var(--rule); filter: sepia(.3); }
.evidence-item span { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.evidence-item b { margin-bottom: 3px; color: var(--accent); font: 11px 'Geist Mono', monospace; }
.evidence-item strong { color: var(--ink); font: 400 14px/1.45 'Crimson Pro', serif; transition: color .2s; }
.evidence-item:hover strong { color: var(--accent); }
.evidence-item small { margin-top: 4px; color: var(--ink-2); font: 11px/1.35 'Work Sans', sans-serif; }

.dossier-overlay, .viewer-overlay, .citation-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(32,24,21,.55); backdrop-filter: blur(6px); animation: fade .3s both; }
.dossier-window { width: min(1400px,96vw); height: 92vh; overflow: auto; border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.35); animation: rise .4s var(--ease) both; }
.dossier-window > header { position: sticky; top: 0; z-index: 2; padding: 16px 28px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); background: rgba(245,239,233,.96); backdrop-filter: blur(8px); color: var(--accent); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; }
.dossier-window > header button { padding: 0; border: 0; background: none; color: var(--ink-2); font: 12px 'Work Sans', sans-serif; cursor: pointer; }
.dossier-window-body { padding: 34px 38px 52px; display: block; }
.dossier-document { width: min(100%,72ch); margin: 0 auto; }
.dossier-window-body small { color: var(--ink-2); font: 11.5px 'Geist Mono', monospace; }
.dossier-window-body h1 { margin: 8px 0 26px; font: 400 46px/1.02 'Cormorant Garamond', serif; }
.dossier-window-body .prose p { font-size: 18px; line-height: 1.65; }
.dossier-window-body .prose h2 { margin: 42px 0 18px; font: 500 30px/1.12 'Cormorant Garamond', serif; }
.dossier-window-body figure { margin: 0; }
.dossier-window-body figure img { width: 100%; border: 1px solid var(--rule); }
.dossier-window-body figcaption { margin-top: 8px; color: var(--ink-2); font: 11.5px 'Work Sans', sans-serif; }
.dossier-window-body .register-table { width: 100%; margin-top: 42px; }
.preview-page .dossier-preview { min-height: 100vh; padding: 32px; background: var(--paper-2); }
.preview-page .dossier-window { width: 100%; height: auto; min-height: calc(100vh - 64px); margin: 0 auto; }

.viewer-overlay { z-index: 100; background: rgba(32,24,21,.82); }
.viewer-window { width: 92vw; height: 92vh; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; background: var(--dark); box-shadow: 0 40px 120px rgba(0,0,0,.5); animation: rise .4s var(--ease) both; }
.viewer-toolbar { min-width: 0; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(245,239,233,.1); color: var(--paper); font: 12px 'Work Sans', sans-serif; }
.viewer-toolbar > div:first-child { min-width: 0; display: flex; gap: 10px; overflow: hidden; white-space: nowrap; }
.viewer-year { color: var(--accent-dark); font: 11px 'Geist Mono', monospace; }
.viewer-year::after { content: ' ·'; opacity: .6; }
.viewer-caption { overflow: hidden; opacity: .8; text-overflow: ellipsis; }
.viewer-controls { flex: 0 0 auto; display: flex; gap: 5px; }
.viewer-controls button { height: 28px; padding: 0 9px; border: 1px solid rgba(245,239,233,.18); background: none; color: var(--paper); font: 12px 'Work Sans', sans-serif; cursor: pointer; }
.viewer-controls .zoom-level { min-width: 54px; font: 11px 'Geist Mono', monospace; }
.viewer-controls .hand-toggle.active, .viewer-controls .minimap-toggle.active { border-color: var(--accent-dark); color: var(--accent-dark); }
.viewer-controls .viewer-full { margin-left: 7px; }
.viewer-controls .anno-toggle { margin-left: 7px; border-color: #8E4A3A; background: #8E4A3A; color: #F5EFE9; }
.viewer-controls .anno-toggle.active { border-color: #D9A995; background: #D9A995; color: #201815; }
.viewer-controls .viewer-close { margin: -12px -16px -12px 7px; width: 48px; height: 52px; border-width: 0 0 0 1px; font-size: 16px; }
.viewer-body { min-height: 0; display: flex; }
.viewer-stage { position: relative; min-width: 0; flex: 1; overflow: hidden; cursor: default; touch-action: none; user-select: none; }
.viewer-stage.hand-active { cursor: grab; }
.viewer-stage.hand-active.dragging { cursor: grabbing; }
.viewer-stage > img, .viewer-stage > .diagram-viewer { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.diagram-viewer .method-diagram { width: 100%; height: 100%; background: #f8f4ef; }
.viewer-minimap { position: absolute; bottom: 14px; left: 14px; z-index: 4; width: 160px; height: 120px; overflow: hidden; border: 1px solid rgba(245,239,233,.75); background: rgba(32,24,21,.8); box-shadow: 0 5px 18px rgba(0,0,0,.35); cursor: pointer; touch-action: none; }
.minimap-media { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.minimap-media img, .minimap-media svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.minimap-viewport { position: absolute; min-width: 4px; min-height: 4px; border: 2px solid #D9A995; background: rgba(217,169,149,.14); pointer-events: none; }
.annotation-panel { width: 0; min-width: 0; padding: 0; flex: 0 0 0; overflow: hidden auto; background: var(--paper); color: var(--ink); transition: width .45s var(--ease), min-width .45s var(--ease), flex-basis .45s var(--ease), padding .45s var(--ease); }
.annotation-panel.open, .viewer-window.annotations-open .annotation-panel { width: 340px; min-width: 340px; padding: 26px 28px 32px; flex-basis: 340px; }
.viewer-window.annotations-open .anno-toggle { background: var(--accent-dark); color: var(--dark); }
.annotation-tabs { display: flex; gap: 14px; white-space: nowrap; }
.annotation-tabs button { padding: 0 0 5px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink-2); font: 11.5px 'Work Sans', sans-serif; cursor: pointer; }
.annotation-tabs button.active { border-color: var(--accent); color: var(--ink); }
.annotation-source { margin: 24px 0 16px; padding: 0; display: block; border: 0; border-bottom: 1px solid rgba(142,74,58,.35); background: none; color: var(--accent); font: 11px 'Geist Mono', monospace; text-align: left; cursor: pointer; }
.annotation-copy { font: 15px/1.6 'Crimson Pro', serif; }
.annotation-copy p { margin: 0 0 1em; }
.annotation-copy ul { margin: 0 0 1em; padding-left: 1.2em; }
.annotation-copy.transcription { font-style: italic; }
.annotation-copy .annotation-progress { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); font: 10.5px/1.4 'Work Sans', sans-serif; font-style: normal; letter-spacing: .04em; }
.viewer-window > footer { padding: 9px 16px; display: flex; justify-content: space-between; gap: 16px; color: rgba(245,239,233,.55); font: 11px 'Work Sans', sans-serif; }
.viewer-source { padding: 0; border: 0; border-bottom: 1px solid rgba(217,169,149,.35); background: none; color: inherit; font: inherit; cursor: pointer; }

.citation-overlay { z-index: 110; padding: 20px; background: rgba(32,24,21,.72); }
.citation-modal { width: min(640px,calc(100vw - 40px)); max-height: min(82vh,760px); overflow: auto; border: 1px solid rgba(43,33,30,.2); background: var(--mount); box-shadow: 0 40px 120px rgba(0,0,0,.42); animation: rise .3s var(--ease) both; }
.citation-modal > header { position: sticky; top: 0; z-index: 1; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); background: rgba(251,248,244,.97); color: var(--accent); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.citation-modal > header button { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.citation-modal-body { padding: 28px 30px 32px; }
.citation-modal-body h2 { margin: 0; font: 500 25px/1.28 'Crimson Pro', serif; }
.citation-sources { margin-top: 24px; display: grid; gap: 18px; }
.citation-sources article { padding-top: 16px; border-top: 1px solid var(--rule); }
.citation-sources article > p { margin: 0; color: var(--ink-2); font: 12px/1.55 'Work Sans', sans-serif; overflow-wrap: anywhere; }
.citation-sources article > .source-reference { color: var(--ink); font: 16px/1.5 'Crimson Pro', serif; }
.citation-sources blockquote { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--ink); font: italic 16px/1.5 'Crimson Pro', serif; }
.citation-sources .citation-editorial { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.citation-sources a, .citation-sources .no-copy { font: 11.5px 'Work Sans', sans-serif; }

.home-introduction { border-bottom: 1px solid var(--rule); }
.intro-hero { padding: 82px clamp(40px,7vw,96px) 72px; display: grid; grid-template-columns: minmax(420px,1.4fr) minmax(280px,420px); gap: clamp(34px,6vw,86px); align-items: end; }
.intro-copy > p { margin: 0 0 18px; color: var(--accent); font: 11px 'Geist Mono', monospace; letter-spacing: .14em; }
.intro-copy h1 { margin: 0 0 24px; font: 400 clamp(62px,8vw,112px)/.9 'Cormorant Garamond', serif; }
.intro-copy b { display: block; margin-bottom: 18px; color: var(--accent); font: 11px 'Geist Mono', monospace; letter-spacing: .06em; }
.intro-copy > div { max-width: 670px; color: var(--ink-2); font-size: 20px; line-height: 1.55; }
.intro-layout { display: grid; grid-template-columns: minmax(0,1.72fr) minmax(300px,1fr); align-items: start; border-top: 1px solid var(--rule); }
.intro-layout > main { width: 100%; max-width: 900px; padding: 72px clamp(42px,7vw,100px) 110px; }
.intro-layout > .right-column { top: 74px; }

.site-footer { padding: 34px clamp(22px,7vw,96px); display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; color: rgba(43,33,30,.35); font: 12px 'Work Sans', sans-serif; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; color: var(--accent); font: 10px 'Geist Mono', monospace; letter-spacing: .08em; }
.plain-part { min-height: 62vh; }

.book-map, .archive-page { max-width: 1320px; margin: 0 auto; padding: 88px clamp(32px,7vw,96px) 120px; }
.book-map > header, .archive-page > header { max-width: 900px; margin-bottom: 72px; }
.book-map > header > p, .archive-page > header > p { color: var(--accent); font: 11px 'Geist Mono', monospace; letter-spacing: .14em; }
.book-map > header h1, .archive-page > header h1 { margin: 18px 0 28px; font: 400 clamp(54px,7vw,96px)/.95 'Cormorant Garamond', serif; }
.book-map > header div, .plain-part > header div { color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.sources-page > header div { color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.sources-group { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.sources-group h2 { margin: 0 0 18px; font: 500 28px/1.2 'Cormorant Garamond', serif; }
.sources-list { margin: 0; padding-left: 28px; }
.sources-list li { margin-bottom: 16px; padding-left: 8px; color: var(--ink-2); }
.sources-list .citation-line { margin: 0; color: var(--ink); font-size: 13px; }
.empty-sources { color: var(--ink-2); }
.map-part { padding: 54px 0; display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 44px; border-top: 1px solid var(--rule); }
.map-part > div > span { color: var(--accent); font: 400 100px/.8 'EB Garamond', serif; }
.map-part > div p { color: var(--ink-2); font: 11px 'Geist Mono', monospace; }
.map-part > article > small { color: var(--accent); font: 10.5px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.map-part > article > h2 { margin: 7px 0 12px; font: 400 44px/1 'Cormorant Garamond', serif; }
.map-part > article > p { max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.map-chapters { margin-top: 28px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.map-chapter { min-width: 0; padding: 20px; border: 1px solid var(--rule); color: var(--ink); transition: background .25s; }
.map-chapter:hover { background: rgba(43,33,30,.04); }
.map-chapter > span { display: flex; justify-content: space-between; color: var(--accent); font: 11px 'Geist Mono', monospace; }
.map-chapter > span i { color: var(--ink-2); font-style: normal; }
.map-chapter h3 { margin: 12px 0 8px; font: 400 25px/1.1 'Cormorant Garamond', serif; }
.map-chapter p { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.map-chapter small { color: var(--accent); font: 10.5px 'Work Sans', sans-serif; }
.archive-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-nav .chip b { margin-left: 5px; color: var(--accent); }
.archive-section, .register-table { margin-top: 56px; }
.archive-section h2, .register-table h2 { font: 400 36px 'Cormorant Garamond', serif; }
.count-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.count-grid div { padding: 12px 14px; display: flex; justify-content: space-between; border: 1px solid var(--rule); color: var(--ink-2); font: 12px 'Work Sans', sans-serif; }
.count-grid b { color: var(--accent); font-family: 'Geist Mono', monospace; }
.archive-boxes { margin-top: 44px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.archive-box { min-width: 0; padding: 28px; overflow-wrap: anywhere; border: 1px solid var(--rule); background: rgba(251,248,244,.55); }
.archive-box > small { color: var(--accent); font: 11px 'Geist Mono', monospace; }
.archive-box h2 { margin: 9px 0 18px; font: 400 30px/1.08 'Cormorant Garamond', serif; }
.archive-box .prose p, .archive-box > p { font-size: 16px; line-height: 1.55; }
.box-illustration { margin: 20px 0 24px; }
.box-illustration figcaption { margin-top: 8px; color: var(--ink-2); font: 11.5px/1.45 'Work Sans', sans-serif; }
.proof-closure { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.proof-closure h3, .register-group h3 { margin: 0 0 10px; color: var(--accent); font: 500 12px 'Work Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.proof-closure h4 { margin: 24px 0 10px; color: var(--ink-2); font: 500 11px 'Work Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.proof-closure p { color: var(--ink-2); font: 13px/1.5 'Work Sans', sans-serif; }
.proof-closure .count-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.proof-closure .count-grid div { gap: 10px; }
.register-table h2 span { margin-left: 8px; color: var(--accent); font: 12px 'Geist Mono', monospace; }
.register-group { margin-top: 24px; }
.register-group h3 span { margin-left: 6px; font-family: 'Geist Mono', monospace; }
.register-table > div { max-width: 100%; overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font: 12px/1.4 'Work Sans', sans-serif; }
th, td { max-width: 340px; padding: 9px 11px; overflow: hidden; border-bottom: 1px solid rgba(43,33,30,.08); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
th { position: sticky; top: 0; background: var(--paper-2); color: var(--accent); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.discography-register table { min-width: 820px; table-layout: fixed; }
.discography-register th, .discography-register td { max-width: none; overflow: visible; text-overflow: clip; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.discography-register th:nth-child(1) { width: 15%; }
.discography-register th:nth-child(2) { width: 19%; }
.discography-register th:nth-child(3) { width: 19%; }
.discography-register th:nth-child(4) { width: 16%; }
.discography-register th:nth-child(5) { width: 19%; }
.discography-register th:nth-child(6) { width: 12%; }
.discography-register [data-citation] { max-width: 100%; padding: 3px 0; border: 0; border-bottom: 1px solid rgba(142,74,58,.35); background: none; color: var(--accent); font: 11px/1.35 'Geist Mono', monospace; cursor: pointer; overflow-wrap: anywhere; white-space: normal; }
.discography-register [data-citation]:hover, .discography-register [data-citation]:focus-visible { border-color: var(--accent); color: var(--ink); }
/* Register tables break OUT of the dossier's 72ch reading column to use the full window/page width.
   .dossier-document is centered (margin:0 auto), so translateX(-50%) recentres the wide table. */
.dossier-document .register-table {
  width: min(1340px, calc(96vw - 88px)); max-width: none; margin-left: 50%; transform: translateX(-50%);
}
.performance-register table { min-width: 1060px; table-layout: fixed; }
.performance-register th, .performance-register td { max-width: none; overflow: visible; text-overflow: clip; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.performance-register th:nth-child(1) { width: 9%; }
.performance-register th:nth-child(2) { width: 17%; }
.performance-register th:nth-child(3) { width: 18%; }
.performance-register th:nth-child(4) { width: 16%; }
.performance-register th:nth-child(5) { width: 18%; }
.performance-register th:nth-child(6) { width: 11%; }
.performance-register th:nth-child(7) { width: 11%; }
.performance-register .register-primary, .performance-register .register-secondary, .performance-register .source-binding { display: block; }
.performance-register .register-secondary, .performance-register .source-binding { margin-top: 4px; color: var(--ink-2); font-size: 11px; line-height: 1.35; }
.performance-register [data-citation] { max-width: 100%; padding: 3px 0; border: 0; border-bottom: 1px solid rgba(142,74,58,.35); background: none; color: var(--accent); font: 11px/1.35 'Geist Mono', monospace; cursor: pointer; overflow-wrap: anywhere; white-space: normal; }
.performance-register [data-citation]:hover, .performance-register [data-citation]:focus-visible { border-color: var(--accent); color: var(--ink); }
.performance-register .venue-relation-offsite-explicit td, .performance-register .venue-relation-unresolved td { background: rgba(142,74,58,.035); }
/* All register tables inside a deep-dive window/preview wrap their cells (no ellipsis truncation) so
   the full value is visible; the wrapper (.register-table > div) scrolls horizontally when needed. */
.dossier-window-body .register-table th, .dossier-window-body .register-table td,
.preview-page .dossier-document .register-table th, .preview-page .dossier-document .register-table td {
  max-width: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; vertical-align: top;
}
/* Wide registers (7-column relationships, 6-column residents) get a minimum width so their columns
   keep room and the window scrolls horizontally instead of cramming the text. */
.relationships-register table { min-width: 940px; table-layout: fixed; }
.residents-register table { min-width: 780px; table-layout: fixed; }
.citation-qualification { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--accent); background: rgba(142,74,58,.06); color: var(--ink); font: 14px/1.5 'Work Sans', sans-serif; }

@media (max-width: 1180px) and (min-width: 1000px) {
  .header-middle { gap: 14px; }
  .logo { font-size: 18px; }
  .part-nav { font-size: 11.5px; }
  .part-button, .map-link, .archive-link { padding-left: 6px; padding-right: 6px; }
  .nav-divider { margin-left: auto; margin-right: 5px; }
  .chapter-layout > main { padding-left: 48px; padding-right: 48px; }
  .right-column { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 999px) {
  .header-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .brand-dot { width: 7px; height: 7px; }
  .header-middle { gap: 12px; overflow: hidden; }
  .logo { font-size: 17px; }
  .part-nav { overflow-x: auto; font-size: 11.5px; }
  .part-button, .archive-link { padding-left: 6px; padding-right: 6px; }
  .part-button > span { display: none; }
  .lang { padding-right: 8px; }
  .chapter-strip { grid-template-columns: 42px 1fr 42px; }
  .chapter-hero { padding: 72px 32px 56px; grid-template-columns: 1fr; }
  .outline-number { left: 30px; top: 50px; font-size: 190px; }
  .chapter-hero h1 { margin-top: 70px; }
  .hero-plate { max-width: 520px; }
  .chapter-layout { display: block; }
  .left-rail { position: relative; top: auto; z-index: 1; width: auto; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--rule); }
  .left-rail:hover, .left-rail.pinned { width: auto; box-shadow: none; }
  .rail-inner, .rail-line, .rail-progress, .rail-pin { display: none; }
  .mobile-contents { display: block; padding: 16px 32px; }
  .mobile-contents summary { color: var(--accent); font: 11px 'Work Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
  .mobile-contents > div { padding-top: 12px; }
  .mobile-contents button { width: 100%; grid-template-columns: 28px 28px 1fr; }
  .chapter-layout > main { max-width: 820px; margin: 0 auto; padding: 56px 32px 80px; }
  .right-column { position: relative; top: auto; height: auto; padding: 48px 32px 72px; overflow: visible; border-top: 1px solid var(--rule); border-left: 0; }
  .evidence-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .viewer-window { width: 96vw; height: 94vh; }
  .viewer-toolbar { align-items: flex-start; }
  .viewer-toolbar > div:first-child { display: none; }
  .viewer-controls { flex-wrap: wrap; justify-content: flex-end; }
  .annotation-panel.open, .viewer-window.annotations-open .annotation-panel { width: 290px; min-width: 290px; padding: 22px 20px; flex-basis: 290px; }
  .map-part { grid-template-columns: 90px minmax(0,1fr); gap: 22px; }
  .map-part > div > span { font-size: 70px; }
  .intro-hero { padding: 66px 32px 56px; grid-template-columns: 1fr; }
  .intro-layout { display: block; }
  .intro-layout > main { margin: 0 auto; padding: 56px 32px 80px; }
  .figure-grid.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dossier-window-body .performance-register,
  .preview-page .dossier-document .performance-register { width: calc(100vw - 32px); }
  .dossier-window-body h1 { font-size: clamp(34px, 9vw, 40px); }
  .dossier-window-body .prose blockquote { overflow-wrap: anywhere; }
  .logo { display: none; }
  .header-middle { grid-column: 2; }
  .part-nav { scrollbar-width: none; }
  .lang { padding-right: 16px; }
  .site-header .lang a.lang-alt { padding: 4px 6px; }
  .chapter-hero { padding-left: 22px; padding-right: 22px; }
  .chapter-hero .hero-meta { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 12px 0; }
  .chapter-layout > main, .right-column { padding-left: 22px; padding-right: 22px; }
  .figure-grid.two-up, .figure-grid.three-up, .chapter-footer, .evidence-list, .map-chapters, .archive-boxes, .count-grid { grid-template-columns: 1fr; }
  .viewer-toolbar { padding: 8px; }
  .viewer-controls { width: 100%; min-width: 0; flex: 1 1 100%; gap: 3px; justify-content: flex-start; }
  .viewer-controls button { padding: 0 6px; font-size: 10px; }
  .viewer-controls .viewer-full, .viewer-controls .anno-toggle { margin-left: 0; }
  .viewer-controls .viewer-close { width: 36px; height: 28px; margin: 0 0 0 auto; border-width: 1px; }
  .annotation-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; }
  .viewer-body { position: relative; }
  .viewer-window > footer span:last-child { display: none; }
  .book-map, .archive-page { padding-left: 22px; padding-right: 22px; }
  .map-part { grid-template-columns: 1fr; }
  .intro-hero, .intro-layout > main { padding-left: 22px; padding-right: 22px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* round 5.6 — long section titles wrap to 2–3 lines when the rail is expanded (orchestrator patch) */
.left-rail .rail-inner button { height: auto; min-height: 40px; align-items: start; padding-top: 10px; padding-bottom: 10px; }
.left-rail .rail-inner button > span { margin-top: 5px; }
.left-rail:hover .rail-inner button, .left-rail.pinned .rail-inner button { white-space: normal; line-height: 1.3; max-height: calc(3 * 1.3em + 20px); overflow: hidden; }
