@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@500;600;700&family=Public+Sans:wght@400;500;600;700;800&display=swap');

/* -------------------------------------------------------------------------
 * Design tokens — semantic
 * -----------------------------------------------------------------------*/
:root {
  /* Surface — Zetland-inspired warm sand paper */
  --paper:       #fffaee;          /* card surface */
  --paper-sunk:  #f1e8d4;          /* subtle deeper surface */
  --bg:          #f7efdc;          /* page (warmer sand than before) */
  --ink:         #1b1611;          /* primary text */
  --ink-soft:    #4a4138;          /* secondary text */
  --muted:       #574e3e;          /* tertiary text, meta — darkened for WCAG margin:
                                      ~7:1 on --paper, ~6.1:1 on --paper-sunk (was ~4.8:1,
                                      a thin AA pass that read as "merging into the bg") */
  --rule:        rgba(27, 22, 17, 0.12);
  --rule-strong: rgba(27, 22, 17, 0.22);

  /* Editorial accent — warm rust/terracotta (Zetland-style) */
  --rust:        #b94f1c;          /* main editorial accent — links, highlights */
  --rust-deep:   #8a3a13;          /* heading-on-color, hover */
  --rust-soft:   rgba(185, 79, 28, .08);
  --rust-ring:   rgba(185, 79, 28, .32);

  /* Trust palette — kept for semantic source badges only */
  --accent:        #1e40af;        /* trust blue — used only for primary_dk source badge */
  --accent-deep:   #102a63;
  --accent-soft:   rgba(30, 64, 175, .08);
  --accent-ring:   rgba(30, 64, 175, .35);

  /* Severity / status (semantic, never decorative) */
  --warn:    #b45309;
  --warn-bg: #fef3c7;
  --alert:   #b91c1c;
  --success: #047857;

  /* Effects */
  /* Editorial sharp corners — no rounding on rectangles. Circular dot
     indicators still use border-radius: 50% directly where needed. */
  --radius-sm:  0;
  --radius-md:  0;
  --radius-lg:  0;
  --radius-pill: 0;
  --shadow-1: 0 1px 2px rgba(23,17,12,.06), 0 4px 12px rgba(23,17,12,.05);
  --shadow-2: 0 6px 18px rgba(23,17,12,.08), 0 24px 60px rgba(64,42,18,.12);
  --shadow-3: 0 24px 80px rgba(64,42,18,.16);

  /* Spacing scale — 4pt grid */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem; --s-9: 6rem;

  /* Type scale */
  --t-xs:  0.78rem;
  --t-sm:  0.88rem;
  --t-md:  1rem;
  --t-lg:  1.15rem;

  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------------------------
 * Base
 * -----------------------------------------------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Warm paper. Subtle vertical wash, no decorative blobs. */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(185,79,28,.06), transparent 32rem),
    linear-gradient(180deg, #fbf4e2 0%, var(--bg) 30%, #f0e6cf 100%);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

/* Numbers in tables/stats stay tabular so columns don't shift */
.tabular { font-variant-numeric: tabular-nums; }

/* Skip link — first thing for keyboard users */
.skip-link {
  position: absolute;
  top: -100px; left: var(--s-3);
  background: var(--ink); color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s-3); }

/* Focus rings — universal, high contrast */
:focus-visible {
  outline: 3px solid var(--success);
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--success);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 { font-family: "Libre Bodoni", Georgia, serif; font-weight: 600; margin: 0 0 var(--s-3); color: var(--ink); }
h1 {
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: var(--s-4);
  hyphens: manual;
  word-break: normal;
}
.lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 0 var(--s-5);
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }
p  { margin: 0 0 var(--s-4); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
.eyebrow {
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

/* -------------------------------------------------------------------------
 * Hero + nav
 * -----------------------------------------------------------------------*/
.hero {
  padding: var(--s-4) clamp(1rem, 4vw, 4rem) var(--s-9);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  max-width: 1240px;
  margin: 0 auto var(--s-7);
  position: relative;
  z-index: 1;
}
.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}
.brand span { color: var(--rust); font-style: italic; font-family: "Libre Bodoni", Georgia, serif; font-weight: 500; }
.nav-links {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.nav-links a {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.95rem;
  background: rgba(255,255,255,0.7);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background .15s, border-color .15s, color .15s;
}
.nav-links a:hover { color: var(--rust); border-color: var(--rust-ring); background: var(--paper); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border: 1px solid var(--rule-strong);
  background: rgba(255,255,255,.75);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 40px;
  transition: background .15s, border-color .15s, transform .15s;
}
.lang-toggle:hover { background: var(--paper); border-color: var(--rust-ring); transform: translateY(-1px); }
.lang-flag { font-size: 1rem; line-height: 1; }
body[data-lang="da"] .lang-flag::before { content: "🇬🇧"; }
body[data-lang="da"] .lang-flag { display: inline-flex; }
body[data-lang="da"] .lang-flag { font-size: 0; }
body[data-lang="da"] .lang-flag::before { font-size: 1rem; }

/* Bilingual visibility — no English on the Danish view, no Danish on the
   English view. Wrap any hardcoded copy in <span data-lang-da>...</span>
   and <span data-lang-en>...</span> pairs (or use block elements with the
   same attributes). The currently-inactive language is fully hidden.        */
body[data-lang="da"] [data-lang-en] { display: none !important; }
body[data-lang="en"] [data-lang-da] { display: none !important; }

/* Hero grid */
.radar-hero {
  display: grid;
  /* Both tracks can shrink to 0 so the 2-col hero never forces a hard 430px
     min column (which cramped/overflowed the layout just above the 980px
     breakpoint). The right column keeps its visual weight via the 1.08fr. */
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
  min-height: clamp(620px, 78vh, 860px);
  position: relative;
  z-index: 1;
}
.shock-copy { display: grid; align-content: center; min-width: 0; }

/* Hero search — restrained, paper-feel, hairline rule */
.hero-search {
  margin: var(--s-6) 0 var(--s-4);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  box-shadow: 0 1px 0 rgba(27,22,17,.04), 0 8px 24px rgba(27,22,17,.06);
  max-width: 720px;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search:focus-within {
  border-color: var(--rust-ring);
  box-shadow: 0 1px 0 rgba(27,22,17,.04), 0 0 0 4px var(--rust-soft);
}
.hero-search .search-label {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.92rem;
}
.hero-search .search-label svg { color: var(--rust); }
.hero-search input {
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 0.85rem 0.4rem;
  color: var(--ink);
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus-visible { outline: 0; }

/* Popular searches — quiet chips */
.popular-searches {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  margin: 0 0 var(--s-5);
}
.popular-searches button {
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 0;
  padding: 0.38rem 0.1rem;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color .15s, border-color .15s;
  font-style: italic;
  font-family: "Libre Bodoni", Georgia, serif;
}
.popular-searches button:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* Paths offered — calmer treatment than buttons */
/* Hero "fork in the road" — the two audiences as equal, high-contrast tracks.
   Talent is the primary action (this product is talent-first), so it carries the
   rust emphasis; the employer track is the consent-based "request an overview"
   path — never "browse talent". Sharp corners, per the editorial design system. */
.hero-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.fork-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title go" "sub go";
  align-items: center;
  column-gap: var(--s-3);
  row-gap: 0.25rem;
  padding: var(--s-4);
  border: 1.5px solid var(--rule-strong);
  background: var(--paper);
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.fork-card:hover, .fork-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--rust);
}
.fork-title { grid-area: title; font-weight: 800; font-size: 1.06rem; line-height: 1.2; color: var(--ink); }
.fork-sub   { grid-area: sub;   font-size: var(--t-sm); line-height: 1.35; color: var(--muted); }
.fork-go    { grid-area: go; font-size: 1.5rem; line-height: 1; color: var(--rust); transition: transform .14s ease; }
.fork-card:hover .fork-go, .fork-card:focus-visible .fork-go { transform: translateX(3px); }
/* talent track = primary emphasis */
.fork-affected { border-color: var(--rust); background: var(--rust-soft); }
.fork-affected .fork-go { color: var(--rust-deep); }
@media (max-width: 640px) {
  .hero-fork { grid-template-columns: 1fr; }
}

/* Button primitives */
.primary, .secondary, .source-link, .event-actions button, .event-actions a, .tabs button {
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  padding: 0.78rem 1.15rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
  cursor: pointer;
}
.primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(27,22,17,.06), 0 6px 18px rgba(185,79,28,.18);
}
.primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); transform: translateY(-1px); }
.primary[disabled], .primary[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.secondary { background: var(--paper); color: var(--ink); }
.secondary:hover { transform: translateY(-1px); border-color: var(--rust-ring); color: var(--rust-deep); }

/* -------------------------------------------------------------------------
 * Radar stage
 * -----------------------------------------------------------------------*/
/* Right column — editorial. Selected event leads as a magazine opener,
   hot events follow as a tight typeset numbered list. No cards. */
.shock-stage {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--s-6);
  align-items: start;
  padding-left: 0;
}

.lead-event {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: var(--s-3);
}
.lead-event-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.lead-event-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px var(--rust-soft);
  flex-shrink: 0;
}
.lead-event h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.lead-event-lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
}

/* Heat tags — paper-feel pills, lower contrast */
.heat-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0 var(--s-3); }
.heat-tags span {
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-sunk);
  border: 0;
}
.heat-tags [data-heat="critical"] { color: var(--alert);    background: rgba(185,28,28,.07); }
.heat-tags [data-heat="hot"]      { color: var(--rust-deep); background: var(--rust-soft); }
.heat-tags [data-heat="rising"]   { color: var(--accent-deep); background: rgba(30,64,175,.07); }
.heat-tags [data-heat="watch"]    { color: var(--success);  background: rgba(4,120,87,.07); }

.command-actions {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  margin-top: var(--s-3);
}
.command-actions .primary, .command-actions .secondary, .source-link {
  font-size: 0.9rem;
  padding: 0.62rem 0.95rem;
}
.command-note {
  font-size: 0.82rem;
  margin: var(--s-3) 0 0;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.5;
}

/* Hot events — typeset numbered list, no cards */
.hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.hot-list > li { display: block; margin: 0; }
.shock-pin {
  position: static;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
  padding: var(--s-3) 0;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: var(--s-3);
  text-align: left;
  box-shadow: none;
  font-size: 0.96rem;
  transition: color .15s, padding-left .15s;
  cursor: pointer;
}
.shock-pin:hover {
  color: var(--accent-deep);
  padding-left: var(--s-2);
}
.shock-pin strong {
  color: var(--rust);
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-feature-settings: "tnum";
  font-style: italic;
}
.shock-pin span {
  font-family: "Libre Bodoni", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.12rem;
  letter-spacing: -0.012em;
}
.shock-pin em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: 0.02em;
}
.pin-a, .pin-b, .pin-c, .pin-d { top: auto; left: auto; right: auto; bottom: auto; }

/* Old radar shockwave keyframes / classes (now decorative-only and unused) */
.shockwave { display: none; }

/* legacy class kept neutral — content now lives in .lead-event */
.hot-command-card { all: unset; display: block; }
/* Source link = editorial "Læs kilde →" — no button chrome */
.source-link {
  border: 0;
  background: transparent;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 0.5rem 0;
  font-weight: 500;
  font-family: "Libre Bodoni", Georgia, serif;
  font-style: italic;
}
.source-link::after { content: " →"; font-style: normal; }
.source-link:hover { color: var(--rust-deep); }

/* -------------------------------------------------------------------------
 * Sections
 * -----------------------------------------------------------------------*/
.section { max-width: 1240px; margin: 0 auto; padding: var(--s-8) clamp(1rem, 4vw, 2rem); }
/* Editorial divider — Bodoni asterism between major sections */
.section + .section { position: relative; }
.section + .section::before {
  content: "⁂";
  position: absolute;
  top: calc(var(--s-7) * -0.5);
  left: 50%;
  transform: translateX(-50%);
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: 1.2rem;
  color: var(--rust);
  letter-spacing: 0.2em;
  opacity: 0.6;
}
.section-head {
  display: flex; justify-content: space-between; gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

/* Editorial "why this is different" — 2-up, no card chrome */
.field-guide { padding-bottom: var(--s-7); border-top: 1px solid var(--rule); }
.editorial-pair {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--s-5), 5vw, var(--s-8));
  align-items: start;
  padding-top: var(--s-4);
}
.editorial-quote {
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  border-left: 2px solid var(--rust);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  font-weight: 500;
  font-style: italic;
}
.editorial-body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 var(--s-4);
  max-width: 56ch;
}
.editorial-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .editorial-pair { grid-template-columns: 1fr; }
}

/* Controls (search + filter row in tracker) */
.controls { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.controls select {
  min-width: auto !important;
  padding-right: 2rem;
}
.controls input, .controls select, form input:not([type="checkbox"]), form textarea {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
  min-width: 220px;
  min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.controls input:focus, .controls select:focus, form input:focus, form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Editorial counters — no dark blocks, just typesetting */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(var(--s-4), 4vw, var(--s-7));
  margin: var(--s-5) 0 var(--s-6);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats div {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: var(--s-1);
}
.stats strong {
  display: block;
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stats span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Danish data-sources callout (only visible in DA mode) */
.dk-sources {
  border: 1px solid var(--accent-ring);
  background: linear-gradient(180deg, rgba(255,255,255,.85), var(--accent-soft));
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0 var(--s-6);
  box-shadow: var(--shadow-1);
}
.dk-sources[hidden] { display: none; }
.dk-sources-head { margin-bottom: var(--s-4); }
.dk-sources-head .eyebrow { color: var(--accent); }
.dk-sources-head h3 {
  font-size: 1.35rem;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}
.dk-sources-head p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  max-width: 70ch;
}
.dk-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-2) var(--s-4);
}
.dk-sources-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: var(--s-3);
  border-left: 2px solid var(--accent-ring);
}
.dk-sources-list strong {
  color: var(--ink);
  font-weight: 700;
}

/* Scope toggle (include global signals) */
.scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.86rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 var(--s-2);
}
.scope-toggle input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Event provenance row — sits below metrics on each event card */
.event-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin: 0 0 var(--s-3);
  font-size: 0.84rem;
}
.event-outlet {
  color: var(--muted);
  font-size: 0.82rem;
}
.event-type {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* Confidence badge — semantic dot + label */
.conf-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: transparent;
}
.conf-badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.conf-badge[data-confidence="high"]::before   { background: var(--success); }
.conf-badge[data-confidence="medium"]::before { background: var(--warn); }
.conf-badge[data-confidence="low"]::before    { background: var(--alert); }
.conf-badge[data-confidence="high"]   { color: var(--success); border-color: rgba(4,120,87,.28); }
.conf-badge[data-confidence="medium"] { color: var(--warn); border-color: rgba(180,83,9,.28); }
.conf-badge[data-confidence="low"]    { color: var(--alert); border-color: rgba(185,28,28,.28); }

/* Source-judgment explainer */
.source-explainer {
  margin: 0 0 var(--s-6);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.source-explainer h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}
.source-explainer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.source-explainer li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: var(--s-3);
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.conf-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted);
  align-self: center;
}
.conf-dot[data-confidence="high"]   { background: var(--success); }
.conf-dot[data-confidence="medium"] { background: var(--warn); }
.conf-dot[data-confidence="low"]    { background: var(--alert); }

/* Source-type badge on event cards and source list */
.src-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper-sunk);
  color: var(--ink-soft);
}
.src-badge[data-source-type="primary_dk"]   { color: var(--accent-deep); border-color: rgba(30,64,175,.28); background: rgba(30,64,175,.06); }
.src-badge[data-source-type="secondary_dk"] { color: var(--accent); border-color: rgba(30,64,175,.22); background: transparent; }
.src-badge[data-source-type="weak_dk"]      { color: var(--muted); border-color: var(--rule); background: transparent; border-style: dashed; }
.src-badge[data-source-type="global"]       { color: var(--muted); background: transparent; }

/* Sources panel (adapter registry on page) */
.sources-panel { padding-top: var(--s-6); padding-bottom: var(--s-7); border-top: 1px solid var(--rule); }
.sources-panel-head { max-width: 60ch; margin-bottom: var(--s-5); }
.sources-panel-head h2 { margin-bottom: var(--s-3); }
.sources-panel-head p { color: var(--ink-soft); }
.sources-panel-head code { background: var(--paper-sunk); padding: 0.1rem 0.4rem; font-size: 0.88em; }
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.src-row {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-2);
}
.src-row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
}
.src-row-head strong {
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.src-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  color: var(--muted);
}
.src-status[data-status="live"]    { color: var(--success); border-color: rgba(4,120,87,.3); background: rgba(4,120,87,.06); }
.src-status[data-status="stub"]    { color: var(--warn); border-color: rgba(180,83,9,.3); background: rgba(180,83,9,.06); }
.src-status[data-status="manual"]  { color: var(--ink-soft); border-color: var(--rule-strong); }
.src-status[data-status="planned"] { color: var(--muted); border-style: dashed; }
.src-row-meta { display: flex; gap: var(--s-2); align-items: center; }
.src-cadence { font-size: 0.78rem; color: var(--muted); }

/* Data freshness banner */
.freshness {
  margin: 0 0 var(--s-5);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-2);
}
.freshness:empty { display: none; padding: 0; margin: 0; border: 0; }
.freshness .eyebrow { margin: 0; color: var(--ink-soft); }
.freshness-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  align-items: baseline;
}
.freshness-row > span { display: inline-flex; align-items: baseline; gap: var(--s-2); }
.freshness-row em { color: var(--muted); font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.freshness-caveat {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: var(--s-2) 0 0;
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--warn);
  background: rgba(180,83,9,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 88ch;
}

/* Count-status badge on event rows */
.count-badge {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(180,83,9,.08);
  border: 1px solid rgba(180,83,9,.22);
  border-radius: var(--radius-pill);
}
.count-badge[data-count-status="reported"]  { color: var(--warn); }
.count-badge[data-count-status="estimated"] { color: var(--accent-deep); background: rgba(30,64,175,.08); border-color: rgba(30,64,175,.22); }
.count-badge[data-count-status="unknown"]   { color: var(--muted); background: transparent; border-color: var(--rule-strong); border-style: dashed; }

/* Empty state inside event grid */
.empty-state {
  grid-column: 1 / -1;
  padding: var(--s-6) var(--s-5);
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.55;
  display: grid;
  gap: var(--s-3);
}
.empty-state p { margin: 0; }
.empty-cta {
  justify-self: start;
  border: 1px solid var(--rule-strong);
  background: var(--paper-sunk);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 40px;
  transition: background .15s, border-color .15s, transform .15s;
}
.empty-cta:hover { background: var(--paper); border-color: var(--accent-ring); transform: translateY(-1px); }

/* Tracker layout — sidebar + grid */
.tracker-shell { padding-top: var(--s-6); }
.tracker-layout {
  display: grid;
  grid-template-columns: minmax(250px, .38fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.market-panel {
  position: sticky; top: var(--s-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-5) var(--s-6);
  box-shadow: 0 1px 0 rgba(27,22,17,.06), 0 12px 32px rgba(27,22,17,.12);
}
.market-panel .eyebrow { color: var(--rust); }
.market-panel h3 { color: var(--paper); font-size: 1.45rem; line-height: 1.15; }
.market-panel p { color: rgba(255,250,238,.78); }
.flow-table { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.flow-table div {
  display: grid; gap: var(--s-1);
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: var(--s-3);
}
.flow-table span { color: rgba(255,255,255,.65); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.flow-table strong { color: #fff; font-weight: 600; font-size: 1.02rem; }

/* Event entries — typeset feed, magazine column. */
.events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.event-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--s-6) var(--s-2);
  cursor: pointer;
  transition: padding-left .18s ease, background .15s;
  position: relative;
}
.event-card:hover {
  background: rgba(255, 250, 238, 0.5);
  padding-left: var(--s-5);
}

.event-top { display: flex; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); align-items: baseline; }
.event-top h3 {
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
.score {
  font-family: "Libre Bodoni", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: var(--s-2);
  flex-shrink: 0;
}
.score span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
}
.event-metrics {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 0.86rem;
  color: var(--muted);
  align-items: center;
}
.event-metrics > span {
  display: inline-flex; align-items: center;
}
.event-metrics > span + span::before {
  content: "·";
  margin-right: var(--s-3);
  color: var(--rule-strong);
}
.tags span, .conversion-row span {
  color: var(--ink-soft);
  background: rgba(245, 240, 226, .5);
  border: 1px solid var(--rule);
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
}
.event-card p { color: var(--ink-soft); line-height: 1.5; font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0; }
.conversion-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.conversion-row span {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: var(--accent-ring);
}
.event-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* Affected/Hiring split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.split > div {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.split p { color: var(--ink-soft); line-height: 1.6; }

/* -------------------------------------------------------------------------
 * Drawer
 * -----------------------------------------------------------------------*/
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(580px, 100vw);
  background: var(--paper);
  color: var(--ink);
  border-left: 1px solid var(--rule);
  padding: var(--s-5) var(--s-5) var(--s-6);
  transform: translateX(104%);
  transition: transform .25s ease;
  overflow-y: auto;
  z-index: 20;
  box-shadow: -30px 0 100px rgba(23,17,12,.18);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: start;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.drawer-head .eyebrow { margin-bottom: var(--s-1); }
.drawer-head h2 { font-size: 1.65rem; margin: 0; line-height: 1.15; }
.close {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
#drawer-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--s-4); }
#drawer-body { color: var(--ink-soft); }

dl { margin: var(--s-4) 0; padding: 0; }
dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-3);
  border-top: 1px solid var(--rule);
  padding: var(--s-3) 0;
}
dt { color: var(--ink); font-weight: 700; font-size: 0.88rem; }
dd { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin: var(--s-5) 0 var(--s-4);
  padding: 4px;
  background: var(--paper-sunk);
  border-radius: var(--radius-md);
}
.tabs button {
  border-radius: calc(var(--radius-md) - 4px);
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  min-height: 44px;
}
.tabs button.active {
  background: var(--ink);
  color: #fffdf8;
  box-shadow: var(--shadow-1);
}
.panel { display: none; }
.panel.active { display: block; }

form { display: grid; gap: var(--s-3); }
label {
  display: grid;
  gap: var(--s-1);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); font-weight: 500; color: var(--ink-soft); font-size: 0.9rem; }
.check input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
  accent-color: var(--accent);
  margin-top: 3px;
}
.form-trust {
  display: flex; align-items: start; gap: var(--s-2);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  margin-top: var(--s-2);
}
.form-trust svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.receipt { min-height: 1.2rem; font-size: 0.88rem; margin: 0; }
.receipt.ok    { color: var(--success); font-weight: 600; }
.receipt.error { color: var(--alert);   font-weight: 600; }

/* -------------------------------------------------------------------------
 * Footer
 * -----------------------------------------------------------------------*/
.trust-line {
  max-width: 880px;
  margin: var(--s-8) auto 0;
  padding: var(--s-6) clamp(1rem, 4vw, 2rem) var(--s-5);
  border-top: 1px solid var(--rule);
  text-align: left;
}
.trust-line p {
  font-family: "Libre Bodoni", Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 400;
  font-style: italic;
  max-width: 56ch;
}
.trust-line strong { color: var(--ink); font-weight: 500; font-style: normal; }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--s-6);
  padding: var(--s-6) clamp(1rem, 4vw, 2rem) var(--s-7);
  background: rgba(255,253,248,.55);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.footer-brand .brand { font-size: 1.2rem; margin-bottom: var(--s-2); }
.footer-brand p { color: var(--ink-soft); font-size: 0.88rem; max-width: 36ch; line-height: 1.55; }
.footer-col h4 {
  font-family: "Public Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 var(--s-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer-col a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.footer-col a:hover { color: var(--ink); border-color: var(--ink); }
.footer-meta {
  max-width: 1240px;
  margin: var(--s-6) auto 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  color: var(--muted);
  font-size: 0.82rem;
}

/* -------------------------------------------------------------------------
 * Reduced motion — comprehensive
 * -----------------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .shockwave, .live-strip span { display: none !important; }
}

/* -------------------------------------------------------------------------
 * Responsive
 * -----------------------------------------------------------------------*/
@media (max-width: 980px) {
  .radar-hero, .events, .split, .tracker-layout, .footer-inner {
    grid-template-columns: 1fr;
  }
  /* Single-column hero shouldn't be locked to a 620px+ min-height — it left a
     cramped, too-tall block on phones. Let it size to its content. */
  .radar-hero { min-height: auto; }
  .section-head { align-items: stretch; }
  .shock-stage { gap: var(--s-5); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  nav { margin-bottom: var(--s-5); align-items: flex-start; }
  .hero-search { grid-template-columns: 1fr; border-radius: var(--radius-md); padding: var(--s-3); }
  .market-panel { position: static; }
  .footer-inner { gap: var(--s-6); }
}
/* ============================================================
 * Event detail page (/event/:slug/) — reading-column layout
 * ============================================================ */
.event-hero { padding: var(--s-4) clamp(1rem, 4vw, 4rem) var(--s-5); border-bottom: 1px solid var(--rule); }
.event-page { max-width: 880px; margin: 0 auto; padding: var(--s-7) clamp(1rem, 4vw, 2rem) var(--s-8); }
.event-article { max-width: 720px; }
.event-article > .eyebrow { margin-bottom: var(--s-3); }
.event-article > h1 { margin-bottom: var(--s-4); }
.event-article > .lede { margin-bottom: var(--s-5); }
.event-meta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-4) 0; padding: var(--s-3) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.event-meta-row > span { color: var(--ink-soft); }
.event-meta-count { font-weight: 600; color: var(--ink); }
.event-article > .heat-tags { margin: var(--s-4) 0 var(--s-5); }
.event-source-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0 var(--s-6); }
.event-source-card p { margin: 0 0 var(--s-2); }
.event-source-card p:last-child { margin-bottom: 0; }
.event-source-eyebrow { color: var(--rust); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; }
.event-source-line a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; font-family: "Libre Bodoni", Georgia, serif; font-style: italic; }
.event-source-title { font-family: "Libre Bodoni", Georgia, serif; font-style: italic; color: var(--ink); }
.event-source-outlet { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border: 1px solid var(--rule-strong); color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.event-source-note { display: block; margin-top: 0.3rem; font-size: 0.82rem; }
.event-source-meta { color: var(--muted); font-size: 0.86rem; }
.event-actions-section { display: grid; gap: var(--s-4); margin: var(--s-6) 0; }
.event-action-panel { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius-md); padding: var(--s-4) var(--s-5); }
.event-action-panel summary { cursor: pointer; list-style: none; display: grid; gap: var(--s-1); }
.event-action-panel summary::-webkit-details-marker { display: none; }
.event-action-panel summary::after { content: "+"; position: absolute; right: var(--s-5); color: var(--rust); font-family: "Libre Bodoni", Georgia, serif; font-size: 1.6rem; line-height: 1; }
.event-action-panel { position: relative; }
.event-action-panel[open] summary::after { content: "−"; }
.action-eyebrow { color: var(--rust); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; }
.action-h { font-family: "Libre Bodoni", Georgia, serif; font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.event-form { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.event-footer-trust { color: var(--muted); font-size: 0.88rem; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--rule); max-width: 64ch; }
.event-footer-trust a { color: var(--rust); text-decoration: underline; }

/* Forum on event page */
.event-forum { max-width: 720px; margin: var(--s-8) auto 0; padding-top: var(--s-6); border-top: 1px solid var(--rule); }
.forum-heading { font-size: 1.6rem; margin-bottom: var(--s-3); }
.forum-rules { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; background: var(--paper-sunk); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); margin-bottom: var(--s-4); }
.forum-rules strong { color: var(--rust); font-family: "Libre Bodoni", Georgia, serif; font-style: italic; }
.link-button { background: none; border: 0; padding: 0; color: var(--rust); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.forum-composer { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.forum-composer textarea { min-height: 96px; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: var(--s-3); background: var(--paper); font: inherit; }
.forum-composer textarea:focus { outline: 0; border-color: var(--rust); box-shadow: 0 0 0 4px var(--rust-soft); }
.forum-composer button { justify-self: start; }
.forum-receipt { min-height: 1.2rem; font-size: 0.88rem; margin: 0; }
.forum-receipt.ok { color: var(--success); font-weight: 600; }
.forum-receipt.error { color: var(--alert); font-weight: 600; }
.forum-list { display: grid; gap: var(--s-4); }
.forum-empty { color: var(--muted); font-style: italic; padding: var(--s-4) 0; }
.forum-post { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.forum-post:last-child { border-bottom: 0; }
.forum-post-head { display: flex; gap: var(--s-3); align-items: baseline; margin-bottom: var(--s-2); font-size: 0.86rem; }
.forum-pseudo { font-family: "Libre Bodoni", Georgia, serif; font-style: italic; color: var(--rust); }
.forum-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.forum-rumour { color: var(--warn); font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 700; padding: 0.1rem 0.45rem; border: 1px solid rgba(180,83,9,.4); border-radius: var(--radius-pill); }
.forum-body { color: var(--ink); line-height: 1.55; white-space: pre-wrap; margin: 0; }

@media (max-width: 560px) {
  /* Mobile-nav fallback: don't hide the links — wrap them full-width onto their
     own row below the brand + language toggle, as a compact scrollable strip so
     /brief, /karriere, /data and the in-page anchors stay reachable. */
  .nav-links {
    display: flex;
    order: 2;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: var(--s-1);
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; font-size: 0.82rem; padding: 0.45rem 0.7rem; }
  h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .conversion-row { grid-template-columns: 1fr; }
  .event-actions, .command-actions { display: grid; }
  .primary, .secondary, .source-link, .event-actions button, .event-actions a {
    text-align: center; width: 100%; justify-content: center;
  }
}
