/* ======================================================================
   Export Studio — a warm archival intelligence broadsheet.
   Palette: parchment ground, Nile-green ink, terracotta + amber accents.
   Type: Libre Caslon Display (broadsheet headlines) · Newsreader (serif body,
   dossier feel) · Archivo (label/nav chrome) · IBM Plex Mono (figures/codes)
   ====================================================================== */

:root {
  /* Atlas — stark near-white, jet ink, one vivid persimmon accent. */
  --paper: #fbfbf8;
  --paper-2: #f2f1ec;
  --card: #ffffff;
  --ink: #15130f;          /* jet */
  --ink-soft: #46443d;
  --muted: #8c897f;
  --line: #e4e1d8;
  --line-soft: #efece4;

  /* --nile / --nile-deep repointed to jet so headings + primary actions go
     ink-black; green now means ONLY the "supportive" verdict. */
  --nile: #15130f;
  --nile-deep: #15130f;
  --terra: #ea5b1a;        /* persimmon — the single vivid brand accent */
  --amber: #b9852a;        /* gold — mixed verdict */
  --water: #6b6960;        /* neutral grey — secondary labels */
  --sand: #d8d4c8;

  --supportive: #1f6b4f;
  --mixed: #b9852a;
  --cautionary: #9e2b25;   /* deep brick — distinct from the persimmon accent */
  --insufficient: #8c897f;

  --display: "Gloock", "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --label: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 2px;
  --shadow: 0 1px 0 rgba(21, 19, 15, 0.03), 0 14px 34px -26px rgba(21, 19, 15, 0.45);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

/* The hidden attribute must win over component display rules (flex/grid). */
[hidden] { display: none !important; }

/* ── RTL / Arabic ─────────────────────────────────────────────────
   Arabic uses IBM Plex Sans Arabic (the Latin display/body fonts have no
   Arabic glyphs). Layout mirrors automatically from dir="rtl"; a few
   physical-property spots get explicit overrides below. */
[dir="rtl"] {
  --display: "IBM Plex Sans Arabic", "Gloock", serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --label: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
[dir="rtl"] .hero-title,
[dir="rtl"] .ask-hero-title,
[dir="rtl"] .view-title,
[dir="rtl"] .about-h2 { font-weight: 600; letter-spacing: 0; }

/* Language switch — a subtle segmented control in the masthead, modelled on
   the Lina Organica site. A thin-ruled pill holds three/four tabs; the active
   tab fills with jet ink (not the persimmon accent, which is reserved for real
   signals) so the chrome stays quiet rather than shouting. */
.nav-lang {
  display: inline-flex; gap: 2px; align-items: center;
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 3px 5px;
}
.lang-opt {
  background: none; border: 0; cursor: pointer;
  font-family: var(--label); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); line-height: 1.2;
  border-radius: 999px; padding: 3px 9px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-active { color: var(--paper); background: var(--ink); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(
    1100px 520px at 88% -12%,
    rgba(234, 91, 26, 0.05),
    transparent 60%
  );
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); }

a { color: inherit; }

::selection { background: rgba(31, 92, 70, 0.18); }

/* ─────────────────────────── Masthead ─────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--paper), rgba(243, 236, 221, 0.86));
  backdrop-filter: blur(8px);
}
/* Inner content shares the body/footer column so the masthead aligns with them. */
.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--nile-deep);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .mark {
  font-size: 11px;
  color: var(--terra);
  transform: translateY(-2px);
}
.tagline {
  margin: 4px 0 0;
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  position: relative;
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  cursor: pointer;
  /* Keep multi-word labels (FR "Tableau de bord", "À propos") on one line —
     they wrap otherwise; there's ample horizontal room in the masthead. */
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--terra);
  transition: right 0.25s ease;
}
.nav-link:hover::after { right: 0; }
.nav-link.is-active { color: var(--nile-deep); }
.nav-link.is-active::after { right: 0; background: var(--nile); }
.nav-rule { width: 1px; height: 18px; background: var(--line); }
.nav-ext {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav-ext:hover { color: var(--water); }

/* ── Auth-aware chrome ───────────────────────────────────────────── */
/* Hide the tool until the session probe resolves (prevents a logged-out
   visitor flashing the gated tool before we fall back to public/About). */
.auth-pending .stage,
.auth-pending .nav { visibility: hidden; }

.nav-login { display: none; }
.nav-login {
  color: var(--paper); background: var(--ink); border-radius: 999px;
  padding: 6px 16px;
}
.nav-login::after { display: none; }
.nav-login:hover { color: var(--paper); background: var(--terra); }

/* Logged out → only About + Log in in the nav. */
.public .nav-link[data-view]:not([data-view="about"]) { display: none; }
.public .nav-login { display: inline-flex; align-items: center; }

/* Desktop-only note for the dense analyst views (shown on mobile only). */
.desk-only { display: none; max-width: 56ch; padding: 24px 0; }
.desk-only-h {
  font-family: var(--display); font-weight: 400; font-size: 28px;
  color: var(--nile-deep); margin: 0 0 10px;
}
.desk-only p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.desk-only a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }

/* ── Mobile: wrap the nav, Ask-only experience, desktop note elsewhere ── */
@media (max-width: 760px) {
  .masthead { padding: 12px 0 10px; }
  .masthead-inner { flex-wrap: wrap; row-gap: 10px; align-items: center; }
  .brand { flex: 1 1 auto; }
  .tagline { display: none; }
  .nav { width: 100%; gap: 14px 20px; }
  .nav-link { font-size: 12.5px; padding-bottom: 2px; }
  .wordmark { font-size: 22px; }

  /* Mobile nav = Ask + About only (+ Log in when public). */
  .nav-link[data-view="pulse"],
  .nav-link[data-view="products"],
  .nav-link[data-view="dashboard"],
  .nav-link[data-view="sources"] { display: none; }

  /* Heavy views collapse to a single "best on desktop" note. */
  #view-pulse > :not(.desk-only),
  #view-products > :not(.desk-only),
  #view-dashboard > :not(.desk-only),
  #view-sources > :not(.desk-only) { display: none; }
  .desk-only { display: block; }

  /* Ask: tighten for one-hand phone use. */
  .ask-field { padding: 5px 5px 5px 14px; }
  .ask-field input { font-size: 16px; }   /* 16px avoids iOS focus-zoom */
  .ask-prompt { font-size: 18px; }
  #ask-submit { padding: 11px 18px; font-size: 12px; }
  .ask-hero-title { font-size: 32px; }
  .ask-hero-sub { font-size: 15px; }
  .ask-controls { gap: 10px 12px; }
  .ask-rail { margin-top: 6px; }
  .entry-body { padding-left: 14px; padding-right: 14px; }
  .stage { padding-left: 18px; padding-right: 18px; }
}

/* ─────────────────────────── Stage / views ─────────────────────── */
.stage {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) 80px;
}
.view { display: none; }
.view.is-active { display: block; animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px;
}
.eyebrow::before { content: "—— "; color: var(--line); }

/* ─────────────────────────── Hero / Ask ────────────────────────── */
.hero { max-width: 760px; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  max-width: 12ch;
  color: var(--nile-deep);
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 30px;
}

.ask { max-width: 760px; }
.ask-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ask-field:focus-within {
  border-color: var(--nile);
  box-shadow: 0 0 0 4px rgba(31, 92, 70, 0.1), var(--shadow);
}
.ask-prompt {
  font-family: var(--label);
  font-size: 22px;
  color: var(--terra);
  line-height: 1;
}
.ask-field input {
  flex: 1;
  min-width: 0;            /* let the input shrink so the button stays inside the box */
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 18px;
  color: var(--ink);
  padding: 12px 0;
  outline: none;
}
.ask-field input::placeholder { color: var(--muted); }
#ask-submit {
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--nile);
  border: 0;
  border-radius: 3px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
#ask-submit:hover { background: var(--nile-deep); }
#ask-submit:active { transform: translateY(1px); }
#ask-submit:disabled { opacity: 0.5; cursor: default; }

.ask-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper-2);
}
.toggle button {
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.toggle button.is-active { background: var(--ink); color: var(--paper); }
.toggle-hint {
  font-family: var(--label);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: left;
  font-family: var(--body);
}
.chip:hover { border-color: var(--terra); color: var(--terra); background: rgba(176, 74, 40, 0.04); }

/* ─────────────────────── Ask layout (main + rail) ──────────────── */
.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}
.ask-main { min-width: 0; }
.ask-main .ask { max-width: 100%; }
@media (max-width: 920px) {
  .ask-layout { grid-template-columns: 1fr; gap: 30px; }
}

.ask-intro { margin-bottom: 24px; }
.ask-intro .eyebrow { margin-bottom: 12px; }
.ask-hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.012em;
  margin: 0 0 14px; color: var(--nile-deep);
}
.ask-hero-sub {
  font-size: 17px; color: var(--ink-soft); max-width: 56ch; margin: 0; line-height: 1.5;
}
.ask-hero-sub a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }

/* dedup banner */
.ask-dedup {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 9px 14px;
  background: rgba(234, 91, 26, 0.06);
  border: 1px solid rgba(234, 91, 26, 0.28); border-radius: var(--radius);
}
.dedup-note { font-size: 13.5px; color: var(--ink-soft); }
.dedup-btn {
  font-family: var(--label); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.dedup-btn.ghost { background: transparent; color: var(--ink); }
.dedup-btn:hover { border-color: var(--terra); }

/* thread of answers */
.ask-thread { margin-top: 30px; }
.thread-entry {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: 14px; overflow: hidden;
}
.entry-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: transparent; border: 0; cursor: pointer;
  text-align: left; font-family: var(--body);
}
.entry-head:hover { background: var(--paper-2); }
.thread-entry.is-loading .entry-head { cursor: default; }
.entry-caret { color: var(--terra); font-size: 11px; transition: transform 0.2s; flex: none; }
.thread-entry:not(.is-open) .entry-caret { transform: rotate(-90deg); }
.entry-q {
  flex: 1; font-size: 15px; color: var(--ink); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thread-entry.is-open .entry-q { white-space: normal; }
.entry-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.entry-verdict {
  font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.entry-conf { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; }
.entry-body { padding: 2px 18px 18px; max-width: 780px; }
.thread-entry:not(.is-open) .entry-body { display: none; }
.from-history { border-left: 2px solid var(--sand); }
.retry-btn {
  margin-top: 12px; font-family: var(--label); font-size: 11.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--paper); background: var(--ink);
  border: 0; border-radius: 3px; padding: 9px 18px; cursor: pointer;
}
.retry-btn:hover { background: var(--terra); }

/* right rail */
.ask-rail { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 96px; }
@media (max-width: 920px) { .ask-rail { position: static; } }
.rail-h {
  font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--water); margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.rail-digest .digest-text { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.digest-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.rail-more {
  display: inline-block; margin-top: 12px; font-family: var(--label); font-size: 10.5px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--terra); text-decoration: none;
}
.rail-more:hover { text-decoration: underline; }
.rail-recent { display: flex; flex-direction: column; max-height: 58vh; overflow-y: auto; }
.recent-item {
  display: grid; grid-template-columns: 9px 1fr auto; gap: 9px; align-items: baseline;
  width: 100%; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-soft); padding: 9px 2px; cursor: pointer;
  font-family: var(--body);
}
.recent-item:hover { background: var(--paper-2); }
.recent-row { position: relative; }
.recent-del {
  position: absolute; top: 50%; right: 2px; transform: translateY(-50%);
  border: 0; background: var(--paper-2); color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 3px 7px; border-radius: 6px;
  opacity: 0; transition: opacity .12s ease;
}
.recent-row:hover .recent-del, .recent-del:focus-visible { opacity: 1; }
.recent-del:hover { color: #c0392b; background: var(--paper); }
.recent-dot { width: 8px; height: 8px; border-radius: 999px; align-self: center; }
.recent-q { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-time { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ─────────────────────────── Result ────────────────────────────── */
.result { margin-top: 40px; }

.interpreted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.tag {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tag-product { background: rgba(31, 92, 70, 0.1); color: var(--nile-deep); }
.tag-geo { background: rgba(42, 111, 134, 0.12); color: var(--water); }

/* The Read card */
.read {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 38px);
  overflow: hidden;
}
.read::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--verdict-color, var(--nile));
}
.read-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.read-eyebrow {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.verdict-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 3px;
  background: var(--verdict-tint, rgba(31, 92, 70, 0.12));
  color: var(--verdict-color, var(--nile));
}
.verdict-word {
  font-family: var(--label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.verdict-conf {
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.read-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(23px, 3.2vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.read-rationale {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 64ch;
}

.read-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 22px;
}
.col h4, .read-block h4 {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--muted);
}
.col ul, .read-block ul, .read-block ol { margin: 0; padding: 0; list-style: none; }
.col li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.45;
}
.col-favour li::before { content: "+"; position: absolute; left: 0; color: var(--nile); font-family: var(--mono); font-weight: 600; }
.col-risk li::before { content: "!"; position: absolute; left: 2px; color: var(--terra); font-family: var(--mono); font-weight: 600; }

.read-block { margin-bottom: 22px; }
.disagree {
  background: rgba(185, 133, 42, 0.08);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
}
.disagree h4 { color: var(--amber); }
.disagree li { font-size: 14.5px; margin-bottom: 8px; color: var(--ink-soft); line-height: 1.45; }

.next-steps { counter-reset: step; }
.next-steps li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 9px;
  font-size: 15px;
}
.next-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  font-family: var(--label);
  font-size: 11px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

/* Panel disclosure */
.panel { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.panel-toggle {
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--water);
  cursor: pointer;
  padding: 0;
}
.panel-toggle:hover { color: var(--nile-deep); }
.panel-list { margin-top: 14px; display: grid; gap: 10px; }
.panelist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.panelist-name { font-weight: 600; font-size: 14px; }
.panelist-model { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.panelist-thesis { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.mini-verdict {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: start;
}

/* Follow-ups */
.followups { margin: 26px 0 8px; }
.followups .label { font-family: var(--label); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.followups .row { display: flex; flex-wrap: wrap; gap: 8px; }
.followup {
  font-size: 13.5px;
  font-family: var(--body);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--nile-deep);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.followup:hover { border-color: var(--nile); background: rgba(31, 92, 70, 0.05); }
.followup::before { content: "→ "; color: var(--terra); }

/* Evidence */
.evidence { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 6px; }
.evidence > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.evidence > summary::-webkit-details-marker { display: none; }
.evidence > summary::before { content: "▸"; color: var(--terra); transition: transform 0.2s; }
.evidence[open] > summary::before { transform: rotate(90deg); }
.evidence-group { margin-bottom: 22px; }
.evidence-group h5 {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--water);
  margin: 0 0 10px;
}
.ev-item {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.ev-top { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.ev-text { font-size: 14.5px; line-height: 1.45; }
.ev-text a { color: var(--nile-deep); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.ev-text a:hover { text-decoration-color: var(--terra); }
.ev-lane { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gist-btn {
  margin-top: 8px;
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--water);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.gist-btn:hover { border-color: var(--water); }
.gist {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.gist ul { margin: 0 0 8px; padding-left: 18px; }
.gist li { font-size: 13.5px; margin-bottom: 4px; }
.worth { font-family: var(--label); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.worth-yes { background: rgba(31, 92, 70, 0.14); color: var(--nile-deep); }
.worth-skim { background: rgba(185, 133, 42, 0.16); color: var(--amber); }
.worth-no { background: rgba(176, 74, 40, 0.12); color: var(--terra); }
.worth-unknown { background: rgba(124, 132, 120, 0.16); color: var(--muted); }

/* ─────────────────────── Loading council ───────────────────────── */
.council { padding: 18px 0 8px; }
.council-grid {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
  position: relative;
}
.council-nodes { display: flex; flex-direction: column; gap: 11px; }
.node {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.node.lit { opacity: 1; }
.node-dot {
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--line); flex: none;
  position: relative;
}
.node.lit .node-dot { background: var(--nile); box-shadow: 0 0 0 4px rgba(31, 92, 70, 0.14); }
.node.lit .node-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  border: 1px solid var(--nile); animation: ping 1.4s ease-out infinite;
}
.node-label { font-family: var(--label); font-size: 11.5px; letter-spacing: 0.03em; color: var(--ink-soft); }
@keyframes ping { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }

.council-narration {
  font-family: var(--body);
  font-style: italic;
  font-size: 21px;
  color: var(--nile-deep);
  min-height: 28px;
  animation: fadeline 0.5s ease;
}
.council-sub { font-family: var(--label); font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }
@keyframes fadeline { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

.meander {
  height: 2px;
  margin: 20px 0 4px;
  background: linear-gradient(90deg, var(--nile), var(--amber), var(--terra));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: flow 2.4s linear infinite;
}
@keyframes flow { from { background-position: 200% 0; } to { background-position: 0 0; } }
/* RTL: the progress bar should flow right-to-left, not look like it's rewinding. */
[dir="rtl"] .meander { animation-direction: reverse; }

/* ─────────────────────────── Pulse ─────────────────────────────── */
.view-head { margin-bottom: 28px; }
.view-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--nile-deep);
}
.view-sub { color: var(--ink-soft); margin: 0 0 18px; }
.tabs { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.tabs button {
  font-family: var(--label); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase;
  border: 0; background: transparent; color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer;
}
.tabs button.is-active { background: var(--nile); color: var(--paper); }

.feed { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.feed-item {
  background: var(--card);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  transition: background 0.2s;
}
.feed-item:hover { background: var(--paper-2); }
.feed-kind {
  font-family: var(--label); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; white-space: nowrap;
}
.kind-press { background: rgba(42, 111, 134, 0.14); color: var(--water); }
.kind-regulatory { background: rgba(176, 74, 40, 0.12); color: var(--terra); }
.feed-main .feed-title { font-size: 15.5px; line-height: 1.35; margin-bottom: 6px; }
.feed-main .feed-title a { color: var(--ink); text-decoration: none; }
.feed-main .feed-title a:hover { color: var(--nile-deep); text-decoration: underline; }
.feed-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.feed-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.feed-tag { font-family: var(--label); font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(31, 92, 70, 0.09); color: var(--nile-deep); }
.feed-ask {
  font-family: var(--label); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--terra); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.feed-ask:hover { text-decoration: underline; }
.feed-time { white-space: nowrap; }

/* ─────────────────────────── Products ──────────────────────────── */
.prod-controls { margin: 4px 0 18px; }
.prod-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 4px 14px; max-width: 460px; box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prod-search:focus-within { box-shadow: 0 0 0 4px rgba(31, 92, 70, 0.1), var(--shadow); }
.prod-search-icon { color: var(--terra); font-size: 17px; line-height: 1; }
.prod-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--body); font-size: 15px; color: var(--ink); padding: 9px 0;
}
.prod-search input::placeholder { color: var(--muted); }

.prod-facets { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 16px; }
.facet { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.facet-chip {
  font-family: var(--label); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; transition: all 0.18s;
}
.facet-chip:hover { border-color: var(--terra); color: var(--terra); }
.facet-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.facet-select {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted);
  text-transform: uppercase;
}
.facet-select select {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  background: var(--card); cursor: pointer;
}
.prod-count {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  margin: 0 0 14px; text-transform: uppercase;
}

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.product-dir {
  display: inline-block; font-family: var(--label); font-weight: 600;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
  background: var(--paper-2); color: var(--water);
}
.product-dir.dir-egypt_to_eu { background: rgba(31, 107, 79, 0.1); color: var(--supportive); }
.product-dir.dir-eu_to_egypt { background: rgba(234, 91, 26, 0.1); color: var(--terra); }
.product-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  font-family: var(--body);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--nile); }
.product-card h3 { font-family: var(--display); font-weight: 400; font-size: 23px; letter-spacing: 0; margin: 0 0 8px; color: var(--nile-deep); }
.product-hs { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 10px; }
.product-kw { font-size: 13px; color: var(--ink-soft); }
.product-card .go { margin-top: 14px; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra); }

/* ─────────────────────────── States ────────────────────────────── */
.state { padding: 28px 0; color: var(--muted); font-family: var(--label); font-size: 13px; }
.state.error { color: var(--terra); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ─────────────────────────── Footer ────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 56px) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─────────────────────────── Responsive ────────────────────────── */
@media (max-width: 720px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .read-cols { grid-template-columns: 1fr; gap: 18px; }
  .feed-item { grid-template-columns: 1fr; }
  .nav { gap: 14px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Stop button in loader */
.council-foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.stop-btn {
  font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; border: 1px solid var(--line); background: var(--card);
  color: var(--terra); border-radius: 999px; padding: 5px 14px; cursor: pointer;
}
.stop-btn:hover { border-color: var(--terra); background: rgba(176, 74, 40, 0.05); }

/* ─────────────────────────── Coverage ──────────────────────────── */
.cov-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.cov-stat { background: var(--card); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.cov-num { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); line-height: 1; color: var(--nile-deep); }
.cov-label { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.cov-list { display: grid; gap: 26px; }
.cov-cat {
  font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--water); margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.cov-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cov-dot { width: 9px; height: 9px; border-radius: 999px; }
.cov-flowing { background: var(--nile); box-shadow: 0 0 0 3px rgba(31, 92, 70, 0.14); }
.cov-pending { background: var(--sand); }
.cov-error { background: var(--terra); }
.cov-blocked { background: var(--muted); }
.cov-name { font-size: 15px; }
.cov-counts { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.cov-status { font-family: var(--label); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .cov-row { grid-template-columns: 14px 1fr; }
  .cov-counts, .cov-status { grid-column: 2; }
}

/* ─────────────────────────── Dashboard ─────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-h {
  font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--water); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.dash-bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.bar-label { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.bar-track { height: 10px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.bar-val { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.dash-list { display: flex; flex-direction: column; }
.sig-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.sig-metric { font-size: 14px; }
.sig-val { font-family: var(--mono); font-size: 12.5px; color: var(--nile-deep); white-space: nowrap; }
.sig-when { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.dash-foot { margin-top: 28px; font-size: 13px; }
.dash-foot a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }

/* Dashboard — analytical bands */
.dash-section { margin-top: 46px; }
.dash-section > .eyebrow { margin-bottom: 18px; }

.insight-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px; align-items: start;
}
.insight-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 16px;
}
.insight-h {
  font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: 0;
  margin: 0 0 10px; color: var(--nile-deep); line-height: 1.15;
}
.insight-read { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px; }
.insight-viz { margin: 0 0 12px; }
.insight-src {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.02em; line-height: 1.4; margin: 0; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.insight-viz .bar-row { grid-template-columns: minmax(80px, 0.55fr) 1fr auto; gap: 10px; margin-bottom: 7px; }
.insight-viz .bar-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11.5px; letter-spacing: 0;
}

/* movers list */
.mover-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
}
.mover-name { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.mover-delta { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.mover-delta small { font-size: 10.5px; opacity: 0.8; margin-left: 4px; }
.mover-delta.up { color: var(--supportive); }
.mover-delta.down { color: var(--cautionary); }

/* dual figures (agri-food) */
.duo-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.duo-num { display: block; font-family: var(--mono); font-size: 20px; color: var(--nile-deep); }
.duo-lbl { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* capmas chips */
.capmas-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .capmas-cols, .duo-figs { grid-template-columns: 1fr; } }
.mini-h { font-family: var(--label); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--water); margin: 0 0 8px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper);
}
.mini-chip.imp { border-color: rgba(158, 43, 37, 0.3); color: var(--cautionary); }
.mini-chip.exp { border-color: rgba(31, 107, 79, 0.3); color: var(--supportive); }

/* source-health segmented bar */
.srchealth { margin-bottom: 4px; }
.seg-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--paper-2); }
.seg { display: block; height: 100%; }
.seg-healthy, .seg-dot.seg-healthy { background: var(--supportive); }
.seg-pending, .seg-dot.seg-pending { background: var(--sand); }
.seg-error, .seg-dot.seg-error { background: var(--cautionary); }
.seg-degraded, .seg-dot.seg-degraded { background: var(--amber); }
.seg-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.seg-leg { font-family: var(--label); font-size: 11.5px; color: var(--ink-soft); text-transform: capitalize; display: inline-flex; align-items: center; gap: 6px; }
.seg-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* recent collector runs */
.run-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.run-dot { width: 8px; height: 8px; border-radius: 999px; align-self: center; }
.run-dot.ok { background: var(--supportive); }
.run-dot.err { background: var(--cautionary); }
.run-name { font-family: var(--mono); font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-meta { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }

/* data-quality caveats */
.caveat-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.caveat-sev {
  font-family: var(--label); font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; height: fit-content; color: #fff; white-space: nowrap;
}
.sev-error .caveat-sev { background: var(--cautionary); }
.sev-warning .caveat-sev { background: var(--amber); }
.sev-info .caveat-sev { background: var(--water); }
.caveat-title { font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.caveat-detail { font-size: 12px; line-height: 1.4; }

/* ─────────────────────────── About ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 36px 0 28px;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.about-num {
  font-family: var(--mono); font-size: 12px; color: var(--terra); letter-spacing: 0.1em;
}
.about-card h3 {
  font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0;
  margin: 8px 0 8px; color: var(--nile-deep);
}
.about-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.about-card a, .about-foot a, .watch-foot a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }
.about-foot { max-width: 70ch; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

.about-section { margin-top: 52px; }
.about-h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 24px; color: var(--nile-deep);
}

/* How it works — numbered pipeline */
.about-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.flow-step {
  position: relative; padding: 22px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 14px; line-height: 1; margin-bottom: 12px;
}
.flow-step h3 {
  font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: 0;
  margin: 0 0 8px; color: var(--nile-deep);
}
.flow-step p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
/* connecting arrows between steps on wide screens */
@media (min-width: 900px) {
  .flow-step:not(:last-child)::after {
    content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
    color: var(--terra); font-size: 16px; z-index: 2;
  }
}

/* What the desk watches */
.watch-list { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.watch-row {
  display: grid; grid-template-columns: minmax(180px, 0.4fr) 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.watch-row dt {
  font-family: var(--label); font-weight: 600; font-size: 14.5px; color: var(--ink);
  letter-spacing: 0.01em;
}
.watch-row dd { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.watch-foot { margin: 16px 0 0; font-size: 14px; }
@media (max-width: 620px) {
  .watch-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Verdict legend */
.verdict-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 80ch; }
.verdict-legend li {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.5;
}
.vl-chip {
  flex: none; color: #fff; font-family: var(--label); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; min-width: 96px; text-align: center;
}

/* Closing CTA */
.about-cta { margin-top: 52px; }
.cta-btn {
  display: inline-block; font-family: var(--label); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: var(--ink); border-radius: 3px;
  padding: 14px 30px; cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.cta-btn:hover { background: var(--terra); }
.cta-btn:active { transform: translateY(1px); }
.about-cta .about-foot { margin-top: 22px; }
/* Authed → "Ask the desk"; public → "Log in" (no JS node-swap). */
.cta-public { display: none; }
body.public .cta-authed { display: none; }
body.public .cta-public { display: inline-block; }
/* RTL: the flow connector arrow points the other way. */
[dir="rtl"] .flow-step:not(:last-child)::after { content: "←"; right: auto; left: -13px; }

/* ── Hidden admin/ops dashboard (#view-ops) ───────────────────────────────
   Reuses cov-stats tiles; adds a 2-col band grid, compact tables, and
   feedback tags. Internal surface — terse, figure-dense, English-only. */
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
@media (max-width: 860px) { .ops-grid { grid-template-columns: 1fr; } }
.ops-band { background: var(--card); border: 1px solid var(--line); padding: 20px; }
.ops-band .cov-stats { margin: 0 0 14px; gap: 1px; }
.ops-band .cov-stat { padding: 14px 14px; }
.ops-band .cov-num { font-size: clamp(20px, 2.4vw, 28px); }
.ops-note { font-family: var(--label); font-size: 12px; color: var(--water); margin: 10px 0 4px; letter-spacing: 0.01em; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.ops-table th { text-align: left; font-family: var(--label); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 5px 8px 5px 0; }
.ops-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top;
  font-variant-numeric: tabular-nums; }
.ops-table td:last-child, .ops-table th:last-child { text-align: right; }
.ops-list { list-style: none; padding: 0; margin: 6px 0 0; font-size: 12.5px; }
.ops-list li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.4; }
.ops-tag { font-family: var(--label); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 1px 6px; border-radius: 3px; margin-right: 6px; background: var(--paper-2); color: var(--ink-soft); }
.ops-tag-wrong { background: rgba(158,43,37,0.12); color: var(--cautionary); }
.ops-tag-unclear { background: rgba(185,133,42,0.14); color: var(--amber); }
.ops-tag-needs_more_data { background: rgba(107,105,96,0.14); color: var(--water); }
