/* ============================================================
   THE GLASS MELBOURNE — Components (Dark Edition)
   No teal. No light backgrounds. Cinematic, editorial.
   ============================================================ */

/* ============================================================
   1. NAV — Dark frosted sticky bar
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 200; }

.nav {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: var(--nav-height);
  padding-block: var(--space-5);   /* generous even space so the masthead sits centred in the band */
  padding-inline: var(--gutter);
  background: #0D0F11;            /* solid dark — clean backdrop for the masthead blend */
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: min-height var(--dur) var(--ease), padding-block var(--dur) var(--ease);
}

.nav.nav--shrunk { padding-block: var(--space-2); }
.nav.nav--shrunk .nav__wordmark { font-size: 2.8rem; }
.nav.nav--shrunk .nav__logo { height: 2.1rem; }
.nav.nav--shrunk .nav__tagline { display: none; }
/* shrunk: tagline hidden, so brand = wordmark; default centring aligns links to it */
.nav.nav--shrunk .nav__links,
.nav.nav--shrunk .nav__actions { margin-bottom: 0; }

/* Masthead — live text: "The Glass" wordmark + prism logo, tagline beneath */
.nav__brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  align-self: center;       /* centre the masthead in the band (no longer top-crowded) */
}
.nav__brand-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;       /* largest that fits all 9 links + Subscribe beside it at 1280px */
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  transition: font-size var(--dur) var(--ease);
}
.nav__logo {
  height: 3.5rem;        /* scales with the wordmark; width auto = proportional, no distortion */
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height var(--dur) var(--ease);
}
.nav__tagline {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
/* Desktop (>900px) only: size the tagline up and track it out, then indent it so
   it reads as centred beneath the "The Glass" wordmark — starting a bit right of
   the "T" and ending before the right edge of "Glass". The <=900px tagline rule
   is left untouched (correct on mobile). */
@media (min-width: 901px) {
  .nav__tagline {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    margin-left: 1.6em;
  }
}

.nav__links {
  display: flex; align-items: center; gap: clamp(6px, 0.8vw, 10px);
  list-style: none; margin-left: auto;
  margin-bottom: 14px;   /* nudge up to the wordmark's centre (tagline sits below it) */
}
.nav__link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  padding: 4px 2px;
  position: relative;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current]::after { transform: scaleX(1); }
.nav__link[aria-current] { color: var(--ink); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; margin-bottom: 14px; }
.nav__subscribe {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  padding: 6px 16px;
  border-radius: 3px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__subscribe:hover { background: #fff; color: #0D0F11; }

/* Masthead social icons (Instagram + Facebook) — desktop nav actions + overlay */
.nav__social {
  display: inline-flex; align-items: center;
  color: var(--ink-2);
  transition: color var(--dur, .2s) var(--ease, ease);
}
.nav__social:hover { color: var(--ink); }
.nav__social svg { width: 18px; height: 18px; display: block; }

/* Inline mobile social cluster — desktop uses .nav__actions (>=901px); mobile
   surfaces IG/FB in the nav row itself (<=900px), just left of the hamburger.
   The <=900px layout rules live at the END of this file so they win over the
   section-10 / header-search mobile rules. */
.nav__social-mobile { display: none; }

/* Hamburger */
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  flex-direction: column; gap: 5px; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.nav__toggle:hover { background: var(--paper-cool); }
.nav__toggle__bar {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav[data-open="true"] .nav__toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle__bar:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Dark full-screen mobile overlay */
.nav__overlay {
  position: fixed; inset: var(--nav-height) 0 0 0;
  z-index: 199;
  background: rgba(13,15,17,0.96);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  display: none; flex-direction: column;
  padding: var(--space-6) var(--gutter) var(--space-8);
  gap: 0;
  border-top: 1px solid var(--glass-line);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__overlay { background: rgba(13,15,17,0.99); }
}
.nav__overlay.is-open { display: flex; }
.nav__overlay .nav__link {
  font-size: var(--step-2);
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--hairline);
  display: block;
}
.nav__overlay .nav__link:hover { color: #fff; }
.nav__overlay .nav__link::after { display: none; }
.nav__overlay .nav__subscribe { margin-top: var(--space-5); align-self: flex-start; padding: 10px 24px; }

/* ============================================================
   2. LEAD SECTION
   ============================================================ */
.lead-section { padding: 0; margin: 0; }

/* ---- Two-column grid: 58% story / 42% wire -------------- */
.lead-grid {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: var(--space-7);
  /* Top row: hero (left) + short wire (right), each sized to its own content.
     align-items:start keeps the mobile lead card from stretching taller than its
     image (which would detach the .lead-band plate from the image bottom). */
  align-items: start;
  padding-block: var(--space-3) var(--space-4);
}

/* ---- LEAD CARD ------------------------------------------ */
.lead-col-story {
  width: 100%;
  min-width: 0;
}

.lead-story-card {
  /* Single-cell grid: image and plate share one cell so the plate's position
     tracks the image's REAL height on reflow — immune to load-timing races.
     (Absolute positioning painted the plate against the pre-load card height,
     leaving it stranded mid-image once a slow mobile image finished loading.) */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  /* No fixed ratio: the card hugs the image's real height, so any image (3:2 to
     5:4, or a taller tweet-card) shows complete with no crop and no dark bars. */
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  background: var(--paper-2);
}

.lead-story-img {
  grid-area: 1 / 1;          /* same cell as the plate */
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
  transition: transform 0.5s var(--ease);
}

/* Lead band — original frosted .plate formula (real backdrop-filter) */
.lead-band {
  grid-area: 1 / 1;          /* same cell as the image */
  align-self: end;           /* pin to the BOTTOM of the image's cell */
  z-index: 10;
  margin: 0 var(--space-5) 2px var(--space-5);   /* inset inside the shared cell */
  padding: var(--space-4);
  background: rgba(13,15,17,0.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lead-band { background: rgba(13,15,17,0.88); }
}
.lead-band .lead-kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.lead-band .lead-headline {
  font-family: var(--font-display);
  /* font-size is set inline by fitLeadHeadline() in home.js, which shrinks a
     long headline so it always fits 2 lines (short ones sit at max). */
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.lead-band .lead-byline {
  font-family: var(--font-ui);
  font-size: 0.80rem;
  color: rgba(255,255,255,0.75);
}

/* "Second lead" cards run 3-across in a full-width row below the hero+wire grid. */
.second-leads {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6) var(--space-7);
  margin-top: var(--space-5);
}

/* Normal vertical card: image on top (16:9), then kicker/headline/standfirst/byline. */
.second-lead-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.second-lead-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  display: block;
  transition: opacity var(--dur) var(--ease);
}
.second-lead-card:hover .second-lead-card__img { opacity: 0.9; }

.second-lead-card__body { margin-top: var(--space-3); min-width: 0; }

.second-lead-card__kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-2);
}

.second-lead-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}
.second-lead-card:hover .second-lead-card__title { color: #fff; }

.second-lead-card__standfirst {
  font-size: var(--step-0);
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.second-lead-card__meta {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--slate);
  margin-top: var(--space-3);
}

/* Right column — short live wire list beside the hero (sized to ~hero height). */
.lead-col-wire {
  width: 100%;
  min-width: 0;
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: var(--space-6);
  /* Flex column so fillWire() in home.js can distribute leftover space between
     the news items (via per-item margin-top, no margin-collapse) to fill the
     wire down to the hero image's bottom exactly. */
  display: flex;
  flex-direction: column;
}

.wire-col-header {
  display: flex; align-items: center; gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--glass-line);
}

.wire-item-full {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  align-items: start;
  text-align: left;
}
.wire-item-full:last-child { border-bottom: 0; }
.wire-item-full:hover .wire-item-full__title { color: #fff; }

.wire-item-full__thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.85;
  background: var(--paper-2);
}

.wire-item-full__meta {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: 4px;
}

.wire-item-full__tag {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
}

.wire-item-full__time {
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  font-size: 0.70rem;
}

.wire-item-full__title {
  color: #C9C5BE;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.35;
  transition: color var(--dur) var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Frosted headline plate — used in article templates only */
.plate {
  position: absolute; bottom: var(--space-5); left: var(--space-5); right: var(--space-5);
  padding: var(--space-5);
  background: rgba(13,15,17,0.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .plate { background: rgba(13,15,17,0.88); }
}

.plate__kicker { display: block; margin-bottom: var(--space-3); }
.plate__headline {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.plate__standfirst {
  font-family: var(--font-ui);
  font-size: 0.90rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin-top: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plate__meta {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-4);
  font-family: var(--font-ui); font-size: var(--step--1); color: rgba(255,255,255,0.50);
}
.plate__meta-dot { opacity: 0.4; }

/* ---- Wire shared styles --------------------------------- */
.wire-header__title {
  font-family: var(--font-ui); font-size: var(--step--1);
  font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--step--1); font-weight: 600; color: rgba(255,255,255,0.85);
}
.live-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #E8453C;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Category divider — visible hairline (from base.css) with even, balanced
   breathing room top and bottom. Overridden here so the change ships with the
   cache-busted components.css rather than the unversioned base.css. */
.section-rule { margin-block: var(--space-5); }

/* ============================================================
   3. FEATURE WELL ("Through the Glass")
   ============================================================ */
.feature-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Heading + inline descriptor group (keeps "All features →" pushed to the far right) */
.section-label__lead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}
/* Small descriptor beside a section heading (e.g. "Through the Glass") */
.section-descriptor {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--slate);
  letter-spacing: 0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-7);
}

.feature-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.feature-card__media {
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: block;
}

.feature-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.feature-card:hover .feature-card__media > img {
  transform: scale(1.04);
}

/* Dark scrim over the image so the white kicker/headline on the overlaid
   plate stay legible regardless of the photo behind them. Transparent at the
   top, near-opaque at the bottom where the plate sits. */
.feature-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.30) 60%,
    rgba(0,0,0,0.80) 100%);
}

/* Feature plate — original frosted .plate formula (real backdrop-filter) */
.feature-card__plate {
  position: absolute;
  z-index: 2;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  padding: var(--space-5);
  background: rgba(13,15,17,0.62);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .feature-card__plate { background: rgba(13,15,17,0.90); }
}

.feature-card__plate .plate__kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.feature-card__plate .plate__headline {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature-card__below {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
}

.feature-card__meta {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: #9A9690;
}

/* ============================================================
   4. NEWS SECTION GRIDS
   ============================================================ */
.news-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-7);
}

.news-card {
  background: var(--paper-cool);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.5);
}

.news-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
}
.news-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.4s ease;
}

.news-card__body { padding: var(--space-4); }
.news-card__kicker { display: block; margin-bottom: var(--space-2); }
.news-card__title {
  font-family: var(--font-display); font-size: var(--step-1);
  font-weight: 600; color: #F4F1EB; line-height: 1.15; letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}
.news-card:hover .news-card__title { color: #fff; }
.news-card__standfirst {
  font-size: var(--step-0); color: #C9C5BE; line-height: 1.5;
  margin-top: var(--space-3);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__meta {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
}

/* ============================================================
   5. OPINION STRIP
   ============================================================ */
.opinion-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.opinion-list { list-style: none; }

.opinion-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: var(--space-5); align-items: center;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.opinion-item:last-child { border-bottom: 1px solid var(--hairline); }
.opinion-item:hover .opinion-item__title { color: #fff; }

.opinion-item__avatar {
  width: 80px; height: 60px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--hairline-strong);
  filter: grayscale(20%);
}
.opinion-item__kicker { margin-bottom: var(--space-2); }
.opinion-item__title {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); line-height: 1.2; letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}
.opinion-item__author {
  margin-top: var(--space-3);
  font-size: var(--step--1); color: #9A9690;
}

/* ============================================================
   6. ON THE STREET — Vox pop strip
   ============================================================ */
.on-street-section { padding-block: var(--space-7); }

.on-street-header { margin-bottom: var(--space-6); }
.on-street-label {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: var(--space-3);
}
.on-street-question {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
  max-width: 60ch;
  border-left: 2px solid var(--glass-line);
  padding-left: var(--space-5);
}

.on-street-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.on-street-card {
  background: var(--paper-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color var(--dur) var(--ease);
}
.on-street-card:hover { border-color: rgba(255,255,255,0.18); }
.on-street-card__avatar {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hairline-strong);
  filter: grayscale(15%);
}
.on-street-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.4;
  flex: 1;
}
.on-street-card__attribution {
  margin-top: auto;
}
.on-street-card__name {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  color: rgba(255,255,255,0.50);
}
.on-street-card__suburb {
  font-size: var(--step--1);
  color: var(--slate);
  margin-top: 2px;
}

/* ============================================================
   7. FOOTER — Deeper than main background
   ============================================================ */
.site-footer {
  background: #080A0B;
  color: rgba(255,255,255,0.45);
  padding-block: var(--space-9) var(--space-7);
  margin-top: var(--space-6);
  border-top: 1px solid var(--hairline);
}
.site-footer a { color: rgba(255,255,255,0.45); transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: #fff; }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--hairline);
}
.footer__brand-wordmark {
  /* Stack "The Glass" centred directly above the prism logo (was inline, so the
     wordmark sat up-and-left of the prism). */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1;
}
/* Centre the tagline beneath the now-centred brand */
.footer__tagline { margin-top: var(--space-3); font-size: var(--step--1); max-width: 28ch; text-align: center; margin-inline: auto; }
.footer__col-title {
  font-family: var(--font-ui); font-size: var(--step--1);
  font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); margin-bottom: var(--space-4);
}
.footer__col-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col-links a { font-size: var(--step-0); }

.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--space-4); align-items: center;
  padding-top: var(--space-6);
  font-size: var(--step--1); color: rgba(255,255,255,0.25);
}
.footer__socials { display: flex; gap: var(--space-5); }
.footer__socials a { color: rgba(255,255,255,0.35); font-size: var(--step--1); }
.footer__socials a:hover { color: #fff; }

/* Legal + "Powered by Claude" group sits together at the left of the base row */
.footer__base-legal { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__powered {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  color: rgba(255,255,255,0.30);
}
/* Reserved for the official Claude logo once supplied (see render.js slot) */
.footer__powered-logo { height: 0.9em; width: auto; opacity: 0.7; }

/* ============================================================
   8. ARTICLE TEMPLATES
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 201;
  width: 0%; height: 2px;
  background: rgba(255,255,255,0.35);
  transition: width 80ms linear;
}

.article-page { padding-bottom: var(--space-9); }

/* News hero — figure wraps image + caption at one shared width */
.article-hero {
  max-width: 840px;                 /* match .container--narrow text column */
  margin: 0 auto var(--space-7);
  padding-inline: var(--gutter);    /* image edges align with the headline */
}
.article-hero--news {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
}
/* Show the whole image at its natural ratio — never crop. max-height is only
   insurance against a freak very-tall source; if it triggers, contain (not
   cover) so the full image is still visible, letterboxed. */
.article-hero--news img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  display: block;
}
.article-hero__caption {
  width: 100%;
  margin-top: var(--space-3);
  text-align: left;
  font-size: var(--step--1);
  color: var(--slate);
  font-style: italic;
}

/* Feature hero — full-bleed */
.article-hero--feature {
  position: relative;
  width: 100vw; margin-inline: calc(50% - 50vw);
  height: 80vh; min-height: 540px; max-height: 860px;
  overflow: hidden;
  margin-bottom: var(--space-7);
  background: var(--paper-2);
}
.article-hero--feature img { width: 100%; height: 100%; object-fit: cover; }

.article-hero--feature .plate {
  bottom: var(--space-7); left: var(--space-7); right: auto;
  width: calc(100% - var(--space-7) * 2); max-width: 760px;
}
.article-hero--feature .plate__headline { font-size: var(--step-5); }
@media (max-width: 640px) {
  .article-hero--feature .plate { bottom: var(--space-4); left: var(--space-4); right: var(--space-4); width: auto; }
  .article-hero--feature .plate__headline { font-size: var(--step-3); }
}

/* Article header */
.article-header {
  padding-top: var(--space-7);
  margin-bottom: var(--space-7);
}
.article-header__kicker { margin-bottom: var(--space-4); }
.article-title {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink); line-height: 1.06;
}
.article-title--news    { font-size: var(--step-3); }
/* Feature + opinion headlines match news exactly — upright, weight 600, same
   scale. (Opinion was italic 300, which read as a broken/fallback font next
   to every other headline; article.js now uses --news on all types.) */
.article-title--feature { font-size: var(--step-3); }
.article-title--opinion { font-size: var(--step-3); }

.article-standfirst {
  font-family: var(--font-ui); font-weight: 400;
  font-size: var(--step-0); color: var(--ink-2); line-height: 1.55;
  margin-top: var(--space-5); max-width: 62ch;
}

.article-meta {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-5); padding-block: var(--space-4);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.article-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hairline-strong); }

/* Author block — Feature + Opinion */
.author-block {
  display: flex; align-items: flex-start; gap: var(--space-5);
  padding: var(--space-5); margin-block: var(--space-6);
  background: var(--paper-cool);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.author-block--opinion {
  border-left: 3px solid var(--glass-line);
}
.author-block__photo {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--hairline-strong);
  filter: grayscale(15%);
}
.author-block__photo--opinion { width: 100px; height: 100px; }
.author-block__name {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
}
.author-block__bio { font-size: var(--step-0); color: var(--slate); line-height: 1.5; margin-top: var(--space-2); max-width: 50ch; }
.author-block__meta { font-size: var(--step--1); color: var(--slate); margin-top: var(--space-3); display: flex; gap: var(--space-4); }

/* Source attribution + "Why it matters" — News */
.source-block, .why-matters {
  padding: var(--space-4) var(--space-5);
  background: var(--paper-cool);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--glass-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: var(--space-6);
}
.source-block__label, .why-matters__label {
  font-family: var(--font-ui); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase; color: rgba(255,255,255,0.40);
  margin-bottom: var(--space-2);
}
.source-block__text, .why-matters__text { font-size: var(--step-0); color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   9. PROSE BODY
   ============================================================ */
.prose { max-width: var(--measure); margin-inline: auto; }

.prose p { font-size: var(--step-0); color: var(--ink-2); line-height: 1.75; }
.prose p + p { margin-top: var(--space-5); }
.prose--feature p {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-1); line-height: 1.65;
}
.prose--feature p + p { margin-top: var(--space-6); }

/* Body links: warm ink at 85%, full white on hover */
.prose a {
  color: var(--ink);
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,255,255,0.25);
  transition: opacity var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.prose a:hover { opacity: 1; text-decoration-color: rgba(255,255,255,0.65); }

.prose h2 {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.15;
  margin-top: var(--space-8); margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--glass-line);
}
.prose h3 {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
  margin-top: var(--space-7); margin-bottom: var(--space-3);
}

/* Pull-quotes break wider */
.prose blockquote, .pullquote {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding: var(--space-6) var(--space-5);
  border-left: 3px solid var(--glass-line);
  margin-block: var(--space-8);
}
.pullquote__text {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 300;
  color: var(--ink); line-height: 1.3; font-style: italic;
}
.pullquote__attribution {
  font-size: var(--step--1); color: var(--slate); margin-top: var(--space-4);
}

/* Images in body */
.prose-image {
  max-width: var(--measure-wide);
  margin-inline: auto;
  margin-block: var(--space-7);
}
.prose-image img { width: 100%; border-radius: var(--radius-md); }
.prose-image figcaption { font-size: var(--step--1); color: var(--slate); font-style: italic; margin-top: var(--space-3); }

.prose ul, .prose ol { padding-left: 1.4em; margin-block: var(--space-5); max-width: var(--measure); margin-inline: auto; }
.prose li { font-size: var(--step-0); color: var(--ink-2); line-height: 1.7; margin-top: var(--space-2); }
.prose li::marker { color: rgba(255,255,255,0.30); }

/* ---- Social embeds (Facebook / Instagram / Twitter) ----- */
/* Centre the embed and every wrapper under the prose column. Providers set an
   inline pixel width on the iframe/child span — we centre the block and leave
   that inline width alone (it simply shrinks to fit narrow viewports). */
.prose .fb-post,
.prose .fb-video,
.prose .fb_iframe_widget,
.prose .fb_iframe_widget span,
.prose .fb_iframe_widget iframe,
.prose .instagram-media,
.prose .instagram-media iframe,
.prose .twitter-tweet,
.prose .twitter-tweet iframe,
.prose iframe {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

/* Vertical rhythm to match other prose blocks */
.prose .fb-post,
.prose .fb-video,
.prose .fb_iframe_widget,
.prose .instagram-media,
.prose .twitter-tweet,
.prose iframe {
  margin-block: var(--space-7);
}

/* The Facebook (and Instagram) plugin iframe paints its post text on a
   transparent surface, so our dark page shows through and the grey caption
   becomes dark-grey-on-near-black. Give the iframe a light backing so the
   provider's own text stays legible — we can't recolour cross-origin content. */
.prose iframe[src*="facebook.com"],
.prose iframe[src*="instagram.com"],
.prose .fb_iframe_widget iframe,
.prose .instagram-media iframe {
  background: #fff;
  border-radius: var(--radius-md);
}

/* Show the Facebook plugin iframe at its natural height. A fixed max-height cap
   used to crop a small empty white tail on ~609px posts, but taller posts (more
   text / a bigger image) exceed the cap and lose their lower content + action
   row. Since one cap can't both trim the short-post tail and preserve a tall
   post, we uncrop entirely — full content always shows; any minor empty tail on
   a short post is preferable to clipping a tall one. */
.prose iframe[src*="facebook.com"],
.prose .fb_iframe_widget iframe {
  max-height: none;
}

/* For SDK/blockquote-style embeds, stop .prose text colours from bleeding into
   the embed's own (light) card — let the provider's styles win. Instagram and
   Twitter ship their own inline colours, which keep winning over this. */
.prose .fb-post, .prose .fb-post *,
.prose .instagram-media, .prose .instagram-media *,
.prose .twitter-tweet, .prose .twitter-tweet * {
  color: initial;
}
.prose .fb-post a,
.prose .instagram-media a,
.prose .twitter-tweet a {
  opacity: 1;
  text-decoration: none;
}

/* Neutralise the .prose blockquote framing (border/padding) applied to embed
   fallback blockquotes so they render as plain centred embed cards. */
.prose blockquote.fb-xfbml-parse-ignore,
.prose blockquote.instagram-media,
.prose blockquote.twitter-tweet {
  border-left: 0;
  padding: 0;
  max-width: 100%;
}

/* Related articles */
.related-section { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--glass-line); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6) var(--space-7); margin-top: var(--space-6); }
.related-card {
  display: flex; flex-direction: column;
  cursor: pointer; padding: var(--space-5);
  background: var(--paper-cool);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.related-card:hover {
  border-color: var(--hairline-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.related-card__thumb {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--paper-2);
  margin-bottom: var(--space-4); display: block;
}
.related-card__kicker { margin-bottom: var(--space-2); }
.related-card__title {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); line-height: 1.2; letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}
.related-card:hover .related-card__title { color: #fff; }
.related-card__meta { margin-top: auto; }
.related-card__meta {
  font-family: var(--font-ui); font-size: var(--step--1);
  color: var(--slate); margin-top: var(--space-3);
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .on-street-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {
  /* Nav → hamburger; pin nav back to --nav-height so the overlay aligns */
  .nav { padding-block: var(--space-2); gap: var(--space-3); }
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; margin-left: auto; flex-shrink: 0; }
  /* Masthead text scales down on mobile so it sits cleanly beside the hamburger */
  .nav__brand { flex-shrink: 1; min-width: 0; align-self: center; margin-top: 0; }
  .nav__wordmark { font-size: 2.4rem; }
  .nav__logo { height: 2rem; }
  .nav__tagline { font-size: 0.58rem; white-space: normal; transform: none; }

  /* Lead block: hero → second-leads → wire all stack in one column */
  .lead-grid { grid-template-columns: 1fr; gap: var(--space-5); padding-block: var(--space-5); }
  .lead-col-story { width: 100%; }
  .lead-col-wire {
    width: 100%; border-left: 0; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-4);
  }

  /* Two-up on tablet */
  .news-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  /* .feature-grid and .second-leads stay 2-up on tablet */
  .second-leads { grid-template-columns: 1fr 1fr; }
}

/* ---- Phone (≤640px) ---- */
@media (max-width: 640px) {
  /* Single column everywhere */
  .news-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  /* Halve the stacked-layout gap between the wire feed and the next story:
     var(--space-8) left an ~80px void on phones (desktop bottoms out level via
     the JS fill logic and is unaffected — this override is phone-only). */
  .second-leads { grid-template-columns: 1fr; margin-top: var(--space-5); gap: var(--space-7); }
  .related-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  /* The prism renders at its natural ~249px, which dwarfs the brand block once
     the footer collapses to one column on phones. Cap it so the wordmark, logo
     and the single Sections column sit cleanly. */
  .footer__logo { display: block; width: auto; max-width: 116px; height: auto; margin-top: var(--space-3); }
  .author-block { flex-direction: column; }

  /* Hero hugs the image on phone too (no fixed ratio) — never crop, no bars */
  .lead-band {
    margin: 0 var(--space-3) 2px var(--space-3);
    padding: var(--space-3);
  }
  .lead-band .lead-kicker {
    font-size: 0.6rem;
    margin-bottom: var(--space-1);
  }
  .lead-band .lead-headline {
    /* font-size set inline by fitLeadHeadline() (auto-fit to 2 lines) */
    line-height: 1.12;
    margin-bottom: var(--space-1);
  }
  .lead-band .lead-byline { font-size: 0.7rem; }

  /* Feature plate tighter on phone */
  .feature-card__plate {
    left: var(--space-3); right: var(--space-3); bottom: var(--space-3);
    padding: var(--space-4);
  }

  /* Tighter vertical rhythm on phone */
  .feature-section, .news-section, .opinion-section, .on-street-section {
    padding-block: var(--space-5);
  }
  .lead-grid { padding-block: var(--space-4); }

  /* News hero stays within the text column on mobile (no full-bleed) so it
     never overflows the viewport and keeps matching the headline width. */

  /* Mobile overlay nav links a touch tighter so all fit */
  .nav__overlay .nav__link { font-size: var(--step-1); padding: var(--space-4) 0; }

  /* Horizontal scroll on mobile for On the Street */
  .on-street-grid {
    grid-template-columns: repeat(4, min(80vw, 280px));
    overflow-x: auto;
    padding-bottom: var(--space-4);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-inline: var(--gutter);
    margin-inline: calc(0px - var(--gutter));
  }
  .on-street-grid::-webkit-scrollbar { display: none; }
  .on-street-card { scroll-snap-align: start; }
}

/* ============================================================
   11. READABILITY OVERRIDES
   ============================================================ */
/* READABILITY — bylines, meta, tags, standfirsts all clearly readable */
.meta, .byline-row, .news-card__meta, .feature-card__meta,
.opinion-item__author, .feature-card__byline, .feature-card__readtime,
.wire-item-full__time, .section-label__more {
  color: #CFCBC3 !important;
}

.news-card__standfirst, .wire-item-full__title {
  color: #E8E5DE !important;
}

.news-card__title, .feature-card__title, .opinion-item__title {
  color: #F9F7F3 !important;
}

/* Category tags / kickers on dark backgrounds — bright but not pure white */
.news-card__kicker, .opinion-item__kicker, .eyebrow, .kicker,
[class*="__kicker"]:not(.plate__kicker) {
  color: rgba(255,255,255,0.80) !important;
}

.wire-item-full__tag {
  color: rgba(255,255,255,0.90) !important;
}

.wire-item-full__title {
  font-weight: 500;
}

/* ============================================================
   11b. GUNMETAL TAG CHIPS
   A dark gunmetal box behind every tag/kicker label so tags read as chips on
   both flat card surfaces and the frosted image plates. The multi-tag label
   ("World | National") is one text node, so the box wraps the whole label as a
   single chip. base.css has a "nuclear reset" that strips background/padding on
   tags/kickers with !important at (0,2,0) specificity — so these overrides match
   that specificity (parent + kicker) and use !important; components.css loads
   after base.css, so it wins. The white/bright text colours from section 11 stay
   and read legibly on the gunmetal. */
.news-card .news-card__kicker,
.lead-band .lead-kicker,
.second-lead-card .second-lead-card__kicker,
.wire-item-full .wire-item-full__tag,
.feature-card__plate .plate__kicker,
.opinion-item .opinion-item__kicker {
  display: inline-block !important;
  background: #22262b !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
}

/* ============================================================
   12. GHOST (kg-*) INLINE IMAGES
   ============================================================ */
/* ---- Ghost (kg-*) inline images in injected Content API HTML ---- */
/* Width is chosen per-image in the Ghost editor (normal / wide / full).
   Default (no width class) = text column width. */
.prose .kg-card.kg-image-card {
  max-width: var(--measure);     /* default: matches the reading column */
  margin-inline: auto;
  margin-block: var(--space-7);
  text-align: center;
}
.prose .kg-card.kg-image-card.kg-width-wide {
  max-width: var(--measure-wide);   /* "Wide" in Ghost editor: breaks out wider */
}
.prose .kg-card.kg-image-card.kg-width-full {
  max-width: 100%;                  /* "Full" in Ghost editor: full content width */
}
.prose .kg-image {
  width: 100%;
  height: auto;            /* override Ghost's hard-coded height attr → no distortion */
  max-width: 100%;
  border-radius: var(--radius-md);
  display: block;
}
.prose .kg-image-card figcaption {
  font-size: var(--step--1);
  color: var(--slate);
  font-style: italic;
  margin-top: var(--space-3);
  text-align: center;
}
.prose .kg-image-card figcaption span { white-space: normal !important; }

/* ============================================================
   11. HEADER SEARCH — compact dark bar
   Desktop (>=901px): own row beneath the nav, inside the dark header band,
   narrow + centered. Mobile (<=900px): compact, inline in the nav row between
   brand and hamburger (via the .hsearch--innav modifier toggled in render.js).
   ============================================================ */
.hsearch { display: block; }
.hsearch__input {
  width: 100%; box-sizing: border-box;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-md);
  padding: 8px 14px; font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.2;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur, .2s) var(--ease, ease), box-shadow var(--dur,.2s) var(--ease,ease);
}
.hsearch__input::placeholder { color: var(--ink-2); opacity: .55; }
.hsearch__input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }

/* DESKTOP >=901px: tucked directly under the nav row on the SAME header band —
   no own background block, no divider line above it. The header's own dark bg
   shows through, so nav + search read as one continuous band. */
@media (min-width: 901px) {
  .hsearch {
    display: flex; justify-content: center;
    padding: 0 var(--gutter) var(--space-3);   /* no top pad: sits tight under the nav row; no bg, no border */
  }
  .hsearch__input { width: 100%; max-width: 380px; }
}

/* MOBILE <=900px: the own-row input is replaced by a compact icon-only trigger
   button in the nav row (magnifying glass, no label — the full masthead + prism
   leave no room for a word beside the hamburger). Tapping it (render.js) opens
   the .hsearch as an overlay ACROSS the nav — absolutely positioned, so it never
   reflows layout or adds header height. Brand + hamburger stay put. */
.nav__searchbtn { display: none; }
@media (max-width: 900px) {
  .nav { flex-wrap: nowrap; }
  .nav__brand { flex: 0 0 auto; min-width: 0; }   /* full wordmark + prism, never shrinks/clips */

  /* No header search trigger on mobile — search lives in the wire column
     (homepage) or is reached via /search. The header .hsearch stays hidden. */
  .nav__searchbtn { display: none; }
  .nav__toggle { flex: 0 0 auto; }

  /* The header own-row form is not used on mobile; keep it out of flow + hidden.
     (.hsearch--wire, the homepage wire-column search, is re-shown below.) */
  .hsearch { position: absolute; left: 0; right: 0; top: 0; display: none; }
}

/* HOMEPAGE DESKTOP: the search lives at the top of the wire column (home.js)
   instead of the header own-row. Hide the header copy on the homepage only
   (.is-home, set by home.js); other desktop pages keep the header own-row search.
   The wire search spans just the wire column (width:100% of .lead-col-wire). */
@media (min-width: 901px) {
  .is-home .site-header > .hsearch { display: none; }
  .hsearch--wire { display: block; margin-bottom: var(--space-4); padding: 0; background: none; border: 0; }
  .hsearch--wire .hsearch__input { width: 100%; max-width: none; }
}
/* Mobile: the homepage wire-column search is now shown too (same place as
   desktop — top of the wire column, above Live/LATEST). Override the mobile
   .hsearch overlay rule so this one flows normally in the column. */
@media (max-width: 900px) {
  .hsearch--wire {
    display: block; position: static;
    margin-bottom: var(--space-4); padding: 0; background: none; border: 0;
  }
  .hsearch--wire .hsearch__input { width: 100%; max-width: none; font-size: 16px; }
}

/* ARTICLE PAGES: no search at all — hide the header own-row form and the mobile
   icon trigger at every width (.is-article set by article.js). Nav/hamburger
   are otherwise unchanged. */
.is-article .site-header > .hsearch { display: none !important; }
.is-article .nav__searchbtn { display: none !important; }

/* ============================================================
   12. MOBILE MASTHEAD (<=900px)
   Nav row is now just: brand (left) … [IG][FB] [hamburger] (right). With the
   search trigger gone there's room for larger, comfortable social icons. The
   cluster's margin-left:auto pushes it + the toggle to the right; the toggle
   sits immediately after it (margin-left:0). At file end so it wins over the
   section-10 / header-search mobile rules.
   ============================================================ */
@media (max-width: 900px) {
  .nav { gap: var(--space-2); }
  .nav__social-mobile {
    display: flex; align-items: center; gap: var(--space-1);
    flex: 0 0 auto; margin-left: auto;
  }
  .nav__social-mobile .nav__social { padding: 8px; }        /* 24px svg + 16 = 40px tap */
  .nav__social-mobile .nav__social svg { width: 24px; height: 24px; }
  .nav__toggle { margin-left: 0; }                          /* stay adjacent to the icons */
}
