/* A reading edition: navigation in ink, scholarship on paper. */
/* Reading serif: Source Serif 4 (SIL OFL, fonts/OFL-source-serif-4.txt), self-hosted; no external requests. Variable weight 200-900; the browser fetches latin-ext only for pages that use those characters. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url('fonts/source-serif-4-latin-ext-wght-italic.woff2') format('woff2-variations'), url('fonts/source-serif-4-latin-ext-wght-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/source-serif-4-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url('fonts/source-serif-4-latin-wght-italic.woff2') format('woff2-variations'), url('fonts/source-serif-4-latin-wght-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --font-serif: "Source Serif 4", "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif; }
:root { --nav-ink: #662d35; --nav-paper: #faf5e9; --motion-rule: 650ms; }
.site-masthead {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  gap: 0 15px; padding: 0 30px; min-height: 0; border: 0;
}
.site-masthead .project-mark { grid-column: 1; grid-row: 1; min-height: 72px; height: auto; padding: 12px 0; }
.site-masthead > .site-find { grid-column: 3; grid-row: 1; position: static; }
.site-masthead > .bookmark-open { grid-column: 2; grid-row: 1; }
.site-masthead .chapter-menu {
  grid-column: 1 / -1; grid-row: 2; width: calc(100% + 60px);
  margin: 0 -30px; padding: 0 30px; background: var(--nav-ink); color: var(--nav-paper);
}
.chapter-menu .global-nav { justify-content: flex-start; gap: 35px; min-height: 46px; }
.chapter-menu .global-nav a {
  display: flex; align-items: center; min-height: 46px; padding: 8px 0;
  color: var(--nav-paper); font-size: 14px; opacity: .8;
}
.chapter-menu .global-nav a::after {
  display: block; bottom: 7px; height: 1px; left: 0; right: 0;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-rule) cubic-bezier(.22,.61,.36,1);
}
.chapter-menu .global-nav a:is(:hover,:focus-visible,[aria-current="page"]) { color: var(--nav-paper); background: transparent; opacity: 1; }
.chapter-menu .global-nav a:is(:hover,:focus-visible,[aria-current="page"])::after { transform: scaleX(1); }
.chapter-menu a:focus-visible, .chapter-menu summary:focus-visible { outline-color: var(--nav-paper) !important; outline-offset: -2px; }
.section-rail { background: #ede9de; }
/* The rail's faint labels sit on a darker paper, so they take a slightly darker ink to stay above 4.5:1. */
:root:not([data-theme="night"]) .section-rail :is(.rail-kicker, .rail-source-link) { color: #5c5c53; }
@media (min-width: 901px) { .section-rail { top: var(--masthead); height: calc(100svh - var(--masthead)); } }
.nav-group li a {
  background-image: linear-gradient(var(--section-accent,var(--seal-wax)),var(--section-accent,var(--seal-wax)));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0 1px;
  transition: background-size var(--motion-rule) ease, color 200ms ease;
}
.nav-group li a:is(:hover,:focus-visible,[aria-current="location"]) {
  background-color: transparent;
  background-image: linear-gradient(var(--section-accent,var(--seal-wax)),var(--section-accent,var(--seal-wax)));
  background-repeat: no-repeat; background-position: left bottom; background-size: 100% 1px;
}
.reading-tools { border-top: 1px solid var(--rule); background: var(--paper); }

/* The home navigation uses the same solid band as the chapter navigation. */
.landing-topline { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; border: 0; min-height: 0; }
.landing-wordmark { min-height: 80px; padding-right: 170px; }
.landing-topline nav { gap: 34px; min-height: 46px; padding: 0 20px; background: var(--nav-ink); }
.landing-topline nav > a { position: relative; display: inline-flex; align-items: center; min-height: 46px; color: var(--nav-paper); font-size: 14px; }
.landing-topline nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--motion-rule) ease; }
.landing-topline nav > a:is(:hover,:focus-visible) { color: var(--nav-paper); text-decoration: none; }
.landing-topline nav > a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.landing-topline nav > a:focus-visible { outline-color: var(--nav-paper) !important; outline-offset: -2px; }
.landing-topline .site-find { position: absolute; top: 18px; right: 0; }
.landing-topline .bookmark-open { position: absolute; top: 18px; right: 58px; }
.landing-hero { min-height: 470px; padding-top: 38px; padding-bottom: 30px; }
.landing-hero h1 { font-size: clamp(50px,5.5vw,80px); }
.hero-image-link { height: 320px; transform: none; box-shadow: none; padding: 12px; }
.hero-source { margin-top: 13px; }

/* A finite, manually browsed display. No carousel timer or moving text. */
.study-display { padding: 30px 0 38px; border-bottom: 1px solid var(--ink); }
.study-display-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 22px; }
.study-display-heading h2 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.study-display-heading p { margin: 0; color: var(--ink-faint); font-size: 12px; }
.study-panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.study-panel { min-width: 0; }
.study-image-link { display: flex; align-items: center; justify-content: center; height: 205px; padding: 22px; overflow: hidden; background: #e9e3d6; border-top: 3px solid var(--study-accent,var(--seal-wax)); }
.study-image-link img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 800ms ease; }
.study-panel-map .study-image-link { padding: 0; }
.study-panel-map .study-image-link img { object-fit: cover; object-position: 50% 38%; }
.study-image-link:hover img { transform: scale(1.025); }
.study-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; }
.study-title { color: var(--ink); font-size: 23px; line-height: 1.3; font-weight: 400; text-decoration: none; }
.study-number { color: var(--study-accent,var(--seal-wax)); font-size: 12px; margin-right: 10px; vertical-align: .15em; }
.study-title, .bookmark-label { background-image: linear-gradient(currentColor,currentColor); background-repeat: no-repeat; background-position: left bottom; background-size: 0 1px; transition: background-size var(--motion-rule) ease, color 200ms ease; }
.study-title:is(:hover,:focus-visible), .bookmark-action:is(:hover,:focus-visible) .bookmark-label, .bookmark-action[aria-pressed="true"] .bookmark-label { background-size: 100% 1px; }
.study-credit { margin: 10px 0 0; color: var(--ink-faint); font-size: 11px; line-height: 1.7; }
.study-credit a { color: inherit; text-underline-offset: 3px; }

/* Publication details sit beside the chapter heading, outside its prose. */
/* The source plate stands beside the chapter title, not at the far edge. */
.archive-section > header.chapter-heading { display: grid; grid-template-columns: max-content minmax(190px, 17rem); justify-content: start; column-gap: clamp(40px, 5vw, 80px); align-items: center; }
.chapter-heading > h1, .chapter-heading > p { grid-column: 1; }
.chapter-heading > h1 { align-self: end; }
.chapter-heading > p { align-self: start; }
.chapter-heading > .chapter-source-plate { grid-column: 2; grid-row: 1 / 3; }
.chapter-source-plate { margin: 0; min-width: 0; }
.chapter-source-art { display: flex; align-items: center; justify-content: center; height: 145px; padding: 13px; background: #e9e3d6; border-top: 3px solid var(--section-accent,var(--seal-wax)); overflow: hidden; }
.chapter-source-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.chapter-source-plate[data-source="adam"] .chapter-source-art { padding: 0; }
.chapter-source-plate[data-source="adam"] img { object-fit: cover; object-position: 50% 38%; }
.chapter-source-plate figcaption { margin-top: 9px; color: var(--ink-faint); font-size: 11px; line-height: 1.6; }
.chapter-source-plate figcaption a { color: inherit; }
.source-plate-label { display: block; margin-bottom: 3px; color: var(--section-accent,var(--seal-wax)); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

/* Saved chapters and sections use the reader's own browser storage. */
.bookmark-open, .bookmark-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 8px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font: 13px/1.4 var(--font-serif); }
.bookmark-open svg, .bookmark-action svg { flex-shrink: 0; width: 16px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.bookmark-open:hover, .bookmark-action:hover, .bookmark-action[aria-pressed="true"] { color: var(--seal-wax); }
.bookmark-action[aria-pressed="true"] svg { fill: var(--seal-wax); stroke: var(--seal-wax); }
.bookmark-count { color: var(--seal-wax); font-size: 10px; }
.bookmark-open[hidden], .bookmark-action[hidden] { display: none !important; }
.study-panel .bookmark-action { padding-right: 0; }
.linked-heading > .bookmark-action { margin-left: 4px; flex-shrink: 0; }
.linked-heading > .section-link { margin-left: auto; }
.linked-heading > .bookmark-action .bookmark-label { display: none; }
.saved-sections { width: min(640px,calc(100vw - 32px)); max-width: none; max-height: 86svh; margin: 7svh auto; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 20px 80px #171c1933; }
.saved-sections::backdrop { background: #23261fd9; }
.saved-sections[open] { display: flex; flex-direction: column; }
.saved-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 25px; border-bottom: 1px solid var(--rule); }
.saved-header h2 { margin: 0; font: 400 31px/1.2 var(--font-serif); }
.saved-close, .bookmark-remove { min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font: 13px var(--font-serif); }
.saved-body { overflow-y: auto; padding: 20px 25px 26px; }
.saved-note, .saved-count, .saved-empty { color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.saved-count { margin-top: 0; color: var(--seal-wax); font-size: 12px; }
.saved-list { list-style: none; padding: 0; margin: 0; }
.saved-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.saved-list a { color: var(--ink); text-decoration: none; font-size: 21px; line-height: 1.3; }
.saved-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.saved-context { display: block; margin-bottom: 5px; color: var(--seal-wax); font-size: 11px; }
.saved-list .bookmark-remove { font-size: 12px; }
body:has(.saved-sections[open]) { overflow: hidden; }

@media (max-width: 1100px) and (min-width: 901px) { .chapter-menu .global-nav { gap: 25px; } }
@media (max-width: 900px) {
  .site-masthead { display: grid; gap: 0 8px; padding: 0 22px; }
  .site-masthead .project-mark { min-height: 72px; font-size: 14px; padding-right: 0; gap: 10px; }
  .site-masthead .chapter-menu { width: calc(100% + 44px); margin-inline: -22px; padding-inline: 22px; }
  .chapter-menu > summary { color: var(--nav-paper); min-height: 46px; }
  .chapter-current, .chapter-menu > summary::after { color: var(--nav-paper); }
  .chapter-current { opacity: .8; }
  .chapter-menu .global-nav { min-height: 0; display: grid; gap: 0; padding: 0 0 14px; }
  .chapter-menu .global-nav a { display: flex; border-color: #faf5e930; padding-block: 12px; }
  .chapter-menu .global-nav a::before, .chapter-menu .global-nav a.active::before { color: inherit; }
  .chapter-menu .global-nav a::after { left: 35px; bottom: 8px; }
  .bookmark-open > .bookmark-label { display: none; }
  .bookmark-open { width: 40px; padding-inline: 4px; }
  .bookmark-count { position: absolute; top: 7px; right: 0; }
  .bookmark-open { position: relative; }
  .landing-wordmark { padding-right: 105px; }
  .study-panels { gap: 18px; }
  .study-image-link { height: 170px; padding: 15px; }
  .study-title { font-size: 20px; }
  .study-panel .bookmark-label { display: none; }
  .archive-section > header.chapter-heading { grid-template-columns: minmax(0,1fr) 190px; gap: 0 22px; }
}
@media (max-width: 640px) {
  .site-masthead { gap: 0 4px; }
  .site-masthead .project-mark { font-size: 13px; line-height: 1.35; gap: 8px; }
  .site-masthead .project-symbol { width: 26px; height: 26px; }
  .bookmark-open { width: 36px; }
  .landing-topline nav { gap: 26px; padding-inline: 14px; }
  .landing-topline nav > a { font-size: 13px; }
  .landing-topline .site-find { top: 16px; }
  .landing-topline .bookmark-open { top: 16px; right: 47px; }
  .landing-wordmark { min-height: 78px; padding-right: 96px; gap: 10px; font-size: 14px; }
  .landing-hero { min-height: 0; padding-top: 36px; }
  .landing-hero h1 { font-size: clamp(44px,10vw,62px); }
  .hero-image-link { height: 290px; }
  .study-display { padding-top: 25px; }
  .study-display-heading { align-items: start; gap: 12px; }
  .study-display-heading h2 { font-size: 23px; }
  .study-display-heading p { max-width: 110px; text-align: right; font-size: 11px; }
  .study-panels { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 0 17px; scrollbar-color: var(--seal-wax) var(--paper-deep); }
  .study-panel { flex: 0 0 88%; scroll-snap-align: start; }
  .study-image-link { height: 190px; padding: 20px; }
  .study-panel .bookmark-label { display: inline; }
  .study-title { font-size: 23px; }
  .archive-section > header.chapter-heading { display: block; }
  .chapter-source-plate { margin: 26px 0 0; }
  .chapter-source-art { height: 150px; padding: 20px; }
  .chapter-source-plate figcaption { font-size: 11px; }
  .saved-sections { width: calc(100vw - 16px); max-height: calc(100svh - 16px); margin: 8px auto; }
  .saved-header, .saved-body { padding-inline: 20px; }
  .saved-header h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .study-image-link img, .study-title, .bookmark-label, .global-nav a::after, .landing-topline nav > a::after, .nav-group li a { transition: none !important; }
  .study-image-link:hover img { transform: none; }
}
@media print {
  .study-display, .chapter-source-plate, .bookmark-open, .bookmark-action, .saved-sections { display: none !important; }
  .site-masthead { display: none !important; }
  .archive-section > header.chapter-heading { display: block; }
}

/* The opening archival object carries the editorial weight. */
.landing-hero {
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto auto; gap: 0 28px;
  min-height: 0; padding: 48px 0 28px;
}
.title-lockup {
  grid-column: 1 / -1; grid-row: 1; display: grid;
  /* Columns size to the title, so the description sits beside it rather than at the far edge. */
  /* One lockup: kicker, title, then the deck beneath it, as on the chapter pages (Andrew, 18 Nov 2026). */
  grid-template-columns: minmax(0, 1fr); justify-content: start;
  gap: 0; padding-bottom: 36px;
}
.landing-kicker { grid-column: 1 / -1; margin-bottom: 20px; }
.landing-kicker::before { display: none; }
.landing-hero h1 { grid-column: 1; margin: 0; font-size: clamp(48px,5.5vw,80px); }
.landing-hero .subtitle { grid-column: 1; align-self: start; max-width: 34rem; margin: 22px 0 0; font-size: 19px; line-height: 1.6; }
.hero-image-link {
  grid-column: 1 / -1; grid-row: 2; justify-self: center;
  width: 100vw; height: clamp(330px,39vw,580px);
  margin: 0 calc(50% - 50vw); padding: 0; background: #ded7c9;
  border: 0; box-shadow: none; transform: none;
}
.hero-image-link img { object-fit: cover; object-position: 50% 35%; }
.hero-index-link { grid-column: 1; grid-row: 3; margin-top: 13px; padding: 12px 0 9px; }
.hero-source { grid-column: 2; grid-row: 3; align-self: center; margin: 17px 0 0; text-align: right; max-width: 450px; }
.study-display { padding-top: 30px; }
@media (max-width: 900px) {
  .title-lockup { grid-template-columns: minmax(0,1fr); gap: 0; padding-bottom: 30px; }
  .landing-hero .subtitle { grid-column: 1; max-width: 530px; margin-top: 22px; }
  .hero-source { max-width: 270px; }
}
@media (max-width: 640px) {
  .landing-hero { padding-top: 32px; grid-template-columns: minmax(0,1fr); }
  .landing-hero h1 { font-size: clamp(43px,10vw,60px); }
  .landing-hero .subtitle { margin-top: 20px; font-size: 16px; line-height: 1.7; }
  .hero-image-link { grid-column: 1; height: 340px; }
  .hero-source { grid-column: 1; grid-row: 3; margin: 14px 0 0; max-width: none; text-align: left; font-size: 10px; }
  .hero-index-link { grid-column: 1; grid-row: 4; margin-top: 7px; }
}

/* One chapter index, with controls beside rather than inside its links. */
.landing-topline nav {
  width: 100vw; margin-inline: calc(50% - 50vw);
  padding-inline: max(22px,calc((100vw - min(1320px,90vw)) / 2));
  box-sizing: border-box;
}
.index-save-wrapper { position: relative; min-width: 0; }
.index-save-wrapper > .bookmark-action {
  position: absolute; z-index: 2; top: 10px; right: 10px;
  width: 44px; min-height: 44px; padding: 8px; background: var(--paper);
}
.index-save-wrapper > .bookmark-action .bookmark-label { display: none; }
.index-save-framework > .bookmark-action { top: 15px; right: 0; background: transparent; }
.index-save-framework > .dossier-entry-framework { padding-right: 54px; }
/* Case cards: the bookmark sits in the title row, a bare icon like Theory & Method's, not on the map (Andrew, 18 Nov 2026).
   --case-banner-h mirrors the banner heights in interface.css and drives both, so the two cannot drift. */
.index-save-case { --case-banner-h: 225px; --case-body-pad: 22px; }
.index-save-case .case-banner { height: var(--case-banner-h); }
.index-save-case .case-card-body { padding-top: var(--case-body-pad); }
.index-save-case > .bookmark-action { top: calc(var(--case-banner-h) + var(--case-body-pad) - 3px); right: -10px; background: transparent; }
.index-save-case .entry-title { padding-right: 40px; }
@media (max-width: 900px) { .index-save-case { --case-banner-h: 180px; } }
@media (max-width: 640px) { .index-save-case { --case-banner-h: 205px; --case-body-pad: 19px; } }
@media print { .index-save-wrapper > .bookmark-action { display: none !important; } }

/* A simple inverted-V device beside the existing project title. */
.landing-wordmark {
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 12px; font-size: 16px; line-height: 1.35;
}
.archive-symbol { width: 32px; height: 32px; object-fit: contain; }
.site-masthead .project-mark {
  display: flex; flex-direction: row; align-items: center;
  justify-content: flex-start; gap: 12px; min-height: 72px;
  padding-block: 10px; font-size: 15px; line-height: 1.35;
  min-width: 0; white-space: normal;
}
.site-masthead .project-symbol { width: 32px; height: 32px; object-fit: contain; }
.missing-header .landing-wordmark { padding-right: 0; font-size: 15px; }
@media (max-width: 640px) {
  .site-masthead .project-symbol, .archive-symbol { width: 28px; height: 28px; }
  .site-masthead .project-mark { min-height: 72px; font-size: 13px; gap: 8px; }
  .landing-wordmark { gap: 10px; font-size: 14px; }
}

/* 16 November 2026 refinements. Each rule states its breakpoint; none override a media query from outside it. */
/* Contents rail: a direct route to the key terms, set under the section list. */
.contents-disclosure .rail-terms-link, .section-rail .rail-terms-link { display: block; }
.section-rail .rail-terms-link + .rail-source-link { border-top: 0; margin-top: 0; padding-top: 6px; }

/* Map comparison: the keyboard focus ring sits on the visible handle, not the transparent range. */
.comparison-range:focus-visible { opacity: 0; outline: none; }
.comparison-slider:has(.comparison-range:focus-visible) { outline: 2px solid var(--seal-wax); outline-offset: 3px; }
.comparison-slider:has(.comparison-range:focus-visible) .comparison-handle { box-shadow: 0 0 0 3px var(--paper-soft), 0 0 0 5px var(--seal-wax); }

/* Section links appear with their heading on pointer devices; touch screens keep them visible. */
@media (hover: hover) and (pointer: fine) {
  .linked-heading > .section-link { opacity: 0; transition: opacity .18s ease, color .18s ease; }
  .linked-heading:is(:hover,:focus-within) > .section-link { opacity: 1; }
}

/* Typesetting: balanced headings, no stranded last words in prose, and a paper-toned selection. */
h1, h2, h3, .entry-title, .entry-location, .study-title, .search-results strong, .saved-list a { text-wrap: balance; }
.article-shell p, .entry-description, .figure-caption, .citation-entry p, .landing-hero .subtitle { text-wrap: pretty; }
::selection { background: #e7d9b5; color: var(--ink); }

/* Moving between chapters: the masthead holds still while the page beneath cross-fades. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-masthead { view-transition-name: masthead; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
}


/* Sources: the first source group's rule already separates it from the page heading. */
.bibliography-header { border-bottom: 0; }

/* Home colophon: one line of provenance and the citation, under the index. */
.landing-colophon { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 48px; align-items: baseline; margin-top: clamp(48px, 6vw, 80px); padding: 26px 0 clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); color: var(--ink-faint); font: 13px/1.75 var(--font-serif); }
.landing-colophon p { margin: 0; max-width: 620px; }
.landing-colophon cite { font-style: italic; color: var(--ink-soft); }
.colophon-tools { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 6px 22px; text-align: right; }
.colophon-tools button, .reading-tools .cite-open { padding: 6px 0; border: 0; background: transparent; color: var(--seal-wax); font: 13px var(--font-serif); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.reading-tools .cite-open { color: var(--ink-soft); text-decoration: none; }
.reading-tools .cite-open:hover { color: var(--seal-wax); }
.cite-open[hidden] { display: none !important; }
@media (max-width: 640px) {
  .landing-colophon { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .colophon-tools { justify-content: flex-start; text-align: left; }
}

/* Citation dialog: shares the search dialog's frame. */
.cite-dialog { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: 90svh; margin: 8svh auto; padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #171c1933; }
.cite-dialog[open] { display: flex; flex-direction: column; }
.cite-dialog::backdrop { background: #1f2521dd; }
.citation-style { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.citation-style h3 { grid-column: 1 / -1; margin: 0; color: var(--seal-wax); font: 12px/1.5 var(--font-serif); letter-spacing: .06em; text-transform: uppercase; }
.citation-text { margin: 0; color: var(--ink); font: 17px/1.65 var(--font-serif); overflow-wrap: anywhere; user-select: all; }
.citation-copy { align-self: start; min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule); background: transparent; color: var(--ink-soft); font: 13px var(--font-serif); cursor: pointer; }
.citation-copy:hover { color: var(--seal-wax); border-color: var(--seal-wax); }
.citation-note { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-faint); font: 13px/1.6 var(--font-serif); }
body:has(.cite-dialog[open]) { overflow: hidden; }
@media (max-width: 640px) {
  .cite-dialog { width: calc(100vw - 16px); margin: 8px auto; max-height: calc(100svh - 16px); }
  .citation-style { grid-template-columns: minmax(0,1fr); }
  .citation-copy { justify-self: start; }
}
@media print { .landing-colophon .colophon-tools, .cite-dialog { display: none !important; } }

/* Night: the same edition on dark paper. Screen only, so printing always uses paper.
   Archival images keep their own tones; only the wells around them darken. */
@media screen {
  :root[data-theme="night"] {
    color-scheme: dark;
    --paper: #1b1a17; --paper-soft: #22211d; --paper-deep: #2a2924;
    --ink: #e9e4d8; --ink-soft: #c2bcae; --ink-faint: #a29c8d;
    --rule: #3b3933; --seal-wax: #d99a9e;
    --england: #a3b99f; --yucatan: #9bb3c4;
    --nav-ink: #3f1d23; --nav-paper: #f1e9dc;
  }
  :root[data-theme="night"] body { background: var(--paper); color: var(--ink); }
  :root[data-theme="night"] .section-rail { background: #201f1b; }
  :root[data-theme="night"] :is(.study-image-link, .chapter-source-art, .case-banner, .hero-image-link) { background: #2a2924; }
  :root[data-theme="night"] :is(.study-image-link, .chapter-source-art) img { mix-blend-mode: normal; }
  :root[data-theme="night"] ::selection { background: #5a4a2c; color: var(--ink); }
  :root[data-theme="night"] .search-results mark { background: #5a4a2c; box-shadow: 0 1px 0 #b49259; }
  :root[data-theme="night"] .text-size-options button[aria-pressed="true"],
  :root[data-theme="night"] :is(.skip-link, .download-btn:hover) { color: #1b1a17 !important; }
  /* Panels that stay dark in both themes keep light lettering (their paper-coloured text would vanish). */
  :root[data-theme="night"] :is(.side-vocab-stick, .theory-vocab-stick) .vocab-tooltip,
  :root[data-theme="night"] .vocab-tooltip-definition,
  :root[data-theme="night"] .page-theory .cycle-center strong { color: #f1ece0; }
  :root[data-theme="night"] :is(.side-vocab-stick, .theory-vocab-stick) .vocab-tooltip { background: #2f3a33; box-shadow: 0 10px 35px #0008; }
  :root[data-theme="night"] :is(.editorial-reference, .storymap-fallback, .adam-manuscript, .theft-model-recursive) { background: #24231f; }
  :root[data-theme="night"] .page-patricio .storymap-container:not(.embedded-storymap) { background: #24231f; }
  :root[data-theme="night"] :is(.ante-hub, .cycle-center), :root[data-theme="night"] :is(.ante-hub, .cycle-center) * { color: #f1ece0; }
  :root[data-theme="night"] .excerpt-note { color: var(--ink-faint) !important; }
  :root[data-theme="night"] .figure-source { background: transparent; }
  :root[data-theme="night"] .comparison-slider { background: #2a2924; }
  :root[data-theme="night"] .comparison-handle { background: #7d3a42; }
  :root[data-theme="night"] :is(.archive-symbol, .project-symbol) { filter: brightness(1.9) saturate(.85); }
  :root[data-theme="night"] :is(.project-search, .saved-sections, .cite-dialog) { box-shadow: 0 20px 80px #000a; }
}
.cite-body .citation-style:first-child { border-top: 0; padding-top: 0; }

/* Labels — 17 November 2026. Small labels are set in the reading serif, in the case they are written in,
   instead of tracked capitals. Wording is unchanged; only the setting changes. */
:is(.landing-kicker, .hero-source, .index-kicker, .index-group-label, .entry-meta, .entry-location, .case-banner-label,
    .rail-kicker, .badge, .vocabulary-kicker, .source-plate-label, .bibliography-kicker, .usage-note,
    .credits-kicker, .credits-eyebrow, .contributor-role, .contribution-label, .term-note-label, .adam-map-label,
    .comparison-label, .download-btn, .vocab-tooltip-meta > span, .theft-model-label > span, .storymap-fallback > span,
    .citation-style h3) {
  text-transform: none !important; letter-spacing: 0 !important; font-variant-caps: normal;
}
/* Section labels and panel labels read as quiet italic running heads. */
:is(.landing-kicker, .index-kicker, .index-group-label, .rail-kicker, .badge, .vocabulary-kicker, .source-plate-label,
    .bibliography-kicker, .credits-kicker, .credits-eyebrow, .contribution-label, .term-note-label, .adam-map-label,
    .citation-style h3) {
  font-family: var(--font-serif) !important; font-style: italic; font-weight: 400 !important; font-size: 14px !important; line-height: 1.5;
}
.side-vocab-stick .vocabulary-kicker, .theory-vocab-stick .vocabulary-kicker { font-size: 14px !important; }
:is(.entry-meta, .entry-location, .contributor-role, .hero-source, .usage-note) { font-family: var(--font-serif) !important; font-size: 13px !important; }
.badge::before { display: none !important; }
.badge { display: block; margin-bottom: 10px; }
:is(.download-btn, .comparison-label) { font-family: var(--font-serif) !important; font-size: 13px !important; font-weight: 400 !important; }
/* Where the side rail shows the page's label, the same label is not repeated above the title. */
@media (min-width: 901px) { .bibliography-kicker, .credits-kicker { display: none; } }
