:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-alt: #edf6f4;
  --surface-blue: #eef4fb;
  --ink: #18222b;
  --muted: #5d6d7a;
  --line: #d8e4ea;
  --line-strong: #bdced7;
  --blue: #315f9f;
  --cyan: #16a9bd;
  --cyan-dark: #087f91;
  --orange: #e98a35;
  --green: #4c9b63;
  --green-soft: #e5f4e9;
  --dense: #eef1f4;
  --code: #111923;
  --shadow: 0 18px 55px rgba(25, 34, 43, 0.10);
  --shadow-soft: 0 8px 28px rgba(25, 34, 43, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

sup {
  font-size: 0.68em;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 1060px;
  margin: 0 auto 24px;
  font-size: clamp(2.25rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.wide-wrap {
  width: min(1260px, calc(100% - 40px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: -0.03em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.93rem;
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--ink);
}

.hero {
  padding: 58px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(22, 169, 189, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(49, 95, 159, 0.07), transparent 26rem),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  text-align: center;
}

.venue,
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authors {
  max-width: 1030px;
  margin: 0 auto 8px;
  color: #344553;
  font-size: 1rem;
}

.affiliations {
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.stat-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat-grid article:last-child {
  border-right: 0;
}

.stat-grid strong {
  font-size: 1.32rem;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 68px 0;
  background: var(--bg);
  scroll-margin-top: 62px;
}

.section.alt {
  background: var(--surface-alt);
}

.section-lead {
  max-width: 830px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.overview-figure {
  margin: 28px 0 0;
}

.overview-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.overview-figure figcaption {
  max-width: 880px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.section-heading-row.align-end {
  align-items: flex-end;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 14px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.legend-dense {
  background: var(--dense);
}

.legend-best {
  background: var(--green-soft);
  box-shadow: inset 0 -2px var(--green);
}

.table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.control-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.segmented button {
  min-height: 34px;
  padding: 5px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.segmented button:hover,
.segmented button:focus-visible {
  color: var(--ink);
}

.segmented button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(25, 34, 43, 0.16);
}

.table-card {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(22, 169, 189, 0.35);
  outline-offset: -3px;
}

.data-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.data-table.is-full {
  min-width: 1420px;
}

.data-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-right: 1px solid #edf1f3;
  border-bottom: 1px solid #e5ebef;
  text-align: right;
  white-space: nowrap;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8fa;
  color: #3f5361;
  font-size: 0.75rem;
  font-weight: 820;
  text-align: right;
}

.data-table thead .group-head th {
  padding-top: 8px;
  padding-bottom: 4px;
  border-bottom: 0;
  color: var(--cyan-dark);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 74px;
  text-align: left;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  position: sticky;
  left: 74px;
  z-index: 3;
  min-width: 132px;
  border-right: 1px solid var(--line-strong);
  text-align: left;
}

.data-table thead th:nth-child(1),
.data-table thead th:nth-child(2) {
  z-index: 5;
  background: #f5f8fa;
}

#accuracy-table thead tr:not(.group-head) th:nth-child(1),
#accuracy-table thead tr:not(.group-head) th:nth-child(2) {
  left: auto;
  z-index: 2;
  min-width: initial;
  border-right: 1px solid #edf1f3;
  text-align: right;
}

.data-table tbody td:nth-child(1),
.data-table tbody td:nth-child(2) {
  background: var(--surface);
}

.data-table tbody tr:hover td {
  background-color: #f7fbfc;
}

.data-table tbody tr.dense-row td,
.data-table tbody tr.dense-row td:nth-child(1),
.data-table tbody tr.dense-row td:nth-child(2) {
  background: var(--dense);
  font-weight: 700;
}

.data-table tbody tr.group-start td {
  border-top: 2px solid var(--line-strong);
}

.data-table td.best-cell {
  background: var(--green-soft);
  color: #1e6331;
  font-weight: 850;
  box-shadow: inset 0 -2px var(--green);
}

.data-table tbody tr:hover td.best-cell {
  background: #dcf0e2;
}

.table-note {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  background: #f8fafb;
  color: var(--muted);
  font-size: 0.76rem;
}

.table-note p {
  margin: 0;
}

.table-note p:first-child {
  flex: 0 0 auto;
  color: #40515e;
  font-weight: 720;
}

.comparison-table {
  min-width: 850px;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  min-width: 145px;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  left: 145px;
  min-width: 145px;
}

.comparison-table td.category-cell {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profile-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.profile-grid button strong {
  display: block;
}

.profile-grid button span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.profile-grid button:hover,
.profile-grid button:focus-visible {
  border-color: var(--cyan);
}

.profile-grid button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.profile-grid button.is-active span {
  color: #b9dfe5;
}

.serving-table {
  min-width: 720px;
}

.serving-table th:nth-child(1),
.serving-table td:nth-child(1) {
  min-width: 155px;
}

.serving-table th:nth-child(2),
.serving-table td:nth-child(2) {
  position: static;
  min-width: initial;
  border-right: 1px solid #edf1f3;
  text-align: right;
}

.serving-table tbody tr.audit-row td {
  color: #6d5c38;
  background: #fffaf0;
}

.serving-table tbody tr.audit-row td:nth-child(1) {
  background: #fffaf0;
}

.reproduce-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.artifact-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.artifact-links a {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.artifact-links a:hover,
.artifact-links a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.code-panel,
.citation {
  overflow-x: auto;
  border: 1px solid #273645;
  border-radius: 9px;
  background: var(--code);
  color: #edf6f4;
  box-shadow: var(--shadow-soft);
}

.code-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid #273645;
}

.code-title span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #637382;
}

.code-title span:first-child {
  background: var(--orange);
}

.code-title span:nth-child(2) {
  background: #d7b84b;
}

.code-title span:nth-child(3) {
  background: var(--green);
}

.code-title small {
  margin-left: auto;
  color: #91a5b3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
}

.code-panel pre,
.citation {
  margin: 0;
  padding: 22px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.58;
}

.citation-section {
  background: var(--surface-alt);
}

.citation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.copy-button {
  margin-bottom: 16px;
}

.copy-button.is-copied {
  border-color: var(--green);
  background: var(--green-soft);
  color: #1e6331;
}

.citation code {
  font-size: 0.82rem;
}

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
}

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

.footer p {
  margin: 0;
}

.footer div div {
  display: flex;
  gap: 18px;
}

.data-error {
  margin: 0;
  padding: 12px 20px;
  background: #fff1ee;
  color: #8f321d;
  font-weight: 700;
  text-align: center;
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 20px;
  }

  .topbar nav {
    gap: 15px;
  }

}

@media (max-width: 820px) {
  .topbar {
    display: block;
    padding-top: 10px;
  }

  .brand {
    margin-bottom: 9px;
  }

  .topbar nav {
    margin: 0 -20px;
    padding: 0 20px 10px;
    overflow-x: auto;
  }

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 54px 0;
    scroll-margin-top: 102px;
  }

  .two-col,
  .reproduce-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-heading-row,
  .section-heading-row.align-end {
    display: block;
  }

  .legend {
    padding: 0 0 16px;
  }

  .table-controls {
    justify-content: flex-start;
  }

}

@media (max-width: 620px) {
  .wrap,
  .wide-wrap {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.05rem;
  }

  .authors {
    font-size: 0.9rem;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .stat-grid article:nth-child(2) {
    border-right: 0;
  }

  .stat-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .table-controls {
    display: grid;
    gap: 14px;
  }

  .segmented {
    overflow-x: auto;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid button {
    min-height: 56px;
  }

  .table-note,
  .split-note {
    display: grid;
    gap: 6px;
  }

  .citation-heading {
    display: block;
  }

  .copy-button {
    width: auto;
  }

  .citation {
    padding: 16px;
  }

  .footer-inner {
    display: grid;
  }
}

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

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