/* Active-SWE Leaderboard — modern, colorful, clean */

:root {
  --text: #1b1f24;
  --text-2: #465362;
  --text-3: #667382;
  --border: #d1d9e0;
  --border-light: #e8ecef;
  --link: #0969da;
  --link-hover: #0550b0;
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-hover: #f0f4f8;
  --accent: #0969da;
  --accent-light: #ddf4ff;
  --bar-fill: #0969da;
  --frontier: #2da866;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* section accent colors */
  --c-leaderboard: #0969da;
  --c-chart: #8250df;
  --c-cost: #2da866;
  --c-dataset: #1a7f37;
  --c-methodology: #bf8700;
  --c-about: #cf222e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(9,105,218,.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(130,80,223,.05), transparent),
    radial-gradient(ellipse 60% 40% at 10% 15%, rgba(26,127,55,.04), transparent),
    #fbfcfd;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

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

/* ============ Main ============ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ============ Hero ============ */
.hero {
  padding: 56px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(9,105,218,.07), transparent),
    linear-gradient(180deg, #f0f6ff 0%, #ffffff 60%);
  border-radius: 16px;
  margin-top: 16px;
  border: 1px solid rgba(9,105,218,.1);
  box-shadow: 0 1px 3px rgba(9,105,218,.06);
}
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}
.hero-wordmark {
  display: block;
  width: min(560px, 84vw);
  height: auto;
  object-fit: contain;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--text);
}
.hero-tagline {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 auto 28px;
  max-width: 600px;
  line-height: 1.7;
}

/* Hero links row */
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.hero-links a:hover {
  border-color: var(--link);
  color: var(--link);
  background: var(--accent-light);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(9,105,218,.15);
}
.hero-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-stat {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(9,105,218,.12);
  border-radius: 8px;
  padding: 10px 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  transition: box-shadow 0.2s;
}
.hero-stat:hover {
  box-shadow: 0 2px 8px rgba(9,105,218,.1);
}
.hero-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

/* ============ Section ============ */
.section {
  margin-top: 40px;
  scroll-margin-top: 24px;
}
.section-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 2px;
  flex-shrink: 0;
}
#leaderboard .section-title::before { background: var(--c-leaderboard); }
#chart .section-title::before { background: var(--c-chart); }
#cost-chart .section-title::before { background: var(--c-cost); }
#dataset .section-title::before { background: var(--c-dataset); }
#task-formulation .section-title::before { background: var(--c-methodology); }
#about .section-title::before { background: var(--c-about); }
#citation .section-title::before { background: var(--c-chart); }
#disclaimer .section-title::before { background: #8c959f; }

.subsection-title {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ============ Controls ============ */
.lb-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lb-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-filter-label {
  font-size: 15px;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.lb-filter select,
.lb-filter input {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.lb-filter select:focus,
.lb-filter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9,105,218,.12);
}
.lb-search-box { margin-left: auto; }
.lb-filter input { width: 170px; }
.lb-result-count {
  font-size: 15px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ============ Table ============ */
.lb-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 700px;
}
.lb-table th {
  background: linear-gradient(180deg, #f6f8fa, #eef2f6);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  padding: 12px 16px;
  border-bottom: 2px solid var(--c-leaderboard);
  border-right: 1px solid var(--border-light);
  font-size: 14px;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.lb-table th:last-child { border-right: 0; }
.lb-table th.sortable { cursor: pointer; }
.lb-table th.sortable:hover { background: var(--bg-hover); }
.lb-table th .arrow { font-size: 9px; opacity: 0; margin-left: 3px; }
.lb-table th.sort-asc .arrow,
.lb-table th.sort-desc .arrow { opacity: 1; color: var(--accent); }
.lb-table th.sort-asc .arrow::after { content: "\25B2"; }
.lb-table th.sort-desc .arrow::after { content: "\25BC"; }

.lb-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  white-space: nowrap;
}
.lb-table td:last-child { border-right: 0; }
.lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-table tbody tr:hover { background: var(--bg-hover); }

.col-rank {
  color: var(--text-3);
  width: 36px;
  text-align: center;
}
.col-model {
  font-weight: 600;
  color: var(--text);
}
.model-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.model-logo {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.col-org { color: var(--text-2); }
.col-meta { color: var(--text-3); font-variant-numeric: tabular-nums; }
.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.col-num.best {
  font-weight: 700;
  color: var(--accent);
}
.col-notes {
  color: var(--text-3);
  font-size: 13px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Performance Charts ============ */
.chart-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(31,35,40,.06);
}
.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border-light);
}
.chart-title-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.chart-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.chart-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.chart-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chart-filter-label {
  font-size: 15px;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}
.chart-filter select {
  min-width: 110px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.chart-filter select:focus {
  outline: none;
  border-color: var(--c-chart);
  box-shadow: 0 0 0 3px rgba(130,80,223,.12);
}

.chart-wrap {
  padding: 16px 18px 0;
  background: var(--bg);
  overflow-x: auto;
}
.chart-bars {
  min-height: 410px;
  display: flex;
  align-items: flex-end;
}
.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 980px;
  overflow: visible;
}
.chart-grid-line {
  stroke: #d8dee5;
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.chart-axis-line {
  stroke: #c4cbd3;
  stroke-width: 1;
}
.chart-axis-tick {
  fill: var(--text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chart-axis-title {
  fill: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.chart-value-label {
  fill: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chart-model-label {
  fill: var(--text-2);
  font-size: 14px;
  font-weight: 650;
}
.bar-mark rect {
  transition: filter .18s ease, opacity .18s ease;
}
.bar-mark:hover rect,
.bar-mark:focus rect {
  filter: brightness(.94);
  stroke-width: 3;
}
.bar-mark:focus,
.scatter-point:focus { outline: none; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 0 22px 16px;
  color: var(--text-2);
  font-size: 13px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.legend-closed { background: #6b7682; }
.legend-open {
  background: rgba(107,118,130,.28);
  border: 1px solid #6b7682;
}
.legend-frontier {
  border-radius: 50%;
  background: var(--frontier);
}
.legend-shape {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #9aa3ad;
}
.legend-circle { border-radius: 50%; }
.legend-diamond { transform: rotate(45deg); }
.scatter-wrap { padding-top: 10px; }
.cost-chart-plot { min-height: 480px; }
.scatter-svg { min-width: 900px; }
.scatter-grid-vertical {
  stroke: #e6eaee;
  stroke-width: 1;
}
.frontier-line {
  fill: none;
  stroke: var(--frontier);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .76;
}
.efficiency-label {
  fill: var(--text-3);
  font-size: 14px;
  font-style: italic;
}
.scatter-leader {
  stroke: #b8c0c8;
  stroke-width: 1;
}
.scatter-mark {
  fill: #9aa3ad;
  stroke: var(--bg);
  stroke-width: 2;
  transition: transform .15s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.scatter-hit {
  fill: transparent;
  pointer-events: all;
}
.scatter-point {
  cursor: crosshair;
  pointer-events: bounding-box;
}
.scatter-mark.is-frontier {
  fill: var(--frontier);
}
.scatter-model-label {
  fill: var(--text-3);
  stroke: var(--bg);
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-size: 13px;
  font-weight: 650;
}
.scatter-model-label.is-frontier {
  fill: #278f59;
  font-weight: 700;
}
.scatter-point:hover .scatter-mark,
.scatter-point:focus .scatter-mark {
  transform: scale(1.45);
}
.scatter-point:hover .scatter-model-label,
.scatter-point:focus .scatter-model-label {
  fill: var(--text);
}
.scatter-point:focus .scatter-mark { stroke: var(--text); }
.scatter-point .is-open { stroke-width: 1.5; }
.cost-chart-plot .chart-empty {
  padding: 80px 0;
}
.scatter-tooltip {
  position: fixed;
  z-index: 1000;
  min-width: 190px;
  max-width: calc(100vw - 20px);
  padding: 10px 11px;
  pointer-events: none;
  border: 1px solid rgba(45,168,102,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(31,35,40,.16), 0 2px 8px rgba(31,35,40,.08);
  backdrop-filter: blur(8px);
}
.scatter-tooltip[hidden] { display: none; }
.scatter-tooltip-model {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scatter-tooltip-model img {
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  object-fit: contain;
}
.scatter-tooltip-model strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}
.scatter-tooltip-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.scatter-tooltip-values span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.scatter-tooltip-values small {
  color: var(--text-3);
  font-size: 11px;
}
.scatter-tooltip-values b {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chart-empty {
  text-align: center;
  color: var(--text-3);
  padding: 40px 0;
  font-size: 14px;
  width: 100%;
}

/* ============ Dataset ============ */
#dataset-text p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
#dataset-text b { color: var(--text); }

.dataset-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
  min-width: 620px;
}
.dataset-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.dataset-table th,
.dataset-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  text-align: left;
}
.dataset-table th {
  background: linear-gradient(180deg, #f6f8fa, #eef6f0);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--c-dataset);
}
.dataset-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ============ Task Formulation ============ */
.task-formulation-copy {
  padding: 18px 22px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--c-methodology);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffdf5, #ffffff 70%);
  box-shadow: 0 1px 3px rgba(191,135,0,.06);
}
.task-formulation-copy p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.8;
}
.task-formulation-copy p:last-child { margin-bottom: 0; }
.task-formulation-copy strong { color: var(--text); }

/* Language pie chart */
.pie-chart {
  margin: 16px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafdf9, #ffffff);
  box-shadow: 0 1px 3px rgba(26,127,55,.05);
}
.pie-chart-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.pie-chart-body {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.pie-svg {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}
.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}
.pie-legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
}
.pie-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pie-legend-label {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.pie-legend-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pie-legend-pct {
  font-size: 14px;
  color: var(--text-3);
  text-align: right;
  width: 44px;
}

/* ============ Methodology ============ */
.methodo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 0;
}
.methodo-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--c-methodology);
  transition: box-shadow 0.2s, transform 0.2s;
}
.methodo-card:hover {
  box-shadow: 0 3px 12px rgba(191,135,0,.1);
  transform: translateY(-1px);
}
.methodo-card:nth-child(1) { border-left-color: #0969da; }
.methodo-card:nth-child(2) { border-left-color: #8250df; }
.methodo-card:nth-child(3) { border-left-color: #1a7f37; }
.methodo-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.methodo-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.methodo-card code {
  font-size: 14px;
}

/* ============ About ============ */
.about-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin: 0 0 8px;
}
.about-desc b { color: var(--text); }

/* ============ About / News ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fff5f5, #ffffff);
  overflow: hidden;
}
.news-list li {
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
}
.news-list li:last-child { border-bottom: 0; }
.news-date {
  display: inline-block;
  width: 100px;
  color: var(--c-about);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
}
.about-links a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}
.about-links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #f6f8fa, #eef1f4);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  color: var(--text-3);
  font-size: 15px;
}

/* ============ Empty state ============ */
.lb-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-3);
}
.chart-bars .chart-empty {
  text-align: center;
  color: var(--text-3);
  padding: 40px 0;
  font-size: 14px;
}

/* ============ Metric Notes ============ */
.lb-metric-notes {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: linear-gradient(180deg, #f6f8fa, #ffffff);
}
.lb-metric-notes p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 8px;
}
.lb-metric-notes p:last-child { margin-bottom: 0; }
.lb-metric-notes b { color: var(--text); }
.lb-metric-notes code {
  font-size: 14px;
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 3px;
}

.leaderboard-notices {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: 12px;
  margin-top: 12px;
}
.leaderboard-notice {
  position: relative;
  padding: 15px 17px 15px 19px;
  overflow: hidden;
  border: 1px solid #d9e7fa;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f8ff, #ffffff 70%);
}
.leaderboard-notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c-leaderboard);
}
.leaderboard-notice-submit {
  border-color: #d8ece2;
  background: linear-gradient(135deg, #f2faf6, #ffffff 70%);
}
.leaderboard-notice-submit::before { background: var(--c-cost); }
.leaderboard-notice-label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.leaderboard-notice p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.leaderboard-notice strong { color: var(--text); }
.leaderboard-notice a { font-weight: 600; }

/* ============ Cost Methodology ============ */
.cost-disclosure {
  margin-top: 14px;
  padding: 17px 19px;
  border: 1px solid #d8e7df;
  border-left: 4px solid var(--frontier);
  border-radius: 11px;
  background: linear-gradient(135deg, #f3faf6, #ffffff 72%);
}
.cost-disclosure h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 16px;
}
.cost-disclosure p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.72;
}
.cost-disclosure strong { color: var(--text); }
.frontier-explainer {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid #e0ebe5;
}

/* ============ Citation ============ */
.citation-text {
  font-size: 15px;
  color: var(--text-2);
  margin: 0 0 10px;
}
.citation-block {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 20px;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: var(--text-2);
  min-height: 60px;
}

/* ============ Disclaimer ============ */
.disclaimer-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ============ Responsive ============ */
@media (max-width: 700px) {
  .hero-wordmark { width: min(430px, 90vw); }
  .hero-stat-value { font-size: 18px; }
  .lb-filter input { width: 130px; }
  .leaderboard-notices { grid-template-columns: 1fr; }
}
