/* ==========================================================================
   Scitke — main stylesheet
   One stylesheet, no framework. The legacy homepage loaded 34 separate
   stylesheets and 23 external scripts; keeping this to a single file is a
   direct response to that finding.
   ========================================================================== */

@import url("tokens.b6b59551bde0.css");

/* --------------------------------------------------------------------------
   1. Reset and base
   -------------------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* The page never scrolls sideways on a phone. Anything wider than the screen
   is clipped at the body edge instead of widening the page, so iOS Safari can
   neither widen the layout to fit it nor let the reader pan sideways.
   `clip` rather than `hidden`: it creates no scroll container, so the sticky
   desktop header and vertical scrolling behave exactly as before. Browsers
   without `clip` (Safari < 16) keep the `hidden` fallback. Components that
   scroll on purpose (tables, the vertical strip, code) scroll inside
   themselves and are unaffected. Long unbroken words (URLs, e-mail
   addresses) wrap rather than being cut off by the clip. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
body { overflow-wrap: break-word; }

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   2. Typography — Montserrat for display, Open Sans for body (Section 03)
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin: 0 0 var(--space-4);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); line-height: var(--leading-h1); }
h2 { font-size: var(--text-h2); line-height: var(--leading-h2); }
h3 { font-size: var(--text-h3); line-height: var(--leading-h3); }
h4 { font-size: var(--text-h4); line-height: var(--leading-h4); }
h5, h6 { font-size: var(--text-body); line-height: var(--leading-body); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

strong, b { font-weight: var(--weight-bold); }

blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-medium);
  color: var(--text);
}

code, pre { font-family: var(--font-mono); font-size: 0.9em; }
pre { overflow-x: auto; padding: var(--space-4); background: var(--surface-sunken); border-radius: var(--radius); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-7) 0; }

/* --------------------------------------------------------------------------
   3. Accessibility helpers
   -------------------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 999;
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* A returning Portuguese reader: hidden until the translation engine has
   applied the dictionary, so the English fallback text never flashes. The
   animation reveals the page after 3s whatever happens, so a failed script
   can never leave it blank. */
.i18n-pending body { visibility: hidden; animation: i18n-reveal 0s 3s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

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

main { flex: 1 0 auto; }

.section { padding-block: var(--space-8); border-bottom: 1px solid var(--border); }
.section--sunken { background: var(--surface-sunken); }
.section--inverse { background: var(--surface-inverse); color: var(--text-inverse); }
.section--inverse h1, .section--inverse h2, .section--inverse h3 { color: var(--text-inverse); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.section-more {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. Brand marks
   -------------------------------------------------------------------------- */

.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.logo svg { display: block; }

/* The lockup follows the ground it sits on: the dark-background wordmark is
   white and would disappear on the light theme's surface. */
.logo-lockup--light { display: none; }
:root[data-theme="light"] .logo-lockup--dark { display: none; }
:root[data-theme="light"] .logo-lockup--light { display: block; }
/* Clearspace: the manual requires 50% of the mark's height on every side. */
.logo { padding: var(--space-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-meta);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.eyebrow--ondark { color: var(--accent); }

/* The angular chevron is a recurring device in the brand manual's own layouts. */
.chevron-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-yellow) 0 33%, var(--brand-amber) 33% 66%, var(--brand-navy) 66% 100%);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Masthead, header and navigation
   -------------------------------------------------------------------------- */

/* The readout strip reports real publication state, never decoration. */
.masthead-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.masthead-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 46px;
}
.readout {
  display: flex;
  gap: var(--space-5);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
/* min-width: 0 lets the strip shrink to the viewport and ellipsise; without
   it the nowrap text sets a minimum width and pushes the page sideways. */
.readout { min-width: 0; }
.readout span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout b { color: var(--data); font-weight: var(--weight-medium); }
.readout--end { flex: 0 0 auto; justify-content: flex-end; }

/* Utility controls at the end of the strip: language, then staff sign-in.
   They share the readout's type so they read as part of the strip rather
   than competing with the header's call to action. */
.masthead-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-switch { margin: 0; }
.lang-switch-options { display: flex; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.lang-switch-option {
  min-width: 34px;
  min-height: 26px;
  padding: 0 var(--space-2);
  background: transparent;
  border: 0;
  color: var(--text-subtle);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.lang-switch-option + .lang-switch-option { border-left: 1px solid var(--border-strong); }
.lang-switch-option:hover { color: var(--accent); }
.lang-switch-option[aria-pressed="true"] { color: var(--text); background: var(--surface-sunken); }
.staff-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 26px;
  color: var(--text-subtle);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.staff-link:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-veil);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: blur(10px); }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 78px;
}
/* The logo and the actions hold their size; the navigation is the element
   that gives, so a long editorial label can never ride over the wordmark. */
.header-bar > .logo, .header-bar > .header-actions { flex: 0 0 auto; }
.nav-primary { flex: 0 1 auto; min-width: 0; }

/* Nav labels never wrap mid-phrase: the row scrolls instead. That is a safety
   net for an unusually long MenuItem label, not the normal state — concise
   labels ("Africa", not "Science & Technology in Africa") are what keep the
   masthead a single static row. */
.nav-primary ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-primary ul::-webkit-scrollbar { display: none; }
.nav-primary li { flex: 0 0 auto; }

.nav-primary a {
  position: relative;
  display: block;
  padding-bottom: 4px;
  color: var(--text-muted);
  font-family: var(--font-display);
  padding-inline: var(--space-2);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] { color: var(--text); }
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-primary a:hover::after,
.nav-primary a:focus-visible::after,
.nav-primary a[aria-current="page"]::after { transform: scaleX(1); }

/* Dropdown groups (menu items with children), built on <details>. The panel
   is absolutely positioned, but its containing block is the sticky header,
   not the scrolling list above, so the list's overflow never clips it; with
   no insets it opens at its static position, directly under its trigger. */
.nav-menu summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: 4px;
  padding-inline: var(--space-2);
  list-style: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--transition);
}
.nav-menu[open] summary::after { transform: translateY(20%) rotate(-135deg); }
.nav-menu summary:hover,
.nav-menu summary.is-current,
.nav-menu[open] summary { color: var(--text); }
.nav-primary .nav-submenu {
  position: absolute;
  z-index: 110;
  display: block;
  min-width: 15rem;
  margin-top: var(--space-3);
  padding: var(--space-2) 0;
  overflow: visible;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nav-primary .nav-submenu a { padding: var(--space-2) var(--space-4); }
.nav-primary .nav-submenu a::after { display: none; }
.nav-primary .nav-submenu a:hover,
.nav-primary .nav-submenu a[aria-current="page"] { color: var(--text); background: var(--surface-sunken); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

/* The call to action is whichever primary menu item an editor highlights. */
.btn-cta {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.btn-cta:hover { background: transparent; color: var(--accent); }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.icon-button:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; }

/* Search drawer */
.search-drawer {
  display: none;
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}
.search-drawer.is-open { display: block; }
.search-drawer form { display: flex; gap: var(--space-2); }
.search-drawer input[type="search"] { flex: 1; background: var(--surface); }

/* The strapline is the first thing to go: it is atmosphere, the navigation
   is not. */
/* Below this the editorial labels stop fitting on one row, so the whole menu
   moves into the panel rather than degrading into a scroll strip. */
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--surface-raised);
    border-top: 1px solid var(--border);
    padding: var(--space-3) var(--gutter) var(--space-5);
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
  .nav-primary a {
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--border);
  }
  /* In the panel a dropdown becomes an indented sub-list in the flow. */
  .nav-menu summary {
    justify-content: space-between;
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--border);
  }
  .nav-primary .nav-submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 var(--space-4);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-primary .nav-submenu a { padding: var(--space-3) var(--space-2); }
  .site-header { position: relative; }
}

@media (max-width: 600px) {
  .masthead-top-bar { min-height: 38px; gap: var(--space-3); }
  .readout span + span { display: none; }
  /* The staff link keeps its full accessible name; only the text is hidden
     visually, leaving the lock icon with a 26px target. */
  .masthead-tools { gap: var(--space-3); }
  .staff-link { min-width: 26px; justify-content: center; }
  .staff-link-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  /* The call to action stays reachable on a phone: it shrinks, it never
     disappears, because it is the only route to the highlighted item. */
  /* Logo, call to action and three icon buttons must fit 390px less the
     gutters; at the previous sizes they needed about 430px and the menu
     button fell off the right edge. */
  .header-bar { min-height: 64px; gap: var(--space-2); }
  .logo { padding: 0; }
  .logo img { width: 112px; height: auto; }
  .btn-cta { padding: var(--space-2) 10px; font-size: 0.6875rem; letter-spacing: 0.06em; }
  .btn-cta span[aria-hidden="true"] { display: none; }
  .header-actions { gap: var(--space-1); }
  .icon-button { width: 34px; height: 34px; }
}

/* The smallest phones: the theme toggle goes, since the theme already follows
   the system setting; search, the menu and the call to action stay. */
@media (max-width: 374px) {
  .header-actions [data-theme-toggle] { display: none; }
  .logo img { width: 104px; }
}

/* --------------------------------------------------------------------------
   7. Article cards
   -------------------------------------------------------------------------- */

.card { display: flex; flex-direction: column; gap: var(--space-3); }
.card a { text-decoration: none; color: inherit; }
/* The metadata row is pinned to the foot of the card so a grid of cards with
   headlines of different lengths still rules off along one line. */
.card .stack { display: flex; flex-direction: column; flex: 1; }
.card .stack > .meta { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border); }

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  aspect-ratio: 16 / 9;   /* the manual's sanctioned screen ratio */
  border-radius: var(--radius);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 500ms ease;
}
.card:hover .card-media img { transform: scale(1.045); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.32;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.005em;
  margin: 0;
}
.card:hover .card-title { color: var(--accent); }

.card-summary {
  font-size: 0.96875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.card--compact { flex-direction: row; gap: var(--space-4); align-items: flex-start; }
.card--compact .card-media { flex: 0 0 108px; aspect-ratio: 1 / 1; }
.card--compact .card-title { font-size: var(--text-body); line-height: var(--leading-body); }

.card--large .card-title { font-size: var(--text-h2); line-height: var(--leading-h2); }

/* Metadata row */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: var(--leading-meta);
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--accent); }
.meta .sep { opacity: 0.5; }

/* The section label, set as an instrument reading rather than a headline. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--kicker);
  text-decoration: none;
  margin: 0;
}
.kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  background: currentColor;
}
.kicker--muted { color: var(--text-subtle); }
a.kicker:hover { color: var(--text); }

/* Always the accent on a deliberately inverted surface, whatever the theme. */
.section--inverse .kicker { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Homepage: hero, wire, dispatch grid, feature strip, field index
   -------------------------------------------------------------------------- */

.hero { border-bottom: 1px solid var(--border); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: var(--space-7);
  align-items: start;
  padding-block: var(--space-7);
}

.hero .kicker { margin-bottom: var(--space-4); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.15rem + 2.8vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-5);
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: var(--accent); }

.dek {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-5);
}

.hero-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.hero-byline a { color: inherit; text-decoration: none; }
.hero-byline a:hover { color: var(--accent); }
.hero-byline .sep { opacity: 0.5; }

.avatar {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--data);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 0.6875rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-raised);
}
.hero-figure a { display: block; height: 100%; }
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.hero-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(0deg, var(--surface), transparent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* The wire: headlines already loaded by the page, scrolled as a ticker. The
   second track is a mute duplicate that makes the loop seamless. */
.wire {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.wire-track {
  display: flex;
  width: max-content;
  animation: wire-scroll 55s linear infinite;
}
.wire:hover .wire-track,
.wire:focus-within .wire-track { animation-play-state: paused; }
.wire-list { display: flex; list-style: none; margin: 0; padding: 0; }
.wire-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  white-space: nowrap;
  padding-block: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--text-muted);
}
.wire-list li::after { content: "—"; color: var(--border-strong); margin-inline: var(--space-6); }
.wire-list b { color: var(--text); font-weight: var(--weight-medium); }
.wire-list a { color: inherit; text-decoration: none; }
.wire-list a:hover { color: var(--accent); }

@keyframes wire-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wire { overflow-x: auto; }
  .wire-track { animation: none; }
}

/* Advertising inventory, drawn from the published media kit. */
.ad-band {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-5);
}
.ad-label {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  padding: var(--space-5);
  border: 1px dashed var(--border-strong);
  background: var(--surface-raised);
  text-decoration: none;
  transition: border-color var(--transition);
}
.ad-slot:hover { border-color: var(--accent); }
.ad-inner { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-subtle); }
.ad-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.card.ad-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  border: 1px dashed var(--border-strong);
  background: var(--surface-raised);
}
.card.ad-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.ad-dims { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-subtle); }

/* The dispatch grid: hairline rules rather than gutters, so the page reads as
   a printed index. Each cell draws its own rule with a 1px spread shadow into
   the 1px gap, rather than the grid painting a background the cells sit on.
   That matters when a row is short: the leftover area is simply page, not a
   large empty panel where the grid's own background shows through. */
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.dispatch-grid > * {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  padding: var(--space-5);
  transition: background var(--transition);
}
.dispatch-grid > .card:hover { background: var(--surface-sunken); }
.dispatch-grid > .empty-state { grid-column: 1 / -1; padding-block: var(--space-7); }

@media (max-width: 900px) { .dispatch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dispatch-grid { grid-template-columns: 1fr; } }

/* Feature strip */
.feature-strip { background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.feature-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 420px; }
.feature-image { position: relative; overflow: hidden; background: var(--surface-sunken); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) clamp(var(--space-5), 5vw, var(--space-8));
}
.feature-copy .kicker { margin-bottom: var(--space-5); }
.feature-copy h2 {
  font-size: clamp(1.6875rem, 1.1rem + 1.9vw, 2.25rem);
  line-height: 1.12;
  margin-bottom: var(--space-5);
}
.feature-copy h2 a { color: inherit; text-decoration: none; }
.feature-copy h2 a:hover { color: var(--accent); }
.feature-copy p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-5);
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.feature-link::after { content: "→"; transition: transform var(--transition); }
.feature-link:hover::after { transform: translateX(4px); }

@media (max-width: 900px) {
  .feature-inner { grid-template-columns: 1fr; min-height: 0; }
  .feature-image { aspect-ratio: 16 / 9; }
}

/* Field index: the category directory, grouped by vertical. */
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}
.index-col {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  padding: var(--space-6);
}
.index-col h3 { font-size: var(--text-h3); line-height: var(--leading-h3); margin: var(--space-4) 0 var(--space-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips a {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chips a:hover { color: var(--text-on-accent); background: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) { .index-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   9. Vertical strip
   -------------------------------------------------------------------------- */

.vertical-strip {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-block: var(--space-3);
  scrollbar-width: thin;
}
.vertical-chip {
  flex: 0 0 auto;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.vertical-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

/* --------------------------------------------------------------------------
   10. Article detail
   -------------------------------------------------------------------------- */

.article-header { padding-block: var(--space-7) var(--space-5); }
.article-title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  margin-bottom: var(--space-4);
}
@media (max-width: 700px) {
  .article-title { font-size: var(--text-h1); line-height: var(--leading-h1); }
}

.article-standfirst {
  font-size: var(--text-h4);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

/* Author above reviewer, each with the same avatar and name treatment. */
.byline {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-block: 1px solid var(--border);
}
.byline-people { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.byline-person { display: flex; align-items: center; gap: var(--space-3); }
.byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-sunken);
  flex: 0 0 auto;
}
.byline-avatar--initials {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
  color: var(--text-subtle);
}
.byline-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.byline-name { font-family: var(--font-display); font-weight: var(--weight-bold); text-decoration: none; }
.byline-detail { font-size: var(--text-meta); color: var(--text-subtle); }

.figure { margin: var(--space-6) 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption {
  font-size: var(--text-meta);
  line-height: var(--leading-small);
  color: var(--text-subtle);
  padding-top: var(--space-2);
}
.figure .credit { text-transform: uppercase; letter-spacing: 0.04em; }

/* Long-form body: measured for reading, per the manual's readability note. */
.article-body { font-size: 1.0625rem; line-height: 1.7; }
.article-body > * + * { margin-top: var(--space-5); }
.article-body h2 { font-size: var(--text-h3); line-height: var(--leading-h3); margin-top: var(--space-7); }
.article-body h3 { font-size: var(--text-h4); line-height: var(--leading-h4); margin-top: var(--space-6); }
.article-body img { border-radius: var(--radius); margin-block: var(--space-5); }
.article-body ul, .article-body ol { padding-left: var(--space-5); }
.article-body li + li { margin-top: var(--space-2); }
.article-body a { color: var(--link); }
/* Policy pages and the media kit carry simple tables (rate card, cookie
   declaration). Stored bodies may hold no classes, so the styling is here. */
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); overflow-wrap: break-word; }
/* On a phone a wide table scrolls inside its own box rather than crushing
   its columns into one word per line; the page itself never scrolls sideways. */
@media (max-width: 600px) {
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body th, .article-body td { min-width: 7.5rem; }
}
.article-body thead th { font-family: var(--font-display); font-size: var(--text-meta); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-subtle); border-bottom-color: var(--border-strong); }
.article-body caption { caption-side: bottom; text-align: left; padding-top: var(--space-2); font-size: var(--text-meta); color: var(--text-subtle); }
.article-body dt { font-family: var(--font-display); font-weight: var(--weight-semibold); }
.article-body dd { margin: 0 0 var(--space-3); }

/* Editorial transparency panel (E-E-A-T) */
.transparency {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--surface-sunken);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--text-small);
}
.transparency h2 {
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}
.transparency ul { margin: 0; padding-left: var(--space-5); }
.transparency li { overflow-wrap: anywhere; }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.tag-pill {
  padding: var(--space-1) var(--space-3);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-meta);
  text-decoration: none;
  color: var(--text-muted);
}
.tag-pill:hover { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

.share { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); }
.share span { font-size: var(--text-meta); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   11. Author profile
   -------------------------------------------------------------------------- */

.author-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-7);
}

/* One portrait frame for every author, per the brief: 4:5, aspect ratio
   preserved, face centred, and a neutral placeholder until a portrait is
   approved. */
.portrait {
  display: block;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
a.portrait { text-decoration: none; }
.portrait--small { width: 96px; flex: none; }
.portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}
.portrait--small .portrait-placeholder { font-size: 1.5rem; }

.author-postnominals { font-weight: var(--weight-regular); color: var(--text-muted); }
.author-bio { margin-top: var(--space-4); max-width: 65ch; }
.author-credentials { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.profile-facts { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-3) var(--space-5); margin-block: var(--space-6); max-width: 75ch; }
.profile-facts dt {
  font-family: var(--font-display);
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-subtle);
  padding-top: 0.2em;
}
.profile-facts dd { margin: 0; }
.profile-facts dd.author-credentials, .profile-facts dd.profile-links { margin-top: 0; }
.profile-facts ul, .profile-facts ol { margin: 0; padding-left: var(--space-5); }
.profile-facts li + li { margin-top: var(--space-1); }

/* Author directory */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-5); }
.profile-grid--single { grid-template-columns: 1fr; }
.profile-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.profile-card .card-title { margin: 0; }
.archive-authors { list-style: none; padding: 0; margin: var(--space-5) 0 0; columns: 3 16rem; column-gap: var(--space-6); }
.archive-authors li { break-inside: avoid; padding-block: var(--space-2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--space-3); }
.credential {
  font-size: var(--text-meta);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm);
}
.profile-links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: var(--text-small); }

@media (max-width: 600px) {
  .author-hero { grid-template-columns: 1fr; }
  .author-hero .portrait { max-width: 200px; }
  .profile-facts { grid-template-columns: 1fr; gap: var(--space-1); }
  .profile-facts dd + dt { margin-top: var(--space-3); }
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */

label { display: block; font-family: var(--font-display); font-size: var(--text-small); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }

input[type="text"], input[type="email"], input[type="search"], input[type="url"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--signal-dim);
}
textarea { resize: vertical; min-height: 120px; }

.field { margin-bottom: var(--space-4); }
.field .helptext, .field .errorlist {
  font-size: var(--text-meta);
  margin-top: var(--space-1);
  list-style: none;
  padding: 0;
}
.field .errorlist { color: var(--danger); }

input[type="file"] { display: block; max-width: 100%; font-size: var(--text-small); }

/* Grouped form sections (submission and corrections forms). */
.form-section { border: 0; padding: 0; margin: 0 0 var(--space-6); min-width: 0; }
.form-section legend {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  padding: 0;
  margin-bottom: var(--space-3);
}
.form-section > p { color: var(--text-muted); font-size: var(--text-small); }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

/* Checkbox declarations: the label sits beside the box, not above it. */
.field--check { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-3); align-items: start; }
.field--check input { margin-top: 0.3em; width: 1.1rem; height: 1.1rem; accent-color: var(--brand-amber); }
.field--check label { font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--text-body); margin: 0; }
.field--check .helptext, .field--check .errorlist { grid-column: 2; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.form-errors { padding: var(--space-4); border-left: 3px solid var(--danger); background: var(--surface-sunken); margin-bottom: var(--space-5); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* The honeypot must be hidden from sight but reachable by naive bots. */
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.button--primary { background: var(--accent); color: var(--text-on-accent); }
.button--primary:hover { background: var(--accent-hover); color: var(--text-on-accent); filter: brightness(1.08); }
.button--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.button--secondary:hover { border-color: var(--accent); color: var(--accent); }
.button--inverse { background: var(--accent); color: var(--text-on-accent); }
.button--ghost-inverse { background: transparent; color: var(--text-inverse); border-color: rgba(255,255,255,0.4); }
.button--ghost-inverse:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   13. Newsletter capture
   -------------------------------------------------------------------------- */

.newsletter {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 100%;
  background: linear-gradient(115deg, transparent 45%, var(--accent) 45%);
  opacity: 0.9;
}
.newsletter > * { position: relative; }
.newsletter h2 { font-size: var(--text-h3); line-height: var(--leading-h3); }
.newsletter p { color: var(--text-muted); font-size: var(--text-small); max-width: 46ch; }

.newsletter-form { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); max-width: 560px; }
.newsletter-form input[type="email"], .newsletter-form input[type="text"] { flex: 1 1 200px; }
.newsletter-form .button { flex: 0 0 auto; }
.newsletter-note { font-size: var(--text-meta); color: var(--text-subtle); margin-top: var(--space-3); }

/* The band variant: the homepage's full-bleed subscribe rule. Same form, same
   endpoint, same honeypot — presentation only. */
.newsletter--band {
  background: var(--accent);
  color: var(--text-on-accent);
  border: 0;
  padding: 0;
}
.newsletter--band::before { display: none; }
.newsletter--band .newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--space-7) var(--gutter);
}
.newsletter--band h2 {
  color: var(--text-on-accent);
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 1.875rem);
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: var(--space-2);
}
.newsletter--band p,
.newsletter--band .newsletter-note,
.newsletter--band .form-feedback { color: rgba(0, 0, 0, 0.66); }
.newsletter--band .newsletter-pitch { flex: 1 1 280px; }
.newsletter--band .newsletter-pitch p { max-width: 36ch; }
.newsletter--band .newsletter-action { flex: 1 1 340px; max-width: 480px; }
.newsletter--band .newsletter-form {
  margin-top: 0;
  max-width: none;
  gap: 0;
  flex-wrap: nowrap;
  border: 1.5px solid var(--text-on-accent);
}
.newsletter--band .newsletter-form input[type="text"],
.newsletter--band .newsletter-form input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: 0;
  border-right: 1.5px solid var(--text-on-accent);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.newsletter--band .newsletter-form input::placeholder { color: rgba(0, 0, 0, 0.55); }
.newsletter--band .newsletter-form input:focus { box-shadow: none; outline: 2px solid var(--text-on-accent); outline-offset: -2px; }
.newsletter--band .newsletter-form .button {
  background: var(--ink);
  color: var(--accent);
  border: 0;
  padding-inline: var(--space-6);
  font-family: var(--font-mono);
  font-weight: var(--weight-regular);
  letter-spacing: 0.1em;
}
.newsletter--band .newsletter-form .button:hover { background: var(--ink); opacity: 0.82; }

@media (max-width: 600px) {
  .newsletter--band .newsletter-form { flex-wrap: wrap; }
  .newsletter--band .newsletter-form input[type="text"],
  .newsletter--band .newsletter-form input[type="email"] {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1.5px solid var(--text-on-accent);
  }
  .newsletter--band .newsletter-form .button { flex: 1 1 100%; padding-block: var(--space-3); }
}

.form-feedback { margin-top: var(--space-3); font-size: var(--text-small); }
.form-feedback.is-success { color: var(--success); }
.form-feedback.is-error { color: var(--danger); }

/* --------------------------------------------------------------------------
   14. Breadcrumbs, pagination, messages
   -------------------------------------------------------------------------- */

.breadcrumbs { padding-block: var(--space-4); font-size: var(--text-meta); color: var(--text-subtle); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { color: inherit; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); opacity: 0.5; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
  font-family: var(--font-display);
  font-size: var(--text-small);
}
.pagination a, .pagination span {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

.messages { list-style: none; margin: 0; padding: 0; }
.message {
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: var(--surface-sunken);
  font-size: var(--text-small);
}
.message.success { border-left-color: var(--success); }
.message.error { border-left-color: var(--danger); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-block: var(--space-7) var(--space-6);
  margin-top: var(--space-7);
  font-size: var(--text-small);
}
/* The homepage ends on the full-bleed subscribe band, which butts straight
   into the footer; every other page needs the breathing space. */
.is-home .site-footer { margin-top: 0; }
.footer-grid {
  display: grid;
  /* auto-fit rather than a fixed count: the Follow column only exists once
     social profiles are configured, and a fixed track would leave a dead
     column when it is absent. */
  grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.site-footer h3 { margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-1); }
.site-footer a { display: block; color: var(--text-muted); text-decoration: none; padding-block: var(--space-1); }
.site-footer a:hover { color: var(--accent); }
.footer-mission { max-width: 34ch; margin-block: var(--space-4) 0; color: var(--text-subtle); line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-subtle);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline; color: var(--accent); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Editorial preview banner. Deliberately loud: an editor must never mistake a
   preview for the live page. */
.preview-bar {
  background: var(--accent);
  color: var(--text-on-accent);
  padding-block: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.preview-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.preview-status {
  margin-left: auto;
  border: 1px solid var(--text-on-accent);
  padding: var(--space-1) var(--space-3);
}

/* --------------------------------------------------------------------------
   16. Utilities
   -------------------------------------------------------------------------- */

.stack > * + * { margin-top: var(--space-4); }
.text-muted { color: var(--text-muted); }
.lead { font-size: var(--text-h4); line-height: 1.6; color: var(--text-muted); }
.empty-state { padding: var(--space-8) 0; text-align: center; color: var(--text-muted); }
.divider-list > * + * { border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-4); }

@media print {
  .site-header, .site-footer, .newsletter, .share, .pagination { display: none !important; }
  body { color: #000; background: #fff; }
}

/* --------------------------------------------------------------------------
   17. Site map
   -------------------------------------------------------------------------- */

.site-map { margin-top: var(--space-6); align-items: start; }
.site-map h2 { margin: var(--space-5) 0 var(--space-3); }
.site-map section > h2:first-child { margin-top: 0; }
.site-map ul { list-style: none; margin: 0; padding: 0; }
.site-map li { padding-block: var(--space-2); border-bottom: 1px solid var(--border); }
.site-map li .meta { display: block; margin-top: var(--space-1); }

/* --------------------------------------------------------------------------
   18. Companies page (Scitke LLC and Scitke Lda)
   After the client's companies image: the US company on a dark panel, the
   Angolan company on a light one, a card per service. Colours are roles,
   so both panels follow the theme toggle.
   -------------------------------------------------------------------------- */

.companies-hero h1 { max-width: 22ch; }
.companies-hero .dek { color: var(--text-inverse-muted); max-width: 60ch; }
.companies-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}
.companies-pillars li::before {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 2px;
  margin-right: var(--space-2);
  vertical-align: middle;
  background: var(--accent);
}

.companies-services { padding-top: 0; }
.companies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.company {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.company h2 { margin: 0; font-size: var(--text-h1); line-height: var(--leading-h1); }
.company-country {
  margin: var(--space-1) 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.company-heading {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: var(--kicker);
}
.company-description { color: var(--text-muted); }
.company-statement {
  padding-left: var(--space-3);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-4);
}
.service-card {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--text-small);
}
.service-card h3 { margin: 0; font-size: var(--text-h4); line-height: var(--leading-h4); }
.service-card p { margin: var(--space-2) 0 0; }
.service-tagline {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  color: var(--kicker);
}
.service-card ul { margin: var(--space-3) 0 0; padding-left: var(--space-5); }
.service-card li + li { margin-top: var(--space-1); }

.company-focus { padding-top: var(--space-5); border-top: 1px solid var(--border); }
.company-focus h3 { font-size: var(--text-h4); line-height: var(--leading-h4); }
.company-focus ul { margin: 0; padding-left: var(--space-5); columns: 2 12rem; column-gap: var(--space-6); }
.company-focus li { break-inside: avoid; padding-block: var(--space-1); }

/* The US company's dark panel. */
.company--llc {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-color: var(--border-inverse);
}
.company--llc h2, .company--llc h3 { color: var(--text-inverse); }
.company--llc .company-country,
.company--llc .company-description { color: var(--text-inverse-muted); }
.company--llc .company-heading,
.company--llc .company-statement,
.company--llc .service-tagline { color: var(--accent); }
.company--llc .service-card { background: transparent; border-color: var(--border-inverse); border-top-color: var(--accent); }
.company--llc .company-focus { border-top-color: var(--border-inverse); }

.companies-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-7);
}
.companies-contact-title { font-size: var(--text-h3); line-height: var(--leading-h3); }
.companies-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}
.companies-contacts li { display: flex; flex-direction: column; gap: var(--space-1); }
.companies-contacts a { color: var(--text-inverse); text-decoration: none; overflow-wrap: anywhere; }
.companies-contacts a:hover { color: var(--accent); }
.companies-closing {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}
.companies-closing span { display: block; }
.companies-closing span:last-child { color: var(--accent); font-weight: var(--weight-bold); }

/* The Advertise page's summary of the same services. */
.service-summary { padding: var(--space-5); background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius); }
.service-summary-list { margin: 0; padding-left: var(--space-5); font-size: var(--text-small); color: var(--text-muted); }
.service-summary-list li + li { margin-top: var(--space-1); }

@media (max-width: 1000px) {
  .companies-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .company { padding: var(--space-5); }
}
