:root {
  --bg: #070b16;
  --bg-2: #0c1530;
  --panel: #101a33;
  --panel-2: #162240;
  --line: rgba(212, 177, 90, 0.22);
  --line-dim: rgba(154, 166, 184, 0.16);
  --gold: #d4b15a;
  --gold-hi: #f3e1a8;
  --text: #eef2f7;
  --muted: #9aa6b8;
  --up: #7dcea0;
  --down: #f07178;
  --link: #e6c87a;
  --radius: 12px;
  --font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(212, 177, 90, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-hi); }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.brand span { line-height: 1.15; }
.brand small { display: block; font-weight: 500; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold-hi); }
.menu-btn {
  display: none; background: var(--panel); color: var(--gold-hi);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.7rem; font: inherit; font-weight: 700;
}
.hero-art { width: 100%; background: #050814; border-bottom: 1px solid var(--line); }
.hero-art img { width: 100%; max-height: 520px; object-fit: cover; object-position: center; }
.lede { padding: 1.4rem 0 0.4rem; }
.lede h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.lede p { margin: 0 0 1rem; color: var(--muted); max-width: 70ch; }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--panel); color: var(--gold-hi); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem;
  font-weight: 700; font-size: 0.92rem;
}
.btn:hover { background: var(--panel-2); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #e6c87a, #c49a3c); color: #1a1204; border-color: transparent; }
.btn-gold:hover { color: #1a1204; filter: brightness(1.05); }
.section { padding: 2rem 0; }
.section h2 { margin: 0 0 0.75rem; font-size: 1.45rem; }
.section h3 { margin: 1.3rem 0 0.4rem; font-size: 1.12rem; color: var(--gold-hi); }
.muted { color: var(--muted); }
.panel {
  background: var(--panel); border: 1px solid var(--line-dim);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-shine { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; }
.feature-shine img { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line); }
.topic {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.2rem; align-items: center;
  margin: 0 0 1.6rem; background: var(--panel); border: 1px solid var(--line-dim);
  border-radius: var(--radius); overflow: hidden;
}
.topic:nth-child(even) { grid-template-columns: 1.15fr 1fr; }
.topic:nth-child(even) .topic-copy { order: -1; }
.topic img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.topic-copy { padding: 1.1rem 1.2rem; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.2rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #1a2748; color: var(--gold-hi); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-lg { min-width: 4.5rem; font-size: 1.05rem; padding: 0.35rem 0.8rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dim); border-radius: var(--radius); background: var(--panel); }
table.screener, table.news, table.facts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.screener th, table.screener td, table.news th, table.news td, table.facts th, table.facts td {
  padding: 0.42rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line-dim); white-space: nowrap;
}
table.news td.headline, table.facts td { white-space: normal; }
table.screener th, table.news th { position: sticky; top: 0; background: #182445; color: var(--gold-hi); font-weight: 700; cursor: pointer; user-select: none; }
table.screener tbody tr:hover, table.news tbody tr:hover { background: rgba(212, 177, 90, 0.06); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.84rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.attr, .note, .disclaimer {
  font-size: 0.88rem; color: var(--muted); margin: 0.7rem 0 0;
}
.attr a { font-size: inherit; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; margin: 1rem 0;
}
.stat { background: var(--panel); border: 1px solid var(--line-dim); border-radius: 10px; padding: 0.7rem 0.8rem; }
.stat .k { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat .v { display: block; margin-top: 0.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-box { background: var(--panel); border: 1px solid var(--line-dim); border-radius: var(--radius); padding: 0.8rem 1rem 0.5rem; margin: 1rem 0; }
.chart-box h3 { margin: 0 0 0.4rem; }
canvas.spark { width: 100%; height: 160px; display: block; }
canvas.spark-sm { width: 96px; height: 28px; display: inline-block; vertical-align: middle; }
.sources { font-size: 0.86rem; }
.sources li { margin: 0.25rem 0; }
.faq details { background: var(--panel); border: 1px solid var(--line-dim); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.5rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--gold-hi); }
.warn {
  background: rgba(240, 113, 120, 0.08); border: 1px solid rgba(240, 113, 120, 0.35);
  border-radius: 10px; padding: 0.85rem 1rem; margin: 1rem 0;
}
.callout { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 0.9rem; margin: 0.8rem 0; }
.footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.2rem 0 2rem; color: var(--muted); font-size: 0.86rem; }
.footer nav { margin: 0 0 0.6rem; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.mono { font-family: var(--mono); font-size: 0.86rem; word-break: break-all; }
.filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.filter button {
  background: var(--panel); color: var(--muted); border: 1px solid var(--line-dim);
  border-radius: 999px; padding: 0.25rem 0.7rem; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.filter button[aria-pressed="true"], .filter button:hover { color: var(--gold-hi); border-color: var(--line); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .feature-shine, .topic, .topic:nth-child(even), .stats, .status-grid {
    grid-template-columns: 1fr;
  }
  .topic:nth-child(even) .topic-copy { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-flex; }
  nav { display: none; width: 100%; flex-direction: column; padding: 0.3rem 0 0.6rem; }
  nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats, .status-grid { grid-template-columns: 1fr; }
}
