/* Alkemya Luxembourg NODE-22 — refined design system */

/* ============================================================================
   THEME LAYER (Tier 1 · light/dark mode)
   ----------------------------------------------------------------------------
   Three levels of tokens:
     1. Semantic tokens (--bg-canvas / --text-primary / …) live in
        [data-theme="dark|light"] blocks — this is what light/dark mode swaps.
     2. Legacy aliases (--void / --deep / --surface / --text / --gold …) map
        onto the semantic tokens so nothing in the 1000-line cascade breaks.
     3. State-accent tokens (--accent / --accent-rgb / --hero-tint) live in
        [data-state="X"][data-theme="Y"] blocks — same hue, contrast-tuned
        per mode. The 5 state accents keep their identity in both modes.

   LAW-1 (JS-free honesty): the [data-theme] attribute is set at first paint
   by an inline bootstrap script in <head> (see layout.tsx) that reads the
   user's stored preference OR falls back to (prefers-color-scheme: light).
   If JS is off, the :root default = dark, and the light-mode @media rule at
   the bottom of this block auto-inverts for OS light appearance. Either way,
   the crawler + no-JS visitor always sees a complete, accurate page.
   ============================================================================ */

:root {
  /* Typography */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;

  /* --- DARK MODE (default) --- Semantic tokens */
  --bg-canvas:      #0A0F1E;                    /* body background */
  --bg-recessed:    #131A2E;                    /* .bg-deep, sunken sections */
  --bg-raised:      #1A2138;                    /* .col-card, factsheet cards */
  --bg-code:        rgba(0, 0, 0, 0.35);        /* <pre><code> blocks */
  --surface-raised: rgba(255, 255, 255, 0.02);  /* very subtle raised tone */
  --surface-hint:   rgba(255, 255, 255, 0.03);  /* even more subtle wash */
  --surface-inset:  rgba(255, 255, 255, 0.015); /* empty-state cards */
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --border-dashed:  rgba(255, 255, 255, 0.15);
  --text-primary:   #ECE8DF;
  --text-secondary: #B0B5C4;
  --text-tertiary:  #7E8497;
  --success:        #6BAA7F;
  --warning:        #D9A85F;
  --danger:         #C77A5A;
  --elevation-1:    none;                       /* dark mode: no shadow, borders do the work */
  --focus-ring:     rgba(200, 169, 110, 0.35);

  /* --- Legacy aliases (do not remove; entire cascade references these) --- */
  --void:        var(--bg-canvas);
  --deep:        var(--bg-recessed);
  --surface:     var(--bg-raised);
  --line:        var(--border-subtle);
  --line-strong: var(--border-strong);
  --text:        var(--text-primary);
  --text-sub:    var(--text-secondary);
  --text-dim:    var(--text-tertiary);
  --gold:        #C8A96E;                        /* institutional default accent */
  --gold-glow:   rgba(200, 169, 110, 0.15);

  /* --- State-accent tokens (dark-mode institutional default) --- */
  --accent:      var(--gold);
  --accent-glow: var(--gold-glow);
  --accent-rgb:  200, 169, 110;
  --hero-tint:   rgba(10, 15, 30, 0.55);
}

/* --- EXPLICIT DARK (redundant with :root default but lets [data-theme="dark"]
       work for the toggle) --- */
html[data-theme="dark"] {
  --bg-canvas:      #0A0F1E;
  --bg-recessed:    #131A2E;
  --bg-raised:      #1A2138;
  --bg-code:        rgba(0, 0, 0, 0.35);
  --surface-raised: rgba(255, 255, 255, 0.02);
  --surface-hint:   rgba(255, 255, 255, 0.03);
  --surface-inset:  rgba(255, 255, 255, 0.015);
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --border-dashed:  rgba(255, 255, 255, 0.15);
  --text-primary:   #ECE8DF;
  --text-secondary: #B0B5C4;
  --text-tertiary:  #7E8497;
  --elevation-1:    none;
  --focus-ring:     rgba(200, 169, 110, 0.35);
}

/* ============================================================================
   LIGHT MODE — invert canvas + text; keep the same 5 state accents
   but crank contrast so they stay legible on cream backgrounds.
   ============================================================================ */
html[data-theme="light"] {
  --bg-canvas:      #F7F5EF;                    /* warm cream — not pure white */
  --bg-recessed:    #EFECE2;                    /* sunken sections */
  --bg-raised:      #FDFCF7;                    /* cards sit slightly above canvas */
  --bg-code:        rgba(0, 0, 0, 0.05);        /* pale code panels */
  --surface-raised: rgba(0, 0, 0, 0.025);
  --surface-hint:   rgba(0, 0, 0, 0.035);
  --surface-inset:  rgba(0, 0, 0, 0.02);
  --border-subtle:  rgba(20, 25, 40, 0.10);
  --border-strong:  rgba(20, 25, 40, 0.22);
  --border-dashed:  rgba(20, 25, 40, 0.18);
  --text-primary:   #1B2035;                    /* deep navy ink */
  --text-secondary: #4A5060;
  --text-tertiary:  #767D8E;
  --elevation-1:    0 1px 2px rgba(20, 25, 40, 0.04), 0 1px 3px rgba(20, 25, 40, 0.03);
  --focus-ring:     rgba(143, 113, 51, 0.45);

  /* Institutional-state accent — same gold family, deeper in light mode */
  --gold:        #8F7133;
  --gold-glow:   rgba(143, 113, 51, 0.12);
  --accent:      var(--gold);
  --accent-glow: var(--gold-glow);
  --accent-rgb:  143, 113, 51;
  --hero-tint:   rgba(247, 245, 239, 0.55);     /* light warm scrim over hero */
}

/* ============================================================================
   Auto-detect OS light appearance when no explicit toggle preference exists.
   Wrapped in :not([data-theme]) so an explicit user toggle wins.
   ============================================================================ */
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg-canvas:      #F7F5EF;
    --bg-recessed:    #EFECE2;
    --bg-raised:      #FDFCF7;
    --bg-code:        rgba(0, 0, 0, 0.05);
    --surface-raised: rgba(0, 0, 0, 0.025);
    --surface-hint:   rgba(0, 0, 0, 0.035);
    --surface-inset:  rgba(0, 0, 0, 0.02);
    --border-subtle:  rgba(20, 25, 40, 0.10);
    --border-strong:  rgba(20, 25, 40, 0.22);
    --border-dashed:  rgba(20, 25, 40, 0.18);
    --text-primary:   #1B2035;
    --text-secondary: #4A5060;
    --text-tertiary:  #767D8E;
    --elevation-1:    0 1px 2px rgba(20, 25, 40, 0.04), 0 1px 3px rgba(20, 25, 40, 0.03);
    --focus-ring:     rgba(143, 113, 51, 0.45);
    --gold:           #8F7133;
    --gold-glow:      rgba(143, 113, 51, 0.12);
    --accent:         var(--gold);
    --accent-glow:    var(--gold-glow);
    --accent-rgb:     143, 113, 51;
    --hero-tint:      rgba(247, 245, 239, 0.55);
  }
}

/* ============================================================================
   Per-state accent overrides — DARK MODE
   Same declarations as before the theme refactor; kept behind an explicit
   [data-theme="dark"] selector too so light-mode overrides can win by
   specificity below. The bare html[data-state="X"] rule remains as the
   dark default for JS-off dark visitors.
   ============================================================================ */
html[data-state="material"] {
  --gold:        #8FB8C4;
  --gold-glow:   rgba(143, 184, 196, 0.18);
  --accent:      #8FB8C4;
  --accent-glow: rgba(143, 184, 196, 0.18);
  --accent-rgb:  143, 184, 196;
  --hero-tint:   rgba(10, 20, 26, 0.50);
}
html[data-state="commercial"] {
  --gold:        #E8A96B;
  --gold-glow:   rgba(232, 169, 107, 0.15);
  --accent:      #E8A96B;
  --accent-glow: rgba(232, 169, 107, 0.15);
  --accent-rgb:  232, 169, 107;
  --hero-tint:   rgba(20, 15, 10, 0.50);
}
html[data-state="capital"] {
  --gold:        #7B99E8;
  --gold-glow:   rgba(123, 153, 232, 0.16);
  --accent:      #7B99E8;
  --accent-glow: rgba(123, 153, 232, 0.16);
  --accent-rgb:  123, 153, 232;
  --hero-tint:   rgba(10, 12, 24, 0.40);
}
html[data-state="evidence"] {
  --gold:        #C0C6D4;
  --gold-glow:   rgba(192, 198, 212, 0.14);
  --accent:      #C0C6D4;
  --accent-glow: rgba(192, 198, 212, 0.14);
  --accent-rgb:  192, 198, 212;
  --hero-tint:   rgba(14, 12, 10, 0.55);
}

/* ============================================================================
   Per-state accent overrides — LIGHT MODE
   Same hues, contrast-tuned for cream backgrounds. Institutional-state is
   already covered by html[data-theme="light"] above (deeper gold #8F7133).
   ============================================================================ */
html[data-theme="light"][data-state="material"] {
  --gold:        #0F6E82;
  --gold-glow:   rgba(15, 110, 130, 0.10);
  --accent:      #0F6E82;
  --accent-glow: rgba(15, 110, 130, 0.10);
  --accent-rgb:  15, 110, 130;
  --hero-tint:   rgba(240, 245, 246, 0.55);
}
html[data-theme="light"][data-state="commercial"] {
  --gold:        #B06A21;
  --gold-glow:   rgba(176, 106, 33, 0.10);
  --accent:      #B06A21;
  --accent-glow: rgba(176, 106, 33, 0.10);
  --accent-rgb:  176, 106, 33;
  --hero-tint:   rgba(250, 244, 235, 0.55);
}
html[data-theme="light"][data-state="capital"] {
  --gold:        #3B5AC9;
  --gold-glow:   rgba(59, 90, 201, 0.10);
  --accent:      #3B5AC9;
  --accent-glow: rgba(59, 90, 201, 0.10);
  --accent-rgb:  59, 90, 201;
  --hero-tint:   rgba(240, 242, 250, 0.55);
}
html[data-theme="light"][data-state="evidence"] {
  --gold:        #4A5568;
  --gold-glow:   rgba(74, 85, 104, 0.10);
  --accent:      #4A5568;
  --accent-glow: rgba(74, 85, 104, 0.10);
  --accent-rgb:  74, 85, 104;
  --hero-tint:   rgba(247, 245, 239, 0.60);
}

/* Same rules apply to no-toggle visitors on OS light appearance. */
@media (prefers-color-scheme: light) {
  html:not([data-theme])[data-state="material"] {
    --gold: #0F6E82; --gold-glow: rgba(15, 110, 130, 0.10);
    --accent: #0F6E82; --accent-glow: rgba(15, 110, 130, 0.10);
    --accent-rgb: 15, 110, 130; --hero-tint: rgba(240, 245, 246, 0.55);
  }
  html:not([data-theme])[data-state="commercial"] {
    --gold: #B06A21; --gold-glow: rgba(176, 106, 33, 0.10);
    --accent: #B06A21; --accent-glow: rgba(176, 106, 33, 0.10);
    --accent-rgb: 176, 106, 33; --hero-tint: rgba(250, 244, 235, 0.55);
  }
  html:not([data-theme])[data-state="capital"] {
    --gold: #3B5AC9; --gold-glow: rgba(59, 90, 201, 0.10);
    --accent: #3B5AC9; --accent-glow: rgba(59, 90, 201, 0.10);
    --accent-rgb: 59, 90, 201; --hero-tint: rgba(240, 242, 250, 0.55);
  }
  html:not([data-theme])[data-state="evidence"] {
    --gold: #4A5568; --gold-glow: rgba(74, 85, 104, 0.10);
    --accent: #4A5568; --accent-glow: rgba(74, 85, 104, 0.10);
    --accent-rgb: 74, 85, 104; --hero-tint: rgba(247, 245, 239, 0.60);
  }
}

html { scroll-behavior: smooth; }
html[dir="rtl"] { direction: rtl; text-align: right; }

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

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  opacity: 0;
  transition: opacity 240ms ease-out;
}
body.kqas-booted { opacity: 1; }

.skip-link {
  position: absolute; top: -60px; left: 8px;
  background: var(--gold); color: var(--void);
  padding: 0.5rem 1rem; border-radius: 2px;
  text-decoration: none; z-index: 100;
}
.skip-link:focus { top: 8px; }

/* Non-authoritative machine-translation notice (shown on every non-English page) */
.translation-notice {
  background: rgba(200, 169, 110, 0.05);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--text-sub);
}
.translation-notice-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 3rem);
  display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap;
  font-size: 0.78rem; line-height: 1.5;
}
.translation-notice-label {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.translation-notice-body { flex: 1 1 auto; }
html[dir="rtl"] .translation-notice-inner { text-align: right; }

/* Legal-review placeholder card (used everywhere a LEGAL REVIEW block would have shipped) */
.legal-review-card {
  border: 1px dashed rgba(200, 169, 110, 0.35);
  background: rgba(200, 169, 110, 0.03);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.55;
}
.legal-review-card .lr-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* Global disclosure strip (site-wide status banner from the copy pack) */
.disclosure-strip {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 0.72rem;
  line-height: 1.5;
}
.disclosure-strip-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0.55rem clamp(1rem, 3vw, 3rem);
}

/* Inline status badges (shown next to EVIDENCE REQUIRED / PENDING NODE-1 blocks) */
.inline-status {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.15em 0.55em;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(200, 169, 110, 0.35);
  color: var(--gold); border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
}
.status-inline-evidence_required { border-color: rgba(217, 168, 95, 0.5); color: #d9a85f; }
.status-inline-pending_node_1    { border-color: rgba(123, 153, 232, 0.5); color: #9BB5E8; }
.status-inline-company_reported  { border-color: var(--border-strong); color: var(--text-sub); }

/* Two-column card layout for home-page paired sections */
.two-col {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.col-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.75rem;
}
.col-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; margin: 0.4rem 0 0.75rem; letter-spacing: -0.01em; }
.col-card p { color: var(--text-sub); margin-bottom: 1.25rem; }

/* Disclosure body (bottom of pages) */
.section-disclosure {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--text-dim);
}
.disclosure-body {
  font-size: 0.78rem; line-height: 1.6;
  color: var(--text-dim);
  max-width: 78ch;
}

/* Coordinated bullets list (About §"What the platform coordinates") */
.coord-bullets {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: 0.6rem;
}
.coord-bullets li {
  padding: 0.85rem 1rem 0.85rem 2rem;
  background: var(--surface); border-left: 2px solid var(--gold);
  position: relative;
  color: var(--text-sub);
  font-size: 0.95rem; line-height: 1.5;
}
.coord-bullets li::before {
  content: '/'; font-family: var(--mono); color: var(--gold);
  position: absolute; left: 0.75rem;
}
html[dir="rtl"] .coord-bullets li {
  border-left: none; border-right: 2px solid var(--gold);
  padding: 0.85rem 2rem 0.85rem 1rem;
}
html[dir="rtl"] .coord-bullets li::before { left: auto; right: 0.75rem; }

a { color: var(--gold); text-decoration: none; transition: color 180ms; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 0.85rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
em { font-family: var(--serif); font-style: italic; color: var(--gold); }
p { margin-bottom: 1rem; color: var(--text-sub); max-width: 68ch; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--text); line-height: 1.55; max-width: 62ch; }
.lead { font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--text); line-height: 1.6; max-width: 68ch; }
strong, b { color: var(--text); font-weight: 500; }
code { font-family: var(--mono); font-size: 0.85em; background: rgba(200,169,110,0.08); padding: 0.15em 0.4em; border-radius: 2px; color: var(--gold); }
ul, ol { padding-left: 1.4rem; color: var(--text-sub); margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--gold); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 3rem); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-what { padding-top: clamp(2rem, 4vw, 3rem); }
.bg-deep { background: var(--deep); }
.bg-void { background: var(--void); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { max-width: 24ch; }
.section-sub { margin-top: 1rem; max-width: 60ch; color: var(--text-sub); }

.mono-label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); display: block; margin-bottom: 1rem;
}
.mono-inline {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-dim); letter-spacing: 0.08em;
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--text); font-family: var(--serif); font-size: 1.25rem;
}
.brand:hover { color: var(--gold); }
.brand-symbol {
  width: 32px; height: 32px; border: 1px solid var(--gold);
  color: var(--gold); border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500;
}
.brand-name { font-weight: 400; letter-spacing: -0.01em; }
.primary-nav {
  display: flex; gap: 1.2rem; justify-content: flex-end;
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  flex-wrap: wrap;
}
.primary-nav a { color: var(--text-sub); padding: 0.4rem 0; }
.primary-nav a:hover { color: var(--gold); }
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; gap: 0.75rem; text-align: center; }
  .primary-nav { justify-content: center; }
}

/* HERO */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  background: linear-gradient(180deg, var(--void) 0%, var(--deep) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 2;
}

/* Hero media layer — image + canvas motion + dark scrim.
   Sits underneath the .hero::before grid overlay and the hero-atom content.
   State determines which image URL is loaded via the inline style="--hero-img:..." set on the wrapper.
   Absent state / absent image URL: the layer stays hidden and hero uses the plain deep-navy gradient. */
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.02);           /* extra room so subtle motion has no exposed edge */
  transition: opacity 800ms ease-out;
  opacity: 1;                        /* let the image show — scrim on ::after controls legibility */
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  /* Single-purpose vertical scrim: image stays legible at top, darkens toward the bottom
     so hero text (which sits in the lower half) has solid contrast. No radial overlay — that
     was fighting the hero photo and hiding it. */
  background: linear-gradient(180deg,
    rgba(10, 15, 30, 0.15) 0%,
    var(--hero-tint) 55%,
    var(--void) 100%);
}
.hero-motion-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}
/* Motion is off by default. JS turns it on by setting data-motion="on" on <html>
   after checking prefers-reduced-motion and viewport width. */
.hero-motion-canvas { display: none; }
html[data-motion="on"] .hero-motion-canvas { display: block; }

/* Hero content sits ABOVE the media + grid overlay */
.hero > .container, .hero > .hero-atom, .page-hero > .container { position: relative; z-index: 3; }
.hero-atom {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  display: none;
}
.hero-atom[data-active="1"] { display: block; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  display: block; margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 22ch; margin-bottom: 1.5rem; color: var(--text);
}
.hero-sub {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--text-sub); max-width: 60ch;
  line-height: 1.55; margin-bottom: 2rem;
}
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* PAGE HERO */
.page-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--void), var(--deep));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { max-width: 26ch; }
.page-hero .lede { margin-top: 1.5rem; }
.hero-meta {
  display: flex; gap: 1rem; margin-top: 1.5rem;
  align-items: center; flex-wrap: wrap;
}
/* Subtle state-colored accent line at the bottom of every hero */
.hero::after, .page-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.5;
  z-index: 4;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; text-decoration: none; transition: all 200ms;
}
.btn-primary { background: var(--gold); color: var(--void); border-color: var(--gold); }
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--void); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* KPIs */
.kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.kpi {
  padding: 1.5rem; border: 1px solid var(--line);
  background: var(--surface); border-radius: 2px;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.kpi-value {
  font-family: var(--serif); font-size: 2.2rem;
  color: var(--gold); line-height: 1;
}
.kpi-label {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em;
}

/* SIGNPOST ROW — replaces KPI counters on /
   4 short content-route labels. No numerical claim. */
.signpost-row {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.signpost {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 2px;
}

/* SITE ROUTING TABLE — 5-domain routing map */
.site-routing {
  margin-top: 2.5rem;
}
.site-routing h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
}
.site-routes tbody td:first-child code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: transparent;
  padding: 0;
}
.site-routes tbody td:first-child a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
}
.site-routes tbody td:first-child a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-routes tbody td:first-child .ext-mark {
  color: var(--text-dim);
  font-size: 0.75em;
}
.site-routes-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

/* CLOSING LINE — invariant across personas */
.what-alkemya-close {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
}

/* LAYER STACK */
.layer-stack { display: flex; flex-direction: column; gap: 1rem; }
.layer {
  padding: 1.5rem 2rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 2px;
  display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 1.5rem;
  align-items: start;
}
.layer:hover { border-color: var(--line-strong); border-left-color: var(--gold); }
.layer-num {
  font-family: var(--mono); color: var(--gold);
  font-size: 0.72rem; letter-spacing: 0.16em; padding-top: 0.35rem;
  white-space: nowrap;
}
.layer-body { min-width: 0; }
.layer-body h3 { margin-bottom: 0.4rem; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.layer-body p { color: var(--text-sub); margin: 0; max-width: none; line-height: 1.6; }

/* PLATFORM DRAWER (collapsible, footer of every page) */
.platform-drawer {
  border-top: 1px solid var(--line);
  background: var(--void);
  margin-top: 3rem;
}
.platform-drawer summary {
  cursor: pointer;
  padding: 1.5rem clamp(1.25rem, 3vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  list-style: none;
  max-width: 1280px; margin: 0 auto;
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  transition: color 200ms;
}
.platform-drawer summary::-webkit-details-marker { display: none; }
.platform-drawer summary::before {
  content: '// the platform';
  font-family: var(--mono);
  color: var(--text-dim);
  margin-right: 1rem;
}
.platform-drawer summary::after {
  content: '＋';
  font-family: var(--sans);
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 200ms;
  margin-left: auto;
}
.platform-drawer[open] summary::after { content: '−'; }
.platform-drawer summary:hover { color: var(--text); }
.platform-drawer summary .drawer-label {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 400;
  flex-grow: 1;
}
.platform-drawer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem) 3rem;
}
.platform-drawer-inner .drawer-lead {
  color: var(--text-sub);
  max-width: 68ch;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* AUDIENCE GRID */
.audience-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.audience-card {
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 200ms, border-color 200ms;
}
.audience-card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--text); }
.audience-card h3 { color: var(--text); }
.audience-card p { color: var(--text-sub); flex-grow: 1; }
.card-cta { color: var(--gold); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card-link { color: var(--gold); display: block; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.75rem; }

/* METALS GRID */
.metals-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.metal-card {
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); display: flex; flex-direction: column; gap: 0.6rem;
  transition: all 200ms;
  position: relative;
}
.metal-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.metal-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.5rem;
}
.metal-symbol { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.metal-index { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
.metal-eyebrow { font-family: var(--mono); font-size: 0.68rem; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; }
.metal-card h3 { color: var(--text); }
.metal-card p { color: var(--text-sub); flex-grow: 1; }
.metal-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }

/* STAGE BADGES */
.stage-badge {
  display: inline-block; padding: 0.3rem 0.7rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: 2px;
  border: 1px solid;
}
.stage-badge.stage-candidate    { color: var(--text-dim); border-color: var(--line-strong); }
.stage-badge.stage-technical    { color: var(--warning); border-color: var(--warning); }
.stage-badge.stage-custody      { color: var(--warning); border-color: var(--warning); }
.stage-badge.stage-commercial   { color: var(--gold); border-color: var(--gold); }
.stage-badge.stage-valuation    { color: var(--gold); border-color: var(--gold); }
.stage-badge.stage-legal        { color: var(--gold); border-color: var(--gold); background: rgba(200,169,110,0.08); }
.stage-badge.stage-instrument   { color: var(--success); border-color: var(--success); }
.stage-badge.stage-market       { color: var(--success); border-color: var(--success); background: rgba(107,170,127,0.1); }
.stage-badge.stage-retired      { color: var(--text-dim); border-color: var(--line); }

/* CLAIM BADGES */
.claim-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--mono); font-size: 0.68rem;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--surface-hint);
}
.claim-id { color: var(--gold); font-weight: 500; letter-spacing: 0.06em; }
.claim-status-label { color: var(--text-sub); letter-spacing: 0.08em; }
.claim-status {
  padding: 0.2rem 0.55rem;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 2px;
  display: inline-block;
}
.claim-status.status-verified_primary   { color: var(--success); background: rgba(107,170,127,0.1); }
.claim-status.status-verified_independent { color: var(--success); background: rgba(107,170,127,0.08); }
.claim-status.status-reviewed           { color: var(--gold); background: rgba(200,169,110,0.08); }
.claim-status.status-declared           { color: var(--text-sub); background: rgba(176,181,196,0.05); }
.claim-status.status-provisional        { color: var(--warning); background: rgba(217,168,95,0.08); }
.claim-status.status-disputed           { color: var(--danger); background: rgba(199,122,90,0.1); }
.claim-status.status-superseded         { color: var(--text-dim); background: rgba(126,132,151,0.05); }
.claim-status.status-withdrawn          { color: var(--text-dim); background: rgba(126,132,151,0.05); text-decoration: line-through; }

/* AED BLOCK */
.aed-block {
  background: var(--surface); border: 1px solid var(--line);
  padding: 2rem; border-radius: 2px;
  display: grid; gap: 1.5rem;
}
.aed-label {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--gold); letter-spacing: 0.16em;
  text-transform: uppercase; display: block; margin-bottom: 0.6rem;
}
.aed-answer p { font-size: 1.1rem; color: var(--text); max-width: 70ch; }
.aed-evidence ul, .aed-disambig ul { list-style: none; padding: 0; }
.aed-evidence li, .aed-disambig li {
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  color: var(--text-sub); font-size: 0.95rem;
}
.aed-canonical a { font-family: var(--mono); font-size: 0.85rem; }
.claim-list { list-style: none; padding: 0; }
.claim-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.claim-inline { margin-top: 1rem; }

/* FEDERATION STRIP */
.fed-strip {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.fed-strip h2 { max-width: 20ch; }
.fed-manifest-preview {
  background: var(--void); border: 1px solid var(--line);
  padding: 1.5rem; border-radius: 2px; overflow-x: auto;
}
.fed-manifest-preview pre { font-family: var(--mono); font-size: 0.82rem; color: var(--text-sub); line-height: 1.6; }
.fed-manifest-preview code { background: none; padding: 0; color: var(--text-sub); font-size: inherit; }
@media (max-width: 900px) { .fed-strip { grid-template-columns: 1fr; } }

/* FACT TABLE */
.fact-table {
  width: 100%; border-collapse: collapse;
  margin-top: 1rem; font-size: 0.95rem;
}
.fact-table th, .fact-table td {
  padding: 1rem 1.25rem; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fact-table thead th {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.14em; border-bottom: 1px solid var(--gold);
}
.fact-table tbody th {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.1em; width: 30%; font-weight: 400;
}
.fact-table tbody td { color: var(--text); }
.claims-table td code { color: var(--gold); }

/* ENTITY GRID */
.entity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.entity-card {
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
}
.entity-jurisdiction { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); }
.entity-card h3 { margin: 0.5rem 0; }
.entity-card .role { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.team-card {
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
}
.team-role {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0.5rem 0 1rem 0;
}

/* ADMISSION STAGES */
.admission-stages { list-style: none; padding: 0; counter-reset: stg; display: grid; gap: 0.5rem; }
.admission-stages li {
  padding: 0.9rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.95rem;
}
.admission-stages li b { color: var(--gold); font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.08em; margin-right: 0.75rem; }

/* ARTIFACT LIST */
.artifact-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.5rem; }
.artifact-list li {
  padding: 0.85rem 1.1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.9rem; color: var(--text-sub);
}
.artifact-list li::before { content: '·'; color: var(--gold); margin-right: 0.5rem; }
.artifact-list li a { color: var(--text); }

/* ENDPOINT LIST */
.endpoint-list { list-style: none; padding: 0; }
.endpoint-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.endpoint-list a { font-family: var(--mono); font-size: 0.85rem; }

/* CONTACT GRID */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.contact-channel {
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
}
.contact-form { max-width: 640px; }
.form-row { margin-bottom: 1.5rem; }
.form-row label { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.5rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 1rem;
  background: var(--void); border: 1px solid var(--line); color: var(--text);
  border-radius: 2px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }

/* PROSE */
.prose-narrow { max-width: 760px; margin: 0 auto; }
.prose-narrow h2 { margin-top: 2rem; }

/* CONTENT BLOCKS on detail pages */
.content-block { margin-bottom: 2.5rem; max-width: 78ch; }

/* PAGER */
.pager { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }

/* FOOTER */
.site-footer {
  background: var(--void); border-top: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-tagline { font-family: var(--mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-node-badge {
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--text-dim); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.footer-address { color: var(--text-sub); font-size: 0.88rem; line-height: 1.6; }
.footer-nav-block h4 { font-family: var(--mono); font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1rem; }
.footer-nav-block ul { list-style: none; padding: 0; }
.footer-nav-block li { padding: 0.25rem 0; font-family: var(--mono); font-size: 0.78rem; }
.footer-lang-block select {
  width: 100%;
  background: var(--void); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.55rem 0.75rem; font-family: var(--mono); font-size: 0.78rem;
  cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.footer-lang-block select:hover { border-color: var(--line-strong); }
.footer-lang-block select:focus { outline: 1px solid var(--gold); outline-offset: 2px; }
.footer-lang-label { display: block; }
.footer-disclosures {
  max-width: 780px; margin: 2.5rem auto 0;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
  font-size: 0.72rem; line-height: 1.55;
  color: var(--text-dim);
  text-align: center;
}
.footer-disclosures p { margin: 0 auto; max-width: 68ch; }
.footer-signal {
  font-family: var(--mono); font-size: 0.62rem;
  margin-top: 0.75rem; color: var(--text-dim); opacity: 0.55;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: break-word;
}
/* Arabic (RTL) — keep centered, override any inherited alignment */
html[dir="rtl"] .footer-disclosures,
html[dir="rtl"] .footer-disclosures p,
html[dir="rtl"] .footer-signal { text-align: center; }
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-lang-block { grid-column: 1 / -1; max-width: 320px; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-lang-block { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Utility */
.mt-2 { margin-top: 2rem; }

/* ============================================================================
   PRESS PAGE — /press/ (Turn 19 · docs/five-sites-wireframes.md §Site 4)
   Reuses .two-col + .col-card + .inline-status where possible; adds only
   the factsheet grid + empty-state card that are specific to /press/.
   ============================================================================ */
.section-intro {
  max-width: 66ch;
  color: var(--text-sub);
  margin-bottom: 2rem;
}
.micro-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.micro-note code { font-size: inherit; }

/* --- Factsheet grid (6 evidence-locker cards) --- */
.factsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}
.factsheet-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elevation-1);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.factsheet-card:hover {
  border-color: rgba(123,153,232,0.35);
}
.factsheet-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.factsheet-category { color: var(--accent); }
.factsheet-id { opacity: 0.7; }
.factsheet-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.005em;
}
.factsheet-issuer {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin: 0;
  font-style: italic;
}
.factsheet-summary {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0;
}
.factsheet-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.72rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}
.factsheet-meta > div { display: contents; }
.factsheet-meta dt {
  font-family: var(--mono);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.62rem;
  margin: 0;
}
.factsheet-meta dd {
  margin: 0;
  color: var(--text-sub);
}
.factsheet-meta dd code {
  font-size: 0.72rem;
}
.factsheet-meta dd code.hash {
  color: var(--text-dim);
  word-break: break-all;
  letter-spacing: -0.02em;
}
.factsheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --- Empty state card (press releases: "No releases issued to date") --- */
.empty-state-card {
  background: var(--surface-inset);
  border: 1px dashed var(--border-dashed);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  text-align: center;
  max-width: 62ch;
  margin: 1rem auto 0;
}
.empty-state-card .mono-label {
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.65;
}
.empty-state-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-main);
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.empty-state-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin: 0;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

/* RTL adjustments */
html[dir="rtl"] .factsheet-card { border-left: none; border-right: 3px solid var(--accent); }

/* ============================================================================
   KQAS SCORING SECTION — /evidence/#kqas-scoring (Turn 19)
   ============================================================================ */
.kqas-formula {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.kqas-streams td { vertical-align: top; }
.kqas-streams td:nth-child(1),
.kqas-streams td:nth-child(2) { width: 1%; white-space: nowrap; }
.kqas-stream-key {
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  padding: 0.15rem 0.4rem;
  background: var(--surface-raised);
  border-radius: 3px;
  font-weight: 500;
}
.subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.005em;
  color: var(--text-main);
}
.endpoint-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.6rem 1.5rem;
}
.endpoint-list li {
  font-size: 0.88rem;
  color: var(--text-sub);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}
.endpoint-list li code { font-size: 0.8rem; }

/* ============================================================================
   THEME TOGGLE (Tier 1)
   ----------------------------------------------------------------------------
   Sits in the footer language column, adjacent to the language <select>.
   Rendered as a semantic <button> (LAW-1 safe: JS-off visitors still see it,
   it just no-ops; the @media(prefers-color-scheme) rule provides light mode
   without any JS at all).
   ============================================================================ */
.footer-theme-block {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-sub);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.theme-toggle-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.3s ease;
}
/* Swap icon per current mode. The CSS custom property --theme-icon is set by
   the bootstrap script; falls back to a moon glyph if the script never runs
   (JS off → visitor is on OS-detected mode, moon still reads sensibly). */
html[data-theme="light"] .theme-toggle-icon::before { content: "☀"; }
html[data-theme="dark"]  .theme-toggle-icon::before { content: "☾"; }
html:not([data-theme])   .theme-toggle-icon::before { content: "☾"; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .theme-toggle-icon::before { content: "☀"; }
}
.theme-toggle-label {
  font-weight: 500;
}
html[data-theme="light"] .theme-toggle-label::before { content: "Light"; }
html[data-theme="dark"]  .theme-toggle-label::before { content: "Dark"; }
html:not([data-theme])   .theme-toggle-label::before { content: "Auto"; }

/* Smooth transition between modes on toggle click — but SKIP the transition
   on initial paint so the page doesn't fade in from the wrong palette when
   the bootstrap script sets data-theme before body renders. */
html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .site-footer,
html.theme-ready .section,
html.theme-ready .col-card,
html.theme-ready .factsheet-card,
html.theme-ready .empty-state-card,
html.theme-ready .kqas-formula,
html.theme-ready .disclosure-strip,
html.theme-ready .translation-notice,
html.theme-ready .platform-drawer {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* ============================================================================
   LIGHT-MODE VISUAL POLISH
   Small overrides that only fire in light mode — most of the CSS handles both
   automatically via tokens, but a handful of dark-specific visual cues need
   inversion.
   ============================================================================ */
html[data-theme="light"] .site-header,
@media (prefers-color-scheme: light) { html:not([data-theme]) .site-header { border-bottom-color: var(--border-subtle); } }
html[data-theme="light"] .site-header { border-bottom-color: var(--border-subtle); }

/* Hero images (dark photographs) need a lighter scrim in light mode so they
   read as tinted backdrops, not blackouts. --hero-tint already handles this
   via the theme layer, but reinforce mix-blend so the hero-media canvas
   composites correctly on cream. */
html[data-theme="light"] .hero-media::before,
html[data-theme="light"] .hero-media::after {
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .hero-media::before,
  html:not([data-theme]) .hero-media::after {
    mix-blend-mode: multiply;
  }
}

/* Card shadow only fires in light mode (--elevation-1 is 'none' in dark) */
html[data-theme="light"] .col-card,
html[data-theme="light"] .factsheet-card,
html[data-theme="light"] .empty-state-card {
  box-shadow: var(--elevation-1);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .col-card,
  html:not([data-theme]) .factsheet-card,
  html:not([data-theme]) .empty-state-card {
    box-shadow: var(--elevation-1);
  }
}

/* ============================================================================
   TURN 22 · Three-page spine + NODE-6 evidence facade + adaptive opener
   ============================================================================ */

/* --- Adaptive opener alternatives (LAW-1 <details> block) --- */
.adaptive-opener {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-left: 0;
}
.opener-alternatives {
  margin: 1.25rem 0 1.75rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
}
.opener-alternatives > summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  list-style: none;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}
.opener-alternatives > summary::marker { display: none; }
.opener-alternatives > summary::-webkit-details-marker { display: none; }
.opener-alternatives > summary::before {
  content: "▸ ";
  transition: transform 0.15s ease;
  display: inline-block;
  margin-right: 0.35rem;
}
.opener-alternatives[open] > summary::before { content: "▾ "; }
.opener-alternatives > summary:hover { color: var(--text-secondary); }
.opener-alt-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.opener-alt {
  padding: 1rem 1.25rem;
  background: var(--surface-raised);
  border-radius: 4px;
  border-left: 2px solid var(--border-subtle);
}
.opener-alt .mono-label { display: block; margin-bottom: 0.4rem; }
.opener-alt p { margin: 0; color: var(--text-secondary); }

/* --- Principle grid (Who We Are + Media pages) --- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.principle-card {
  padding: 1.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: var(--elevation-1);
}
.principle-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.principle-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Entity table (Who We Are · organisations fit together) --- */
.entity-table th,
.entity-table td { text-align: left; }
.entity-table code {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --- Target-fields table (What We Do · industrial development) --- */
.target-fields-table td:nth-child(2) { width: 1%; white-space: nowrap; }

/* --- Product status pills (concept / in-development / …) --- */
.status-concept                 { border-color: rgba(126, 132, 151, 0.35); color: var(--text-tertiary); }
.status-in_development          { border-color: rgba(217, 168, 95, 0.5);   color: #D9A85F; }
.status-tested                  { border-color: rgba(143, 184, 196, 0.5);  color: #8FB8C4; }
.status-qualified               { border-color: rgba(107, 170, 127, 0.5);  color: #6BAA7F; }
.status-commercially_available  { border-color: rgba(107, 170, 127, 0.8);  color: #8ED0A0; font-weight: 500; }

/* --- Announcement header (Media page · latest-announcement) --- */
.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.announcement-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.claim-refs-table {
  margin: 1.5rem 0;
}
.claim-refs-table td { vertical-align: top; }
.canonical-link-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.canonical-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.canonical-cta { margin-top: 1rem; }

/* --- Closing prompt (three-page spine footer) --- */
.closing-prompt { text-align: center; }
.closing-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 62ch;
}

/* --- External-link mark in primary nav (ALKN Documentation → alkntoken.com) --- */
.ext-mark {
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 0.7em;
  vertical-align: baseline;
  color: var(--text-tertiary);
  opacity: 0.7;
}

/* --- NODE identity badges (Evidence page) --- */
.node-identity-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}
.node-badge {
  padding: 1.25rem 1.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.node-badge-primary {
  border-left-color: var(--accent);
}
.node-badge-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.node-badge-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.node-badge-primary .node-badge-value { color: var(--accent); }
.node-badge-scope {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
