/* Measured Edition — the standard news app, played straight: serif headlines in a clean app layout,
   neutral white / near-black grounds, one crimson accent. See site/DESIGN.md. */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-ext.woff2") format("woff2");
  unicode-range: U+0100-017F, U+0218-021B, U+20B9;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-017F, U+0218-021B, U+20B9;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e9e9e9;
  --chip: #efefef;
  --chip-hover: #e4e4e4;
  --ink: #121212;
  --ink-2: #3d3d3d;
  --ink-3: #656565;
  --rule: #e3e3e3;
  --rule-strong: #c6c6c6;
  --accent: #c4122f;
  --accent-fill: #c4122f;
  --focus: #c4122f;
  --sel: rgb(196 18 47 / 0.16);
  --shade: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.08);
  --img-filter: none;
  --up: #0a7a3d;
  --down: #c4122f;

  --gutter: 16px;
  --r-pic: 10px;
  --r-thumb: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111111;
    --surface: #1b1b1b;
    --surface-2: #262626;
    --chip: #222222;
    --chip-hover: #2e2e2e;
    --ink: #f3f3f3;
    --ink-2: #cbcbcb;
    --ink-3: #9d9d9d;
    --rule: #2a2a2a;
    --rule-strong: #474747;
    --accent: #f25a66;
    --accent-fill: #d0283a;
    --focus: #f25a66;
    --sel: rgb(242 90 102 / 0.3);
    --shade: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 16px rgb(0 0 0 / 0.45);
    --img-filter: brightness(0.93);
    --up: #4cc27a;
    --down: #f25a66;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111;
  --surface: #1b1b1b;
  --surface-2: #262626;
  --chip: #222222;
  --chip-hover: #2e2e2e;
  --ink: #f3f3f3;
  --ink-2: #cbcbcb;
  --ink-3: #9d9d9d;
  --rule: #2a2a2a;
  --rule-strong: #474747;
  --accent: #f25a66;
  --accent-fill: #d0283a;
  --focus: #f25a66;
  --sel: rgb(242 90 102 / 0.3);
  --shade: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 16px rgb(0 0 0 / 0.45);
  --img-filter: brightness(0.93);
  --up: #4cc27a;
  --down: #f25a66;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: var(--rule-strong) transparent;
  scroll-padding-top: 64px;
}
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
}
::selection { background: var(--sel); color: inherit; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main { flex: 1 0 auto; }
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.visually-hidden {
  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: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.sample-banner {
  margin: 0; padding: 10px var(--gutter);
  background: var(--ink); color: var(--bg);
  font: 600 0.875rem/1.4 var(--sans); text-align: center;
}

/* ---------- shared controls ---------- */
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background-color 0.16s ease-out;
}
.icon-btn:hover { background: var(--chip); }
.icon-btn[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ink); font: 600 0.9375rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color 0.16s ease-out;
}
.btn:hover { background: var(--chip); }
.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 8px 12px 8px 6px; margin-left: -6px;
  border-radius: 999px;
  color: var(--ink); font: 600 0.9375rem/1 var(--sans); text-decoration: none;
  transition: background-color 0.16s ease-out;
}
.back:hover { background: var(--chip); }
.icon { flex: none; }

/* ---------- front masthead ---------- */
.masthead { padding-top: max(14px, env(safe-area-inset-top)); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  /* "Measured Edition" stays on one line: 34px from 354px wide, scaling to ~31px at 320px. */
  font: 700 clamp(1.75rem, 9.6vw, 2.125rem)/1 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark a, a.wordmark { color: var(--ink); text-decoration: none; }
.mast-sub {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-top: 8px; padding-bottom: 12px;
  font-size: 0.84375rem; line-height: 1.4; color: var(--ink-3);
}
.edition-line { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.edition-line strong { color: var(--ink); font-weight: 700; }
.edition-line > * + *::before { content: "·"; margin-right: 6px; color: var(--ink-3); }
.mast-links { display: flex; gap: 16px; flex: none; }
.mast-link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--rule-strong); text-underline-offset: 3px;
}
.mast-link:hover { text-decoration-color: currentColor; }
.date-long { display: none; }
@media (min-width: 600px) {
  .wordmark { font-size: 2.75rem; }
  .date-long { display: inline; }
  .date-short { display: none; }
  .mast-sub { font-size: 0.875rem; }
}

/* ---------- section tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.tabs-inner { position: relative; display: flex; align-items: center; }
.tabs-track {
  position: relative;
  display: flex; gap: 8px;
  flex: 1; min-width: 0;
  margin-inline: calc(-1 * var(--gutter));
  padding: 10px var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tabs-track::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font: 600 0.90625rem/1 var(--sans); white-space: nowrap; text-decoration: none;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}
.tab:hover { background: var(--chip-hover); }
.tab.is-active { background: var(--accent-fill); color: #fff; }
/* Edge fades say "there's more this way"; site.js sets .at-start / .at-end. */
.tabs-inner::before, .tabs-inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 56px;
  pointer-events: none; transition: opacity 0.18s ease-out;
}
.tabs-inner::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 30%, transparent);
}
.tabs-inner::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 30%, transparent);
}
.tabs.at-start .tabs-inner::before, .tabs.at-end .tabs-inner::after { opacity: 0; }
.tabs-arrow {
  position: absolute; top: 50%; z-index: 1;
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; margin-top: -16px;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  background: var(--bg); color: var(--ink); cursor: pointer;
  box-shadow: var(--shade);
  transition: opacity 0.18s ease-out;
}
.tabs-arrow[hidden] { display: none; }
.tabs-arrow--l { left: 6px; }
.tabs-arrow--r { right: 6px; }
.tabs.at-start .tabs-arrow--l, .tabs.at-end .tabs-arrow--r { opacity: 0; pointer-events: none; }
@media (min-width: 1240px) {
  .tabs-track { margin-inline: 0; padding-inline: 0; }
  .tabs-inner::before { left: var(--gutter); }
  .tabs-inner::after { right: var(--gutter); }
  .tabs-arrow--l { left: var(--gutter); }
  .tabs-arrow--r { right: var(--gutter); }
}

/* ---------- pictures ---------- */
.pic {
  position: relative; overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-pic);
  aspect-ratio: 16 / 9;
}
.pic img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
}
.r43 { aspect-ratio: 4 / 3; }
.r32 { aspect-ratio: 3 / 2; }
.r169 { aspect-ratio: 16 / 9; }
.r21 { aspect-ratio: 2 / 1; }
.pic--thumb, .pic--mini { aspect-ratio: 4 / 3; border-radius: var(--r-thumb); }
/* Placeholder: blank while the photo loads; names the section and outlet if there is none. */
.pic-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px; text-align: center;
  color: var(--ink-3); font-family: var(--sans);
  visibility: hidden;
}
.pic.is-empty .pic-card, .pic.is-broken .pic-card { visibility: visible; }
.pic-card-sec { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pic-card-src { font-size: 0.8125rem; }
.pic--thumb .pic-card-sec, .pic--mini .pic-card-sec { font-size: 0.6875rem; letter-spacing: 0.04em; }

/* ---------- story cards ---------- */
.card { position: relative; }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.card:has(.stretch:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.card:hover .stretch { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }

.hl { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.hl--lead { font-size: 1.75rem; line-height: 1.14; letter-spacing: -0.015em; }
.hl--feature { font-size: 1.4375rem; line-height: 1.18; letter-spacing: -0.01em; }
.hl--row { font-size: 1.125rem; line-height: 1.25; }
.summary {
  margin-top: 8px;
  font: 400 1.03125rem/1.5 var(--serif);
  color: var(--ink-2);
}

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
  margin-top: 10px; margin-left: -15px;
  clip-path: inset(-6px -6px -6px 15px);
  font: 400 0.8125rem/1.4 var(--sans); color: var(--ink-3);
}
/* Every item carries its own leading dot; the list is shifted left by one dot and clipped there,
   so a wrapped line never starts with a separator. */
.meta > *::before {
  content: "·"; display: inline-block; width: 15px; flex: none;
  text-align: center; color: var(--ink-3); font-weight: 400;
}
.meta-section { color: var(--accent); font-weight: 700; }
.developing { color: var(--accent); font-weight: 600; }
.developing .dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 5px;
  border-radius: 50%; background: currentColor; vertical-align: 1px;
}
/* Read marks (added by site.js): a tick, never a dimmed card. */
.state { display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 600; }
.state svg { flex: none; margin-right: 4px; }
.state.is-last { color: var(--ink-2); font-weight: 500; }

/* Lead */
.lead .pic { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
.card-text { padding-top: 14px; }

/* Rows: headline beside its thumbnail, then a summary of at most four lines, then meta. */
.rows > .row { padding: 16px 0; border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(100px, 28%, 150px);
  grid-template-areas: "hl pic" "sum sum" "meta meta";
  column-gap: 14px; align-items: start;
}
.row .hl { grid-area: hl; align-self: center; }
.row .pic--thumb { grid-area: pic; }
.row .summary {
  grid-area: sum; margin-top: 10px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.row .meta { grid-area: meta; }

/* Top stories */
.top-stories { padding-bottom: 8px; }
.top-stories .subs { margin-top: 18px; }

/* Sections */
.section { margin-top: 32px; scroll-margin-top: 60px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-top: 12px; margin-bottom: 14px;
  border-top: 2px solid var(--ink);
}
.section-title { font: 800 1.3125rem/1.2 var(--sans); letter-spacing: -0.01em; }
.section-count { font-size: 0.8125rem; color: var(--ink-3); }
.feature + .rows { margin-top: 18px; }

@media (min-width: 600px) {
  .lead .pic { margin-inline: 0; border-radius: var(--r-pic); }
  .hl--lead { font-size: 2.125rem; }
  .hl--feature { font-size: 1.625rem; }
  .hl--row { font-size: 1.1875rem; }
  .summary { font-size: 1.0625rem; }
  .card-text { padding-top: 16px; }
}
@media (min-width: 1024px) {
  .front { padding-top: 24px; }
  .top-stories {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 40px; align-items: start;
  }
  .top-stories.is-solo { grid-template-columns: minmax(0, 1fr); }
  .top-stories .subs { margin-top: 0; }
  .top-stories .subs > .row:first-child { border-top: 0; padding-top: 0; }
  .hl--lead { font-size: 2.5rem; }
  .section { margin-top: 48px; }
  .section-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 40px; align-items: start; }
  .section-body.is-solo { grid-template-columns: minmax(0, 7fr); }
  .feature + .rows { margin-top: 0; }
  .section-body > .rows > .row:first-child { border-top: 0; padding-top: 0; }
  .rows--more {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px;
    margin-top: 20px;
  }
  .rows--more.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- colophon ---------- */
.colophon {
  margin: 48px 0 8px; padding: 32px 0 8px;
  border-top: 2px solid var(--ink);
  text-align: center;
}
.colo-title { font: 700 1.625rem/1.2 var(--serif); }
.colo-sub { margin-top: 6px; font: 400 1.0625rem/1.5 var(--serif); color: var(--ink-2); }
.colo-due { margin-top: 4px; font-size: 0.875rem; color: var(--ink-3); }
.colo-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.colo-stats { max-width: 34em; margin: 20px auto 0; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 40px;
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
  background: var(--surface);
  font-size: 0.875rem; color: var(--ink-2);
}
.foot-grid { display: grid; gap: 14px; }
.foot-mark { font: 700 1.375rem/1 var(--serif); color: var(--ink); }
.foot-note { display: grid; gap: 8px; max-width: 40em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-nav a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .foot-grid { grid-template-columns: 200px 1fr auto; gap: 32px; align-items: start; }
}

/* ---------- top bar (articles, archive, 404) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}
.topbar-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  min-height: 56px;
}
.topbar-left { justify-self: start; min-width: 0; }
.topbar-right { justify-self: end; }
.wordmark--slim { font-size: clamp(1.25rem, 6.4vw, 1.5rem); }

/* ---------- article ---------- */
.article-wrap { max-width: calc(720px + 2 * var(--gutter)); }
.hero { margin-inline: calc(-1 * var(--gutter)); }
.hero .pic { border-radius: 0; view-transition-name: hero; }
.credit {
  padding: 6px var(--gutter) 0;
  font-size: 0.75rem; line-height: 1.4; color: var(--ink-3);
}
.credit a { color: inherit; text-underline-offset: 2px; }
.story-head { padding-top: 16px; }
.hl--story { font-size: 1.875rem; line-height: 1.12; letter-spacing: -0.02em; font-variation-settings: "opsz" 60; }
.dek { margin-top: 10px; font: 400 1.1875rem/1.45 var(--serif); color: var(--ink-2); }
.story-meta { margin-top: 14px; font-size: 0.84375rem; }
.place { color: var(--ink-2); font-weight: 600; }

.keyfacts {
  margin: 24px 0 26px; padding: 18px 20px;
  background: var(--surface); border-radius: 12px;
}
.box-title { font: 800 1.1875rem/1.25 var(--sans); color: var(--ink); }
.keyfacts ul { list-style: none; margin-top: 10px; display: grid; gap: 9px; }
.keyfacts li { position: relative; padding-left: 18px; font: 400 1.03125rem/1.45 var(--serif); }
.keyfacts li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.story-body p, .ctx p { font: 400 1.15625rem/1.65 var(--serif); margin-bottom: 1.05em; }
.story-body a, .ctx a, .keyfacts a, .framing a {
  color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em;
}
.story-body em { font-style: italic; }

.video { margin: 30px 0; }
.video-lite, .video-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; border: 0; border-radius: 12px; background: #000;
}
.video-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgb(0 0 0 / 0.72); color: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-lite:hover .video-play { transform: scale(1.06); }
.video-cap { display: grid; gap: 2px; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }
.video-title { color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.video-src .sep::before { content: "·"; margin: 0 6px; }

.ctx { margin-top: 30px; }
.sub-title { font: 800 1.1875rem/1.25 var(--sans); margin-bottom: 10px; }

.framing {
  margin: 34px 0; padding: 18px 20px 6px;
  border: 1px solid var(--rule-strong); border-radius: 12px;
}
.framing-note { margin-top: 6px; font-size: 0.84375rem; color: var(--ink-3); }
.framing dl { margin-top: 10px; }
.persp { padding: 14px 0; border-top: 1px solid var(--rule); }
.persp dt { font: 700 0.9375rem/1.3 var(--sans); }
.persp dd p { margin-top: 4px; font: 400 1.03125rem/1.5 var(--serif); color: var(--ink-2); }
.persp-outlets { font: 400 0.78125rem/1.4 var(--sans) !important; color: var(--ink-3) !important; margin-top: 6px !important; }

.sources { margin-top: 34px; }
.sources-note { font-size: 0.84375rem; color: var(--ink-3); margin-bottom: 8px; }
.sources ul { list-style: none; }
.source {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.source-main { min-width: 0; }
.source-outlet { display: block; font: 700 0.875rem/1.3 var(--sans); }
.source-title {
  display: block; margin-top: 2px;
  font: 400 0.96875rem/1.4 var(--serif); color: var(--ink-2);
  text-decoration-color: var(--rule-strong); text-underline-offset: 3px;
}
a.source-title:hover { text-decoration-color: currentColor; }
.lean { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.lean-scale { display: flex; gap: 4px; }
.lean-scale i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.lean-scale i.on { background: var(--ink); }
.lean-label { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }

.keep-reading { margin-top: 44px; }
.kr-block + .kr-block { margin-top: 32px; }
.kr-title { font: 800 1.1875rem/1.2 var(--sans); padding-top: 12px; border-top: 2px solid var(--ink); margin-bottom: 4px; }
.kr-block .rows > .row:first-child { border-top: 0; }
.back-foot { margin: 36px 0 8px; }
.back--foot {
  display: flex; justify-content: center; width: 100%; min-height: 48px; margin: 0;
  border: 1px solid var(--rule-strong);
}

@media (min-width: 600px) {
  .hero { margin: 20px 0 0; }
  .hero .pic { border-radius: var(--r-pic); }
  .credit { padding-inline: 0; }
  .story-head { padding-top: 22px; }
  .hl--story { font-size: 2.375rem; }
  .dek { font-size: 1.25rem; }
  .story-body p, .ctx p { font-size: 1.1875rem; }
}
@media (min-width: 1024px) {
  .hl--story { font-size: 2.75rem; }
}

/* ---------- archive & 404 ---------- */
.page-head { padding: 24px 0 4px; }
.page-title { font: 700 2rem/1.15 var(--serif); letter-spacing: -0.015em; }
.page-lede { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.days { list-style: none; padding: 0; margin: 0; }
.day { margin-top: 28px; }
.day-title { font: 800 1.0625rem/1.2 var(--sans); padding-top: 10px; border-top: 2px solid var(--ink); }
.day-editions { list-style: none; }
.ed-card {
  display: grid; grid-template-columns: clamp(104px, 30%, 160px) minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.day-editions > li:first-child .ed-card { border-top: 0; }
.ed-name { font: 700 1.1875rem/1.25 var(--serif); }
.ed-latest {
  display: inline-block; margin-left: 8px; padding: 2px 8px; vertical-align: 2px;
  border-radius: 999px; background: var(--accent-fill); color: #fff;
  font: 700 0.6875rem/1.4 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
}
.ed-card .meta { margin-top: 4px; }
.ed-lead { margin-top: 6px; font: 400 0.96875rem/1.45 var(--serif); color: var(--ink-2); }
.notfound { padding: 40px 0 8px; }
.nf-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.nf-links a {
  display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.nf-links a:hover { background: var(--chip); }

/* ---------- motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
::view-transition-group(hero) { animation-duration: 0.34s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(hero), ::view-transition-new(hero) { height: 100%; object-fit: cover; }

/* ---------- data panels: weather, markets, AI & software, entertainment ---------- */
.panel { margin-bottom: 8px; }
.panel + .section-body, .section-body + .panel, .rows--more + .panel { margin-top: 28px; }
.panel-title { font: 800 1.1875rem/1.25 var(--sans); color: var(--ink); margin-bottom: 4px; }
.panel-note { margin-top: 14px; font: 400 0.8125rem/1.45 var(--sans); color: var(--ink-3); max-width: 70ch; }
.panel h4 { font-weight: 700; }

/* weather */
.wx-list { list-style: none; }
.wx-city {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem; gap: 0 14px; align-items: center;
  padding: 13px 0; border-top: 1px solid var(--rule);
}
.wx-city:first-child { border-top: 0; }
.wx-name h4 { font: 700 1.0625rem/1.25 var(--sans); }
.wx-name p { margin-top: 2px; font: 400 0.84375rem/1.4 var(--sans); color: var(--ink-3); }
.aqi.is-bad { color: var(--accent); font-weight: 600; }
.wx-icon { color: var(--ink-2); }
.wx-temps { text-align: right; font: 400 1rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.wx-temps .hi { font: 700 1.375rem/1 var(--sans); color: var(--ink); }
.wx-temps .lo { display: block; margin-top: 3px; color: var(--ink-3); }
.sat { margin-top: 22px; }
.sat-frame { position: relative; border-radius: var(--r-pic); overflow: hidden; background: #0b0b0b; aspect-ratio: 800 / 775; }
.sat-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sat-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.sat-mark circle { fill: #fff; stroke: #111; stroke-width: 3; }
.sat-mark text {
  font: 700 26px/1 var(--sans); fill: #fff;
  paint-order: stroke; stroke: rgb(0 0 0 / 0.75); stroke-width: 6px; stroke-linejoin: round;
}
.sat figcaption { margin-top: 8px; font: 400 0.8125rem/1.45 var(--sans); color: var(--ink-3); }
.sat .credit { padding: 0; display: inline; }

/* markets: one full-width tile per quote on phones, so every chart is big enough to read */
.mk-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mk { display: flex; flex-direction: column; padding: 14px 16px 12px; background: var(--surface); border-radius: 12px; min-width: 0; }
.mk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.mk-name { font: 700 1rem/1.3 var(--sans); color: var(--ink); }
.mk-per { font-weight: 400; font-size: 0.875rem; color: var(--ink-3); white-space: nowrap; }
.mk-when { font: 400 0.8125rem/1.3 var(--sans); color: var(--ink-3); white-space: nowrap; }
.mk-value { margin-top: 4px; font: 700 1.625rem/1.15 var(--sans); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.mk-moves { display: grid; gap: 3px; margin-top: 8px; }
.mk-move { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mk-move dt { font: 400 0.84375rem/1.35 var(--sans); color: var(--ink-3); }
.mk-move dd { font: 600 0.90625rem/1.35 var(--sans); color: var(--ink-2); text-align: right; white-space: nowrap; }
.mk-move dd.is-up { color: var(--up); }
.mk-move dd.is-down { color: var(--down); }
.mk-pct { font-weight: 700; }
.mk-fig { margin-top: 12px; }
.mk-plot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.mk-chart { display: block; width: 100%; height: 88px; overflow: visible; color: var(--ink-2); }
.mk-area { fill: currentColor; opacity: 0.07; }
.mk-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mk-base { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.mk-dot { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.mk-axis { display: flex; flex-direction: column; justify-content: space-between; min-width: 3.5em; font: 400 0.75rem/1 var(--sans); color: var(--ink-3); text-align: right; }
.mk-dates { display: flex; justify-content: space-between; margin-top: 6px; padding-right: calc(3.5em + 10px); font: 400 0.75rem/1 var(--sans); color: var(--ink-3); }
.mk-src { margin-top: auto; padding-top: 8px; font: 400 0.75rem/1.3 var(--sans); color: var(--ink-3); }

/* AI & software lists */
.tl + .tl { margin-top: 26px; }
.tl ul { list-style: none; }
.tl-item { padding: 13px 0; border-top: 1px solid var(--rule); }
.tl .panel-title + ul .tl-item:first-child { border-top: 0; }
.tl-item h4 { font: 700 1rem/1.3 var(--sans); overflow-wrap: anywhere; }
.tl-item h4 a, .song-text a, .film a { text-decoration: none; color: var(--ink); }
.tl-item h4 a:hover, .song-text a:hover, .film a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-what { margin-top: 4px; font: 400 1rem/1.5 var(--serif); color: var(--ink-2); }
.tl-item .meta { margin-top: 6px; }
.tl-item .meta a { color: inherit; text-underline-offset: 3px; }

/* entertainment: charts and films */
.chart + .chart { margin-top: 18px; }
.chart-name { font: 600 0.875rem/1.3 var(--sans); color: var(--ink-3); margin: 10px 0 2px; }
.songs { list-style: none; }
.song { display: grid; grid-template-columns: 1.75rem 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.songs .song:first-child { border-top: 0; }
.songs-more .songs .song:first-child { border-top: 1px solid var(--rule); }
.song-rank { font: 700 0.9375rem/1 var(--sans); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.song-art { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.song-art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.song-text { display: flex; flex-direction: column; min-width: 0; }
.song-text a { font: 600 0.96875rem/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-artist { font: 400 0.84375rem/1.35 var(--sans); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.songs-more summary {
  display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; padding: 0 16px;
  border-radius: 999px; background: var(--chip); font: 600 0.875rem/1 var(--sans); cursor: pointer; list-style: none;
}
.songs-more summary::-webkit-details-marker { display: none; }
.songs-more summary:hover { background: var(--chip-hover); }
.songs-more[open] summary { display: none; }
.films { margin-top: 26px; }
.film-list { list-style: none; }
.film-list li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.film-list li:first-child { border-top: 0; }
.film-list time { font: 600 0.8125rem/1.3 var(--sans); color: var(--ink-3); }
.film-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.film-title a { font: 600 0.96875rem/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.film-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.film-lang { font: 400 0.8125rem/1.3 var(--sans); color: var(--ink-3); }
.film-strip { position: relative; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px 0 10px; scrollbar-width: thin; }
.film { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.film-poster { position: relative; display: block; aspect-ratio: 2 / 3; margin-bottom: 4px; border-radius: var(--r-thumb); overflow: hidden; background: var(--surface-2); }
.film-poster img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.film-noposter { display: flex; align-items: flex-end; height: 100%; padding: 10px; font: 600 0.875rem/1.25 var(--sans); color: var(--ink-3); }
.film-play { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(0 0 0 / 0.72); color: #fff; transition: transform 0.15s ease; }
.film-poster--play:hover .film-play { transform: scale(1.08); }
.film .film-name { font: 600 0.9375rem/1.3 var(--sans); }
.film-meta { font: 400 0.8125rem/1.35 var(--sans); color: var(--ink-3); }
.film .film-trailer { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 2px; padding: 4px 0; font: 600 0.8125rem/1.2 var(--sans); color: var(--accent); }
.film .film-trailer:hover { text-decoration: underline; text-underline-offset: 3px; }
.yt-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.yt-dialog::backdrop { background: rgb(0 0 0 / 0.86); }
.yt-box { position: relative; }
.yt-slot { aspect-ratio: 16 / 9; border-radius: var(--r-thumb); overflow: hidden; background: #000; }
.yt-slot .video-frame { display: block; width: 100%; height: 100%; border: 0; }
.yt-close { position: absolute; right: -6px; bottom: calc(100% + 6px); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.yt-close:hover { background: rgb(255 255 255 / 0.14); }
.yt-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .film-play { transition: none; } }

@media (min-width: 600px) {
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .chart-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .chart + .chart { margin-top: 0; }
  .film-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}
@media (min-width: 1024px) {
  .panel--weather { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 40px; align-items: start; }
  .panel--weather.is-solo { grid-template-columns: minmax(0, 1fr); }
  .panel--weather .sat { margin-top: 0; }
  .panel--weather .panel-note { grid-column: 1; }
  .wx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .wx-city:nth-child(2) { border-top: 0; }
  .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-chart { height: 76px; }
  .tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  .tl + .tl { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */
@media print {
  .tabs, .topbar, .theme-toggle, .keep-reading, .back-foot, .site-foot, .skip, .video { display: none !important; }
  body { background: #fff; color: #000; }
}
