*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f4f2ec;
  --surface:   #ffffff;
  --border:    #e0dcd2;
  --ink:       #1a261a;
  --muted:     #68725f;
  --faint:     #9ea898;
  --accent:    #2b4a2c;
  --radius:    10px;
  --mono:      "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --serif:     Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans:      "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 140%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  padding: 0 10%;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 242, 236, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(26, 38, 26, 0.06);
}

.nav-inner {
  width: 100%;
  padding: 0 6%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Lobster', cursive;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0;
}

.nav-logo-mark {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg { display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-cta:hover { text-decoration: none; opacity: 0.7; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 1000px;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions .btn-hero {
  width: 13rem;
  max-width: 100%;
  justify-content: center;
}

.hero-actions .btn-hero[href="landscape.html"] {
  padding-inline: 0.5rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.6rem 1.4rem;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn-hero:hover {
  background: var(--surface);
  border-color: #c5c0b4;
  text-decoration: none;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--faint);
}

.btn-row {
  display: flex;
  gap: 4.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-green {
  background: #425945;
  color: #ffffff;
  border-color: #425945;
}

.btn-hero-green:hover {
  background: #273929;
  border-color: #273929;
}

/* ── Generic section ──────────────────────────────────────── */
.section {
  padding: 5.5rem 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ── About cards ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) { .about-grid { grid-template-columns: 1fr; } }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.about-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Schema ───────────────────────────────────────────────── */
.schema-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 620px) { .schema-layout { grid-template-columns: 1fr; } }

.schema-prose p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.schema-prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.schema-prose li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  line-height: 1.5;
}


.code-block {
  background: #1a2318;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: #c9d4c0;
}

.code-block .k { color: #7ec8a0; }
.code-block .c { color: #4d6349; font-style: italic; }
.code-block .p { color: #a8c4a0; }
.code-block .r { color: #f0a080; font-weight: 600; }

.schema-tabs {
  background: #151d14;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.schema-tab-bar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0,0,0,0.25);
}

.schema-tab-btn {
  flex: 1;
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.4);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.15s;
}

.schema-tab-btn.active {
  background: #ffffff;
  color: #1a261a;
}

.schema-tab-btn:not(.active):hover {
  color: rgba(255,255,255,0.75);
}

.schema-tab-panel {
  display: none;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.75;
  color: #c9d4c0;
  white-space: pre;
}

.schema-tab-panel.active {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
}
.prose-panel { display: none; }
.prose-panel.active { display: block; }
.field-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  background: #e8e5de;
  color: #273929;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  margin-right: 0.2rem;
}
.sub-badge {
  display: inline;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  background: #f0ede8;
  color: #5a6b5c;
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  border: 1px solid #d8d4cc;
}
.theme-green .field-badge {
  background: #3c5140;
  color: #edf2e9;
}
.theme-green .sub-badge {
  background: #304534;
  color: #d5e3ce;
  border-color: #607162;
}
.schema-tab-panel .k { color: #7ec8a0; }
.schema-tab-panel .c { color: #4d6349; font-style: italic; }
.schema-tab-panel .v { color: #f0a080; }
.schema-tab-panel .p1 { color: #FFD700; }
.schema-tab-panel .p2 { color: #42b5fc; }
.schema-tab-panel .p3 { color: #fb70c8; }
.schema-tab-panel .n { color: #b57efd; }

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 430px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.07); }

.feature-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.btn-hero .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.feature-card p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Coverage ─────────────────────────────────────────────── */
.bench-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bench-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.28rem 0.8rem;
  font-size: 0.78rem;
  color: var(--ink);
  transition: border-color 0.15s;
}

.bench-pill:hover { border-color: #b5b0a4; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.bench-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.bench-legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.9rem 0;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.step-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.step-body p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  padding: 2.75rem 0;
}

.footer-inner {
  width: 100%;
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lobster', cursive;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
}

.footer-mark {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--faint);
  text-align: right;
}

.footer-partners {
  width: 100%;
  padding: 0.5rem 10% 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  column-gap: 0.2rem;
  row-gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-partners-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  flex-basis: 100%;
  text-align: center;
}

.partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.partner-logo:hover { opacity: 1; }

.footer-partners a {
  display: flex;
  align-items: center;
  flex: 0 0 calc(20%);
  justify-content: center;
}

.partner-logo-jhu { height: 33px; }
.partner-logo-msr { height: 35px; }
.partner-logo-uiuc { height: 25px; }
.partner-logo-stf { height: 45px; }
.partner-logo-ncsu { height: 35px; }
.partner-logo-thu { height: 35px; }

@media (max-width: 540px) {
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .container { padding: 0 5%; }
  .nav-inner { padding: 0 4%; }
  .footer-inner { padding: 0 5%; }
  .footer-partners { padding: 1.25rem 5% 0; gap: 1rem; flex-wrap: wrap; }

  .hero { padding: 5rem 0 3rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-sub { font-size: 0.9rem; margin-bottom: 1.75rem; }
  .btn-row { gap: 1rem; }

  .section { padding: 3.5rem 0; }

  .about-card,
  .feature-card { padding: 1.1rem; }

  .schema-tab-panel { font-size: 0.62rem; padding: 1rem; }

  .bench-pills { gap: 0.4rem; }
  .bench-pill { font-size: 0.72rem; padding: 0.22rem 0.6rem; }

  .steps::before { left: 12px; }
  .step-num { width: 26px; height: 26px; font-size: 0.7rem; }
}
/* coverage-explorer:start */
/* ── Coverage explorer ────────────────────────────────────── */
.cov-explorer [hidden] { display: none !important; }

.cov-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cov-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cov-combo { position: relative; }

.cov-search {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 2.4rem 0.45rem 1rem;
  min-width: 18rem;
}

.cov-search:focus { outline: none; border-color: var(--accent); }
.cov-search:disabled { color: var(--faint); background: var(--bg); }

.cov-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.cov-toggle:hover { color: var(--ink); }
.cov-toggle:disabled { color: var(--faint); cursor: default; }

.cov-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 100%;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(26, 38, 26, 0.08);
}

.cov-list li {
  padding: 0.4rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.cov-list li.is-active,
.cov-list li:hover { background: var(--bg); }

.cov-list li[aria-selected="true"] { font-weight: 600; }

.cov-list li.cov-nomatch {
  font-family: var(--sans);
  color: var(--muted);
  cursor: default;
  background: none;
}

.cov-status { font-size: 0.9rem; color: var(--muted); }
.cov-status.is-error { color: var(--ink); }

.cov-summary {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.cov-summary strong { color: var(--ink); font-weight: 600; }

/* ── Per-benchmark downloads ──────────────────────────────── */
.cov-dl {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin-bottom: 1rem;
}

.cov-dl-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
}

.cov-chip-group { position: relative; }

/* A one-shard table links straight to the file; a sharded one opens a
   list, so both have to look like the same control. */
a.cov-chip,
.cov-chip-group > summary.cov-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.cov-chip-group > summary.cov-chip::-webkit-details-marker { display: none; }

a.cov-chip:hover,
.cov-chip-group > summary.cov-chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.cov-chip-group[open] > summary.cov-chip { border-color: var(--accent); }

.cov-chip-name { font-weight: 600; }
.cov-chip-meta { color: var(--muted); font-variant-numeric: tabular-nums; }

/* A closed <details> hides its content with content-visibility, which an
   absolutely positioned child escapes when its containing block is the
   <details> itself -- so the shard list has to be hidden outright. */
.cov-chip-group:not([open]) > .cov-shards { display: none; }

.cov-shards {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(26, 38, 26, 0.08);
}

.cov-shards a {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  padding: 0.35rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
  white-space: nowrap;
}

.cov-shards a:hover { background: var(--bg); text-decoration: none; }

.cov-dl-browse { font-size: 0.8rem; padding-top: 0.35rem; }

/* ── Per-model table ──────────────────────────────────────── */
.cov-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 26rem;
  overflow: auto;
}

.cov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cov-table th,
.cov-table td {
  padding: 0.55rem 1rem;
  text-align: right;
  white-space: nowrap;
}

.cov-table th:first-child,
.cov-table td:first-child { text-align: left; }

.cov-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cov-table td {
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cov-table tbody tr:first-child td { border-top: none; }

.cov-table td:first-child { font-family: var(--mono); font-size: 0.8rem; }

.cov-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .cov-combo { width: 100%; }
  .cov-search { min-width: 0; width: 100%; }
  .cov-table th,
  .cov-table td { padding: 0.45rem 0.7rem; }
  .cov-shards { max-width: 78vw; }
  .cov-shards a { gap: 0.75rem; font-size: 0.7rem; }
}
/* coverage-explorer:end */

/* Shared page layout and navigation. */
[hidden] { display: none !important; }
nav { position: sticky; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav { background: rgba(244, 242, 236, 0.97); }
}
.nav-inner { height: auto; min-height: 64px; gap: 1rem; flex-wrap: wrap; padding: 0.5rem 4%; }
.nav-links { position: static; transform: none; gap: 0.5rem 1.75rem; flex-wrap: wrap; display: flex; }
.nav-links a { font-size: 0.7rem; white-space: nowrap; display: block; padding: 0.35rem 0; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-section { scroll-margin-top: var(--nav-height, 8rem); }
.site-section { background: var(--bg); color: var(--ink); }
.theme-green {
  background: #273929;
  color: #ffffff;
  --bg: #273929;
  --surface: #344936;
  --border: #607162;
  --ink: #ffffff;
  --muted: #d5ddd2;
  --faint: #bbc8b7;
  --accent: #e2edda;
}
/* Fade only at beige/green boundaries, keeping About + Features continuous. */
.site-section.theme-green {
  background: linear-gradient(to bottom,
    #273929, #273929 calc(100% - 40px), #f4f2ec);
}
#about.theme-green {
  background: linear-gradient(to bottom, #f4f2ec, #273929 40px);
}
#features.theme-green {
  position: relative;
  background: linear-gradient(to bottom,
    #273929, #273929 calc(100% - 40px), #f4f2ec);
  border-top: none;
}
#contributors, #team-members, #acknowledgements { position: relative; }
#about, #contribution-guide { padding-bottom: 4rem; }
#features, #contributors, #team-members, #acknowledgements { padding-top: 4rem; }
#contributors, #team-members { padding-bottom: 4rem; }
#features::before,
#contributors::before,
#team-members::before,
#acknowledgements::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  border-top: 1px solid var(--border);
}
@media (max-width: 480px) {
  #features::before, #contributors::before,
#team-members::before,
#acknowledgements::before { left: 5%; right: 5%; }
}
.theme-green .btn-hero { border-color: var(--border); }
.hero { padding-top: 4rem; }
.placeholder-card { padding: 2rem; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.placeholder-card { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section { scroll-margin-top: var(--nav-height, 8rem); }
@media (max-width: 1200px) {
  .nav-links { order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .nav-links { gap: 0.25rem 1.35rem; }
  .nav-links a { font-size: 0.65rem; }
  .schema-layout { grid-template-columns: 1fr; }
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }


/* Extend green behind the translucent navbar on the green pages. */
body.green-page { background: #273929; }
.green-page footer { background: #f4f2ec; }

.schema-live-viewer { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border); }
.schema-live-viewer .schema-viewer-intro { margin-top: 0; margin-bottom: 1.5rem; }

.path-badge { background: #e8e5de; color: inherit; font-size: 0.84em; }

/* Contributor profiles with optional paper citations. */
.contributor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  list-style: none;
  align-items: start;
}
.contributor-card {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --border: #e0dcd2;
  --ink: #1a261a;
  --muted: #68725f;
  --faint: #9ea898;
  --accent: #2b4a2c;
  color: var(--ink);
  display: block;
  min-width: 0;
  padding: 0.7rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.contributor-card h3 { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--ink); }
.contributor-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem 1.5rem; }
.contributor-header h3 { overflow-wrap: anywhere; }
.contributor-affiliation { color: var(--accent); font-size: 0.7rem; text-align: right; overflow-wrap: anywhere; }
.contributor-description { color: var(--muted); font-size: 0.65rem; font-style: italic; line-height: 1.4; margin-top: 0.3rem; margin-bottom: 0.5rem; }
.contributor-info { min-width: 0; }
.contributor-paper { min-width: 0; margin-top: 0.3rem; font-size: 0.7rem; line-height: 1.5; }
.contributor-paper + .contributor-paper { margin-top: 0; }
.contributor-paper + .contributor-paper::before { display: none; }
.contributor-paper::before {
  content: "";
  display: block;
  width: 40%;
  border-top: 1px solid var(--border);
  margin-bottom: 0.25rem;
}
.contributor-paper p { color: var(--muted); display: inline; font-size: 0.7rem; overflow-wrap: anywhere; }
.contributor-citation { display: inline; margin-left: 0.65rem; }
.contributor-citation summary { display: inline; cursor: pointer; white-space: nowrap; font-size: 0.8rem; font-weight: 600; color: var(--accent); list-style: none; }
.contributor-citation summary::-webkit-details-marker { display: none; }
.contributor-citation summary::before { content: "▸ "; }
.contributor-citation[open] summary::before { content: "▾ "; }
.contributor-citation pre {
  margin-top: 0.45rem;
  padding: 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.6;
  color: var(--ink);
}
.contributor-citation code { font-family: inherit; }
@media (max-width: 700px) {
  .contributor-header { flex-direction: column; gap: 0.25rem; }
  .contributor-affiliation { text-align: left; }
  .contributor-paper::before { width: 60%; }
}

.citation-box { position: relative; }
.citation-box pre { padding-right: 3rem; }
.citation-copy {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: var(--bg);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.citation-copy:hover { background: var(--surface); }
.citation-copy-status {
  position: absolute;
  right: calc(34px + 0.85rem);
  bottom: 0.5rem;
  min-height: 34px;
  display: flex;
  align-items: center;
  max-width: calc(100% - 4rem);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 4px;
}
.citation-copy-status:empty { display: none; }

/* Migrated data tools are scoped so existing page styles remain unchanged. */
.oe-tool {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #e0dcd2;
  border-radius: var(--radius);
  background: #fff;
  color: #1a261a;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
.oe-tool *, .oe-tool *::before, .oe-tool *::after { border-style: solid; border-width: 0; }
.oe-tool button, .oe-tool input, .oe-tool select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
}
.oe-tool button { cursor: pointer; }
.oe-tool button:disabled { cursor: default; opacity: 0.6; }
.oe-tool table { border-collapse: collapse; text-indent: 0; }
.oe-tool svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.oe-tool select { max-width: 100%; }
.oe-tool input { min-width: 0; }
.oe-tool h2, .oe-tool h3, .oe-tool h4 { font-weight: 600; }
.oe-tool a { color: inherit; }
@media (max-width: 640px) {
  .oe-tool { padding: 0.75rem; }
}

/* Left-pointed labels for Benchmark Browser tags. */
.oe-tool .benchmark-tag {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  padding-left: 1.1em;
  padding-right: 0.65em;
  background-color: transparent;
}
.oe-tool .benchmark-tag::before,
.oe-tool .benchmark-tag::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(0 50%, 0.75em 0, 100% 0, 100% 100%, 0.75em 100%);
}
.oe-tool .benchmark-tag::before {
  inset: 0;
  background: #e0dcd2;
}
.oe-tool .benchmark-tag::after {
  inset: 1px;
  background: #f4f2ec;
}
.oe-tool button.benchmark-tag::after { background: #fff; }
.oe-tool button.benchmark-tag[aria-pressed="true"]::before,
.oe-tool button.benchmark-tag[aria-pressed="true"]::after { background: #1a261a; }

.oe-tool .benchmark-card-tag::before { display: none; }
.oe-tool .benchmark-card-tag::after { inset: 0; }

.oe-tool .benchmark-card-tag { padding-left: 1.45em; }
.oe-tool .benchmark-card-tag::after {
  clip-path: polygon(0 50%, 1.1em 0, 100% 0, 100% 100%, 1.1em 100%);
}

.oe-tool .benchmark-pagination,
.oe-tool .benchmark-pagination button,
.oe-tool .benchmark-pagination button:hover,
.oe-tool .benchmark-pagination button:active {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.oe-tool .benchmark-pagination {
  position: static;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .about-card h3,
.home-page .feature-card h3 { font-weight: 600; }

/* Size the metric control to its selected label, including space for the arrow. */
.oe-tool .benchmark-metric-picker {
  margin-right: 0.2em;
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
.oe-tool .benchmark-metric-width {
  display: block;
  visibility: hidden;
  white-space: pre;
  padding: 0.1em 2em 0.1em 0.5em;
  border: 1px solid transparent;
}
.oe-tool .benchmark-metric-picker select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23354d38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 1em;
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  padding: 0.1em 2em 0.1em 0.5em;
  border: 1px solid #a8b7a4;
  border-radius: 6px;
  background-color: #edf2e9;
  color: #354d38;
  cursor: pointer;
}
.oe-tool .benchmark-metric-picker select:hover { border-color: #527a5a; }
.oe-tool .benchmark-metric-picker select:focus {
  outline: none;
  box-shadow: none;
}
.oe-tool .benchmark-metric-picker select:focus-visible {
  border-color: #354d38;
  background-color: #e2ebdc;
}

.oe-tool .model-select:focus {
  outline: none;
  box-shadow: none;
}
.oe-tool .model-select:focus-visible {
  border-color: var(--accent);
}

/* Keep metric controls and summary values on a shared baseline. */
.oe-tool .model-summary {
  display: grid;
  grid-template-columns: minmax(max-content, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 0;
  border-block: 1px solid var(--border);
}
.oe-tool .model-summary > div { min-width: 0; }
.oe-tool .model-summary-value {
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.oe-tool .model-summary-metric .model-summary-value { flex-wrap: wrap; font-size: 0.85rem; overflow-wrap: anywhere; }
.oe-tool .model-summary-metric-long .model-summary-value { font-size: 0.7rem; }
.oe-tool .model-summary-metric select { width: 100%; min-width: 0; border-radius: 0.6rem; }
.oe-tool .model-metric-picker { position: relative; display: inline-block; max-width: 100%; }
.oe-tool .model-metric-width { display: block; position: relative; z-index: 1; pointer-events: none; white-space: nowrap; color: var(--ink); padding: 0.25rem 1.75rem 0.25rem 0.6rem; border: 1px solid transparent; }
.oe-tool .model-metric-picker select {
  position: absolute; inset: 0; height: 100%; padding-right: 2rem; color: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23354d38' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.5rem center;
}
.oe-tool .model-metric-picker select option { color: var(--ink); }
.oe-tool .model-summary-label { margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 1000px) {
  .oe-tool .model-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .oe-tool .model-summary-metric { grid-column: 1 / -1; max-width: 28rem; }
}
@media (max-width: 600px) {
  .oe-tool .model-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

.oe-tool .model-results { --results-text-inset: clamp(0.5rem, 1.5vw, 1.25rem); }
.oe-tool .model-results .model-summary { padding-inline: var(--results-text-inset); }
.oe-tool .model-results tr > :first-child { padding-left: var(--results-text-inset); }
.oe-tool .model-results tr > :last-child { padding-left: 2.75rem; padding-right: var(--results-text-inset); }
.oe-tool .model-results table tr { border-bottom: 2px dotted var(--border); }

.oe-tool .model-benchmark-select {
  height: 2rem; box-sizing: border-box; padding-right: 2rem; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23354d38' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.65rem center;
}
.oe-tool .model-view-switch { display: inline-flex; height: 2rem; box-sizing: border-box; align-items: stretch; padding: 0.15rem; gap: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--subtle); }
.oe-tool .model-view-switch button { padding: 0 0.45rem; border-radius: 999px; font-size: 0.75rem; white-space: nowrap; color: var(--muted); }
.oe-tool .model-view-switch button[aria-pressed="true"] { background: var(--accent); color: white; }
.oe-tool .model-view-switch button:disabled { opacity: 0.45; cursor: not-allowed; }
.oe-tool .model-ability-score { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.oe-tool .model-ability-track { position: relative; flex: 1; min-width: 65px; height: 1rem; margin-inline: 0.25rem; }
.oe-tool .model-ability-track::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #eeece8; transform: translateY(-50%); }
.oe-tool .model-ability-interval { position: absolute; top: 50%; height: 4px; border-radius: 999px; background: #aaa8a5; transform: translateY(-50%); }
.oe-tool .model-ability-dot { position: absolute; top: 50%; width: 2px; height: 12px; background: var(--ink); transform: translate(-50%, -50%); }

.oe-tool .model-secondary-value { font-size: 0.8em; color: #8b9285; font-weight: 400; }

.oe-tool .model-name-label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-name-tooltip { position: fixed; z-index: 1000; max-width: min(360px, calc(100vw - 16px)); padding: 0.15rem 0.45rem; border: 1px solid var(--border); border-radius: 0.25rem; background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: 0 3px 12px #00000018; font-size: 0.65rem; line-height: 1.35; overflow-wrap: anywhere; pointer-events: none; }

.landscape-domains { margin-top: 0; }
.landscape-domains[hidden] { display: none; }
.domain-note { color: var(--muted); font-size: 0.65rem; margin-top: 1rem; margin-bottom: 1rem; }
.domain-card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; margin-bottom: 1.2rem; }
.domain-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.domain-heading h2 { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0; }
.domain-heading > span { color: var(--muted); font-size: 0.75rem; white-space: nowrap; border-radius: 999px; background: var(--bg); padding: 0.125rem 0.5rem; }
.domain-benchmarks { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.domain-benchmarks a { display: inline-block; border-radius: 999px; padding: 0.25rem 0.625rem; background: var(--bg); color: #3c4839; font-size: 0.75rem; font-weight: 500; text-decoration: none; }
.domain-benchmarks a:hover { background: #e6eddf; }
@media (max-width: 600px) { .domain-heading { align-items: flex-start; } .domain-heading h2 { font-size: 0.9rem; } }

.domain-bar { margin-top: 0.5rem; height: 0.375rem; border-radius: 999px; overflow: hidden; background: var(--bg); }
.domain-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

#landscape-tool { background: transparent; border: 0; border-radius: 0; padding: 0; }

#landscape .section-sub { margin-bottom: 1rem; }
.landscape-content { margin-top: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 600px) { .landscape-content { padding: 0.75rem; } }

/* Folder-style navigation, distinct from the binary pill switches. */
.landscape-folder-tabs { display: flex; align-items: flex-end; gap: 0; padding-left: 0; padding-top: 0.5rem;}
.oe-tool .landscape-folder-tab { position: relative; padding: 0.4rem 1rem; border: 1px solid var(--border); border-bottom: 0; border-radius: 0.5rem 1.1rem 0 0; background: #e9ebe5; color: var(--muted); font-size: 0.75rem; font-weight: 500; transition: color 160ms ease; }
.oe-tool .landscape-folder-tab + .landscape-folder-tab { margin-left: -1px; }
.oe-tool .landscape-folder-tab:hover { color: var(--accent); background: #e9ebe5; }
.oe-tool .landscape-folder-tab[aria-pressed="true"] { z-index: 1; background: #fff; color: var(--accent); }
.oe-tool .landscape-folder-tab[aria-pressed="true"] { margin-bottom: -1px; border-bottom: 1px solid #fff; }
.oe-tool .landscape-folder-tab[aria-pressed="true"]::before,
.oe-tool .landscape-folder-tab[aria-pressed="true"]::after {
  content: ""; position: absolute; bottom: -1px; width: 0.8rem; height: 0.8rem; pointer-events: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 0H20Q20 20 0 20Z' fill='%23e9ebe5'/%3E%3Cpath d='M0 19.5Q19.5 19.5 19.5 0' fill='none' stroke='%23e0dcd2' stroke-width='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.oe-tool .landscape-folder-tab[aria-pressed="true"]::before { left: -0.8rem; }
.oe-tool .landscape-folder-tab[aria-pressed="true"]::after { right: -0.8rem; transform: scaleX(-1); }
.oe-tool .landscape-folder-tab:first-child[aria-pressed="true"]::before { display: none; }
.oe-tool .landscape-folder-tab:last-child[aria-pressed="true"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 0H20Q20 20 0 20Z' fill='%23f4f2ec'/%3E%3Cpath d='M0 19.5Q19.5 19.5 19.5 0' fill='none' stroke='%23e0dcd2' stroke-width='1'/%3E%3C/svg%3E"); }
.landscape-content.landscape-folder-panel { margin-top: 0; border-top-left-radius: 0; }
.landscape-domains > .domain-card:first-of-type,
.landscape-folder-difficulty section:first-of-type { border-top-left-radius: 0; }
@media (max-width: 600px) {
  .landscape-folder-tabs { gap: 0; padding-left: 0; }
  .oe-tool .landscape-folder-tab { flex: 1; padding: 0.5rem 0.4rem; font-size: 0.7rem; }
}

.notification-dot {
  position: relative;
  display: inline-block;
  top: -6px;
  left: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a23b2b;
}
.schema-coverage { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border); }
.coverage-snapshot-note { font-size: 0.65rem; color: var(--muted); margin-bottom: 1rem; }
.coverage-table-scroll { overflow-x: auto; max-height: 28rem; }
.coverage-snapshot-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.coverage-snapshot-table th, .coverage-snapshot-table td { padding: 0.45rem 0.7rem; border-bottom: 2px dotted var(--border); text-align: right; white-space: nowrap; }
.coverage-snapshot-table th:first-child { text-align: left; }
.coverage-snapshot-table tbody th { font-weight: 400; }
.coverage-snapshot-table thead th { position: sticky; top: 0; background: var(--surface); }
.coverage-models { margin-top: 0.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.coverage-models summary { cursor: pointer; font-size: 0.75rem; color: var(--muted); }
.coverage-models[open] > summary { margin-bottom: 0.75rem; }

.coverage-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.coverage-summary-footnote { margin-top: 1rem; margin-bottom: 0; }

.contributor-date { color: var(--muted); }
.contributor-name-separator { color: var(--muted); font-weight: 400; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; list-style: none; }
.people-grid:empty { display: none; }
.person-card { padding: 0.85rem 1rem; background: #f4f2ec; border-radius: 0.5rem;}
.person-card h3 { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.person-email { display: inline-flex; flex-shrink: 0; color: var(--accent); border-radius: 0.15rem; }
.person-email svg { width: 1rem; height: 1rem; }
.person-email:hover { color: var(--ink); }
.person-email:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.person-affiliation { color: var(--accent); font-size: 0.7rem; line-height: 1.4; margin-top: 0.2rem; }
