:root {
  --bg: #f1f7f4;
  --bg-alt: #e4f0e9;
  --paper: #fbfdfc;
  --ink: #102521;
  --ink-soft: #405b53;
  --ink-muted: #5d756c;
  --line: rgba(16, 37, 33, 0.12);
  --accent: #0f766e;
  --accent-dark: #0a5b55;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --accent-2: #4f7d3a;
  --accent-2-dark: #3d642c;
  --accent-2-soft: rgba(79, 125, 58, 0.12);
  --accent-3: #8a6516;
  --accent-3-soft: rgba(154, 116, 30, 0.14);
  --negative: #a5573f;
  --negative-soft: rgba(165, 87, 63, 0.12);
  --proprietary: #855a12;
  --proprietary-soft: rgba(154, 116, 30, 0.16);
  --open: #2f6b4f;
  --open-soft: rgba(47, 107, 79, 0.1);
  --shadow-sm: 0 2px 8px rgba(12, 35, 29, 0.05);
  --shadow-md: 0 18px 34px rgba(12, 35, 29, 0.09);
  --radius: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 37, 33, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(16, 37, 33, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

::selection {
  background: rgba(15, 118, 110, 0.2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.text-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.meta-pill,
.soft-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta-pill {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.soft-pill {
  background: var(--accent-2-soft);
  color: var(--accent-2-dark);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 247, 244, 0.9);
  backdrop-filter: blur(12px);
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #f7fdfa;
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.24);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-text {
  font-size: 0.98rem;
}

.nav-main {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 160ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    color 140ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.nav-cta-primary {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-dark);
  border-color: rgba(15, 118, 110, 0.18);
}

.nav-cta-cite {
  background: var(--accent-3-soft);
  color: #705212;
  border-color: rgba(154, 116, 30, 0.24);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 36px 0 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(79, 125, 58, 0.12), transparent 30%),
    radial-gradient(circle at left 18%, rgba(15, 118, 110, 0.13), transparent 30%),
    radial-gradient(circle at 62% 90%, rgba(154, 116, 30, 0.06), transparent 25%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 30px;
  align-items: end;
}

.hero-heading {
  margin-bottom: 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 253, 252, 0.78);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-icon-svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}

.chip-accent {
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.hero-title,
.section-title,
.motivation-card h3,
.card h3,
.figure-card h3,
.panel-title,
.scenario-card h3,
.explore-subhead h3,
.rule-card h4 {
  font-family: "Fraunces", serif;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.85rem, 7.1vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: none;
}

.gradient-text {
  background: linear-gradient(112deg, var(--accent-dark) 6%, var(--accent) 46%, #4e8c62 78%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .gradient-text {
    background: none;
    color: var(--accent-dark);
  }
}

.hero-subtitle {
  margin: 15px 0 0;
  max-width: 1040px;
  font-size: clamp(1.16rem, 1.8vw, 1.55rem);
  line-height: 1.38;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-subtitle .gradient-text {
  font-weight: 700;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero-meta {
  display: grid;
  gap: 16px;
}

.hero-meta-row {
  display: grid;
  gap: 7px;
}

.hero-meta-label,
.figure-label,
.card-tag,
.panel-kicker,
.leaderboard-kicker,
.field-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta-label {
  color: var(--accent-dark);
}

.hero-meta-value {
  min-height: 18px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
  border-bottom: 1px solid rgba(16, 37, 33, 0.14);
  padding-bottom: 8px;
}

.author-list,
.affiliation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  font-size: 0.95rem;
}

.author-list span,
.affiliation-list span {
  white-space: nowrap;
}

.author-list sup,
.affiliation-list sup {
  color: var(--accent);
  font-size: 0.66em;
  font-weight: 800;
  margin-left: 1px;
}

.equal-mark {
  color: var(--accent-3);
  font-weight: 800;
  margin-left: 1px;
}

.equal-note {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-style: italic;
}

.hero-abstract {
  margin-top: 24px;
  max-width: 720px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(251, 253, 252, 0.88);
  box-shadow: var(--shadow-sm);
}

.hero-abstract p {
  margin: 0;
  color: var(--ink);
}

.abstract-emphasis {
  color: var(--accent-dark);
  font-weight: 800;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
  cursor: pointer;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f5fbf8;
  box-shadow: 0 6px 14px rgba(16, 37, 33, 0.16);
}

.btn-primary:hover {
  background: #173b33;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #f7fdfa;
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.24);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #08504a, #0d6b63);
}

.hero-panel {
  align-self: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 253, 252, 0.97), rgba(226, 240, 233, 0.96));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.panel-card {
  padding-bottom: 0;
}

.panel-kicker {
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-points li + li {
  margin-top: 7px;
}

/* -------------------------------------------------------------------------
   Stats
   ------------------------------------------------------------------------- */

.stats-band {
  padding: 18px 0 0;
}

.stats-grid,
.card-grid,
.analysis-figure-grid,
.action-grid,
.sample-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  gap: 9px;
  min-height: 124px;
  padding: 20px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(251, 253, 252, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: var(--shadow-md);
}

.stat-card-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-icon {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.13), rgba(15, 118, 110, 0.05));
  color: var(--accent-dark);
}

.stat-icon-svg {
  width: 15px;
  height: 15px;
  display: block;
}

.stat-num {
  font-family: "Fraunces", serif;
  font-size: 1.95rem;
  line-height: 1;
  color: var(--accent-dark);
  text-align: center;
  letter-spacing: -0.03em;
}

.stat-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.stat-sub {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Sections and shared cards
   ------------------------------------------------------------------------- */

.section {
  padding: 76px 0 68px;
  scroll-margin-top: 92px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(228, 240, 233, 0.8), rgba(241, 247, 244, 0.78));
  border-top: 1px solid rgba(16, 37, 33, 0.06);
  border-bottom: 1px solid rgba(16, 37, 33, 0.06);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 24px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: var(--accent-dark);
  letter-spacing: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.overview-text p,
.motivation-card p,
.card p,
.figure-card figcaption,
.panel-sub,
.explore-lead,
.explore-note,
.site-footer p {
  color: var(--ink-soft);
}

.overview-text p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.78;
}

.overview-text p:last-child {
  margin-bottom: 0;
}

.lead-paragraph {
  font-size: 1.06rem !important;
  color: var(--ink) !important;
  line-height: 1.72 !important;
}

.motivation-stack {
  display: grid;
  gap: 11px;
}

.motivation-card,
.card,
.figure-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.motivation-card,
.card {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 20px;
}

.motivation-card::before,
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.motivation-card:nth-child(2)::before,
.card:nth-child(2)::before {
  background: var(--accent-2);
}

.motivation-card:nth-child(3)::before,
.card:nth-child(3)::before {
  background: var(--accent-3);
}

.motivation-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.18;
}

.motivation-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.card h3 {
  margin: 0 0 11px;
  font-size: 1.15rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}

.mini-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-card-icon {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.05));
  color: var(--accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.motivation-card:nth-child(2) .mini-card-icon,
.card:nth-child(2) .mini-card-icon {
  border-color: rgba(79, 125, 58, 0.2);
  background: linear-gradient(180deg, rgba(79, 125, 58, 0.13), rgba(79, 125, 58, 0.05));
  color: var(--accent-2-dark);
}

.motivation-card:nth-child(3) .mini-card-icon,
.card:nth-child(3) .mini-card-icon {
  border-color: rgba(154, 116, 30, 0.22);
  background: linear-gradient(180deg, rgba(154, 116, 30, 0.14), rgba(154, 116, 30, 0.05));
  color: var(--accent-3);
}

.mini-card-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mini-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.card-tag {
  color: var(--accent-dark);
  margin-bottom: 2px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benchmark-card-grid {
  margin-top: 28px;
}

.overview-figure-block {
  margin-top: 22px;
}

.main-figure-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
}

.figure-only-card {
  padding-bottom: 18px;
}

.main-figure-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.embedded-note {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.065), rgba(15, 118, 110, 0.025));
}

.embedded-note-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-icon {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #f7fdfa;
  flex-shrink: 0;
}

.mini-icon-svg {
  width: 13px;
  height: 13px;
  display: block;
}

.embedded-note .figure-label {
  color: var(--accent-dark);
}

.figure-label {
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.plain-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.compact-list {
  margin-top: 9px;
  font-size: 0.92rem;
}

.compact-list li + li {
  margin-top: 5px;
}

/* -------------------------------------------------------------------------
   Leaderboard
   ------------------------------------------------------------------------- */

.results-shell {
  padding: 22px;
}

.leaderboard-shell {
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at top right, rgba(79, 125, 58, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(251, 253, 252, 0.99), rgba(238, 247, 242, 0.98));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.leaderboard-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-2), var(--accent-3));
}

.leaderboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-top: 8px;
}

.leaderboard-kicker {
  margin: 0 0 5px;
  color: var(--accent-dark);
}

.leaderboard-head .panel-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.leaderboard-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(16, 37, 33, 0.1);
  border-radius: 999px;
  background: rgba(251, 253, 252, 0.82);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.legend-pill-proprietary {
  border-color: rgba(154, 116, 30, 0.26);
  background: var(--proprietary-soft);
  color: var(--proprietary);
}

.legend-pill-open {
  border-color: rgba(47, 107, 79, 0.22);
  background: var(--open-soft);
  color: var(--open);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 0 0 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--ink);
  border-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade 0.24s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.panel-title {
  margin: 0;
  font-size: 1.45rem;
}

.panel-sub {
  margin: 0;
  font-size: 0.94rem;
}

.leaderboard-setting-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.045);
}

.leaderboard-setting-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.setting-note-pill {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 253, 252, 0.85);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.metric-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 0.86rem;
}

.metric-table th,
.metric-table td {
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.metric-table thead th {
  color: var(--ink-muted);
  font-weight: 800;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-table thead .group-row th {
  padding-top: 6px;
  padding-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  border-bottom: 1px dashed rgba(16, 37, 33, 0.12);
}

.metric-table thead .metric-row th {
  padding-top: 3px;
  padding-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.32;
  border-bottom: 1px solid rgba(16, 37, 33, 0.1);
}

.metric-table th:first-child,
.metric-table td:first-child {
  width: 18%;
}

.metric-table tbody td {
  border-top: 1px solid rgba(16, 37, 33, 0.08);
  border-bottom: 1px solid rgba(16, 37, 33, 0.08);
  background: rgba(251, 253, 252, 0.92);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.metric-table tbody td:first-child {
  border-left: 1px solid rgba(16, 37, 33, 0.08);
  border-radius: 14px 0 0 14px;
}

.metric-table tbody td:last-child {
  border-right: 1px solid rgba(16, 37, 33, 0.08);
  border-radius: 0 14px 14px 0;
}

.metric-table tbody tr:hover td {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(251, 253, 252, 0.99);
}

.model-entry {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.model-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.model-name {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-align: center;
  overflow-wrap: anywhere;
}

.model-kind {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
}

.model-kind-proprietary {
  background: var(--proprietary-soft);
  color: var(--proprietary);
  border: 1px solid rgba(154, 116, 30, 0.24);
}

.model-kind-open {
  background: var(--open-soft);
  color: var(--open);
  border: 1px solid rgba(47, 107, 79, 0.2);
}

.metric-value-cell {
  min-width: 0;
}

.metric-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 7px;
  border-radius: 9px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.metric-value.is-best {
  color: var(--accent-dark);
  font-weight: 700;
  background: rgba(15, 118, 110, 0.09);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.metric-value.is-second {
  color: var(--accent-2-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  background: rgba(79, 125, 58, 0.07);
  box-shadow: inset 0 0 0 1px rgba(79, 125, 58, 0.14);
}

.metric-value-empty {
  color: var(--ink-muted);
  background: rgba(16, 37, 33, 0.03);
}

.leaderboard-footnote {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* -------------------------------------------------------------------------
   Takeaways
   ------------------------------------------------------------------------- */

.explore-lead {
  margin: 0 0 10px;
  max-width: 920px;
  font-size: 0.98rem;
  line-height: 1.72;
}

.explore-note {
  margin: 0 0 22px;
  max-width: 920px;
  font-size: 0.9rem;
}

.utility-note {
  margin: -10px 0 18px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.takeaway-shell {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.takeaway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.takeaway-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.takeaway-column + .takeaway-column {
  border-top: 1px dashed var(--line);
  padding-top: 24px;
}

.takeaway-column-label {
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
}

.takeaway-label-pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.takeaway-label-experiment {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.takeaway-label-analysis {
  color: var(--accent-2-dark);
  background: var(--accent-2-soft);
  border: 1px solid rgba(79, 125, 58, 0.2);
}

.takeaway-label-error {
  color: var(--proprietary);
  background: var(--proprietary-soft);
  border: 1px solid rgba(154, 116, 30, 0.24);
}

.takeaway-stage {
  min-height: 238px;
  flex: 1;
  display: grid;
}

.takeaway-card {
  position: relative;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(79, 125, 58, 0.08), transparent 36%),
    linear-gradient(180deg, #fbfdfc, #f0f8f3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fade 0.24s ease;
  text-align: center;
}

.takeaway-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.takeaway-card-head {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.takeaway-page {
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.takeaway-statement {
  margin: 14px auto 0;
  max-width: 62ch;
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 1.8vw, 1.68rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.takeaway-summary {
  margin: 14px auto 0;
  max-width: 78ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.72;
  text-align: left;
}

.takeaway-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: nowrap;
}

.takeaway-progress {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.takeaway-counter {
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.takeaway-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.takeaway-dot,
.takeaway-btn {
  border: 1px solid var(--line);
  background: rgba(251, 253, 252, 0.92);
}

.takeaway-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    width 140ms ease;
}

.takeaway-dot.active {
  width: 26px;
  background: var(--accent);
  border-color: rgba(15, 118, 110, 0.4);
}

.takeaway-btn {
  min-width: 74px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    opacity 140ms ease;
}

.takeaway-btn:hover:not(:disabled),
.takeaway-dot:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
}

.takeaway-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.analysis-figure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.analysis-figure {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.figure-heading {
  margin-bottom: 12px;
}

.figure-heading h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.analysis-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.analysis-figure figcaption {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

/* -------------------------------------------------------------------------
   Explore the data
   ------------------------------------------------------------------------- */

#domain-tabs {
  margin-top: 4px;
}

.domain-panel {
  display: none;
}

.domain-panel.active {
  display: block;
  animation: fade 0.24s ease;
}

.scenario-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper), #f1f8f4);
  box-shadow: var(--shadow-sm);
}

.scenario-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.scenario-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.scenario-description {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
}

.role-block {
  margin-top: 16px;
  padding: 13px 16px;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  background: rgba(79, 125, 58, 0.07);
}

.role-block .field-label {
  color: var(--accent-2-dark);
  margin-bottom: 4px;
}

.role-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.explore-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 13px;
  flex-wrap: wrap;
}

.explore-subhead h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.explore-subhead p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.action-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.action-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.action-rank {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.action-name {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.action-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.58;
}

.action-strength {
  margin-top: auto;
  padding-top: 4px;
}

.strength-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.strength-segment {
  height: 5px;
  border-radius: 999px;
  background: rgba(16, 37, 33, 0.09);
}

.strength-segment.filled {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.fields-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.fields-table {
  width: 100%;
  min-width: 880px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fields-table th:nth-child(1) {
  width: 26%;
}

.fields-table th:nth-child(2) {
  width: 42%;
}

.fields-table th:nth-child(3) {
  width: 14%;
}

.fields-table th:nth-child(4) {
  width: 18%;
}

.fields-table th,
.fields-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(16, 37, 33, 0.08);
}

.fields-table thead th {
  background: rgba(228, 240, 233, 0.7);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fields-table tbody tr:last-child td {
  border-bottom: none;
}

.fields-table tbody tr:hover td {
  background: rgba(15, 118, 110, 0.03);
}

.field-name {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.field-key {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.field-description {
  color: var(--ink-soft);
  line-height: 1.55;
}

.field-unit,
.field-range {
  color: var(--ink-soft);
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}

.sample-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.case-id {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.case-json {
  margin: 0;
  padding: 13px 14px;
  max-height: 300px;
  overflow: auto;
  border-radius: 13px;
  background: #102521;
  color: #d6ece4;
  font-size: 0.7rem;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.utility-list {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.utility-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.utility-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.utility-label {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.utility-row.is-optimal .utility-label {
  color: var(--accent-dark);
  font-weight: 700;
}

.utility-row.is-optimal .utility-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.utility-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 37, 33, 0.075);
  overflow: hidden;
}

.utility-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(16, 37, 33, 0.18);
}

.utility-fill {
  position: absolute;
  top: 0;
  bottom: 0;
}

.utility-fill.positive {
  left: 50%;
  width: calc(var(--magnitude) * 50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 0 999px 999px 0;
}

.utility-fill.negative {
  right: 50%;
  width: calc(var(--magnitude) * 50%);
  background: var(--negative);
  border-radius: 999px 0 0 999px;
  opacity: 0.78;
}

.utility-value {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-align: right;
}

.utility-row.is-optimal .utility-value {
  color: var(--accent-dark);
  font-weight: 700;
}

.reveal-panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.reveal-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.reveal-panel summary::-webkit-details-marker {
  display: none;
}

.reveal-panel summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  margin-right: 2px;
}

.reveal-panel[open] summary::after {
  transform: rotate(-135deg);
}

.reveal-panel[open] summary {
  border-bottom: 1px dashed var(--line);
}

.reveal-hint {
  margin-left: auto;
  color: var(--ink-muted);
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reveal-body {
  padding: 18px 20px 20px;
}

.reveal-intro {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.rule-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule-card {
  padding: 16px;
  border: 1px solid rgba(154, 116, 30, 0.22);
  border-radius: 16px;
  background: rgba(154, 116, 30, 0.045);
}

.rule-card.post {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.045);
}

.rule-card-label {
  margin: 0 0 3px;
  color: var(--accent-3);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-card.post .rule-card-label {
  color: var(--accent-dark);
}

.rule-card h4 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.rule-factors {
  display: grid;
  gap: 0;
}

.factor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
  border-top: 1px dashed rgba(16, 37, 33, 0.1);
}

.factor-row.is-changed {
  margin: 2px 0;
  padding: 8px 8px;
  border-top-color: transparent;
  border-radius: 9px;
  background: rgba(251, 253, 252, 0.82);
}

.factor-name {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
  min-width: 0;
}

.factor-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-3-soft);
  color: var(--accent-3);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.rule-card.post .factor-tag {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.factor-direction {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.factor-direction.positive {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.factor-direction.negative {
  color: var(--negative);
  background: var(--negative-soft);
}

.change-list {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(251, 253, 252, 0.8);
}

.change-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.change-text {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.change-text strong {
  color: var(--ink);
}

.semantic-change {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 125, 58, 0.18);
  border-radius: 13px;
  background: rgba(79, 125, 58, 0.06);
}

.semantic-change .field-label {
  color: var(--accent-2-dark);
  margin-bottom: 6px;
}

.semantic-change p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.semantic-change p:last-child {
  margin-bottom: 0;
}

.semantic-change strong {
  color: var(--ink);
}

.explore-fallback {
  margin-top: 18px;
}

.explore-fallback h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.explore-fallback p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.empty-state {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(251, 253, 252, 0.82);
  color: var(--ink-soft);
  text-align: center;
}

/* -------------------------------------------------------------------------
   Citation
   ------------------------------------------------------------------------- */

.citation-shell {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.citation-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.copy-citation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    color 140ms ease;
}

.copy-citation-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.15);
}

.copy-citation-btn:disabled {
  cursor: wait;
}

.copy-citation-btn.copied {
  border-color: rgba(79, 125, 58, 0.28);
  background: var(--accent-2-soft);
  color: var(--accent-2-dark);
}

.copy-citation-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.citation-block {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(241, 247, 244, 0.9);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.72;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 160ms ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid,
  .analysis-figure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-grid,
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .takeaway-statement {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .section {
    scroll-margin-top: 0;
  }

  .leaderboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-legend {
    justify-content: flex-start;
  }

  .leaderboard-setting-note {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .nav-row,
  .nav-main,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-main {
    width: 100%;
    gap: 12px;
  }

  .nav-actions {
    padding-left: 0;
    border-left: none;
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10.8vw, 3.6rem);
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .author-list,
  .affiliation-list {
    gap: 3px 10px;
    font-size: 0.9rem;
  }

  .stats-grid,
  .card-grid,
  .analysis-figure-grid,
  .action-grid,
  .sample-grid,
  .rule-compare {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 104px;
  }

  .section {
    padding: 60px 0 54px;
  }

  .section-title {
    gap: 9px;
    margin-bottom: 20px;
  }

  .results-shell,
  .takeaway-shell,
  .citation-shell {
    padding: 16px;
  }

  .takeaway-card {
    padding: 20px 18px;
  }

  .takeaway-summary {
    text-align: left;
  }

  .takeaway-nav {
    gap: 10px;
  }

  .takeaway-btn {
    min-width: 64px;
    padding: 0 11px;
  }

  .metric-table {
    min-width: 820px;
  }

  .scenario-card {
    padding: 20px 18px;
  }

  .explore-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .reveal-panel summary {
    padding: 15px 16px;
    font-size: 1.08rem;
  }

  .reveal-hint {
    display: none;
  }

  .reveal-body {
    padding: 16px;
  }

  .citation-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 460px) {
  .brand-text {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11.2vw, 2.9rem);
  }

  .chip {
    font-size: 10px;
    padding: 6px 10px;
  }

  .btn {
    padding: 11px 15px;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .takeaway-statement {
    font-size: 1.2rem;
  }

  .metric-table {
    min-width: 780px;
  }

  .utility-row {
    grid-template-columns: 54px minmax(0, 1fr) 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
