/* ============================================================
   deslop.media · AI Futures — FRANCHISE chrome (P3).
   Two surfaces share this file:
     1. the /aifutures/ landing (the diptych front door), and
     2. the shared MASTHEAD/cross-nav (.aff-mast) injected on BOTH
        the panel (/aifutures/ai-speedometer/) and the model
        (/aifutures/ai-forecast/) so the two read as one franchise.

   ★ ABSOLUTE asset paths only. This file is referenced from the
   landing as /aifutures/franchise.css so it can NEVER hit the
   relative-asset trailing-slash trap (the raw-text bug) regardless
   of whether the URL carries a trailing slash. Web fonts are loaded
   from the same self-hosted woff2 the panel uses, by ABSOLUTE path.

   Tokens are COPIED (not @imported) — the two instrument bundles each
   own their own token files; this front-door must stand alone. Dark-
   native, flat: no gradients, no shadow-glow, ONE easing. No-crown,
   Economist register.
   ============================================================ */

:root {
  --aff-bg: #101820;
  --aff-surface: #1a2230;
  --aff-surface-2: #151c27;
  --aff-border: #2a3240;
  --aff-border-subtle: #1e2835;
  --aff-text: #E8E6E1;
  --aff-text-2: #8A8F98;
  --aff-text-3: #828a99;
  --aff-volt: #CEFF00;
  --aff-volt-hover: #d9ff4d;
  --aff-font-editorial: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --aff-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --aff-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --aff-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Self-hosted faces, ABSOLUTE path to the panel's woff2 (same-origin). */
@font-face {
  font-family: 'Inter Tight';
  src: url('/aifutures/ai-speedometer/fonts/inter-tight-latin-var.woff2') format('woff2');
  font-weight: 500 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/aifutures/ai-speedometer/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ════════════════════════ SHARED MASTHEAD / CROSS-NAV ════════════════════════
   .aff-mast renders on the landing AND is injected at the top of both
   instrument pages (light, .fi-* isolation respected on the model side —
   it lives OUTSIDE .fp-page so it touches no instrument surface). Reads
   "deslop●media · AI Futures · Panel | Model" — the deslop●media BRAND is
   the primary mark (never replaced); "AI Futures" is the secondary franchise
   mark; Panel | Model is the cross-nav tab-bar. Not a verdict. */
.aff-mast {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: var(--aff-surface-2);
  border-bottom: 1px solid var(--aff-border);
  font-family: var(--aff-font-sans);
}
/* PRIMARY mark — the deslop●media brand lockup. Brand is ALWAYS first and is
   never replaced by the franchise name. Mirrors the .px-wm lockup the panel
   carries (deslop + volt dot + media), tuned for the mast bar. */
.aff-mast__home {
  display: inline-flex; align-items: baseline;
  text-decoration: none; white-space: nowrap;
}
.aff-mast__brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--aff-font-editorial);
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  color: var(--aff-text);
}
.aff-mast__home:hover .aff-mast__brand { color: var(--aff-text); }
.aff-mast__home:focus-visible { outline: 2px solid var(--aff-volt); outline-offset: 2px; border-radius: 3px; }
.aff-mast__brand .aff-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--aff-volt); display: inline-block;
  margin: 0 1px 1px;
}
.aff-mast__sep { color: var(--aff-text-3); font-size: 12px; }
/* SECONDARY mark — the franchise name, after the brand. Lighter than the
   brand so it reads as a section label, not a brand replacement. */
.aff-mast__franchise {
  font-family: var(--aff-font-sans);
  font-weight: 500; font-size: 13px; letter-spacing: 0.01em;
  color: var(--aff-text-2); text-decoration: none; white-space: nowrap;
  margin-right: 4px;
}
.aff-mast__franchise:hover { color: var(--aff-text); }
.aff-mast__franchise:focus-visible { outline: 2px solid var(--aff-volt); outline-offset: 2px; border-radius: 3px; }
.aff-mast__tabs { display: inline-flex; align-items: center; gap: 4px; }
.aff-mast__tab {
  font-family: var(--aff-font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--aff-text-2); text-decoration: none;
  padding: 4px 9px; border-radius: 5px;
  border: 1px solid transparent;
  transition: color .2s var(--aff-ease), border-color .2s var(--aff-ease), background .2s var(--aff-ease);
}
.aff-mast__tab:hover { color: var(--aff-text); }
.aff-mast__tab[aria-current="page"] {
  color: var(--aff-volt);
  border-color: var(--aff-border);
  background: var(--aff-surface);
}
.aff-mast__tab:focus-visible { outline: 2px solid var(--aff-volt); outline-offset: 2px; }
.aff-mast__tabsep { color: var(--aff-text-3); opacity: .5; font-size: 11px; }

/* ════════════════════════ THE LANDING (the diptych front door) ════════════════════════ */
.aff-page {
  margin: 0;
  background: var(--aff-bg);
  color: var(--aff-text);
  font-family: var(--aff-font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.aff-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.aff-hero { padding: 56px 0 30px; text-align: center; }
.aff-hero__kicker {
  font-family: var(--aff-font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aff-volt);
  margin: 0 0 14px;
}
.aff-hero__title {
  font-family: var(--aff-font-editorial);
  font-weight: 800; font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 auto 18px; max-width: 16ch;
  color: var(--aff-text);
}
/* The ONE measured-vs-modeled line, stated once. */
.aff-hero__lede {
  font-size: clamp(15px, 2.1vw, 18px); line-height: 1.55;
  color: var(--aff-text-2);
  margin: 0 auto; max-width: 56ch;
}
.aff-hero__lede b { color: var(--aff-text); font-weight: 600; }

/* The diptych — two doors. */
.aff-diptych {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  padding: 14px 0 28px;
}
@media (min-width: 720px) {
  .aff-diptych { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.aff-door {
  display: flex; flex-direction: column;
  background: var(--aff-surface);
  border: 1px solid var(--aff-border);
  border-radius: 10px;
  padding: 24px 22px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--aff-ease), transform .2s var(--aff-ease), background .2s var(--aff-ease);
}
.aff-door:hover {
  border-color: var(--aff-volt);
  background: var(--aff-surface-2);
  transform: translateY(-2px);
}
.aff-door:focus-visible { outline: 2px solid var(--aff-volt); outline-offset: 3px; }
.aff-door__tag {
  font-family: var(--aff-font-mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--aff-volt);
  margin: 0 0 12px;
}
.aff-door__kind {
  font-family: var(--aff-font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aff-text-3);
  margin: 0 0 6px;
}
.aff-door__name {
  font-family: var(--aff-font-editorial);
  font-weight: 700; font-size: 21px; line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--aff-text);
  margin: 0 0 10px;
}
/* The card dek — a descriptive subtitle under the proper name (the model
   carries one so its sentence survives now that the name is a proper mark). */
.aff-door__dek {
  font-family: var(--aff-font-editorial);
  font-weight: 500; font-size: 15px; line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--aff-text-2);
  margin: -2px 0 12px;
}
.aff-door__blurb {
  font-size: 14.5px; line-height: 1.55;
  color: var(--aff-text-2);
  margin: 0 0 18px; flex: 1 1 auto;
}
.aff-door__go {
  font-family: var(--aff-font-mono);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--aff-volt);
  margin: 0;
}
.aff-door:hover .aff-door__go { color: var(--aff-volt-hover); }

.aff-foot {
  border-top: 1px solid var(--aff-border-subtle);
  padding: 22px 0 48px;
  font-size: 13px; line-height: 1.6;
  color: var(--aff-text-3);
}
.aff-foot a { color: var(--aff-text-2); text-decoration: none; border-bottom: 1px solid transparent; }
.aff-foot a:hover { border-bottom-color: var(--aff-text-3); }

/* ════════════════════════ PANEL → MODEL GATEWAY (P3 c) ════════════════════════
   The promoted "go deeper into the model →" affordance on the panel, revealed
   only on the Model read (writeDisclosure toggles [hidden]). A clear card, volt
   accent, but light — it is the path to the deep body, not a verdict. */
.fc-gateway {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 2px;
  padding: 11px 14px;
  background: var(--aff-surface-2);
  border: 1px solid var(--aff-border);
  border-left: 2px solid var(--aff-volt);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s var(--aff-ease), background .2s var(--aff-ease);
}
.fc-gateway[hidden] { display: none; }
.fc-gateway:hover { border-color: var(--aff-volt); background: var(--aff-surface); }
.fc-gateway:focus-visible { outline: 2px solid var(--aff-volt); outline-offset: 2px; }
.fc-gateway__lbl {
  font-family: var(--aff-font-editorial);
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  color: var(--aff-volt);
}
.fc-gateway__sub {
  font-family: var(--aff-font-sans);
  font-size: 12px; color: var(--aff-text-2);
  flex: 1 1 auto; min-width: 0;
}
.fc-gateway__arr {
  font-family: var(--aff-font-mono);
  font-size: 15px; color: var(--aff-volt);
  margin-left: auto;
}

/* Forecast-page return path (the footer link row on the model page). The
   .aff-mast__tab pills are reused; this just lays them out as a centered row. */
.fp-return {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .aff-door { transition: border-color .2s var(--aff-ease); }
  .aff-door:hover { transform: none; }
}
