:root {
  --paper: #fff;
  --canvas: #f6f8f6;
  --ink: #202b26;
  --muted: #66716b;
  --accent: #285b47;
  --tint: #e8f0ea;
  --line: #e1e7e2;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .6; }
button, a, h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -2px; }
h2 { font-size: 23px; font-weight: 600; letter-spacing: -.6px; }
h3 { font-weight: 600; }
p { max-width: 72ch; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
form { margin: 0; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: 1240px; height: 88px; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 72px; }
.wordmark { font: italic 600 43px/1 var(--serif); letter-spacing: -2.5px; text-decoration: none; }
.wordmark span { color: var(--accent); }
.library-nav { display: flex; gap: 7px; }
.library-nav a { text-decoration: none; font-size: 14px; padding: 9px 18px; border-radius: 7px; color: var(--muted); }
.library-nav a[aria-current] { color: var(--accent); background: var(--tint); font-weight: 600; }
.library-nav a:hover { color: var(--ink); background: var(--canvas); }
.sources-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; min-height: 44px; }
.sources-nav[aria-current] { color: var(--accent); font-weight: 600; }
.source-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.shell { max-width: 1240px; padding: 0 40px; margin: auto; }
main { min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 46px 0 35px; }
.eyebrow { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.heading-period { color: var(--accent); }
.intro { color: var(--muted); font-size: 15px; margin-top: 12px; }
.button, .secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; font-size: 13px; font-weight: 600; line-height: 1.4; border-radius: 7px; border: 1px solid transparent; text-decoration: none; }
.button { background: var(--accent); color: white; }
.button:hover { background: #1d4937; color: white; }
.secondary { background: var(--paper); color: var(--ink); border-color: #cfd9d1; }
.secondary:hover { background: var(--tint); }
.text-button { border: none; background: none; padding: 10px 0; color: var(--accent); }
.build-menu { position: relative; flex-shrink: 0; }
.build-menu summary { list-style: none; }
.build-menu summary::-webkit-details-marker { display: none; }
.build-menu summary span { font-size: 23px; line-height: 16px; font-weight: 400; margin-left: 12px; }
.build-menu[open] summary { background: var(--tint); }
.build-form { position: absolute; z-index: 5; right: 0; top: calc(100% + 10px); width: 280px; padding: 22px; display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 30px #20362916; }
.build-form label { font-size: 14px; font-weight: 600; }
select, input { color: var(--ink); background: var(--paper); border: 1px solid #cfd9d1; border-radius: 7px; padding: 11px 13px; min-width: 0; font-size: 14px; min-height: 44px; }
.section-tabs { display: flex; gap: 30px; overflow-x: auto; border-bottom: 1px solid #d4ded6; scrollbar-width: thin; }
.section-tabs a { text-decoration: none; white-space: nowrap; padding: 14px 0; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.section-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.reading-layout, .library-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 42px; align-items: start; }
.mobile-coverage { display: none; }
.reading-window { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 22px; color: var(--muted); font-size: 12px; }
.story-section { margin-bottom: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 25px 28px 22px; }
.section-heading h2 { font-size: 20px; letter-spacing: -.5px; }
.section-heading > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story { display: flex; flex-direction: column; padding: 24px 28px 20px; border-top: 1px solid var(--line); min-width: 0; }
.story:nth-child(even) { border-left: 1px solid var(--line); }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; font-size: 12px; color: var(--muted); margin-bottom: 13px; }
.story-meta > :first-child { font-weight: 600; color: var(--accent); }
.kind { text-transform: capitalize; }
.story h3 { font-size: 23px; letter-spacing: -.65px; line-height: 1.33; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-color: #a6b9ad; }
.lead-story { background: #f0f5f0; }
.lead-story h3 { font-size: 28px; letter-spacing: -.9px; line-height: 1.22; }
.story-bottom { margin-top: auto; padding-top: 23px; }
.story-source + .story-source { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.source-caption { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.source-caption a { font-weight: 600; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 6px; }
.story-actions > a { font-size: 12px; color: var(--muted); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.story-actions > a:hover { color: var(--accent); text-decoration: underline; }
.story-actions form { margin-left: auto; }
.save-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 40px; padding: 7px 0 7px 8px; font-size: 12px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; }
.save-button svg { width: 17px; height: 17px; }
.save-button:hover, .save-button[aria-pressed="true"] { color: var(--accent); }
.save-button[aria-pressed="true"] svg { fill: var(--tint); stroke-width: 2; }
.save-button.secondary { border: 1px solid #cfd9d1; padding: 10px 17px; min-height: 44px; }
.section-empty { padding: 4px 28px 28px; font-size: 13px; color: var(--muted); }
.section-empty a { display: inline-block; margin-top: 8px; color: var(--accent); }
.reading-aside { padding-top: 30px; position: sticky; top: 30px; }
.contents h2, .past-editions h2 { font-size: 14px; letter-spacing: -.1px; margin-bottom: 18px; }
.contents nav { display: grid; gap: 2px; }
.contents nav a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 9px 0; font-size: 13px; }
.contents nav a span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.edition-about { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.edition-about h2 { font: italic 400 30px/1.1 var(--serif); letter-spacing: -.5px; }
.edition-about p { font-size: 13px; color: var(--muted); margin: 14px 0; line-height: 1.7; }
.edition-about a { font-size: 13px; color: var(--accent); }
.coverage { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.coverage summary { font-size: 12px; font-weight: 500; }
.coverage-dot { display: inline-block; background: var(--accent); width: 6px; height: 6px; border-radius: 50%; margin: 0 5px 1px 2px; }
.coverage-dot.partial { background: #9d742b; }
.coverage p { margin-top: 14px; color: var(--muted); }
.coverage ul { list-style: none; padding: 0; margin: 15px 0; }
.coverage li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.status { font-size: 11px; font-weight: 500; color: var(--muted); }
.status.healthy, .status.ready, .status.enabled { color: var(--accent); }
.status.unavailable, .status.blocked, .status.failed { color: #9c4d22; }
.status.stale, .status.unchecked, .status.candidate { color: #84612b; }
.claims { font-size: 14px; line-height: 1.7; margin-top: 18px; }
.claims p + p { margin-top: 12px; }
.evidence { margin-top: 18px; font-size: 12px; color: var(--muted); }
blockquote { margin: 16px 0; padding-left: 14px; border-left: 2px solid var(--line); }
blockquote cite { display: block; margin-top: 8px; }
.edition-end { text-align: center; padding: 28px 24px 52px; }
.finish-mark { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #c9d9cd; border-radius: 50%; width: 32px; height: 32px; color: var(--accent); margin-bottom: 18px; }
.edition-end h2 { font-size: 25px; }
.edition-end p { color: var(--muted); font-size: 13px; margin: 9px auto 17px; }
.edition-end a { color: var(--accent); font-size: 12px; }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 100px; padding: 25px 0; font-size: 11px; color: var(--muted); }
.site-footer > a:last-of-type { margin-left: auto; }
.footer-brand { font: italic 600 25px/1 var(--serif); color: var(--ink); text-decoration: none; }
.small { font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 70px 25px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin: 28px 0 60px; }
.empty h2 { font-size: 28px; margin-bottom: 16px; }
.empty p { font-size: 14px; color: var(--muted); max-width: 48ch; margin: 0 auto 22px; }
.empty-icon { display: block; margin-bottom: 20px; color: var(--accent); }
.empty-icon svg { width: 30px; height: 30px; }
.inline-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; font-size: 14px; }
.notice { border: 1px solid #d7e3d8; background: var(--tint); padding: 15px 20px; margin: 20px 0; border-radius: 7px; font-size: 13px; }
.search { display: flex; gap: 12px; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.search-input { display: flex; flex: 1; align-items: center; position: relative; min-width: 0; }
.search-input svg { position: absolute; left: 15px; color: var(--muted); }
.search input { width: 100%; padding-left: 46px; }
.search select { width: 210px; }
.library-layout { padding: 25px 0 50px; }
.result-heading { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 17px; }
.archive-list { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.archive-story { padding: 25px 28px; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: flex-start; }
.archive-story:last-child { border: 0; }
.archive-story-main { flex: 1; min-width: 0; }
.archive-story h2 { font-size: 22px; line-height: 1.35; }
.archive-story h2 a { text-decoration: none; }
.archive-story .story-meta { margin-bottom: 8px; }
.archive-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 17px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.archive-meta a { min-height: 30px; display: inline-flex; align-items: center; }
.archive-story .save-button { width: 56px; flex-wrap: wrap; gap: 2px; padding: 7px; }
.archive-story .save-button span { width: 100%; }
.archive-list .empty { border: 0; margin: 0; }
.read-badge { color: var(--accent); }
.library-aside { padding-top: 5px; }
.library-aside .edition-about { margin-top: 0; border: 0; padding-top: 0; }
.past-editions ul { list-style: none; margin: 16px 0 0; padding: 0; }
.past-editions li { border-top: 1px solid var(--line); }
.past-editions li a { display: grid; gap: 5px; padding: 17px 0; text-decoration: none; font-size: 11px; color: var(--muted); }
.past-editions li strong { font-size: 14px; color: var(--ink); font-weight: 500; }
.past-editions li .status { margin-left: 12px; text-transform: capitalize; }
.article-reader { max-width: 790px; margin: auto; padding: 36px 0 70px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); min-height: 44px; font-size: 13px; text-decoration: none; margin-bottom: 30px; }
.article-heading h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -1.6px; }
.byline { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: 25px 0 8px; font-size: 14px; }
.byline strong { font-weight: 600; }
.byline span { color: var(--muted); }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 40px; }
.article-actions > a:not(.button) { font-size: 13px; margin-left: 8px; }
.article-evidence { background: var(--paper); border: 1px solid var(--line); padding: 32px; border-radius: 10px; }
.excerpt-heading { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 25px; }
.excerpt-heading h2 { font-size: 18px; margin-bottom: 9px; }
.excerpt-heading p { font-size: 12px; color: var(--muted); }
.excerpt { white-space: pre-wrap; overflow-wrap: anywhere; font: 20px/1.75 var(--serif); }
.link-only-note { border-top: 1px solid var(--line); padding: 28px 0; }
.link-only-note span { display: block; color: var(--muted); font-size: 13px; margin-top: 7px; }
.source-summary { display: flex; flex-wrap: wrap; gap: 15px 32px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-bottom: 32px; }
.source-section { margin-bottom: 32px; }
.source-section .section-heading { padding: 0; }
.section-description { margin: 8px 0 20px; font-size: 13px; color: var(--muted); }
.source-list { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.source-list article { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 25px; padding: 24px 28px; border-bottom: 1px solid var(--line); align-items: start; }
.source-list article:last-child { border-bottom: 0; }
.source-name h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.source-name h3 a { text-decoration: none; }
.source-name h3 svg { width: 14px; height: 14px; color: var(--muted); margin-left: 6px; }
.source-name > span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.status-pill { display: inline-block; border-radius: 5px; padding: 3px 8px; background: var(--canvas); font-size: 11px; color: var(--muted); }
.status-pill.enabled { background: var(--tint); color: var(--accent); }
.status-pill.candidate, .status-pill.blocked, .status-pill.needs-attention { background: #f5efdf; color: #84612b; }
.source-health p, .source-health summary { font-size: 12px; color: var(--muted); margin-top: 7px; }
.source-health .source-error { overflow-wrap: anywhere; color: #9c4d22; }
.source-list form { justify-self: end; }
.compact { min-width: 76px; }
.login { max-width: 620px; margin: 90px auto; }
.login h1 { font-size: 72px; margin-bottom: 28px; }
.login p:not(.eyebrow) { margin-bottom: 25px; color: var(--muted); }
.progress-mark { display: block; height: 4px; width: 65px; margin: 0 auto 30px; border-radius: 4px; background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 10; padding: 13px 22px; border-radius: 8px; background: var(--ink); color: white; font-size: 13px; max-width: calc(100% - 32px); box-shadow: 0 6px 25px #1d352b22; }
.toast[hidden] { display: none; }
.skip { position: absolute; left: 20px; top: -70px; background: var(--paper); padding: 10px; z-index: 20; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 1050px) {
  .reading-layout, .library-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
  .story { padding: 22px; }
  .story h3 { font-size: 21px; }
  .lead-story h3 { font-size: 25px; }
  .section-tabs { gap: 23px; }
}
@media (max-width: 850px) {
  .shell, .masthead-inner { padding-left: 24px; padding-right: 24px; }
  .masthead-inner { gap: 40px; }
  .reading-layout, .library-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .reading-window { flex-wrap: wrap; }
  .mobile-coverage { display: block; flex-basis: 100%; font-size: 12px; color: #84612b; }
  .reading-aside { position: static; padding: 0 0 30px; }
  .aside-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .contents { display: none; }
  .edition-about, .coverage { margin-top: 0; padding-top: 22px; }
  .library-aside { padding-top: 30px; }
  .past-editions ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .source-list article { grid-template-columns: 1fr 1fr 85px; gap: 16px; padding: 22px; }
}
@media (max-width: 600px) {
  .shell, .masthead-inner { padding-left: 20px; padding-right: 20px; }
  .masthead-inner { min-height: 110px; height: auto; flex-wrap: wrap; gap: 10px 18px; padding-top: 17px; padding-bottom: 0; }
  .wordmark { font-size: 35px; }
  .sources-nav { font-size: 12px; }
  .library-nav { order: 3; width: 100%; gap: 16px; }
  .library-nav a { border-radius: 0; padding: 10px 3px 12px; border-bottom: 2px solid transparent; }
  .library-nav a[aria-current] { background: transparent; border-color: var(--accent); }
  .page-heading { padding: 28px 0 25px; gap: 14px; flex-wrap: wrap; }
  h1 { font-size: 38px; letter-spacing: -1.5px; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  .intro { font-size: 13px; margin-top: 10px; }
  .build-menu { margin-top: 4px; }
  .build-menu > summary { min-height: 40px; padding: 8px 13px; font-size: 12px; }
  .build-form { left: 0; right: auto; width: min(280px, calc(100vw - 40px)); }
  .section-tabs { margin-right: -20px; padding-right: 20px; gap: 24px; }
  .section-tabs a { font-size: 12px; padding: 13px 0; }
  .reading-window { font-size: 10px; gap: 10px; padding: 20px 0; }
  .reading-window span:last-child { white-space: nowrap; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-section { border-radius: 8px; margin-bottom: 22px; }
  .section-heading { padding: 20px; }
  .section-heading h2 { font-size: 18px; }
  .story { padding: 22px 20px 15px; }
  .story:nth-child(even) { border-left: 0; }
  .story h3 { font-size: 23px; letter-spacing: -.65px; }
  .lead-story h3 { font-size: 28px; }
  .story-meta { font-size: 11px; }
  .story-bottom { padding-top: 18px; }
  .save-button, .story-actions > a { min-height: 44px; }
  .source-caption { font-size: 11px; }
  .edition-end { padding: 22px 15px 40px; }
  .aside-inner { grid-template-columns: 1fr; gap: 22px; }
  .edition-about { display: none; }
  .coverage { padding-top: 20px; }
  .empty { padding: 40px 20px; margin-bottom: 30px; }
  .empty h2 { font-size: 25px; }
  .search { flex-wrap: wrap; gap: 10px; padding-bottom: 22px; }
  .search-input { flex-basis: 100%; }
  .search select { width: auto; flex: 1; }
  .search .button { min-width: 85px; }
  .archive-story { padding: 22px 18px; gap: 10px; }
  .archive-story h2 { font-size: 20px; letter-spacing: -.5px; }
  .archive-story .save-button { width: 44px; padding: 7px 2px; font-size: 11px; }
  .archive-story .story-meta { gap: 4px 10px; font-size: 10px; }
  .archive-meta { gap: 6px 12px; }
  .archive-meta a { min-height: 40px; }
  .article-reader { padding: 20px 0 45px; }
  .back-link { margin-bottom: 22px; }
  .article-heading h1 { font-size: 34px; letter-spacing: -1.2px; }
  .article-actions { gap: 8px; }
  .article-evidence { padding: 23px 20px; }
  .excerpt { font-size: 19px; }
  .source-summary { font-size: 11px; gap: 8px 18px; }
  .source-list article { grid-template-columns: 1fr auto; padding: 20px; }
  .source-health { grid-column: 1 / -1; grid-row: 2; }
  .source-name h3 { font-size: 16px; }
  .source-list form { grid-column: 2; grid-row: 1; }
  .compact { min-width: 65px; padding: 8px 12px; font-size: 12px; }
  .site-footer { gap: 15px; font-size: 10px; padding: 25px 0; }
  .site-footer > span { flex: 1; }
  .site-footer > a:last-of-type { margin-left: 0; width: 100%; }
  .login { margin: 50px 0; }
  .login h1 { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
