/* ─────────────────────────────────────────────────────────
   ShiftClicks — Stylesheet ("Open Air" design system)

   Used by every public page: index / contact / privacy / terms /
   jobs, and by netlify/functions/job-detail.js (SSR /jobs/:id).
   jobs.html and job-detail.js additionally load style-v2-jobs.css
   for job-board layout.

   style.css is NOT dead. No public page uses it any more, but
   feed-explorer-tool.html and mockup-sidebar-ads.html — the two
   internal tools — still do. Don't delete it without migrating
   or retiring those first.

   Fonts: Schibsted Grotesk (display), Public Sans (body)
   Import in <head>:
   <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400&family=Public+Sans:ital,wght@0,400..700;1,400&display=swap" rel="stylesheet">

   Theme system:
   - Light is the default (:root)
   - System dark via @media (prefers-color-scheme: dark)
   - Manual override via <html data-theme="light|dark"> (set by
     the no-flash script in <head> + the nav toggle)
   Components must only reference tokens — never raw hexes.
───────────────────────────────────────────────────────── */

/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  /* Light (default) */
  --bg:           #faf9f5;   /* warm paper ground */
  --surface:      #ffffff;   /* cards, panels */
  --fg:           #20242c;   /* ink */
  --fg2:          #5d636e;   /* muted */
  --fg3:          #8b9099;   /* faint (footnotes, captions) */
  --border:       #e7e4dc;   /* warm stone line */
  --accent:       #2563eb;   /* logo blue — fills, buttons */
  --accent-ink:   #1d4fc4;   /* hover / pressed blue */
  --accent-text:  #2258d3;   /* blue as text/links (AA on paper) */
  --tint-blue:    #e9effc;   /* blue wash */
  --green:        #17734a;   /* jobs green — text/fills */
  --green-ink:    #115c3a;
  --tint-green:   #ddefe3;   /* green wash */
  --gold:         #9a6b17;   /* marigold as text (AA) */
  --tint-gold:    #faf1dd;   /* marigold wash */
  --on-accent:    #ffffff;   /* text on blue fills */
  --danger:       #b3261e;   /* form errors */
  --shadow:       0 2px 12px rgba(50, 55, 70, 0.07);
  --radius:       14px;
  --radius-sm:    9px;
  --font-display: 'Schibsted Grotesk', 'Avenir Next', sans-serif;
  --font-body:    'Public Sans', -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #16171b;
    --surface:     #1e2026;
    --fg:          #ebecee;
    --fg2:         #a2a6af;
    --fg3:         #7d818a;
    --border:      #2c2e35;
    --accent:      #2563eb;
    --accent-ink:  #3b74f0;
    --accent-text: #8fb0fb;
    --tint-blue:   #232a3a;
    --green:       #7fd0a4;
    --green-ink:   #9adcb7;
    --tint-green:  #22352b;
    --gold:        #dfae5e;
    --tint-gold:   #322a1a;
    --on-accent:   #ffffff;
    /* Must match :root[data-theme="dark"]. Omitting this left --danger at
       the light-mode #b3261e on a near-black ground (2.7:1 — below the 4.5:1
       AA floor) for anyone whose OS is dark but who never used the toggle. */
    --danger:      #f2b8b5;
    --shadow:      0 2px 12px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="light"] {
  --bg:          #faf9f5;
  --surface:     #ffffff;
  --fg:          #20242c;
  --fg2:         #5d636e;
  --fg3:         #8b9099;
  --border:      #e7e4dc;
  --accent:      #2563eb;
  --accent-ink:  #1d4fc4;
  --accent-text: #2258d3;
  --tint-blue:   #e9effc;
  --green:       #17734a;
  --green-ink:   #115c3a;
  --tint-green:  #ddefe3;
  --gold:        #9a6b17;
  --tint-gold:   #faf1dd;
  --on-accent:   #ffffff;
  --danger:      #b3261e;
  --shadow:      0 2px 12px rgba(50, 55, 70, 0.07);
}

:root[data-theme="dark"] {
  --bg:          #16171b;
  --surface:     #1e2026;
  --fg:          #ebecee;
  --fg2:         #a2a6af;
  --fg3:         #7d818a;
  --border:      #2c2e35;
  --accent:      #2563eb;
  --accent-ink:  #3b74f0;
  --accent-text: #8fb0fb;
  --tint-blue:   #232a3a;
  --green:       #7fd0a4;
  --green-ink:   #9adcb7;
  --tint-green:  #22352b;
  --gold:        #dfae5e;
  --tint-gold:   #322a1a;
  --on-accent:   #ffffff;
  --danger:      #f2b8b5;
  --shadow:      0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ─── RESET / BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  letter-spacing: -0.015em;
  color: var(--fg);
}
h1 { font-size: clamp(40px, 5.5vw, 62px); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; line-height: 1.12; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }

.num { font-variant-numeric: tabular-nums; }

/* ─── SKIP LINK ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  white-space: nowrap;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 clamp(20px, 5vw, 56px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Logo — two PNG variants, swapped per theme.
   logo-light.png = ink text (for light grounds) · logo.png = white text (for dark grounds) */
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 34px; width: auto; }
.footer-logo-wrap { display: flex; align-items: center; }
.footer-logo-img { height: 24px; width: auto; }

.logo-for-light { display: block; }
.logo-for-dark  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .logo-for-dark  { display: block; }
}
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark  { display: block; }
:root[data-theme="light"] .logo-for-light { display: block; }
:root[data-theme="light"] .logo-for-dark  { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); font-weight: 650; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-blue  { background: var(--accent); color: var(--on-accent); }
.btn-blue:hover  { background: var(--accent-ink); }
.btn-jobs  { background: var(--tint-green); color: var(--green); }
.btn-jobs:hover  { background: var(--tint-green); color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.btn-lg    { font-size: 15px; padding: 13px 26px; border-radius: 12px; }

.link-plain {
  font-size: 15px;
  font-weight: 650;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color 0.15s;
}
.link-plain:hover { text-decoration-color: var(--accent-text); }
.link-plain.green {
  color: var(--green);
  text-decoration-color: color-mix(in srgb, var(--green) 35%, transparent);
}
.link-plain.green:hover { text-decoration-color: var(--green); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg3); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  min-width: 44px; min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ─── LAYOUT ──────────────────────────────────────────── */
main { display: block; }
section { padding: clamp(64px, 9vw, 110px) clamp(20px, 6vw, 80px); }
.limit { max-width: 1080px; margin: 0 auto; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--fg2); margin-top: 12px; font-size: 17px; max-width: 58ch; }

/* ─── HERO ────────────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

/* Owned atmosphere: warm wash + faint routing lines (not glow orbs) */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 12%, color-mix(in srgb, var(--gold) 12%, transparent) 0%, transparent 70%),
    radial-gradient(50% 50% at 8% 90%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 70%);
}
.hero-atmosphere svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-text);
  opacity: 0.14;
}
:root[data-theme="dark"] .hero-atmosphere svg { opacity: 0.22; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-atmosphere svg { opacity: 0.22; }
}
.hero-atmosphere .lane {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
}
.route-flow-dot { fill: var(--accent); }
.route-flow-dot.g { fill: var(--green); }
.route-flow-dot.a { fill: var(--gold); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 2.5vw, 34px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-copy h1 mark { background: none; color: var(--accent-text); }
.hero-sub {
  color: var(--fg2);
  font-size: clamp(16px, 1.8vw, 18px);
  max-width: 48ch;
  margin: 20px 0 30px;
}
.hero-ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-proof { margin-top: 30px; font-size: 13.5px; color: var(--fg3); max-width: 50ch; }

.hero-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.stat-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  width: min(340px, 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40, 46, 60, 0.12); }
:root[data-theme="dark"] .stat-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--tint-blue);
  color: var(--accent-text);
}
.stat-icon svg { width: 15px; height: 15px; }

.stat-card .stat-label { font-size: 12.5px; font-weight: 650; color: var(--fg2); margin-bottom: 4px; }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-value small { font-size: 13px; font-weight: 650; color: var(--accent-text); margin-left: 8px; letter-spacing: 0; }
.stat-card .stat-foot { font-size: 12.5px; color: var(--fg3); margin-top: 6px; }

.stat-card.gold {
  background: var(--tint-gold);
  border-color: color-mix(in srgb, var(--gold) 25%, var(--border));
  margin: -16px 54px 0 0;
  transform: rotate(-1deg);
}
.stat-card.gold:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 0 12px 28px rgba(40, 46, 60, 0.12); }
:root[data-theme="dark"] .stat-card.gold:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.stat-card.gold .stat-icon { background: rgba(255, 255, 255, 0.6); color: var(--gold); }
:root[data-theme="dark"] .stat-card.gold .stat-icon { background: rgba(0, 0, 0, 0.22); }
.stat-card.gold .stat-value,
.stat-card.gold .stat-value small { color: var(--gold); }

.stat-card.green {
  background: var(--tint-green);
  border-color: color-mix(in srgb, var(--green) 25%, var(--border));
  margin: -18px 104px 0 0;
  transform: rotate(-2deg);
}
.stat-card.green:hover { transform: rotate(-2deg) translateY(-3px); box-shadow: 0 12px 28px rgba(40, 46, 60, 0.12); }
:root[data-theme="dark"] .stat-card.green:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.stat-card.green .stat-icon { background: rgba(255, 255, 255, 0.6); color: var(--green); }
:root[data-theme="dark"] .stat-card.green .stat-icon { background: rgba(0, 0, 0, 0.22); }
.stat-card.green .stat-value { color: var(--green); }

/* ─── HOW IT WORKS (route) ────────────────────────────── */
#how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Graph: one line, three colored stops (each under its badge), ending in the handshake */
.route-graph { position: relative; height: 38px; margin: 6px 4px 26px; }
.route-line {
  position: absolute;
  top: 50%; left: 0;
  width: calc(100% - 26px);   /* runs from stop 1 through into the handshake */
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 45%, var(--green) 70%, var(--green) 100%);
  transform: translateY(-50%);
}
.route-node {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--border);
}
.route-node.n1 { left: 0;        background: var(--accent); }
.route-node.n2 { left: 33.33%;   background: var(--gold); }
.route-node.n3 { left: 66.66%;   background: var(--green); }

/* The connection made: where the journey lands */
.route-end {
  position: absolute;
  right: 0; top: 50%;
  width: 38px; height: 38px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--tint-green);
  color: var(--green);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--green) 40%, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
}
.route-end svg { width: 19px; height: 19px; }

.route-stations {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 4px;
}
.route-station { padding: 0 32px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .route-line {
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  }
  #how.in-view .route-line { transform: translateY(-50%) scaleX(1); }
  .route-node { opacity: 0; transition: opacity 0.4s ease; }
  #how.in-view .route-node { opacity: 1; }
  #how.in-view .route-node.n1 { transition-delay: 0.15s; }
  #how.in-view .route-node.n2 { transition-delay: 0.5s; }
  #how.in-view .route-node.n3 { transition-delay: 0.85s; }
  /* the handshake lands last, once the line has arrived */
  .route-end {
    opacity: 0;
    transform: translateY(-50%) scale(0.55);
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  #how.in-view .route-end {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    transition-delay: 1.05s;
  }
  .route-station {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #how.in-view .route-station { opacity: 1; transform: none; }
  #how.in-view .route-station:nth-child(1) { transition-delay: 0.3s; }
  #how.in-view .route-station:nth-child(2) { transition-delay: 0.5s; }
  #how.in-view .route-station:nth-child(3) { transition-delay: 0.7s; }
}
.route-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  padding: 3px 11px;
  border-radius: 7px;
  margin-bottom: 10px;
}
.route-station:nth-child(1) .route-badge { background: var(--tint-blue);  color: var(--accent-text); }
.route-station:nth-child(2) .route-badge { background: var(--tint-gold);  color: var(--gold); }
.route-station:nth-child(3) .route-badge { background: var(--tint-green); color: var(--green); }
.route-station h3 { margin-bottom: 6px; }
.route-station p { font-size: 14.5px; color: var(--fg2); max-width: 34ch; }

/* ─── NETWORK / DISTRIBUTION CHANNELS ─────────────────── */
#network { position: relative; overflow: hidden; }

/* Ambient partner graph: nodes, edges, and data moving between them */
.network-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.network-atmosphere svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-text);
  opacity: 0.13;
}
:root[data-theme="dark"] .network-atmosphere svg { opacity: 0.2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .network-atmosphere svg { opacity: 0.2; }
}
.net-edge  { stroke: currentColor; stroke-width: 1.2; }
.net-node  { fill: currentColor; }
.net-pulse { fill: var(--accent); }
.net-pulse.g { fill: var(--green); }
.net-pulse.a { fill: var(--gold); }

.network-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.network-copy p { color: var(--fg2); margin-top: 14px; max-width: 46ch; }
.network-copy .link-plain { display: inline-block; margin-top: 22px; }

.channel-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.channel-list .cap {
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg2);
  border-bottom: 1px solid var(--border);
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.channel-row:last-of-type { border-bottom: none; }
.channel-row:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.channel-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.channel-row:hover .channel-icon { transform: scale(1.08); }
.channel-icon svg { width: 19px; height: 19px; }
.channel-row:nth-of-type(3n+1) .channel-icon { background: var(--tint-blue);  color: var(--accent-text); }
.channel-row:nth-of-type(3n+2) .channel-icon { background: var(--tint-green); color: var(--green); }
.channel-row:nth-of-type(3n)   .channel-icon { background: var(--tint-gold);  color: var(--gold); }
.channel-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.channel-body p {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.55;
  margin: 0;
}

/* ─── AUDIENCES ───────────────────────────────────────── */
#audiences {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Diagonal wash: the section's own ground splits blue-to-green, echoing "two sides" */
#audiences::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 60% at 10% 0%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 65%),
    radial-gradient(52% 60% at 90% 100%, color-mix(in srgb, var(--green) 11%, transparent) 0%, transparent 65%);
}
#audiences .limit, .audience-grid { position: relative; z-index: 1; }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}
/* Thick divider marking where the two sides sit apart — blue at top, green at bottom */
.audience-grid::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 45%, var(--border)) 0%,
    color-mix(in srgb, var(--green) 45%, var(--border)) 100%);
  z-index: 0;
}
@media (max-width: 900px) { .audience-grid::before { display: none; } }
.audience-card {
  position: relative;
  border-radius: var(--radius);
  padding: 32px 34px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(40, 46, 60, 0.12); }
:root[data-theme="dark"] .audience-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.audience-card.blue  { background: var(--tint-blue);  border-color: color-mix(in srgb, var(--accent) 18%, var(--border)); }
.audience-card.green { background: var(--tint-green); border-color: color-mix(in srgb, var(--green) 18%, var(--border)); }
.audience-card h3 { margin-bottom: 10px; font-size: 23px; }
.audience-card p { font-size: 15px; color: var(--fg2); margin-bottom: 18px; max-width: 44ch; }

.audience-keywords {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.audience-keywords .sep { color: var(--fg3); font-weight: 400; margin: 0 8px; }
.audience-card.blue .audience-keywords  { color: var(--accent-text); }
.audience-card.green .audience-keywords { color: var(--green); }

/* ─── CTA BAND (the one bold moment — committed blue in both themes) ─ */
#talk {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #1b47b0 0%, #2760df 55%, #2f6bec 100%);
}
/* faint routing arcs echoing the hero motif, but confident here */
#talk::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 92% -10%, rgba(255,255,255,0.14) 0%, transparent 60%),
    radial-gradient(46% 70% at 6% 120%, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
#talk .talk-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
#talk h2 { margin-bottom: 12px; color: #ffffff; font-size: clamp(32px, 4vw, 46px); }
#talk p { color: rgba(255,255,255,0.86); max-width: 46ch; font-size: 17px; }
.talk-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Buttons on the blue band */
.btn-on-blue {
  background: #ffffff;
  color: #1b47b0;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
}
.btn-on-blue:hover { background: #eef2ff; color: #163a94; }
.link-on-blue {
  font-size: 15px;
  font-weight: 650;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255,255,255,0.5);
  transition: text-decoration-color 0.15s;
}
.link-on-blue:hover { text-decoration-color: #ffffff; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 36px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--fg); }
.footer-copy { color: var(--fg3); font-size: 13px; }

/* ─── ANALYTICS NOTICE ────────────────────────────────── */
#sc-analytics-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--fg2);
  line-height: 1.5;
}
#sc-analytics-notice p { margin: 0; flex: 1; min-width: 200px; }
#sc-analytics-notice a { color: var(--accent-text); }
#sc-notice-dismiss {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
#sc-notice-dismiss:hover { border-color: var(--accent); color: var(--accent-text); }

/* ─── MOTION (hero entrance only, reduced-motion gated) ─ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .rise   { opacity: 0; animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  .rise-4 { animation-delay: 0.24s; }

  /* network nodes breathe slightly, so the graph reads as live */
  @keyframes netTwinkle {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
  }
  .net-nodes circle { animation: netTwinkle 4.5s ease-in-out infinite; }
  .net-nodes circle:nth-child(3n)   { animation-delay: -1.5s; }
  .net-nodes circle:nth-child(3n+1) { animation-delay: -3s; }
}

/* ─── MEDIA QUERIES ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { gap: 14px; }
  .stat-card.gold, .stat-card.green { margin: 0; transform: none; }
  .stat-card.gold:hover, .stat-card.green:hover { transform: translateY(-3px); }
  .network-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .route-stations { grid-template-columns: 1fr; margin: 0; gap: 26px; }
  .route-graph { display: none; }
  .route-station { padding: 0; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    gap: 0;
  }
  .nav-links.active li { width: 100%; }
  .nav-links.active a {
    display: block;
    padding: 13px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active li:last-child a { border-bottom: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-actions .btn { padding: 8px 13px; font-size: 12.5px; }
}

@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .talk-actions { width: 100%; }
  #talk .btn-lg { width: 100%; max-width: 320px; }
}

/* ═════════════════════════════════════════════════════════
   SECONDARY PAGES (contact · privacy · terms)
   ═════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

/* Secondary pages get their own centered column, sized to their content.
   The page head and body share the container so their left edges align. */
.limit-legal { max-width: 820px;  margin: 0 auto; }
.limit-form  { max-width: 1000px; margin: 0 auto; }

/* ─── PAGE HEAD ───────────────────────────────────────── */
.page-head { padding-bottom: 0; }
.page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: 12px;
}
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); }
.page-head h1 mark { background: none; color: var(--accent-text); }
.page-sub {
  color: var(--fg2);
  font-size: 17px;
  max-width: 56ch;
  margin-top: 14px;
}
.page-meta { color: var(--fg3); font-size: 14px; margin-top: 12px; }

/* ─── ROLE CARDS (contact) ────────────────────────────── */
.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: 14px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.role-card:hover { transform: translateY(-2px); border-color: var(--fg3); }
.role-card.selected {
  border-color: var(--accent);
  background: var(--tint-blue);
  box-shadow: 0 0 0 1px var(--accent);
}
.role-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--accent-text);
}
.role-card.selected .role-card-icon { background: var(--surface); }
.role-card-icon svg { width: 17px; height: 17px; }
.role-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.role-card-desc { font-size: 13.5px; color: var(--fg2); line-height: 1.55; margin: 0; }

/* ─── FORMS ───────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 36px;
}
.form-legend {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--fg2);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg3); }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--fg3); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field select option { background: var(--surface); color: var(--fg); }

.form-error {
  display: block;
  font-size: 12.5px;
  color: var(--danger);
  min-height: 1em;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--danger); }

.form-divider { border: none; border-top: 1px solid var(--border); margin: 26px 0; }
.dynamic-section { display: none; }
.dynamic-section.visible { display: block; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.form-note { font-size: 13px; color: var(--fg3); max-width: 46ch; }

/* ─── LEGAL PAGES (privacy · terms) ───────────────────── */
.legal-intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--tint-blue);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 14px;
}
.legal-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.legal-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.legal-head h2 { font-size: 20px; font-weight: 700; }
.legal-block > p { color: var(--fg2); font-size: 15px; margin-bottom: 12px; }
.legal-block > p:last-child { margin-bottom: 0; }
.legal-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.legal-item:last-child { border-bottom: none; padding-bottom: 0; }
.legal-item h3 { font-size: 14.5px; font-weight: 700; color: var(--fg); margin-bottom: 5px; }
.legal-item p { color: var(--fg2); font-size: 14.5px; margin: 0; }
.legal-list { margin: 0 0 12px; padding-left: 20px; }
.legal-list li { color: var(--fg2); font-size: 15px; margin-bottom: 8px; }
.legal-contact p { color: var(--fg2); font-size: 15px; margin-bottom: 6px; }
.legal-contact p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .role-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

/* Compact nav for small phones */
.btn .label-short { display: none; }
@media (max-width: 480px) {
  nav { padding: 0 14px; gap: 8px; }
  .nav-actions { gap: 7px; }
  .nav-logo { height: 26px; }
  .nav-actions .btn { padding: 7px 9px; font-size: 11.5px; }
  .btn .label-full { display: none; }
  .btn .label-short { display: inline; }
  .theme-toggle { width: 34px; height: 34px; }
  .mobile-menu-toggle { min-width: 36px; min-height: 36px; padding: 6px; }
}

/* ═════════════════════════════════════════════════════════
   DATA COMPONENTS
   Added July 2026 for the jobs.html migration. Everything
   below is shared vocabulary — jobs.html and job-detail.js
   both consume it. Page-specific jobs layout lives in
   style-v2-jobs.css, not here.

   The four original "Open Air" pages do not reference any
   of these classes, so this block is additive-only.
   ═════════════════════════════════════════════════════════ */

/* ─── WIDE CONTAINER ──────────────────────────────────────
   The 1240px width was previously re-declared inline on
   .hero-grid / .network-grid / .audience-grid / .talk-inner /
   .footer-inner. Named here so new pages stop copying it.
   Existing pages are left alone.
──────────────────────────────────────────────────────────── */
.limit-wide { max-width: 1240px; margin: 0 auto; }

/* ─── BUTTON ADDITIONS ────────────────────────────────────
   Extends the existing .btn base; no existing variant is
   modified. Radius literals match .btn's own 10px.
──────────────────────────────────────────────────────────── */
/* Inline icons inside buttons.
   The original .btn had no svg rule because no button on
   index/contact/privacy/terms contains an icon. An inline
   <svg viewBox> with no width/height has no intrinsic size, so
   inside a stretched flex button it balloons to fill the button.
   flex-shrink:0 keeps it from squashing when the label wraps. */
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-sm svg { width: 12px; height: 12px; }

.btn-ghost {
  background: transparent;
  color: var(--fg2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg3); }
.btn-sm { font-size: 12.5px; padding: 6px 12px; border-radius: 8px; gap: 6px; }
.btn-icon { padding: 8px; border-radius: 8px; }
.btn-icon svg { width: 15px; height: 15px; display: block; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── BADGE ───────────────────────────────────────────────
   Self-contained colour, unlike .route-badge (which only
   gets its tint from a :nth-child rule on .route-station).
   Shape: <span class="badge badge-green">Remote</span>
──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 3px 9px;
  border-radius: 7px;
  white-space: nowrap;
  background: var(--tint-blue);
  color: var(--accent-text);
}
.badge svg { width: 11px; height: 11px; flex-shrink: 0; }
.badge-blue    { background: var(--tint-blue);  color: var(--accent-text); }
.badge-green   { background: var(--tint-green); color: var(--green); }
.badge-gold    { background: var(--tint-gold);  color: var(--gold); }
.badge-neutral { background: color-mix(in srgb, var(--fg3) 14%, transparent); color: var(--fg2); }

/* ─── CHIP (removable / toggleable filter) ────────────────
   Shape: <button class="chip" aria-pressed="false">…</button>
   Removable: <button class="chip chip-remove">Sales <svg…></button>
──────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--fg3); color: var(--fg); }
.chip[aria-pressed="true"],
.chip.selected {
  background: var(--tint-blue);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent);
}
.chip svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.75; }
.chip-remove:hover svg { opacity: 1; }

/* ─── SEARCH FIELD ────────────────────────────────────────
   Standalone icon + input + optional clear button. Distinct
   from .form-field (which is a labelled column-flex control).
   A visually-hidden <label> is still required — see .sr-only.
   Shape:
   <div class="field-search">
     <svg class="field-search-icon" aria-hidden="true">…</svg>
     <input class="field-search-input" type="search">
     <button class="field-search-clear" type="button">…</button>
   </div>
──────────────────────────────────────────────────────────── */
.field-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
}
.field-search-icon {
  position: absolute;
  left: 13px;
  width: 16px; height: 16px;
  color: var(--fg3);
  pointer-events: none;
  flex-shrink: 0;
}
.field-search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 39px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field-search-input::placeholder { color: var(--fg3); }
.field-search-input:hover  { border-color: var(--fg3); }
.field-search-input:focus  { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
/* Suppress the UA clear affordance — .field-search-clear replaces it */
.field-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.field-search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--fg3);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.field-search-clear:hover { color: var(--fg); background: color-mix(in srgb, var(--fg3) 14%, transparent); }
.field-search-clear svg { width: 13px; height: 13px; }

/* ─── SELECT WITH CUSTOM CHEVRON ──────────────────────────
   Standalone styled select for use OUTSIDE a form.

   Note: the control styling in this stylesheet is scoped to
   `.form-field input/select/textarea` — there is no bare
   `select` element rule — so this restates the control look
   rather than inheriting it. Keep the two visually in sync.

   The chevron uses a CSS mask, not a background-image data-URI,
   so it follows a token colour instead of hardcoding a hex that
   would break in dark mode.
──────────────────────────────────────────────────────────── */
.select-chevron {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select-chevron::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 11px; height: 11px;
  background-color: var(--fg3);
  -webkit-mask: var(--chevron-mask) center / contain no-repeat;
  mask: var(--chevron-mask) center / contain no-repeat;
  pointer-events: none;
}
.select-chevron select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 32px 11px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.select-chevron select:hover { border-color: var(--fg3); }
.select-chevron select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
/* Native option popups don't inherit — set explicitly or dark
   mode renders dark text on a dark list. */
.select-chevron select option { background: var(--surface); color: var(--fg); }
:root {
  --chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ─── PANEL ───────────────────────────────────────────────
   Generalises the .channel-list shape (surface + border +
   radius + clipped children) without .channel-row's fixed
   icon/title/desc flex or its nth-of-type colour cycling.
──────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-body { padding: 20px; }

/* ─── DATA ROW ────────────────────────────────────────────
   Row rhythm for repeated records. Layout of the row's
   contents is the consuming page's job.
──────────────────────────────────────────────────────────── */
.data-list { list-style: none; margin: 0; padding: 0; }
.data-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.data-row:last-child { border-bottom: none; }
.data-row:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }

/* ─── RESULT META (count + sort strip) ────────────────────── */
.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--fg2);
}
.result-meta strong { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ─── PAGINATION ──────────────────────────────────────────
   Shape: <nav class="pagination" aria-label="Pagination">
            <button class="page-btn" aria-current="page">1</button>
            <span class="page-gap" aria-hidden="true">…</span>
          </nav>
──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--fg2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-btn:hover { border-color: var(--fg3); color: var(--fg); }
.page-btn[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn svg { width: 14px; height: 14px; }
.page-gap {
  min-width: 22px;
  text-align: center;
  color: var(--fg3);
  font-size: 14px;
  user-select: none;
}

/* ─── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(40px, 7vw, 68px) 24px;
}
.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--accent-text);
  margin-bottom: 4px;
}
.empty-state-icon svg { width: 20px; height: 20px; }
.empty-state h3 { font-size: 19px; }
.empty-state p { color: var(--fg2); font-size: 15px; max-width: 46ch; }
.empty-state .btn { margin-top: 10px; }

/* ─── NOTICE (section-level message) ──────────────────────
   Page/section scale, unlike .form-error which is per-field.
   Shape: <div class="notice notice-error" role="status">…</div>
──────────────────────────────────────────────────────────── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg2);
  font-size: 14.5px;
}
.notice svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.notice-error {
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  background: color-mix(in srgb, var(--danger) 7%, transparent);
  color: var(--danger);
}
.notice-info {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: var(--tint-blue);
  color: var(--accent-text);
}

/* ─── SKELETON (loading placeholder) ──────────────────────
   Container needs aria-busy="true" and should be swapped out
   wholesale once real content lands.
──────────────────────────────────────────────────────────── */
.skeleton {
  background: color-mix(in srgb, var(--fg3) 17%, transparent);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.skeleton-line { height: 11px; margin-bottom: 9px; }
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-45 { width: 45%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--surface) 62%, transparent) 50%,
      transparent 100%
    );
    animation: skeletonSweep 1.5s ease-in-out infinite;
  }
}
@keyframes skeletonSweep {
  100% { transform: translateX(100%); }
}

/* ─── TOAST ───────────────────────────────────────────────
   Shape: <div class="toast" id="…" role="status" aria-live="polite">…</div>
   Sits above #sc-analytics-notice (z-index 500) and offsets
   itself when that bar is present, so the two never overlap.
──────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; }
body:has(#sc-analytics-notice) .toast { bottom: 92px; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.22s, visibility 0.22s; transform: translate(-50%, 0); }
}

/* ─── JOB DESCRIPTION BODY (.jd-*) ────────────────────────
   Rendering of a job's `body` text. Shared deliberately:
   jobs.html renders this inside its expanded row, and
   job-detail.js renders the same structure server-side.
   Keep the two in sync — this is the one place that governs
   how a job description looks anywhere on the site.
──────────────────────────────────────────────────────────── */
.jd-body { font-size: 15px; line-height: 1.7; color: var(--fg2); }
.jd-section-head {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 18px 0 7px;
}
.jd-body > .jd-section-head:first-child { margin-top: 0; }
.jd-para { margin-bottom: 11px; }
.jd-para:last-child { margin-bottom: 0; }
.jd-list { margin: 0 0 12px; padding-left: 19px; }
.jd-list li { margin-bottom: 6px; }
.jd-list li::marker { color: var(--fg3); }
.jd-empty { color: var(--fg3); font-style: italic; }

/* ─── SR-ONLY ─────────────────────────────────────────────
   Required by .field-search and any icon-only control that
   needs an accessible name without visible text.
──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
