/* =============================================================
   custom.css — Stablecoin Beat
   Colors copied exactly from the live site generators.
   This is a dark-mode-first site. Light mode is secondary.
   ============================================================= */

/* ─── 1. TOKENS ──────────────────────────────────────────────── */

/* Dark mode (default) — exact values from live site */
:root,
[data-theme="dark"] {
  --bg:     #07090f;
  --bg2:    #0b0e17;
  --border: #1a2333;
  --blue:   #4d72e8;
  --green:  #22c55e;
  --red:    #ef4444;
  --gold:   #f59e0b;
  --text:   #d4e0ee;
  --muted:  #4a6680;
  --font:   'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Map Pico's internal variables to ours — prevents Pico using its own colors */
  --pico-background-color:                    var(--bg);
  --pico-secondary-background-color:          var(--bg);
  --pico-card-background-color:               var(--bg2);
  --pico-border-color:                        var(--border);
  --pico-color:                               var(--text);
  --pico-muted-color:                         var(--muted);
  --pico-primary:                             var(--blue);
  --pico-table-border-color:                  var(--border);
  --pico-table-row-stripped-background-color: transparent;
}

/* Light mode — blue-tinted, same brand, inverted luminosity */
[data-theme="light"] {
  --bg:     #f5f7ff;
  --bg2:    #eef1fb;
  --border: #d0d8f0;
  --blue:   #4d72e8;
  --green:  #15803d;
  --red:    #dc2626;
  --gold:   #b45309;
  --text:   #0a1628;
  --muted:  #5a6e90;
  --font:   'Inter', 'Segoe UI', system-ui, sans-serif;

  --pico-background-color:                    var(--bg);
  --pico-secondary-background-color:          var(--bg);
  --pico-card-background-color:               var(--bg2);
  --pico-border-color:                        var(--border);
  --pico-color:                               var(--text);
  --pico-muted-color:                         var(--muted);
  --pico-primary:                             var(--blue);
  --pico-table-border-color:                  var(--border);
  --pico-table-row-stripped-background-color: transparent;
}

/* ─── 2. BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  background-image: radial-gradient(circle, rgba(26, 140, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--text); }

/* ─── 3. HEADER ──────────────────────────────────────────────── */
/* !important beats Pico classless which auto-styles <header> */
header {
  border-bottom: 1px solid var(--border) !important;
  padding: 0 48px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  background: var(--bg) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Hamburger toggle — hidden on desktop */
button.nav-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
  cursor: pointer !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: auto !important;
}
button.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.15s;
}

/* Mobile nav drawer — hidden by default, shown below header */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  position: sticky;
  top: 56px;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text) !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-decoration: none;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a.active { color: var(--blue) !important; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #213fd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oxygen', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Oxygen', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

/* Nav — !important beats Pico's nav styles */
header nav {
  display: flex !important;
  gap: 20px !important;
  margin-left: auto !important;
  align-items: center !important;
}

/* Theme toggle + hamburger grouped together */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

header nav a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  transition: color 0.15s !important;
  padding: 0 !important;
  background: none !important;
}

header nav a:hover { color: var(--text) !important; }

/* Theme toggle — override Pico's button default (filled primary) */
button.theme-toggle {
  background: none !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 5px 8px !important;
  cursor: pointer !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: border-color 0.15s, color 0.15s !important;
  box-shadow: none !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}
button.theme-toggle:hover {
  border-color: var(--blue) !important;
  color: var(--text) !important;
  background: none !important;
}

[data-theme="light"] .theme-icon-dark  { display: none; }
[data-theme="dark"]  .theme-icon-light { display: none; }

@media (max-width: 600px) {
  header { padding: 0 16px !important; gap: 0 !important; }
  header nav { display: none !important; }
  button.nav-toggle { display: flex !important; }
  /* header-actions stays visible — theme toggle + hamburger always show */
  .header-actions { margin-left: auto !important; }
}

/* ─── 3b. HERO / STATS ROW (tracker page) ───────────────────── */
.hero { margin-bottom: 32px; }
.hero-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}

h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: var(--text); margin-bottom: 24px; }

.stats-row {
  display: flex; gap: 32px; flex-wrap: wrap;
  align-items: flex-end; margin-bottom: 20px;
}
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-block .stat-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.stat-block .stat-value {
  font-size: clamp(24px, 4vw, 38px); font-weight: 700;
  color: var(--text); line-height: 1;
}
.stat-block .stat-value.small { font-size: clamp(16px, 2.5vw, 22px); }
.stat-sub { font-size: 13px; margin-top: 4px; }

.updated {
  font-size: 12px; color: var(--muted); margin-bottom: 20px;
  padding: 8px 12px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 6px; display: inline-block;
}

/* ─── 4. MAIN ────────────────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

/* ─── 5. STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-value.up   { color: var(--green); }
.stat-value.down { color: #e05c5c; }
.stat-updated { margin-left: auto; font-size: 11px; color: var(--muted); align-self: center; }

@media (max-width: 700px) {
  .stats-bar { padding: 10px 20px; gap: 24px; }
  .stat-updated { display: none; }
}

/* ─── 6. FILTER TABS ─────────────────────────────────────────── */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* !important beats Pico button default (filled primary blue) */
button.filter-tab {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  color: var(--muted) !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.12s !important;
  box-shadow: none !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}
button.filter-tab:hover {
  border-color: var(--blue) !important;
  color: var(--text) !important;
  background: transparent !important;
}
button.filter-tab.active {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}
.filter-count { font-size: 10px; opacity: 0.7; margin-left: 3px; }

/* ─── 7. TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 4px; }

/* Force all table elements to inherit our background — Pico sets its own white/gray */
table, thead, tbody, tfoot, tr, td, th {
  background-color: transparent !important;
  border-color: var(--border) !important;
  color: inherit !important;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }

thead th {
  text-align: left;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
thead th.r { text-align: right; }

tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

td { padding: 11px 10px; vertical-align: middle; }
td.rank { color: var(--muted); font-size: 12px; width: 32px; }
td.r { text-align: right; font-variant-numeric: tabular-nums; }
td.coin-name { display: flex; align-items: center; gap: 6px; min-width: 140px; flex-wrap: wrap; }

.symbol   { font-weight: 700; color: var(--text); font-size: 13px; }
.sym-link { font-weight: 700; color: var(--blue); font-size: 13px; text-decoration: none; }
.sym-link:hover { text-decoration: underline; }
.name      { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; width: 100%; }
.yield-dot { font-size: 9px; color: var(--gold); margin-left: 2px; }
.pos       { color: var(--green); font-variant-numeric: tabular-nums; }
.neg       { color: var(--red);   font-variant-numeric: tabular-nums; }
td.turn.hi { color: var(--gold); }

/* ─── 8. BADGES — exact from live tracker ───────────────────── */
.peg-badge, .type-badge, .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Peg */
.peg-usd   { color: #3ecf8e; background: rgba(62,207,142,0.12);  border: 1px solid rgba(62,207,142,0.25); }
.peg-eur   { color: #60a5fa; background: rgba(96,165,250,0.12);  border: 1px solid rgba(96,165,250,0.25); }
.peg-gold  { color: #f59e0b; background: rgba(245,158,11,0.12);  border: 1px solid rgba(245,158,11,0.25); }
.peg-gbp   { color: #a78bfa; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25); }
.peg-other { color: var(--muted); background: transparent; border: 1px solid var(--border); }

/* Type */
.type-fiat      { color: #4d72e8; background: rgba(77,114,232,0.12);  border: 1px solid rgba(77,114,232,0.25); }
.type-crypto    { color: #f97316; background: rgba(249,115,22,0.12);  border: 1px solid rgba(249,115,22,0.25); }
.type-rwa       { color: #3ecf8e; background: rgba(62,207,142,0.12);  border: 1px solid rgba(62,207,142,0.25); }
.type-algo      { color: #ef4444; background: rgba(239,68,68,0.12);   border: 1px solid rgba(239,68,68,0.25); }
.type-commodity { color: #f59e0b; background: rgba(245,158,11,0.12);  border: 1px solid rgba(245,158,11,0.25); }
.type-yield     { color: #f59e0b; background: rgba(245,158,11,0.12);  border: 1px solid rgba(245,158,11,0.25); }
.type-other     { color: var(--muted); background: transparent; border: 1px solid var(--border); }

/* Section badges */
.badge-insights { color: var(--blue); background: rgba(77,114,232,0.12); border: 1px solid rgba(77,114,232,0.25); }
.badge-weekly   { color: #4caf82;     background: rgba(76,175,130,0.10); border: 1px solid rgba(76,175,130,0.25); }
.badge-alert    { color: var(--red);  background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.25); }

/* ─── 9. LOAD MORE BUTTON ────────────────────────────────────── */
button.load-more-btn {
  padding: 10px 28px !important;
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.12s !important;
  box-shadow: none !important;
  width: auto !important;
}
button.load-more-btn:hover {
  border-color: var(--blue) !important;
  color: var(--text) !important;
  background: var(--bg2) !important;
}

.load-more-wrap { text-align: center; margin-top: 28px; }

/* ─── 10. SIGNALS PANEL ──────────────────────────────────────── */
.signals-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.signals-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.signals-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.signals-body {
  flex: 1;
  overflow-y: auto;
  max-height: 560px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.signals-body::-webkit-scrollbar { width: 4px; }
.signals-body::-webkit-scrollbar-track { background: transparent; }
.signals-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.signal-item { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.signal-item:last-child { border-bottom: none; }
.signal-time { font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.signal-text { font-size: 13px; color: #8faec8; line-height: 1.55; }
.signals-empty { padding: 20px; font-size: 13px; color: var(--muted); }

/* ─── 11. SECTION HEADERS ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-link { font-size: 12px; color: var(--blue); }
.section-link:hover { text-decoration: underline; }

/* ─── 12. CARDS ──────────────────────────────────────────────── */
.content-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s;
}
.content-card:hover { border-color: var(--blue); }
.content-card:hover .card-title { color: var(--blue); }

.card-img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: rgba(77,114,232,0.1);
  border: 1px solid rgba(77,114,232,0.2);
  border-radius: 3px; padding: 1px 6px; align-self: flex-start;
}
.weekly-badge { color: #4caf82; background: rgba(76,175,130,0.1); border-color: rgba(76,175,130,0.25); }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; transition: color 0.15s; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meta-sep { opacity: 0.4; }
.card-summary { font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-cta { font-size: 12px; color: var(--blue); margin-top: auto; padding-top: 8px; }
.card-date-range { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ─── 13. PROSE / ARTICLE ────────────────────────────────────── */
.prose-summary {
  font-size: 0.9rem; color: var(--text); opacity: 0.85; line-height: 1.7;
  padding: 16px 20px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 24px;
}
.prose-summary strong { color: var(--text); opacity: 1; }

/* ─── 14. FAQ ────────────────────────────────────────────────── */
.faq-section { max-width: 760px; }
.faq-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 48px 0 20px;
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}

/* Native details/summary for AEO */
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 20px 0; cursor: pointer; list-style: none !important;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
/* Strip both Webkit and standard markers — Pico adds ::marker too */
.faq-list summary::-webkit-details-marker { display: none !important; }
.faq-list summary::marker { content: '' !important; }
.faq-list summary::after {
  content: '+' !important;
  font-size: 18px !important;
  color: var(--muted) !important;
  flex-shrink: 0 !important;
  background-image: none !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
}
.faq-list details[open] summary::after { content: '−' !important; }
.faq-list .faq-answer { font-size: 14px; color: var(--muted); line-height: 1.75; padding: 0 0 20px; }

/* Legacy dl/dt/dd FAQ (homepage) */
dl.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item dt { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.faq-item dd { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ─── 15. BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: 32px;
  display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ─── 16. SPARKLINES ─────────────────────────────────────────── */
.spark { display: block; width: 100%; height: 48px; margin: 4px 0 0; overflow: visible; }

/* ─── 17. DISCOVERY STRIP ────────────────────────────────────── */
.discovery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 48px 0 0; }
@media (max-width: 700px) { .discovery { grid-template-columns: repeat(2, 1fr); } }

.discovery-item {
  border: 1px solid var(--border); border-radius: 8px; padding: 16px;
  transition: border-color 0.15s; display: flex; flex-direction: column; gap: 4px;
}
.discovery-item:hover { border-color: var(--blue); }
.disc-label { font-size: 13px; font-weight: 600; color: var(--text); }
.disc-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── 18. HOMEPAGE LAYOUT ────────────────────────────────────── */

/* Wide main — homepage uses 1400px vs default 1100px */
main.main-wide {
  max-width: 1400px;
  padding: 0 40px 72px;
}
@media (max-width: 900px) { main.main-wide { padding: 0 20px 48px; } }

/* Hero Row — featured article + signals panel side-by-side */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  padding: 40px 0 0;
  align-items: start;
}
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; } }

/* Featured Article */
.featured { display: block; }
.featured:hover .feat-title { color: var(--blue); }

.feat-img {
  width: 100%; border-radius: 8px; display: block;
  aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: 20px;
}
.feat-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: rgba(77,114,232,0.12);
  border: 1px solid rgba(77,114,232,0.25);
  border-radius: 4px; padding: 2px 8px; margin-bottom: 12px;
}
.feat-title {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 700;
  color: var(--text); line-height: 1.25; margin-bottom: 12px; transition: color 0.15s;
}
.feat-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap;
}
.feat-summary { font-size: 15px; color: var(--text); line-height: 1.75; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .content-grid { grid-template-columns: 1fr; } }

/* Charts Teasers */
.charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .charts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .charts-grid { grid-template-columns: 1fr; } }

.chart-teaser {
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg2); padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s;
}
.chart-teaser:hover { border-color: var(--blue); }
.chart-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.chart-value { font-size: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-sub   { font-size: 12px; color: var(--muted); }
.chart-cta   { font-size: 12px; color: var(--blue); margin-top: auto; padding-top: 12px; }

/* ─── 20. COMPANIES PAGES ───────────────────────────────────── */

/* Badge variants used by companies */
.badge-green { color: var(--green); background: rgba(62,207,142,0.10); border-color: rgba(62,207,142,0.25); }
.badge-muted { color: var(--muted); background: transparent; border-color: var(--border); }

/* Prose rendered from markdown */
.prose h2 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
.prose h3 { font-size: 1rem;   font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.prose p   { color: var(--text); opacity: 0.85; margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 20px; color: var(--text); opacity: 0.85; }
.prose a   { color: var(--blue); }

/* Divider + back link */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.back-link { font-size: 0.85rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 32px; }
.back-link:hover { color: var(--text); }

/* Standalone section title (companies pages — h2 variant) */
h2.section-title { font-size: 0.82rem; margin: 32px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-sub { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.8rem; }

/* Ext link */
.ext-link { color: var(--blue) !important; text-decoration: none; }

/* ── Hub page ── */
.page-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.page-sub   { color: var(--muted); font-size: 0.95rem; margin-bottom: 36px; }

.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.co-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; transition: border-color 0.15s;
}
.co-card:hover { border-color: var(--blue); }
.co-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.co-name { font-weight: 600; font-size: 1rem; flex: 1; color: var(--text); text-decoration: none; }
.co-name:hover { color: var(--blue); }
.co-mcap { font-size: 0.8rem; color: var(--green); font-weight: 600; }
.co-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.co-desc { font-size: 0.82rem; color: var(--text); opacity: 0.75; margin-bottom: 14px; line-height: 1.5; }
.co-products { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-badge {
  font-size: 0.7rem; font-weight: 600; padding: 2px 7px;
  background: rgba(77,114,232,0.08); border: 1px solid rgba(77,114,232,0.2);
  border-radius: 4px; color: var(--blue); text-decoration: none;
}
.prod-badge:hover { background: rgba(77,114,232,0.18); }

/* ── Company page ── */
.co-hero { margin-bottom: 36px; }
.co-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.co-hero .co-meta { font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.co-hero .co-meta a { color: var(--blue); text-decoration: none; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 40px; }
.prod-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; transition: border-color 0.15s;
}
.prod-card:hover { border-color: var(--blue); }
.prod-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.prod-card .prod-sym { font-size: 1.1rem; font-weight: 700; }
.prod-mcap { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-left: auto; }
.prod-name { font-size: 0.82rem; color: var(--text); margin-bottom: 2px; }
.prod-sub  { font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; }
.prod-desc { font-size: 0.8rem; color: var(--text); opacity: 0.7; line-height: 1.5; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 8px; }
.data-table th { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }

.event-timeline { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.event-item { display: flex; gap: 16px; align-items: baseline; font-size: 0.88rem; }
.event-date { color: var(--muted); min-width: 72px; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.event-text { color: var(--text); opacity: 0.85; }

/* ── Product page ── */
.prod-hero { margin-bottom: 28px; }
.prod-hero-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.prod-hero .prod-sym { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.prod-fullname { font-size: 1.1rem; color: var(--muted); }
.prod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.prod-meta a, .ver-link { color: var(--blue); text-decoration: none; }
.ver-link { font-size: 0.82rem; }
.mcap-row { font-size: 1.1rem; font-weight: 600; color: var(--green); margin-bottom: 16px; }
.mcap-val { font-size: 1.4rem; }

.sparkline-section { margin-bottom: 28px; padding: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; }
.sparkline-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.trend-up   { color: var(--green); }
.trend-down { color: #f97066; }
.sparkline-chart svg { width: 100%; height: auto; display: block; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.specs-table td:first-child { color: var(--muted); width: 180px; }

.nets { margin-bottom: 8px; }
.net-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.net-tier-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; min-width: 80px; }
.net-badge { font-size: 0.75rem; padding: 3px 9px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); }
.net-badge-link { text-decoration: none; transition: border-color 0.12s; }
.net-badge-link:hover { border-color: var(--blue); color: var(--blue); }

.chain-supply { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.chain-row { display: grid; grid-template-columns: 120px 1fr 72px 52px; align-items: center; gap: 10px; font-size: 0.82rem; }
.chain-name { color: var(--text); }
.chain-link { color: var(--text); text-decoration: none; }
.chain-link:hover { color: var(--blue); }
.chain-bar-wrap { background: var(--bg2); border-radius: 2px; height: 6px; overflow: hidden; }
.chain-bar { height: 100%; background: var(--blue); border-radius: 2px; transition: width 0.3s; }
.chain-val { text-align: right; color: var(--green); font-weight: 600; font-size: 0.78rem; }
.chain-pct { color: var(--muted); font-size: 0.75rem; text-align: right; white-space: nowrap; }

.sc-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.sc-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; flex-wrap: wrap; }
.sc-chain { font-size: 0.78rem; color: var(--muted); font-weight: 600; min-width: 72px; text-transform: capitalize; }
.sc-addr  { font-family: 'Courier New', monospace; font-size: 0.75rem; color: var(--text); opacity: 0.8; flex: 1; word-break: break-all; }
button.copy-btn { font-size: 0.7rem !important; padding: 3px 8px !important; background: rgba(77,114,232,0.12) !important; border: 1px solid rgba(77,114,232,0.3) !important; border-radius: 4px !important; color: var(--blue) !important; cursor: pointer !important; white-space: nowrap; transition: background 0.12s; box-shadow: none !important; width: auto !important; }
button.copy-btn:hover { background: rgba(77,114,232,0.22) !important; }

.reserve-comp { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.reserve-row { display: grid; grid-template-columns: 180px 1fr 48px; align-items: center; gap: 10px; font-size: 0.82rem; }
.reserve-label { color: var(--text); }
.reserve-bar-wrap { background: var(--bg2); border-radius: 2px; height: 6px; overflow: hidden; }
.reserve-bar { height: 100%; background: var(--green); border-radius: 2px; }
.reserve-pct { text-align: right; color: var(--muted); font-size: 0.78rem; }
.reserve-footer { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.reserve-footer a { color: var(--blue); text-decoration: none; }

.use-cases { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.use-badge  { font-size: 0.78rem; padding: 4px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); }
.mint-burn-text { font-size: 0.9rem; color: var(--text); opacity: 0.85; line-height: 1.6; margin-bottom: 8px; }
.ext-links { font-size: 0.82rem; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ext-links a { color: var(--blue); text-decoration: none; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; margin-bottom: 8px; }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; transition: border-color 0.12s; }
.related-card:hover { border-color: var(--blue); }
.related-type  { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.related-title { font-size: 0.85rem; color: var(--text); line-height: 1.4; }

.sibling-coins { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sib-badge { font-size: 0.78rem; padding: 4px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); text-decoration: none; transition: border-color 0.12s; }
.sib-badge:hover { border-color: var(--blue); color: var(--blue); }
.cg-link   { font-size: 0.8rem; color: var(--muted); margin-top: 20px; }
.cg-link a { color: var(--blue); }

/* ─── 22. NETWORKS PAGES ─────────────────────────────────────── */
.badge-evm {
  color: #a78bfa; background: rgba(167,139,250,0.10);
  border-color: rgba(167,139,250,0.25);
}

/* Hub */
.tier-heading {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.net-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s; display: block;
}
.net-card:hover { border-color: var(--blue); }
.net-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.net-name { font-weight: 600; font-size: 0.95rem; flex: 1; color: var(--text); }
.net-supply { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-left: auto; }
.net-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* Network page hero */
.net-hero { margin-bottom: 36px; }
.net-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.net-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.net-supply-big { font-size: 2.2rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.net-supply-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.net-hero .net-desc { font-size: 0.95rem; color: var(--text); opacity: 0.85; line-height: 1.7; max-width: 680px; }

/* Network page sections */
.net-section { margin-top: 40px; }
.section-heading {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }

/* Facts table */
.facts-table { width: 100%; border-collapse: collapse; max-width: 500px; table-layout: fixed; }
.facts-table td {
  padding: 8px 12px !important; border-bottom: 1px solid var(--border) !important;
  font-size: 0.875rem !important; border-top: none !important; background: none !important;
  vertical-align: middle !important;
}
.fact-label { color: var(--muted); width: 160px; }
.fact-val { color: var(--text); }
.fact-val a { color: var(--blue); text-decoration: none; }
.fact-val a:hover { text-decoration: underline; }

/* Coin table */
.table-wrap { overflow-x: auto; }
.coin-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.coin-table th,
.coin-table td { margin: 0 !important; }
.coin-table th {
  font-size: 0.7rem !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted) !important; padding: 8px 12px !important; text-align: left !important;
  border-bottom: 1px solid var(--border) !important; border-top: none !important;
  background: none !important;
}
.coin-table td {
  padding: 10px 12px !important; border-bottom: 1px solid var(--border) !important;
  font-size: 0.875rem !important; border-top: none !important; background: none !important;
  vertical-align: middle !important;
}
.coin-table tbody tr:hover td { background: var(--bg2) !important; }
/* Column widths */
.coin-table th:nth-child(1), .coin-table td:nth-child(1) { width: 44px; }
.coin-table th:nth-child(3), .coin-table td:nth-child(3) { width: 90px; text-align: center !important; }
.coin-table th:nth-child(4), .coin-table td:nth-child(4) { width: 160px; text-align: right !important; }
.rank { color: var(--muted); }
.coin-name { font-weight: 600; }
.coin-full { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 0.82rem; }
.coin-supply { color: var(--green); font-weight: 600; }
.coin-type { color: var(--muted); font-size: 0.82rem; }

/* FAQ on network page */
.net-faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-q { font-weight: 600; color: var(--text); margin-bottom: 6px; font-size: 0.95rem; }
.faq-a { color: var(--text); opacity: 0.8; font-size: 0.875rem; line-height: 1.6; }

/* ─── 23. INSIGHTS / ARTICLE PAGES ──────────────────────────── */

/* Category badge */
.category-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: rgba(77,114,232,0.12);
  border: 1px solid rgba(77,114,232,0.25);
  border-radius: 4px; padding: 2px 8px;
}

/* Article breadcrumb */
.art-breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: 24px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.art-breadcrumb a { color: var(--muted); text-decoration: none; }
.art-breadcrumb a:hover { color: var(--text); }

/* Hero image */
.art-hero { margin-bottom: 32px; }
.art-hero img {
  width: 100%; border-radius: 8px; display: block;
  max-height: 480px; object-fit: cover;
}

/* Article header */
.article-header { margin-bottom: 40px; }
.article-header .category-badge { margin-bottom: 16px; display: inline-block; }
.article-header h1 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  line-height: 1.25; color: var(--text); margin-bottom: 16px;
}
.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-bottom: 16px;
}
.tags  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tag   {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px;
  text-decoration: none;
}
.tag:hover { color: var(--blue); border-color: var(--blue); }

/* Article body prose */
.article-body {
  max-width: 760px; font-size: 17px; line-height: 1.8; margin-bottom: 48px;
}
.article-body h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.article-body h3 {
  font-size: 18px; font-weight: 600; color: var(--text); margin: 32px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--blue); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }
.cite {
  font-size: 11px; color: var(--blue); text-decoration: none;
  vertical-align: super; line-height: 0;
}
.cite:hover { text-decoration: underline; }

/* Sources section */
.sources {
  max-width: 760px; margin: 0 0 40px; padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.sources h2 {
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sources ol { list-style: none !important; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.sources li { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.src-num { color: var(--blue); font-weight: 600; min-width: 24px; }
.src-body a { color: var(--text); text-decoration: none; }
.src-body a:hover { color: var(--blue); }
.src-pub { color: var(--muted); }

/* Listing page header */
.ins-page-header {
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.ins-page-header h1 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.ins-page-header p { font-size: 14px; color: var(--muted); }

/* Featured article on listing page */
.ins-featured {
  display: block; text-decoration: none; color: inherit; margin-bottom: 40px;
}
.ins-featured:hover .ins-feat-title { color: var(--blue); }
.ins-feat-img {
  width: 100%; border-radius: 8px; display: block;
  max-height: 420px; object-fit: cover; margin-bottom: 24px;
}
.ins-feat-title {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
  color: var(--text); line-height: 1.3; margin-bottom: 12px; transition: color 0.15s;
}
.ins-feat-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap;
}
.ins-feat-summary { font-size: 15px; color: var(--text); line-height: 1.7; opacity: 0.85; }

/* Article list (remaining articles) */
.ins-list-divider {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.ins-article-list { display: flex; flex-direction: column; }
.ins-list-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.ins-list-row:hover .ins-list-title { color: var(--blue); }
.ins-list-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  min-width: 130px; flex-shrink: 0; white-space: nowrap;
}
.ins-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ins-list-body .category-badge { margin-bottom: 2px; }
.ins-list-title {
  font-size: 15px; font-weight: 600; color: var(--text); transition: color 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ins-list-summary {
  font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ins-list-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }

@media (max-width: 600px) {
  .ins-list-meta { display: none; }
  .ins-feat-img { max-height: 220px; }
  .article-body { font-size: 16px; }
  .article-header h1 { font-size: 24px; }
}

/* ─── 24. GLOSSARY PAGES ─────────────────────────────────────── */

/* Page header */
.gloss-page-header { margin-bottom: 40px; }
.page-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.gloss-page-desc { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 620px; }

/* Hub: section groups */
.gloss-section-group { margin-bottom: 52px; }
.gloss-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 4px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gloss-section-title { font-size: 18px; font-weight: 700; color: var(--heading); letter-spacing: -0.02em; }
.gloss-section-link { font-size: 12px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.gloss-section-link:hover { text-decoration: underline; }

/* Term list (hub + section index) */
.gloss-term-list { display: flex; flex-direction: column; gap: 0; }
.gloss-term-item {
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.gloss-term-item:last-child { border-bottom: none; }
.gloss-term-name { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 5px; transition: color 0.15s; }
.gloss-term-item:hover .gloss-term-name { color: var(--blue); }
.gloss-term-def { font-size: 13px; line-height: 1.55; color: var(--muted); }
.gloss-term-arrow { color: var(--muted); font-size: 18px; padding-top: 2px; flex-shrink: 0; }

/* Term page */
.gloss-term-page { max-width: 720px; }
.gloss-definition {
  font-size: 18px; line-height: 1.65; color: var(--text);
  margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border);
}
.gloss-section { margin-bottom: 36px; }
.gloss-section-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.gloss-section-body { font-size: 15px; line-height: 1.75; color: var(--muted); }
.gloss-example {
  background: var(--bg-alt); border-left: 3px solid var(--blue);
  padding: 16px 20px; border-radius: 0 6px 6px 0;
  font-size: 14px; line-height: 1.65; color: var(--muted); font-style: italic;
}
.gloss-related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gloss-related-tag {
  display: inline-block; padding: 6px 14px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--text); text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.gloss-related-tag:hover { border-color: var(--blue); color: var(--blue); }

/* ─── 25. WEEKLY INDEX / ARCHIVE ─────────────────────────────── */

/* Shared listing page header */
.listing-page-header {
  margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.listing-page-header h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 8px; }
.listing-page-header p { font-size: 14px; color: var(--muted); }

/* Archive: type badges with colour variants */
.archive-list { display: flex; flex-direction: column; }
.archive-type-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid; border-radius: 4px; padding: 2px 8px;
}
.archive-type-weekly { background: rgba(77,114,232,0.12); border-color: rgba(77,114,232,0.25); color: #4d72e8; }
.archive-type-insight { background: rgba(0,200,150,0.12); border-color: rgba(0,200,150,0.25); color: #00c896; }

/* ─── 26. METHODOLOGY PAGE ───────────────────────────────────── */
.meth-lead {
  font-size: 16px; line-height: 1.8; color: var(--text);
  max-width: 720px; margin-bottom: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}

.meth-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-bottom: 48px;
}
.meth-stat-cell {
  background: var(--bg2); padding: 20px 20px;
  display: flex; flex-direction: column; gap: 5px;
}
.meth-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.meth-stat-value { font-size: 20px; font-weight: 700; color: var(--text); }
.meth-stat-sub   { font-size: 11px; color: var(--muted); }

.meth-section { margin-bottom: 48px; }
.meth-section h2 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.meth-section p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.meth-section p:last-child { margin-bottom: 0; }
.meth-section p strong { color: inherit; }
.meth-section a { color: var(--blue); text-decoration: none; }
.meth-section a:hover { text-decoration: underline; }
.meth-note { margin-top: 16px; }

.meth-list { margin: 12px 0 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.meth-list li { font-size: 14px; line-height: 1.8; color: var(--muted); }

.meth-refs { margin: 0 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.meth-refs li { font-size: 13px; line-height: 1.8; color: var(--muted); }
.meth-refs a { color: var(--blue); text-decoration: none; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 16px 0;
}
.metric-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 20px;
}
.metric-card-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.metric-card-def  { font-size: 13px; line-height: 1.7; color: var(--muted); }
.metric-card-def strong { color: var(--text); }
.metric-card-formula {
  margin-top: 10px; padding: 7px 10px;
  background: var(--bg); border-left: 2px solid var(--blue);
  font-size: 12px; color: var(--muted); font-style: italic; border-radius: 0 4px 4px 0;
}

.legal-effective { font-size: 13px; color: var(--muted); margin-bottom: 36px; }

.info-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px 22px; margin-top: 16px;
}
.info-box p { margin-bottom: 0 !important; }

/* ─── 21. SOURCE NOTE ────────────────────────────────────────── */
.source-note { margin-top: 32px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.source-note a { color: var(--muted); text-decoration: underline; }

/* ─── 21. FOOTER ─────────────────────────────────────────────── */
/* !important beats Pico classless which auto-styles <footer>, <nav>, <a> */
.footer-outer {
  border-top: 1px solid var(--border);
  background-color: var(--bg2);
}
footer {
  border: none !important;
  background-color: var(--bg2) !important;
  padding: 56px 24px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 48px !important;
  background: transparent !important;
  margin: 0 auto !important;
  max-width: 1100px !important;
  box-sizing: border-box !important;
}

/* Top section: brand left, cols right */
.footer-main {
  display: flex !important;
  align-items: flex-start !important;
  gap: 48px !important;
  flex-wrap: nowrap !important;
}
.footer-brand {
  flex: 0 0 260px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.footer-brand-name {
  font-family: 'Oxygen', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--heading) !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.footer-tagline {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 220px;
}

/* Nav columns — override Pico's <nav> styles */
.footer-cols {
  flex: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  min-width: 120px;
}
.footer-col-heading {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.footer-col a {
  font-size: 14px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text) !important; }

/* Bottom bar */
.footer-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 24px 0 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--border) !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}
.footer-bar-links {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.footer-bar-links a {
  font-size: 12px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.footer-bar-links a:hover { color: var(--text) !important; }
.footer-bar-sep { color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
  footer { padding: 40px 20px 32px !important; gap: 36px !important; }
  .footer-main { flex-direction: column !important; gap: 32px !important; }
  .footer-brand { flex: none !important; }
  .footer-cols { gap: 32px !important; }
}

/* ─── 27. CHARTS PAGES ───────────────────────────────────────── */
.ch-page-header { margin-bottom: 52px; }
.ch-page-header h1 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.ch-h1-accent { color: var(--blue); }
.ch-page-desc { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 640px; margin-bottom: 0; }
.ch-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.ch-stat-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.ch-stat-lbl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ch-stat-val { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.ch-stat-badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-left: 6px; font-weight: 600; background: rgba(34,197,94,0.15); color: var(--green); vertical-align: middle; }
.ch-stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ch-section { margin-bottom: 56px; }
.ch-section-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ch-grid--single { grid-template-columns: 1fr; }
.ch-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.ch-card:hover { border-color: #2a3f60; }
.ch-card--pad { padding: 28px; }
.ch-card--wide { grid-column: 1 / -1; }
.ch-card--pad h2 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ch-card-desc { font-size: 12px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.ch-card-hdr { padding: 24px 24px 0; }
.ch-card-eyebrow { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.ch-card-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ch-card-body { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ch-wrap { position: relative; height: 260px; }
.ch-wrap--tall { height: 340px; }
.ch-wrap--short { height: 200px; }
.ch-wrap--hub { padding: 20px 24px; flex: 1; position: relative; height: 240px; }
.ch-card-ftr { padding: 16px 24px; border-top: 1px solid var(--border); }
.ch-card-ftr a { font-size: 13px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.15s; }
.ch-card-ftr a:hover { gap: 10px; }
.ch-toggle-row { display: flex; gap: 6px; margin-bottom: 28px; justify-content: flex-end; }
.ch-toggle-btn { background: var(--bg2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.ch-toggle-btn:hover { border-color: var(--blue); color: var(--text); }
.ch-toggle-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 860px) {
  .ch-stats-row { grid-template-columns: 1fr 1fr; }
  .ch-grid { grid-template-columns: 1fr; }
  .ch-card--wide { grid-column: auto; }
}
@media (max-width: 480px) {
  .ch-stats-row { grid-template-columns: 1fr; }
}

/* ── Concentration / Indicator pages ──────────────────────────────────────── */
.ch-page-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.ch-page-lead { font-size: 15px; line-height: 1.75; color: var(--text); max-width: 780px; margin-bottom: 0; }
.ch-page-lead strong { color: var(--text); }

/* Interpretation guide */
.ch-interp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ch-interp-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 20px 20px 16px; border-left-width: 3px; }
.ch-interp-box p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.ch-interp--green { border-left-color: #22c55e; }
.ch-interp--amber { border-left-color: #f59e0b; }
.ch-interp--red   { border-left-color: #ef4444; }
.ch-interp-range { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ch-interp-label { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.ch-interp--green .ch-interp-label { color: #22c55e; }
.ch-interp--amber .ch-interp-label { color: #f59e0b; }
.ch-interp--red   .ch-interp-label { color: #ef4444; }
.ch-interp-audience { font-size: 12px !important; font-style: italic; }

/* Quarterly data table */
.ch-data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ch-data-table th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.ch-data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.ch-data-table tbody tr:last-child td { border-bottom: none; }
.ch-data-table tbody tr:hover { background: var(--bg2); }
.ch-td--green { color: #22c55e; font-weight: 600; }
.ch-td--red   { color: #ef4444; font-weight: 600; }
.ch-methodology-note { font-size: 11px; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

/* Methodology box */
.ch-methodology p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.ch-methodology p:last-child { margin-bottom: 0; }
.ch-methodology strong { color: var(--text); }

/* FAQ */
.ch-faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ch-faq-item { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.ch-faq-item:last-child { border-bottom: none; }
.ch-faq-q { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.ch-faq-a { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ch-faq-a strong { color: var(--text); }

@media (max-width: 860px) {
  .ch-interp-grid { grid-template-columns: 1fr; }
}

/* ─── 28. HUB INDICATOR CARDS ─────────────────────────────────── */
.ch-section-title--spaced { margin-top: 48px; }
.ch-ind-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ch-ind-metric { font-size: 40px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.ch-ind-level { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.ch-ind-level--red   { background: rgba(239,68,68,0.12);  color: #f87171; }
.ch-ind-level--amber { background: rgba(251,146,60,0.12); color: #fb923c; }
.ch-ind-level--green { background: rgba(34,197,94,0.12);  color: #4ade80; }
.ch-ind-level--blue  { background: rgba(77,114,232,0.12); color: var(--blue); }

/* ─── 29. REDEMPTION PRESSURE TABLE ──────────────────────────── */
.rp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; }
.rp-table { width: 100%; min-width: 480px; }
.rp-table td, .rp-table th { font-size: 13px; }
.rp-name { color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-mc { text-align: right; }
.rp-up      { font-weight: 600; color: #4ade80; text-align: right; }
.rp-down    { font-weight: 600; color: #f87171; text-align: right; }
.rp-neutral { color: var(--muted); text-align: right; }
