/*
Theme Name: Strait
Theme URI: https://strait.news
Author: Strait
Description: Editorial news theme for Strait. Broadsheet typography, section colours, NewsArticle structured data and a Google News sitemap.
Version: 1.6.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: strait
Tags: news, blog, one-column, two-columns, custom-colors
*/

/* Self-hosted fonts (Newsreader, IBM Plex Sans; SIL Open Font License) */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'), url(assets/fonts/newsreader-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'), url(assets/fonts/newsreader-latin-opsz-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2-variations'), url(assets/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/newsreader-latin-ext-opsz-italic.woff2) format('woff2-variations'), url(assets/fonts/newsreader-latin-ext-opsz-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Strait editorial stylesheet.
   Broadsheet conventions: a serif voice for headlines and body, a quiet sans
   for furniture, hairline rules, and a single accent colour per section. */

:root {
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --ink: #121212;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --rule: #dcdcdc;
  --rule-strong: #121212;
  --accent: #b71c1c;
  --link: #0b4a8b;

  --max: 1240px;
  --gutter: 20px;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;
  --t-3xl: 3rem;
}

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

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

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

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

/* ---------- Masthead ---------- */

.topbar {
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 16px;
}
.topbar__date { white-space: nowrap; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a:hover { color: var(--ink); }
.topbar__cta {
  background: var(--ink);
  color: #fff;
  padding: 6px 12px;
  font-weight: 500;
  border-radius: 2px;
  transition: background 150ms ease;
}
.topbar__cta:hover { background: #333; }

.masthead {
  text-align: center;
  padding: 22px 0 14px;
}
.masthead__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  display: inline-block;
}
.masthead__tag {
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

.nav {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 30;
}
.nav .container {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav .container::-webkit-scrollbar { display: none; }
.nav__list {
  display: flex;
  flex: 1;
}
.nav__item a {
  display: block;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.nav__item a:hover { border-bottom-color: var(--rule-strong); }
.nav__item a[aria-current='page'] { border-bottom-color: var(--c, var(--ink)); }
.nav__item:first-child a { padding-left: 0; }
.nav__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-left: 16px;
}
.nav__tools a {
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.nav__tools a:hover { color: var(--ink); }
.nav__tools svg { width: 18px; height: 18px; display: block; }

/* ---------- Breaking strip ---------- */

.strip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--t-sm);
}
.strip .container {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  overflow: hidden;
}
.strip__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.strip__items {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.strip__items::-webkit-scrollbar { display: none; }
.strip__items a { color: var(--ink-2); }
.strip__items a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section furniture ---------- */

.section { padding-block: 28px 8px; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--rule-strong);
  padding-top: 8px;
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 600;
  position: relative;
  padding-left: 12px;
}
.section__title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--c, var(--ink));
}
.section__more {
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.section__more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.kicker {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
}

/* ---------- Cards ---------- */

.card { display: flex; flex-direction: column; gap: 10px; }
.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.card:hover .card__media img { opacity: 0.9; }
.card__title {
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.2;
}
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__dek {
  font-size: var(--t-base);
  color: var(--ink-2);
  line-height: 1.45;
}
.card__meta {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  align-items: center;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: inline-block; }

.card--sm .card__title { font-size: var(--t-md); }
.card--row { flex-direction: row; gap: 14px; }
.card--row .card__media { flex: 0 0 120px; aspect-ratio: 1; }
.card--row .card__title { font-size: var(--t-base); }
.card--text { gap: 6px; }
.card--text .card__title { font-size: var(--t-md); }

/* ---------- Front page ---------- */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 2.6fr);
  padding-block: 18px 24px;
}
.lead > * + * { border-left: 1px solid var(--rule); padding-left: 20px; margin-left: 20px; }

.lead__main .card__title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.lead__main .card__dek { font-size: var(--t-md); }
.lead__main .card__media { aspect-ratio: 16 / 10; }

.lead__second { display: flex; flex-direction: column; gap: 22px; }
.lead__second .card + .card { border-top: 1px solid var(--rule); padding-top: 18px; }

.mostread__title {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 4px;
}
.mostread__list { counter-reset: n; }
.mostread__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.mostread__item::before {
  counter-increment: n;
  content: counter(n);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-3);
}
.mostread__item a {
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1.25;
}
.mostread__item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mostread__item .kicker { display: block; margin-bottom: 4px; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.grid-4 > *, .grid-3 > * { position: relative; min-width: 0; }
.grid-4 > * + *::before, .grid-3 > * + *::before { content: ''; position: absolute; top: 0; bottom: 0; left: -12px; border-left: 1px solid var(--rule); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-pair {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
}
.feature-pair__main .card__title { font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -0.015em; }
.feature-pair__main .card__media { aspect-ratio: 16 / 9; }
.feature-pair__side { display: flex; flex-direction: column; gap: 18px; }
.feature-pair__side .card + .card { border-top: 1px solid var(--rule); padding-top: 18px; }

.newsletter {
  background: var(--paper-2);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  margin: 36px 0;
  padding: 36px 0;
}
.newsletter .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.newsletter h2 { font-size: var(--t-xl); margin-bottom: 8px; }
.newsletter p { color: var(--ink-2); max-width: 46ch; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1;
  font-family: var(--sans);
  font-size: var(--t-sm);
  padding: 12px 14px;
  border: 1px solid var(--ink-3);
  background: #fff;
  min-height: 44px;
}
.newsletter button {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  transition: background 150ms ease;
}
.newsletter button:hover { background: #333; }
.newsletter small { display: block; margin-top: 8px; font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Category page ---------- */

.cat-head {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 24px;
}
.cat-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 18px;
}
.cat-head h1::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 6px;
  background: var(--c, var(--ink));
}
.cat-head p { margin-top: 10px; font-size: var(--t-md); color: var(--ink-2); max-width: 60ch; }

.cat-list { display: flex; flex-direction: column; }
.cat-list .card {
  flex-direction: row;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.cat-list .card__media { flex: 0 0 min(40%, 420px); aspect-ratio: 3 / 2; }
.cat-list .card__title { font-size: var(--t-xl); }

/* ---------- Article ---------- */

.article-head {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 0 18px;
}
.article-head .kicker { margin-bottom: 12px; display: inline-block; }
.article-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.article-head .dek {
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--ink-2);
  margin-top: 16px;
}
.byline {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline time { color: var(--ink-3); }

.article-hero {
  max-width: 1040px;
  margin: 10px auto 0;
}
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.article-hero figcaption {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.5;
  padding: 8px 0 0;
  max-width: 820px;
  margin: 0 auto;
}
.article-hero figcaption .credit { color: var(--ink-3); }

.article-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  max-width: 1040px;
  margin: 28px auto 0;
}
.article-body {
  max-width: 680px;
  font-size: 1.1875rem;
  line-height: 1.6;
}
.article-body p { margin: 0 0 1.25em; }
.article-body a { color: var(--link); text-decoration: underline; text-decoration-color: #b9cde4; text-underline-offset: 3px; }
.article-body h2 { font-size: var(--t-lg); margin: 1.6em 0 0.6em; }
.article-body blockquote {
  margin: 1.6em 0;
  padding-left: 18px;
  border-left: 3px solid var(--ink);
  font-style: italic;
  color: var(--ink-2);
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 28px; }
.article-tags a {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color 150ms ease, color 150ms ease;
}
.article-tags a:hover { border-color: var(--ink); color: var(--ink); }

.sources {
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
  margin-top: 8px;
  font-family: var(--sans);
}
.sources h2 {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sources li { font-size: var(--t-sm); padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.sources li a { color: var(--link); }
.sources li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sources p { font-size: var(--t-xs); color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

.share { display: flex; gap: 10px; margin: 24px 0 8px; }
.share a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink-2);
  transition: border-color 150ms ease, color 150ms ease;
}
.share a:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 16px; height: 16px; }

.rail { font-family: var(--sans); }
.rail__title {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}
.rail .card { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rail .card__title { font-family: var(--serif); font-size: var(--t-base); }

.related { padding-block: 36px 10px; }

/* ---------- Static pages ---------- */

.prose { max-width: 680px; margin: 0 auto; padding: 34px 0; font-size: 1.125rem; line-height: 1.6; }
.prose h1 { font-size: var(--t-3xl); letter-spacing: -0.02em; margin-bottom: 18px; }
.prose h2 { font-size: var(--t-lg); margin: 1.6em 0 0.5em; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
  font-family: var(--sans);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;
  padding: 32px 0;
}
.footer__brand .masthead__name { font-size: 2rem; }
.footer__brand p { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-2); max-width: 32ch; line-height: 1.5; }
.footer h3 {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer li { font-size: var(--t-sm); padding: 4px 0; color: var(--ink-2); }
.footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  border-top: 1px solid var(--rule);
  padding: 16px 0 28px;
  font-size: var(--t-xs);
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .lead { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .lead__aside { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 > :nth-child(odd)::before { display: none; }
  .grid-4 > :nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 20px; }
  .article-body-wrap { grid-template-columns: 1fr; }
  .rail { display: none; }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .topbar__links { display: none; }
  .masthead { padding: 16px 0 10px; }
  .lead { grid-template-columns: 1fr; padding-top: 12px; }
  .lead > * + * { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 20px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .grid-4 > *::before, .grid-3 > *::before { display: none; }
  .grid-4 > * + *, .grid-3 > * + * { border-top: 1px solid var(--rule); padding-top: 18px; }
  .feature-pair { grid-template-columns: 1fr; }
  .feature-pair__main .card__title { font-size: var(--t-xl); }
  .newsletter .container { grid-template-columns: 1fr; }
  .cat-list .card { flex-direction: column; gap: 12px; }
  .cat-list .card__media { flex: none; width: 100%; }
  .cat-list .card__title { font-size: var(--t-lg); }
  .article-body { font-size: 1.0625rem; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 18px;
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.crumbs ol { display: flex; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--rule); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs + .article-head { padding-top: 14px; }

/* ---------- Navigation: section list scrolls, search stays put ---------- */

.nav .container { overflow: visible; }
.nav__list {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__tools { flex: none; }

/* ---------- Phone layout ---------- */

@media (max-width: 680px) {
  /* Compact header so the news starts near the top of the screen */
  .topbar .container { height: 40px; }
  .topbar__date { font-size: 11px; }
  .topbar__cta { display: inline-flex; align-items: center; min-height: 32px; }
  .masthead { padding: 10px 0 8px; }
  .masthead__name { font-size: 2.35rem; }
  .masthead__tag { display: none; }
  .nav__list {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .nav__item a { padding: 12px 12px; }
  .nav__tools { padding-left: 4px; border-left: 1px solid var(--rule); margin-left: 0; }
  .nav__tools a { min-width: 44px; justify-content: center; }
  .nav__tools span { display: none; }
  .strip .container { min-height: 38px; }

  /* Lead story: edge-to-edge photo, readable headline */
  .lead { padding-block: 0 8px; }
  .lead__main .card__media { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 3 / 2; }
  .lead__main .card__title { font-size: 1.75rem; line-height: 1.12; }
  .lead__main .card__dek { font-size: 1.0625rem; }
  .lead > * + * { padding-top: 16px; margin-top: 16px; }
  .lead__second { gap: 16px; }
  .lead__second .card + .card { padding-top: 16px; }

  /* Secondary stories become compact rows: thumbnail + headline */
  .card--sm { flex-direction: row; align-items: flex-start; gap: 14px; }
  .card--sm .card__media { flex: 0 0 112px; aspect-ratio: 1 / 1; }
  .card--sm .card__text { flex: 1; min-width: 0; }
  .card--sm .card__title { font-size: 1.0625rem; line-height: 1.25; }
  .card--sm .card__dek { display: none; }
  .card--row .card__media { flex-basis: 112px; }
  .card--row .card__title { font-size: 1.0625rem; line-height: 1.25; }

  .section { padding-block: 22px 4px; }
  .section__head { margin-bottom: 14px; }
  .grid-4, .grid-3 { gap: 16px; }
  .grid-4 > * + *, .grid-3 > * + * { padding-top: 16px; }
  .feature-pair { gap: 16px; }
  .feature-pair__main .card__title { font-size: 1.5rem; line-height: 1.15; }
  .feature-pair__main .card__media { aspect-ratio: 3 / 2; }
  .feature-pair__side { gap: 16px; }
  .feature-pair__side .card + .card { padding-top: 16px; }
  .mostread__item { padding: 10px 0; }
  .mostread__item a { font-size: 1rem; }

  .newsletter { margin: 24px 0; padding: 24px 0; }
  .newsletter h2 { font-size: 1.5rem; }
  .newsletter form { flex-direction: column; }
  .newsletter input { font-size: 16px; min-height: 48px; }
  .newsletter button { min-height: 48px; }

  /* Section fronts: lead story large, the rest as compact rows */
  .cat-head { padding: 20px 0 14px; margin-bottom: 4px; }
  .cat-head h1 { font-size: 2rem; }
  .cat-head p { font-size: 1rem; }
  .cat-list .card { padding: 16px 0; }
  .cat-list .card:not(:first-child) { flex-direction: row; gap: 14px; }
  .cat-list .card:not(:first-child) .card__media { flex: 0 0 112px; width: auto; aspect-ratio: 1 / 1; }
  .cat-list .card:not(:first-child) .card__text { flex: 1; min-width: 0; }
  .cat-list .card:not(:first-child) .card__title { font-size: 1.0625rem; line-height: 1.25; }
  .cat-list .card:not(:first-child) .card__dek { display: none; }

  /* Article pages */
  .crumbs { display: none; }
  .article-head { padding: 18px 0 14px; }
  .article-head h1 { font-size: 1.85rem; line-height: 1.12; }
  .article-head .dek { font-size: 1.125rem; line-height: 1.4; margin-top: 12px; }
  .byline { margin-top: 16px; padding-top: 12px; font-size: 13px; gap: 4px 14px; }
  .article-hero { margin-inline: calc(-1 * var(--gutter)); }
  .article-hero img { aspect-ratio: 3 / 2; }
  .article-hero figcaption { padding: 8px var(--gutter) 0; }
  .article-body-wrap { margin-top: 20px; gap: 0; }
  .article-body { font-size: 1.0625rem; line-height: 1.65; }
  .article-tags a { padding: 8px 12px; }
  .related { padding-block: 24px 4px; }

  .search h1, .prose h1 { font-size: 2rem; }
  .search input { font-size: 16px; }

  .footer { margin-top: 32px; }
  .footer__top { gap: 22px; padding: 24px 0; }
  .footer li { padding: 0; }
  .footer li a { display: inline-block; padding: 7px 0; }

  /* Bigger tap areas for small text links, without changing the layout */
  a.kicker, .section__more, .section__title a { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

/* ---------- Small tablets ---------- */

@media (min-width: 681px) and (max-width: 1024px) {
  .lead__main .card__title { font-size: 2rem; }
  .card--sm .card__title { font-size: 1.0625rem; }
}


/* ---------- WordPress-specific additions ---------- */

.card__text { display: flex; flex-direction: column; gap: 6px; }

.amp { color: var(--ink-3); font-weight: 400; }
.section__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}
.sections-grid li { border-top: 3px solid var(--c); padding-top: 10px; }
.sections-grid a { display: flex; flex-direction: column; gap: 6px; }
.sections-grid__desc { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.sections-grid a:hover .sections-grid__desc { color: var(--ink); }

.empty { font-family: var(--sans); color: var(--ink-3); padding: 40px 0; }

.search { max-width: 760px; margin: 0 auto; padding: 34px 0; }
.search h1 { font-size: var(--t-3xl); letter-spacing: -0.02em; margin-bottom: 18px; }
.search input {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--t-md);
  padding: 14px 16px;
  border: 1px solid var(--ink-3);
  min-height: 48px;
}
.search__count { font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-3); margin: 14px 0 6px; }
.search__results li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.search__results h2 { font-size: var(--t-lg); }
.search__results h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.search__results p { color: var(--ink-2); }
.search__results .date { font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-3); }

/* Skip link becomes visible on keyboard focus. */
.skip-link:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto; margin: 0;
  padding: 10px 14px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: var(--t-sm);
  z-index: 100;
}

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

/* Pagination */
.pagination { margin: 28px 0 8px; font-family: var(--sans); font-size: var(--t-sm); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--rule); color: var(--ink-2);
  transition: border-color 150ms ease, color 150ms ease;
}
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Content coming from the block editor */
.article-body figure, .prose figure { margin: 1.6em 0; }
.article-body img, .prose img { height: auto; }
.article-body figcaption, .prose figcaption { font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-3); margin-top: 6px; }
.article-body ul, .article-body ol, .prose ul, .prose ol { list-style: revert; padding-left: 1.4em; margin: 0 0 1.25em; }
.prose p { margin-bottom: 1.1em; }
.wp-block-embed { margin: 1.6em 0; }
.wp-block-embed iframe { max-width: 100%; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Logged-in admin bar should not cover the sticky nav */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }

@media (max-width: 1024px) { .sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .sections-grid { grid-template-columns: 1fr; } }

/* ---------- Gold rate ---------- */

:root { --gold: #8a6d1d; --up: #1b5e20; --down: #b71c1c; }

.topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__date-short { display: none; }
.topbar__gold {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding-left: 14px; border-left: 1px solid var(--rule);
  white-space: nowrap; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: color 150ms ease;
}
.topbar__gold:hover { color: var(--ink); }
.topbar__gold-label { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

.gold-change { font-family: var(--sans); font-size: 0.92em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gold-change--up { color: var(--up); }
.gold-change--down { color: var(--down); }
.gold-change--flat { color: var(--ink-3); }

/* Card from the [strait_gold] shortcode, used inside stories and pages */
.gold-card { margin: 28px 0; max-width: 420px; font-family: var(--sans); }
.gold-card__title {
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong);
}
.gold-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gold-card__spot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 12px 0 8px; }
.gold-card__price { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.gold-card__unit { font-size: var(--t-xs); color: var(--ink-3); }
.gold-card__table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.gold-card__table th, .gold-card__table td { padding: 8px 0; border-top: 1px solid var(--rule); }
.gold-card__table th { text-align: left; font-weight: 500; color: var(--ink-2); }
.gold-card__table td { text-align: right; font-weight: 600; white-space: nowrap; }
.gold-card__table td span { font-weight: 400; font-size: var(--t-xs); color: var(--ink-3); }
.gold-card__foot { padding-top: 8px; border-top: 1px solid var(--rule); font-size: var(--t-xs); line-height: 1.5; color: var(--ink-3); }
.gold-card__foot a { color: var(--link); font-weight: 500; }
.gold-card__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Strip on the Business, UAE and India fronts */
.gold-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin: 0 0 48px; padding: 14px 0;
  border-top: 3px solid var(--gold); border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.gold-strip__name { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.gold-strip__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.gold-strip__list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.gold-strip__list div { display: flex; align-items: baseline; gap: 8px; }
.gold-strip__list dt { font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.gold-strip__list dd { margin: 0; font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gold-strip__list dd > span:not(.gold-change) { font-weight: 400; font-size: var(--t-xs); color: var(--ink-3); }
.gold-strip__more { margin-left: auto; font-size: var(--t-sm); font-weight: 500; color: var(--link); white-space: nowrap; }
.gold-strip__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Gold rate page */
.gold-page { max-width: 820px; margin: 0 auto; padding-bottom: 12px; }
.gold-page__head { padding: 14px 0 22px; border-bottom: 1px solid var(--rule); }
.gold-page__head h1 { font-size: var(--t-3xl); line-height: 1.08; letter-spacing: -0.02em; margin: 8px 0 10px; }
.gold-page__dek { font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); max-width: 640px; }
.gold-page__meta { margin-top: 12px; font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-3); }
.gold-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.gold-fig { padding: 20px 20px 20px 0; }
.gold-fig + .gold-fig { padding-left: 20px; border-left: 1px solid var(--rule); }
.gold-fig__label { font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.gold-fig__value { margin: 6px 0 4px; font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.gold-fig__unit { font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-3); }
.gold-section { padding-top: 32px; }
.gold-section h2 { font-size: var(--t-xl); margin-bottom: 14px; }
.gold-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gold-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--t-base); font-variant-numeric: tabular-nums; }
.gold-table th, .gold-table td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.gold-table th:first-child, .gold-table td:first-child { text-align: left; padding-left: 0; }
.gold-table th:last-child, .gold-table td:last-child { padding-right: 0; }
.gold-table thead th { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); vertical-align: bottom; border-bottom: 1px solid var(--rule-strong); }
.gold-table tbody th { font-weight: 600; }
.gold-table td { font-weight: 500; }
.gold-table small { display: block; margin-top: 2px; font-size: var(--t-xs); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.gold-notes p { margin-bottom: 1em; font-size: var(--t-md); line-height: 1.6; color: var(--ink-2); max-width: 680px; }
.gold-notes .gold-source { font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-3); }
.gold-source a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.gold-related { margin-top: 24px; }
.gold-home .gold-strip { margin: 4px 0 0; }
.gold-page__notice { margin-top: 10px; padding: 10px 12px; background: var(--paper-2); border-left: 3px solid var(--gold); font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-2); }
.topbar__gold-date { color: var(--ink-3); }
/* The card sits inside .article-body or .prose, whose h2, p and a rules would otherwise win. */
.gold-card .gold-card__title { font-family: var(--sans); font-size: var(--t-sm); line-height: 1.3; margin: 0; }
.gold-card .gold-card__title a, .gold-card .gold-card__foot a { text-decoration: none; }
.gold-card .gold-card__title a { color: inherit; }
.gold-card .gold-card__title a:hover, .gold-card .gold-card__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gold-card .gold-card__spot, .gold-card .gold-card__foot { margin: 0; }
.gold-card .gold-card__table { margin: 0; }

@media (max-width: 680px) {
  .topbar__date-long { display: none; }
  .topbar__date-short { display: inline; }
  .topbar__left { gap: 10px; }
  .topbar__gold { padding-left: 10px; gap: 5px; }
  .gold-strip { gap: 12px; }
  .gold-strip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; width: 100%; }
  .gold-strip__list div { flex-direction: column; gap: 2px; }
  .gold-strip__more { margin-left: 0; display: inline-block; padding: 8px 0; }
  .gold-page__head h1 { font-size: var(--t-2xl); }
  .gold-figs { grid-template-columns: 1fr; }
  .gold-fig { padding: 14px 0; }
  .gold-fig + .gold-fig { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .gold-fig__value { font-size: 1.75rem; }
  .gold-table th, .gold-table td { padding: 10px 6px; font-size: var(--t-sm); }
  .gold-table thead th { font-size: 11px; }
  .gold-notes p { font-size: var(--t-base); }
}
@media (max-width: 380px) {
  .topbar__gold .gold-change { display: none; }
}

/* =========================================================
   Section fronts: CNN structure, Strait typography.
   Shared by the Astro site and the WordPress theme.
   ========================================================= */

.sf-head { padding-top: 32px; }
.sf-head__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 6px;
}
.sf-head__eyebrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-head__title {
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.sf-head__page {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sf-head__dek {
  margin-top: 8px;
  max-width: 60ch;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-3);
}
.sf-head--compact .sf-head__title { font-size: 2.25rem; line-height: 1.12; }
.sf-head__rule { margin: 20px 0 32px; border-top: 2px solid var(--ink); }

/* Topic navigation */
.subnav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 2px solid var(--ink);
  font-family: var(--sans);
}
.subnav__list { display: flex; gap: 24px; min-width: 0; }
.subnav__list a,
.subnav__more summary {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 44px;
  white-space: nowrap;
  color: var(--ink);
}
.subnav__list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.subnav__list a[aria-current="page"],
.subnav__more ul a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.subnav__list li:nth-child(n+7) { display: none; }
.subnav__more { position: relative; }
.subnav__more summary { cursor: pointer; list-style: none; }
.subnav__more summary::-webkit-details-marker { display: none; }
.subnav__more summary::after { content: " \25BE"; font-size: 12px; }
.subnav__more ul {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  z-index: 20;
  min-width: 200px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.subnav__more ul a { display: block; padding: 10px 16px; font-size: 15px; }
.subnav__more ul a:hover { background: var(--paper-2); }
.subnav__more li:nth-child(-n+2) { display: none; } /* items 5-6 are inline on desktop */
.subnav--fits-lg .subnav__more { display: none; }
.subnav__more:has(li:nth-child(n+3) > a[aria-current="page"]) summary { font-weight: 600; }

/* Zones */
.sf-zone { margin-bottom: 48px; }
.sf-ztitle {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.sf-ztitle a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ctitle {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 6px solid var(--c, var(--ink));
  padding-left: 10px;
  margin: 0 0 16px;
}
.ctitle a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ctitle__arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}
a:hover > .ctitle__arrow,
a:focus-visible > .ctitle__arrow { opacity: 1; transform: none; }

/* Shared media and headline behaviour */
.sf-media,
.sf-list-row__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.sf-media img,
.sf-list-row__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.sf-media:hover img,
.sf-list-row__media:hover img { opacity: 0.85; }
.sf-lead__title a:hover,
.sf-strip-card__title a:hover,
.sf-tile__title a:hover,
.sf-row__title a:hover,
.sf-list-row__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sf a:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.sf-meta {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
}
.sf time.is-recent { color: var(--c); font-weight: 600; }

/* Zone 1: lead band (2fr | 1fr | 1fr) */
.sf-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
}
.sf-top--solo { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
@media (min-width: 1025px) {
  .sf-top--solo .sf-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
  .sf-top--solo .sf-lead__text { margin-top: 0; }
}
.sf-lead__figure { margin: 0; }
.sf-credit {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-3);
  text-align: right;
}
.sf-lead__text { margin-top: 12px; }
.sf-lead > .sf-lead__text:first-child { grid-column: 1 / -1; margin-top: 0; }
.sf-lead__title {
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sf-lead__dek { margin-top: 8px; font-size: 17px; line-height: 25px; color: var(--ink-2); }
.sf-lead .sf-meta { margin-top: 8px; }
.sf-top__strip { display: grid; gap: 24px; }
.sf-strip-card__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Hairline row lists (Latest, Around Strait) */
.sf-rows > li { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; }
.sf-rows > li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.sf-row__meta {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.sf-row__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
}
.sf-row__title {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  text-wrap: pretty;
}
.sf-rows--headlines .sf-row__title { margin-top: 0; font-size: 1.0625rem; }

/* Zones 2 and 3: tiles */
.sf-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.sf-tile__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 500;
}

/* Zone 4: river and rail */
.sf-river {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0 24px;
  align-items: start;
}
.sf-river__rail { position: sticky; top: 72px; }
.admin-bar .sf-river__rail { top: 104px; }
.sf-list-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.sf-list-row:first-child { padding-top: 0; }
.sf-list-row > .sf-list-row__text:first-child { grid-column: 1 / -1; }
.sf-list-row__media { aspect-ratio: 3 / 2; }
.sf-list-row__title {
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sf-list-row__dek {
  margin-top: 6px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-list-row .sf-meta { margin-top: 8px; }

/* Page 2+ and topic pages */
.sf-archive { max-width: 760px; margin-bottom: 48px; }
.sf-empty { font-family: var(--sans); font-size: 15px; color: var(--ink-3); padding: 32px 0; }
.sf-morelink { margin: -16px 0 48px; }
.sf-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}
.sf-button:hover { background: var(--ink); color: #fff; }

.pager { margin-top: 32px; font-family: var(--sans); font-size: 14px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pager a,
.pager span[aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 500;
  color: var(--ink);
}
.pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pager span[aria-current] { font-weight: 600; border-bottom: 2px solid var(--c); }
.pager__gap { padding: 0 4px; color: var(--ink-3); }

/* Zone 5: Around Strait */
.sf-around {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}
.sf-around__body .sf-strip-card { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; }
.sf-around__body .sf-strip-card:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .sf-head__title { font-size: 2.25rem; }
  .sf-head--compact .sf-head__title { font-size: 2rem; }
  .subnav__list li:nth-child(n+5) { display: none; }
  .subnav__more li { display: list-item !important; }
  .subnav--fits-lg .subnav__more { display: block; }
  .subnav__more:has(a[aria-current="page"]) summary { font-weight: 600; }

  .sf-top,
  .sf-top--solo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 32px; }
  .sf-top > * { grid-column: 1 / -1; }
  .sf-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
  .sf-lead__text { margin-top: 0; }
  .sf-lead__title { font-size: 1.75rem; }
  .sf-top__strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sf-top__latest .sf-rows { columns: 2; column-gap: 24px; }
  .sf-top__latest .sf-rows > li { break-inside: avoid; }
  .sf-top__latest .sf-rows > li:last-child { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; }

  .sf-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-river { grid-template-columns: minmax(0, 1fr); }
  .sf-river__rail { position: static; margin-top: 40px; }
  .sf-around { grid-template-columns: minmax(0, 1fr); }
  .sf-around__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .sf-around__body .sf-strip-card { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .sf-zone { margin-bottom: 40px; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  .sf-head { padding-top: 22px; }
  .sf-head__title { font-size: 1.875rem; line-height: 1.13; }
  .sf-head--compact .sf-head__title { font-size: 1.75rem; }
  .subnav { margin: 14px 0 24px; }
  .subnav__list {
    overflow-x: auto;
    padding: 4px;
    margin: -4px;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .subnav__list::-webkit-scrollbar { display: none; }
  .subnav__list li { display: list-item !important; }
  .subnav__list li:last-child { padding-right: 24px; }
  .subnav__more { display: none !important; }

  .sf-top,
  .sf-top--solo,
  .sf-lead,
  .sf-top__strip,
  .sf-around__body { grid-template-columns: minmax(0, 1fr); }
  .sf-around__body { gap: 0; }
  .sf-around__body .sf-strip-card { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; }
  .sf-around__body .sf-strip-card:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .sf-top { row-gap: 0; }
  .sf-lead .sf-media { margin-inline: calc(-1 * var(--gutter)); }
  .sf-lead__text { margin-top: 12px; }
  .sf-lead__title { font-size: 1.625rem; line-height: 1.15; }
  .sf-lead__dek { font-size: 16px; line-height: 24px; }
  .sf-top__latest .sf-rows { columns: 1; }
  .sf-top__latest .sf-rows > li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

  /* CNN-style 8px band between stacked containers */
  .sf-top > * + *,
  .sf-around__col + .sf-around__col {
    margin: 24px calc(-1 * var(--gutter)) 0;
    padding: 24px var(--gutter) 0;
    border-top: 8px solid var(--paper-2);
  }
  .sf-around { row-gap: 0; }

  .sf-grid4 { gap: 24px 16px; }
  .sf-tile__title { font-size: 1rem; line-height: 1.25; }
  .sf-list-row { grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; }
  .sf-list-row__title { font-size: 1.0625rem; line-height: 1.3; }
  .sf-list-row__dek { display: none; }
  .sf-ztitle { font-size: 1.5rem; margin-bottom: 18px; }
  .sf-zone { margin-bottom: 32px; }
  .pager ul { justify-content: center; }
}
