/* =============================================================================
   AYS NEWS — Design System
   Awareness · Youth · Society
   A self-contained, professional news-agency stylesheet.
   Palette: authoritative navy with red reserved for BREAKING / LIVE.
   ============================================================================= */

/* ----------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #081426;
  --navy-800: #0b1f3a;
  --navy-700: #10294b;
  --navy-600: #17375f;
  --navy-500: #21497a;
  --navy-050: #eef2f7;

  --red-600: #c81e2b;
  --red-700: #a5121e;
  --red-050: #fbeced;

  /* Ink & surfaces */
  --ink: #14181f;
  --ink-soft: #333b46;
  --muted: #5c6773;
  --muted-2: #6b7684;
  --paper: #ffffff;
  --mist: #f5f7f9;
  --mist-2: #eef1f4;
  --line: #e0e5ea;
  --line-strong: #c8d0d9;

  /* Category accents */
  --cat-world: #1a5fd0;
  --cat-politics: #7c3aed;
  --cat-business: #0f766e;
  --cat-technology: #1f52cc;
  --cat-science: #0e7490;
  --cat-health: #db2777;
  --cat-climate: #16a34a;
  --cat-sports: #c2410c;
  --cat-culture: #9333ea;
  --cat-entertainment: #e11d48;
  --cat-opinion: #4b5563;

  /* Typography */
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1240px;
  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(9, 22, 40, 0.08);
  --shadow: 0 4px 16px rgba(9, 22, 40, 0.10);
  --shadow-lg: 0 12px 40px rgba(9, 22, 40, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Themed surfaces (light defaults) */
  --bg: var(--paper);
  --bg-alt: var(--mist);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --header-bg: var(--paper);
  --link: var(--navy-600);
  --link-strong: var(--navy-700);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #e8ecf1;
  --ink-soft: #c3cbd6;
  --muted: #98a4b3;
  --muted-2: #7a8697;
  --paper: #0e1621;
  --mist: #131e2b;
  --mist-2: #18242f;
  --line: #24303e;
  --line-strong: #33414f;

  --bg: #0b1017;
  --bg-alt: #0e1621;
  --surface: #101a26;
  --text: #e8ecf1;
  --text-soft: #c3cbd6;
  --border: #24303e;
  --header-bg: #0b1119;
  --link: #6ea8ff;
  --link-strong: #93c0ff;
  color-scheme: dark;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

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

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

ul { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  font-size: 0.85rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cat-world); outline-offset: 2px; }

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

/* ----------------------------------------------------------------------------
   3. Header — top bar
   ---------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 100; }

.topbar {
  background: var(--navy-900);
  color: #cdd7e4;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 16px;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__date { color: #eaf0f7; font-weight: 600; letter-spacing: 0.02em; }
.topbar__edition {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.14);
}
.topbar__edition::before { content: "🌐"; font-size: 0.85em; }
.topbar__links { display: flex; gap: 14px; }
.topbar__links a { color: #b9c5d6; }
.topbar__links a:hover { color: #fff; text-decoration: none; }

.weather { display: inline-flex; align-items: center; gap: 6px; color: #d7e0ec; }
.weather__icon { font-size: 1rem; }
.weather__temp { font-weight: 700; color: #fff; }

.social { display: flex; gap: 4px; }
.social a {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  color: #b9c5d6; transition: background .15s, color .15s;
}
.social a:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.social svg { width: 14px; height: 14px; fill: currentColor; }

.theme-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.18); color: #cdd7e4;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  transition: background .15s, border-color .15s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.theme-toggle svg { width: 15px; height: 15px; fill: currentColor; }

/* ----------------------------------------------------------------------------
   4. Header — masthead
   ---------------------------------------------------------------------------- */
.masthead { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.masthead__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 84px; gap: 16px;
}

.menu-toggle {
  display: none; background: transparent; border: 0; color: var(--text);
  width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0;
}
.menu-toggle svg { width: 24px; height: 24px; stroke: currentColor; }

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: center; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; }
.brand__mark svg { display: block; height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--font-serif); font-weight: 700; font-size: 2.05rem; letter-spacing: -0.02em;
  color: var(--text);
}
.brand__word b { color: var(--red-600); font-weight: 700; }
.brand__tag {
  font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); margin-top: 5px; font-weight: 700;
}

.masthead__actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.masthead__left { display: flex; align-items: center; gap: 8px; }

.search { position: relative; display: flex; align-items: center; }
.search__input {
  width: 180px; height: 40px; border: 1px solid var(--border); background: var(--bg-alt);
  border-radius: 999px; padding: 0 40px 0 16px; color: var(--text); font-size: 0.86rem;
  transition: width .25s var(--ease), border-color .15s, background .15s;
}
.search__input:focus { width: 240px; outline: none; border-color: var(--navy-500); background: var(--surface); }
.search__input::placeholder { color: var(--muted-2); }
.search__btn {
  position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); display: grid; place-items: center;
}
.search__btn:hover { color: var(--link); }
.search__btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }

.btn-live {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  background: var(--red-600); color: #fff; border-radius: 999px; font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.btn-live:hover { background: var(--red-700); text-decoration: none; }
.btn-live .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.8); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.btn-subscribe {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  background: var(--navy-800); color: #fff; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
.btn-subscribe:hover { background: var(--navy-700); text-decoration: none; }

/* ----------------------------------------------------------------------------
   5. Header — main navigation
   ---------------------------------------------------------------------------- */
.mainnav { background: var(--navy-800); position: sticky; top: 0; z-index: 90; }
.mainnav.is-stuck { box-shadow: var(--shadow); }
.mainnav__inner { display: flex; align-items: stretch; justify-content: space-between; }
.mainnav__list { display: flex; align-items: stretch; list-style: none; flex-wrap: wrap; }
.mainnav__list > li { display: flex; }
.mainnav__list a {
  display: inline-flex; align-items: center; height: 46px; padding: 0 15px; color: #dbe4ef;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: color .12s, background .12s, border-color .12s;
}
.mainnav__list a:hover { color: #fff; background: rgba(255,255,255,0.07); text-decoration: none; }
.mainnav__list a[aria-current="page"] { color: #fff; border-bottom-color: var(--red-600); }
.mainnav__list a.is-live { color: #ffb3b8; }
.mainnav__list a.is-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-600);
  margin-right: 6px; animation: pulse 1.6s infinite;
}
.mainnav__right { display: flex; align-items: center; }
.mainnav__brand-mini { display: none; align-items: center; gap: 8px; color: #fff; font-family: var(--font-serif); font-weight: 700; }
.mainnav__brand-mini b { color: #ff8b93; }

/* ----------------------------------------------------------------------------
   6. Breaking bar & ticker
   ---------------------------------------------------------------------------- */
.breaking {
  background: var(--red-600); color: #fff; overflow: hidden;
  display: flex; align-items: stretch; min-height: 42px;
}
.breaking__label {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red-700);
  padding: 0 16px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem;
  flex: none; position: relative; white-space: nowrap;
}
.breaking__label::after {
  content: ""; position: absolute; right: -9px; top: 0; bottom: 0; width: 18px; background: var(--red-700);
  transform: skewX(-16deg);
}
.breaking__viewport { flex: 1; overflow: hidden; position: relative; }
.breaking__track {
  display: flex; align-items: center; height: 100%; gap: 0; white-space: nowrap;
  will-change: transform;
  animation: ticker 42s linear infinite;
}
/* Two identical sequences → translateX(-50%) is a seamless loop */
.breaking__seq { display: flex; align-items: center; gap: 40px; padding: 0 20px 0 20px; flex: none; }
.breaking:hover .breaking__track,
.breaking:focus-within .breaking__track,
.breaking.is-paused .breaking__track { animation-play-state: paused; }
.breaking__item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; }
.breaking__item a { color: #fff; }
.breaking__item a:hover { text-decoration: underline; }
.breaking__item time { font-variant-numeric: tabular-nums; opacity: 0.8; font-size: 0.76rem; font-weight: 700; }
.breaking__item::before { content: "•"; opacity: 0.55; }
.breaking__pause {
  flex: none; background: var(--red-700); color: #fff; border: 0; width: 40px;
  display: grid; place-items: center; cursor: pointer;
}
.breaking__pause:hover { background: #8f0f19; }
.breaking__pause svg { width: 14px; height: 14px; fill: currentColor; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------------------
   7. Section headers & kickers
   ---------------------------------------------------------------------------- */
.section { padding: 34px 0; }
.section + .section { padding-top: 8px; }
.section--alt { background: var(--bg-alt); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; border-bottom: 2px solid var(--text); padding-bottom: 8px;
}
.section-head__title {
  font-size: 1.35rem; letter-spacing: -0.01em; position: relative;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-head__title::before {
  content: ""; width: 6px; height: 1.05em; background: var(--accent, var(--navy-800)); border-radius: 2px;
}
.section-head__link { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.section-head__link:hover { color: var(--red-600); }
.section-head__link::after { content: " ›"; }

.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent, var(--navy-600)); margin-bottom: 6px;
}
.kicker--live { color: var(--red-600); }
.kicker--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-600); animation: pulse 1.6s infinite; }

/* ----------------------------------------------------------------------------
   8. Story cards
   ---------------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; }
.card a { color: inherit; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist-2); aspect-ratio: 16 / 9; }
.card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__img { transform: scale(1.04); }
.card__badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 3px;
  background: rgba(8,20,38,0.88); color: #fff; font-size: 0.66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; backdrop-filter: blur(2px);
}
.card__badge--live { background: var(--red-600); }
.card__badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.card__badge--video { background: rgba(8,20,38,0.88); }
.card__play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none;
}
.card__play span {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(8,20,38,0.7); display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,0.85);
}
.card__play span::after { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

.card__body { padding: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.card__cat {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent, var(--navy-600));
}
.card__cat:hover { text-decoration: underline; }
.card__title { font-size: 1.02rem; line-height: 1.28; }
.card__title a:hover { color: var(--red-600); text-decoration: none; }
.card__dek { font-family: var(--font-sans); font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.card__meta {
  font-family: var(--font-sans); font-size: 0.72rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
}
.card__meta time { font-variant-numeric: tabular-nums; }
.card__meta .dot-sep::before { content: "·"; margin: 0 2px; }

/* Lead (hero) card */
.card--lead .card__title { font-size: 2.3rem; line-height: 1.1; }
.card--lead .card__dek { font-size: 1.05rem; color: var(--text-soft); }
.card--lead .card__media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }

/* Overlay hero */
.hero-overlay { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; }
.hero-overlay .card__img { position: absolute; inset: 0; }
.hero-overlay__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,14,26,0.92) 0%, rgba(6,14,26,0.55) 40%, rgba(6,14,26,0.05) 100%); }
.hero-overlay__body { position: relative; z-index: 2; padding: 32px; color: #fff; max-width: 760px; }
.hero-overlay__body .card__title { color: #fff; font-size: 2.6rem; }
.hero-overlay__body .card__dek { color: #dfe6ef; font-size: 1.08rem; }
.hero-overlay__body .card__cat { color: #ff9ba2; }
.hero-overlay__body .card__meta { color: #b7c2d1; }
/* Soften the placeholder monogram behind large hero headlines */
.hero-overlay .ph__mark { opacity: 0.14; transform: scale(1.4); }
.hero-overlay .ph::before { opacity: 0.6; }
.card--lead .ph__mark { opacity: 0.55; }

/* Horizontal card */
.card--row { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--row .card__media { flex: none; width: 132px; aspect-ratio: 4 / 3; }
.card--row .card__body { padding-top: 0; }
.card--row .card__title { font-size: 0.98rem; }

/* Compact list item (headline only) */
.headline-list { list-style: none; }
.headline-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.headline-list li:first-child { border-top: 0; padding-top: 0; }
.headline-item { display: flex; gap: 12px; align-items: flex-start; }
.headline-item__cat { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent, var(--navy-600)); }
.headline-item__title { font-size: 0.98rem; line-height: 1.3; margin-top: 3px; }
.headline-item__title a:hover { color: var(--red-600); text-decoration: none; }

/* Ranked "most read" list */
.ranked { list-style: none; counter-reset: rank; }
.ranked li { counter-increment: rank; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.ranked li:first-child { border-top: 0; }
.ranked li::before {
  content: counter(rank); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700;
  color: var(--line-strong); line-height: 1; min-width: 26px; flex: none;
}
.ranked__title { font-size: 0.95rem; line-height: 1.32; font-family: var(--font-serif); font-weight: 700; }
.ranked__title a:hover { color: var(--red-600); text-decoration: none; }
.ranked__meta { font-family: var(--font-sans); font-size: 0.7rem; color: var(--muted-2); margin-top: 4px; }

/* ----------------------------------------------------------------------------
   9. Grids
   ---------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Homepage lead layout: hero + secondary + rail */
.lead-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.lead-grid__side { display: flex; flex-direction: column; gap: 18px; }
.lead-grid__side .card--row + .card--row { border-top: 1px solid var(--border); padding-top: 16px; }

.feature-grid { display: grid; grid-template-columns: 3fr 1.35fr; gap: 30px; align-items: start; }
.rail { border-left: 1px solid var(--border); padding-left: 24px; }
.rail__box { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 18px; }

.divide-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.divide-cols > * { padding: 0 0 0 0; }
.divide-cols > * + * { border-left: 1px solid var(--border); padding-left: 28px; }

/* ----------------------------------------------------------------------------
   10. Placeholder media (deterministic, self-contained)
   ---------------------------------------------------------------------------- */
.ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--ph-a, #17375f), var(--ph-b, #0b1f3a));
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 22%, rgba(255,255,255,0.18), transparent 45%),
                    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 12px);
  mix-blend-mode: screen;
}
.ph__mark {
  position: relative; z-index: 1; color: rgba(255,255,255,0.9); text-align: center; padding: 12px;
}
.ph__mono { font-family: var(--font-serif); font-weight: 700; font-size: 2rem; letter-spacing: 0.06em; line-height: 1; }
.ph__label { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 8px; opacity: 0.85; }
/* Real published image filling a media box (replaces the gradient placeholder) */
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .ph-img { transform: scale(1.04); }
.ph-img { transition: transform .5s var(--ease); }

/* ----------------------------------------------------------------------------
   11. Live / video promo
   ---------------------------------------------------------------------------- */
.livestrip { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.6fr 1fr; }
.livestrip__player { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.livestrip__player .ph { --ph-a: #22344b; --ph-b: #0a1320; }
.livestrip__now { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; background: var(--red-600); padding: 4px 10px; border-radius: 3px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.livestrip__now .dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse 1.6s infinite; }
.livestrip__side { padding: 22px; }
.livestrip__side h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.livestrip__sched { list-style: none; margin-top: 14px; }
.livestrip__sched li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; color: #cdd7e4; }
.livestrip__sched time { color: #8fa3bd; font-weight: 700; min-width: 52px; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------------------
   12. Newsletter
   ---------------------------------------------------------------------------- */
.newsletter { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.newsletter h2 { color: #fff; font-size: 1.6rem; }
.newsletter p { color: #c4d0df; font-family: var(--font-sans); margin: 8px 0 0; font-size: 0.95rem; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1; height: 48px; border-radius: 999px; border: 0; padding: 0 18px; font-size: 0.95rem; color: var(--ink);
}
.newsletter__form input:focus { outline: 3px solid rgba(255,255,255,0.35); }
.newsletter__form button {
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--red-600); color: #fff;
  font-weight: 800; letter-spacing: 0.03em;
}
.newsletter__form button:hover { background: var(--red-700); }
.newsletter__note { font-family: var(--font-sans); font-size: 0.72rem; color: #93a3b8; margin-top: 10px; }

/* ----------------------------------------------------------------------------
   13. Footer
   ---------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9c5d6; margin-top: 48px; }
.footer-top { padding: 44px 0 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-brand .brand__word { color: #fff; font-size: 1.7rem; }
.footer-brand .brand__word b { color: #ff8b93; }
.footer-brand p { font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.6; margin: 14px 0 16px; max-width: 320px; color: #93a3b8; }
.footer-col h4 { font-family: var(--font-sans); color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; font-weight: 800; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.86rem; color: #b9c5d6; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #cdd7e4; }
.footer-social a:hover { background: var(--red-600); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.76rem; color: #8293a8; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ----------------------------------------------------------------------------
   14. Article page
   ---------------------------------------------------------------------------- */
.article { padding: 30px 0 10px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 48px; justify-content: center; }
@media (max-width: 1000px) { .article-grid { grid-template-columns: 1fr; } }

.breadcrumb { font-family: var(--font-sans); font-size: 0.76rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red-600); }
.breadcrumb span { color: var(--muted-2); }

.article__header { margin-bottom: 22px; }
.article__kicker { font-family: var(--font-sans); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent, var(--navy-600)); }
.article__title { font-size: 2.6rem; line-height: 1.12; margin: 10px 0 14px; }
.article__dek { font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.45; color: var(--text-soft); font-style: italic; }

.byline { display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-serif); flex: none; }
.byline__meta { font-family: var(--font-sans); font-size: 0.82rem; line-height: 1.4; }
.byline__name { font-weight: 700; color: var(--text); }
.byline__name a:hover { color: var(--red-600); }
.byline__sub { color: var(--muted); }
.byline__spacer { flex: 1; }
.share { display: flex; gap: 8px; }
.share a, .share button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--muted); transition: all .15s;
}
.share a:hover, .share button:hover { border-color: var(--navy-600); color: var(--link-strong); background: var(--bg-alt); }
.share svg { width: 16px; height: 16px; fill: currentColor; }

.figure { margin: 0 0 22px; }
.figure__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--mist-2); }
.figure figcaption { font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.figure figcaption b { color: var(--text-soft); }
.figure__credit { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.68rem; }

.prose { font-family: var(--font-serif); font-size: 1.16rem; line-height: 1.75; color: var(--text); }
.prose > p { margin: 0 0 1.3em; }
.prose > p:first-of-type::first-letter { }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-600); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red-600);
  font-size: 1.4rem; line-height: 1.4; font-style: italic; color: var(--text);
}
.prose blockquote cite { display: block; font-size: 0.9rem; font-style: normal; font-family: var(--font-sans); color: var(--muted); margin-top: 10px; font-weight: 600; }
.prose blockquote cite::before { content: "— "; }

.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tag {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; padding: 6px 12px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft);
}
.tag:hover { border-color: var(--navy-500); color: var(--link-strong); text-decoration: none; }

.article-foot-share { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 8px 0 26px; }
.article-foot-share span { font-family: var(--font-sans); font-weight: 700; font-size: 0.85rem; }

.author-box { display: flex; gap: 16px; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 30px; }
.author-box__av { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; flex: none; }
.author-box__name { font-weight: 700; }
.author-box__title { font-family: var(--font-sans); font-size: 0.82rem; color: var(--muted); }
.author-box p { font-family: var(--font-sans); font-size: 0.86rem; color: var(--text-soft); margin: 8px 0 0; line-height: 1.5; }

/* Article sidebar */
.article-side { position: sticky; top: 66px; align-self: start; display: flex; flex-direction: column; gap: 26px; }
.side-box__head { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); border-bottom: 2px solid var(--text); padding-bottom: 7px; margin-bottom: 12px; }

/* Reading progress */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; background: var(--red-600); width: 0; z-index: 120; transition: width .1s linear; }

/* ----------------------------------------------------------------------------
   15. Category / listing pages
   ---------------------------------------------------------------------------- */
.page-hero { background: var(--navy-800); color: #fff; padding: 34px 0; margin-bottom: 6px; }
.page-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-hero h1 { color: #fff; font-size: 2.4rem; display: flex; align-items: center; gap: 12px; }
.page-hero h1::before { content: ""; width: 8px; height: 1em; background: var(--accent, var(--red-600)); border-radius: 2px; }
.page-hero p { font-family: var(--font-sans); color: #c4d0df; margin: 8px 0 0; max-width: 640px; }
.page-hero__count { font-family: var(--font-sans); font-size: 0.82rem; color: #93a3b8; }

.subcat-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.subcat-nav a { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--text-soft); }
.subcat-nav a:hover, .subcat-nav a.is-active { background: var(--navy-800); color: #fff; text-decoration: none; }

.load-more { display: block; margin: 30px auto 0; padding: 12px 30px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; font-weight: 700; font-family: var(--font-sans); font-size: 0.85rem; }
.load-more:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ----------------------------------------------------------------------------
   16. Search
   ---------------------------------------------------------------------------- */
.search-page__form { display: flex; gap: 10px; margin: 24px 0 8px; }
.search-page__form input { flex: 1; height: 54px; border: 2px solid var(--border); border-radius: 999px; padding: 0 24px; font-size: 1.1rem; background: var(--surface); color: var(--text); }
.search-page__form input:focus { outline: none; border-color: var(--navy-600); }
.search-page__form button { height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--navy-800); color: #fff; font-weight: 700; }
.search-page__count { font-family: var(--font-sans); color: var(--muted); font-size: 0.9rem; margin: 18px 0; }

/* ----------------------------------------------------------------------------
   17. Utilities / misc
   ---------------------------------------------------------------------------- */
.eyebrow { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-600); }
.divider { height: 1px; background: var(--border); border: 0; margin: 30px 0; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; background: var(--red-050); color: var(--red-700); font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 3px; }
[data-theme="dark"] .pill-live { background: rgba(200,30,43,0.18); color: #ff9ba2; }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-600); animation: pulse 1.6s infinite; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-family: var(--font-sans); }
.empty-state h2 { font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }

.notice { background: var(--red-050); border: 1px solid #f3c6ca; color: var(--red-700); padding: 10px 14px; border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.82rem; }
[data-theme="dark"] .notice { background: rgba(200,30,43,0.12); border-color: rgba(200,30,43,0.3); color: #ff9ba2; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 0.86rem; font-family: var(--font-sans); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 300; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Static informational pages (about/contact) */
.doc { max-width: 760px; margin: 0 auto; padding: 30px 0 10px; font-family: var(--font-sans); }
.doc h1 { font-size: 2.4rem; margin-bottom: 8px; }
.doc .lede { font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 24px; }
.doc h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.doc p { margin: 0 0 16px; line-height: 1.7; color: var(--text-soft); }
.doc ul { padding-left: 1.2em; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; color: var(--text-soft); }
.doc a { color: var(--link); text-decoration: underline; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.value-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 22px; border-top: 3px solid var(--accent, var(--navy-800)); }
.value-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-serif); font-size: 2.4rem; color: var(--navy-700); line-height: 1; }
[data-theme="dark"] .stat b { color: #8fb4e8; }
.stat span { font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px;
  font-size: 0.95rem; font-family: var(--font-sans); background: var(--surface); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--navy-600); }
.form-submit { padding: 13px 30px; border: 0; border-radius: 999px; background: var(--red-600); color: #fff; font-weight: 800; }
.form-submit:hover { background: var(--red-700); }

/* Mobile menu drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6,14,26,0.5); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(84vw, 340px); background: var(--surface); transform: translateX(-100%); transition: transform .28s var(--ease); overflow-y: auto; box-shadow: var(--shadow-lg); }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); background: var(--navy-800); color: #fff; }
.drawer__head .brand__word { color: #fff; font-size: 1.4rem; }
.drawer__head .brand__word b { color: #ff8b93; }
.drawer__close { background: transparent; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; }
.drawer__nav { list-style: none; padding: 8px 0; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; border-bottom: 1px solid var(--border); color: var(--text); }
.drawer__nav a:hover { background: var(--bg-alt); text-decoration: none; }
.drawer__nav .cat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--navy-600)); }

/* ----------------------------------------------------------------------------
   18. Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead__inner { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .brand { justify-self: start; }
  .brand__word { font-size: 1.7rem; }
  .brand__mark svg { height: 38px; }
  .search { display: none; }
  .btn-subscribe { display: none; }
  .mainnav { display: none; }
  .lead-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding-left: 0; border-top: 2px solid var(--text); padding-top: 20px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .livestrip { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .hero-overlay { min-height: 380px; }
  .hero-overlay__body .card__title { font-size: 1.9rem; }
  .divide-cols { grid-template-columns: 1fr; }
  .divide-cols > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .article__title { font-size: 2rem; }
  .topbar__links, .topbar__edition { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 14px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .card--lead .card__title { font-size: 1.6rem; }
  .article__title { font-size: 1.7rem; }
  .article__dek { font-size: 1.1rem; }
  .prose { font-size: 1.08rem; }
  .weather { display: none; }
  .topbar__inner { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
  .newsletter { padding: 22px; }
  .newsletter__form { flex-direction: column; }
}

@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; }
}

@media print {
  .site-header, .mainnav, .site-footer, .article-side, .share, .read-progress, .breaking, .newsletter { display: none !important; }
  .article-grid { grid-template-columns: 1fr; }
  body { color: #000; }
  /* Neutralise white-on-dark hero blocks so they stay legible on white paper */
  .page-hero, .hero-overlay, .hero-overlay__body { background: #fff !important; }
  .page-hero *, .hero-overlay__body * { color: #000 !important; }
  .hero-overlay__scrim { display: none !important; }
}

/* ----------------------------------------------------------------------------
   19. QA / accessibility refinements
   ---------------------------------------------------------------------------- */
/* Preserve a visible keyboard focus ring where :focus removes the outline */
.search__input:focus-visible,
.form-field input:focus-visible, .form-field textarea:focus-visible, .form-field select:focus-visible,
.search-page__form input:focus-visible {
  outline: 3px solid var(--navy-500); outline-offset: 1px;
}
/* Content-aware grid for variable-length result sets (search, sparse desks) */
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* Skip-link / router focus target: move focus without a lingering outline box */
#main:focus { outline: none; }
