/* Qazaqtoday — editorial news portal */
/* ============================================ */

:root {
  --accent: #0B5394;
  --accent-hover: #08406F;
  --bg: #FFFFFF;
  --bg-alt: #FAFAF8;
  --fg: #121212;
  --fg-muted: #595959;
  --fg-soft: #8A8A8A;
  --border: #E0E0E0;
  --border-strong: #BFBFBF;
  --up: #2E7D32;
  --down: #E3120B;

  --img-r: 4px;

  --serif: "Source Serif 4", "Noto Serif", "PT Serif", Georgia, "Times New Roman", serif;
  --serif-display: "Source Serif 4", "Noto Serif", "PT Serif", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1280px;
  --gutter: 24px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1A1A1A;
  --fg: #F2F2F2;
  --fg-muted: #B0B0B0;
  --fg-soft: #7A7A7A;
  --border: #2E2E2E;
  --border-strong: #444;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.12s ease;
}
a:hover, a:focus-visible { color: var(--accent); }

img { max-width: 100%; display: block; }

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

/* =================== TOP UTILITY BAR =================== */
.utility-bar {
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 12px;
  background: var(--bg);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 24px;
}

/* Date in utility bar */
.util-date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-right: 16px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.util-date.right {
  margin-left: auto;
  padding-right: 0;
  padding-left: 16px;
  border-right: none;
  border-left: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

/* Weather */
.weather {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.weather-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}
.weather-current .temp { font-weight: 600; }
.weather-current .city { color: var(--fg-muted); }
.weather-current .chev {
  width: 10px; height: 10px;
  opacity: 0.6;
}
.weather-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  font-size: 13px;
}
.weather-menu.open { display: block; }
.weather-menu button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 8px 12px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.weather-menu button:last-child { border-bottom: none; }
.weather-menu button:hover { background: var(--bg-alt); color: var(--accent); }
.weather-menu button .t { color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* Currency ticker */
.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ticker-item .ccy { color: var(--fg-muted); }
.ticker-item .val { font-variant-numeric: tabular-nums; }
.ticker-item .arr {
  font-size: 10px;
  line-height: 1;
}
.arr.up { color: var(--up); }
.arr.down { color: var(--down); }

/* Social icons */
.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  color: var(--fg-muted);
}
.socials a:hover { color: var(--accent); }
.socials svg { width: 14px; height: 14px; fill: currentColor; }

/* Socials when placed in masthead — bigger, centered, no auto margin */
.masthead-meta .socials {
  margin-left: 0;
  gap: 22px;
}
.masthead-meta .socials a { width: 20px; height: 20px; color: var(--fg); }
.masthead-meta .socials a:hover { color: var(--accent); }
.masthead-meta .socials svg { width: 18px; height: 18px; }

/* =================== MAIN HEADER =================== */
.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.masthead-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.logo-block {
  background: var(--accent);
  color: #fff;
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  padding: 14px 18px 12px;
  line-height: 1;
  display: inline-block;
  font-style: italic;
}
.logo-block a { color: #fff; }
.logo-block a:hover { color: #fff; opacity: 0.85; }

.masthead-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
}
.masthead-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-muted);
}
.masthead-date {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch button {
  background: none;
  border: none;
  padding: 6px 10px;
  color: var(--fg-muted);
  cursor: pointer;
  font: inherit;
}
.lang-switch button.active { color: var(--accent); }
.lang-switch .sep { color: var(--border-strong); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
  margin-left: 10px;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 14px; height: 14px; fill: currentColor; }

.masthead-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Nav */
.nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}
.nav-list li { display: flex; }
.nav-list a {
  display: block;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav-list a.active { color: var(--accent); }
.nav-list a:hover { color: var(--accent); }
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-muted);
  padding: 14px 0;
  cursor: pointer;
}
.nav-search svg { width: 14px; height: 14px; fill: currentColor; }
.nav-search:hover { color: var(--accent); }
.nav-burger { display: none; }

/* =================== HERO =================== */
.hero {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.hero-text .kicker { margin-bottom: 16px; }
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero .standfirst {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 60ch;
}
.hero .byline {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Kicker (red uppercase) */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
}

/* =================== NEWSDESK (2 blocks + sidebar) =================== */
.newsdesk {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.newsdesk-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}
.newsdesk-main { display: flex; flex-direction: column; gap: 32px; }
.nd-block {
  border-top: 1px solid var(--fg);
  padding-top: 14px;
}
.nd-block h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
}
.nd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.nd-cell {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px;
  align-items: start;
  padding: 14px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nd-cell:nth-child(2n) { border-right: none; padding-right: 0; }
.nd-cell:nth-child(2n+1) { padding-left: 0; }
.nd-cell:nth-last-child(-n+2) { border-bottom: none; }
.nd-cell .nd-text .kicker { margin-bottom: 8px; }
.nd-cell h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.18;
  margin: 4px 0 10px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.nd-cell .meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nd-cell .nd-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
}
@media (max-width: 980px) {
  .newsdesk-grid { grid-template-columns: 1fr; }
  .nd-cell { grid-template-columns: 1fr 100px; padding: 14px 0; border-right: none; }
  .nd-grid { grid-template-columns: 1fr; }
  .nd-cell:nth-child(2n) { padding-right: 0; }
}
@media (max-width: 640px) {
  .nd-cell { grid-template-columns: 1fr 84px; }
  .nd-cell h3 { font-size: 16px; }
}

/* =================== CATEGORY PAGE =================== */
.cat-banner {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.cat-banner .wrap {
  padding-top: 42px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.cat-banner .crumb {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cat-banner .crumb::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.cat-banner h1 {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.cat-banner .cat-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0;
}
.cat-banner .cat-stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.6;
  border-left: 1px solid var(--border-strong);
  padding: 10px 0 10px 18px;
}
.cat-banner .cat-stats strong {
  display: block;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--fg);
  margin-bottom: 2px;
  font-style: normal;
}

.cat-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 49px; /* below nav */
  z-index: 40;
}
.cat-toolbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 48px;
}
.cat-filters {
  display: flex;
  gap: 0;
  height: 100%;
}
.cat-filters button {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0 18px;
  height: 100%;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s ease;
}
.cat-filters button:first-child { padding-left: 0; }
.cat-filters button.on { color: var(--fg); border-bottom-color: var(--accent); }
.cat-filters button:hover { color: var(--accent); }
.cat-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

.cat-page { padding: 36px 0 0; }
.cat-page .wrap > section { padding-bottom: 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.cat-page .wrap > section:last-child { border-bottom: none; }

/* Lead + secondary feature pair */
.cat-lead {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.cat-lead .lead-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cat-lead .lead-text .kicker { margin-bottom: 14px; }
.cat-lead .lead-text h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cat-lead .lead-text .standfirst {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 14px;
  max-width: 56ch;
}
.cat-lead .lead-text .byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 3-column grid below lead */
.cat-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.cat-row3 > .col {
  padding: 0 22px;
  border-right: 1px solid var(--border);
}
.cat-row3 > .col:first-child { padding-left: 0; }
.cat-row3 > .col:last-child { padding-right: 0; border-right: none; }

/* List view (big band) */
.cat-list-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--fg);
}
.cat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cat-list .list-item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  align-items: start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cat-list .list-item:nth-child(2n) { border-right: none; padding-right: 0; }
.cat-list .list-item:nth-child(2n+1) { padding-left: 0; }
.cat-list .list-item:nth-last-child(-n+2) { border-bottom: none; }
.cat-list .list-item .l-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cat-list .list-item h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  margin: 6px 0 8px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.cat-list .list-item .meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Promo strip (newsletter) */
.cat-promo {
  background: var(--fg);
  color: var(--bg);
  padding: 28px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 36px;
}
.cat-promo .p-text h4 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px;
}
.cat-promo .p-text p {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin: 0;
}
html[data-theme="dark"] .cat-promo .p-text p { color: rgba(0,0,0,0.65); }
.cat-promo .p-form {
  display: flex;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  min-width: 380px;
}
html[data-theme="dark"] .cat-promo .p-form { border-color: rgba(0,0,0,0.3); }
.cat-promo input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: inherit;
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}
.cat-promo input::placeholder { color: rgba(255,255,255,0.4); }
html[data-theme="dark"] .cat-promo input::placeholder { color: rgba(0,0,0,0.4); }
.cat-promo button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.cat-promo button:hover { opacity: 0.9; }

/* Load more */
.cat-loadmore {
  display: flex;
  justify-content: center;
  padding: 8px 0 60px;
}
.cat-loadmore button {
  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.cat-loadmore button:hover { background: var(--fg); color: var(--bg); }

/* Cross-category links */
.cat-other-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--fg-muted);
}
.cat-other-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cat-other-grid a {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  padding: 18px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cat-other-grid a:last-child { border-right: none; }
.cat-other-grid a:hover { background: var(--bg-alt); color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
  .cat-lead { grid-template-columns: 1fr; }
  .cat-lead .lead-img { order: -1; aspect-ratio: 16 / 9; }
  .cat-other-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-other-grid a:nth-child(3) { border-right: none; }
  .cat-other-grid a:nth-child(n+4) { border-top: 1px solid var(--border); }
  .cat-other-grid a:nth-child(6) { border-right: none; }
}
@media (max-width: 900px) {
  .cat-banner .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 28px; gap: 18px; }
  .cat-banner .cat-stats { border-left: none; border-top: 1px solid var(--border); padding: 14px 0 0; text-align: left; }
  .cat-toolbar { position: static; }
  .cat-row3 { grid-template-columns: 1fr 1fr; }
  .cat-row3 > .col { border-right: none; padding: 14px 14px; border-bottom: 1px solid var(--border); }
  .cat-row3 > .col:nth-child(odd) { border-right: 1px solid var(--border); padding-left: 0; }
  .cat-row3 > .col:nth-child(even) { padding-right: 0; }
  .cat-row3 > .col:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; padding-right: 0; }
  .cat-list { grid-template-columns: 1fr; }
  .cat-list .list-item { border-right: none !important; padding: 16px 0 !important; grid-template-columns: 1fr 120px; }
  .cat-promo { flex-direction: column; align-items: stretch; }
  .cat-promo .p-form { min-width: 0; }
}
@media (max-width: 720px) {
  .cat-row3 { grid-template-columns: 1fr; }
  .cat-row3 > .col { border-right: none !important; padding: 14px 0; }
  .cat-list .list-item { grid-template-columns: 1fr 96px; gap: 14px; }
  .cat-list .list-item h3 { font-size: 16px; }
  .cat-other-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-other-grid a:nth-child(3) { border-right: 1px solid var(--border); }
  .cat-other-grid a:nth-child(2n) { border-right: none; }
  .cat-other-grid a:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* =================== HERO ROW (4-up under lead) =================== */
.hero-row {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border);
}
.hero-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 44px;
  position: relative;
}
.hero-row-grid > .card {
  padding: 0;
  position: relative;
}
/* Vertical divider sits in the middle of the gap so all 4 cards have equal inner widths */
.hero-row-grid > .card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.hero-row-grid > .card:last-child::after { display: none; }
.hero-row-grid .card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  display: block;
}
.hero-row-grid .card h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.18;
  margin: 8px 0 8px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.hero-row-grid .card .meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .hero-row-grid { grid-template-columns: 1fr 1fr; }
  .hero-row-grid > .card { padding: 16px 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-row-grid > .card:nth-child(odd) { border-right: 1px solid var(--border); padding-left: 0; }
  .hero-row-grid > .card:nth-child(even) { padding-right: 0; }
}
@media (max-width: 640px) {
  .hero-row-grid { grid-template-columns: 1fr; }
  .hero-row-grid > .card { border-right: none !important; padding: 14px 0 !important; }
}

/* =================== COLUMN GRID =================== */
.column-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 320px;
  gap: 0;
}
.cols-3 > .col {
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.cols-3 > .col:first-child { padding-left: 0; }
.cols-3 > .col:nth-child(3) { border-right: 1px solid var(--border-strong); padding-right: 28px; }
.cols-3 > .sidebar { padding: 0 0 0 28px; border-right: none; }
.cols-3.cols-3--no-side { grid-template-columns: 1fr 1fr 1fr; }
.cols-3.cols-3--no-side > .col:nth-child(3) { border-right: none; padding-right: 0; }

.story { margin-bottom: 28px; }
.story:last-child { margin-bottom: 0; }
.story h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin: 8px 0 10px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.story .standfirst {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.story .meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.story .meta .dot { margin: 0 6px; color: var(--border-strong); }

.story.with-image .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.story.lede h3 { font-size: 26px; }

/* Sidebar */
.sidebar h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.sidebar-scroll {
  max-height: 680px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  /* fade the bottom edge so users see there's more */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 16px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.14s ease, color 0.14s ease;
}
.sidebar-all:hover { background: var(--accent); color: #fff; }
.sidebar-all svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  transition: transform 0.16s ease;
}
.sidebar-all:hover svg { transform: translateX(3px); }
.sidebar ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: srn;
}
.sidebar li {
  counter-increment: srn;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.sidebar li::before {
  content: counter(srn, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  padding-top: 2px;
}
.sidebar li:last-child { border-bottom: none; }
.sidebar li .h {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 4px;
}
.sidebar li .t {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* =================== CATEGORY SECTIONS =================== */
.cat-section { padding: 36px 0; border-bottom: 1px solid var(--border); }
.cat-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.cat-section-header h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.005em;
}
.cat-section-header .more {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.cat-section-header .more:hover { color: var(--accent); }

.cat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
}
.cat-grid > .col {
  padding: 0 22px;
  border-right: 1px solid var(--border);
}
.cat-grid > .col:first-child { padding-left: 0; }
.cat-grid > .col:last-child { border-right: none; padding-right: 0; }
.cat-grid > .col:first-child .story h3 { font-size: 28px; }

/* =================== SECONDARY: TWO-UP =================== */
.split { padding: 36px 0; border-bottom: 1px solid var(--border); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.feature-card { padding-right: 24px; border-right: 1px solid var(--border); }
.feature-card:last-child { padding-right: 0; border-right: none; }
.feature-card .feat-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.12;
  margin: 10px 0 12px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Four-up features row (smaller images + headlines) */
.split-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.split-grid--4 .feature-card { padding-right: 28px; }
.split-grid--4 .feature-card h3 { font-size: 20px; margin: 8px 0 8px; }
.split-grid--4 .feature-card .feat-img { margin-bottom: 12px; }
.split-grid--4 .feature-card .standfirst { font-size: 15px; }
@media (max-width: 980px) {
  .split-grid--4 { grid-template-columns: 1fr 1fr; }
  .split-grid--4 .feature-card:nth-child(2) { padding-right: 0; border-right: none; }
}
@media (max-width: 600px) {
  .split-grid--4 { grid-template-columns: 1fr; }
  .split-grid--4 .feature-card { padding-right: 0; border-right: none; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
  .split-grid--4 .feature-card:last-child { padding-bottom: 0; border-bottom: none; }
}

/* =================== OPINION STRIP =================== */
.opinion {
  padding: 36px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.opinion .cat-section-header { border-bottom-color: var(--fg); }
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.opinion-card {
  padding: 0 22px;
  border-right: 1px solid var(--border);
}
.opinion-card:first-child { padding-left: 0; }
.opinion-card:last-child { border-right: none; padding-right: 0; }
.opinion-card .author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.opinion-card .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  font-family: var(--serif-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fg);
}
.opinion-card .author-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.opinion-card .author-role {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.opinion-card h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  margin: 6px 0 8px;
  font-style: italic;
}

/* =================== FOOTER =================== */
.footer {
  padding: 40px 0 28px;
  border-top: 3px solid var(--fg);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--fg);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-counters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.counter:last-child { border-bottom: none; }
.counter:hover { color: var(--fg); }
.counter:hover .counter-name { color: var(--accent); }
.counter-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.14s ease;
}
.counter:hover .counter-mark { color: var(--accent); }
.counter-mark svg { width: 16px; height: 16px; fill: currentColor; }
.counter-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.counter-name {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  transition: color 0.12s ease;
}
.counter-nums {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.footer-credit {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
  color: var(--fg-soft);
}
.footer-credit a { color: var(--fg-muted); font-weight: 600; }
.footer-credit a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .footer-credit { margin-left: 0; padding-left: 0; border-left: none; display: block; margin-top: 4px; }
}

/* =================== ARTICLE PAGE =================== */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.article-header { padding: 48px 0 28px; }
.article-header .kicker { margin-bottom: 18px; }
.article-header h1 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.article-standfirst {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 24px;
}
.article-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-hero {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin: 28px 0;
}
.article-hero-caption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-muted);
  padding: 6px 0 24px;
  margin-top: -22px;
}
.article-body p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-weight: 800;
  float: left;
  font-size: 72px;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--fg);
}
.pullquote {
  margin: 32px -40px;
  padding: 22px 0 22px 28px;
  border-left: 4px solid var(--accent);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--fg);
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 14px;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}
.article-tags a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.article-tags a:hover { color: var(--accent); border-color: var(--accent); }
.related {
  margin: 36px 0 60px;
  padding-top: 26px;
  border-top: 3px solid var(--accent);
}
.related h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.related-grid .story h3 { font-size: 17px; }

/* Placeholder image striping (also serves as <img> background fallback) */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 14px,
      rgba(0,0,0,0.04) 14px,
      rgba(0,0,0,0.04) 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  overflow: hidden;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.ph img.loaded { opacity: 1; }
.ph img {
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
/* Scale image inside any hovered image container */
.hero-image:hover .ph img,
.story.with-image .thumb:hover .ph img,
.hero-row-grid .card .thumb:hover .ph img,
.nd-thumb:hover .ph img,
.feature-card .feat-img:hover .ph img,
.cat-lead .lead-img:hover .ph img,
.cat-list .list-item .l-thumb:hover .ph img {
  transform: scale(1.045);
}
.ph .ph-label {
  position: relative;
  z-index: 0;
  padding: 0 12px;
  text-align: center;
}
html[data-theme="dark"] .ph {
  background:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 14px,
      rgba(255,255,255,0.04) 14px,
      rgba(255,255,255,0.04) 15px);
}

/* Apply subtle rounded corners to all image surfaces */
.hero-image,
.story.with-image .thumb,
.hero-row-grid .card .thumb,
.nd-thumb,
.feature-card .feat-img,
.article-hero,
.cat-lead .lead-img,
.cat-list .list-item .l-thumb,
.ph { border-radius: var(--img-r); }
.ph { overflow: hidden; }

/* Subtle hover shadow on image surfaces */
.hero-image,
.story.with-image .thumb,
.hero-row-grid .card .thumb,
.nd-thumb,
.feature-card .feat-img,
.cat-lead .lead-img,
.cat-list .list-item .l-thumb {
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.hero-image:hover,
.story.with-image .thumb:hover,
.hero-row-grid .card .thumb:hover,
.nd-thumb:hover,
.feature-card .feat-img:hover,
.cat-lead .lead-img:hover,
.cat-list .list-item .l-thumb:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .hero-image:hover,
html[data-theme="dark"] .story.with-image .thumb:hover,
html[data-theme="dark"] .hero-row-grid .card .thumb:hover,
html[data-theme="dark"] .nd-thumb:hover,
html[data-theme="dark"] .feature-card .feat-img:hover,
html[data-theme="dark"] .cat-lead .lead-img:hover,
html[data-theme="dark"] .cat-list .list-item .l-thumb:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* =================== RESPONSIVE =================== */

/* Small desktop / large tablet */
@media (max-width: 1100px) {
  :root { --gutter: 20px; }
  .hero h1 { font-size: clamp(32px, 4.4vw, 46px); }
  .nav-list a { padding: 12px 12px; font-size: 11.5px; letter-spacing: 0.08em; }
  .hero-row-grid .card h3 { font-size: 17px; }
  .nd-cell h3 { font-size: 16px; }
  .nd-cell { grid-template-columns: 1fr 110px; }
  .cat-section-header h2 { font-size: 22px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  :root { --gutter: 18px; }
  .utility-bar .wrap { gap: 14px; height: auto; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .util-date { padding-right: 12px; }
  .ticker { gap: 12px; }
  .hero { padding: 24px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: clamp(30px, 5.6vw, 40px); }
  .hero .standfirst { font-size: 17px; }
  .hero-image { aspect-ratio: 16 / 9; max-height: 56vh; }

  /* Hero row → 2x2 */
  .hero-row { padding: 22px 0; }
  .hero-row-grid { grid-template-columns: 1fr 1fr; }
  .hero-row-grid > .card { padding: 14px 14px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-row-grid > .card:nth-child(odd) { border-right: 1px solid var(--border); padding-left: 0; }
  .hero-row-grid > .card:nth-child(even) { padding-right: 0; }
  .hero-row-grid > .card:nth-last-child(-n+2) { border-bottom: none; }

  /* Newsdesk → single col */
  .newsdesk { padding: 24px 0; }
  .newsdesk-grid { grid-template-columns: 1fr; gap: 28px; }
  .nd-grid { grid-template-columns: 1fr 1fr; }
  .nd-cell { padding: 14px 14px; grid-template-columns: 1fr 110px; }
  .nd-cell:nth-child(2n+1) { padding-left: 0; }
  .nd-cell:nth-child(2n) { padding-right: 0; border-right: none; }
  .sidebar-scroll { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .sidebar h4 { position: static; }

  /* Columns 3 → 1 */
  .column-section { padding: 22px 0; }
  .cols-3, .cols-3.cols-3--no-side { grid-template-columns: 1fr; }
  .cols-3 > .col { border-right: none; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .cols-3 > .col:first-child { padding-top: 0; }
  .cols-3 > .col:last-child { border-bottom: none; padding-bottom: 0; }
  .cols-3 > .sidebar { padding: 18px 0; border-bottom: none; }

  /* Category grid → 2x2 */
  .cat-section { padding: 24px 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid > .col { padding: 14px 14px; border-right: none; border-bottom: 1px solid var(--border); }
  .cat-grid > .col:nth-child(odd) { border-right: 1px solid var(--border); padding-left: 0; }
  .cat-grid > .col:nth-child(even) { padding-right: 0; }
  .cat-grid > .col:nth-last-child(-n+2) { border-bottom: none; }
  .cat-grid > .col:first-child .story h3 { font-size: 22px; }

  /* Features → stacked */
  .split { padding: 26px 0; }
  .split-grid { grid-template-columns: 1fr; gap: 22px; }
  .feature-card { padding-right: 0; border-right: none; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
  .feature-card:last-child { padding-bottom: 0; border-bottom: none; }
  .feature-card h3 { font-size: 24px; }

  /* Opinion → 2 */
  .opinion { padding: 24px 0; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .opinion-card { padding: 14px 14px; border-right: none; border-bottom: 1px solid var(--border); }
  .opinion-card:nth-child(odd) { border-right: 1px solid var(--border); padding-left: 0; }
  .opinion-card:nth-child(even) { padding-right: 0; }
  .opinion-card:nth-last-child(-n+2) { border-bottom: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Article page */
  .pullquote { margin: 28px 0; font-size: 22px; }
  .article-body p { font-size: 17px; }
}

/* Phone landscape & small tablets */
@media (max-width: 720px) {
  /* Masthead reorganise */
  .masthead-row { grid-template-columns: 1fr auto; grid-template-areas: "logo right" "meta meta"; gap: 12px; padding: 14px 0; }
  .logo-block { grid-area: logo; font-size: 22px; padding: 10px 14px; justify-self: start; }
  .masthead-right { grid-area: right; justify-content: flex-end; }
  .masthead-meta { grid-area: meta; align-items: flex-start; }
  .masthead-meta .masthead-tagline { font-size: 13px; }

  /* Nav becomes burger */
  .nav-burger { display: inline-flex; padding: 12px 0; background: none; border: none; color: inherit; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
  .nav .wrap { flex-wrap: wrap; }
  .nav-list { display: none; flex: 1 1 100%; order: 3; }
  .nav-list.open { display: flex; flex-direction: column; width: 100%; padding: 8px 0 12px; border-top: 1px solid var(--border); }
  .nav-list.open li { border-bottom: 1px solid var(--border); width: 100%; }
  .nav-list.open li:last-child { border-bottom: none; }
  .nav-list.open a { padding: 12px 2px; }
  .nav-search { padding: 12px 0; }

  /* Utility bar — keep but tighten */
  .utility-bar { font-size: 11px; }
  .util-date { display: none; }
  .utility-bar .weather .city { display: none; }
  .ticker { gap: 10px; font-size: 11px; }
  .ticker-item .ccy { display: none; }
  .socials { gap: 10px; }
  .socials a:nth-child(n+5) { display: none; } /* hide threads + tiktok on narrow */

  /* Hero row → 1 col */
  .hero-row-grid { grid-template-columns: 1fr; }
  .hero-row-grid > .card { border-right: none !important; padding: 16px 0 !important; border-bottom: 1px solid var(--border); }
  .hero-row-grid > .card:last-child { border-bottom: none; }

  /* Newsdesk inner cells → 1 col */
  .nd-grid { grid-template-columns: 1fr; }
  .nd-cell { grid-template-columns: 1fr 96px; padding: 14px 0; border-right: none; }
  .nd-cell:nth-child(2n+1), .nd-cell:nth-child(2n) { padding-left: 0; padding-right: 0; }
  .nd-cell h3 { font-size: 16px; }

  /* Cat grid → 1 col */
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid > .col { border-right: none !important; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .cat-grid > .col:last-child { border-bottom: none; }
  .cat-grid > .col:first-child .story h3 { font-size: 24px; }

  /* Opinion → 1 col */
  .opinion-grid { grid-template-columns: 1fr; }
  .opinion-card { border-right: none !important; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .opinion-card:last-child { border-bottom: none; }

  /* Stories on mobile */
  .story h3 { font-size: 20px; }
  .story.lede h3 { font-size: 24px; }
  .story.with-image .thumb { aspect-ratio: 16 / 9; }

  /* Sidebar */
  .sidebar li .h { font-size: 16px; }

  /* Related & footer */
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }

  /* Article */
  .article-wrap { padding: 0 16px; }
  .article-header { padding: 28px 0 18px; }
  .article-header h1 { font-size: clamp(26px, 7vw, 36px); }
  .article-standfirst { font-size: 18px; }
  .article-body p { font-size: 16px; }
  .article-body p:first-of-type::first-letter { font-size: 52px; }
  .pullquote { font-size: 20px; padding-left: 18px; }
}

/* Tiny phones */
@media (max-width: 420px) {
  :root { --gutter: 14px; }
  .logo-block { font-size: 20px; padding: 8px 12px; }
  .lang-switch button { padding: 6px 6px; font-size: 12px; }
  .theme-toggle { width: 26px; height: 26px; margin-left: 6px; }
  .nav-list a { font-size: 11px; padding: 11px 0; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero .standfirst { font-size: 15px; }
  .nd-cell { grid-template-columns: 1fr 80px; }
  .nd-cell h3 { font-size: 15px; }
  .story h3 { font-size: 18px; }
  .story.lede h3 { font-size: 21px; }
  .cat-section-header h2 { font-size: 18px; }
  .feature-card h3 { font-size: 22px; }
  .opinion-card h3 { font-size: 17px; }
  .socials a:nth-child(n+4) { display: none; }
}

/* =================== GO TO TOP =================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.12s ease, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--accent-hover); }
.to-top:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* =================== LATEST (ALL NEWS) PAGE =================== */
.latest-page { padding: 0 0 64px; }
.latest-head {
  padding: 44px 0 28px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 8px;
}
.latest-head .kicker { margin-bottom: 14px; }
.latest-head h1 {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.latest-sub {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 60ch;
}

/* Band */
.lt-band { padding: 8px 0 0; }
.lt-band-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 20px 0 14px;
  margin: 22px 0 24px;
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 49px;
  background: var(--bg);
  z-index: 5;
}
.lt-band-title .lt-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  padding: 1px 7px;
}

/* Card grid */
.lt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.lt-card { display: flex; flex-direction: column; }
.lt-card .lt-img {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
}
.lt-card .lt-img .ph img { transition: transform 0.4s ease; }
.lt-card .lt-img:hover .ph img { transform: scale(1.04); }
.lt-text { display: flex; flex-direction: column; }
.lt-card .kicker { margin-bottom: 9px; }
.lt-card h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-wrap: pretty;
}
.lt-card h3 a { transition: color 0.12s ease; }
.lt-card h3 a:hover { color: var(--accent); }
.lt-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: auto;
  padding-top: 6px;
}

/* Lead card — spans full width, image + text side by side */
.lt-lead-wrap { margin-bottom: 36px; }
.lt-card--lead {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
}
.lt-card--lead .lt-img { margin-bottom: 0; aspect-ratio: 16 / 9; height: 100%; }
.lt-card--lead h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; margin-bottom: 14px; }
.lt-card--lead .lt-standfirst {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 0 14px;
  max-width: 50ch;
}

@media (max-width: 900px) {
  .lt-grid { grid-template-columns: repeat(2, 1fr); }
  .lt-card--lead { grid-template-columns: 1fr; gap: 16px; }
  .lt-card--lead .lt-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .lt-grid { grid-template-columns: 1fr; gap: 28px; }
  .lt-band-title { top: 0; }
}
