/* World Pulse — a mobile-first news front. Light newsprint by default; dark follows the system or the reader's choice. */
:root {
  /* paper and ink */
  --paper: #f6f2ea;
  --paper-2: #ece6da;
  --paper-3: #ddd5c6;
  --field: #fffdf9;
  --ink: #15120f;
  --ink-2: #3b352e;
  --muted: #655c51;
  --rule: #d6cdbd;
  --rule-2: #a99e8b;
  /* the one news red: LIVE, kickers, buttons */
  --red: #c4111c;
  --red-dark: #9f0d16;
  --red-text: #b30f19;
  --on-red: #fff;
  --deal: #0f7a68;
  --deal-text: #0b6b5b;
  --crisis: #c4111c;
  --mixed: #6a3d9e;
  /* World Pulse Pro: a dark gold, kept apart from the news red */
  --pro: #7a5800;
  --pro-dark: #5f4400;
  --pro-text: #6f5000;
  --on-pro: #fff;
  --pro-wash: #efe5cc;
  /* conflict status markers */
  --st-critical: #c4111c;
  --st-high: #d2581a;
  --st-elevated: #a88000;
  --st-watch: #2f6db5;
  --st-quiet: #8f8577;
  --ocean: #ebe4d6;
  --land: #cfc3ae;
  --focus: #15120f;
  /* type: Newsreader and Barlow for Latin, with Cyrillic companions (see fonts/fonts.css) */
  --serif: "Newsreader", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Barlow", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1240px;
  --tabbar-h: 57px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412; --paper-2: #1f1d1a; --paper-3: #2c2925; --field: #1b1a17;
    --ink: #f0ebe2; --ink-2: #d3ccc0; --muted: #a59d91; --rule: #35312c; --rule-2: #6a6259;
    --red: #c8161f; --red-dark: #a51219; --red-text: #ff7468; --on-red: #fff;
    --deal: #3fc3a7; --deal-text: #4fd1b4; --crisis: #ff6a5e; --mixed: #b8a4ef;
    --pro: #dcae45; --pro-dark: #c39632; --pro-text: #e8bf62; --on-pro: #1a1407; --pro-wash: #29231a;
    --st-critical: #ff5247; --st-high: #ff8c42; --st-elevated: #e9c43a; --st-watch: #6fa8ff; --st-quiet: #6e675e;
    --ocean: #1c1a18; --land: #3b3630; --focus: #f0ebe2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151412; --paper-2: #1f1d1a; --paper-3: #2c2925; --field: #1b1a17;
  --ink: #f0ebe2; --ink-2: #d3ccc0; --muted: #a59d91; --rule: #35312c; --rule-2: #6a6259;
  --red: #c8161f; --red-dark: #a51219; --red-text: #ff7468; --on-red: #fff;
  --deal: #3fc3a7; --deal-text: #4fd1b4; --crisis: #ff6a5e; --mixed: #b8a4ef;
  --pro: #dcae45; --pro-dark: #c39632; --pro-text: #e8bf62; --on-pro: #1a1407; --pro-wash: #29231a;
  --st-critical: #ff5247; --st-high: #ff8c42; --st-elevated: #e9c43a; --st-watch: #6fa8ff; --st-quiet: #6e675e;
  --ocean: #1c1a18; --land: #3b3630; --focus: #f0ebe2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 1rem/1.5 var(--sans); font-variant-numeric: lining-nums;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
  /* German and Serbian run long: break only long words, with hyphens where the language allows */
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border: 2px solid var(--ink); }
.noscript { padding: 24px 16px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- masthead: nameplate, dateline, section strip ---- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); align-items: center;
  min-height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left));
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.masthead .back, .masthead .brand { grid-column: 1; grid-row: 1; justify-self: start; }
.nameplate {
  grid-column: 2; grid-row: 1; display: flex; align-items: center; min-height: 44px; padding: 4px; white-space: nowrap; text-decoration: none; color: var(--ink);
  font: 700 1.75rem/1 var(--serif); letter-spacing: -.02em;
}
.masthead .refresh, .masthead .open-app { grid-column: 3; grid-row: 1; justify-self: end; }
/* language switcher: a compact button next to refresh, opening a small menu */
.mast-end { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; }
.lang-btn { min-width: 44px; height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink); cursor: pointer; font: 600 .75rem/1 var(--sans); letter-spacing: .06em; white-space: nowrap; }
.lang-btn[aria-expanded="true"] { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.lang-menu { position: absolute; top: 100%; right: max(8px, env(safe-area-inset-right)); z-index: 30; display: grid; gap: 8px; padding: 10px; background: var(--paper); border: 1px solid var(--ink); }
.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lang-seg button { min-height: 40px; padding: 0 12px; }
.brand { display: grid; place-items: center; width: 44px; height: 44px; }
.brand svg { width: 26px; height: 26px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand circle { stroke: var(--ink); }
.brand path { stroke: var(--red); }

.dateline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px;
  padding: 8px max(var(--gutter), env(safe-area-inset-right)) 7px max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 3px double var(--ink); text-align: center;
  font: 600 .75rem/1.35 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.dateline > :not(:first-child):not(.live) { padding-left: 10px; border-left: 1px solid var(--rule-2); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--red-text); font-weight: 700; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }

.sections {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 0 32px 0 max(var(--gutter), env(safe-area-inset-left)); background: var(--paper); border-bottom: 1px solid var(--rule);
}
.sections.overflows { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.sections::-webkit-scrollbar { display: none; }
.sections a {
  flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 11px; margin-bottom: -1px;
  border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none;
  font: 600 .875rem/1 var(--sans); color: var(--ink-2);
}
.sections a:first-child { margin-left: -11px; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

.banner { padding: 8px var(--gutter); border-bottom: 1px solid var(--rule); text-align: center; font: 500 .8125rem/1.4 var(--sans); color: var(--ink-2); }
.banner.offline { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- buttons ---- */
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--red); border-radius: 2px; background: var(--red); color: var(--on-red);
  font: 700 .9375rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more-link, .text-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 .875rem/1.2 var(--sans); color: var(--red-text); text-decoration: none;
}
.more-link:hover, .text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- bottom tab bar (phones) ---- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--paper); border-top: 1px solid var(--rule);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; padding: 6px 2px 5px; text-align: center; text-decoration: none;
  font: 600 .75rem/1.1 var(--sans); color: var(--muted); overflow-wrap: anywhere;
}
.tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 32px; margin-left: -16px; height: 3px; background: var(--red); }

/* ---- layout ---- */
.view { max-width: var(--max); margin: 0 auto; padding: 18px max(var(--gutter), env(safe-area-inset-right)) 40px max(var(--gutter), env(safe-area-inset-left)); outline: none; }
.page { max-width: 46rem; margin: 0 auto; }
.page.wide { max-width: none; }
.col > :first-child { margin-top: 0; }

.page-head { margin: 0 0 18px; padding: 4px 0 16px; border-bottom: 1px solid var(--rule); }
.page-head h1 { margin: 0; font: 700 2.125rem/1.08 var(--serif); letter-spacing: -.015em; }
.page-head .kicker { margin-bottom: 8px; }
.dek { margin: 10px 0 0; max-width: 40em; font: 400 1.125rem/1.45 var(--serif); color: var(--ink-2); }
.kicker {
  margin: 0 0 6px; font: 700 .75rem/1.45 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--red-text);
}
/* separators are inline text, so a line never breaks between an item and its separator */
.kicker > :not(:last-child)::after { content: "|"; margin: 0 .05em 0 .5em; font-weight: 400; color: var(--rule-2); }
.kicker a { display: inline-block; padding: 3px 0; color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kicker .rg { color: var(--muted); }
.section-h {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px;
  margin: 30px 0 0; padding-top: 6px; border-top: 2px solid var(--ink);
}
.section-h h2 { margin: 6px 0; font: 700 1.25rem/1.2 var(--serif); letter-spacing: -.005em; }
.muted { color: var(--muted); }
.fine { margin: 10px 0 0; font: 500 .75rem/1.45 var(--sans); color: var(--muted); }
.ok { color: var(--deal-text); }
.bad { color: var(--red-text); }
.empty { padding: 48px 16px; text-align: center; list-style: none; font: 400 1.0625rem/1.5 var(--serif); color: var(--muted); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 12px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.empty .btn { margin-top: 6px; }

/* ---- skeleton ---- */
.skeleton div { height: 14px; margin: 0 0 12px; background: var(--paper-2); animation: fade 1.2s ease-in-out infinite alternate; }
.skeleton div:nth-child(1) { height: auto; aspect-ratio: 16 / 9; margin-bottom: 18px; }
.skeleton div:nth-child(2) { height: 30px; width: 94%; }
.skeleton div:nth-child(3) { height: 30px; width: 68%; margin-bottom: 18px; }
.skeleton div:nth-child(5) { width: 82%; }
@keyframes fade { to { opacity: .4; } }

/* ---- stories ---- */
.stories { list-style: none; margin: 0; padding: 0; }
.story { position: relative; padding: 14px 0 4px; border-bottom: 1px solid var(--rule); }
.story-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.story.noimg .story-main { grid-template-columns: minmax(0, 1fr); }
.story img { display: block; width: clamp(84px, 25vw, 132px); aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.hl { margin: 0; font: 600 1.1875rem/1.24 var(--serif); letter-spacing: -.004em; }
.hl a { color: var(--ink); text-decoration: none; }
.hl a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* the whole story opens the article; kicker links, coverage and buttons sit above that link */
.story .hl a::after, .ranked a::after { content: ""; position: absolute; inset: 0; }
.story .kicker, .story .also, .story .actions { position: relative; z-index: 1; }
.excerpt, .insight {
  margin: 6px 0 0; font: 400 .9375rem/1.45 var(--serif); color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.insight .badge { margin-right: 2px; padding: 0 4px; vertical-align: 1px; font-size: .625rem; }
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.meta { min-width: 0; margin: 6px 0 0; font: 500 .8125rem/1.5 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.meta time, .meta span { white-space: nowrap; }
.meta b { font-weight: 700; color: var(--ink-2); }
.meta > :not(:last-child)::after { content: "\00b7"; margin: 0 1px 0 6px; font-weight: 700; color: var(--muted); }
.meta .sev { margin-right: 8px; }
.meta .sev::after { display: none; }
.actions { display: flex; flex: none; margin-right: -10px; }
.actions .icon-btn { color: var(--muted); }
.actions .icon-btn svg { width: 19px; height: 19px; }
.actions .icon-btn[aria-pressed="true"] { color: var(--red-text); }
.actions .icon-btn[aria-pressed="true"] svg { fill: currentColor; }
.also { margin: 2px 0 0; font: 500 .8125rem/1.4 var(--sans); color: var(--muted); }
.also summary { display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font-weight: 700; color: var(--red-text); }
.also summary::-webkit-details-marker { display: none; }
.also summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.also[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.also ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 12px; border-left: 2px solid var(--rule); }
.also li { margin: 0; }
.also a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.also a:hover { text-decoration: underline; }
.also a b { color: var(--ink); }

/* lead story */
.story.lead { padding: 0 0 6px; }
.story.lead .story-main { display: flex; flex-direction: column; gap: 0; }
.story.lead img { order: -1; width: calc(100% + 2 * var(--gutter)); max-width: none; margin: -18px calc(-1 * var(--gutter)) 14px; aspect-ratio: 16 / 9; }
.story.lead .hl { font: 700 1.875rem/1.1 var(--serif); letter-spacing: -.018em; }
.story.lead .excerpt, .story.lead .insight { margin-top: 10px; font-size: 1.125rem; line-height: 1.45; -webkit-line-clamp: 4; }
.story.lead .kicker { font-size: .8125rem; }

/* wire: time column */
.story.wire { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 12px; padding-top: 12px; }
.story.wire > * { grid-column: 2; }
.story.wire > .stamp { grid-column: 1; grid-row: 1 / span 3; padding-top: 1px; font: 700 .8125rem/1.35 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.story.wire .hl { font-size: 1.0625rem; line-height: 1.28; }
.story.wire .excerpt, .story.wire .insight { font-size: .875rem; -webkit-line-clamp: 2; }
.story.wire img { width: 72px; }
.day-h {
  margin: 24px 0 0; padding: 0 0 6px; border-bottom: 2px solid var(--ink);
  font: 700 .75rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.wire > .day:first-child .day-h { margin-top: 6px; }

/* ---- status, trend, severity, sparkline ---- */
.st { --st: var(--st-quiet); }
.st-critical { --st: var(--st-critical); }
.st-high { --st: var(--st-high); }
.st-elevated { --st: var(--st-elevated); }
.st-watch { --st: var(--st-watch); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 700 .75rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.mk { display: inline-block; width: 9px; height: 9px; flex: none; background: var(--st); }
.st-quiet .mk, .mk.st-quiet { background: none; box-shadow: inset 0 0 0 1.5px var(--st); }
.trend { display: inline-flex; align-items: center; gap: 4px; font: 600 .8125rem/1.2 var(--sans); color: var(--muted); }
.trend i { font-style: normal; font-size: .75em; }
.trend.up { color: var(--red-text); }
.trend.down { color: var(--deal-text); }
.tone { font: 700 .6875rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.tone.crisis { color: var(--red-text); }
.tone.deal { color: var(--deal-text); }
.tone.mixed { color: var(--mixed); }
.sev { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.sev i { width: 3px; background: var(--paper-3); }
.sev i:nth-child(1) { height: 4px; } .sev i:nth-child(2) { height: 6px; } .sev i:nth-child(3) { height: 8px; } .sev i:nth-child(4) { height: 10px; } .sev i:nth-child(5) { height: 11px; }
.sev i.on { background: var(--crisis); }
.spark { display: flex; align-items: flex-end; gap: 2px; width: 64px; height: 22px; flex: none; }
.spark i { flex: 1; min-height: 2px; background: var(--st); }
.spark i.zero { background: var(--rule); }
.badge {
  display: inline-flex; align-items: center; padding: 2px 6px 1px; border: 1px solid var(--rule-2); border-radius: 2px; white-space: nowrap;
  font: 700 .6875rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.badge.ai { border-color: var(--ink); color: var(--ink); }

/* ---- front page ---- */
.front.cols-2, .front.cols-3 { display: grid; align-items: start; }
.front.cols-2, .front.cols-3 { column-gap: 24px; }
.front.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
.front.cols-3 { grid-template-columns: minmax(0, 1fr) minmax(300px, 330px) minmax(270px, 300px); }
.front .col + .col { padding-left: 24px; border-left: 1px solid var(--rule); min-height: 100%; }
.top-stories .stories .story:last-child { border-bottom: 0; }

.brief { margin: 26px 0 0; padding-top: 10px; border-top: 3px solid var(--ink); }
.brief-name { margin: 0; font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.brief-hl { margin: 6px 0 8px; font: 700 1.5rem/1.15 var(--serif); letter-spacing: -.012em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; font: 500 .8125rem/1.3 var(--sans); color: var(--muted); }
.byline .by { font-weight: 700; color: var(--ink); }
.bullets { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.bullets li { position: relative; padding: 12px 0 10px 28px; border-top: 1px solid var(--rule); counter-increment: b; }
.bullets li::before { content: counter(b); position: absolute; left: 0; top: 11px; font: 700 1.125rem/1.4 var(--serif); color: var(--red-text); }
.bullets p { margin: 0; font: 400 1.0625rem/1.5 var(--serif); }
.bullets .cites { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 2px; }
.cite { padding: 6px 0; font: 600 .75rem/1.2 var(--sans); color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.cite:hover { color: var(--ink); text-decoration-color: currentColor; }
.watch { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); font: 400 1.0625rem/1.5 var(--serif); }
.watch b { margin-right: 4px; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.disclaimer { margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.brief-actions .btn { min-height: 44px; padding: 8px 14px; font-size: .875rem; }

.box { margin: 28px 0 0; padding-top: 8px; border-top: 3px solid var(--ink); }
.box-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 10px; }
.box-h { margin: 4px 0 8px; font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.box-top .box-h { margin-bottom: 4px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fig { padding: 8px 8px 9px 0; min-width: 0; }
.fig + .fig { padding-left: 10px; border-left: 1px solid var(--rule); }
.fig b { display: block; font: 600 1.75rem/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.fig span { display: block; margin-top: 2px; font: 500 .75rem/1.25 var(--sans); color: var(--muted); }
.fig.hot b { color: var(--red-text); }
.mon-rows { list-style: none; margin: 0; padding: 0; }
.mon-row {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; grid-template-areas: "mk nm iv" ". st sp"; align-items: center; gap: 2px 10px;
  min-height: 54px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.mon-row:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.mon-row .mk { grid-area: mk; }
.mon-row .nm { grid-area: nm; font: 600 1.0625rem/1.2 var(--serif); }
.mon-row .iv { grid-area: iv; text-align: right; font: 700 1.125rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.mon-row small { grid-area: st; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font: 600 .6875rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mon-row small .trend { font-size: inherit; letter-spacing: inherit; }
.mon-row .spark { grid-area: sp; justify-self: end; width: 52px; height: 16px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--rule); counter-increment: r; }
.ranked li::before { content: counter(r); position: absolute; left: 0; top: 8px; font: 700 1.875rem/1 var(--serif); color: var(--red-text); }
.ranked a { font: 600 1rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.ranked a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ranked .meta { margin-top: 4px; font-size: .75rem; }
.tension-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.big-num { margin: 0; font: 600 2.5rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.big-num span { margin-left: 2px; font: 600 1rem/1 var(--sans); color: var(--muted); }
.mood { margin: 0; font: 600 1.0625rem/1.25 var(--serif); }
.gauge { position: relative; height: 4px; margin: 14px 0 6px; background: linear-gradient(90deg, var(--deal), var(--paper-3) 50%, var(--crisis)); }
.gauge i { position: absolute; top: -6px; width: 3px; height: 16px; background: var(--ink); transform: translateX(-50%); }
.gauge-legend { display: flex; justify-content: space-between; font: 700 .6875rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mini-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 48px; margin-top: 16px; }
.mini-chart div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 3px; }
.mini-chart i { display: block; min-height: 2px; background: var(--muted); opacity: .8; }
.mini-chart div:last-child i { background: var(--red); opacity: 1; }
.mini-chart span { text-align: center; font: 600 .625rem/1 var(--sans); color: var(--muted); }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.latest-list time { grid-row: span 2; font: 700 .75rem/1.6 var(--sans); color: var(--red-text); font-variant-numeric: tabular-nums; }
.latest-list a { font: 600 .9375rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.latest-list a::after { content: ""; position: absolute; inset: 0; }
.latest-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.latest-list .src { margin-top: 2px; font: 600 .6875rem/1.3 var(--sans); color: var(--muted); }
.nudge { border-top-color: var(--red); }
.nudge h2 { margin: 6px 0 6px; font: 700 1.375rem/1.15 var(--serif); letter-spacing: -.01em; }
.nudge p { margin: 0 0 12px; font: 400 1rem/1.45 var(--serif); color: var(--ink-2); }
.nudge .btn { width: 100%; }
.nudge .fine { margin: 8px 0 0; text-align: center; font: 500 .75rem/1.45 var(--sans); color: var(--muted); }
.ad { margin: 28px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); }
.ad-label { margin: 0 0 8px; font: 700 .625rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---- conflict monitor ---- */
.monitor-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.figures.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview .fig:nth-child(odd) { padding-left: 0; border-left: 0; }
.overview .fig:nth-child(n + 3) { border-top: 1px solid var(--rule); }
.map-card { margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.map-wrap { position: relative; background: var(--ocean); }
.map { width: 100%; height: auto; aspect-ratio: 2 / 1; touch-action: manipulation; }
.map .land { fill: var(--land); }
.map .dot { fill: var(--st); fill-opacity: .92; stroke: var(--paper); cursor: pointer; }
.map .ring { fill: none; stroke: var(--st); opacity: .7; animation: ping 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.map .label { fill: var(--ink); paint-order: stroke; stroke: var(--ocean); font-family: var(--sans); font-weight: 700; pointer-events: none; }
.map g:focus-visible { outline: none; }
.map g:focus-visible .dot { stroke: var(--focus); }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
.map-zoom { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); }
.map-zoom::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; background: none; white-space: nowrap; cursor: pointer; font: 600 .8125rem/1 var(--sans); color: var(--muted); }
.chip:first-child { padding-left: 0; }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--rule); font: 500 .75rem/1.3 var(--sans); color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 9px; height: 9px; background: var(--st); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 24px 0 0; border-bottom: 1px solid var(--rule); }
.tab { min-height: 44px; margin-bottom: -1px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; font: 700 .9375rem/1 var(--sans); color: var(--muted); }
.tab:first-child { padding-left: 0; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tab .n { margin-left: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.desk { list-style: none; margin: 0; padding: 0; }
.desk-head { display: none; }
.desk-row {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 14px;
  grid-template-areas: "status status status iv" "main main main iv" "trend n . spark";
  padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.desk-row:hover .c-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.c-status { grid-area: status; }
.c-main { grid-area: main; min-width: 0; }
.c-iv { grid-area: iv; align-self: start; text-align: right; }
.c-trend { grid-area: trend; align-self: center; }
.c-n { grid-area: n; align-self: center; font: 500 .8125rem/1.3 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-n b { margin-right: 4px; font-weight: 700; color: var(--ink); }
.c-spark { grid-area: spark; align-self: center; justify-self: end; }
.c-spark .spark { width: 72px; }
.c-name { display: block; margin-top: 2px; font: 600 1.25rem/1.2 var(--serif); }
.c-region { display: block; margin-top: 3px; font: 700 .6875rem/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.c-sum { margin-top: 6px; font: 400 .9375rem/1.45 var(--serif); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-latest { margin-top: 6px; font: 500 .8125rem/1.35 var(--sans); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-latest time { margin-right: 2px; font-weight: 700; color: var(--red-text); font-variant-numeric: tabular-nums; }
.c-iv b { font: 600 2rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.desk .empty { grid-column: 1 / -1; }

/* ---- conflict page ---- */
.conflict-head h1 { font-size: 2.375rem; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 0 0; }
.kpis { margin-bottom: 4px; }
.situation .section-h, .week .section-h { margin-top: 26px; }
.body-text { margin: 12px 0 0; font: 400 1.125rem/1.6 var(--serif); }
.outlook { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font: 400 1.0625rem/1.55 var(--serif); }
.outlook b { margin-right: 4px; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.devs { list-style: none; margin: 14px 0 0; padding: 0; }
.devs li { position: relative; padding: 12px 0 8px 18px; border-top: 1px solid var(--rule); }
.devs li::before { content: ""; position: absolute; left: 0; top: 20px; width: 7px; height: 7px; background: var(--st); }
.devs p { margin: 0; font: 400 1rem/1.5 var(--serif); }
.devs a { display: inline-block; padding: 6px 0; font: 600 .75rem/1.2 var(--sans); color: var(--muted); text-underline-offset: 3px; }
.chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 124px; margin-top: 14px; }
.chart div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; font: 600 .6875rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.chart i { display: block; width: 100%; min-height: 2px; background: var(--st); }
.signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.signals li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 9px 0; border-bottom: 1px solid var(--rule); font: 500 .8125rem/1.3 var(--sans); color: var(--muted); }
.signals i { font-style: normal; font-size: .75em; }
.signals b { font: 700 1.125rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.signals .up i { color: var(--red-text); }
.signals .down i { color: var(--deal-text); }
.dispatches .section-h { margin-top: 30px; }

/* ---- latest ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select, .filters input {
  height: 44px; min-width: 0; padding: 0 12px; border: 1px solid var(--muted); border-radius: 2px; background: var(--field);
  font: 500 1rem/1.2 var(--sans); color: var(--ink);
}
.filters input { flex: 1 1 12rem; }
.filters select { flex: 0 1 auto; max-width: 100%; }
.count { margin: 12px 0 0; font: 500 .8125rem/1.3 var(--sans); color: var(--muted); }
.more-btn {
  display: block; width: 100%; min-height: 48px; margin: 22px 0; border: 1px solid var(--ink); border-radius: 2px;
  background: none; cursor: pointer; font: 700 .9375rem/1.2 var(--sans); color: var(--ink);
}
.more-btn:hover { background: var(--paper-2); }

/* ---- more ---- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 54px; padding: 8px 0; border-bottom: 1px solid var(--rule); font: 500 1rem/1.35 var(--sans); }
.list a { padding: 6px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.list a:hover { text-decoration-color: currentColor; }
.prose p { margin: 12px 0; font: 400 1.0625rem/1.55 var(--serif); }
.prose p.fine { font: 500 .75rem/1.45 var(--sans); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: 2px; }
.seg button { min-height: 42px; padding: 0 14px; border: 0; background: none; cursor: pointer; font: 600 .875rem/1 var(--sans); color: var(--ink); }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.support-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.colophon { margin-top: 32px; text-align: center; }

/* ---- support ---- */
.support .page-head h1 { font-size: 2.375rem; }
.support .dek { font-size: 1.1875rem; }
.plans { display: grid; margin-top: 4px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 24px; border-top: 3px solid var(--ink); }
.plan + .plan { margin-top: 8px; }
.plan-supporter { border-top-color: var(--red); }
.plan h2 { margin: 0; font: 700 .875rem/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.price { margin: 0; font: 600 1rem/1 var(--sans); color: var(--muted); }
.price b { font: 700 2.75rem/1 var(--serif); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.blurb { margin: 0; font: 400 1.0625rem/1.45 var(--serif); color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; font: 500 .9375rem/1.4 var(--sans); }
.ticks li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 9px; height: 5px; border: solid var(--red-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan .btn { margin-top: auto; width: 100%; }
.plan:not(.plan-supporter):not(.plan-pro) .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan:not(.plan-supporter):not(.plan-pro) .btn:hover { background: var(--ink-2); }
.plan-pro { border-top-color: var(--pro); }
.plan-pro h2 { color: var(--pro-text); }
.plan-pro .btn { background: var(--pro); border-color: var(--pro); color: var(--on-pro); }
.plan-pro .btn:hover { background: var(--pro-dark); border-color: var(--pro-dark); }
.plan-pro .ticks li::before { border-color: var(--pro-text); }
.pay-note { margin-top: 24px; text-align: center; }

/* ---- World Pulse Pro: the PRO marker, Pro buttons and locked (encrypted) content ---- */
.pro-mark {
  display: inline-flex; align-items: center; padding: 2px 5px 1px; border-radius: 1px; background: var(--pro); color: var(--on-pro); white-space: nowrap;
  font: 700 .625rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: .15em;
}
.pro-mark.line { background: none; padding: 1px 4px 0; box-shadow: inset 0 0 0 1px var(--pro); color: var(--pro-text); }
.kicker .pro-mark, .hl .pro-mark, .box-h .pro-mark { margin-right: 6px; }
.btn.pro { background: var(--pro); border-color: var(--pro); color: var(--on-pro); }
.btn.pro:hover { background: var(--pro-dark); border-color: var(--pro-dark); }
/* A locked card shows its headline, a faded stand-in for the text and the unlock line. */
.locked { position: relative; }
.box.locked, .section-h.locked { border-top-color: var(--pro); }
.locked-body { position: relative; overflow: hidden; max-height: 7.5em; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); user-select: none; }
.redact { display: block; height: .7em; margin: .6em 0; background: var(--paper-3); }
.redact:nth-child(3n + 2) { width: 92%; }
.redact:nth-child(3n) { width: 74%; }
.unlock {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 0; padding: 12px 14px;
  background: var(--pro-wash); border-left: 3px solid var(--pro);
}
.unlock svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--pro-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unlock p { flex: 1 1 12rem; min-width: 0; margin: 0; font: 500 .9375rem/1.4 var(--serif); color: var(--ink); }
.unlock .btn { flex: 0 1 auto; min-height: 44px; padding: 8px 14px; font-size: .875rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); transform: translateX(-50%); z-index: 30;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 2px; background: var(--ink); color: var(--paper); font: 600 .875rem/1.3 var(--sans);
}

/* ---- wider screens ---- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .story.lead img { width: 100%; margin: 0 0 14px; }
  .story img { aspect-ratio: 4 / 3; }
  .story.wire img { aspect-ratio: 1; }
  .page-head h1 { font-size: 2.5rem; }
  .story.lead .hl { font-size: 2.25rem; }
  .figures.overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .overview .fig:nth-child(n) { padding-left: 10px; border-left: 1px solid var(--rule); border-top: 0; }
  .overview .fig:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 760px) {
  .plans { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .plan { padding: 16px 22px 24px; }
  .plan + .plan { margin-top: 0; border-left: 1px solid var(--rule); }
  .plan:first-child { padding-left: 0; }
  .plan:last-child { padding-right: 0; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { position: relative; padding-bottom: 0; }
  .masthead { position: relative; min-height: 0; padding: calc(env(safe-area-inset-top) + 22px) var(--gutter) 14px; border-bottom: 0; }
  .masthead .back, .masthead .brand { margin-left: max(0px, calc((100vw - var(--max)) / 2 - 4px)); }
  .masthead .refresh { margin-right: max(0px, calc((100vw - var(--max)) / 2 - 4px)); }
  .nameplate { font-size: 3.75rem; letter-spacing: -.025em; padding: 0 8px; }
  .dateline { justify-content: center; gap: 2px 14px; border-top: 1px solid var(--ink); }
  .dateline > :not(:first-child):not(.live) { padding-left: 14px; }
  .sections { position: sticky; top: 0; z-index: 15; padding: 0 var(--gutter); }
  .sections a:first-child { margin-left: auto; }
  .sections a:last-child { margin-right: auto; }
  .tabbar {
    position: absolute; inset: calc(env(safe-area-inset-top) + 32px) calc(max(var(--gutter), (100% - var(--max)) / 2) + 48px) auto auto;
    display: flex; gap: 2px; padding: 0; background: none; border: 0;
  }
  .tabbar a[data-tab="brief"], .tabbar a[data-tab="conflicts"], .tabbar a[data-tab="feed"] { display: none; }
  .tabbar a { flex-direction: row; gap: 6px; min-height: 44px; padding: 0 10px; font-size: .875rem; color: var(--ink-2); }
  .tabbar svg { width: 18px; height: 18px; }
  .tabbar a[aria-current="page"]::before { top: auto; bottom: 6px; left: 10px; right: 10px; width: auto; margin: 0; height: 2px; }
  .view { padding-top: 24px; padding-bottom: 56px; }
  .toast { bottom: 24px; }
  .page-head h1 { font-size: 2.75rem; }
  .conflict-head h1, .support .page-head h1 { font-size: 3rem; }
  .story.lead .hl { font-size: 2.5rem; }
  .story.lead .excerpt, .story.lead .insight { font-size: 1.1875rem; }
  .hl { font-size: 1.25rem; }
  .story.wire .hl { font-size: 1.125rem; }
  .top-stories .excerpt, .top-stories .insight { -webkit-line-clamp: 2; }
  .monitor-top { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); align-items: start; }
  .figures.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview .fig:nth-child(n) { padding-left: 10px; border-left: 1px solid var(--rule); }
  .overview .fig:nth-child(odd) { padding-left: 0; border-left: 0; }
  .overview .fig:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .overview .fig b { font-size: 2.5rem; }
  .desk { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content max-content; column-gap: 22px; }
  .desk > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
  .desk-head {
    padding: 14px 0 8px; border-bottom: 2px solid var(--ink);
    font: 700 .6875rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .desk-head span:nth-child(n + 3) { text-align: right; }
  .desk-head span:nth-child(5) { text-align: left; }
  .desk-row { grid-column: 1 / -1; grid-template-columns: 7rem minmax(0, 1fr) 5rem 4.5rem 8rem 5rem; grid-template-columns: subgrid; grid-template-areas: none; align-items: start; padding: 16px 0; }
  .desk-row > * { grid-area: auto; }
  .c-status { padding-top: 6px; }
  .c-n { align-self: start; padding-top: 4px; text-align: right; font-size: 1.125rem; }
  .c-n b { margin: 0; }
  .c-n .lbl { display: none; }
  .c-trend { align-self: start; padding-top: 6px; }
  .c-spark { align-self: start; padding-top: 4px; }
  .c-latest { -webkit-line-clamp: 1; }
  .conflict-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
  .conflict-grid .col-rail { margin-left: 32px; padding-left: 28px; border-left: 1px solid var(--rule); }
  .conflict-grid .situation .section-h { margin-top: 0; }
  .conflict-grid .week .section-h { margin-top: 26px; }
}

/* ---- docs page ---- */
body.docs { padding-bottom: 0; }
.doc-mast { position: sticky; }
.open-app { min-height: 40px; padding: 6px 12px; font-size: .8125rem; white-space: nowrap; }
.doc { max-width: 46rem; margin: 0 auto; padding: 24px var(--gutter) 64px; font: 400 1.0625rem/1.6 var(--serif); }
.doc h1 { margin: 8px 0 12px; padding-bottom: 14px; border-bottom: 3px double var(--ink); font: 700 2.5rem/1.08 var(--serif); letter-spacing: -.015em; }
.doc h2 { margin: 40px 0 10px; padding-top: 8px; border-top: 2px solid var(--ink); font: 700 1.5rem/1.2 var(--serif); }
.doc b { font-weight: 600; }
.doc code, .doc pre { font: 400 .8125rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); border-radius: 2px; -webkit-hyphens: none; hyphens: none; }
.doc code { padding: 1px 5px; overflow-wrap: anywhere; }
.doc pre { padding: 12px 14px; overflow-x: auto; border-left: 3px solid var(--rule-2); }
.doc pre code { padding: 0; background: none; }
.doc table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font: 500 .875rem/1.45 var(--sans); }
.doc th, .doc td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.doc td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.doc th { font: 700 .6875rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.doc a { color: var(--red-text); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .doc-mast { position: relative; padding-bottom: 18px; border-bottom: 3px double var(--ink); }
  .doc-mast .open-app { margin-right: max(0px, calc((100vw - var(--max)) / 2 - 4px)); }
  .doc { padding-top: 32px; }
  .doc h1 { font-size: 3rem; }
}
.tr-mark { color: var(--muted); font-style: italic; }
.tr-mark a { color: inherit; text-decoration: underline; }
.filters .only-lang { padding-left: 11px; }
.article { max-width: 46rem; }
.article .standfirst { font-size: 1.15rem; line-height: 1.5; }
.article-img { width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }
.article-body .body-text { font-family: var(--serif, Georgia, serif); font-size: 1.05rem; line-height: 1.65; margin: 0 0 1em; }
.story-theater { border: 1px solid var(--rule, currentColor); padding: 12px 16px; margin: 20px 0; }
.story-theater h2 { margin: 4px 0; font-size: 1.15rem; }
.article-original { margin: 28px 0 8px; font-size: .875rem; }
.article-original a { color: var(--muted); text-decoration: underline; }
