/* Long-form pages share the portfolio navigation, palette, and theme. */
.reading-page { box-sizing: border-box; width: calc(100% - 220px); max-width: 860px; padding-top: 36px; }
.reading-page h1 { font-size: 36px; line-height: 1.15; margin: 12px 0 18px; letter-spacing: 0; }
.reading-page h1 span { white-space: nowrap; }
.reading-page h2 { font-size: 24px; line-height: 1.3; margin-top: 42px; letter-spacing: 0; }
.reading-page h3 { font-size: 19px; letter-spacing: 0; }
.breadcrumb { margin: 0 0 22px; font-size: 13px; }
.article-meta, .writing-date { font-size: 13px; opacity: 0.7; }
.article-deck { font-size: 18px; line-height: 1.55; }
.essay { font-size: 17px; line-height: 1.7; }
.essay p { margin: 0 0 22px; }
.essay .lede { font-size: 19px; }
.essay section { margin-bottom: 0; }
.essay sup { line-height: 0; }
.essay sup a { font-size: 12px; padding: 0 2px; text-decoration: none; }
.essay [id], .dataset-page [id] { scroll-margin-top: 24px; }
.reading-page figure { margin: 32px 0; }
.reading-page figure img { display: block; width: 100%; height: auto; }
.reading-page .dataset-figure { width: 100%; max-width: 560px; margin: 32px auto; }
.reading-page figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; opacity: 0.8; }
.reading-page .chart-figure img { border: 1px solid var(--button-border); background: #fff; }
.milestone-values { margin: 0 0 32px; font-size: 14px; }
.milestone-values summary { cursor: pointer; padding: 8px 0; }
.milestone-values table { margin-top: 12px; }
.milestone-values tbody th { text-align: left; padding-top: 20px; }
.milestone-values td:last-child { white-space: nowrap; }
figure a { display: block; }
.source-notes { border-top: 1px solid var(--button-border); margin-top: 42px; padding-top: 8px; font-size: 14px; }
.source-notes li { margin-bottom: 12px; }
.writing-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--button-border); }
.writing-row img { display: block; width: 150px; aspect-ratio: 3 / 2; object-fit: cover; }
.writing-row h2 { margin: 6px 0 12px; font-size: 22px; }
.writing-row p { margin: 0 0 8px; line-height: 1.55; }
.writing-row .reading-note { font-size: 13px; opacity: 0.7; }
.dataset-facts { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.dataset-facts th, .dataset-facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--button-border); }
.dataset-facts th { width: 30%; }
.viewpoint-tables { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin: 24px 0; align-items: start; }
.viewpoint-counts { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.viewpoint-counts caption { text-align: left; font-weight: bold; margin-bottom: 10px; }
.viewpoint-counts th, .viewpoint-counts td { text-align: right; vertical-align: middle; padding: 8px 6px; border-bottom: 1px solid var(--button-border); }
.viewpoint-counts tr > :first-child { text-align: left; padding-left: 0; }
.viewpoint-counts thead th { line-height: 1.4; }
.viewpoint-counts tfoot { font-weight: bold; }
.viewpoint-note { font-size: 13px; }
.dataset-page { line-height: 1.65; }
.dataset-download { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; }
.dataset-download svg { width: 20px; height: 20px; }
.reading-page pre { padding: 16px; border: 1px solid var(--button-border); overflow-x: auto; font-size: 13px; line-height: 1.5; }
.reading-page code { font-family: 'Courier New', Courier, monospace; }
.checksum { font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.dataset-outline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0; font-size: 14px; }
[data-theme="dark"] .reading-page h1 { display: block; font-family: inherit; font-size: 30px; }
[data-theme="dark"] .reading-page h2 { padding-bottom: 8px; border-bottom: 1px solid var(--term-border); font-size: 21px; font-weight: bold; text-transform: none; }
[data-theme="dark"] .reading-page h2::before, [data-theme="dark"] .reading-page h2::after { content: none; }
[data-theme="dark"] .essay { font-size: 15px; }
@media (max-width: 768px) {
  .reading-page { width: 100%; max-width: none; padding-top: 24px; }
  .reading-page h1 { font-size: 30px; }
  .reading-page h2 { font-size: 23px; }
  .essay { font-size: 16px; }
  .essay .lede { font-size: 18px; }
  .reading-page .dataset-figure { max-width: none; }
  .writing-row { grid-template-columns: 1fr; gap: 16px; }
  .writing-row img { width: 100%; max-width: 320px; }
  .dataset-facts th { width: 36%; }
  .viewpoint-tables { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .reading-page h1, [data-theme="dark"] .reading-page h1 { font-size: 26px; }
}
