/* Phase 2B «Equilibrium» skin for inner pages. PREVIEW ONLY.
   Overrides assets/css/style.css variables and a few hard-coded neon rules.
   Does not change wording, nav labels, counters or disclosures. */
@font-face{font-family:"P2 Display";src:url(/assets/fonts/phase2/B-display-560.woff2) format("woff2");font-weight:560;font-style:normal;font-display:swap;unicode-range:U+0020-00FF,U+2010-2027,U+2190-2193,U+2211,U+2212}
@font-face{font-family:"P2 Arabic";src:url(/assets/fonts/phase2/B-ar-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+200C-200F,U+FD3E-FD3F}
@font-face{font-family:"P2 Arabic";src:url(/assets/fonts/phase2/B-ar-700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+200C-200F,U+FD3E-FD3F}
@font-face{font-family:"P2 Mono";src:url(/assets/fonts/phase2/B-mono-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0020-00FF,U+2010-2027,U+2190-2193,U+2211,U+2212,U+0394}

:root {
  --bg: #06080f;
  --bg-2: #0c0f1a;
  --bg-3: #0b0e18;
  --panel: rgba(11, 14, 24, 0.88);
  --panel-2: rgba(12, 15, 26, 0.72);
  --stroke: rgba(170, 185, 220, 0.16);
  --stroke-2: rgba(240, 173, 85, 0.28);
  --cyan: #9fc3ff;
  --cyan-2: #c5d8ff;
  --violet: #9fc3ff;
  --magenta: #f0ad55;
  --gold: #f0ad55;
  --gold-2: #f8cf92;
  --text: #f2efe7;
  --muted: #b3b6c4;
  --pos: #8fd0b0;
  --neg: #ff8b9a;
  --skip: #f0ad55;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --mono: "P2 Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --disp: "P2 Display", ui-serif, Georgia, "Times New Roman", serif;
  --ar: "P2 Arabic", "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif;
  --warm: #f0ad55;
  --warm2: #f8cf92;
  --cool: #9fc3ff;
  --ink: #f2efe7;
  --void: #06080f;
}

html, body { background: var(--bg); }
body {
  color: var(--text);
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(26, 31, 58, 0.55), transparent 70%),
    var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--ar); }
html[lang="en"] body { font-family: var(--sans); }

a { color: var(--cool); }
a:hover { color: var(--warm2); }

h1, h2, h3, h4, .h1-bi, h1.display, .brand-mark {
  font-family: var(--disp);
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--text);
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .h1-bi,
html[lang="ar"] h1.display,
html[lang="ar"] .brand-mark {
  font-family: var(--ar);
  font-weight: 700;
  letter-spacing: 0;
}

/* Quiet the previous cyber overlays so the field reads as ink + amber. */
.fx-scanlines { opacity: 0.06; mix-blend-mode: soft-light; }
.fx-vignette {
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.38) 100%);
}

.site-header {
  background: rgba(6, 8, 15, 0.82);
  border-bottom: 1px solid var(--stroke);
}
.brand { letter-spacing: 0.22em; font-weight: 560; }
.brand-mark { font-family: var(--mono); font-weight: 400; font-size: 0.95rem; }
html[lang="ar"] .brand-mark { font-family: var(--mono); letter-spacing: 0.22em; font-weight: 400; }
.brand img { filter: drop-shadow(0 0 8px rgba(240, 173, 85, 0.28)); }
.nav a { color: var(--muted); }
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(240, 173, 85, 0.08);
}
.lang-toggle, .nav-toggle {
  border-color: var(--stroke);
  background: transparent;
  color: var(--text);
}
.nav-toggle { color: var(--text); }
.disclaimer-bar {
  background: rgba(240, 173, 85, 0.04);
  border-bottom: 1px solid var(--stroke);
  color: var(--muted);
}

/* Live ticker keeps its structure; colours follow the B palette. */
.live-ticker { border-color: var(--stroke); }
.hud-live, .live-ticker-status, [data-mkt-status] { color: var(--cool); font-family: var(--mono); }
.live-ticker-disc { color: var(--muted); }

.page-hero {
  position: relative;
  padding: 56px 0 18px;
  isolation: isolate;
}
.page-hero.wrap::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 12px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  pointer-events: none;
}
.page-hero h1,
.page-hero .h1-bi {
  font-size: clamp(1.85rem, 4.4vw, 2.75rem);
  line-height: 1.15;
  margin: 10px 0 12px;
  font-weight: 560;
  letter-spacing: -0.02em;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
  text-shadow: none;
}
html[lang="ar"] .page-hero h1,
html[lang="ar"] .page-hero .h1-bi {
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 700;
}
.kicker, .page-hero .kicker {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  color: var(--cool);
  background: transparent;
  border-color: var(--stroke);
}
html[lang="ar"] .kicker { font-family: var(--ar); letter-spacing: 0; }
.testnet { font-family: var(--mono); color: var(--warm); }
.lede { color: #d8d4c8; }
.page-hero .sub, .section .sub { color: var(--muted); }
.hero-identity { color: var(--muted); }

.btn {
  border-color: var(--stroke);
  background: rgba(12, 15, 26, 0.7);
  color: var(--text);
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--warm);
  color: var(--text);
}
.btn-primary, a.btn-primary, .btn.pri {
  background: var(--warm);
  color: #140e03;
  border-color: var(--warm);
  box-shadow: 0 10px 30px -12px var(--warm);
}
.btn-primary:hover, .btn-primary:focus-visible,
a.btn-primary:hover, .btn.pri:hover {
  background: var(--warm2);
  color: #140e03;
  border-color: var(--warm2);
}

.section h2, .doc h2, .wrap h2 {
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--text);
}
html[lang="ar"] .section h2,
html[lang="ar"] .doc h2,
html[lang="ar"] .wrap h2 { font-weight: 700; letter-spacing: 0; }

/* Cards, tables, panels */
.card, .panel, .box, .doc, .table-wrap, .stamp-note, .stamp-gap,
.realm, article.card, .show-card, .spec-card, .agent-card {
  border-color: var(--stroke);
  background: linear-gradient(180deg, rgba(14, 17, 28, 0.9), rgba(8, 10, 18, 0.9));
}
table { border-color: var(--stroke); }
th { color: var(--warm); font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em; }
td, code, pre, .mono, .hash { font-family: var(--mono); }
code, pre {
  background: rgba(9, 11, 20, 0.8);
  color: var(--ink);
  border-color: var(--stroke);
}

.site-footer, footer.site-footer {
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  background: transparent;
}
.site-footer a { color: var(--cool); }
.site-footer a:hover { color: var(--warm2); }
.site-footer strong { font-family: var(--mono); letter-spacing: 0.16em; font-weight: 400; color: var(--text); }

:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }

/* Directory / showroom / mizan bits that used neon cyan in raw rgba. */
.dir-nav-badge, .badge.live, .live {
  background: rgba(240, 173, 85, 0.12);
  color: var(--warm);
  border-color: var(--stroke-2);
}
.counters, .stat, .metric b, .num b { font-family: var(--mono); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .fx-scanlines, .pulse-dot, .radar-sweep, .hud-radar, .live-ticker-track {
    animation: none !important;
  }
  .btn, .btn:hover, .nav a { transition: none; }
}

/* Recolour the live ticker's hard-coded neon cyan so it follows the B palette. Structure and copy stay the same. */
.phase2b .live-ticker {
  border-top: 1px solid var(--stroke);
  box-shadow: none;
  background: rgba(8, 10, 18, 0.92);
}
.phase2b .live-ticker::before {
  background-image:
    repeating-linear-gradient(90deg, rgba(159, 195, 255, 0.04) 0 1px, transparent 1px 26px);
}
.phase2b .live-ticker::after {
  background: linear-gradient(90deg, transparent, rgba(159, 195, 255, 0.08) 40%, transparent);
}
.phase2b .live-ticker-inner::before,
.phase2b .live-ticker-inner::after { border-color: rgba(159, 195, 255, 0.28); }
.phase2b .hud-rail {
  border-inline-end: 1px solid var(--stroke);
  background: linear-gradient(90deg, rgba(159, 195, 255, 0.05), transparent);
}
.phase2b .hud-radar,
.phase2b .hud-radar::before,
.phase2b .hud-radar::after {
  border-color: rgba(159, 195, 255, 0.4);
  box-shadow: 0 0 10px rgba(159, 195, 255, 0.18), inset 0 0 10px rgba(159, 195, 255, 0.08);
}
.phase2b .radar-sweep {
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(159, 195, 255, 0.45) 100%);
}
.phase2b .hud-live {
  color: var(--cool);
  text-shadow: none;
}
.phase2b .hud-clock, .phase2b .hud-meta { color: var(--muted); }
.phase2b th { background: rgba(159, 195, 255, 0.04); }
.phase2b tr:hover td { background: rgba(159, 195, 255, 0.03); }
.phase2b th, .phase2b td { border-bottom-color: var(--stroke); }
