/* SPDX-License-Identifier: MIT. Arbiter News shares the site's appearance preference. */
:root {
  --paper: #faf8f1;
  --surface: #f1efe6;
  --ink: #171d2c;
  --body: #39404a;
  --muted: #59606b;
  --line: #c9c7bc;
  --accent: #a13219;
  --accent-soft: #f5e6dc;
  --serif: Georgia, 'Times New Roman', serif;
}
:root[data-theme='dark'] {
  --paper: #171b24;
  --surface: #222731;
  --ink: #f3efe5;
  --body: #d6d4cd;
  --muted: #b7b8b9;
  --line: #48505c;
  --accent: #ffa389;
  --accent-soft: #3b2b2c;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--body); font: 1rem/1.6 var(--sans); }
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.12; }
.shell { width: min(1232px, calc(100% - clamp(32px, 8vw, 128px))); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 1rem; z-index: 50; padding: .7rem 1rem; color: var(--paper); background: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; color: var(--paper); }
[hidden] { display: none !important; }
.theme-toggle[hidden] { display: grid !important; }

.press-bar, .press-nav, .paper-name, .lead-foot, .desk-label, .read-story, .edition-links, .sources {
  display: flex;
  align-items: center;
}
.press-bar { min-height: 85px; justify-content: space-between; gap: 1rem; border-bottom: 3px double var(--ink); }
.paper-name { gap: .5rem; color: var(--ink); font: bold clamp(1.8rem, 3.2vw, 3rem)/1 var(--serif); letter-spacing: -.065em; text-decoration: none; }
.imprint { display: flex; align-items: baseline; gap: .8rem; }
.publisher-home { color: var(--muted); font: italic .95rem var(--serif); text-decoration: none; }
.publisher-home:hover { text-decoration: underline; }
.press-mark { color: var(--accent); font: 1em/1 Georgia, serif; }
.press-nav { gap: clamp(.75rem, 2.2vw, 2.3rem); }
.press-nav > a, .edition-links a, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; font-weight: 650; text-decoration: none; }
.press-nav > a[aria-current], .press-nav > a:hover, .edition-links a:hover, .footer nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.theme-toggle { width: 42px; height: 42px; min-height: 42px; }
.issue-line, .edition-art figcaption, .byline, .history-count, .total { font: .73rem/1.6 var(--mono); color: var(--muted); }
.issue-line { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 1rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
.issue-line time { color: var(--ink); }
.issue-line > span span { margin-inline: .4em; color: var(--accent); }

.lead-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4.2vw, 5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.8rem) 0; }
.lead-copy { min-width: 0; }
.lead-kicker, .desk-label, .story-kicker, .eyebrow { font: 600 .7rem/1.5 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.lead-kicker { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.lead-kicker span:first-child { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); }
.lead-kicker span:first-child::before { content: ''; width: .55rem; height: .55rem; background: currentColor; border-radius: 50%; }
.lead-kicker span + span { border-left: 1px solid var(--line); padding-left: .8rem; }
.lead-copy h1 { margin: .8rem 0 1rem; font-size: clamp(2.1rem, 3.8vw, 3.65rem); letter-spacing: -.055em; line-height: 1.04; text-wrap: pretty; }
.lead-copy h1 a { text-decoration: none; }
.deck { max-width: 55ch; font: 1.09rem/1.55 var(--sans); }
.lead-foot { flex-wrap: wrap; gap: .45rem 1.2rem; margin-top: 1.25rem; }
.read-story { gap: .75rem; min-height: 44px; padding: .65rem 1rem; color: var(--paper); background: var(--ink); text-decoration: none; font: 650 .81rem var(--sans); }
.read-story:hover { background: var(--accent); color: var(--paper); }
.read-story svg, .sources svg, .briefing-title svg, .archive-arrow svg { width: 1rem; height: 1rem; }
.lead-foot > span { color: var(--muted); font-size: .8rem; }
.edition-art { min-width: 0; }
.edition-art img { display: block; width: 100%; height: auto; }
.edition-art figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .38rem; font-size: .62rem; }
.edition-art i { font: italic .87rem var(--serif); }
.desk-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(0,1fr)); border-block: 1px solid var(--ink); padding-block: 1.25rem; }
.desk-previews:empty { display: none; }
.desk-preview { padding-inline: clamp(1rem, 2vw, 2rem); text-decoration: none; min-width: 0; }
.desk-preview:first-child { padding-left: 0; }
.desk-preview:last-child { padding-right: 0; }
.desk-preview + .desk-preview { border-left: 1px solid var(--line); }
.desk-label { gap: .45rem; color: var(--accent); }
.desk-label svg, .tab-icon svg, .section-symbol svg { display: block; width: 1rem; height: 1rem; }
.teaser-title { display: block; margin-top: .5rem; color: var(--ink); font: 500 clamp(1.12rem, 1.5vw, 1.45rem)/1.24 var(--serif); letter-spacing: -.025em; }
.desk-preview:hover .teaser-title, .desk-preview:focus-visible .teaser-title { text-decoration: underline; text-decoration-thickness: 1px; }

.briefing-title, .section-head, .archive-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.briefing-title { margin: 2.8rem 0 1rem; }
.briefing-title h2, .index-mast h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -.055em; }
.briefing-title a { display: inline-flex; gap: .3rem; align-items: center; min-height: 44px; color: var(--muted); font-size: .76rem; }
.tabbar { position: sticky; top: 0; z-index: 10; background: var(--paper); border-block: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.tab { display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .7rem .5rem; min-height: 48px; color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 650; }
.tab + .tab { border-left: 1px solid var(--line); }
.tab-topic { display: inline-flex; align-items: center; gap: .5rem; }
.tab b { font: .67rem var(--mono); }
.tab:hover { background: var(--surface); }
.tab[aria-selected='true'] { box-shadow: inset 0 -3px currentColor; color: var(--accent); background: var(--accent-soft); }
.tab:focus-visible { outline-offset: -4px; }
.panel, .report { scroll-margin-top: 4rem; }
.panel { padding-top: 2.3rem; }
.section-head { padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.section-head h2, .archive-section-head h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -.045em; }
.section-head .total { white-space: nowrap; }
.total small { font: inherit; }
.desk-layout { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.desk-index { position: sticky; top: 4.8rem; padding: 1.8rem 0; }
.desk-index .desk-label { margin-bottom: .75rem; }
.desk-index ol { padding-left: 1.8rem; list-style-type: decimal-leading-zero; }
.desk-index li { border-bottom: 1px solid var(--line); }
.desk-index li::marker { font: .7rem var(--mono); color: var(--muted); }
.desk-index a { display: block; padding: .69rem .2rem; text-decoration: none; font-size: .86rem; }
.desk-index a:hover { text-decoration: underline; }
.stories { min-width: 0; }
.report { max-width: 72ch; padding: 1.8rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.report:focus:not(:focus-visible) { outline: 0; }
.story-kicker, .kicker { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; color: var(--accent); }
.story-kicker > span + span { text-transform: none; font-weight: 400; letter-spacing: normal; color: var(--muted); }
.story h3 { margin-block: .6rem; font-size: clamp(1.75rem, 2.6vw, 2.55rem); letter-spacing: -.038em; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-family: var(--sans); font-size: .81rem; }
.byline strong { color: var(--ink); }
.highlights, .analysis-copy, .original-text { font: 1.16rem/1.65 var(--serif); color: var(--ink); overflow-wrap: break-word; }
.highlights, .original-text, .coverage-warning { margin-top: 1rem; }
.analysis { margin-top: 1.2rem; border-block: 1px solid var(--line); }
summary { cursor: pointer; }
.analysis summary, .edition-notes > summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 46px; padding: .65rem 0; color: var(--ink); list-style: none; font-size: .85rem; font-weight: 700; }
.analysis summary::-webkit-details-marker, .edition-notes > summary::-webkit-details-marker { display: none; }
.analysis summary::after, .edition-notes > summary::after { content: '+'; color: var(--accent); font: 1.35rem/1 var(--mono); }
.analysis[open] summary::after, .edition-notes[open] > summary::after { content: '−'; }
.analysis-copy { padding: .4rem 0 1rem 1rem; border-left: 2px solid var(--accent); margin-bottom: .8rem; color: var(--body); }
.analysis-copy p + p, .original-text p + p, .note-text p + p, .notes-copy p + p { margin-top: .85rem; }
.sources, .edition-links { flex-wrap: wrap; gap: .1rem 1.3rem; }
.sources { margin-top: .45rem; }
.sources a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.sources svg { flex: none; }
.change, .migration, .note { padding: .8rem 0; color: var(--muted); font-size: .87rem; }
.change b { margin-right: .35rem; color: var(--accent); }
.desk-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: 1rem 0; }
.desk-end a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .8rem; }
.desk-end svg { width: 1rem; }
.edition-notes, .notes { margin-top: 2.5rem; border-block: 1px solid var(--line); }
.edition-notes > summary { min-height: 60px; font: 1.25rem var(--serif); }
.note-text, .notes-copy { max-width: 78ch; padding: .5rem 0 1.2rem; font-size: .9rem; }
.footer { margin-top: 2.5rem; padding: 1.5rem 0; border-top: 3px double var(--ink); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.wordmark { font: bold 1.45rem/1.2 var(--serif); letter-spacing: -.06em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); }
.footer p { font-size: .78rem; color: var(--muted); }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem 1.3rem; }

.index-mast { padding-block: clamp(1.7rem,4vw,3.7rem); border-bottom: 1px solid var(--ink); }
.index-mast h1 { margin: .4rem 0 .65rem; }
.index-mast > p { max-width: 66ch; }
.index-mast .edition-links { margin-top: .5rem; }
.history-count { margin-top: .75rem; }
.archive-section { margin-top: 2.4rem; }
.archive-section-head { border-bottom: 1px solid var(--ink); padding-bottom: .8rem; }
.archive-section-head .eyebrow { color: var(--muted); margin-bottom: .28rem; }
.archive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2.6rem; }
.archive-card { color: var(--body); display: grid; grid-template-columns: 3.3rem minmax(0,1fr); gap: 1.1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.archive-date { color: var(--accent); text-align: center; align-self: start; border-top: 2px solid; padding-top: .35rem; }
.archive-date > span, .archive-entry small, .badge { font: .68rem/1.55 var(--mono); }
.archive-date > span { display: block; text-transform: uppercase; }
.archive-date > b { font: 2.05rem/1.12 var(--serif); }
.archive-card time { color: var(--muted); font-size: .77rem; }
.archive-entry > strong { display: block; margin: .32rem 0 .45rem; color: var(--ink); font: 1.35rem/1.25 var(--serif); letter-spacing: -.025em; }
.archive-card:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.archive-entry small { color: var(--muted); }
.signal { margin-top: 1.3rem; border-left: 2px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; max-width: 86ch; font-size: .91rem; }
.signal b { display: block; margin-bottom: .35rem; color: var(--ink); }
.history-story { max-width: 76ch; margin-inline: auto; border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.story-number, .section-symbol, .topic-number { display: none; }
.history-story .kicker { font: .72rem/1.6 var(--mono); }
.history-provenance { margin-top: .4rem; font-size: .83rem; color: var(--muted); }
.history-provenance summary { padding-block: .65rem; }
.history-provenance code { overflow-wrap: anywhere; }
.notes { padding-block: 1rem; }
.notes h2 { margin-top: .4rem; }
@media (max-width: 860px) {
  .lead-story { gap: 1.7rem; }
  .lead-copy h1 { font-size: clamp(1.95rem, 3.8vw, 2.3rem); }
  .deck { font-size: 1rem; }
  .desk-layout { grid-template-columns: minmax(9rem,1fr) minmax(0,3fr); }
}
@media (max-width: 680px) {
  .press-bar { min-height: 73px; }
  .imprint { flex-direction: column; align-items: start; gap: .06rem; }
  .publisher-home { font-size: .79rem; min-height: 24px; padding-top: .18rem; }
  .press-nav { gap: .85rem; }
  .press-nav > a { font-size: .79rem; }
  .feed-link { display: none !important; }
  .theme-toggle { width: 36px; height: 36px; min-height: 36px; }
  .issue-line { font-size: .64rem; }
  .issue-line > span span { margin-inline: .05em; }
  .lead-story { grid-template-columns: 1fr; gap: 1.15rem; padding: 1.45rem 0 1.05rem; }
  .lead-copy h1 { font-size: clamp(2.15rem, 7.25vw, 3rem); margin-block: .65rem .7rem; }
  .lead-foot { margin-top: .85rem; }
  .desk-previews { grid-template-columns: 1fr; padding: 0; }
  .desk-preview { padding: .85rem 0; }
  .desk-preview + .desk-preview { border-left: 0; border-top: 1px solid var(--line); }
  .teaser-title { margin-top: .25rem; font-size: 1.19rem; }
  .briefing-title { margin: 1.7rem 0 .6rem; }
  .briefing-title a { font-size: .69rem; }
  .tabbar { position: static; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab { justify-content: start; gap: .4rem; font-size: .77rem; }
  .tab:nth-child(3) { border-left: 0; }
  .tab:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel { padding-top: 1.5rem; }
  .panel, .report { scroll-margin-top: .8rem; }
  .desk-layout { display: block; }
  .desk-index { position: static; padding: 1rem 0 .35rem; }
  .desk-index .desk-label { margin-bottom: .15rem; }
  .desk-index a { padding-block: .52rem; }
  .section-head { align-items: center; padding-bottom: .7rem; }
  .report { padding-block: 1.4rem; }
  .highlights, .analysis-copy, .original-text { font-size: 1.1rem; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer nav { gap: .15rem .9rem; }
}
@media (max-width: 360px) {
  .paper-name { font-size: 1.55rem; gap: .24rem; }
  .press-nav { gap: .55rem; }
  .press-bar { gap: .3rem; }
  .tab-icon { display: none; }
}
@media (forced-colors: active) {
  .tab[aria-selected='true'], .read-story { border: 2px solid Highlight; }
}
@media print {
  :root, :root[data-theme='dark'] { color-scheme: light; --paper: white; --ink: black; --body: #222; --accent: #333; --muted: #444; --line: #999; }
  .shell { width: 100%; }
  .press-nav, .edition-art, .lead-foot, .desk-previews, .desk-end, .briefing-title, .tabbar, .desk-index, .footer, .skip, .edition-links { display: none; }
  .press-bar { min-height: 0; padding-block: .4rem; }
  .lead-story, .desk-layout { display: block; }
  .panel[hidden] { display: block !important; }
  .panel { break-before: page; }
  .panel:first-child { break-before: auto; }
  .report, .history-story { max-width: none; }
  details::details-content { display: contents; content-visibility: visible; }
  .analysis summary::after, .edition-notes > summary::after { content: none; }
  h1, h2, h3, .section-head, .story header { break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
