/* ==========================================================================
   BytePress — "Signal" design system
   A fresh, mobile-first news product. Built by hand: no build step, no
   framework. Everything is driven by custom properties so light and dark
   are one set of components with two palettes.
   ========================================================================== */

/* ---------- 0. Typefaces ---------- */

/* Headings: PT Sans, the humanist grotesque with the unmistakable
   open counters. Body and interface: Fira Sans, drawn for screens and
   listed by its designer for exactly this job. Both are self-hosted
   latin subsets, so no reader's browser talks to a font CDN. */

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-latin-700-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fira-sans-latin-400-italic.woff2') format('woff2');
}

/* ---------- 1. Tokens ---------- */

:root {
  color-scheme: light;

  --font-display: 'PT Sans', 'Fira Sans', system-ui, sans-serif;
  --font-sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --step--2: 0.68rem;
  --step--1: 0.78rem;
  --step-0: 0.97rem;
  --step-1: 1.12rem;
  --step-2: 1.34rem;
  --step-3: 1.62rem;
  --step-4: 2.05rem;
  --step-5: 2.6rem;
  --step-6: 3.4rem;

  --paper: #f4f0e7;
  --paper-deep: #ebe5d7;
  --surface: #fffdf8;
  --surface-2: #f0ebdf;
  --surface-3: #e5ddcc;
  --surface-inverse: #0e3b2e;
  --ink: #12160f;
  --ink-1: #3e463a;
  /* 4.78:1 on the paper surface; the previous #6d7466 sat at 4.25 and failed
     WCAG AA for standfirsts, timestamps and the RSS link. */
  --ink-2: #656c5e;
  --ink-3: #949a8c;
  --line: #ddd4c2;
  --line-soft: #e9e2d4;
  --line-strong: #12160f;

  --brand: #0e3b2e;
  --brand-soft: #d9e6dd;
  --brand-ink: #f6f2ea;
  --accent: #ff5a1f;
  --accent-ink: #1c0a03;
  --accent-soft: #ffe4d6;
  /* Small accent text on paper: the raw orange is only 3.07:1. */
  --accent-text: #b03e12;
  --live: #d7263d;
  --live-soft: #ffe0e3;
  /* Small live type needs its own shade: #d7263d on the soft chip is 4.02:1. */
  --live-ink: #b8142b;
  --premium: #9a6100;
  --premium-ink: #fffaf2;

  --tone-1: #0e3b2e;
  --tone-2: #1f5f8b;
  /* Kicker text in this tone was 4.35:1 on paper; a shade darker clears AA. */
  --tone-3: #a34a17;
  --tone-4: #5c46a8;
  --tone-5: #a3275a;
  --tone-6: #4b6b2b;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --pill: 999px;

  --gutter: 1rem;
  --shell: 78rem;
  --story-width: 42rem;
  --shadow: 0 26px 50px -36px rgba(18, 22, 15, 0.5);
  --shadow-soft: 0 10px 30px -24px rgba(18, 22, 15, 0.4);
  --transition: 160ms cubic-bezier(0.2, 0, 0, 1);
  --tabbar-h: 4.5rem;
  --sticky-chrome: 6.6rem;

  /* Compatibility aliases: older templates still ask for these names in
     inline styles. They point at the new palette so nothing renders unstyled. */
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --ink-0: var(--ink);
  --surface-0: var(--paper);
  --surface-1: var(--surface);
  --shadow-md: var(--shadow-soft);
  --width-story: 42rem;
  --width-prose: 42rem;
  --width-page: 78rem;
  --width-rail: 18rem;
  --radius-xl: 34px;
}

[data-mode='dark'] {
  color-scheme: dark;

  --paper: #0b100d;
  --paper-deep: #0f1511;
  --surface: #141c17;
  --surface-2: #1a241d;
  --surface-3: #233026;
  --surface-inverse: #e8efe7;
  --ink: #f2efe4;
  --ink-1: #c7ccbf;
  --ink-2: #98a190;
  --ink-3: #737c6d;
  --line: #2b362d;
  --line-soft: #212b23;
  --line-strong: #e9e6da;

  --brand: #9fe0c4;
  --brand-soft: #17362a;
  --brand-ink: #08130e;
  --accent: #ff7a4d;
  --accent-ink: #1b0b04;
  --accent-soft: #3a2016;
  --accent-text: #ff9a6e;
  --live: #ff5f74;
  --live-soft: #3a1720;
  --live-ink: #ff8a99;
  --premium: #e9b45d;
  /* Dark paper flips the premium gold light; white badge text was 1.88:1. */
  --premium-ink: #1c1204;

  --tone-1: #7fd3b4;
  --tone-2: #8dc5ea;
  --tone-3: #f0a36d;
  --tone-4: #bcabf2;
  --tone-5: #ef9ab8;
  --tone-6: #b3d18b;

  --shadow: 0 30px 60px -38px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 12px 34px -26px rgba(0, 0, 0, 0.8);
}

/* ---------- 2. Reset and base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

figure {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Utilities ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: var(--pill);
  font-size: var(--step--1);
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-2);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

.mt-1 { margin-top: 0.35rem; }
.mt-2 { margin-top: 0.65rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.75rem; }
.mb-1 { margin-bottom: 0.35rem; }
.mb-2 { margin-bottom: 0.65rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.75rem; }
.m-0 { margin: 0 !important; }

.eyebrow,
.story__kicker,
.hub-eyebrow,
.footer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.story__kicker {
  color: var(--tone, var(--accent));
  /* A 17px-tall link is below the 24px touch-target minimum. */
  min-height: 1.5rem;
}

.story__kicker-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.story__kicker-sep,
.story__kicker-kind {
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.meta-icon {
  flex: none;
  vertical-align: -0.15em;
}

.meta-time {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge--xs {
  padding: 0.05rem 0.35rem;
  font-size: 0.62rem;
}

.badge--live {
  background: var(--live);
  color: #fff;
}

.badge--developing {
  background: var(--accent);
  color: var(--accent-ink);
}

.badge--premium {
  background: var(--premium);
  color: var(--premium-ink);
}

.badge--duration {
  background: rgba(8, 12, 9, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.badge--subtle,
.badge--topic {
  background: transparent;
  border: 1px solid var(--line);
}

.badge--verified {
  background: var(--brand);
  color: var(--brand-ink);
}

.pulse-beacon {
  position: relative;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.7;
  animation: beacon 2s ease-out infinite;
}

@keyframes beacon {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.btn--danger {
  border-color: var(--live);
  color: var(--live);
}

.btn--danger:hover {
  background: var(--live);
  color: #fff;
}

.btn--sm,
.btn--small {
  padding: 0.5rem 0.8rem;
  font-size: var(--step--2);
}

.btn--xs {
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
}

.btn--full {
  width: 100%;
}

.btn--subscribe {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  padding-inline: 0.95rem;
}

.btn--subscribe:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Cards and panels */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.panel + .panel {
  margin-top: 0.9rem;
}

.panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.panel__title,
.section-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: -0.01em;
}

/* A panel title introduces what follows, so it gets its own space; a title in
   a panel header is already spaced by the header rule. */
.panel__title {
  margin-bottom: 0.7rem;
}

.panel__header .panel__title {
  margin-bottom: 0;
}

.panel > * + .story__meta {
  margin-top: 0.6rem;
}

/* A panel title introduces whatever follows it, so it needs its own space; a
   title inside a panel header is already spaced by the header rule. */
.panel__title {
  margin-bottom: 0.7rem;
}

.panel__header .panel__title {
  margin-bottom: 0;
}

.panel > * + .story__meta {
  margin-top: 0.6rem;
}

/* Front-page live wire: a narrow timeline, newest post first. */
.panel--live-feed .panel__header {
  align-items: center;
}

.panel--live-feed .panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.panel__more {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.panel__more:hover {
  color: var(--accent);
}

.live-feed {
  position: relative;
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-feed::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 1px;
  background: var(--line);
}

.live-feed__item {
  position: relative;
}

.live-feed__link {
  display: block;
  padding: 0.55rem 0 0.6rem 1.2rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

.live-feed__link::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1rem;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.live-feed__item:first-child .live-feed__link::before {
  background: var(--accent);
  animation: bp-live-dot 2200ms ease-in-out infinite;
}

.live-feed__link:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.live-feed__meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.live-feed__meta time {
  color: var(--accent-text);
  font-weight: 700;
}

.live-feed__desk {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-feed__text {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-1);
}

@keyframes bp-live-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  60% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .live-feed__item:first-child .live-feed__link::before {
    animation: none;
  }
}

.panel--editorial {
  padding: 1.1rem 1.1rem 1.2rem;
}

/* Shared header for cards that pair a title with a control cluster. */
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.card-head > * {
  min-width: 0;
}

.card-head .cluster {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notice {
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--ink-1);
  font-size: var(--step--1);
}

.flash {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: var(--step--1);
  margin-bottom: 1rem;
}

.flash--warning,
.error-list {
  border-left: 3px solid var(--live);
  background: var(--live-soft);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: var(--step--1);
}

.error-list {
  margin-bottom: 1rem;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-2);
}

/* Forms */

.field {
  margin-bottom: 1rem;
}

.field__label,
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-1);
}

.field__required {
  color: var(--live);
}

.field__hint {
  display: block;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}

.field__error {
  display: block;
  color: var(--live);
  font-size: var(--step--1);
  margin-top: 0.25rem;
}

.field__input,
.field__textarea,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='url'],
input[type='number'],
input[type='tel'],
input[type='date'],
input[type='datetime-local'],
input[type='month'],
input[type='time'],
input[type='week'],
input[type='file'],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input:focus,
.field__textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.field__textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Native pickers and file controls. Chrome paints these with its own chrome
   (white field, blue-grey button, OS glyph) unless the control is styled, so
   they carry the same paper, rule and pill language as every text field. */

input[type='date'],
input[type='datetime-local'],
input[type='month'],
input[type='time'],
input[type='week'] {
  min-height: 2.85rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

input[type='date']::-webkit-datetime-edit,
input[type='datetime-local']::-webkit-datetime-edit,
input[type='month']::-webkit-datetime-edit,
input[type='time']::-webkit-datetime-edit,
input[type='week']::-webkit-datetime-edit {
  color: var(--ink);
  padding: 0;
}

input[type='date']::-webkit-datetime-edit-fields-wrapper,
input[type='datetime-local']::-webkit-datetime-edit-fields-wrapper,
input[type='month']::-webkit-datetime-edit-fields-wrapper,
input[type='time']::-webkit-datetime-edit-fields-wrapper,
input[type='week']::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

input[type='date']::-webkit-calendar-picker-indicator,
input[type='datetime-local']::-webkit-calendar-picker-indicator,
input[type='month']::-webkit-calendar-picker-indicator,
input[type='time']::-webkit-calendar-picker-indicator,
input[type='week']::-webkit-calendar-picker-indicator {
  padding: 0.18rem;
  margin-inline-start: 0.3rem;
  border-radius: 6px;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
}

input[type='date']::-webkit-calendar-picker-indicator:hover,
input[type='datetime-local']::-webkit-calendar-picker-indicator:hover,
input[type='month']::-webkit-calendar-picker-indicator:hover,
input[type='time']::-webkit-calendar-picker-indicator:hover,
input[type='week']::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: var(--surface-2);
}

input[type='file'] {
  padding: 0.4rem;
  cursor: pointer;
}

input[type='file']::file-selector-button {
  margin-inline-end: 0.7rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

input[type='file']::file-selector-button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

input[type='file']:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* The date/time text inside a disabled or read-only control should recede,
   not keep the same weight as an editable field. */
input:disabled,
input[readonly] {
  color: var(--ink-2);
  cursor: not-allowed;
}

.field-row {
  display: grid;
  gap: 0.9rem;
}


.fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

/* Breadcrumbs and pagination */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs__sep {
  opacity: 0.5;
}

.breadcrumbs__current {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagination {
  margin-top: 2rem;
  font-size: var(--step--1);
}

.pagination nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pagination a,
.pagination span,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding-inline: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font: inherit;
  color: inherit;
}

.pagination button:disabled {
  opacity: 0.45;
}

.pagination a:hover,
.pagination button:not(:disabled):hover {
  border-color: var(--ink-2);
}

.pagination .active span,
.pagination [aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Prose */

.prose {
  font-family: var(--font-read);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-1);
}

.article-page .prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.1em 0.1em 0 0;
  font-family: var(--font-display);
  font-size: 3em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--ink);
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-style: normal;
  color: var(--ink-2);
}

.subhead {
  margin: 2.2rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Reading progress */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width 80ms linear;
}

.progress-line {
  position: fixed;
  inset: 0 0 auto;
  z-index: 400;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* Livewire's own bar for SPA navigation: the same accent as everything else,
   and no spinner — the 2px line already says the next page is on its way. */
:root {
  --livewire-progress-bar-color: var(--accent);
}

#nprogress .spinner {
  display: none;
}

#nprogress .bar {
  height: 2px;
}

/* Page-transition loader. It fades in the moment a wire:navigate swap starts,
   holds long enough to be read, and sits above the sticky header without
   blocking taps. */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1), visibility 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-loader__inner {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  transform: translateY(8px) scale(0.97);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 260ms ease;
  opacity: 0;
}

.page-loader.is-visible .page-loader__inner {
  transform: none;
  opacity: 1;
}

.page-loader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
}

.page-loader__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-top-color: var(--accent);
  animation: bp-loader-spin 900ms linear infinite;
}

.page-loader__mark::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.page-loader__mark img {
  width: 34px;
  height: 34px;
  animation: bp-loader-pulse 1600ms ease-in-out infinite;
}

.page-loader__text {
  /* The loader is the first thing a reader sees, so it wears the paper's own
     display face instead of the mono label type: bold, a touch larger, and
     tracked wide enough to read as a masthead plate over the sweep bar. */
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  /* Tracking is added after the last letter, so nudge the line by half of it
     to keep the word optically centred over the sweep bar. */
  text-indent: 0.07em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

.page-loader__text::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin: 0.6rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: bp-loader-sweep 1200ms linear infinite;
}

@keyframes bp-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes bp-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes bp-loader-sweep {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader.is-visible {
    transition: opacity 320ms linear, visibility 320ms linear;
  }

  .page-loader__inner {
    transform: none;
    transition: opacity 320ms linear;
  }

  .page-loader__mark::before,
  .page-loader__mark img,
  .page-loader__text::after {
    animation: none;
  }

  .page-loader__text::after {
    background: var(--accent);
    opacity: 0.6;
  }
}

/* Pull to refresh ribbon. The gesture writes the pulled distance into --ptr,
   so the pill follows the finger and its ring fills as the threshold nears. */

.ptr {
  position: fixed;
  top: 0.55rem;
  left: 50%;
  z-index: 350;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 1rem + var(--ptr, 0px)));
  transition: transform 120ms ease-out;
}

.ptr[hidden] {
  display: none;
}

.ptr__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  transform: rotate(calc(var(--ptr, 0px) * 3.2));
}

.ptr__dot {
  display: none;
}

.ptr[data-ready='true'] .ptr__track {
  border-color: var(--accent);
}

.ptr[data-ready='true'] .ptr__label {
  color: var(--accent);
}

.ptr[data-ready='loading'] .ptr__track {
  animation: ptr-spin 0.7s linear infinite;
}

@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptr[data-ready='loading'] .ptr__track {
    animation-duration: 1.6s;
  }
}

/* ---------- 4. Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  /* The mark is a square tile. Pinning the ratio and containing the drawing
     means a stray height can never crop an edge of the logo. */
  aspect-ratio: 1 / 1;
  object-fit: contain;
  /* The tile's corners are drawn in the SVG; clipping them again here gave the
     mark a second, softer radius. */
  border-radius: 0;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* A line-height of 1 gave the display face no leading, so the descenders of
     "BytePress" spilled out of the line box and the tagline was drawn over
     them. The glyphs need their own box before anything can sit under them. */
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.brand__tagline {
  display: none;
  margin-top: 0.22rem;
  font-size: 0.56rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  /* On a mid-width screen the line must truncate rather than push the actions
     out of the masthead. */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--line);
}

.icon-btn__label {
  display: none;
}

.mode-icon--moon {
  display: none;
}

[data-mode='dark'] .mode-icon--sun {
  display: none;
}

[data-mode='dark'] .mode-icon--moon {
  display: block;
}

.topbar__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--pill);
  background: var(--live-soft);
  color: var(--live-ink);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__live-text {
  display: inline;
}

.topbar__actions .btn--subscribe {
  display: none;
}

/* Phones carry the wordmark and four actions in one row. The wordmark is the
   thing that must not be broken, so it scales with the viewport and the
   duplicate search button gives way to the tab bar's Search tab. */
@media (max-width: 719px) {
  .brand__name {
    /* 6.6vw keeps "BytePress" inside its box down to a 320px screen; the
       clamp stops it growing past the desktop size on a large phone. */
    font-size: clamp(1.45rem, 6.6vw, 1.75rem);
    white-space: nowrap;
  }

  .topbar__search {
    display: none;
  }
}

/* The pills stay their drawn size so the masthead keeps two compact rows, but
   their hit area reaches a thumb: 31px of ink, 44px of target. */
@media (max-width: 719px) {
  .nav__link,
  .topbar__live,
  .share__action {
    position: relative;
  }

  .nav__link::after,
  .topbar__live::after,
  .share__action::after {
    content: '';
    position: absolute;
    inset: -7px -1px;
  }
}

@media (max-width: 359px) {
  .brand__mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .topbar__actions {
    gap: 0.15rem;
  }

  .icon-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .topbar__live-text {
    display: none;
  }
}

/* Section rail */

.nav-wrap {
  border-top: 1px solid var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__inner > nav {
  min-width: 0;
  flex: 1;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav__inner > nav::-webkit-scrollbar {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-block: 0.5rem;
  white-space: nowrap;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--pill);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-1);
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav__link[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}

.nav__link--live {
  color: var(--live-ink);
}

.nav__link--live[aria-current='page'] {
  background: var(--live);
  color: #fff;
}

.nav__meta {
  display: none;
  align-items: center;
  gap: 0.9rem;
  flex: none;
  font-size: var(--step--2);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.nav__meta-link:hover {
  color: var(--ink);
}

/* Breaking wire */

.ticker {
  background: var(--accent);
  color: var(--accent-ink);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.35rem;
  padding-block: 0.4rem;
}

.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.24rem 0.55rem;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--step--2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: ticker-flash 2.4s ease-in-out infinite;
}

.ticker__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  animation: ticker-dot 1.2s steps(2, end) infinite;
}

@keyframes ticker-flash {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
  }
}

@keyframes ticker-dot {
  50% {
    opacity: 0.25;
  }
}

.ticker__list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
  scrollbar-width: none;
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1;
}

.ticker__list::-webkit-scrollbar {
  display: none;
}

.ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.4;
  white-space: normal;
}

.ticker__list li::before {
  content: '→';
  font-size: 0.95em;
  line-height: 1;
  opacity: 0.6;
}

.ticker__list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The wire wraps instead of scrolling. With the scrollbar hidden and the lines
   unable to shrink, any headline wider than the strip was cut mid-word — on a
   phone at 240px, but also in a narrow desktop window — and nothing told the
   reader the sentence continued. Three lines is the cap, so only a headline
   longer than that ends in an ellipsis rather than in the middle of a word. */
.ticker__list a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Headline rotator: exactly one line owns the strip, from the first paint. The
   script marks the list .is-ready once it has chosen a line; until then — and
   if the script never runs at all — the first line is the one shown.

   Leaving every line visible until the script arrives put two headlines on the
   breaking row at once: in the gap before the rotator started, on a slow
   script, and after a wire:navigate swap replaced the list. */
[data-rotator] > [data-rotator-item] {
  display: none;
}

[data-rotator] > [data-rotator-item]:first-child {
  display: inline-flex;
  align-items: center;
}

[data-rotator].is-ready > [data-rotator-item]:first-child {
  display: none;
}

[data-rotator].is-ready > [data-rotator-item].is-active {
  display: inline-flex;
  align-items: center;
  animation: headline-in 420ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes headline-in {
  from {
    opacity: 0;
    transform: translateY(45%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-rotator].is-ready > [data-rotator-item].is-active {
    animation: none;
  }

  .ticker__label,
  .ticker__dot {
    animation: none;
  }
}

/* The latest archive.

   One page for every story. On a desktop it runs a six-item rhythm that sums to
   the row every time — a full-width opener, then a pair, then a trio — so the
   page reads like a printed page rather than one repeated size. On a phone the
   same stories become rows with a square thumbnail: a column of headlines is
   faster to scan than a grid of cards.

   The rhythm is written on the wrapper, not the card, so a page appended by the
   infinite scroll continues the pattern instead of restarting it. */

.latest-page__head {
  margin-bottom: 1.6rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.latest-page__head .breadcrumbs {
  margin-bottom: 0.6rem;
}

.latest-page__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.latest-feed {
  display: grid;
  gap: 1.3rem;
}

.latest-feed__item {
  min-width: 0;
}

.latest-feed__item .story--latest {
  height: 100%;
}

.story--latest .story__title {
  font-size: 1.2rem;
  line-height: 1.15;
}

/* The end of the wire: a sentinel tall enough to be observed, holding the only
   paging cue the page has — a spinner while the next page is on its way. */
.latest-feed__foot {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  padding-block: 1.2rem;
}

/* One source of truth for the spinner: the loading class on the foot. A `hidden`
   attribute next to a display rule is a fight the class always loses. */
.latest-feed__loader {
  display: none;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.latest-feed__foot.is-loading .latest-feed__loader {
  display: inline-flex;
}

.latest-feed__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: latest-spin 700ms linear infinite;
}

@keyframes latest-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-feed__spinner {
    animation: none;
    border-top-color: var(--ink);
  }
}

@media (min-width: 720px) {
  .latest-feed {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2rem 1.4rem;
  }

  .latest-feed__item {
    grid-column: span 2;
  }

  .latest-feed__item:nth-child(6n + 1) {
    grid-column: span 6;
  }

  .latest-feed__item:nth-child(6n + 2),
  .latest-feed__item:nth-child(6n + 3) {
    grid-column: span 3;
  }

  /* The opener runs across the page: picture on one side, type on the other. */
  .latest-feed__item:nth-child(6n + 1) .story--latest {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.8rem;
  }

  .latest-feed__item:nth-child(6n + 1) .story__media {
    aspect-ratio: 16 / 9;
  }

  .latest-feed__item:nth-child(6n + 1) .story__title {
    font-size: 2rem;
    line-height: 1.04;
  }

  .latest-feed__item:nth-child(6n + 2) .story__title,
  .latest-feed__item:nth-child(6n + 3) .story__title {
    font-size: 1.55rem;
    line-height: 1.08;
  }
}

@media (max-width: 719px) {
  .latest-feed {
    /* The row borders do the separating, so the gap only holds the rules apart. */
    gap: 0;
    border-top: 1px solid var(--line-soft);
  }

  .latest-feed__item {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .latest-feed__item .story--latest {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
  }

  .latest-feed__item .story__media {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
  }

  .latest-feed__item .story__body {
    grid-column: 2;
    grid-row: 1;
  }

  .latest-feed__item .story__standfirst {
    display: none;
  }

  .latest-feed__item .story__title {
    font-size: 1.02rem;
    line-height: 1.2;
  }
}

/* Reader languages. The masthead keeps a globe button that opens a small popup;
   the footer keeps the same list inline. Translation happens at Google, so these
   are layout rules only. */
.lang-pick {
  position: relative;
}

.lang-pick__button {
  align-items: center;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  height: 1.9rem;
  justify-content: center;
  list-style: none;
  width: 1.9rem;
}

.lang-pick__button::-webkit-details-marker {
  display: none;
}

.lang-pick__button:hover,
.lang-pick[open] .lang-pick__button {
  background: var(--surface-2);
  color: var(--ink);
}

.lang-pick__globe {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-width: 1.7;
  width: 1.05rem;
}

.lang-pick__menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 0.6rem);
  box-shadow: 0 12px 30px rgb(15 23 42 / 12%);
  min-width: 10.5rem;
  padding: 0.4rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 40;
}

.lang-pick__title {
  color: var(--ink-2);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  margin: 0.15rem 0.55rem 0.35rem;
  text-transform: uppercase;
}

.lang-pick__item {
  border-radius: 0.4rem;
  color: var(--ink);
  display: block;
  font-size: var(--step--1);
  padding: 0.35rem 0.55rem;
  text-decoration: none;
}

.lang-pick__item:hover {
  background: var(--surface-2);
}

.lang-pick__note {
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--step--2);
  margin: 0.35rem 0.55rem 0.15rem;
  padding-top: 0.4rem;
}

.footer-legal__langs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
}

.footer-legal__lang {
  /* On the footer green the page's own muted ink is 2.29:1; inherit the
     footer's light ink instead. */
  color: inherit;
  text-decoration: none;
}

.footer-legal__lang:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}
/* Bottom tabs (mobile) */

.tabbar {
  position: fixed;
  left: 0.7rem;
  right: 0.7rem;
  bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.1rem;
  padding: 0.35rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  padding: 0.35rem 0.2rem;
  border-radius: 0.9rem;
  color: var(--ink-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition);
}

.tabbar__item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tabbar__item[aria-current='page'] {
  background: var(--brand);
  color: var(--brand-ink);
}

[data-mode='dark'] .tabbar__item[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand);
}

.tabbar__item:hover {
  color: var(--ink);
}

/* ---------- 5. Front page ---------- */

.front {
  display: grid;
  gap: 1.6rem;
}

.front__main {
  min-width: 0;
}

.front__lead {
  display: grid;
  gap: 0.5rem;
}

/* The latest: a timestamped wire, not another card grid. */
.latest-block {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.latest-list {
  display: grid;
}

.latest-item {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}

.latest-item:last-child {
  border-bottom: 0;
}

.latest-item__time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  padding-top: 0.2rem;
}

.latest-item__body {
  min-width: 0;
}

.latest-item__kicker {
  display: inline-flex;
  align-items: center;
  /* The label was a 14px-tall target; 24px clears the minimum and keeps the
     space between it and the headline it sits above. */
  min-height: 1.5rem;
  margin-bottom: 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone, var(--accent));
}

.latest-item__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.latest-item__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

.latest-item__standfirst {
  margin: 0.25rem 0 0;
  color: var(--ink-2);
  font-family: var(--font-read);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ad-top {
  display: none;
  margin-bottom: 1.25rem;
}

.home-ad-mid {
  margin-block: 1.5rem;
}

.rail {
  display: grid;
  gap: 1rem;
}

.rail-ad {
  display: none;
}

.live-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--step--1);
  line-height: 1.2;
}

.live-strip .badge--live {
  background: var(--accent);
  color: var(--accent-ink);
}

.live-strip__links {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.live-strip__links::-webkit-scrollbar {
  display: none;
}

.live-strip__links a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

/* Story cards */

.story {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.story__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0, 0, 1);
}

.story:hover .story__media img {
  transform: scale(1.03);
}

.story__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.story__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.story__title a:hover {
  color: var(--brand);
}

[data-mode='dark'] .story__title a:hover {
  color: var(--brand);
}

.story__standfirst {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-read);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: var(--step--2);
  letter-spacing: 0.01em;
}

/* Story-card footer: the details may wrap onto a second line, the save
   control stays on the right of the block whichever way it lands. */
.story__meta--card {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.story__meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  min-width: 0;
}

.story__meta-author {
  color: var(--ink-1);
  font-weight: 600;
}

.story__meta-read {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.story__save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: all var(--transition);
}

.story__save-btn:hover,
.story__save-btn.is-saved {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

.story__save-btn.is-saved svg {
  fill: currentColor;
}

.story--lead .story__media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
}

.story--lead .story__title {
  font-size: 2.35rem;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.story--lead .story__standfirst {
  -webkit-line-clamp: 4;
  font-size: 1rem;
}

.story--lead .story__kicker {
  font-size: var(--step--2);
}

.story--compact {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.9rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}

.story--compact .story__title {
  font-size: 1.12rem;
  line-height: 1.15;
}

.story--compact .story__body {
  gap: 0.3rem;
}

.story--row {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.story--row:last-child {
  border-bottom: 0;
}

.story--row .story__media {
  width: 4.6rem;
  flex: none;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

/* A drawn share card is illegible at 70px; the row reads better as text. */
.story__media--blank {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  color: var(--ink-3);
}

.story--row .story__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.story--row .story__kicker {
  font-size: 0.6rem;
}

.story--row .story__meta {
  font-size: 0.66rem;
}

/* Secondary stack: image-led rows under the hero */

.front__secondary {
  display: grid;
  gap: 0;
  margin-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.front__secondary .story--standard {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.front__secondary .story--standard .story__media {
  width: 6.2rem;
  flex: none;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

.front__secondary .story--standard .story__title {
  font-size: 1.08rem;
  line-height: 1.14;
}

.front__secondary .story--standard .story__standfirst {
  display: none;
}

.front__secondary .story--standard .story__body {
  gap: 0.3rem;
}

/* Sections */

.section-block {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.section-block:first-child {
  margin-top: 0;
}

.section-block__head,
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.9rem;
}

.section-block__title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-block__more,
.nav-arrow-link {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.section-block__more:hover,
.nav-arrow-link:hover {
  color: var(--ink);
}

.section-desc {
  margin: 0.25rem 0 0;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.section-grid {
  display: grid;
  gap: 1rem;
}

/* On phones, story sections become a snap rail: one story at a time,
   the next peeking in, which is how news apps are read. */
.section-block .section-grid {
  display: flex;
  flex-direction: row;
  gap: 0.9rem;
  /* The rail keeps the page gutter on the left so the first card lines up with
     the section heading, and bleeds only to the right edge of the screen. */
  margin-right: calc(var(--gutter) * -1);
  padding: 0.2rem var(--gutter) 0.6rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0 var(--gutter);
  scrollbar-width: none;
}

.section-block .section-grid::-webkit-scrollbar {
  display: none;
}

.section-block .section-grid > .story {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

.section-block .section-grid .story__title {
  font-size: 1.25rem;
}

.section-block .section-grid .story__standfirst {
  -webkit-line-clamp: 2;
}

.section-grid__ad {
  grid-column: 1 / -1;
}

/* Most read */

.ranked {
  counter-reset: ranked;
}

.ranked__item {
  counter-increment: ranked;
  border-bottom: 1px solid var(--line-soft);
}

.ranked__item:last-child {
  border-bottom: 0;
}

.ranked__link {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  align-items: baseline;
  padding-block: 0.55rem;
}

.ranked__link::before {
  content: counter(ranked, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}

.ranked__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.32;
}

.ranked__link:hover .ranked__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ranked__meta {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 0.68rem;
}

/* Tags */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--ink-1);
  font-size: var(--step--1);
  transition: all var(--transition);
}

.tag-cloud a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block: 1.25rem;
}

.tag-row__label {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- 6. Article ---------- */

.article-page {
  padding-top: 1.25rem;
}

.article__header {
  margin-bottom: 1.3rem;
}

.article__kicker-wrap {
  margin-bottom: 0.35rem;
}

.article__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tone, var(--accent));
}

.article__kicker-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

.article__kicker-sep,
.article__kicker-kind {
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.article-ad-top,
.listing-ad-top {
  display: none;
  margin-bottom: 1.25rem;
}

.article__title {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8.2vw, 3.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.article__standfirst {
  margin: 0.8rem 0 0;
  font-family: var(--font-read);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-1);
}

.article__meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article__meta-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.article__author-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.article__author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  flex: none;
}

.article__author-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.article__byline-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.article__author-name {
  font-size: var(--step--1);
  font-weight: 700;
}

.article__author-role {
  font-size: 0.7rem;
  color: var(--ink-2);
}

.article__meta-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: var(--step--2);
}

.article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

/* Readership for this story, counted locally: total reads and today's readers. */
.article__reads strong {
  font-weight: 700;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}

.article__reads-today {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.article__header-share {
  flex: none;
}

.article__grid {
  display: grid;
  gap: 1.5rem;
}

.article__main-col {
  min-width: 0;
}

.article__rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.article__hero {
  margin: 0 0 1.2rem;
}

.article__hero img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.72rem;
  line-height: 1.45;
}

.figure__credit {
  font-style: italic;
}

.correction {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
}

.in-article-ad,
.article-ad-bottom {
  margin-block: 1.6rem;
}

/* Share */

.share {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share__label {
  display: none;
}

.share__items {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.share__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-1);
  transition: all var(--transition);
}

.share__action:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.share__action--copy,
.share__action--bookmark {
  display: inline-flex;
  gap: 0.35rem;
  width: auto;
  padding-inline: 0.7rem;
  border-radius: var(--pill);
  font-size: var(--step--2);
  font-weight: 600;
  white-space: nowrap;
}

.share__action.is-saved {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.share__btn-text {
  display: none;
}

.article__footer-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Poll */

.poll {
  margin-top: 1.8rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.poll h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.poll__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  font-size: var(--step--1);
  font-weight: 500;
  transition: all var(--transition);
}

.poll__option:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.poll__result {
  margin-top: 0.7rem;
}

.poll__bar {
  height: 0.4rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  overflow: hidden;
}

.poll__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--pill);
}

/* Reading tools: one toolbar under the standfirst, with the size panel and the
   read-aloud bar opening beneath it rather than floating somewhere else on the
   page. The row wraps on a phone instead of scrolling, so no control is ever
   hidden off the edge. */
.reader-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.reader-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.reader-controls__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.25rem;
  padding-right: 0.55rem;
  border-right: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.reader-controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.reader-controls button svg {
  flex: none;
  opacity: 0.75;
}

.reader-controls button:hover {
  border-color: var(--ink);
  background: var(--surface-3);
}

.reader-controls button:active {
  transform: translateY(1px);
}

.reader-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reader-controls button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.reader-controls button[aria-pressed='true'] svg {
  opacity: 1;
}

@media (max-width: 620px) {
  .reader-tools {
    width: 100%;
    padding: 0.5rem;
  }

  .reader-controls__label {
    display: none;
  }

  /* Four controls on one row: the icons go, the labels stay, and the pills
     share the available width instead of wrapping onto a second line. */
  .reader-controls {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .reader-controls button {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0.45rem 0.3rem;
    font-size: 0.7rem;
  }

  .reader-controls button svg {
    display: none;
  }
}

.reader-panel {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.65rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}

.reader-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reader-panel__key {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.reader-panel__group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
}

.reader-panel__group button {
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  cursor: pointer;
}

.reader-panel__group button:hover {
  background: var(--surface-3);
}

.reader-panel__group button[aria-pressed='true'],
.reader-panel__group button[aria-pressed='true']:hover {
  background: var(--ink);
  color: var(--paper);
}

.reader-panel__value {
  min-width: 2.6rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--ink-2);
}

.reader-panel__reset {
  justify-self: start;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--step--2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reader-panel__reset:hover {
  color: var(--ink);
}

.reader-panel__group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reader-panel__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reader-panel__key {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.reader-speak {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reader-speak__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.reader-speak__field {
  flex: 1;
}

.reader-speak__status {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* Comments */

.comments-section {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}

.comments-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comments-section__title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.comments-section__count {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.comments-section__guidelines {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* On a phone the guidance is a paragraph under the heading, not a sidebar: at
   320px the row layout left it a 100px column of stacked words. */
@media (max-width: 719px) {
  .comments-section__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .comments-section__guidelines {
    margin-bottom: 0;
  }

  .comment-form__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .comment-form__note {
    text-align: left;
  }
}

.comment-form-wrap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comment-form__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.comment-form__title {
  font-size: var(--step-1);
  font-weight: 700;
}

.comment-form__note {
  color: var(--ink-2);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: right;
}

/* Two fields share the first line and fall back to one column when the card
   is narrower than a comfortable pair of inputs. */
.comment-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 0;
}

.comment-form__row .field {
  margin-bottom: 0.85rem;
}

.comment-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: var(--ink-2);
  font-size: 0.7rem;
  line-height: 1.4;
}

.comment-form__privacy svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--ink-3);
}

.comment-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.comment-form__policy {
  margin-top: 0.9rem;
}

.comment-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.comment-form__checkbox {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

.comment-form .field__textarea {
  min-height: 6.5rem;
}

.comments-list {
  display: grid;
  gap: 0;
}

.comments-more {
  padding-top: 1.25rem;
  text-align: center;
}

.comment-card {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.comment-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.comment-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1rem;
  flex: none;
}

.comment-card__avatar--sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
}

.comment-card__info {
  min-width: 0;
}

.comment-card__name {
  font-size: 0.85rem;
  font-weight: 700;
}

.comment-card__time {
  display: block;
  color: var(--ink-2);
  font-size: 0.7rem;
}

/* The one edit a reader gets is visible on the comment, with the moment it
   happened, so a conversation cannot be quietly rewritten. */
.comment-card__edited {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.comment-card__edit {
  margin-left: auto;
  flex: none;
  min-height: 2.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-1);
  font-size: 0.72rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}

.comment-card__edit:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.comment-card__state {
  margin-left: auto;
  flex: none;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--premium, var(--ink-2));
}

.comment-card__state--spent {
  color: var(--ink-3);
}

.comments-pending {
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
}

.comments-pending__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.comments-pending__note {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.comment-card--own {
  padding-top: 0;
  border-top: 0;
}

.comment-card--own + .comment-card--own {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.comment-edit {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.comment-edit .field__textarea {
  width: 100%;
  font-family: var(--font-read);
  font-size: 0.96rem;
}

.comment-edit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.comment-edit__note {
  font-size: 0.7rem;
  color: var(--ink-2);
}

.comment-card__body {
  font-family: var(--font-read);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-1);
}

.comment-replies {
  margin-top: 0.7rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}

.comments-empty {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
}

.comments-empty__icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

/* ---------- 7. Live ---------- */

.live-page {
  padding-top: 1.1rem;
}

.live-head {
  margin-bottom: 1.4rem;
}

.live-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: var(--step--2);
}

.live-head__kind {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-head__auto {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--brand);
  font-weight: 600;
}

.live-head__auto::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
}

.live-head__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.live-head__standfirst {
  margin-top: 0.6rem;
  color: var(--ink-1);
  font-family: var(--font-read);
  line-height: 1.55;
}

.live-head__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.live-head__source {
  margin: 0;
}

.live-section {
  margin-bottom: 1rem;
}

.live-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.live-section__count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.stat-tile {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stat-tile__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.stat-tile__value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}

.live-meter {
  display: grid;
  gap: 0.75rem;
}

.live-meter__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.8rem;
  align-items: center;
}

.live-meter__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  min-width: 0;
}

.live-meter__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-meter__figure {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.live-meter__bar {
  grid-column: 1 / -1;
  height: 0.45rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  overflow: hidden;
}

.live-meter__fill {
  display: block;
  height: 100%;
  border-radius: var(--pill);
  background: var(--tone, var(--accent));
}

.live-meter__plus {
  color: var(--ink-3);
}

/* Seat chart */

.seat-chart {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel .seat-chart {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.seat-chart__donut {
  position: relative;
  width: min(100%, 15rem);
  margin-inline: auto;
}

.seat-chart__svg {
  display: block;
  width: 100%;
}

.seat-chart__total {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.15rem;
  text-align: center;
  pointer-events: none;
}

.seat-chart__total strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.seat-chart__total span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.seat-chart__legend {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.seat-chart__legend li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  font-size: var(--step--1);
}

.seat-chart__swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  flex: none;
}

.seat-chart__legend strong {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}

.seat-chart__legend li > span:last-child {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}

/* Change log under a live source. */
.audit {
  display: grid;
  gap: 0;
  font-size: var(--step--1);
}

.audit li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.6rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-1);
}

.audit li:first-child {
  border-top: 0;
  padding-top: 0;
}

.audit time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}

.audit__actor {
  color: var(--ink-3);
}

/* Live blog */

.liveblog {
  display: grid;
  gap: 0;
  margin-top: 1.2rem;
}

.liveblog__item {
  position: relative;
  padding: 0 0 1.15rem 1.4rem;
  border-left: 1px solid var(--line);
}

.liveblog__item::before {
  content: '';
  position: absolute;
  left: -0.28rem;
  top: 0.28rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--paper);
}

.liveblog__item:last-child {
  border-color: transparent;
  padding-bottom: 0;
}

.liveblog__time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}

.liveblog__kind {
  margin-left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.liveblog__body {
  margin-top: 0.2rem;
  font-family: var(--font-read);
  font-size: 0.98rem;
  line-height: 1.55;
}

.liveblog__quote {
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
}

/* Scorecard */

.scorecard {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.scorecard .panel__title {
  font-size: var(--step-1);
}

.scorecard__score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.55rem;
  margin: 0.15rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Tight rows: a scorecard is a dense block of figures, not prose. */
.scorecard__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.scorecard__table caption {
  padding: 0.4rem 0 0.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.scorecard__table th,
.scorecard__table td {
  padding: 0.42rem 0.4rem;
}

.scorecard__table thead th {
  padding-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.scorecard__table tbody th {
  font-weight: 500;
}

.scorecard__table + .scorecard__table {
  margin-top: 0.55rem;
}

.scorecard__table th,
.scorecard__table td {
  padding: 0.5rem 0.8rem;
  text-align: left;
  border-top: 1px solid var(--line-soft);
}

.scorecard__overs {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* Live index + TV */

.live-index__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tv-stage {
  margin-bottom: 1.2rem;
}

.tv-stage iframe,
.tv-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #0a0f0c;
}

.tv-stage__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0a0f0c;
  aspect-ratio: 16 / 9;
}

.tv-stage__card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tv-stage__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.tv-stage__time,
.tv-stage__state {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.tv-schedule {
  display: grid;
  gap: 0;
}

.tv-schedule__row {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--step--1);
}

.tv-schedule__at {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-2);
}

.tv-schedule__what h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}

.tv-schedule__what p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.tv-schedule__duration {
  color: var(--ink-2);
  font-size: 0.72rem;
}

.ticker-page {
  max-width: 34rem;
  margin-inline: auto;
  padding-block: 1.5rem 3rem;
}

.ticker-page__note {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.ticker-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ticker-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: var(--step--2);
  color: var(--ink-2);
}

.ticker-card__kicker {
  font-weight: 600;
  color: var(--ink-2);
}

.ticker-card__time {
  margin-left: auto;
}

.ticker-card__line {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ticker-card__detail {
  margin-top: 0.5rem;
  color: var(--ink-1);
  font-size: var(--step-0);
  line-height: 1.5;
}

.ticker-card__reactions {
  display: flex;
  gap: 0.45rem;
  margin-block: 1rem;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: var(--step--1);
  transition: all var(--transition);
}

.reaction:hover {
  border-color: var(--ink);
}

.reaction.is-mine {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.reaction__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}

.ticker-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

/* ---------- 8. Media ---------- */

.hub-header {
  padding-block: 1.3rem 1.6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.4rem;
}

.hub-eyebrow {
  color: var(--accent);
}

.hub-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hub-lede {
  margin-top: 0.7rem;
  max-width: 38rem;
  color: var(--ink-1);
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.6;
}

.hub-meta-text {
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* The hub header already carries the rule; the first block below it does not
   need a second one with a canyon of padding between. */
.hub-header + .section-block,
.hub-header + section.section-block {
  margin-top: 1.1rem;
  padding-top: 0;
  border-top: 0;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.video-grid {
  display: grid;
  gap: 1.1rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-3);
}

.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0, 0, 1);
}

.video-card:hover .video-card__media img {
  transform: scale(1.04);
}

.video-play-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  color: var(--ink);
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}

.video-card:hover .video-play-overlay {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-card__placeholder {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 46%),
    var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
  text-align: left;
}

.video-card--empty .video-play-overlay,
.short-card--empty .short-play-btn {
  display: none;
}

.short-card--empty .video-card__placeholder {
  align-items: flex-end;
  justify-content: flex-start;
  font-size: 1.7rem;
}

.video-duration-chip {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(6, 10, 7, 0.78);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.video-live-chip {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
}

.video-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem 1rem;
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__standfirst {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specs sit at the foot of every card in the same two columns, so a row of
   cards lines up however long each title runs. */
.video-specs {
  display: grid;
  gap: 0.22rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--ink-1);
}

.video-spec-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
}

.video-spec-row dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  color: var(--ink-3);
}

.video-spec-row dd {
  margin: 0;
}

.video-card__actions {
  margin-top: 0.5rem;
}

.video-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #070b08;
}

.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-layout {
  display: grid;
  gap: 1.2rem;
}

.watch-player video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}

.watch-meta {
  min-width: 0;
}

.watch-layout--vertical .video-player-wrap,
.watch-layout--vertical video {
  max-width: 22rem;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.watch-layout--vertical video {
  width: 100%;
  height: auto;
}

.transcript {
  margin-top: 1.2rem;
}

.transcript summary {
  font-size: var(--step--1);
  font-weight: 600;
}

/* Shorts */

.short-feed {
  display: grid;
  gap: 1.1rem;
}

.short-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.7rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.short-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-3);
}

.short-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-card__index {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(6, 10, 7, 0.7);
  color: #fff;
  font-size: 0.62rem;
}

.short-play-btn {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.short-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.3rem 0.4rem;
}

.short-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
}

.short-related {
  margin-top: 0.3rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.short-related__heading {
  margin: 0 0 0.35rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.short-related__list {
  display: grid;
  gap: 0.25rem;
  font-size: var(--step--1);
}

.short-related__list a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}

.reduced-motion-hint {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
  text-align: center;
}

/* Podcast */

.podcast-player-wrapper {
  margin-bottom: 1.4rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: var(--brand-ink);
}

.podcast-player-wrapper .field__hint,
.podcast-player-wrapper p {
  color: color-mix(in srgb, var(--brand-ink) 76%, transparent);
}

.podcast-player {
  width: 100%;
  accent-color: var(--accent);
}

.episodes-list {
  display: grid;
  gap: 0;
}

.episode-row {
  display: grid;
  gap: 0.35rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.episode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-2);
}

.episode-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.08;
}

.episode-standfirst {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.episode-meta-line,
.episode-footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--ink-2);
}

.episode-duration {
  font-family: var(--font-mono);
}

.podcast-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.podcast-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.podcast-episode-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.podcast-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
}

.podcast-standfirst {
  margin: 0.4rem 0;
  color: var(--ink-1);
  font-size: 0.92rem;
  line-height: 1.5;
}

.podcast-people,
.podcast-listens {
  font-size: 0.75rem;
  color: var(--ink-2);
}

.podcast-chapters {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.podcast-chapters__title {
  margin-bottom: 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chapter-list {
  display: grid;
  gap: 0.3rem;
}

.chapter-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.chapter-time {
  font-family: var(--font-mono);
  color: var(--ink-2);
}

.chapter-label {
  color: var(--ink-1);
}

/* ---------- 9. E-paper ---------- */

.epaper-layout {
  display: grid;
  gap: 1.5rem;
}

.epaper-main {
  min-width: 0;
}

.epaper-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.epaper-sheet {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.epaper-sheet__masthead {
  padding-bottom: 0.5rem;
  border-bottom: 3px double var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

.epaper-sheet__brand {
  font-size: 1.7rem;
  line-height: 1;
}

.epaper-sheet__date,
.epaper-sheet__edition {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.epaper-sheet__grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.6rem;
  font-family: var(--font-read);
  font-size: 0.58rem;
  line-height: 1.5;
  color: var(--ink-1);
}

.epaper-sheet__headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.epaper-sheet__subheadline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.epaper-sheet__text {
  margin: 0.3rem 0;
}

.epaper-sheet__notice {
  margin-top: 0.4rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.5rem;
  color: var(--ink-3);
}

.epaper-archive-list {
  display: grid;
  gap: 0;
}

.epaper-archive-item {
  padding-block: 0.7rem;
  border-top: 1px solid var(--line-soft);
}

.epaper-archive-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 600;
}

.epaper-archive-meta {
  font-size: 0.7rem;
  color: var(--ink-2);
}

.epaper-jump-link {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 10. Pages, search, subscribe, errors ---------- */

.page-intro {
  max-width: 40rem;
  margin-top: 0.6rem;
  color: var(--ink-1);
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.65;
}

.search-page {
  padding-top: 0.5rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  font-size: var(--step-0);
}

.search-form input:focus {
  outline: 0;
  box-shadow: none;
}

.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  flex: none;
}

.search-page .search-form {
  margin-bottom: 1.4rem;
}

.search-results {
  display: grid;
  gap: 0;
}

.search-results > article,
.search-results > li {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.search-status {
  margin-block: 0.8rem 1.2rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.search-input {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
}

/* Subscribe */

.subscribe-grid {
  display: grid;
  gap: 1.5rem;
}

.subscribe-main {
  min-width: 0;
}

.subscribe-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.plan-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan-card--recommended {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-soft);
}

.plan-card__ribbon {
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.plan-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-card__amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.plan-card__cadence {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.plan-card__features {
  display: grid;
  gap: 0.3rem;
  margin-block: 0.4rem;
  font-size: var(--step--1);
}

.plan-card__features li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.plan-card__note {
  color: var(--ink-2);
  font-size: 0.7rem;
}

.plan-card__cta {
  margin-top: auto;
}

.feature--included::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
}

.feature--excluded {
  color: var(--ink-3);
}

.feature--excluded::before {
  content: '—';
  color: var(--ink-3);
}

.always-free-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: var(--step--1);
}

.newsletter {
  margin-block: 2rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: var(--brand-ink);
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.02;
}

.newsletter p {
  margin-top: 0.4rem;
  color: color-mix(in srgb, var(--brand-ink) 75%, transparent);
  font-size: var(--step--1);
}

.newsletter__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.newsletter__row input {
  background: color-mix(in srgb, var(--brand-ink) 10%, transparent);
  border-color: color-mix(in srgb, var(--brand-ink) 25%, transparent);
  color: var(--brand-ink);
}

.newsletter__row input::placeholder {
  color: color-mix(in srgb, var(--brand-ink) 60%, transparent);
}

.newsletter__row button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Auth */

.page.auth {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding-block: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 27rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.auth-card p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.auth-card .field:first-of-type {
  margin-top: 1.2rem;
}

/* Errors */

.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 2rem 0;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 20vw, 8rem);
  font-weight: 700;
  line-height: 0.8;
  color: var(--accent);
}

.error-page__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.error-page__body {
  max-width: 32rem;
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.error-page__search {
  width: min(100%, 24rem);
  margin-top: 1.2rem;
}

.error-page__search button {
  width: auto;
  padding-inline: 0.85rem;
  border-radius: var(--pill);
  font-size: var(--step--1);
  font-weight: 600;
}

.error-page__detail {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* Saved */

.saved-empty-state {
  padding: 3rem 1.4rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.saved-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.saved-empty-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.saved-empty-desc {
  max-width: 26rem;
  margin: 0.6rem auto 0;
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* The saved list is a quiet reading list, not a database table: no boxed
   header labels shouting across the row, just a date and one action. */
.dtable-wrap caption {
  padding-bottom: 0.7rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.dtable thead th {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.dtable tbody td {
  padding: 0.8rem 0.5rem;
  vertical-align: middle;
}

.dtable tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.dtable tbody td:first-child {
  padding-left: 0;
}

.dtable tbody td:last-child {
  padding-right: 0;
  text-align: right;
}

.dtable .muted {
  font-size: 0.72rem;
  white-space: nowrap;
}

.saved-story-link {
  display: block;
  padding: 0;
  border: 0;
  font-size: 0.94rem;
  line-height: 1.4;
}

/* Sponsored */

.sponsored-stories {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sponsored-stories__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.sponsored-stories__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.sponsored-stories__sub,
.sponsored-stories__disclaimer {
  color: var(--ink-3);
  font-size: 0.68rem;
}

.sponsored-stories__grid {
  display: grid;
  gap: 0.8rem;
}

.sponsored-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sponsored-card__badge {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sponsored-card__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.sponsored-card__summary {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.8rem;
  line-height: 1.45;
}

.sponsored-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.66rem;
  color: var(--ink-3);
}

/* Ads */

.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.ad-slot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ad-slot__label,
.ad-slot__sponsor {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ad-banner {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.ad-banner__body {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.ad-banner__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.ad-banner__tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.ad-banner__brand {
  font-size: 0.62rem;
  color: var(--ink-2);
}

.ad-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--ink);
}

.ad-banner__copy {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.ad-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.ad-banner__visual {
  display: none;
}

.ad-banner__features {
  display: none;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--ink-2);
}

/* The creative themes flip --ink and --paper inside the banner so body copy sits
   on the sponsor's ground. The call to action cannot follow them: it inherited
   the flipped pair as both fill and label, which made it a blank pill until the
   pointer arrived. It now reads the brand pair, which no creative touches. */
.ad-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.7rem;
  font-weight: 600;
}

/* An in-article unit sits inside the prose, where `.prose a` colours links as
   ink. That rule outranked the button and left the label sitting on its own
   fill everywhere except on hover — so the unit's pair is restated at the ad
   slot's own weight. */
.ad-slot .ad-banner__cta {
  background: var(--brand);
  color: var(--brand-ink);
}

.ad-banner__cta:hover,
.ad-slot .ad-banner__cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.ad-banner__cta--full {
  width: 100%;
}

.ad-banner--in-article {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.ad-banner--in-article .ad-banner__cta {
  grid-column: 1 / -1;
  width: 100%;
}

.ad-banner--leaderboard {
  grid-template-columns: 1fr;
}

/* A leaderboard is the widest unit on the page, so it reads as a band rather
   than a poster: the copy takes the line and the call to action sits on the
   end of it, both centred against the band. */
@media (min-width: 720px) {
  .ad-banner--leaderboard {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
  }

  .ad-banner--leaderboard .ad-banner__body {
    gap: 0.3rem;
  }

  .ad-banner--leaderboard .ad-banner__title {
    font-size: 1.35rem;
  }

  .ad-banner--leaderboard .ad-banner__cta {
    padding: 0.6rem 1.15rem;
    font-size: 0.78rem;
  }
}

.ad-theme--navy .ad-banner__tag,
.ad-theme--purple .ad-banner__tag,
.ad-theme--emerald .ad-banner__tag {
  color: var(--ink-2);
}

.ad-slot__info {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}

/* ---------- 11. Footer ---------- */

.site-footer {
  margin-top: 2.25rem;
  padding-block: 2.2rem 1.4rem;
  background: var(--brand);
  color: var(--brand-ink);
}

[data-mode='dark'] .site-footer {
  background: #081410;
  color: #eef3ea;
}

.footer__lead {
  display: grid;
  gap: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  /* The footer paints its own light ink on the brand green; forcing --ink here
     put near-black on #0E3B2E and made the wordmark unreadable. */
  color: inherit;
}

.footer__brand img {
  width: 2.1rem;
  height: 2.1rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
}

.footer__tagline {
  max-width: 22rem;
  margin-top: 0.6rem;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-family: var(--font-read);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, currentColor 82%, transparent);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.footer__eyebrow {
  /* Orange on the brand green lands at 4.0:1 at this size; a lighter tint
     clears AA in both polarities. */
  color: color-mix(in srgb, var(--accent) 68%, #fff);
  font-size: 0.62rem;
}

.footer__newsletter-title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.02;
}

.footer-newsletter {
  margin-top: 0.9rem;
}

.footer-newsletter__field {
  display: flex;
  gap: 0.35rem;
}

.footer-newsletter__field input {
  flex: 1;
  min-width: 0;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  color: inherit;
  font-size: 0.9rem;
}

.footer-newsletter__field input::placeholder {
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.footer-newsletter__field button {
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 700;
  white-space: nowrap;
}

.footer-newsletter__status {
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: var(--step--1);
}

.footer__fineprint {
  margin-top: 0.5rem;
  color: color-mix(in srgb, currentColor 55%, transparent);
  font-size: 0.66rem;
}

.footer__fineprint a {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1rem;
  padding-block: 1.8rem;
}

.footer-col__title {
  margin-bottom: 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.footer-col__list {
  display: grid;
  gap: 0.35rem;
  font-size: var(--step--1);
}

.footer-col__list a:hover {
  color: var(--accent);
}

.footer-col__desc,
.footer-col__address {
  font-size: 0.75rem;
  line-height: 1.5;
  color: color-mix(in srgb, currentColor 60%, transparent);
}

.footer-install {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: var(--step--1);
  text-align: left;
}

.footer-install:hover {
  color: var(--accent);
}

.install-popup {
  position: fixed;
  z-index: 50;
  inset-inline: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.install-popup[data-push-onboarding] {
  z-index: 210;
  bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom, 0px));
}

.install-popup__card {
  width: 100%;
  max-width: 28rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 20px 50px rgba(18, 22, 15, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.install-popup__header,
.install-popup__identity,
.install-popup__actions {
  display: flex;
}

.install-popup__header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.install-popup__identity {
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.install-popup__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.install-popup__heading {
  min-width: 0;
}

.install-popup__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--ink-2);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.install-popup__heading h2 {
  color: var(--ink);
  font-size: var(--step-1);
  line-height: 1.2;
}

.install-popup__close {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: background var(--transition), color var(--transition);
}

.install-popup__close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.install-popup__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.install-popup__copy {
  margin: 0.8rem 0 0;
  color: var(--ink-1);
  font-size: var(--step-0);
  line-height: 1.5;
}

.install-popup__status {
  margin: 0.6rem 0 0;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}

.install-popup__alerts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.install-popup__alerts-copy {
  min-width: 0;
}

.install-popup__alerts-copy h3 {
  color: var(--ink);
  font-size: var(--step-0);
  line-height: 1.25;
}

.install-popup__alerts-copy p {
  margin: 0.2rem 0 0;
  color: var(--ink-2);
  font-size: var(--step--2);
  line-height: 1.4;
}

.install-popup__alerts .alerts__switch {
  gap: 0.4rem;
}

.install-popup__alerts .alerts__switch-track {
  width: 2.75rem;
  height: 1.6rem;
}

.install-popup__alerts .alerts__switch-thumb {
  width: 1.25rem;
  height: 1.25rem;
}

.install-popup__alerts .alerts__switch[aria-pressed='true'] .alerts__switch-thumb {
  transform: translateX(1.125rem);
}

.install-popup__alerts .alerts__switch-label {
  min-width: 2.2rem;
}

.install-popup .alerts__status {
  min-height: 0;
}

.install-popup .alerts__unsupported {
  margin-top: 0.75rem;
}

.install-popup .alerts__copy {
  margin: 0;
}

.install-popup__actions {
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.install-popup__actions .btn {
  width: 100%;
}

.install-popup__install {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.install-popup__install:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

@media (min-width: 480px) {
  .install-popup__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .install-popup__actions .btn {
    width: auto;
  }
}

/* Two short lines of fine print: the copyright, then the registration. The back
   to the top control lives in the floating bubble now, so this bar is text and
   nothing else — a grid, so neither language can push the pair onto one running
   line. */
.footer-legal {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  font-size: 0.68rem;
  line-height: 1.5;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.footer-legal p {
  margin: 0;
  text-wrap: pretty;
}

/* Splash

   Only an installed app sees this: the class that reveals it is set before the
   first paint, and only when the page is running standalone. The ground follows
   the reader's polarity — white in light, black in dark — so the launch frame
   matches the page it uncovers instead of flashing a colour between them. */
.splash {
  display: none;
}

html.is-standalone .splash {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #ffffff;
  color: var(--ink);
  transition:
    opacity 420ms ease,
    visibility 0s linear 420ms;
}

html[data-mode='dark'].is-standalone .splash {
  background: #000000;
}

html.is-standalone .splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__mark {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.splash__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  html.is-standalone .splash {
    transition: opacity 120ms linear, visibility 0s linear 120ms;
  }
}

/* Social bubble */

.social-bubble {
  display: none;
}

.social-bubble__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.social-bubble__menu {
  position: absolute;
  right: 0;
  bottom: 3.2rem;
  display: grid;
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.social-bubble__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--surface-2);
}

/* Back to the top

   The footer carries a labelled control for readers who stop at the end; this
   is the same trip for a thumb that is still moving. It keeps out of the way
   until the page has actually reached its end — a bubble over the first screen
   would sit on the story the reader came for — and on phones it clears the tab
   bar rather than landing on top of it. */
.to-top {
  position: fixed;
  right: 0.85rem;
  bottom: calc(var(--tabbar-h) + 0.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 105;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 2px solid var(--brand-ink);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  /* Two rings, one for each ground the bubble can end up on: the white edge
     reads against the green footer it arrives over, the green ring outside it
     reads if the page ever ends on paper. */
  box-shadow:
    0 0 0 1.5px var(--brand),
    0 16px 34px -20px rgba(18, 22, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.7rem) scale(0.86);
  transition:
    opacity 240ms ease,
    transform 240ms cubic-bezier(0.2, 0, 0, 1),
    visibility 0s linear 240ms,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 200ms ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.to-top:hover {
  border-color: var(--brand-ink);
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow:
    0 0 0 1.5px var(--brand-ink),
    0 16px 34px -20px rgba(18, 22, 15, 0.55);
}

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* The bubble lands where the fine print ends, so the bar gives it room: below a
   tablet it adds space under the text, past one the last line steps aside. */
@media (max-width: 719px) {
  .footer-legal {
    padding-bottom: 3.2rem;
  }
}

/* No tab bar past this width, so the bubble drops back to the corner. */
@media (min-width: 720px) {
  .footer-legal {
    padding-right: 4rem;
  }

  .to-top {
    right: 1.2rem;
    bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transform: none;
    transition: opacity 120ms linear, visibility 0s linear 120ms;
  }

  .to-top.is-visible {
    transform: none;
  }
}

/* Consent */

.consent {
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(var(--tabbar-h) + 0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* The notice has to name every service an acceptance would reach, so it cannot
   be clamped to three lines the way a cookie nudge usually is. */
.consent p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
  max-height: 40vh;
  overflow-y: auto;
}

.consent a {
  text-decoration: underline;
}

.consent button {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.consent button[data-consent='all'] {
  order: 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.consent button[data-consent='essential'] {
  order: 1;
}

/* ---------- 12. Admin ---------- */

.admin-body {
  background: var(--paper);
  padding-bottom: 0;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 12, 9, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.admin-body.nav-open .admin-nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

.admin-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  width: min(86vw, 18rem);
  padding: 1rem 0.8rem 1.2rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.admin-body.nav-open .admin-rail {
  transform: none;
}

.admin-rail__close {
  align-self: flex-end;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}

.admin-rail__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.7rem;
}

.admin-rail__brand::before {
  content: '';
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0;
  /* Bump ?v when public/mark.svg is replaced: this rule cannot read Site::asset(). */
  background: var(--brand) url('/mark.svg?v=20261102b') center / contain no-repeat;
  flex: none;
}

[data-mode='dark'] .admin-rail__brand::before {
  background-color: var(--brand-soft);
}

.admin-rail__group {
  padding: 0.9rem 0.6rem 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.admin-rail__link {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-xs);
  color: var(--ink-1);
  font-size: 0.86rem;
  transition: background var(--transition), color var(--transition);
}

.admin-rail__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.admin-rail__link[aria-current='page'] {
  background: var(--brand);
  color: var(--brand-ink);
}

.admin-rail__link-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-rail__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  opacity: 0.85;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 0 1rem 3rem;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 3.9rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.admin-topbar__lead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.admin-user__new {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.admin-topbar__brand img {
  width: 1.7rem;
  height: 1.7rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  /* The ellipsis needs a clipped box; at line-height 1 that box was shorter
     than the glyphs, so the title lost its top two pixels. */
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/* Phones: the masthead is one row. The lead block (menu, mark, page title)
   takes the free space and the title truncates, so the account chip and the
   new-story action no longer fall onto a second line with a gap beside them. */
@media (max-width: 700px) {
  .admin-topbar {
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-height: 0;
    padding-block: 0.45rem 0.6rem;
  }

  .admin-topbar__lead {
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  .admin-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.08rem;
  }

  .admin-user {
    flex: none;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .admin-user__new {
    padding-inline: 0.45rem;
  }

  .admin-user__new-label {
    display: none;
  }

  .admin-account__trigger {
    padding-right: 0.4rem;
  }
}

/* The menu button already identifies the CMS; on the narrowest phones the
   extra mark would only push the page title into a deeper ellipsis. */
@media (max-width: 480px) {
  .admin-topbar__brand {
    display: none;
  }
}

.status {
  padding: 0.2rem 0.5rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-2);
}

.status--published {
  background: var(--brand-soft);
  color: var(--brand);
}

.status--pending {
  background: var(--accent-soft);
  color: var(--accent);
}

.status--retracted {
  background: var(--live-soft);
  color: var(--live);
}

.admin-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-grid--stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-grid--stats .admin-card {
  margin-bottom: 0;
  padding: 0.9rem;
}

.admin-grid--stats .stat {
  font-size: 1.9rem;
}

.admin-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1rem;
}

.admin-card h2 {
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.admin-card .stat,
.stat {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.admin-table,
.data-table,
.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th,
.admin-table td,
.data-table th,
.data-table td,
.dtable th,
.dtable td {
  padding: 0.6rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.admin-table th,
.data-table th,
.dtable th {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.data-table__num {
  font-family: var(--font-mono);
  text-align: right;
}

.data-table__quiet {
  color: var(--ink-2);
}

.dtable-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.dtable--compact th,
.dtable--compact td {
  padding: 0.4rem 0.45rem;
}

.audit__actor {
  font-weight: 600;
}

/* On a phone a six-column table becomes six one-word columns: unreadable.
   Each row turns into a small record, with the label the table header used
   to provide carried on the cell itself. */
@media (max-width: 719px) {
  .admin-card .admin-table thead {
    display: none;
  }

  .admin-card .admin-table,
  .admin-card .admin-table tbody,
  .admin-card .admin-table tr,
  .admin-card .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-card .admin-table tr {
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  .admin-card .admin-table td {
    border: 0;
    padding: 0.12rem 0;
    font-size: 0.82rem;
  }

  .admin-card .admin-table td:first-child {
    font-size: 0.96rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
  }

  .admin-card .admin-table td[data-label] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .admin-card .admin-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    flex: none;
  }

  .admin-card .admin-table td:last-child {
    margin-top: 0.45rem;
  }
}

/* The public tables that opt in with .data-table--stack follow the same idea:
   a five-column constituency result is a record on a phone, not a table. */
@media (max-width: 719px) {
  .data-table--stack thead {
    display: none;
  }

  .data-table--stack,
  .data-table--stack tbody,
  .data-table--stack tr,
  .data-table--stack th,
  .data-table--stack td {
    display: block;
    width: 100%;
  }

  .data-table--stack {
    font-size: 0.86rem;
  }

  .data-table--stack tr {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .data-table--stack tr:last-child {
    border-bottom: 0;
  }

  .data-table--stack th[scope='row'] {
    padding: 0 0 0.3rem;
    border: 0;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }

  .data-table--stack td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.12rem 0;
    border: 0;
  }

  .data-table--stack td::before {
    content: attr(data-label);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    flex: none;
  }

  .data-table--stack td.data-table__num {
    text-align: right;
  }
}


.audit__meta {
  color: var(--ink-2);
  font-size: 0.7rem;
}

.t-sm {
  font-size: 0.78rem;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Admin media library, live desk, queue etc. */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.media-grid img {
  width: 100%;
  border-radius: var(--radius-xs);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tabs button,
.admin-tabs a {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-tabs [aria-current='page'],
.admin-tabs .is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.theme-gallery,
.theme-preview {
  display: none;
}

/* ---------- 13. Responsive ---------- */

@media (min-width: 480px) {
  :root {
    --gutter: 1.25rem;
  }

  .topbar__actions .btn--subscribe {
    display: inline-flex;
  }

  .home-ad-top,
  .article-ad-top,
  .listing-ad-top {
    display: block;
  }

  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Plans stay one per row on a phone: two price cards side by side leave no
     room for the feature list to read. */
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epaper-sheet__grid {
    grid-template-columns: 1.6fr 1fr;
  }

  .admin-grid--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 1.75rem;
  }

  body {
    font-size: 16.5px;
    padding-bottom: 0;
  }

  .tabbar,
  .social-bubble {
    display: none;
  }

  .brand__tagline {
    display: block;
  }

  .story--lead .story__media {
    aspect-ratio: 16 / 9;
  }

  .topbar__inner {
    min-height: 4.4rem;
  }

  .brand__mark {
    width: 2.9rem;
    height: 2.9rem;
  }

  .brand__name {
    font-size: 1.95rem;
  }

  .icon-btn__label {
    display: none;
  }

  .front {
    gap: 2.2rem;
  }

  .front__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.2rem;
  }

  .front__secondary .story--standard {
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .front__secondary .story--standard .story__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
  }

  .front__secondary .story--standard .story__title {
    font-size: 1.35rem;
  }

  .front__secondary .story--standard .story__standfirst {
    display: -webkit-box;
  }

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-block .section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .section-block .section-grid > .story {
    flex: initial;
  }

  .section-grid__ad {
    grid-column: 1 / -1;
  }

  .story--lead .story__title {
    font-size: 3rem;
  }

  .article__grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2.2rem;
  }

  .article__title {
    font-size: clamp(2.6rem, 6vw, 3.9rem);
  }

  .article__hero img {
    aspect-ratio: 16 / 9;
  }

  .article__rail {
    position: sticky;
    top: 7.5rem;
  }

  .article__meta-bar {
    flex-wrap: nowrap;
  }

  .share__btn-text {
    display: inline;
  }

  .live-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    align-items: start;
  }

  .stat-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .seat-chart {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
  }

  .seat-chart__donut {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .seat-chart__legend {
    grid-column: 2;
    grid-row: 1;
    /* Keep the party rows near the ring; stretching the column to the panel
       edge pushed the seat counts far away from what they describe. */
    max-width: 28rem;
    margin: 0;
  }

  .watch-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.8rem;
  }

  .watch-layout--vertical {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  }

  .short-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .short-card {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: start;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .epaper-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

  .epaper-sheet__grid {
    grid-template-columns: 1.7fr 1fr 1fr;
  }

  .subscribe-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .newsletter__row {
    flex-direction: row;
  }

  .newsletter__row button {
    flex: none;
  }

  .footer__lead {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 3rem;
  }

  .footer-legal__meta {
    order: 0;
    flex-basis: auto;
  }

  .consent {
    left: auto;
    right: 1.2rem;
    bottom: 1.2rem;
    max-width: 26rem;
  }

  .social-bubble {
    right: 1.2rem;
    bottom: 1.2rem;
  }

  .admin-main {
    padding: 0 1.5rem 3rem;
  }

  .admin-topbar {
    min-height: 4.4rem;
  }
}

@media (min-width: 1000px) {
  :root {
    --gutter: 2rem;
  }

  /* Body carries overflow-x: hidden, which makes it the scroll container and
     silently disables position: sticky — so the rail is fixed and the main
     column is offset by its width instead. */
  .admin-rail {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    width: 15.5rem;
    flex: none;
    transform: none;
    border-right: 1px solid var(--line);
  }

  .admin-nav-scrim,
  .admin-nav-toggle,
  .admin-rail__close,
  .admin-topbar__brand {
    display: none;
  }

  .nav__meta {
    display: flex;
  }

  .admin-main {
    margin-inline-start: 15.5rem;
    padding-inline: 2rem 2.5rem;
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .front {
    grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 1fr);
    gap: 2.4rem;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 7.2rem;
  }

  .rail-ad {
    display: block;
  }

  .story--lead .story__title {
    font-size: 3.6rem;
  }

  .story--lead .story__media {
    aspect-ratio: 16 / 9;
  }

  .section-block__title {
    font-size: 2.4rem;
  }

  .article__title {
    font-size: 4rem;
  }

  .article__standfirst {
    font-size: 1.16rem;
  }

  .article__hero {
    margin-inline: 0;
  }

  .article__hero img {
    border-radius: var(--radius-lg);
  }

  .hub-title {
    font-size: 4.4rem;
  }

  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .short-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .short-card {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 680px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .front {
    grid-template-columns: minmax(0, 1.9fr) minmax(18rem, 1fr);
  }

  .story--lead .story__title {
    font-size: 4.1rem;
  }

  .section-block .section-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Print */

@media print {
  .masthead,
  .tabbar,
  .ticker,
  .site-footer,
  .share,
  .reading-progress,
  .consent,
  .to-top,
  .splash,
  .social-bubble,
  .article__rail,
  .reader-tools,
  .ad-slot {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .article__title {
    font-size: 2.4rem;
  }

  a {
    text-decoration: underline;
  }
}

/* -------------------------------------------------------------------------
   Alerts — the install-and-notify surface
   ---------------------------------------------------------------------- */

.alerts-page__head {
  padding-top: 1.5rem;
  max-width: 44rem;
}

.alerts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  align-items: start;
  max-width: 62rem;
  margin-top: 1.25rem;
}

.alerts__card {
  padding: 1.35rem 1.45rem;
  background: var(--surface-1);
  border: 1px solid var(--line);
}

.alerts__card--quiet {
  background: var(--surface-2);
}

.alerts__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  margin: 0 0 0.35rem;
}

.alerts__copy {
  color: var(--ink-1);
  font-size: var(--step--1);
  line-height: 1.6;
  margin: 0.2rem 0 0.85rem;
}

.alerts__copy:last-child {
  margin-bottom: 0;
}

.alerts__switch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.alerts__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  flex: none;
}

.alerts__switch:disabled {
  cursor: progress;
  opacity: 0.65;
}

.alerts__switch-track {
  position: relative;
  width: 3.25rem;
  height: 1.9rem;
  border-radius: var(--pill);
  background: var(--surface-3);
  transition: background var(--transition);
}

.alerts__switch-thumb {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  transition: transform var(--transition);
}

.alerts__switch[aria-pressed='true'] .alerts__switch-track {
  background: var(--brand);
}

.alerts__switch[aria-pressed='true'] .alerts__switch-thumb {
  transform: translateX(1.35rem);
}

.alerts__switch-label {
  min-width: 3.2rem;
  font-size: var(--step--1);
  font-weight: 600;
}

.alerts__status {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.alerts__status[data-tone='ok'] {
  color: var(--brand);
}

.alerts__status[data-tone='warn'] {
  color: #a3275a;
}

.alerts__topics {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.alerts__topic {
  display: flex;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.alerts__topic:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.alerts__topic input {
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.alerts__topic-body {
  display: grid;
  gap: 0.15rem;
}

.alerts__topic-label {
  font-weight: 600;
}

.alerts__topic-detail {
  font-size: var(--step--2);
  line-height: 1.45;
  color: var(--ink-2);
}

.alerts__hint {
  margin: 0.15rem 0 0;
  font-size: var(--step--2);
  color: var(--ink-3);
}

.alerts__list {
  margin: 0.2rem 0 0.9rem;
  padding-left: 1.1rem;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-1);
}

.alerts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.alerts__unsupported {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* The admin preview of a notification, drawn as the tray draws it. */
.push-preview {
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  background: #0e3b2e;
  color: #f6f2ea;
  box-shadow: var(--shadow-soft);
}

.push-preview__app {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(246 242 234 / 72%);
}

.push-preview__time {
  margin-left: auto;
}

.push-preview__title {
  margin: 0.5rem 0 0.15rem;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
}

.push-preview__body {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.45;
  color: rgb(246 242 234 / 82%);
}

[data-mode='dark'] .alerts__status[data-tone='warn'] {
  color: #ffa7b8;
}

/* -------------------------------------------------------------------------
   Reading preferences
   The controls only ever set variables and attributes; these are the rules that
   make those mean something. Text size applies everywhere, line width and the
   distraction-free column apply in reader mode.
   ---------------------------------------------------------------------- */

.prose {
  font-size: calc(1.06rem * var(--reader-scale, 1));
}

.prose .subhead {
  font-size: calc(var(--step-1) * var(--reader-scale, 1));
}

html[data-reader-width='comfortable'] {
  --reader-measure: 40rem;
}

html[data-reader-width='wide'] {
  --reader-measure: 52rem;
}

html[data-reader='on'] .article__grid {
  grid-template-columns: minmax(0, 1fr);
}

html[data-reader='on'] .article__main-col {
  max-width: 56rem;
}

html[data-reader='on'] .prose {
  max-width: var(--reader-measure, 40rem);
  line-height: 1.85;
}

html[data-reader='on'] .article__rail,
html[data-reader='on'] .ad-slot,
html[data-reader='on'] .in-article-ad,
html[data-reader='on'] .article-ad-top,
html[data-reader='on'] .article-ad-bottom,
html[data-reader='on'] .article__header-share,
html[data-reader='on'] .article__footer-share,
html[data-reader='on'] .sponsored {
  display: none !important;
}

.reader-tools .reader-speak {
  margin-top: 0.65rem;
  padding: 0.7rem 0 0;
  border: 0;
  border-top: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
}

.reader-tools .reader-speak__row {
  gap: 0.45rem;
}

.reader-speak button {
  padding: 0.26rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.reader-speak button:hover {
  border-color: var(--ink);
  background: var(--surface-3);
}

.reader-speak__field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: var(--step--2);
  color: var(--ink-2);
}

.reader-speak__field select {
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step--2);
}

.reader-speak__status {
  margin-top: 0;
  margin-left: auto;
  font-size: var(--step--2);
  color: var(--ink-2);
}

.reader-controls button[aria-expanded='true'] {
  border-color: var(--ink);
  background: var(--surface-3);
}

/* -------------------------------------------------------------------------
   Story reactions
   The emoji bar under the article body. Same rows as the live card, so the
   count is the story's, not the surface's.
   ---------------------------------------------------------------------- */

.reactions {
  margin: 1.8rem 0 0;
  padding: 1.15rem 1.25rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reactions__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.9rem;
}

.reactions__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
}

.reactions__hint {
  margin: 0;
  font-size: var(--step--2);
  color: var(--ink-2);
}

.reactions__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.reaction--article {
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}

.reaction--article .reaction__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.reaction--article .reaction__label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
}

.reaction--article .reaction__count {
  color: var(--ink-2);
}

.reaction--article.is-mine,
.reaction--article.is-mine:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.reaction--article.is-mine .reaction__count {
  color: var(--ink);
}

.reaction--article:active {
  transform: scale(0.97);
}

/* ---------------------------------------------------------------------------
 * Touch feedback
 *
 * On a phone the grey tap flash is the default "did it work?" cue, and it lands
 * a beat after the tap. These rules drop it in favour of an immediate press
 * state on the controls a reader actually taps, and remove the double-tap zoom
 * delay so the tap is registered on press. Mouse hover, keyboard focus and
 * reduced-motion readers are left exactly as they were.
 * ------------------------------------------------------------------------ */
html {
  -webkit-tap-highlight-color: transparent;
}

.tabbar__item,
.reaction--article,
.poll__option,
.story__kicker,
.latest-item__kicker,
[data-bookmark-slug],
[data-share],
.reader-controls button {
  touch-action: manipulation;
}

@media (hover: none) {
  .tabbar__item,
  .poll__option,
  [data-bookmark-slug],
  [data-share] {
    transition: transform 90ms ease, opacity 90ms ease, background-color 90ms ease;
  }

  .tabbar__item:active,
  .story__kicker:active,
  .latest-item__kicker:active,
  .poll__option:active,
  [data-bookmark-slug]:active,
  [data-share]:active {
    transform: scale(0.97);
    opacity: 0.85;
  }

  .tabbar__item:active {
    background: var(--surface-2);
  }
}

@media (hover: none) and (prefers-reduced-motion: reduce) {
  .tabbar__item:active,
  .story__kicker:active,
  .latest-item__kicker:active,
  .poll__option:active,
  [data-bookmark-slug]:active,
  [data-share]:active {
    transform: none;
  }
}

.reaction--article:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reactions__status {
  margin: 0.8rem 0 0;
  font-size: var(--step--2);
  color: var(--ink-2);
}

@media (max-width: 520px) {
  .reactions {
    padding: 1rem;
  }

  .reaction--article .reaction__label {
    display: none;
  }
}

/* ==========================================================================
   Theme library
   Five presets, each a complete reading experience: palette, typefaces,
   scale, shape and density. The CMS picks one; readers get the same markup.
   ========================================================================== */

/* ---------- Extra typefaces (self-hosted latin subsets) ---------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-latin-700.woff2') format('woff2');
}

/* ---------- Classic: serif-led, warm paper ---------- */

[data-theme='classic'] {
  --font-display: 'Fraunces', 'Source Serif 4', Georgia, serif;
  --font-sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

[data-theme='classic'] .story__title,
[data-theme='classic'] .article__title,
[data-theme='classic'] .panel__title,
[data-theme='classic'] .section-block__title,
[data-theme='classic'] .harness h1,
[data-theme='classic'] .harness h2 {
  font-weight: 700;
  letter-spacing: -0.022em;
}

[data-theme='classic'] .article__title {
  line-height: 1;
}

[data-theme='classic'] .prose {
  font-size: 1.12rem;
  line-height: 1.78;
}

[data-theme='classic'] .prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Minimal: airy, hairline, teal ---------- */

[data-theme='minimal'] {
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --paper: #fcfcfb;
  --paper-deep: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #f4f5f3;
  --surface-3: #e8eae6;
  --surface-inverse: #0f766e;
  --ink: #101211;
  --ink-1: #3a3f3c;
  --ink-2: #6b716d;
  --ink-3: #9aa09b;
  --line: #e3e6e1;
  --line-soft: #eef0ec;
  --line-strong: #101211;

  --brand: #0f766e;
  --brand-soft: #e0f2ef;
  --brand-ink: #ffffff;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e0f2ef;
  --live: #b45309;
  --live-soft: #fdf1e3;
  --premium: #7c5c12;

  --tone-1: #0f766e;
  --tone-2: #1d4ed8;
  --tone-3: #b45309;
  --tone-4: #6d28d9;
  --tone-5: #be123c;
  --tone-6: #3f6212;

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --shadow: none;
  --shadow-soft: none;

  --gutter: 1.35rem;
  --step-6: 3rem;
  --step-5: 2.3rem;
  --step-4: 1.85rem;
  --step-3: 1.5rem;
}

[data-theme='minimal'] .story__title {
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.16;
}

[data-theme='minimal'] .article__title {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

[data-theme='minimal'] .story__kicker,
[data-theme='minimal'] .eyebrow,
[data-theme='minimal'] .hub-eyebrow,
[data-theme='minimal'] .section-block__title {
  letter-spacing: 0.22em;
  font-weight: 600;
}

[data-theme='minimal'] .story__kicker-dot {
  width: 0.3rem;
  height: 0.3rem;
}

[data-theme='minimal'] .panel,
[data-theme='minimal'] .story-card,
[data-theme='minimal'] .admin-card,
[data-theme='minimal'] .card,
[data-theme='minimal'] .seat-chart {
  box-shadow: none;
  border-color: var(--line);
}

[data-theme='minimal'] .btn,
[data-theme='minimal'] .btn--primary {
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

[data-theme='minimal'] .prose {
  font-size: 1.02rem;
  line-height: 1.8;
  letter-spacing: 0.002em;
}

/* ---------- Pulse: broadcast newsroom, dark-first ---------- */

[data-theme='pulse'] {
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --paper: #f4f6f9;
  --paper-deep: #e9edf3;
  --surface: #ffffff;
  --surface-2: #edf1f7;
  --surface-3: #dfe5ee;
  --surface-inverse: #0b1220;
  --ink: #090c12;
  --ink-1: #333b47;
  --ink-2: #626c7a;
  --ink-3: #8f98a5;
  --line: #dde3ec;
  --line-soft: #eaeff6;
  --line-strong: #090c12;

  --brand: #0b1220;
  --brand-soft: #e5eaf3;
  --brand-ink: #ffffff;
  --accent: #e11d48;
  --accent-ink: #ffffff;
  --accent-soft: #ffe2e9;
  --live: #e11d48;
  --live-soft: #ffe2e9;
  --premium: #b45309;

  --tone-1: #0b1220;
  --tone-2: #1d4ed8;
  --tone-3: #c2410c;
  --tone-4: #7c3aed;
  --tone-5: #e11d48;
  --tone-6: #15803d;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow: 0 22px 45px -34px rgba(9, 12, 18, 0.75);
  --shadow-soft: 0 12px 28px -24px rgba(9, 12, 18, 0.6);
}

[data-theme='pulse'][data-mode='dark'] {
  --paper: #080b10;
  --paper-deep: #0b0f15;
  --surface: #0f141b;
  --surface-2: #161d26;
  --surface-3: #1e2732;
  --surface-inverse: #f5f7fa;
  --ink: #f5f7fa;
  --ink-1: #c2cad6;
  --ink-2: #8d97a5;
  --ink-3: #697384;
  --line: #222b36;
  --line-soft: #1a222b;
  --line-strong: #f5f7fa;

  --brand: #ff3d63;
  --brand-soft: #33121d;
  --brand-ink: #120409;
  --accent: #ff3d63;
  --accent-ink: #120409;
  --accent-soft: #3a1420;
  --live: #ff4d6d;
  --live-soft: #3a1420;
  --premium: #f0b45f;

  --tone-1: #ff8ba0;
  --tone-2: #8db4ff;
  --tone-3: #ffab7a;
  --tone-4: #c4a6ff;
  --tone-5: #ff8fab;
  --tone-6: #86d99a;
}

[data-theme='pulse'] .story__title {
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 0.99;
}

[data-theme='pulse'] .article__title {
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 0.94;
}

[data-theme='pulse'] .story__kicker,
[data-theme='pulse'] .eyebrow,
[data-theme='pulse'] .hub-eyebrow,
[data-theme='pulse'] .section-block__title {
  font-weight: 700;
  letter-spacing: 0.17em;
}

[data-theme='pulse'] .section-block__title {
  text-transform: uppercase;
  font-family: var(--font-display);
}

[data-theme='pulse'] .badge--live {
  background: var(--live);
  color: #fff;
}

/* ---------- Bold: poster headlines, hard edges ---------- */

[data-theme='bold'] {
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --paper: #fff5ec;
  --paper-deep: #fce9d9;
  --surface: #fffdfa;
  --surface-2: #f8e9db;
  --surface-3: #efd6c1;
  --surface-inverse: #1a1013;
  --ink: #1a1013;
  --ink-1: #4a3238;
  --ink-2: #7d5c61;
  --ink-3: #a98d90;
  --line: #e3cbb8;
  --line-soft: #f2e2d3;
  --line-strong: #1a1013;

  --brand: #1a1013;
  --brand-soft: #f4e0d3;
  --brand-ink: #fff5ec;
  --accent: #d7263d;
  --accent-ink: #fff5ec;
  --accent-soft: #ffdfe2;
  --live: #d7263d;
  --live-soft: #ffdfe2;
  --premium: #9a6100;

  --tone-1: #1a1013;
  --tone-2: #1f5f8b;
  --tone-3: #d7263d;
  --tone-4: #5c46a8;
  --tone-5: #a3275a;
  --tone-6: #4b6b2b;

  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius: 2px;
  --radius-lg: 3px;
  --radius-xl: 4px;
  --shadow: 7px 7px 0 rgba(26, 16, 19, 0.14);
  --shadow-soft: 4px 4px 0 rgba(26, 16, 19, 0.09);
}

[data-theme='bold'][data-mode='dark'] {
  --paper: #140c0f;
  --paper-deep: #190f12;
  --surface: #201316;
  --surface-2: #2a1a1e;
  --surface-3: #352126;
  --surface-inverse: #fff5ec;
  --ink: #fff5ec;
  --ink-1: #e2c8c8;
  --ink-2: #b3949a;
  --ink-3: #8a6f74;
  --line: #3a2227;
  --line-soft: #2c191d;
  --line-strong: #fff5ec;

  --brand: #ff8fa3;
  --brand-soft: #3a1a22;
  --brand-ink: #1a0810;
  --accent: #ff5d73;
  --accent-ink: #200509;
  --accent-soft: #3d1a22;
  --live: #ff6b81;
  --live-soft: #3d1a22;
  --premium: #e9b45d;

  --tone-1: #ff9fae;
  --tone-2: #93bff0;
  --tone-3: #ff9b76;
  --tone-4: #c3aef7;
  --tone-5: #f49ac0;
  --tone-6: #b7d591;

  --shadow: 7px 7px 0 rgba(0, 0, 0, 0.5);
  --shadow-soft: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

[data-theme='bold'] .story__title,
[data-theme='bold'] .article__title {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
}

[data-theme='bold'] .story__title {
  line-height: 1.02;
}

[data-theme='bold'] .story__kicker {
  background: var(--tone, var(--accent));
  color: #fff8f2;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

[data-theme='bold'] .story__kicker-dot,
[data-theme='bold'] .story__kicker-sep,
[data-theme='bold'] .story__kicker-kind {
  display: none;
}

[data-theme='bold'] .story-card,
[data-theme='bold'] .card {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}

[data-theme='bold'] .btn {
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  box-shadow: 3px 3px 0 var(--line-strong);
  font-weight: 700;
}

[data-theme='bold'] .btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line-strong);
}

/* ---------- Dense: compact Broadsheet grid ---------- */

[data-theme='dense'] {
  --font-display: 'Barlow Semi Condensed', 'Archivo', 'Inter', sans-serif;
  --font-sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --paper: #f7f4ee;
  --paper-deep: #efeae1;
  --surface: #fffdf8;
  --surface-2: #f1ece3;
  --surface-3: #e5ded1;
  --surface-inverse: #7c2d12;
  --ink: #15130f;
  --ink-1: #403a33;
  --ink-2: #6c655c;
  --ink-3: #948c81;
  --line: #ded5c7;
  --line-soft: #ece5d9;
  --line-strong: #15130f;

  --brand: #9a3412;
  --brand-soft: #f6e3d7;
  --brand-ink: #fffaf4;
  --accent: #b23c17;
  --accent-ink: #fffaf4;
  --accent-soft: #f8ded1;
  --live: #c1121f;
  --live-soft: #fbe0e2;
  --premium: #8a5a00;

  --tone-1: #9a3412;
  --tone-2: #1f5f8b;
  --tone-3: #b23c17;
  --tone-4: #5c46a8;
  --tone-5: #a3275a;
  --tone-6: #4b6b2b;

  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --shadow: 0 14px 30px -28px rgba(21, 19, 15, 0.55);
  --shadow-soft: 0 8px 20px -20px rgba(21, 19, 15, 0.45);

  --step--2: 0.62rem;
  --step--1: 0.72rem;
  --step-0: 0.9rem;
  --step-1: 1.02rem;
  --step-2: 1.18rem;
  --step-3: 1.42rem;
  --step-4: 1.78rem;
  --step-5: 2.2rem;
  --step-6: 2.8rem;

  --gutter: 0.9rem;
}

[data-theme='dense'][data-mode='dark'] {
  --paper: #0f0e0c;
  --paper-deep: #131210;
  --surface: #181613;
  --surface-2: #201d19;
  --surface-3: #2a2621;
  --surface-inverse: #f7f4ee;
  --ink: #f6f2ea;
  --ink-1: #d3ccc0;
  --ink-2: #a09990;
  --ink-3: #7a746b;
  --line: #2c2823;
  --line-soft: #221f1b;
  --line-strong: #f6f2ea;

  --brand: #ff9b6a;
  --brand-soft: #35190f;
  --brand-ink: #160903;
  --accent: #ff8b5c;
  --accent-ink: #160903;
  --accent-soft: #3a1a10;
  --live: #ff7a86;
  --live-soft: #3a1418;
  --premium: #e9b45d;

  --tone-1: #ffa87f;
  --tone-2: #8dc5ea;
  --tone-3: #f0a36d;
  --tone-4: #bcabf2;
  --tone-5: #ef9ab8;
  --tone-6: #b3d18b;
}

[data-theme='dense'] .story__title {
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.04;
}

[data-theme='dense'] .article__title {
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 0.98;
}

[data-theme='dense'] .story__kicker,
[data-theme='dense'] .eyebrow,
[data-theme='dense'] .section-block__title {
  letter-spacing: 0.08em;
}

[data-theme='dense'] .prose {
  font-size: 1.02rem;
  line-height: 1.66;
}

/* ---------- CMS theme picker ---------- */

.theme-picker {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.theme-picker legend {
  padding: 0;
  margin-bottom: 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.theme-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.55rem;
}

.theme-picker__option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.theme-picker__option:hover {
  border-color: var(--ink-3);
  background: var(--surface-2);
}

.theme-picker__option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
}

.theme-picker__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-picker__swatch {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--swatch, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch, var(--accent)) 18%, transparent);
  flex: none;
}

.theme-picker__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.theme-picker__body strong {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--ink);
}

.theme-picker__ref {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.theme-picker__desc {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-2);
}

.theme-picker__option:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}


/* ==========================================================================
   Finish
   Small, shared refinements that make a page feel typeset rather than
   rendered: balanced headlines, quiet focus rings, restrained motion.
   ========================================================================== */

.story__title,
.article__title,
.hub-title,
.panel__title,
.section-block__title,
.tv-stage__next,
.epaper-sheet__headline {
  text-wrap: balance;
}

.story__standfirst,
.article__standfirst,
.hub-lede,
.prose p {
  text-wrap: pretty;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.prose a {
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.prose a:hover {
  text-decoration-color: var(--accent);
  color: var(--ink);
}

/* Numbers in tables, scorecards and timestamps line up in a column. */
.dtable td,
.seat-chart__legend li > span:last-child,
.live-feed__meta time,
.score-table td,
.tv-schedule__at {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

@media (hover: hover) {
  .story-card img,
  .card img,
  .video-card img {
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 520ms ease;
  }

  .story-card:hover img,
  .card:hover img,
  .video-card:hover img {
    transform: scale(1.015);
  }

  .panel--live-feed:hover {
    box-shadow: var(--shadow-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* A hairline scrollbar on desktop keeps long editors and tables quiet. */
@media (min-width: 1000px) {
  * {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ink-3) 55%, transparent) transparent;
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
    background-color: color-mix(in srgb, var(--ink-3) 55%, transparent);
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--ink-2) 75%, transparent);
  }
}

/* ==========================================================================
   CMS account, compact rail and the writing surface
   ========================================================================== */

.admin-body {
  line-height: 1.55;
}

.admin-card h2 {
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.admin-card .field label {
  line-height: 1.35;
}

/* ---------- Compact rail ---------- */

@media (min-width: 1000px) {
  .admin-rail {
    width: 14rem;
    padding: 0.8rem 0.6rem 0.9rem;
  }

  .admin-main {
    margin-inline-start: 14rem;
  }
}

.admin-rail__brand {
  gap: 0.45rem;
  padding: 0.1rem 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.admin-rail__brand::before {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0;
}

.admin-rail__group {
  padding: 0.55rem 0.5rem 0.2rem;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.admin-rail__link {
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-rail__link-inner {
  gap: 0.5rem;
}

.admin-rail__icon {
  width: 0.95rem;
  height: 0.95rem;
}

.admin-rail__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.7rem 0.5rem 0;
  border-top: 1px solid var(--line);
}

.admin-rail__foot-body {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.25;
}

.admin-rail__foot-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rail__foot-role {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Avatar ---------- */

.admin-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--brand);
}

.admin-avatar--initials {
  display: grid;
  place-items: center;
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-avatar--small {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.6rem;
}

.admin-avatar--large {
  width: 4rem;
  height: 4rem;
  font-size: 1.15rem;
}

/* ---------- Account menu ---------- */

.admin-account {
  position: relative;
}

.admin-account__trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.5rem 0.28rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition);
}

.admin-account__trigger:hover,
.admin-account__trigger[aria-expanded='true'] {
  background: var(--surface-2);
  border-color: var(--ink-3);
}

.admin-account__who {
  display: grid;
  gap: 0.05rem;
  text-align: left;
  line-height: 1.2;
}

.admin-account__name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account__role {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.admin-account__chevron {
  color: var(--ink-2);
}

.admin-account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 400;
  display: grid;
  gap: 0.1rem;
  width: 16.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-account__menu[hidden] {
  display: none;
}

.admin-account__head {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem 0.65rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.3;
}

.admin-account__head strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.admin-account__head span {
  font-size: 0.76rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.admin-account__pill {
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-account__form {
  margin: 0;
}

.admin-account__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.48rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-1);
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-account__link svg {
  opacity: 0.7;
}

.admin-account__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.admin-account__link--out {
  color: var(--live);
}

.admin-account__link--out:hover {
  background: color-mix(in srgb, var(--live) 10%, var(--surface));
  color: var(--live);
}

@media (max-width: 700px) {
  .admin-account__who {
    display: none;
  }
}

/* ---------- Account page ---------- */

.admin-grid--account {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: start;
  gap: 1rem;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.account-head__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  line-height: 1.35;
}

.account-head__body strong {
  font-size: var(--step-0);
  color: var(--ink);
}

.account-head__body span {
  font-size: var(--step--1);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* ---------- Editor ---------- */

.editor {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.editor:focus-within {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.editor__group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.editor__group--end {
  margin-left: auto;
  gap: 0.4rem;
}

.editor__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.editor__btn:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.editor__btn[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.editor__count {
  padding-inline: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
}

.editor textarea {
  display: block;
  width: 100%;
  min-height: 22rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  font-family: var(--font-read);
  font-size: 1.02rem;
  line-height: 1.72;
  resize: vertical;
}

.editor textarea:focus {
  outline: 0;
  box-shadow: none;
}

.editor__preview {
  max-height: 30rem;
  overflow: auto;
  padding: 1rem 1.1rem 1.4rem;
  border-top: 1px dashed var(--line);
  background: var(--paper);
}

.editor__preview .editor__empty {
  color: var(--ink-3);
  font-style: italic;
}

/* ---------- Media attach ---------- */

.media-attach {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.media-attach img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.media-attach figcaption {
  display: grid;
  gap: 0.2rem;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-2);
}

.media-attach figcaption strong {
  color: var(--ink);
}

.media-attach__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.media-attach--wide {
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  align-items: start;
}

.media-attach__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
}

.media-attach__frame iframe,
.media-attach__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-attach__body {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  font-size: var(--step--1);
  line-height: 1.45;
}

.media-or {
  position: relative;
  margin: 0.75rem 0;
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.media-or::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line-soft);
}

.media-or span {
  position: relative;
  padding: 0 0.6rem;
  background: var(--surface);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field-inline input {
  flex: 1;
  min-width: 0;
}

.field-inline .btn {
  white-space: nowrap;
}

.field__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

/* ---------- Reader lists ---------- */

.prose-list {
  margin: 1rem 0 1.3rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.prose-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.prose-list li::marker {
  color: var(--accent);
}

/* ---------- Story video ---------- */

.article__video {
  margin-bottom: 1.5rem;
}

.article__video-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
}

.article__video-frame iframe,
.article__video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-attach--wide .media-attach__frame {
  grid-column: 1;
}

/* ---------- Drawn share card ---------- */

/* The card is 1200 × 630 by design. Cropping it to the article's 16:9 (or 3:2
   on a phone) would clip the masthead and the byline, so it keeps its own
   frame wherever it stands in for a photograph. It also gives up the full
   column width on a wide screen: set full-bleed it reads as a second headline,
   inset it reads as the graphic it is. */
.article__hero--drawn {
  max-width: 34rem;
  margin-inline: auto;
}

.article__hero--drawn img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article__hero--drawn .figure__caption {
  justify-content: center;
}

/* The editor's preview, in the same frame the social platforms will see. */
.media-attach--card img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--tone-1, #0e3b2e);
}

/* A drawn card is 1200 × 630. The default media slot is 16:10, which crops the
   masthead and the first letters of the headline off the card, so the slot
   takes the card's own proportions instead. */
.story__media--drawn {
  aspect-ratio: 1200 / 630;
}

/* ...except where the slot is a small square: there the card is a fragment of
   type and the masthead's mark reads better. */
.front__secondary .story--standard .story__media--drawn {
  display: grid;
  place-items: center;
  background: #0e3b2e;
}

.front__secondary .story--standard .story__media--drawn img {
  display: none;
}

.front__secondary .story--standard .story__media--drawn::before {
  content: "b";
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #f7f3ea;
}

/* Devanagari sets taller and deeper than Latin: the matras sit above the cap
   height and the ी/ु/ृ marks hang below the baseline. The display sizes above
   were tuned for capital letters and shallow descenders, so at a line-height
   near 1 the top and bottom of a Hindi headline are clipped by its own line
   box. Hindi gets a floor on the headings that run tight. */
html[lang^="hi"] h1,
html[lang^="hi"] h2,
html[lang^="hi"] h3,
html[lang^="hi"] .story__title,
html[lang^="hi"] .story--lead .story__title,
html[lang^="hi"] .section-block__title,
html[lang^="hi"] .panel__title,
html[lang^="hi"] .video-card__title {
  line-height: 1.34;
  padding-block: 0.04em;
}

/* Body copy gets the same treatment, one notch looser. */
html[lang^="hi"] .story__standfirst,
html[lang^="hi"] .article__body,
html[lang^="hi"] p {
  line-height: 1.7;
}

/* The card variants above set their own tighter title leading with three
   selectors (.front__secondary .story--standard .story__title, the latest-feed
   sixth-item rules), so the Hindi floor needs equal or greater weight to reach
   them — otherwise only the lead headline gets the room. */
html[lang^="hi"] .story .story__title,
html[lang^="hi"] .latest-feed__item .story__title,
html[lang^="hi"] .latest-feed__item:nth-child(6n + 1) .story__title,
html[lang^="hi"] .front__secondary .story--standard .story__title,
html[lang^="hi"] .section-block .section-grid .story__title,
html[lang^="hi"] .story--compact .story__title,
html[lang^="hi"] .story--row .story__title {
  line-height: 1.34;
}

/* The article title carries the same problem as the card titles: the base rule
   is 0.98 and the theme rules ([data-theme='classic'] .article__title) set 1,
   both of which cut Devanagari's upper and lower matras. Two classes of weight
   plus the lang attribute clears every theme variant. */
html[lang^="hi"] .article__title,
html[lang^="hi"] .article__standfirst,
html[lang^="hi"] .article__body,
html[lang^="hi"] .article__body p,
html[lang^="hi"] .page__title,
html[lang^="hi"] .section-block__title {
  line-height: 1.3;
  padding-block: 0.04em;
}

html[lang^="hi"] .article__body p {
  line-height: 1.75;
}

/* Devanagari typefaces, self-hosted like the rest: Noto Serif Devanagari for headlines (
   a variable serif from 400 to 900, so the 700 is a drawn weight), Noto Sans
   Devanagari for text. Only the Devanagari subset of each is downloaded; Latin
   and digits keep falling through to the Latin stacks, which is why the ranges
   below are the Devanagari blocks alone rather than the whole font. */
@font-face {
  font-family: 'Noto Serif Devanagari';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-serif-devanagari-var.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

@font-face {
  font-family: 'Noto Serif Devanagari';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-serif-devanagari-var.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/noto-sans-devanagari-var.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

html[lang^="hi"] body,
html[lang^="hi"] button,
html[lang^="hi"] input,
html[lang^="hi"] select,
html[lang^="hi"] textarea {
  font-family: 'Noto Sans Devanagari', 'Fira Sans', system-ui, sans-serif;
}

html[lang^="hi"] h1,
html[lang^="hi"] h2,
html[lang^="hi"] h3,
html[lang^="hi"] h4,
html[lang^="hi"] .story__title,
html[lang^="hi"] .article__title,
html[lang^="hi"] .section-block__title,
html[lang^="hi"] .panel__title,
html[lang^="hi"] .page__title,
html[lang^="hi"] .video-card__title,
html[lang^="hi"] .footer-col__title,
html[lang^="hi"] .brand__name {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', Georgia, serif;
  font-weight: 700;
}

/* The Devanagari wordmark sets narrower than the Latin string at the same size. */
html[lang^="hi"] .brand__name {
  letter-spacing: 0;
  font-size: 1.42rem;
}

/* The splash wordmark is the same brand name at hero size, so it takes the same
   face rather than falling back for its Devanagari. */
html[lang^="hi"] .splash__name {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', Georgia, serif;
  letter-spacing: 0;
  font-size: 1.5rem;
}

html[lang^="hi"] .story__title,
html[lang^="hi"] .article__title,
html[lang^="hi"] .section-block__title,
html[lang^="hi"] .panel__title {
  line-height: 1.36;
}

/* Hindi type-scale corrections. The Devanagari faces set smaller and lighter
   than the Latin stacks at the same size: the Devanagari wordmark reads small beside
   the 34px mark, Noto Sans Devanagari's 400 reads thin in the live wire, and the
   lead headline — sized for a Latin serif — dominates the front page. These are
   scoped to the Hindi edition; the English scale is untouched. */
html[lang^="hi"] .story .story__title,
html[lang^="hi"] .latest-feed__item .story__title,
html[lang^="hi"] .latest-feed__item:nth-child(6n + 1) .story__title,
html[lang^="hi"] .front__secondary .story--standard .story__title,
html[lang^="hi"] .section-block .section-grid .story__title,
html[lang^="hi"] .story--compact .story__title,
html[lang^="hi"] .story--row .story__title {
  font-size: 1.5rem;
}

html[lang^="hi"] .section-block__title {
  font-size: 2rem;
}

html[lang^="hi"] .panel__title {
  font-size: 1.4rem;
}

/* Last, so it outranks the card sizes above for the lead story. */
html[lang^="hi"] .story--lead .story__title {
  font-size: clamp(2rem, 4.1vw, 2.95rem);
}

/* The wordmark was shrunk to 1.42rem when Devanagari first landed; at 34px of
   mark beside it, the name needs the Latin scale back. */
html[lang^="hi"] .brand__name {
  font-size: 2.05rem;
}

/* Noto Sans Devanagari's 400 reads lighter than Fira Sans at the same size. */
html[lang^="hi"] .live-feed__item,
html[lang^="hi"] .live-feed__link,
html[lang^="hi"] .story__meta,
html[lang^="hi"] .story__standfirst,
html[lang^="hi"] .footer-col__list a,
html[lang^="hi"] .nav__link {
  font-weight: 500;
}

html[lang^="hi"] .live-feed__item {
  font-size: 1.06rem;
}

html[lang^="hi"] p:not([class]),
html[lang^="hi"] .article__body p {
  font-size: 1rem;
}

/* Live-wire metadata: the timestamp and the city are the two things a reader
   scans down the rail for, so they carry real weight and full ink instead of
   fading into the muted grey. Scoped to the Hindi edition, where Noto Sans
   Devanagari's defaults read lighter than the Latin stack's. */
html[lang^="hi"] .live-feed__desk {
  font-family: 'Noto Sans Devanagari', 'Fira Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 1;
}

/* The entry body stays 500: heavier text at reading size turns the rail into a
   wall of bold and undoes the point of bolding the label. */
html[lang^="hi"] .live-feed__link {
  font-weight: 500;
}
/* The clock is a bare <time> inside .live-feed__meta rather than its own class,
   so it has to be reached through the meta row. Both the clock and the city are
   what a reader scans down the rail for, so they get full ink, a drawn bold and
   a size up from the muted 10px metadata they were inheriting. */
html[lang^="hi"] .live-feed__meta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

html[lang^="hi"] .live-feed__meta time {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

html[lang^="hi"] .live-feed__desk {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* The entry body follows the labels up a notch, otherwise bolding only the
   labels leaves the rail looking top-heavy. */
html[lang^="hi"] .live-feed__text {
  font-size: 0.84rem;
  font-weight: 500;
}
/* The 1rem body bump above is for running copy. It was matching classed
   paragraphs too, which turned the footer's fine print into 16px display text;
   classed paragraphs are back on their own scale, and only the legal line gets
   a hair more size and leading, which Devanagari needs to stay legible. */
html[lang^="hi"] .footer-legal {
  font-size: 0.72rem;
  line-height: 1.65;
}
/* On the smallest phones the four labels no longer fit even without their
   icons, so the pills tighten their padding and tracking rather than break
   onto a second row. */
@media (max-width: 350px) {
  .reader-controls {
    gap: 0.2rem;
  }

  .reader-controls button {
    padding: 0.42rem 0.18rem;
    font-size: 0.64rem;
    letter-spacing: -0.01em;
  }
}
/* Supporting lines — standfirsts, deks and the footer tagline — were still set
   in the Latin reading face, so their Devanagari fell through to a system font
   at a size meant for a Latin serif. That is what read as oversized everywhere.
   They take the Hindi text face and sit one clear step under body copy. */
html[lang^="hi"] .article__standfirst,
html[lang^="hi"] .story__standfirst,
html[lang^="hi"] .latest-item__standfirst,
html[lang^="hi"] .live-head__standfirst,
html[lang^="hi"] .video-card__standfirst,
html[lang^="hi"] .episode-standfirst,
html[lang^="hi"] .podcast-standfirst,
html[lang^="hi"] .section-desc {
  font-family: 'Noto Sans Devanagari', 'Fira Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
}

/* The tagline under the wordmark is a signature, not a sentence: it sits a
   further step down than a dek. */
html[lang^="hi"] .footer__tagline {
  font-family: 'Noto Sans Devanagari', 'Fira Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Micro-type. The eyebrows, kickers and ad captions sat at 8.8–9.6px, a caption
   scale tuned for uppercase Latin; Devanagari loses its matras well before that
   and reads as a smudge above a headline. One step up, with the tracking pulled
   back because Devanagari already carries its own spacing. */
html[lang^="hi"] .eyebrow,
html[lang^="hi"] .story__kicker,
html[lang^="hi"] .latest-item__kicker,
html[lang^="hi"] .ad-slot__label,
html[lang^="hi"] .ad-slot__sponsor,
html[lang^="hi"] .ad-banner__tag {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

/* The rail and section links are the way out of a block: at 600 they read as
   navigation rather than as another line of fine print. */
html[lang^="hi"] .panel__more,
html[lang^="hi"] .section-block__more {
  font-weight: 600;
  letter-spacing: 0;
}