/* ──────────────────────────────────────────────
   SR-Agents project page
   ────────────────────────────────────────────── */

:root {
  /* palette */
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --surface: #ffffff;
  --ink: #181a2c;
  --ink-soft: #3d4159;
  --ink-mute: #6c7088;
  --line: #e6e3da;
  --line-soft: #efece4;

  --accent: #4338ca;          /* indigo */
  --accent-2: #6d28d9;        /* violet */
  --accent-soft: #eef2ff;
  --highlight: #f59e0b;       /* amber for best */
  --positive: #059669;
  --warning: #d97706;
  --critical: #dc2626;

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-serif: 'Newsreader', 'Iowan Old Style', 'Charter', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;

  /* layout */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(20, 22, 40, 0.04), 0 4px 16px rgba(20, 22, 40, 0.04);
  --shadow-lg:   0 8px 32px rgba(20, 22, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─────────────  NAVBAR  ───────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(20, 22, 40, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }
.nav-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  text-decoration: none;
}
.navbar:not(.scrolled) .nav-btn { background: rgba(255,255,255,0.6); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────────  HERO  ───────────── */

.hero {
  position: relative;
  padding: 132px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(168, 85, 247, 0.14), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245, 158, 11, 0.06), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #dcdcfb;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  background: linear-gradient(120deg, #1a1c33 0%, #4338ca 60%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 auto 28px;
}
.hero-slogan em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-subtitle strong { color: var(--ink); font-weight: 600; }

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.authors .author { white-space: nowrap; }
.authors a { color: var(--ink-soft); transition: color 0.15s ease; }
.authors a:hover { color: var(--accent); text-decoration: none; }

.affiliation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.affiliation .affil-item { white-space: nowrap; }
.affiliation .affil-sep { color: var(--ink-mute); opacity: 0.6; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--ink-mute);
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn svg { flex-shrink: 0; }
.hf-icon { font-size: 16px; line-height: 1; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  padding: 24px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.85));
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.stat {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─────────────  SECTION SCAFFOLDING  ───────────── */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }
.section-alt { background: var(--bg-alt); }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

.lede {
  max-width: 760px;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 40px;
}

/* ─────────────  TL;DR  ───────────── */

.tldr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.tldr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tldr-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.tldr-icon { font-size: 28px; line-height: 1; margin-bottom: 14px; }
.tldr-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}
.tldr-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─────────────  FIGURE  ───────────── */

.figure {
  margin: 36px 0 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.figure figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────  STAGES (paradigm)  ───────────── */

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.stage {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stage-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  opacity: 0.6;
}
.stage h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.stage p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ─────────────  BENCH TABLE  ───────────── */

.bench-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.bench-table th,
.bench-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.bench-table th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.bench-table td.num,
.bench-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bench-table tr:last-child td { border-bottom: none; }
.bench-table .total-row td { background: var(--accent-soft); font-weight: 600; }

.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.bench-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bench-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.5;
  transition: opacity 0.18s ease;
}
.bench-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(67, 56, 202, 0.18);
}
.bench-card:hover::before { opacity: 1; }
.bench-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.bench-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.bench-card p strong { color: var(--ink); font-weight: 600; }

/* sub-section title within a section */
.subsection-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  margin: 64px 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* skill card — illustrative gold-skill viewer */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.skill-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.04), rgba(109, 40, 217, 0.04));
  border-bottom: 1px solid var(--line);
}
.skill-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.skill-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 8px 0 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.skill-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.skill-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  white-space: nowrap;
}

.skill-card-body {
  padding: 8px 26px 22px;
}
.skill-intro {
  margin: 0;
  padding: 14px 0 4px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.skill-section { padding: 18px 0; border-top: 1px dashed var(--line-soft); }
.skill-section:first-child { border-top: none; }
.skill-section h5 {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.skill-section p, .skill-section li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.skill-section p { margin: 0 0 8px; }
.skill-section ul { margin: 0; padding-left: 20px; }
.skill-section li { margin-bottom: 4px; }
.skill-section strong { color: var(--ink); }
.skill-section code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent);
}

.skill-formula, .skill-tool, .skill-trace {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: #f8f7f1;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 6px 0 4px;
  overflow-x: auto;
  line-height: 1.55;
  white-space: pre;
}
.skill-formula { color: var(--ink); }
.skill-tool { color: var(--ink-soft); }
.skill-tool .t-kw { color: var(--accent); font-weight: 600; }
.skill-tool .t-arg { color: var(--ink); }
.skill-tool .t-type { color: var(--positive); font-style: italic; }
.skill-trace { background: #0f1226; color: #e6e8ff; border-left-color: var(--accent-2); }
.skill-trace .t-call { color: #93c5fd; font-weight: 600; }
.skill-trace .t-result { color: #6ee7b7; font-weight: 600; }

.skill-card-footer {
  padding: 16px 26px;
  font-size: 13.5px;
  color: var(--ink-mute);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.skill-card-footer em { color: var(--ink); font-style: italic; font-weight: 500; }

/* ─────────────  FINDINGS  ───────────── */

.findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

/* spotlight: text + chart side by side, color-coded border */
.finding-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--ink-mute);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.finding-spotlight:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.finding-spotlight.finding-positive {
  border-left-color: var(--positive);
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.04) 0%, var(--surface) 55%);
}
.finding-spotlight.finding-warning  {
  border-left-color: var(--warning);
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.045) 0%, var(--surface) 55%);
}
.finding-spotlight.finding-neutral  {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(67, 56, 202, 0.04) 0%, var(--surface) 55%);
}
.finding-spotlight.finding-critical {
  border-left-color: var(--critical);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.04) 0%, var(--surface) 55%);
}

.finding-spotlight .spotlight-text { display: flex; flex-direction: column; justify-content: center; }

.rq-question {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.rq-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  margin-right: 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  font-style: normal;        /* override parent italic */
  letter-spacing: 0.06em;
  vertical-align: 2px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
}
/* severity-tinted chip backgrounds */
.finding-positive .rq-label { background: #d1fae5; color: #047857; }
.finding-warning  .rq-label { background: #fef3c7; color: #b45309; }
.finding-neutral  .rq-label { background: var(--accent-soft); color: var(--accent); }
.finding-critical .rq-label { background: #fee2e2; color: #b91c1c; }

.rq-answer {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.rq-answer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.35;
}
.finding-positive .rq-answer { color: var(--ink); }
.finding-positive .rq-answer::after {
  background: linear-gradient(90deg, var(--positive), transparent);
  opacity: 0.55;
}
.finding-warning .rq-answer::after {
  background: linear-gradient(90deg, var(--warning), transparent);
  opacity: 0.55;
}
.finding-neutral .rq-answer::after {
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}
.finding-critical .rq-answer::after {
  background: linear-gradient(90deg, var(--critical), transparent);
  opacity: 0.5;
}
.finding-spotlight .spotlight-text h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}
.finding-spotlight .spotlight-text p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 15px;
}
.finding-spotlight .spotlight-text p strong { color: var(--ink); font-weight: 600; }

.spotlight-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font-sans);
}
.chart-caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.5;
  text-align: center;
}

/* compact card rows between spotlights */
.findings-row { display: grid; gap: 14px; margin-bottom: 14px; }
.findings-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.findings-row-1 { grid-template-columns: 1fr; }
.findings-row .finding { margin: 0; }

@media (max-width: 820px) {
  .finding-spotlight {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }
  .findings-row-2 { grid-template-columns: 1fr; }
}

.finding {
  position: relative;
  padding: 28px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--ink-mute);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.finding:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.finding-positive { border-left-color: var(--positive); }
.finding-warning  { border-left-color: var(--warning); }
.finding-neutral  { border-left-color: var(--accent); }
.finding-critical { border-left-color: var(--critical); }

.finding-rq {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.finding-positive .finding-rq { background: #d1fae5; color: #047857; }
.finding-warning  .finding-rq { background: #fef3c7; color: #b45309; }
.finding-neutral  .finding-rq { background: var(--accent-soft); color: var(--accent); }
.finding-critical .finding-rq { background: #fee2e2; color: #b91c1c; }

.finding h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.35;
}
.finding p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.finding strong { color: var(--ink); font-weight: 600; }

.finding-summary {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05), rgba(109, 40, 217, 0.06));
  border: 1px solid #dcdcfb;
  border-radius: var(--radius);
  margin-top: 8px;
}
.finding-summary h3 {
  font-family: var(--font-serif);
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--ink);
}
.finding-summary p { margin: 0; color: var(--ink-soft); }
.finding-summary strong { color: var(--accent); }

/* ─────────────  LEADERBOARD  ───────────── */

.lb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lb-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.lb-control label { font-weight: 500; color: var(--ink); }
.lb-control select {
  padding: 6px 28px 6px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236c7088' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.lb-legend {
  margin-left: auto;
  gap: 14px;
  font-size: 13px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.dot-oracle { background: #c7d2fe; }
.dot-best { background: var(--highlight); }

.lb-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.lb-table thead th {
  padding: 12px 12px;
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: left;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.lb-table th.num,
.lb-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lb-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.lb-table .lb-model {
  font-weight: 600;
  color: var(--ink);
  background: rgba(67, 56, 202, 0.03);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.lb-table .lb-method { color: var(--ink); white-space: nowrap; }
.lb-table .lb-avg { font-weight: 700; color: var(--ink); border-left: 2px solid var(--line); }
.lb-table tr.is-oracle td { background: #f1f4ff; }
.lb-table tr.is-oracle .lb-method { color: var(--accent); font-style: italic; }
.lb-table tr.model-divider td { border-top: 2px solid var(--line); }

/* sortable headers */
.lb-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 22px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lb-table th.sortable:hover { color: var(--accent); background: var(--accent-soft); }
.lb-table th.sortable .sort-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 9px;
  height: 5px;
  opacity: 0.25;
}
.lb-table th.sortable .sort-arrow::before,
.lb-table th.sortable .sort-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.lb-table th.sortable .sort-arrow::before {
  top: -5px;
  border-bottom: 4px solid currentColor;
  margin-left: -4px;
}
.lb-table th.sortable .sort-arrow::after {
  bottom: -5px;
  border-top: 4px solid currentColor;
  margin-left: -4px;
}
.lb-table th.sortable.active { color: var(--accent); background: var(--accent-soft); }
.lb-table th.sortable.active .sort-arrow { opacity: 1; }
.lb-table th.sortable.active.asc .sort-arrow::after { opacity: 0; }
.lb-table th.sortable.active.desc .sort-arrow::before { opacity: 0; }

.lb-hint { color: var(--ink-mute); font-size: 12px; }

.cell-best {
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 4px;
}
.cell-second {
  text-decoration: underline;
  text-decoration-color: var(--ink-mute);
  text-underline-offset: 3px;
}

.underlined { text-decoration: underline; text-decoration-color: var(--ink-mute); text-underline-offset: 3px; }

.lb-footnote {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.6;
}
/* Submit-a-result: collapsible disclosure widget */
.lb-submit {
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.lb-submit:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.lb-submit[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.lb-submit > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
  position: relative;
  transition: background 0.15s ease;
}
.lb-submit > summary::-webkit-details-marker { display: none; }
.lb-submit > summary:hover { background: var(--accent-soft); }

.lb-submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease;
}
.lb-submit[open] .lb-submit-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.lb-submit-chevron {
  margin-left: auto;
  color: var(--ink-mute);
  transition: transform 0.25s ease, color 0.15s ease;
}
.lb-submit[open] .lb-submit-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.lb-submit-body {
  padding: 4px 22px 22px;
  border-top: 1px solid var(--line-soft);
  margin-top: 2px;
  animation: lb-submit-expand 0.22s ease;
}
@keyframes lb-submit-expand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lb-submit-body p {
  margin: 14px 0 10px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.lb-submit-body ul {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
.lb-submit-body ul li { margin-bottom: 4px; }
.lb-submit-body ul li strong { color: var(--ink); font-weight: 600; }
.lb-submit-body a { font-weight: 500; }
.lb-submit-body a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* retrieval block-specific styling */
.lb-retrieval tbody tr.method-divider td { border-top: 2px solid var(--line); }

/* ─────────────  FUTURE WORK  ───────────── */

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.future-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.future-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(67, 56, 202, 0.18);
}
.future-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.future-card-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1.2;
}
.future-card h3 {
  font-size: 16.5px;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
.future-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}
.future-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.future-refs-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.future-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.future-ref:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.future-ref .ref-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.future-ref:hover .ref-tag {
  background: var(--surface);
}
.future-ref .ref-title {
  font-weight: 500;
  white-space: nowrap;
}

/* ─────────────  CITATION  ───────────── */

.cite-card {
  position: relative;
  background: #0f1226;
  color: #e6e8ff;
  border-radius: var(--radius);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}
.cite-card pre {
  margin: 0;
  font-family: inherit;
  white-space: pre;
  color: inherit;
}
.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #e6e8ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.copy-btn.copied { background: #059669; border-color: #059669; }

/* ─────────────  FOOTER  ───────────── */

.footer {
  background: #0f1226;
  color: #c5c8e2;
  padding: 64px 0 24px;
}
.footer a { color: #c5c8e2; border-bottom: 1px solid transparent; }
.footer a:hover { color: #fff; border-color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.footer-col p { color: #9fa3c4; font-size: 14px; line-height: 1.6; margin: 0; max-width: 280px; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #7b80a3;
  text-align: center;
}

/* ─────────────  RESPONSIVE  ───────────── */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    gap: 2px;
  }
  .navbar.open .nav-links a { padding: 10px 14px; }
  .nav-cta { display: none; }
}

@media (max-width: 760px) {
  .hero { padding: 96px 0 40px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 20px; padding: 18px 12px; }
  .stat { flex-basis: 40%; border-right: none; padding: 8px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .lb-control { width: 100%; }
  .lb-control select { flex: 1; }
  .lb-legend { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* print */
@media print {
  .navbar, .hero-bg, .copy-btn, .lb-controls { display: none; }
  .hero { padding-top: 40px; }
  body { font-size: 11pt; }
}
