:root {
  --bg: #0a0a0c;
  --bg-elev: #131316;
  --bg-card: #18181c;
  --border: #2a2a30;
  --text: #e8e8ec;
  --muted: #9a9aa5;
  --accent: #e11d2e;
  --accent-hover: #ff2f42;
  --accent-soft: rgba(225, 29, 46, 0.14);
  --up: #e11d2e;
  --radius: 10px;
}

.tinted { color: var(--accent); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.brand .accent { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Nav dropdown (Stocks menu) */
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
}
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--text); }
.nav-drop-btn .caret { font-size: 0.85em; margin-left: 2px; }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  margin: 12px 0 0;
  padding: 8px;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 60;
}
/* The ::before bridge keeps the dropdown open while the pointer travels
   from the button down into the menu (covers the 12px margin gap). */
.nav-drop::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--border); color: var(--accent-hover); }
@media (max-width: 760px) {
  .nav-links { gap: 14px; }
  .nav-drop-menu { left: auto; right: 0; transform: none; }
}

main.container { padding-top: 32px; padding-bottom: 64px; }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }

/* Cards */
.card, .breadth-card, .leaderboard-card, .detail-grid > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.breadth-card, .leaderboard-card { margin-bottom: 24px; }
.breadth-card h2, .leaderboard-card h2, .card h2, .page-head h1 {
  margin-top: 0;
}
.page-head h1 small { font-size: 1rem; font-weight: 500; }

.muted { color: var(--muted); }

/* Breadth grid */
.breadth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.breadth-tile {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.breadth-tile .dur { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.breadth-tile .num { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.breadth-tile .sub { color: var(--muted); font-size: 0.85rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; user-select: none; }
.table thead th:hover { color: var(--accent-hover); }
.table tbody tr:hover { background: var(--accent-soft); }
.table tbody tr a { font-weight: 600; color: var(--text); }
.table tbody tr a:hover { color: var(--accent-hover); }
.decile-pill {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 0.85rem;
}
.decile-strong { background: var(--accent); color: #fff; }
.decile-mid { background: var(--accent-soft); color: var(--accent-hover); }
.decile-weak { background: var(--bg-elev); color: var(--muted); }

/* Heatmap duration cells */
.cell-pct { font-weight: 700; color: #fff; font-size: 0.9rem; }
.cell-high { color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; margin-top: 2px; }
.table td[style*="background"] { text-align: right; }

/* Screener controls */
.screener-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.screener-controls input, .screener-controls select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
.screener-controls input:focus, .screener-controls select:focus { outline: none; border-color: var(--accent); }
#screener-count { margin-top: 12px; }

/* Segmented asset-type toggle */
.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.seg-btn {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  color: var(--text);
  border: none;
  border-right: 1px solid var(--border);
  padding: 9px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  margin: 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.seg-btn:last-child { border-right: none; }
.seg-btn:hover { background: var(--accent-soft); }
.seg-btn:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent-hover);
  position: relative;
  z-index: 1;
}
.seg-btn.active { background: var(--accent); color: #fff; }

/* Watchlist */
#watchlist-table { border-collapse: separate; border-spacing: 0; }
#watchlist-table thead th {
  background: var(--bg);
}
#watchlist-table td:first-child,
#watchlist-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--bg);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.25);
}
#watchlist-table thead th:first-child { z-index: 10; }
.table-wrap { position: relative; }
.table-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(10, 10, 12, 0), var(--bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.table-wrap.can-scroll::after { opacity: 1; }
.table-wrap.scrolled-right::after { opacity: 0; }
#watchlist-scroll-hint { margin-top: 10px; font-size: 0.85rem; }
.col-label { display: inline-block; }
.col-info {
  margin-left: 5px;
  width: 14px;
  height: 14px;
  padding: 0;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.table thead th:hover .col-info { opacity: 1; }
.col-info:hover { color: var(--accent-hover); border-color: var(--accent); }
.watchlist-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.page-nav { display: inline-flex; align-items: center; gap: 8px; }
.page-btn {
  background: var(--bg-card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-hover); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-info { color: var(--muted); font-size: 0.9rem; min-width: 130px; text-align: center; }
.page-size { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.page-size select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-family: inherit;
}
.page-size select:focus { outline: none; border-color: var(--accent); }
.table thead th.sorted::after { content: " ↑"; }
.table thead th.sorted.desc::after { content: " ↓"; }
.table td.pos { color: var(--accent); font-weight: 600; }
.table td.neg { color: var(--muted); }
.guide-panel { margin-top: 24px; }
.guide-panel[hidden] { display: none; }
.guide-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.guide-item-head {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-item-head:hover { color: var(--accent-hover); }
.guide-item.open .guide-item-head { color: var(--accent-hover); }
.guide-item-head .kind {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
}
.guide-item-head .kind.computed { color: var(--accent-hover); }
.guide-item-body { display: none; padding: 0 16px 14px; color: var(--muted); font-size: 0.92rem; }
.guide-item.open .guide-item-body { display: block; }
.guide-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 4px;
}
.guide-item.flash { animation: guideFlash 1.4s ease; }
@keyframes guideFlash {
  0% { background: var(--accent-soft); }
  100% { background: var(--bg-card); }
}

/* Screener high/low mode toggle */
.screener-toggle { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mode-btn {
  background: var(--bg-card);
  color: var(--muted);
  border: none;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mode-btn + .mode-btn { border-left: 1px solid var(--border); }
.mode-btn:hover { color: var(--accent-hover); }
.mode-btn.active { background: var(--accent); color: #fff; }
.mode-btn.active:hover { color: #fff; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.similar-list { list-style: none; padding: 0; margin: 0; }
.similar-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.similar-list li:last-child { border-bottom: none; }
.similar-list a { font-weight: 600; }
.similar-list .meta { color: var(--muted); font-size: 0.85rem; }

.chart-wrap { position: relative; height: 420px; }

/* Chart period selector */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head h2 { margin: 0; }
.chart-periods { display: flex; gap: 6px; }
.period-btn {
  background: var(--bg-elev);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.period-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.period-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.pricing-card.featured { border-color: var(--accent); }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.pricing-card li { padding: 6px 0; color: var(--muted); }
.pricing-card li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 16px; }
.badge { background: var(--accent-soft); color: var(--accent-hover); font-size: 0.75rem; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }

/* Alerts */
.alert {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.alert[hidden] { display: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Calculator */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.privacy-badge strong { color: #fff; }
.input-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 720px) { .input-groups { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ror-grid { grid-template-columns: 1fr; } }
.input-group {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.input-group h3 { margin: 0 0 2px; font-size: 1rem; }
.group-hint { margin: 0 0 16px; font-size: 0.85rem; }
.calc-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.calc-field input[type="number"] {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}
.calc-field input[type="number"]:focus { outline: none; border-color: var(--accent); }
.range-field { display: flex; align-items: center; gap: 10px; }
.range-field input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-field input[type="number"] { flex: 0 0 68px; }
.range-field .unit { color: var(--muted); font-size: 0.9rem; flex: 0 0 auto; }
.money-field {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.money-field:focus-within { border-color: var(--accent); }
.money-field .prefix { padding-left: 12px; color: var(--muted); font-weight: 600; }
.money-field input[type="number"] {
  border: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  padding-left: 6px;
}
.money-field input[type="number"]:focus { outline: none; border-color: transparent; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin: -2px 0 0; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-hover);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--text); }

.expectancy-display { text-align: center; padding: 18px 0 22px; }
.expectancy-value { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.expectancy-r { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.composite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.stat-label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-value { font-size: 1.35rem; font-weight: 700; margin: 6px 0 2px; }
.stat-sub { color: var(--muted); font-size: 0.8rem; }

.ror-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ror-card {
  text-align: center;
  padding: 18px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ror-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.ror-value { font-size: 2.6rem; font-weight: 800; }
.ror-interp { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.ror-survive { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.ror-survive[hidden] { display: none; }

.risk-meter { margin: 16px auto 0; max-width: 460px; }
.risk-meter[hidden] { display: none; }
.risk-meter-track {
  position: relative;
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}
.risk-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 4px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}
.risk-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 5px;
}

.streak-vis-wrap { margin-top: 16px; }
.streak-vis-wrap[hidden] { display: none; }
.streak-head { margin: 0 0 8px; font-size: 0.92rem; }
.decline-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  height: 110px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.decline-bar {
  flex: 1;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  transition: height 0.2s;
}
.streak-caption { font-size: 0.85rem; text-align: center; margin: 8px 0 0; }

.csv-drop {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.csv-drop:hover, .csv-drop.dragover { border-color: var(--accent); background: var(--accent-soft); }
.csv-drop p { margin: 0 0 4px; }
.csv-confirm {
  margin-top: 12px;
  color: var(--text);
  font-size: 0.92rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.csv-confirm[hidden] { display: none; }
.column-picker { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.column-picker[hidden] { display: none; }
.column-picker label { color: var(--muted); font-size: 0.9rem; }
.column-picker select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.9rem;
  font-family: inherit;
}
.column-picker select:focus { outline: none; border-color: var(--accent); }
#trades-card { margin-top: 24px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-hover); }
.breadcrumbs li[aria-current] { color: var(--text); font-weight: 600; }

/* Detail badge */
.detail-badge {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.badge-type, .badge-decile, .badge-distance {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-type { background: var(--accent-soft); color: var(--accent-hover); }
.badge-decile { background: var(--bg-elev); color: var(--muted); }
.badge-distance { background: var(--bg-elev); color: var(--accent); }

/* Scope banner */
.scope-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 16px;
}

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.summary-stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.summary-stat .label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-stat .value { font-size: 1.35rem; font-weight: 700; margin-top: 4px; }

/* Ticker news */
#ticker-news-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
#ticker-news-table th, #ticker-news-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
#ticker-news-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
#ticker-news-table th:first-child, #ticker-news-table td:first-child { text-align: left; }

/* News ranking */
.desc-link {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-size: 0.8em;
  font-weight: 700;
  text-decoration: none;
  cursor: help;
}
.desc-link:hover { color: var(--accent-hover); }
.cat-badge { color: #16a34a; font-size: 0.85em; cursor: help; }
#news-table td.left { text-align: left; max-width: 420px; white-space: normal; }
#news-table td.left a { font-weight: 500; }

/* Ticker news */
#ticker-news-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
#ticker-news-table th, #ticker-news-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
#ticker-news-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
#ticker-news-table th:first-child, #ticker-news-table td:first-child { text-align: left; }

/* News ranking */
.desc-link {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-size: 0.8em;
  font-weight: 700;
  text-decoration: none;
  cursor: help;
}
.desc-link:hover { color: var(--accent-hover); }
.cat-badge { color: #16a34a; font-size: 0.85em; cursor: help; }
#news-table td.left { text-align: left; max-width: 420px; white-space: normal; }
#news-table td.left a { font-weight: 500; }

