/* Signal Staffing — design system.
   Zero build, mobile-first, light only.

   The palette is a cool slate neutral ramp (backgrounds, rules, body copy) with
   exactly two chromatic roles on top:
     • teal   — the brand. Interactive state, links, active filters, badges.
     • amber  — reserved for ONE thing: the Apply action. Nothing else may use it,
                so a scanning eye always lands on the thing worth clicking.
   Everything below is built from the tokens in :root — change them, not the
   rules, and submit.html / spring-weeks / admin follow along for free. */

:root {
  color-scheme: light;   /* light theme only — no dark variant */

  /* --- neutral ramp (cool slate) ----------------------------------------- */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0F172A;

  /* --- brand ------------------------------------------------------------- */
  --teal-50:  #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-200: #99F6E4;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --teal-800: #115E59;
  --amber:    #F59E0B;
  --amber-ink:#4A2A03;

  /* legacy brand aliases — the scoped styles in submit.html, spring-weeks and
     admin/ are written against these, so they stay defined and remapped. */
  --teal:  var(--teal-600);
  --pine:  var(--slate-900);
  --mint:  var(--teal-100);
  --cream: var(--slate-50);
  --slate: var(--slate-600);

  /* --- semantic tokens --------------------------------------------------- */
  --bg:         var(--slate-50);
  --surface:    #FFFFFF;
  --surface-2:  var(--slate-100);
  --ink:        var(--slate-900);
  --ink-2:      var(--slate-700);
  --muted:      var(--slate-600);
  --faint:      var(--slate-500);
  --line:       var(--slate-200);
  --line-soft:  var(--slate-100);
  --brand:      var(--teal-600);
  --brand-ink:  var(--teal-700);         /* AA for small text on white */
  --brand-deep: var(--teal-800);
  --brand-soft: var(--teal-100);
  --brand-tint: var(--teal-50);
  --accent:     var(--amber);            /* APPLY ONLY */
  --accent-ink: var(--amber-ink);
  --open:       var(--teal-700);
  --open-soft:  var(--teal-100);
  --urgent:     #B4432E;                 /* brick — stale/urgent only, never a CTA */
  --urgent-soft:#FDEAE4;
  --notice-bg:  var(--slate-900);
  --notice-ink: var(--teal-100);

  /* --- shape ------------------------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --pill:      999px;

  /* Soft, layered, low-opacity — a premium surface reads as *lifted*, never
     outlined. Colour-matched to the slate ink so it never looks muddy. */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-md: 0 2px 4px -1px rgba(15, 23, 42, .04), 0 8px 20px -6px rgba(15, 23, 42, .10);
  --shadow-lg: 0 4px 8px -2px rgba(15, 23, 42, .05), 0 18px 36px -12px rgba(15, 23, 42, .16);
  --ring:      0 0 0 3px rgba(13, 148, 136, .18);
  --shadow:    var(--shadow-md);         /* legacy alias — admin/ and feedback.js use it */

  /* --- layout ------------------------------------------------------------ */
  --wrap:      1120px;
  --gutter:    24px;
  --bar-h:     64px;                     /* sticky topbar — sticky offsets key off this */

  /* --- type -------------------------------------------------------------- */
  --display: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body:    'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    'Space Mono', ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --ease:      cubic-bezier(.2, .7, .3, 1);
  --t-fast:    .14s var(--ease);
  --t-med:     .2s var(--ease);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv05' 1, 'cv11' 1, 'ss01' 1;   /* Inter: single-storey a-alts, tabular-friendly */
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { letter-spacing: -0.035em; font-weight: 800; }

a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
button { font-family: inherit; }
::selection { background: var(--teal-200); color: var(--slate-900); }

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

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

:where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Data microcopy — timestamps, counters, kickers. Kept monospaced so anything
   the pipeline verifies reads as machine-checked, not marketing. */
.mono, .meta-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- banners ------------------------------------------------------------- */
.banner {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  padding: 10px var(--gutter); text-align: center;
}
.banner--sample { background: var(--notice-bg); color: var(--notice-ink); }
.banner--sample strong { color: #fff; }
.banner--dev { background: var(--urgent-soft); color: var(--urgent); }
.dev-banner__hint { opacity: .7; }

/* ---- wordmark + beacon (the lead brand mark) ----------------------------- */
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em;
  line-height: 1; color: var(--ink);
}
.wordmark .dot { position: relative; }
.wordmark .beacon {
  position: absolute; left: 50%; transform: translateX(-50%); top: .04em;
  width: .19em; height: .19em; border-radius: 50%; background: var(--accent);
}
.wordmark .beacon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .55);
  animation: beat 2.6s ease-out infinite;
}
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
  70%  { box-shadow: 0 0 0 .5em rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ---- sticky topbar ------------------------------------------------------- */
/* Its own element (not nested in the hero) so `position: sticky` has the page
   as its containing block and survives the hero being hidden on results. */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: #fff; }
}
.topbar__bar { display: flex; align-items: center; gap: 16px; height: var(--bar-h); }
.brand {
  display: inline-flex; align-items: baseline; gap: 9px;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none; color: var(--ink);
  transition: opacity var(--t-fast);
}
.brand:hover { opacity: .72; }
.brand .wordmark { font-size: 22px; }
.brand__sub {
  font-family: var(--display); font-weight: 600; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--faint);
}
.topbar__tag {
  margin-left: auto;
  font-family: var(--display); font-weight: 500; font-size: 11.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 5px 12px; background: var(--surface);
  white-space: nowrap;
}

/* ---- hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(13, 148, 136, .07), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; z-index: 1; padding: 64px var(--gutter) 68px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink);
  background: var(--brand-tint); border: 1px solid var(--teal-200);
  border-radius: var(--pill); padding: 6px 14px; margin: 0 0 22px;
}
.hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px rgba(13, 148, 136, .18);
}
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 0 0 16px; max-width: 16ch; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p {
  font-size: clamp(16px, 2.2vw, 18.5px); line-height: 1.55;
  color: var(--muted); margin: 0; max-width: 56ch;
}

/* pulsing rings behind the hero promise */
.rings {
  position: absolute; top: 50%; right: 6%; width: 420px; height: 420px;
  transform: translateY(-50%); pointer-events: none; z-index: 0;
}
.rings span {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border: 1px solid var(--brand); border-radius: 50%; opacity: 0;
  animation: ping 5s ease-out infinite;
}
.rings span:nth-child(2) { animation-delay: 1.6s; }
.rings span:nth-child(3) { animation-delay: 3.2s; }
@keyframes ping {
  0%   { transform: scale(1); opacity: .3; }
  80%  { opacity: 0; }
  100% { transform: scale(5.5); opacity: 0; }
}
@media (max-width: 780px) { .rings { display: none; } }
body[data-view="results"] .hero { display: none; }

/* ---- buttons & generic controls ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--pill);
  font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  padding: 11px 22px;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-xs); }
.btn[disabled], .btn:disabled {
  opacity: .45; cursor: not-allowed; box-shadow: none;
  background: var(--brand); border-color: var(--brand); transform: none;
}
.btn--ghost {
  background: var(--surface); color: var(--ink-2); border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--slate-300); }

/* display/width: its own row — the step kicker that follows must not run into it. */
.back {
  display: flex; align-items: center; gap: 6px;
  width: fit-content; background: none; border: 0; cursor: pointer;
  color: var(--faint);
  font-family: var(--display); font-weight: 500; font-size: 13.5px;
  padding: 6px 0; margin-bottom: 10px;
  transition: color var(--t-fast);
}
.back:hover { color: var(--brand-ink); }

.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand-ink); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.linkbtn:hover { color: var(--brand-deep); }

/* ---- step / entry -------------------------------------------------------- */
.step { padding: 44px 0 12px; }
.step__kicker {
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink);
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px;
}
.step__kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.2);
}
.step__title { font-size: clamp(24px, 3.4vw, 31px); margin: 0 0 10px; }
.step__note { margin: 20px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--faint); }
.step__lead { margin: 0 0 26px; font-size: 16px; color: var(--muted); max-width: 62ch; }
.step__eligibility { margin: 26px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 64ch; }

/* Confirm bar under a multi-select step. */
.step__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.step__cta-hint { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.step__cta .btn { margin-left: auto; }

/* ---- pick cards: areas of work (multi-select) ---------------------------- */
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pick-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 58px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast), background-color var(--t-fast);
}
.pick-card:hover { border-color: var(--teal-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pick-card:active { transform: translateY(0); }
.pick-card__box {
  position: absolute; top: 20px; right: 20px; width: 22px; height: 22px;
  border-radius: 7px; border: 1.5px solid var(--slate-300); background: var(--surface);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.pick-card__box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.4); opacity: 0;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.pick-card:hover .pick-card__box { border-color: var(--brand); }
.pick-card.is-picked {
  border-color: var(--brand); background: var(--brand-tint);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--brand);
}
.pick-card.is-picked .pick-card__box { background: var(--brand); border-color: var(--brand); }
.pick-card.is-picked .pick-card__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.pick-card__name { font-family: var(--display); font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; }
.pick-card__sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pick-card.is-picked .pick-card__sub { color: var(--brand-deep); }

/* ---- stage cards: your year (single choice + optional extra) -------------- */
.stage-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stage-card {
  text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 20px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast), background-color var(--t-fast);
}
.stage-card:hover { border-color: var(--teal-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stage-card:active { transform: translateY(0); }
.stage-card.is-picked {
  border-color: var(--brand); background: var(--brand-tint);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--brand);
}
.stage-card__label { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.stage-card__hint { font-size: 13.5px; color: var(--muted); }
.stage-card.is-picked .stage-card__hint { color: var(--brand-deep); }

/* Follow-up question revealed under the stage card that asks one. */
.follow {
  grid-column: 1 / -1;
  background: var(--surface); border: 1px dashed var(--teal-200);
  border-radius: var(--radius); padding: 16px 18px 17px;
}
.follow__q { margin: 0 0 12px; font-family: var(--display); font-size: 15px; font-weight: 600; }
.follow__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.follow__opt {
  cursor: pointer; border-radius: var(--pill); padding: 8px 18px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.follow__opt:hover { border-color: var(--brand); color: var(--brand-ink); }
.follow__opt.is-picked { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- link-outs (Tier 2) -------------------------------------------------- */
.linkouts {
  margin: 44px 0 8px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.linkouts__title { font-size: 17px; margin: 0 0 6px; }
.linkouts__note { font-size: 14px; color: var(--muted); margin: 0 0 18px; max-width: 64ch; }
.linkout-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.linkout {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.linkout:hover {
  border-color: var(--teal-200); background: var(--surface);
  transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink);
}
.linkout__name { font-weight: 600; font-size: 14.5px; }
.linkout__via { font-family: var(--mono); font-size: 11.5px; color: var(--brand-ink); white-space: nowrap; }

/* ---- explainer ----------------------------------------------------------- */
.explainer { margin: 40px 0 12px; display: grid; gap: 10px; }
.explainer details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2px 20px; box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.explainer details:hover { border-color: var(--slate-300); }
.explainer details[open] { box-shadow: var(--shadow-sm); }
.explainer summary {
  cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 15px 0; list-style: none; display: flex; align-items: center; gap: 10px;
}
.explainer summary::-webkit-details-marker { display: none; }
.explainer summary::before {
  content: "+"; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-ink);
  font-size: 15px; line-height: 1; font-weight: 600;
  transition: transform var(--t-med);
}
.explainer details[open] summary::before { content: "−"; transform: rotate(180deg); }
.explainer p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 68ch; }
.explainer__more a { font-family: var(--display); font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.explainer__more a:hover { text-decoration: underline; }

/* ---- welcome (per-stage, brand voice) ------------------------------------ */
.welcome {
  position: relative; border-radius: var(--radius); padding: 20px 22px 20px 26px;
  margin: 4px 0 22px; background: var(--brand-tint); border: 1px solid var(--teal-200);
  overflow: hidden;
}
.welcome::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.welcome__title {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: -.02em; color: var(--brand-deep); margin: 0 0 5px;
}
.welcome__body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 68ch; }

/* ---- results ------------------------------------------------------------- */
.results__head { padding: 28px 0 4px; }
.results__crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb {
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .01em;
  padding: 6px 13px; border-radius: var(--pill);
  background: var(--brand-soft); color: var(--brand-deep);
}
.crumb--stage { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.crumb--want { background: transparent; color: var(--muted); border: 1px dashed var(--slate-300); }
.results__count { font-size: 14.5px; color: var(--muted); margin: 18px 0 16px; }
.results__count strong { color: var(--ink); font-weight: 700; font-size: 16px; }
.results__body { margin-bottom: 32px; }

/* ---- filters (sticky, blurred) ------------------------------------------- */
.filters {
  position: sticky; top: var(--bar-h); z-index: 30;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  /* No top margin: when stuck, the border box must sit flush under the topbar,
     or a sliver of scrolling content shows through the gap. */
  padding: 14px 16px; margin: 0 0 22px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .filters { background: #fff; }
}
.filters__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; min-width: 0; }
.filters__field > span {
  font-family: var(--display); font-weight: 600; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
/* the region list carries the longest labels ("Yorkshire & the Humber") */
.filters__field--wide { flex: 2 1 230px; }
.filters__field select {
  font-family: var(--body); font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 32px 10px 12px; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6.5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
.filters__field select:hover { border-color: var(--slate-300); }
.filters__field select:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.filters__check {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px; white-space: nowrap;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.filters__check:hover { border-color: var(--slate-300); }
.filters__check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.filters__check:has(input:checked) {
  border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep);
}
.filters__clear {
  margin-left: auto; align-self: flex-end; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  color: var(--muted); background: none; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.filters__clear:hover { color: var(--brand-ink); background: var(--brand-tint); }

/* ---- listing cards ------------------------------------------------------- */
.cards { display: grid; gap: 14px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
}

/* Head: monogram | title+company (left) | status (right). */
.card__head { display: flex; align-items: flex-start; gap: 14px; }
.card__mono {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); border: 1px solid var(--teal-100);
  color: var(--brand-deep);
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em;
  user-select: none;
}
.card__id { flex: 1 1 auto; min-width: 0; }
.card__title { font-size: 17.5px; line-height: 1.3; margin: 1px 0 3px; letter-spacing: -.02em; }
.card__co { font-size: 14px; color: var(--muted); margin: 0; }
.card__co strong { color: var(--ink-2); font-weight: 600; }
.card__field { color: var(--faint); }
.card__desc {
  font-size: 14.5px; line-height: 1.6; color: var(--muted);
  margin: 13px 0 0; max-width: 76ch;
}

/* Badge row — every scannable data point is a pill. */
.card__meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 15px 0 0;
}
.tag, .meta__item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: -.005em;
  line-height: 1; padding: 6px 11px; border-radius: var(--pill);
  white-space: nowrap;
}
.tag .i, .meta__item .i { flex: 0 0 auto; opacity: .8; }
.meta__item { background: var(--surface-2); color: var(--muted); }
.tag--role { background: var(--brand-soft); color: var(--brand-deep); }
.tag--visa { background: var(--open-soft); color: var(--open); box-shadow: inset 0 0 0 1px var(--teal-200); }
.tag--field { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Foot: freshness (left) ←→ apply (right). */
.card__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft);
}
.checked {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .01em; color: var(--faint);
}
.checked::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-600); box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.checked--stale { color: var(--urgent); }
.checked--stale::before { background: var(--urgent); box-shadow: 0 0 0 3px rgba(180,67,46,.14); }

/* Apply = the single amber beacon action on the whole page. */
.apply {
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  text-decoration: none; color: var(--accent-ink); background: var(--accent);
  padding: 10px 22px; border-radius: var(--pill); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(120, 53, 15, .18);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.apply:hover {
  color: var(--accent-ink); background: #FBBF24;
  transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(217, 119, 6, .55);
}
.apply:active { transform: translateY(0); }

/* ---- status chip --------------------------------------------------------- */
/* Says only what we re-verify daily — that the application link is live.
   See src/render.js → statusInfo. */
.status {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 600; font-size: 11.5px; line-height: 1;
  white-space: nowrap; padding: 7px 12px; border-radius: var(--pill);
  background: var(--surface-2); color: var(--muted);
}
.status.is-open { background: var(--open-soft); color: var(--open); }
.status.is-open::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: livedot 2.4s ease-in-out infinite;
}
@keyframes livedot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- empty / off-season -------------------------------------------------- */
.empty {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 46px 28px; text-align: center;
}
.empty__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin: 0 0 18px;
  background: var(--brand-tint); color: var(--brand); border: 1px solid var(--teal-100);
}
.empty__lead {
  font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 8px;
}
.empty p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 auto; max-width: 54ch; }
.empty .btn { margin-top: 22px; }
.empty__evergreen { margin-top: 26px; }
.empty__evergreen .empty {
  background: transparent; border: 1px dashed var(--slate-300); box-shadow: none;
  text-align: left; padding: 22px;
}
.empty__evergreen .empty__lead {
  text-align: left; font-size: 13px; margin-bottom: 14px; color: var(--faint);
  font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ---- skeleton loader ----------------------------------------------------- */
/* Shaped like the real card, so the layout doesn't jump when data lands. */
.sk {
  display: block; border-radius: var(--radius-xs);
  background:
    linear-gradient(90deg, var(--slate-100) 0%, var(--slate-200) 45%, var(--slate-100) 90%)
    0 0 / 300% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }

.sk-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 18px; box-shadow: var(--shadow-sm);
}
.sk-card__head { display: flex; align-items: flex-start; gap: 14px; }
.sk-card__id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 3px; }
.sk--mono   { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-sm); }
.sk--title  { height: 15px; width: min(62%, 320px); }
.sk--co     { height: 11px; width: min(42%, 210px); }
.sk--status { flex: 0 0 auto; height: 26px; width: 132px; border-radius: var(--pill); }
.sk--line   { height: 10px; margin-top: 16px; width: 92%; }
.sk--line-2 { width: 68%; margin-top: 9px; }
.sk-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sk--pill   { height: 24px; width: 96px; border-radius: var(--pill); }
.sk--pill-w { width: 150px; }
.sk-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line-soft);
}
.sk--foot { height: 10px; width: 140px; }
.sk--btn  { height: 34px; width: 96px; border-radius: var(--pill); }
.sk-filters { height: 74px; border-radius: var(--radius); margin: 4px 0 22px; }

/* Stagger so it reads as loading, not as a frozen mock. */
.cards--loading .sk-card:nth-child(2) .sk { animation-delay: .12s; }
.cards--loading .sk-card:nth-child(3) .sk { animation-delay: .24s; }
.cards--loading .sk-card:nth-child(3) { opacity: .72; }

/* ---- report a problem (subtle; never competes with the amber Apply) ------ */
.card__report { margin-top: 12px; }
.report__toggle {
  font-family: var(--display); font-weight: 500; font-size: 12px; color: var(--slate-400);
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--t-fast);
}
.report__toggle::-webkit-details-marker { display: none; }
.report__toggle::before { content: "⚑"; font-size: 11px; }
.report__toggle:hover { color: var(--muted); }
.report__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.report__opt {
  cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 13px;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 7px 14px;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.report__opt:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-tint); }
.report__done { font-family: var(--mono); font-size: 12px; color: var(--open); margin: 10px 0 0; }
.report__done--err { color: var(--urgent); }

/* ---- footer -------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line); background: var(--surface);
  margin-top: 56px; padding: 48px 0 64px;
}
.site-foot p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; max-width: 78ch; }
.site-foot__mark { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.site-foot__fine { font-size: 12.5px; color: var(--faint); }
.site-foot__contact { color: var(--ink-2); }
.site-foot__contact a { color: var(--brand-ink); font-weight: 600; }

/* ---- consent banner ------------------------------------------------------ */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
}
.consent__text { margin: 0; flex: 1 1 280px; font-size: 13.5px; color: var(--muted); }
.consent__actions { display: flex; gap: 8px; margin-left: auto; }
.consent__btn {
  cursor: pointer; border-radius: var(--pill);
  font-family: var(--display); font-weight: 600; font-size: 14px;
  padding: 9px 18px; border: 1px solid var(--line);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.consent__btn--ghost { background: var(--surface); color: var(--muted); }
.consent__btn--ghost:hover { color: var(--ink); border-color: var(--slate-300); }
.consent__btn--accept { background: var(--brand); color: #fff; border-color: var(--brand); }
.consent__btn--accept:hover { background: var(--brand-ink); border-color: var(--brand-ink); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 719px) {
  /* Wrapped filters would eat half a phone screen if they stuck. */
  .filters { position: static; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .card__foot .apply { text-align: center; }
  /* No room for a right-hand status chip: keep the monogram beside the title
     and drop the chip onto its own row underneath. */
  .card__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .card__mono { grid-area: 1 / 1; }
  .card__id { grid-area: 1 / 2; }
  .status { grid-column: 1 / -1; width: fit-content; }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .linkout-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .linkout-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { padding: 80px var(--gutter) 88px; }
  .card { padding: 24px 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .rings span, .wordmark .beacon::after, .status.is-open::before { animation: none; }
  .rings span { opacity: .1; transform: scale(2.2); }
  .sk { animation: none; background: var(--slate-100); }
  .card:hover, .pick-card:hover, .stage-card:hover, .linkout:hover, .apply:hover { transform: none; }
}
