/* ──────────────────────────────────────────────────────────────────────────
   Elitez Merchandising — intel-desk skin
   Re-tints the editorial mode of dual-theme.css to match the public merch site:
   navy + orange + cream, Source Serif 4 + Inter + IBM Plex Mono.
   Loaded LAST in the cascade.
   ────────────────────────────────────────────────────────────────────────── */

/* Hide the theme-switch button — we've collapsed to a single skin. */
.theme-switch { display: none !important; }

/* Override editorial mode tokens to merchandising's palette. */
body.theme-editorial {
  --paper: #FAFAF8;
  --paper-2: #F4F5F2;
  --ink: #0B1E36;       /* merch text token */
  --ink-2: #4B5563;
  --ink-3: #8A93A0;
  --rule: #E5E7EB;
  --oxblood: #003A70;   /* navy — now the editorial primary */
  --gold: #F26522;      /* orange — accent */
  --primary: #003A70;
}

/* Body baseline */
body.theme-editorial {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Nav chrome — merchandising restrained register, no "Volume" feel */
body.theme-editorial .nav {
  border-top: 3px solid var(--oxblood);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 10px;
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
body.theme-editorial .brand {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.theme-editorial .brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--oxblood);
}
body.theme-editorial .nav .links {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  gap: 28px;
}
body.theme-editorial .nav .links a {
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
body.theme-editorial .nav .links a:hover {
  color: var(--oxblood);
  text-decoration: none;
}
body.theme-editorial .nav .links a.active {
  color: var(--oxblood);
  border-bottom-color: var(--gold);
}
body.theme-editorial .nav .nav-cta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 18px;
  background: transparent;
  color: var(--oxblood);
  border: 1px solid var(--oxblood);
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
body.theme-editorial .nav .nav-cta:hover {
  background: var(--oxblood);
  color: #fff;
}
body.theme-editorial .issue-strip {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
body.theme-editorial .issue-strip span:first-child { color: var(--gold); }

/* Hero typography — Source Serif 4 instead of Playfair */
body.theme-editorial .hero h1,
body.theme-editorial h1, body.theme-editorial h2, body.theme-editorial h3 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  letter-spacing: -0.01em;
}
body.theme-editorial .hero { padding: 56px 0 40px; }
body.theme-editorial .hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
}
body.theme-editorial .hero h1 em,
body.theme-editorial .hero h1 .grad {
  font-style: italic;
  font-weight: 500;
  color: var(--oxblood);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
body.theme-editorial .hero .deck,
body.theme-editorial .lede {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
}
body.theme-editorial .hero .pill,
body.theme-editorial .label,
body.theme-editorial .eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Headings inside sections */
body.theme-editorial h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}
body.theme-editorial h3 {
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Section dividers — quieter, no oxblood rails */
body.theme-editorial .section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
body.theme-editorial .section:last-of-type { border-bottom: 0; }

/* Cards & tiles — soft cream surface, navy accent */
body.theme-editorial .card,
body.theme-editorial .kpi-tile,
body.theme-editorial .top5-card,
body.theme-editorial .competitor-card,
body.theme-editorial .impl-card,
body.theme-editorial .policy-card,
body.theme-editorial .persona-card,
body.theme-editorial .tier-card,
body.theme-editorial .niche-card,
body.theme-editorial .signal-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(11,30,54,0.04);
}
body.theme-editorial .kpi-tile.tone-oxblood { border-top: 3px solid var(--oxblood); }
body.theme-editorial .kpi-tile.tone-gold { border-top: 3px solid var(--gold); }
body.theme-editorial .kpi-tile.tone-ink { border-top: 3px solid var(--ink); }
body.theme-editorial .kpi-tile-value { font-family: 'Source Serif 4', serif; color: var(--ink); }
body.theme-editorial .kpi-tile-label { font-family: 'IBM Plex Mono', monospace; color: var(--ink-3); }
body.theme-editorial .kpi-tile-sub { font-family: 'Inter', sans-serif; color: var(--ink-2); }

/* Tables — let the data breathe, no editorial rules */
body.theme-editorial table.competitor-table,
body.theme-editorial .competitor-table {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
body.theme-editorial .competitor-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
}
body.theme-editorial .competitor-table td { font-family: 'Inter', sans-serif; }
body.theme-editorial .competitor-table tr:hover td { background: var(--paper-2); }
body.theme-editorial .competitor-table a { color: var(--oxblood); }
body.theme-editorial .competitor-table a:hover { color: var(--gold); }

/* Inputs & filters */
body.theme-editorial input.search-bar,
body.theme-editorial select,
body.theme-editorial #filters select {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
}
body.theme-editorial input.search-bar:focus,
body.theme-editorial select:focus {
  border-color: var(--oxblood);
  outline: 2px solid rgba(0, 58, 112, 0.15);
}

/* Code chips inline */
body.theme-editorial code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* Buttons (generic) */
body.theme-editorial .btn,
body.theme-editorial button:not(.theme-toggle) {
  font-family: 'Inter', sans-serif;
}

/* Footer */
body.theme-editorial .footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-3);
  padding: 36px 0;
}
body.theme-editorial .footer .brand-foot {
  font-family: 'Source Serif 4', serif;
  color: var(--ink);
}
body.theme-editorial .footer .copy { color: var(--ink-3); font-size: 0.85rem; }
body.theme-editorial .footer .links a { color: var(--ink-2); }
body.theme-editorial .footer .links a:hover { color: var(--oxblood); }

/* Anchor colors */
body.theme-editorial a { color: var(--oxblood); }
body.theme-editorial a:hover { color: var(--gold); }

/* Last-edited stamp — match merchandising palette */
.last-edited-strip {
  background: rgba(255,255,255,0.92) !important;
  color: rgba(11,30,54,0.6) !important;
  border-top: 1px solid var(--rule, #E5E7EB) !important;
}
.last-edited-strip strong { color: #0B1E36 !important; }
#last-edited { color: #F26522 !important; }
#last-edited.fresh { color: #0a8a4a !important; }
#last-edited.stale { color: #c82040 !important; }
