/* ============================================================
   NEWSORA PLUS — Public Site CSS
   Covers: home, article, articles_browse, about, contact,
           privacy_policy, terms
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --void: #080808; --void2: #0f0f0f; --void3: #141414;
  --void4: #1c1c1c; --void5: #242424; --surface: #2a2a2a; --surface2: #323232;
  --amber: #e8a020; --amber2: #f0b840; --amber3: #c87818;
  --crimson: #cc2222; --crimson2: #e03030;
  --electric: #2080e8; --electric2: #40a0ff;
  --jade: #18a858; --jade2: #28c870;
  --text: #f0ece4; --text2: #b8b0a0; --text3: #787068; --text4: #484040;
  --rule: #2a2a2a; --rule2: #1c1c1c;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --glow-amber: 0 0 40px rgba(232,160,32,0.15);
  --glow-crimson: 0 0 40px rgba(204,34,34,0.2);
  --max-w: 1440px;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --void: #f5f5f0; --void2: #ffffff; --void3: #f0ede6;
  --void4: #e8e4dc; --void5: #ddd9d0; --surface: #d4d0c8; --surface2: #c8c4bc;
  --text: #1a1714; --text2: #3a3530; --text3: #6a6460; --text4: #a09890;
  --rule: #ddd9d0; --rule2: #e8e4dc;
  --amber: #b87010; --amber2: #cc8818; --amber3: #e09828;
  --crimson: #bb1c1c; --crimson2: #cc2828;
  --electric: #1870cc; --electric2: #2888e8;
  --jade: #128840; --jade2: #189850;
  --glow-amber: 0 0 40px rgba(184,112,16,0.12);
  --glow-crimson: 0 0 40px rgba(187,28,28,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  transition: background .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .4;
}
[data-theme="light"] body::before { opacity: .15; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ── READ PROGRESS ── */
#read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--amber));
  transform-origin: left; transform: scaleX(0);
  transition: transform .1s; z-index: 300;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: linear-gradient(90deg, #990000, var(--crimson), #990000);
  padding: 8px 0; overflow: hidden; position: relative;
}
[data-theme="light"] .ticker-wrap { background: linear-gradient(90deg, #8a0000, var(--crimson), #8a0000); }
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--void); padding: 0 16px;
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 3px;
  color: var(--crimson2); z-index: 2; white-space: nowrap;
  border-right: 1px solid var(--crimson);
}
[data-theme="light"] .ticker-label { background: var(--void2); }
.live-dot {
  width: 6px; height: 6px; background: var(--crimson2); border-radius: 50%;
  display: inline-block; margin-right: 8px;
  animation: pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--crimson2);
}
.ticker-track {
  display: flex; animation: tickerScroll 40s linear infinite;
  white-space: nowrap; padding-left: 160px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px; font-weight: 500; padding: 0 28px;
  color: rgba(255,255,255,.9); text-decoration: none;
}
.ticker-item:hover { color: #fff; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.topbar-utility {
  background: var(--void2); border-bottom: 1px solid var(--rule); padding: 8px 0;
}
.topbar-utility-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar-date { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links a {
  font-family: var(--mono); font-size: 10px; color: var(--text3);
  text-decoration: none; letter-spacing: .8px; transition: color .15s;
}
.topbar-links a:hover, .topbar-links a.active { color: var(--amber); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  background: var(--void); border-bottom: 1px solid var(--rule);
  padding: 24px 0 0; position: relative;
}
.masthead::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--amber), var(--electric), var(--jade), var(--amber), var(--crimson));
  background-size: 200% 100%; animation: gradientShift 8s linear infinite;
}
[data-theme="light"] .masthead::after { opacity: .7; }
.masthead-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.masthead-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 20px; gap: 20px;
}
.masthead-left { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.masthead-edition {
  font-family: var(--mono); font-size: 9px; color: var(--amber);
  letter-spacing: 3px; text-transform: uppercase;
  background: rgba(232,160,32,.1); border: 1px solid rgba(232,160,32,.2);
  padding: 3px 10px; display: inline-block;
}
.masthead-tagline { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; }
.masthead-center { text-align: center; flex: 1; padding: 0 30px; min-width: 0; }
.masthead-title {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 108px);
  font-weight: 700; letter-spacing: -3px; line-height: .88;
  color: var(--text); text-transform: uppercase;
  text-decoration: none; display: block;
}
.masthead-title span { color: var(--amber); }
.masthead-subtitle {
  font-family: var(--mono); font-size: 10px; letter-spacing: 4px;
  color: var(--text3); text-transform: uppercase; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.masthead-subtitle::before, .masthead-subtitle::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule2), var(--surface));
}
.masthead-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.btn-subscribe {
  background: var(--amber); color: var(--void); border: none; padding: 10px 20px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; cursor: pointer; text-decoration: none;
  text-transform: uppercase; transition: all .2s; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
[data-theme="light"] .btn-subscribe { background: var(--amber); color: #fff; }
.btn-subscribe:hover { background: var(--amber2); transform: translateY(-1px); box-shadow: var(--glow-amber); }
.btn-newsroom {
  font-family: var(--mono); font-size: 10px; color: var(--text3);
  text-decoration: none; letter-spacing: 1px; border: 1px solid var(--rule);
  padding: 6px 14px; transition: all .2s; white-space: nowrap;
}
.btn-newsroom:hover { border-color: var(--amber); color: var(--amber); }

/* ============================================================
   MAIN NAV — DESKTOP
   ============================================================ */
.main-nav {
  background: var(--void2); display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule);
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); text-decoration: none;
  padding: 13px 18px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.nav-link:hover { color: var(--text); border-bottom-color: var(--surface2); }
.nav-link.active { color: var(--amber); border-bottom-color: var(--amber); }
.nav-link.breaking { color: var(--crimson2); }
.nav-link.breaking::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  background: var(--crimson2); border-radius: 50%; margin-right: 6px;
  animation: pulse 1.5s infinite;
}

/* ── MOBILE NAV TOGGLE ── */
.mobile-nav-toggle {
  display: none;
  background: var(--void2); border-bottom: 1px solid var(--rule);
  padding: 0; width: 100%;
}
.mobile-nav-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; width: 100%; background: none; border: none;
  color: var(--text); font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 1px; text-transform: uppercase;
}
.mobile-nav-btn .hamburger-icon { font-size: 20px; }
.mobile-nav-drawer {
  display: none; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer .nav-link {
  padding: 14px 20px; border-bottom: 1px solid var(--rule2);
  border-left: none; border-right: none; border-top: none;
  font-size: 13px;
}
.mobile-nav-drawer .nav-link:last-child { border-bottom: none; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar-wrap {
  background: var(--void3); border-bottom: 1px solid var(--rule); padding: 10px 0;
}
.search-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center;
}
.search-label {
  font-family: var(--mono); font-size: 11px; color: var(--text4);
  padding-right: 16px; border-right: 1px solid var(--rule);
  white-space: nowrap;
}
.search-input {
  flex: 1; background: transparent; border: none;
  padding: 8px 20px; font-family: var(--sans); font-size: 13px;
  color: var(--text); outline: none;
}
.search-input::placeholder { color: var(--text4); }
.search-btn {
  background: var(--amber); color: var(--void); border: none;
  padding: 10px 22px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 2px; cursor: pointer; text-transform: uppercase;
  font-weight: 700; transition: background .15s; white-space: nowrap;
}
.search-btn:hover { background: var(--amber2); }

/* ============================================================
   TOPBAR (article page style)
   ============================================================ */
.site-topbar {
  background: var(--void2); border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 200;
}
.site-topbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--amber), var(--electric));
}
.site-topbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 52px; gap: 0;
}
.topbar-logo {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: -1px; text-transform: uppercase; color: var(--text);
  text-decoration: none; padding-right: 24px;
  border-right: 1px solid var(--rule); margin-right: 0; white-space: nowrap;
}
.topbar-logo span { color: var(--amber); }
.topbar-nav {
  display: flex; flex: 1; overflow-x: auto; scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-nav a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text3); text-decoration: none;
  padding: 0 16px; height: 52px; display: flex; align-items: center;
  white-space: nowrap; border-bottom: 2px solid transparent; transition: all .15s;
}
.topbar-nav a:hover { color: var(--text); border-bottom-color: var(--amber); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-search-input {
  background: var(--void3); border: 1px solid var(--rule);
  color: var(--text); padding: 7px 12px; font-family: var(--sans); font-size: 12px;
  outline: none; width: 180px; transition: border-color .15s;
}
.topbar-search-input:focus { border-color: var(--amber); }
.topbar-search-input::placeholder { color: var(--text4); }

/* ── TOPBAR MOBILE HAMBURGER ── */
.topbar-hamburger {
  display: none;
  background: none; border: 1px solid var(--rule);
  color: var(--text); width: 38px; height: 38px;
  align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  margin-left: 8px;
}
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.85); z-index: 500;
  flex-direction: column;
}
.mobile-menu-overlay.open { display: flex; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--rule);
  background: var(--void2);
}
.mobile-menu-close {
  background: none; border: none; color: var(--text);
  font-size: 24px; cursor: pointer;
}
.mobile-menu-links {
  flex: 1; overflow-y: auto; background: var(--void2);
}
.mobile-menu-links a {
  display: flex; align-items: center; padding: 16px 24px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text2); text-decoration: none;
  border-bottom: 1px solid var(--rule); transition: all .15s;
}
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: var(--amber); padding-left: 32px; }
.mobile-menu-links a.breaking { color: var(--crimson2); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--void2); border-bottom: 1px solid var(--rule); padding: 10px 0;
}
.breadcrumb-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--text3);
}
.breadcrumb a { color: var(--text3); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { color: var(--text4); }

/* ============================================================
   HERO SECTION (home)
   ============================================================ */
.hero-section { padding: 36px 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 360px 280px;
  gap: 0; border: 1px solid var(--rule);
}
.hero-lead {
  padding: 28px; border-right: 1px solid var(--rule);
  background: var(--void2); position: relative;
}
.hero-lead::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--crimson);
}
.hero-lead-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--crimson2);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.kicker-line { flex: 0 0 24px; height: 1px; background: var(--crimson2); }
.hero-lead-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 52px);
  font-weight: 600; line-height: 1.06;
  color: var(--text); margin-bottom: 16px; letter-spacing: -.5px;
}
.hero-lead-title a { color: inherit; text-decoration: none; }
.hero-lead-title a:hover { color: var(--amber); }
.hero-lead-deck {
  font-size: 14px; line-height: 1.7; color: var(--text2);
  margin-bottom: 16px; padding: 14px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.hero-byline {
  font-family: var(--mono); font-size: 10px; color: var(--text3);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero-byline strong { color: var(--text2); }
.hero-secondary { border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.story-card-sm { padding: 18px 20px; border-bottom: 1px solid var(--rule); transition: background .15s; }
.story-card-sm:hover { background: var(--void3); }
.story-card-sm:last-child { border-bottom: none; }
.story-kicker {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.story-kicker::before { content: '◆'; font-size: 6px; }
.story-kicker.tech { color: var(--electric2); }
.story-kicker.crypto { color: var(--amber); }
.story-kicker.sports { color: #f07830; }
.story-kicker.nigeria { color: var(--jade2); }
.story-kicker.world { color: var(--text3); }
.story-kicker.breaking { color: var(--crimson2); }
.story-title-sm {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  line-height: 1.25; color: var(--text); margin-bottom: 6px;
}
.story-title-sm a { color: inherit; text-decoration: none; }
.story-title-sm a:hover { color: var(--amber); }
.story-deck-sm { font-size: 12px; color: var(--text2); line-height: 1.55; }
.story-meta { font-family: var(--mono); font-size: 9px; color: var(--text3); margin-top: 8px; }
.hero-sidebar { background: var(--void3); }
.sidebar-block { padding: 18px; border-bottom: 1px solid var(--rule); }
.sidebar-block:last-child { border-bottom: none; }
.sidebar-heading {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(232,160,32,.2);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-heading::before { content: '▸'; font-size: 8px; }

/* ============================================================
   BRAND BAND
   ============================================================ */
.brand-band { background: var(--void2); border: 1px solid var(--rule); border-top: none; }
.brand-band-inner {
  display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
}
.brand-band-inner::-webkit-scrollbar { display: none; }
.brand-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-right: 1px solid var(--rule);
  text-decoration: none; transition: background .15s;
  flex-shrink: 0; flex: 1;
}
.brand-pill:hover { background: var(--void3); }
.brand-pill:last-child { border-right: none; }
.brand-pill .emoji { font-size: 18px; }
.brand-pill .b-name { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--text); }
.brand-pill .b-tagline { font-family: var(--mono); font-size: 9px; color: var(--text3); margin-top: 1px; }
.brand-pill .b-arrow { margin-left: auto; font-size: 10px; color: var(--text4); transition: color .15s; }
.brand-pill:hover .b-arrow { color: var(--amber); }

/* ============================================================
   SECTION HEADERS & ARTICLE GRIDS
   ============================================================ */
.section-header {
  display: flex; align-items: center;
  margin: 36px 0 20px;
  border-top: 1px solid var(--rule); padding-top: 18px;
}
.section-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 7px 20px; white-space: nowrap;
  background: var(--amber); color: var(--void);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 0 100%);
  padding-right: 26px;
}
.section-label.red { background: var(--crimson); color: #fff; }
.section-label.blue { background: var(--electric); color: #fff; }
.section-label.green { background: var(--jade); color: #fff; }
.section-rule { flex: 1; height: 1px; background: var(--rule); }
.section-more {
  font-family: var(--mono); font-size: 10px; color: var(--text3);
  text-decoration: none; padding: 0 0 0 18px; letter-spacing: 1px;
  white-space: nowrap; transition: color .15s;
}
.section-more:hover { color: var(--amber); }

.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--rule); margin-bottom: 36px;
}
.articles-grid.four-col { grid-template-columns: repeat(4, 1fr); }
.article-card {
  display: flex; flex-direction: column;
  padding: 20px; border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--void2); transition: background .15s; position: relative;
}
.article-card:hover { background: var(--void3); }
.article-card:nth-child(3n) { border-right: none; }
.articles-grid.four-col .article-card:nth-child(3n) { border-right: 1px solid var(--rule); }
.articles-grid.four-col .article-card:nth-child(4n) { border-right: none; }
.article-card-kicker {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.article-card-kicker.tech { color: var(--electric2); }
.article-card-kicker.crypto { color: var(--amber); }
.article-card-kicker.sports { color: #f07830; }
.article-card-kicker.nigeria { color: var(--jade2); }
.article-card-kicker.world { color: var(--text3); }
.article-card-title {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  line-height: 1.22; color: var(--text); margin-bottom: 10px;
}
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--amber); }
.article-card-deck { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; flex: 1; }
.article-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9px; color: var(--text3);
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule2);
  flex-wrap: wrap;
}
.article-card-meta .views { margin-left: auto; }
.breaking-label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--crimson); color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px; margin-bottom: 10px;
}

/* ============================================================
   ARTICLE LIST (browse page)
   ============================================================ */
.page-header {
  background: var(--void2); border-bottom: 1px solid var(--rule);
  padding: 28px 0 0; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--crimson), var(--electric), var(--jade));
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.page-header-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.page-header h1 {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 68px);
  font-weight: 700; letter-spacing: -2px; color: var(--text); line-height: .95;
}
.page-header h1 span { color: var(--amber); }
.page-header p { font-size: 13px; color: var(--text3); font-family: var(--mono); letter-spacing: .5px; }
.page-header-stats { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.header-stat { font-family: var(--mono); font-size: 10px; color: var(--text3); }
.header-stat strong { color: var(--amber); }
.filter-bar {
  display: flex; align-items: center; overflow-x: auto;
  scrollbar-width: none; margin: 0 -32px; padding: 0 32px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
  padding: 13px 18px; white-space: nowrap;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.filter-btn:hover { color: var(--text); border-bottom-color: var(--void5); }
.filter-btn.active { color: var(--amber); border-bottom-color: var(--amber); }

.browse-layout {
  max-width: var(--max-w); margin: 0 auto; padding: 28px 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 44px;
}
.article-list { display: flex; flex-direction: column; }
.article-list-item {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule);
  position: relative;
}
.article-list-item::before {
  content: ''; position: absolute; left: -32px; top: 0; bottom: 0;
  width: 3px; background: transparent; transition: background .15s;
}
.article-list-item:hover::before { background: var(--amber); }
.ali-rank { display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.rank-num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--void5); line-height: 1; }
.ali-content { min-width: 0; }
.ali-divider { width: 24px; height: 1px; background: var(--amber); margin: 4px 0 10px; }
.ali-kicker {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ali-brand { color: var(--text2); font-weight: 700; }
.ali-cat { color: var(--text3); }
.ali-breaking { background: var(--crimson); color: #fff; padding: 2px 8px; font-size: 8px; letter-spacing: 1px; }
.ali-featured { background: var(--amber); color: var(--void); padding: 2px 8px; font-size: 8px; letter-spacing: 1px; }
.ali-title {
  font-family: var(--serif); font-size: clamp(16px, 2vw, 22px);
  font-weight: 600; line-height: 1.2; color: var(--text); margin-bottom: 8px;
}
.ali-title a { color: inherit; text-decoration: none; }
.ali-title a:hover { color: var(--amber); }
.ali-deck { font-size: 13px; color: var(--text3); line-height: 1.6; margin-bottom: 10px; }
.ali-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 9px; color: var(--text4); flex-wrap: wrap;
}
.ali-meta .views { margin-left: auto; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 36px 32px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 52px; align-items: start;
}
.article-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 12px; cursor: pointer;
  text-decoration: none; transition: all .15s;
}
.tag-brand { border: 1px solid var(--rule); color: var(--text3); background: transparent; }
.tag-brand:hover { border-color: var(--amber); color: var(--amber); }
.tag-cat { border: 1px solid var(--void5); color: var(--text4); }
.tag-breaking { background: var(--crimson); border: 1px solid var(--crimson); color: #fff; }
.tag-featured { background: var(--amber); border: 1px solid var(--amber); color: var(--void); }
.article-headline {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 56px);
  font-weight: 600; line-height: 1.05; letter-spacing: -1px;
  color: var(--text); margin-bottom: 18px;
}
.article-deck {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--text2); line-height: 1.6; margin-bottom: 22px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.article-deck::before { content: ''; display: block; width: 36px; height: 2px; background: var(--amber); margin-bottom: 14px; }
.article-byline-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--rule); flex-wrap: wrap; gap: 14px;
}
.byline-left { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 38px; height: 38px; background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  color: var(--void); font-weight: 800; font-size: 14px;
  font-family: var(--serif);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.byline-name { font-size: 13px; font-weight: 600; color: var(--text); }
.byline-meta { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-top: 2px; }
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: .5px;
  padding: 7px 12px; border: 1px solid var(--rule);
  background: transparent; color: var(--text3); cursor: pointer;
  transition: all .15s; text-transform: uppercase;
}
.share-btn:hover { background: var(--void3); border-color: var(--amber); color: var(--amber); }
.share-btn.copied { background: var(--jade); border-color: var(--jade); color: #fff; }
.article-stats-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 0; margin-bottom: 28px;
  border-bottom: 1px solid var(--rule2);
  font-family: var(--mono); font-size: 10px; color: var(--text3); flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 5px; }
.stat-item strong { color: var(--text2); }
.article-content { font-size: 17px; line-height: 1.9; color: var(--text2); max-width: 720px; }
.article-content p { margin-bottom: 22px; }
.article-content h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--text); margin: 36px 0 14px;
  padding-top: 22px; border-top: 1px solid var(--rule); letter-spacing: -.5px;
}
.article-content h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
.article-content blockquote {
  border-left: 3px solid var(--amber); padding: 14px 22px;
  margin: 28px 0; background: var(--void2);
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text);
  position: relative;
}
.article-content blockquote::before {
  content: '"'; font-size: 56px; color: var(--amber); line-height: 1;
  position: absolute; top: 6px; left: 14px; opacity: .3; font-family: var(--serif);
}
[data-theme="light"] .article-content blockquote { background: var(--void3); }
.article-content strong { color: var(--text); font-weight: 700; }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  background: var(--void2); border-top: 2px solid var(--amber);
  border-bottom: 1px solid var(--rule); padding: 44px 0; position: relative;
}
.newsletter-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,160,32,.06) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.newsletter-copy .heading {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; color: var(--text); line-height: 1.05;
  margin-bottom: 12px; letter-spacing: -1px;
}
.newsletter-copy .heading span { color: var(--amber); }
.newsletter-copy .sub { font-size: 14px; color: var(--text3); line-height: 1.7; }
.newsletter-badges { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.newsletter-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  color: var(--text3); border: 1px solid var(--rule);
  padding: 4px 10px; text-transform: uppercase;
}
.newsletter-form { display: flex; gap: 0; margin-bottom: 10px; }
.newsletter-input {
  flex: 1; background: var(--void3); border: 1px solid var(--rule);
  border-right: none; color: var(--text); padding: 13px 16px;
  font-family: var(--sans); font-size: 14px; outline: none; min-width: 0;
}
.newsletter-input::placeholder { color: var(--text4); }
.newsletter-input:focus { border-color: var(--amber); }
.newsletter-btn {
  background: var(--amber); color: var(--void);
  border: 1px solid var(--amber); padding: 13px 24px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .5px; cursor: pointer; text-transform: uppercase;
  white-space: nowrap; transition: background .15s; flex-shrink: 0;
}
.newsletter-btn:hover { background: var(--amber2); }

/* ============================================================
   STATS / WIDGETS
   ============================================================ */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-box {
  background: var(--void); border: 1px solid var(--rule);
  padding: 12px; text-align: center; transition: border-color .2s;
}
.stat-box:hover { border-color: var(--amber); }
.stat-box-num { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; color: var(--amber); }
.stat-box-label { font-family: var(--mono); font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-top: 4px; }

.trend-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule2); }
.trend-item:last-child { border-bottom: none; }
.trend-num { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text4); line-height: 1.6; min-width: 18px; }
.trend-title { font-size: 12px; font-weight: 500; color: var(--text2); line-height: 1.4; }
.trend-title a { color: inherit; text-decoration: none; }
.trend-title a:hover { color: var(--amber); }
.trend-cat { font-family: var(--mono); font-size: 9px; color: var(--text3); margin-top: 2px; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.article-sidebar { position: sticky; top: 72px; }
.sidebar-widget { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.sidebar-widget:last-child { border-bottom: none; margin-bottom: 0; }
.widget-heading {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber);
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(232,160,32,.2);
}
.related-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule2); }
.related-row:last-child { border-bottom: none; }
.related-num { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text4); line-height: 1.6; min-width: 20px; }
.related-kicker { font-family: var(--mono); font-size: 9px; color: var(--text3); margin-bottom: 3px; }
.related-title { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--text2); }
.related-title a { color: inherit; text-decoration: none; }
.related-title a:hover { color: var(--amber); }
.trend-chip {
  display: inline-block; background: var(--void3); border: 1px solid var(--rule);
  padding: 4px 12px; font-family: var(--mono); font-size: 10px; color: var(--text3);
  margin: 3px; text-decoration: none; transition: all .15s;
}
.trend-chip:hover { background: var(--amber); color: var(--void); border-color: var(--amber); }
.brand-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--rule); text-decoration: none; transition: all .15s;
}
.brand-row:last-child { border-bottom: none; }
.brand-row:hover { opacity: .7; }
.brand-row .emoji { font-size: 18px; }
.brand-row .b-name { font-size: 12px; font-weight: 600; color: var(--text); }
.brand-row .b-tag { font-family: var(--mono); font-size: 9px; color: var(--text3); }
.brand-row .arrow { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--amber); }

/* ── NEWSLETTER MINI ── */
.nl-mini { background: var(--void2); border: 1px solid var(--rule); padding: 20px; position: relative; }
.nl-mini::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--amber); }
.nl-mini-title { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.nl-mini-sub { font-size: 12px; color: var(--text3); line-height: 1.6; margin-bottom: 14px; }
.nl-mini-input {
  width: 100%; background: var(--void); border: 1px solid var(--rule);
  color: var(--text); padding: 10px 14px; font-family: var(--sans); font-size: 13px;
  outline: none; margin-bottom: 8px; transition: border-color .15s;
}
.nl-mini-input::placeholder { color: var(--text4); }
.nl-mini-input:focus { border-color: var(--amber); }
.nl-mini-btn {
  width: 100%; background: var(--amber); border: none; color: var(--void);
  padding: 11px; font-family: var(--sans); font-size: 13px; font-weight: 700;
  cursor: pointer; letter-spacing: .5px; text-transform: uppercase; transition: background .15s;
}
.nl-mini-btn:hover { background: var(--amber2); }

/* ============================================================
   ABOUT / CONTACT / LEGAL PAGES
   ============================================================ */
.page-hero {
  padding: 56px 0 44px; border-bottom: 2px solid var(--surface);
  position: relative; overflow: hidden;
}
.page-hero-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.page-hero-kicker::before { content: ''; width: 24px; height: 1px; background: var(--amber); }
.page-hero-kicker.red { color: var(--crimson2); }
.page-hero-kicker.red::before { background: var(--crimson2); }
.page-hero-title {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 68px);
  font-weight: 700; line-height: 1; letter-spacing: -2px;
  color: var(--text); margin-bottom: 18px;
}
.page-hero-lead { font-size: 16px; line-height: 1.75; color: var(--text2); max-width: 660px; }
.page-hero-meta { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: .8px; }

.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; padding: 52px 0; }
.doc-layout { display: grid; grid-template-columns: 1fr 280px; gap: 60px; padding: 52px 0; }
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; padding: 52px 0; }

/* prose */
.prose-section { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--rule); }
.prose-section:last-child { border-bottom: none; }
.prose-heading {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: -.5px; color: var(--text); margin-bottom: 14px; line-height: 1.1;
}
.prose-heading::before { content: '◆ '; color: var(--amber); font-size: 16px; }
.prose-body { font-size: 14px; line-height: 1.85; color: var(--text2); }
.prose-body p { margin-bottom: 13px; }
.prose-body p:last-child { margin-bottom: 0; }
.prose-body strong { color: var(--text); font-weight: 600; }
.prose-body a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(232,160,32,.3); }
.prose-body a:hover { border-color: var(--amber); }

/* policy */
.policy-section { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.policy-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.policy-heading {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  letter-spacing: -.5px; color: var(--text); margin-bottom: 14px; line-height: 1.1;
  display: flex; align-items: baseline; gap: 10px;
}
.policy-num { font-family: var(--mono); font-size: 12px; color: var(--crimson2); letter-spacing: 1px; }
.policy-body { font-size: 14px; line-height: 1.85; color: var(--text2); }
.policy-body p { margin-bottom: 13px; }
.policy-body strong { color: var(--text); font-weight: 600; }
.policy-body a { color: var(--electric2); text-decoration: none; border-bottom: 1px solid rgba(64,160,255,.3); }
.policy-body a:hover { border-color: var(--electric2); }
.policy-body ul { margin: 12px 0 12px 20px; display: flex; flex-direction: column; gap: 6px; }
.policy-body ul li { font-size: 14px; color: var(--text2); line-height: 1.65; }
.policy-body ul li::marker { color: var(--amber); }
.info-box {
  background: var(--void2); border: 1px solid var(--rule);
  border-left: 3px solid var(--crimson2); padding: 18px 22px; margin: 18px 0;
}
.info-box p { font-size: 13px; color: var(--text2); line-height: 1.7; margin: 0; }
.info-box strong { color: var(--text); }
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13px; overflow-x: auto; display: block; }
.data-table th {
  background: var(--void3); color: var(--amber);
  padding: 10px 14px; text-align: left;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--rule2); color: var(--text2); line-height: 1.55; vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
[data-theme="light"] .data-table th { background: var(--void4); color: var(--text); }
[data-theme="light"] .data-table tr:nth-child(even) td { background: var(--void3); }

/* toc */
.toc-box {
  background: var(--void2); border: 1px solid var(--rule);
  padding: 22px; position: sticky; top: 24px;
}
.toc-heading {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(232,160,32,.2);
}
.toc-list { list-style: none; }
.toc-list a {
  display: block; font-family: var(--sans); font-size: 12px;
  color: var(--text3); text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid var(--rule2); transition: color .15s;
}
.toc-list a:hover { color: var(--amber); }
.toc-list li:last-child a { border-bottom: none; }
.toc-list span { font-family: var(--mono); font-size: 9px; color: var(--text4); margin-right: 8px; }

/* contact cards */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.contact-card {
  padding: 18px; border: 1px solid var(--rule); background: var(--void2);
  position: relative; overflow: hidden; transition: border-color .2s, transform .15s;
}
.contact-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.contact-card:hover { border-color: var(--surface2); transform: translateY(-2px); }
.contact-card[data-c="crimson"]::before { background: var(--crimson); }
.contact-card[data-c="electric"]::before { background: var(--electric); }
.contact-card[data-c="jade"]::before { background: var(--jade); }
.contact-card[data-c="amber"]::before { background: var(--amber); }
.cc-icon { font-size: 20px; margin-bottom: 10px; margin-top: 8px; }
.cc-type { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; }
.cc-email { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--amber); }
.cc-email a { color: inherit; text-decoration: none; }
.cc-email a:hover { text-decoration: underline; }
.cc-desc { font-size: 11px; color: var(--text3); margin-top: 4px; line-height: 1.5; }

/* contact form */
.form-heading {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  letter-spacing: -.5px; color: var(--text); margin-bottom: 6px;
}
.form-heading::before { content: '◆ '; color: var(--amber); font-size: 14px; }
.form-sub { font-size: 13px; color: var(--text3); margin-bottom: 24px; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 7px;
}
.form-label .req { color: var(--crimson2); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--void3); border: 1px solid var(--rule);
  padding: 12px 14px; font-family: var(--sans); font-size: 13px;
  color: var(--text); outline: none; transition: border-color .15s, background .15s;
  -webkit-appearance: none; border-radius: 0;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea { background: var(--void2); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--amber); background: var(--void4); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text4); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23787068' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-family: var(--mono); font-size: 9px; color: var(--text4); margin-top: 5px; letter-spacing: .5px; }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber); color: var(--void); border: none; padding: 14px 28px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; width: 100%; margin-top: 8px;
  transition: background .2s, transform .15s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.submit-btn:hover { background: var(--amber2); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success {
  display: none; background: var(--jade); color: #fff;
  padding: 14px 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .8px; margin-top: 14px; text-align: center;
}
.form-success.show { display: block; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.consent-row input[type="checkbox"] { margin-top: 3px; accent-color: var(--amber); flex-shrink: 0; cursor: pointer; }
.consent-row label { font-size: 12px; color: var(--text3); line-height: 1.6; cursor: pointer; }
.consent-row label a { color: var(--amber); text-decoration: none; }

/* about page extras */
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.brand-card {
  padding: 18px; border: 1px solid var(--rule); background: var(--void2);
  position: relative; overflow: hidden; transition: border-color .2s;
}
.brand-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.brand-card:hover { border-color: var(--surface2); }
.brand-card[data-c="electric"]::before { background: var(--electric); }
.brand-card[data-c="amber"]::before { background: var(--amber); }
.brand-card[data-c="jade"]::before { background: var(--jade); }
.brand-card[data-c="sports"]::before { background: #e85020; }
.brand-card[data-c="crimson"]::before { background: #a060e0; }
.bc-icon { font-size: 20px; margin-bottom: 8px; }
.bc-name { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bc-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.bc-desc { font-size: 12px; color: var(--text2); line-height: 1.55; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--rule); margin: 22px 0; border: 1px solid var(--rule); }
.value-cell { background: var(--void2); padding: 22px; }
.value-num { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--surface); line-height: 1; margin-bottom: 8px; }
.value-title { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.value-desc { font-size: 12px; color: var(--text3); line-height: 1.55; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.team-card { text-align: center; padding: 22px 14px; border: 1px solid var(--rule); background: var(--void2); }
.team-avatar {
  width: 60px; height: 60px; background: var(--void3); border-radius: 50%;
  margin: 0 auto 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; border: 1px solid var(--surface);
}
.team-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-role { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); }

.stats-band {
  background: var(--void2); border: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats-cell { padding: 28px 24px; border-right: 1px solid var(--rule); position: relative; }
.stats-cell::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--amber); opacity: 0; transition: opacity .2s; }
.stats-cell:hover::before { opacity: 1; }
.stats-cell:last-child { border-right: none; }
.stats-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--amber); line-height: 1; margin-bottom: 6px; }
.stats-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); }

/* response times */
.response-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.response-tile { background: var(--void2); border: 1px solid var(--rule); padding: 14px; }
[data-theme="light"] .response-tile { background: var(--void4); }
.response-time { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--amber); line-height: 1; }
.response-lbl { font-family: var(--mono); font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text4); margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--void2); padding: 52px 0 26px; border-top: 1px solid var(--rule); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 32px;
  border-bottom: 1px solid var(--rule); margin-bottom: 24px;
}
.footer-brand .name {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--text); letter-spacing: -1.5px; text-transform: uppercase; margin-bottom: 12px;
}
.footer-brand .name span { color: var(--amber); }
.footer-brand .desc { font-size: 13px; color: var(--text3); line-height: 1.7; margin-bottom: 16px; max-width: 300px; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
  width: 36px; height: 36px; background: var(--void3);
  border: 1px solid var(--rule); display: flex;
  align-items: center; justify-content: center;
  color: var(--text3); font-size: 13px; text-decoration: none; transition: all .15s;
}
.social-link:hover { background: var(--amber); border-color: var(--amber); color: var(--void); }
.footer-col-heading {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(232,160,32,.2);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--text4); flex-wrap: wrap; gap: 10px;
}
.footer-admin-link { color: var(--text4); text-decoration: none; transition: color .15s; }
.footer-admin-link:hover { color: var(--amber); }

/* ============================================================
   SCROLL TOP & THEME TOGGLE
   ============================================================ */
#scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--amber); color: var(--void);
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  cursor: pointer; opacity: 0; transition: opacity .3s, transform .2s; z-index: 100;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
#scroll-top.visible { opacity: 1; }
#scroll-top:hover { transform: scale(1.1); }
#theme-toggle {
  position: fixed; bottom: 76px; right: 24px;
  background: var(--void2); border: 1px solid var(--rule);
  color: var(--amber); font-size: 20px; cursor: pointer;
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
  z-index: 101; transition: border-color .2s, background .2s;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
#theme-toggle:hover { border-color: var(--amber); background: var(--void3); }

/* ============================================================
   SKELETON / STATES
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--void3) 25%, var(--void4) 50%, var(--void3) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.empty-state { text-align: center; padding: 72px 20px; }
.empty-state h3 { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.empty-state p { font-size: 14px; color: var(--text3); margin-bottom: 22px; font-family: var(--mono); }
.empty-cta { display: inline-block; background: var(--amber); color: var(--void); padding: 12px 28px; text-decoration: none; font-weight: 700; font-size: 12px; font-family: var(--mono); letter-spacing: 1px; }
.error-state { text-align: center; padding: 72px 20px; }
.error-state h2 { font-family: var(--serif); font-size: 60px; font-weight: 700; color: var(--amber); margin-bottom: 12px; }
.error-state p { font-size: 16px; color: var(--text2); margin-bottom: 22px; }
.error-state a { display: inline-block; background: var(--amber); color: var(--void); padding: 12px 28px; text-decoration: none; font-weight: 700; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.8)} }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes gradientShift { 0%{background-position:0 0} 100%{background-position:200% 0} }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-delay { animation: fadeUp .5s ease .1s both; }

/* scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ============================================================
   RESPONSIVE — TABLET 1200px
   ============================================================ */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 320px; }
  .hero-sidebar { display: none; }
  .articles-grid.four-col { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc-box { display: none; }
}

/* ============================================================
   RESPONSIVE — TABLET 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .masthead-inner { padding: 0 24px; }
  .topbar-utility-inner { padding: 0 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; gap: 36px; }
  .article-sidebar { display: none; }
  .browse-layout { grid-template-columns: 1fr; padding: 24px; }
  .browse-layout aside { display: none; }
  .articles-grid.four-col { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — TABLET 900px
   ============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .masthead-inner { padding: 0 20px; }
  .topbar-utility-inner { padding: 0 20px; }
  .search-bar-inner { padding: 0 20px; }
  .masthead-top { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .masthead-left { align-items: center; }
  .masthead-right { align-items: center; flex-direction: row; justify-content: center; }
  .masthead-center { padding: 0; }
  /* mobile nav */
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  /* hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-secondary { border-right: none; border-top: 1px solid var(--rule); }
  /* newsletter */
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  /* stats */
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-cell { padding: 20px 16px; }
  /* article */
  .article-wrap { padding: 24px 20px; }
  /* browse */
  .browse-layout { padding: 20px; }
  /* topbar */
  .topbar-hamburger { display: flex; }
  .topbar-nav { display: none; }
  .site-topbar-inner { padding: 0 16px; }
}

/* ============================================================
   RESPONSIVE — MOBILE 768px
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand .desc { max-width: 100%; }
  .brand-cards { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid.four-col { grid-template-columns: 1fr 1fr; }
  .article-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .article-card:nth-child(2n) { border-right: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .brand-pill .b-tagline { display: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid var(--rule); }
  .newsletter-btn { width: 100%; }
  .topbar-search-input { width: 130px; }
  .form-row { grid-template-columns: 1fr; }
  .browse-layout { padding: 16px; }
  .page-header-inner { padding: 0 16px; }
  .filter-bar { margin: 0 -16px; padding: 0 16px; }
  .breadcrumb-inner { padding: 0 16px; }
  .article-wrap { padding: 20px 16px; }
  .article-deck { font-size: 17px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .topbar-date { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE 480px
   ============================================================ */
@media (max-width: 480px) {
  .masthead-title { letter-spacing: -2px !important; }
  .masthead-subtitle { display: none; }
  .masthead-right .btn-newsroom { display: none; }
  .topbar-links { gap: 10px; }
  .topbar-links a { font-size: 9px; }
  .topbar-date { display: none; }
  .ticker-label { padding: 0 12px; font-size: 9px; letter-spacing: 2px; }
  .ticker-track { padding-left: 120px; }
  .articles-grid, .articles-grid.four-col { grid-template-columns: 1fr; }
  .article-card:nth-child(n) { border-right: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .brand-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .response-times { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .article-headline { font-size: clamp(22px, 6vw, 36px); }
  .share-bar { display: none; }
  .article-byline-bar { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 32px 0 28px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { width: 100%; }
  .filter-btn { padding: 10px 13px; font-size: 9px; }
  .section-label { font-size: 9px; padding: 6px 16px 6px 12px; }
  .brand-pill { padding: 10px 14px; gap: 8px; }
  .hero-lead { padding: 20px; }
  .story-card-sm { padding: 14px 16px; }
  .article-wrap { padding: 16px 14px; }
}

/* ============================================================
   RESPONSIVE — MOBILE 375px
   ============================================================ */
@media (max-width: 375px) {
  .container, .masthead-inner, .topbar-utility-inner { padding: 0 12px !important; }
  .masthead-title { font-size: clamp(34px, 10vw, 60px) !important; }
  .topbar-links { gap: 8px; }
  .topbar-logo { font-size: 18px; padding-right: 12px; margin-right: 12px; }
}
