/* Chapter reading: continuous text, contextual evidence, and a useful contents rail. */
.story-heading { padding-block: 32px 40px; min-width: 0; }
.story-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; font: 400 16px/1.5 var(--font-display); }
.story-breadcrumb a { color: var(--muted); }
.story-heading h1 { margin: 0 0 28px; font: 900 clamp(40px, 5.2vw, 88px)/1.02 var(--font-display); letter-spacing: -.045em; overflow-wrap: normal; }
.story-dek { max-width: 50ch; margin: 0 0 28px; font: 400 clamp(20px, 1.7vw, 26px)/1.5 var(--font-body); }
.story-byline { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font: 400 16px/1.5 var(--font-display); }
.story-hero { min-width: 0; }
.story-hero .photo-open { overflow: hidden; }
.story-hero img { width: 100%; height: clamp(340px, 35vw, 620px); object-fit: cover; }
.narrative-cover { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 48px 64px; }
.narrative-cover .story-heading { padding: 0; }
.narrative-cover .story-heading h1 { font-size: clamp(40px, 4.8vw, 78px); }
.narrative-cover .story-hero { width: 100%; }
.narrative-cover .story-hero img { height: clamp(340px, 34vw, 580px); }

/* Keep each original image, its caption, and its attribution together. */
.story-photo { margin: 0; min-width: 0; }
.photo-open { display: block; position: relative; color: var(--ink); background: var(--surface); }
.photo-open img { display: block; max-width: 100%; }
.photo-enlarge { position: absolute; right: 12px; bottom: 12px; padding: 10px 14px; background: var(--paper); color: var(--ink); font: 700 16px/1.35 var(--font-display); transition: background-color .18s ease, color .18s ease; }
.photo-open:hover .photo-enlarge, .photo-open:focus-visible .photo-enlarge { background: var(--ink); color: var(--paper); }
.story-photo figcaption { padding-top: 14px; font: 400 16px/1.55 var(--font-display); color: var(--muted); }
.story-photo figcaption > span { display: block; }
.photo-credit { margin-top: 6px; font: 400 16px/1.55 var(--font-display); }
.photo-credit a { text-underline-offset: 3px; }

.narrative-layout { display: grid; grid-template-columns: 240px minmax(0, 65ch); gap: clamp(40px, 6vw, 96px); max-width: calc(65ch + 336px); padding-block: 32px var(--space-section); align-items: start; font: 400 20px/1.65 var(--font-body); }
.narrative-contents { position: sticky; top: 24px; max-height: calc(100svh - 48px); overflow-y: auto; min-width: 0; padding-bottom: 8px; font: 400 16px/1.5 var(--font-display); scroll-margin-top: 24px; }
.contents-title { display: block; margin-bottom: 24px; font: 700 23px/1.25 var(--font-display); letter-spacing: -.025em; text-decoration: none; }
.narrative-contents details { padding: 18px 20px; background: var(--surface); }
.narrative-contents summary { min-height: 32px; cursor: pointer; font-weight: 700; }
.narrative-contents ol, .narrative-contents ul { list-style: none; padding: 0; margin: 12px 0 0; }
.narrative-contents li { margin: 0; }
.narrative-contents .contents-part + .contents-part { margin-top: 24px; }
.contents-part > span { display: block; margin: 12px 0 4px; font-weight: 700; }
.narrative-contents a:not(.contents-title) { display: block; padding: 8px 0; text-decoration: none; }
.narrative-contents a:hover { text-decoration: underline; text-underline-offset: 4px; }
.narrative-contents a[aria-current="location"] { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.narrative-contents .contents-glossary { margin-top: 16px; }
.narrative-body { min-width: 0; max-width: 65ch; font: 400 20px/1.65 var(--font-body); }
.narrative-body p { margin: 0 0 1em; }
.narrative-opening { font: 400 clamp(23px, 2vw, 29px)/1.5 var(--font-body); }
.narrative-opening .source-disclosure { margin-top: 24px; }
.narrative-part { margin-top: 64px; padding: 28px; background: var(--ink); color: var(--paper); }
.narrative-part h2 { margin: 0; font: 700 clamp(25px, 2.5vw, 36px)/1.15 var(--font-display); letter-spacing: -.035em; }
.narrative-part p { margin: 12px 0 0; font: 400 17px/1.4 var(--font-display); }
.narrative-section { position: relative; margin-top: 52px; scroll-margin-top: 32px; }
.narrative-section > h2, .narrative-section > h3 { margin: 0 0 24px; font: 700 clamp(25px, 2.5vw, 36px)/1.18 var(--font-display); letter-spacing: -.035em; text-wrap: pretty; }
.narrative-section:target > h2, .narrative-section:target > h3 { color: var(--accent); }
.anchor-alias { display: block; height: 0; scroll-margin-top: 96px; }
.narrative-body .narrative-source-note { margin: 24px 0; color: var(--muted); font: 400 16px/1.6 var(--font-display); }
.narrative-photo { margin: 36px 0 8px; }
.narrative-photo img { width: 100%; height: auto; }
.narrative-evidence-pair { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; align-items: start; }
.narrative-evidence-pair > .story-photo { padding: 12px; background: var(--surface); }
.narrative-evidence-pair img { width: 100%; height: auto; }
.narrative-illustration { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-block: 36px 12px; }
.narrative-illustration img { width: 100%; height: auto; }
.narrative-illustration .reading-feature { margin: 0; padding: 0; background: none; }
.narrative-illustration .comparison-columns { grid-template-columns: 1fr; gap: 24px; }
.narrative-illustration .reading-feature > h2, .narrative-illustration .reading-feature > h3 { font-size: 26px; }
.narrative-illustration .comparison-columns p { font-size: 18px; }

/* Source disclosures remain native and work without JavaScript. */
.source-disclosure { margin: 24px 0 0; color: var(--muted); font: 400 16px/1.5 var(--font-display); }
.source-disclosure > summary { display: list-item; width: fit-content; max-width: 100%; min-height: 44px; padding-block: 10px; cursor: pointer; list-style-position: inside; }
.source-disclosure > summary span { margin-left: 12px; font-variant-numeric: tabular-nums; }
.source-disclosure[open] > summary { color: var(--ink); font-weight: 700; }
.source-disclosure .section-sources { margin: 8px 0 16px; padding: 0; font: 400 16px/1.55 var(--font-display); }
.source-disclosure .section-sources > span { display: none; }
.source-disclosure .section-sources ul { list-style: none; padding: 0; margin: 0; }
.source-disclosure .section-sources li + li { margin-top: 12px; }
.source-disclosure .section-sources a { overflow-wrap: anywhere; }
.source-disclosure .source-note { white-space: nowrap; }

.reading-feature { max-width: 65ch; margin-block: 40px; padding: 28px; background: var(--surface); font: 400 20px/1.65 var(--font-body); scroll-margin-top: 32px; }
.reading-feature > h2, .reading-feature > h3 { margin: 0 0 14px; font: 700 clamp(24px, 2.2vw, 31px)/1.2 var(--font-display); letter-spacing: -.03em; }
.reading-feature .feature-attribution { margin: 0 0 24px; color: var(--muted); font: 400 16px/1.5 var(--font-display); }
.reading-feature .feature-context { margin: 0 0 24px; }
.reading-feature p:last-child { margin-bottom: 0; }
.comparison-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.comparison-columns h3, .comparison-columns h4 { margin: 0 0 12px; font: 700 18px/1.4 var(--font-display); }
.comparison-columns p { margin: 0; font: 400 19px/1.65 var(--font-body); }
.feature-quote { background: var(--ink); color: var(--paper); }
.feature-quote .feature-attribution, .feature-quote .source-disclosure { color: var(--paper); }
.feature-quote .section-sources, .feature-quote a { color: inherit; }
.feature-quote blockquote { padding: 0; margin: 26px 0; }
.feature-quote blockquote p { margin: 0 0 20px; font: 400 clamp(23px, 2vw, 30px)/1.4 var(--font-body); }
.feature-quote blockquote footer { font: 400 16px/1.5 var(--font-display); }
.feature-quote .source-disclosure[open] > summary { color: var(--paper); }
.feature-quote a:hover { color: var(--paper); text-decoration-thickness: 2px; }
.narrative-section .reading-feature, .narrative-section .record-peek { width: 100%; max-width: none; margin-inline: 0; }

.record-peek { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 65ch; padding: 28px; margin-block: 40px; background: var(--surface); font: 400 18px/1.6 var(--font-body); }
.record-page { min-width: 0; }
.record-page a { display: block; }
.record-page img { display: block; width: 100%; height: auto; }
.record-notes { min-width: 0; }
.record-notes h2 { margin: 0 0 12px; font: 700 clamp(24px, 2.1vw, 30px)/1.2 var(--font-display); letter-spacing: -.03em; }
.record-date { margin: 0 0 24px; color: var(--muted); font: 400 16px/1.5 var(--font-display); }
.record-notes ol { padding-left: 22px; margin: 0 0 24px; }
.record-notes li { padding-left: 6px; margin-bottom: 20px; }
.record-notes h3 { margin: 0 0 10px; font: 700 18px/1.4 var(--font-display); }
.record-notes li p { margin: 0; }
.record-peek .text-link { font-size: 16px; }
.record-notes .record-credit { margin: 22px 0 0; color: var(--muted); font: 400 16px/1.55 var(--font-display); }
.record-compact { grid-template-columns: 76px minmax(0, 1fr); gap: 24px; align-items: center; }
.record-compact img { display: block; width: 76px; height: auto; }
.record-compact h3 { margin: 0 0 10px; font: 700 24px/1.25 var(--font-display); letter-spacing: -.025em; }
.record-compact h3 a { text-decoration: none; }
.record-compact h3 a:hover { text-decoration: underline; }
.record-compact .record-date { margin: 0 0 12px; }
.record-compact p:last-child { margin: 0; font-size: 17px; }

.story-image-break { max-width: 960px; margin-block: 40px; }
.story-image-break img { width: 100%; height: auto; max-height: 720px; object-fit: contain; }
.story-ending { display: grid; grid-template-columns: 200px minmax(0, 65ch); gap: 40px; margin-block: 32px 64px; max-width: 1100px; }
.story-ending p { margin: 0; font: 400 25px/1.5 var(--font-body); }

.story-continuation { padding-block: 64px; margin-top: 40px; background: var(--surface); }
.continuation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.continuation-layout figure { min-width: 0; margin: 0; }
.continuation-photo { display: block; overflow: hidden; aspect-ratio: 1.55; }
.continuation-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.continuation-photo:hover img { transform: scale(1.025); }
.continuation-layout figcaption { margin-top: 14px; color: var(--muted); font: 400 16px/1.55 var(--font-display); }
.continuation-credit { display: block; margin-top: 6px; }
.continuation-copy { min-width: 0; }
.continuation-copy h2 { margin: 0 0 24px; font: 700 clamp(26px, 2.7vw, 42px)/1.15 var(--font-display); letter-spacing: -.035em; text-wrap: pretty; }
.continuation-copy h2 a { text-decoration: none; }
.continuation-copy h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.continuation-copy p { max-width: 48ch; margin: 0 0 28px; font: 400 21px/1.6 var(--font-body); }
.story-read { display: inline-flex; align-items: center; gap: 20px; padding-block: 10px; font: 700 16px/1.5 var(--font-display); text-underline-offset: 5px; }
.previous-story { display: flex; justify-content: space-between; align-items: start; gap: 40px; padding-block: 32px 48px; font: 400 16px/1.5 var(--font-display); }
.previous-story a { padding-block: 8px; max-width: 50%; text-underline-offset: 4px; }
.previous-story small { display: block; color: var(--muted); font: 400 16px/1.5 var(--font-display); margin-bottom: 8px; }

@media (max-width: 1100px) {
  .narrative-cover { gap: 32px; }
  .narrative-cover .story-heading h1 { font-size: clamp(38px, 5.1vw, 62px); }
  .narrative-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
  .narrative-evidence-pair { grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; }
  .narrative-contents details { padding: 16px; }
}

@media (max-width: 800px) {
  .narrative-cover { grid-template-columns: 1fr; padding-block: 32px 40px; gap: 32px; }
  .narrative-cover .story-heading h1 { max-width: 16ch; font-size: clamp(40px, 7vw, 62px); }
  .story-dek { max-width: 60ch; }
  .narrative-cover .story-hero img, .story-hero img { height: clamp(300px, 55vw, 470px); }
  .narrative-layout { display: block; }
  .narrative-layout { padding-top: 0; }
  .narrative-contents { position: static; max-height: none; overflow: visible; margin: 0 0 40px; }
  .contents-title { display: none; }
  .narrative-contents details { padding: 18px 24px; }
  .narrative-contents summary { min-height: 32px; }
  .narrative-contents details > ol { columns: 2; column-gap: 32px; }
  .narrative-contents details:not([open]) > ol { display: none; }
  .narrative-contents .contents-part { break-inside: avoid; }
  .narrative-contents .contents-part + .contents-part { margin-top: 0; }
  .contents-glossary { width: fit-content; }
  .narrative-body { margin-inline: auto; }
  .story-ending { display: block; }
  .story-ending p { margin-top: 18px; }
  .continuation-layout { gap: 32px; }
  .continuation-copy h2 { font-size: 28px; }
  .continuation-copy p { font-size: 19px; }
}

@media (max-width: 620px) {
  .story-heading { padding-block: 24px 32px; }
  .story-heading h1, .narrative-cover .story-heading h1 { max-width: none; font-size: clamp(34px, 9vw, 48px); }
  .story-breadcrumb { font-size: 16px; margin-bottom: 24px; gap: 8px 16px; }
  .story-dek { font-size: 21px; margin-bottom: 24px; }
  .story-byline { font-size: 16px; gap: 8px 16px; }
  .narrative-cover { padding-top: 28px; }
  .narrative-cover .story-hero img, .story-hero img { height: 300px; }
  .story-photo figcaption, .photo-credit { font-size: 16px; }
  .photo-enlarge { right: 10px; bottom: 10px; font-size: 16px; padding: 9px 12px; }
  .narrative-layout, .narrative-body { font-size: 19px; line-height: 1.65; }
  .narrative-contents { margin-bottom: 32px; font-size: 16px; }
  .narrative-contents details { padding: 16px 20px; }
  .narrative-contents details > ol { columns: auto; }
  .narrative-contents .contents-part + .contents-part { margin-top: 24px; }
  .narrative-contents a:not(.contents-title) { padding-block: 10px; }
  .narrative-opening { font-size: 24px; }
  .narrative-part { padding: 24px; margin-top: 44px; }
  .narrative-part h2 { font-size: 28px; }
  .narrative-section { margin-top: 40px; scroll-margin-top: 24px; }
  .narrative-section > h2, .narrative-section > h3 { font-size: 26px; line-height: 1.2; margin-bottom: 22px; }
  .narrative-evidence-pair, .narrative-illustration { display: block; }
  .narrative-evidence-pair > .story-photo { max-width: 300px; margin: 28px auto 0; }
  .narrative-illustration > .story-photo { max-width: 360px; margin: 0 auto 32px; }
  .narrative-photo { margin-block: 28px 8px; }
  .reading-feature { padding: 24px; margin-block: 32px; font-size: 19px; }
  .reading-feature > h2, .reading-feature > h3, .narrative-illustration .reading-feature > h2, .narrative-illustration .reading-feature > h3 { font-size: 25px; }
  .comparison-columns { grid-template-columns: 1fr; gap: 26px; }
  .comparison-columns p, .narrative-illustration .comparison-columns p { font-size: 19px; }
  .feature-quote blockquote p { font-size: 25px; }
  .record-peek { grid-template-columns: 1fr; gap: 24px; padding: 24px; margin-block: 32px; }
  .record-page { max-width: 190px; }
  .record-notes h2 { font-size: 25px; }
  .record-compact { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .record-compact img { width: 64px; }
  .record-compact h3 { font-size: 22px; }
  .record-compact p:last-child { font-size: 17px; }
  .story-continuation { padding-block: 32px; margin-top: 28px; }
  .continuation-layout { grid-template-columns: 1fr; gap: 28px; }
  .continuation-copy h2 { font-size: 29px; }
  .continuation-copy p { font-size: 20px; }
  .previous-story { gap: 24px; padding-block: 24px 32px; font-size: 16px; }
  .previous-story a:first-child { max-width: 62%; }
  .previous-story a:last-child { max-width: 36%; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-enlarge, .continuation-photo img { transition: none; }
  .continuation-photo:hover img { transform: none; }
}

@media print {
  .narrative-cover, .narrative-layout { display: block; max-width: none; }
  .narrative-cover, .narrative-layout { padding-block: 16px; }
  /* Chapter headers belong to the normal flow, never repeated page furniture. */
  .story-heading, .narrative-part { display: block !important; position: static !important; float: none; break-inside: avoid; break-after: avoid-page; }
  .story-heading h1, .narrative-cover .story-heading h1 { font-size: 30pt; }
  .story-dek { font-size: 14pt; }
  .story-hero img, .narrative-cover .story-hero img { height: auto; max-height: 340px; object-fit: contain; }
  .narrative-contents, .photo-enlarge, .story-continuation, .previous-story { display: none !important; }
  .narrative-body, .reading-feature { max-width: none; font-size: 11pt; }
  .narrative-opening { font-size: 15pt; }
  .narrative-part { background: none; color: black; padding: 0; margin-top: 28px; }
  .narrative-part h2 { font-size: 21pt; }
  .narrative-section { margin-top: 24px; }
  .narrative-section > h2, .narrative-section > h3 { font-size: 18pt; }
  .narrative-section:target > h2, .narrative-section:target > h3 { color: black; }
  .narrative-evidence-pair { grid-template-columns: 1fr 150px; }
  .reading-feature, .record-peek { padding: 16px 0; margin-block: 20px; background: none; color: black; break-inside: avoid; }
  .feature-quote .feature-attribution, .feature-quote .source-disclosure { color: black; }
  /* Chromium hides a closed details element's content wrapper, not just its children. */
  details.source-disclosure::details-content { display: block !important; content-visibility: visible !important; }
  .source-disclosure > summary { display: none !important; }
  .source-disclosure > :not(summary) { display: block !important; }
  .source-disclosure .section-sources { font-size: 9pt; }
  .story-photo { break-inside: avoid; }
  .story-photo figcaption, .photo-credit { font-size: 9pt; }
  .record-peek { grid-template-columns: 120px 1fr; }
  .record-compact { grid-template-columns: 64px 1fr; }
}
