/* ============================================================
   FX EVENT CALENDAR — terminal redesign
   Bloomberg / TradingView aesthetic: angular, dense, monospace,
   razor-thin 1px borders, near-zero radius. Amber on dark.
   ============================================================ */

:root {
  --bg: #0B0F17;
  --bg-2: #070A11;
  --card: #11161F;
  --card-2: #161C26;
  --line: #1F2733;
  --line-strong: #2C3644;
  --accent: #F59E0B;
  --accent-2: #FBBF24;
  --accent-soft: rgba(245,158,11,0.09);
  --accent-border: rgba(245,158,11,0.40);
  --high: #EF4444;
  --high-soft: rgba(239,68,68,0.10);
  --med: #F59E0B;
  --med-soft: rgba(245,158,11,0.10);
  --low: #5B6675;
  --low-soft: rgba(91,102,117,0.14);
  --pos: #22C55E;
  --text: #F1F5F9;
  --text-2: #8B97A6;
  --text-3: #5B6675;
  --row-tint: rgba(255,255,255,0.014);
  --hover: rgba(255,255,255,0.03);
  --row-sep: rgba(255,255,255,0.05);
  --nav-bg: rgba(11,15,23,0.92);
  --nav-shadow: none;
  --card-grad: #11161F;
  --shadow: none;
  --band: #0A0D14;
  --r: 4px;            /* the ONE allowed radius, used sparingly */
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F4F6F8;
  --card: #FFFFFF;
  --card-2: #F4F6F8;
  --line: #DCE1E8;
  --line-strong: #C2CAD4;
  --accent: #B45309;
  --accent-2: #92400E;
  --accent-soft: rgba(180,83,9,0.08);
  --accent-border: rgba(180,83,9,0.32);
  --high: #DC2626;
  --high-soft: rgba(220,38,38,0.08);
  --med: #B45309;
  --med-soft: rgba(180,83,9,0.10);
  --low: #94A3B8;
  --low-soft: rgba(148,163,184,0.18);
  --text: #0B0F17;
  --text-2: #475569;
  --text-3: #8A95A3;
  --row-tint: rgba(11,15,23,0.018);
  --hover: rgba(11,15,23,0.04);
  --row-sep: rgba(11,15,23,0.07);
  --nav-bg: rgba(255,255,255,0.92);
  --nav-shadow: 0 1px 0 rgba(11,15,23,0.06);
  --card-grad: #FFFFFF;
  --shadow: none;
  --band: #0B0F17;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* surfaces that ease between themes */
.nav, .card, .countdown, .theme-btn, .filter-btn, .ev-table, .stream,
.sidebar-box, .control, .form-field input, .form-field textarea, .stat { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }

/* ============ NAV (48px, tight) ============ */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: var(--nav-shadow);
}
.nav-inner { display: flex; align-items: center; gap: 0; height: 48px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; letter-spacing: 0.01em; white-space: nowrap; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); height: 100%; }
.brand-mark { width: 22px; height: 22px; border-radius: 2px; flex: 0 0 auto; background: var(--accent); display: grid; place-items: center; color: #14100a; }
.brand-mark svg { width: 13px; height: 13px; }
.brand .cal { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 0; height: 100%; }
.nav-links a { color: var(--text-2); font-size: 12.5px; font-weight: 500; padding: 0 14px; height: 100%; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: color .12s, background .12s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 100%; }
.theme-btn { width: 30px; height: 30px; border-radius: 2px; border: 1px solid var(--line-strong); background: var(--card); display: grid; place-items: center; color: var(--text-2); flex: 0 0 auto; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent-border); }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .i-sun, .theme-btn .i-moon { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="light"] .theme-btn .i-moon { display: block; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #14100a;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.01em; padding: 7px 14px; border-radius: 2px; border: 0;
  white-space: nowrap; transition: filter .12s;
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-size: 12.5px;
  padding: 8px 14px; border-radius: 2px; border: 1px solid var(--accent-border); background: transparent; transition: background .12s, border-color .12s;
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.nav-burger { display: none; width: 32px; height: 32px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); place-items: center; }

/* ============ EYEBROW (rectangular tag) ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--line); background: var(--card); padding: 5px 10px; border-radius: 0;
}
.eyebrow .blink { width: 7px; height: 7px; border-radius: 0; background: var(--high); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ============ HERO / COUNTDOWN (alert panel) ============ */
.hero { padding: 22px 0 8px; position: relative; }
.hero-inner { position: relative; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-top .tz { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.hero-top .tz b { color: var(--text-2); font-weight: 600; }

.countdown {
  background: var(--card); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: 0; overflow: hidden; position: relative;
}
.cd-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.cd-main { padding: 20px 22px; }
.cd-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--high); margin-bottom: 12px; }
.cd-kicker .impact-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--high); }
.cd-event { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.cd-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; color: var(--text-2); font-family: var(--mono); font-size: 12.5px; }
.cd-meta .flag { font-weight: 700; color: var(--accent); }
.cd-pairs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.cd-pairs .pp { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line-strong); background: var(--bg-2); padding: 3px 8px; border-radius: 0; }

.cd-timer { padding: 20px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.cd-timer .tl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.cd-clock { display: flex; gap: 8px; align-items: stretch; }
.cd-unit { flex: 1; text-align: center; border: 1px solid var(--line); background: var(--bg-2); padding: 10px 4px 8px; }
.cd-unit .n { font-family: var(--mono); font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); line-height: 1; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.cd-unit .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.cd-sep { display: none; }
.cd-at { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.cd-at b { color: var(--accent); }

/* mini event stream — flat terminal strip, not cards */
.stream { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 0; }
.stream-item { border-right: 1px solid var(--line); padding: 11px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--card); transition: background .12s; }
.stream-item:last-child { border-right: 0; }
.stream-item:hover { background: var(--hover); }
.stream-item .when { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; letter-spacing: 0.04em; }
.stream-item .name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.stream-item .cur { font-family: var(--mono); font-size: 11px; color: var(--text-2); }

/* ============ CTA STRIP ============ */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 0;
  padding: 11px 16px; margin: 18px 0 6px;
}
.cta-strip p { font-size: 13px; color: var(--text); font-weight: 500; }
.cta-strip p b { color: var(--accent); }

/* ============ CALENDAR LAYOUT ============ */
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; font-family: var(--mono); }
.section-head .sub { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }

.filters { display: inline-flex; gap: 0; align-items: stretch; border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters + .filters { margin-top: -1px; }
.filters .flabel { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 12px; align-self: stretch; display: inline-flex; align-items: center; background: var(--bg-2); border-right: 1px solid var(--line); white-space: nowrap; }
.filter-btn { border: 0; border-right: 1px solid var(--line); background: var(--card); color: var(--text-2); font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 8px 13px; border-radius: 0; transition: all .12s; white-space: nowrap; }
.filter-btn:last-child { border-right: 0; }
.filter-btn:hover { color: var(--text); background: var(--card-2); }
.filter-btn.on { color: var(--accent); background: var(--accent-soft); }
.filter-btn .swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* calendar table — dense terminal grid */
.ev-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-strong); border-radius: 0; }
.ev-table thead th { position: sticky; top: 48px; z-index: 10; background: var(--bg-2); text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding: 9px 14px; border-bottom: 1px solid var(--line-strong); }
.ev-table tbody td { padding: 8px 14px; font-size: 13px; border-bottom: 1px solid var(--row-sep); vertical-align: middle; }
.ev-table tbody tr:last-child td { border-bottom: 0; }
.ev-table tbody tr { transition: background .1s; }
.ev-table tbody tr:nth-child(even of :not(.day-row)) { background: var(--row-tint); }
.ev-table tbody tr:hover { background: var(--hover); }
.ev-table tbody tr.high td:first-child { box-shadow: inset 3px 0 0 var(--high); }
.ev-table tbody tr.past { opacity: 0.5; }

.day-row td { background: var(--bg-2) !important; font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); padding: 6px 14px !important; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line) !important; }
.ev-time { font-family: var(--mono); font-weight: 600; color: var(--text); white-space: nowrap; font-size: 12.5px; }
.ev-time .utc { display: block; font-size: 10px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.ev-flag { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--text); }
.ev-name { font-weight: 600; font-size: 13px; }
.ev-name .desc { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); font-weight: 400; margin-top: 1px; letter-spacing: 0.02em; }
.ev-num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-size: 12.5px; }
.ev-actual { font-weight: 700; }
.ev-actual.beat { color: var(--pos); }
.ev-actual.miss { color: var(--high); }
.ev-actual.pending { color: var(--text-3); }

/* impact = colored circle dots */
.impact-dots { display: inline-flex; gap: 4px; align-items: center; }
.idot { width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1px solid var(--line-strong); }
.idot.on.high { background: var(--high); border-color: var(--high); }
.idot.on.med { background: var(--med); border-color: var(--med); }
.idot.on.low { background: var(--low); border-color: var(--low); }
/* keep .pill defined for any legacy use, but restyled flat */
.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 0; border: 1px solid; white-space: nowrap; }
.pill.high { color: var(--high); border-color: var(--high); }
.pill.med { color: var(--med); border-color: var(--accent-border); }
.pill.low { color: var(--low); border-color: var(--line-strong); }
.pill .pd { display: none; }

/* add-to-calendar micro action */
.gcal { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .12s; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.ev-table tbody tr:hover .gcal { opacity: 1; }
.gcal svg { width: 12px; height: 12px; }
.ev-actions { width: 1%; white-space: nowrap; text-align: right; }

/* ============ MOBILE CARD LIST (sharpened) ============ */
.ev-cards { display: none; flex-direction: column; gap: 0; border: 1px solid var(--line-strong); }
.ev-card { background: var(--card); border-bottom: 1px solid var(--line); border-radius: 0; padding: 13px 14px; position: relative; }
.ev-card:last-child { border-bottom: 0; }
.ev-card.high { box-shadow: inset 3px 0 0 var(--high); }
.ev-card.past { opacity: 0.55; }
.ev-card .ec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ev-card .ec-time { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.ev-card .ec-time .utc { color: var(--text-3); font-weight: 400; font-size: 10px; margin-left: 6px; }
.ev-card .ec-name { font-size: 14px; font-weight: 600; }
.ev-card .ec-flag { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ev-card .ec-data { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-card .ec-data > div { padding-right: 10px; }
.ev-card .ec-data .k { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.ev-card .ec-data .v { font-family: var(--mono); font-size: 13px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.day-divider { font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); padding: 8px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 60px; }
.sidebar-box { background: var(--card); border: 1px solid var(--line-strong); border-radius: 0; padding: 0; }
.sidebar-box h3 { font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); padding: 9px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.sb-event { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sb-event:last-child { border-bottom: 0; }
.sb-event .bar { width: 3px; border-radius: 0; flex: 0 0 auto; }
.sb-event .bar.high { background: var(--high); } .sb-event .bar.med { background: var(--med); } .sb-event .bar.low { background: var(--low); }
.sb-event .se-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.sb-event .se-meta { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.02em; }

/* banner (FxPro) */
.banner-box { border: 1px solid var(--line-strong); border-radius: 0; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--card); }
.banner-box .ad-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); align-self: flex-start; }
.banner-img { display: block; max-width: 100%; border-radius: 0; }
.banner-fallback { width: 300px; max-width: 100%; height: 250px; border-radius: 0; background: var(--bg-2); border: 1px solid var(--accent-border); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.banner-fallback.show { display: flex; }
.banner-fallback .bf-logo { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; color: var(--accent); }
.banner-fallback .bf-sub { font-size: 12.5px; color: var(--text-2); }
.banner-fallback .bf-cta { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #14100a; background: var(--accent); padding: 7px 14px; border-radius: 2px; }

/* ============ STICKY MOBILE BANNER ============ */
.mobile-banner { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg-2); border-top: 1px solid var(--line-strong); padding: 6px 12px; align-items: center; justify-content: center; gap: 10px; }
.mobile-banner img { display: block; max-width: 100%; height: 50px; border-radius: 0; }
.mobile-banner .mb-fallback { display: none; align-items: center; gap: 10px; width: 100%; max-width: 320px; height: 50px; background: var(--card); border: 1px solid var(--accent-border); border-radius: 0; padding: 0 14px; }
.mobile-banner .mb-fallback.show { display: flex; }
.mobile-banner .mb-fallback .l { font-weight: 800; color: var(--accent); font-size: 15px; }
.mobile-banner .mb-fallback .r { margin-left: auto; font-size: 11px; font-weight: 700; color: #14100a; background: var(--accent); padding: 6px 12px; border-radius: 2px; }
.mb-close { position: absolute; top: -10px; right: 10px; width: 20px; height: 20px; border-radius: 0; background: var(--card); border: 1px solid var(--line-strong); color: var(--text-2); display: grid; place-items: center; font-size: 12px; line-height: 1; }

/* ============ GENERIC PAGE / CARD ============ */
.page { padding: 36px 0 64px; }
.page-hd { max-width: 760px; margin-bottom: 28px; }
.page-hd h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 14px; }
.page-hd .lede { color: var(--text-2); font-size: 16px; margin-top: 12px; line-height: 1.6; }
.card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; }
.prose { max-width: 760px; }
.prose h2 { font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 30px 0 10px; font-family: var(--mono); text-transform: uppercase; }
.prose h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.prose p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.prose ul { color: var(--text-2); font-size: 15px; line-height: 1.7; margin: 0 0 16px 20px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a.inline { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-border); }

/* fxpro review */
.review-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.review-card { padding: 24px; }
.review-card .rc-logo { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.review-card .rc-logo .pro { color: var(--accent); }
.rc-rating { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rc-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.rc-score { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.rc-score .out { color: var(--text-3); font-weight: 400; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 20px 0; }
.feat-list .fi { display: flex; gap: 9px; align-items: flex-start; }
.feat-list .fi .ck { color: var(--pos); flex: 0 0 auto; margin-top: 2px; }
.feat-list .fi .ft { font-size: 13.5px; }
.feat-list .fi .ft b { display: block; font-weight: 600; }
.feat-list .fi .ft span { color: var(--text-3); font-size: 12px; }

.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line-strong); }
.stat { background: var(--card); border-right: 1px solid var(--line); border-radius: 0; padding: 16px; text-align: center; }
.stat:last-child { border-right: 0; }
.stat .sv { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--accent); }
.stat .sk { font-size: 11.5px; color: var(--text-3); margin-top: 5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.kv-list { display: block; }

/* ============ BOTTOM CTA BAND (full-bleed, sharp) ============ */
.cta-band { background: var(--band); border-top: 1px solid var(--accent); margin-top: 0; }
.cta-band-inner { padding: 44px 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.cta-band .cb-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 14px; }
.cta-band .cb-logo .pro { color: var(--accent); }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.01em; color: #fff; line-height: 1.12; }
.cta-band p { color: #8B97A6; font-size: 14.5px; margin-top: 10px; max-width: 460px; }
.cta-band .cb-stats { display: flex; gap: 0; margin-top: 20px; flex-wrap: wrap; border: 1px solid #1F2733; width: fit-content; }
.cta-band .cb-stats .s { padding: 12px 20px; border-right: 1px solid #1F2733; }
.cta-band .cb-stats .s:last-child { border-right: 0; }
.cta-band .cb-stats .s .v { font-family: var(--mono); font-weight: 700; font-size: 17px; color: var(--accent); }
.cta-band .cb-stats .s .k { font-size: 11px; color: #8B97A6; margin-top: 3px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.cta-band .cb-right { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.cta-band .cb-right .big { font-size: 15px; color: #C2CAD4; }
.cta-band .btn-accent { font-size: 13.5px; padding: 12px 22px; }
.cta-band .cb-disc { font-size: 11px; color: #5B6675; line-height: 1.5; }

/* ============ FORMS ============ */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-field input, .form-field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 0; color: var(--text); font-family: var(--sans); font-size: 14px; padding: 11px 12px; outline: none; transition: border-color .12s; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-note { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line-strong); padding: 40px 0 30px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 10px; border-right: 0; padding-right: 0; margin-right: 0; height: auto; }
.footer-brand p { color: var(--text-3); font-size: 12.5px; line-height: 1.6; max-width: 280px; }
.fcol h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 11px; font-family: var(--mono); }
.fcol a { display: block; color: var(--text-2); font-size: 13px; padding: 4px 0; transition: color .12s; }
.fcol a:hover { color: var(--accent); }
.footer-disc { margin-top: 22px; }
.footer-disc p { font-size: 11.5px; color: var(--text-3); line-height: 1.6; max-width: 940px; margin-bottom: 9px; }
.footer-disc b { color: var(--text-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-bottom { margin-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 11.5px; font-family: var(--mono); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .cal-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-box { flex: 1 1 260px; }
  .review-grid { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .cd-grid { grid-template-columns: 1fr; }
  .cd-timer { border-left: 0; border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ev-table-wrap { display: none; }
  .ev-cards { display: flex; }
  .sidebar .banner-box { display: none; }
  .mobile-banner { display: flex; }
  .stream { grid-template-columns: 1fr; }
  .stream-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stream-item:last-child { border-bottom: 0; }
  body { padding-bottom: 70px; }
  .feat-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .cd-main, .cd-timer { padding: 16px 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .nav-right .btn-accent span.full { display: none; }
  .brand { padding-right: 14px; margin-right: 14px; }
}
html { overflow-y: scroll; scrollbar-gutter: stable; }
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: #080C12; }
html::-webkit-scrollbar-thumb { background: #2a3a4a; border-radius: 4px; }

/* ============ PROSE CONTENT STYLES ============ */
.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 64px;
}
.prose h1 { font-size: clamp(26px,3.5vw,40px); font-weight:700; letter-spacing:-0.02em; line-height:1.1; margin-bottom:14px; }
.prose h2 { font-size: clamp(18px,2.2vw,24px); font-weight:700; letter-spacing:-0.01em; margin:40px 0 12px; }
.prose h2:first-child { margin-top:0; }
.prose h3 { font-size:16px; font-weight:700; margin:24px 0 8px; }
.prose p { color:var(--text-2); font-size:15px; line-height:1.75; margin-bottom:14px; }
.prose p:last-child { margin-bottom:0; }
.prose strong { color:var(--text); font-weight:600; }
.prose em { font-style:italic; }
.prose a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.prose hr { border:0; border-top:1px solid var(--line); margin:28px 0; }
.prose ul { color:var(--text-2); font-size:15px; line-height:1.75; margin:0 0 16px 22px; display:flex; flex-direction:column; gap:6px; }
.prose ol { color:var(--text-2); font-size:15px; line-height:1.75; margin:0 0 16px 22px; display:flex; flex-direction:column; gap:6px; }
.prose li { }
/* Tables */
.prose-table-wrap { overflow-x:auto; margin:24px 0; }
.prose table { width:100%; border-collapse:collapse; min-width:400px; }
.prose th { text-align:left; font-family:var(--mono); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-3); padding:10px 16px; border-bottom:1px solid var(--line); white-space:nowrap; }
.prose td { padding:11px 16px; font-size:14px; border-bottom:1px solid var(--line); color:var(--text-2); vertical-align:top; line-height:1.55; }
.prose tbody tr:last-child td { border-bottom:0; }
.prose tbody tr:hover td { background:var(--hover, rgba(255,255,255,0.02)); }
/* Page hero */
.page-hero { padding:48px 0 40px; border-bottom:1px solid var(--line); margin-bottom:0; }
.page-hero h1 { font-size:clamp(28px,4vw,42px); font-weight:700; letter-spacing:-0.02em; line-height:1.1; margin-bottom:14px; }
.page-hero .lede { color:var(--text-2); font-size:16px; max-width:620px; line-height:1.6; }
/* Section eyebrow */
.eyebrow-label { font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.12em; color:var(--accent); margin-bottom:12px; }
/* Callout box */
.prose-callout { padding:16px 20px; background:var(--accent-soft); border:1px solid var(--accent-border); border-radius:6px; margin:22px 0; }
.prose-callout p { font-size:14px; color:var(--text-2); margin:0; }


/* ============ MOBILE NAV ============ */
.nav-overlay { display:none; position:fixed; inset:0; z-index:48; background:rgba(0,0,0,0.5); }
.nav-overlay.open { display:block; }
.nav-burger { display:none; width:40px; height:40px; background:transparent; border:1px solid var(--line); border-radius:7px; color:var(--text); place-items:center; flex-shrink:0; }
.flag-za { width:22px; height:15px; border-radius:2px; object-fit:cover; flex-shrink:0; margin-left:6px; }
.mb-cta-fallback { display:none; position:fixed; bottom:0; left:0; right:0; z-index:40; }
@media (max-width: 900px) {
  .nav-burger { display:grid; }
  .nav-links { display:none; position:fixed; top:0; right:0; bottom:0; width:280px; z-index:49; flex-direction:column; padding:20px; gap:4px; overflow-y:auto; background:var(--card,#fff); border-left:1px solid var(--line); transform:translateX(100%); transition:transform .25s cubic-bezier(.4,0,.2,1); }
  .nav-links.open { display:flex; transform:translateX(0); }
  .nav-right .full { display:none; }
  .nav-right .btn-accent { font-size:12px; padding:7px 12px; }
  .nav-right .nav-cta { display:none; }
}
@media (max-width: 560px) {
  .wrap { padding:0 16px; }
  body { padding-bottom:70px; }
  .mobile-banner { display:flex; }
}

/* ============ INFO SIDEBAR TOC (JS-generated, must be unscoped) ============ */
.toc-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.toc-card h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 10px; }
.toc-ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.toc-ol li { counter-increment: toc; }
.toc-ol li a { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: var(--text-2); line-height: 1.4; transition: color .15s, background .15s; text-decoration: none; }
.toc-ol li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--text-3); flex-shrink: 0; transition: color .15s; }
.toc-ol li a:hover { color: var(--text); background: var(--card-2); }
.toc-ol li a:hover::before { color: var(--accent); }
.toc-ol li a.toc-active { color: var(--accent); background: var(--accent-soft); }
.toc-ol li a.toc-active::before { color: var(--accent); }
