:root {
  --ink: #13243a;
  --muted: #60758e;
  --soft: #8295aa;
  --line: #dbe8f4;
  --line-strong: #c5daeb;
  --surface: #ffffff;
  --surface-blue: #f4f9fd;
  --blue: #1678be;
  --blue-deep: #0c5f9c;
  --blue-bright: #4aa8e9;
  --blue-pale: #dceffc;
  --mint: #2ca58d;
  --shadow: 0 24px 80px rgba(41, 94, 132, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fcff 0, #eef7fd 42rem, #fff 62rem),
    #fff;
  font-family: "Segoe UI", SegoeUI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

abbr[title] {
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.page-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.page-glow--one {
  top: -22rem;
  left: 35%;
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, rgba(81, 178, 236, 0.18), transparent 68%);
}

.page-glow--two {
  top: 21rem;
  left: -18rem;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, rgba(109, 196, 234, 0.13), transparent 68%);
}

.site-header {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(197, 218, 235, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  border-radius: 9px;
  color: white;
  background: linear-gradient(145deg, #55b4ee, #126eb0);
  box-shadow: 0 7px 18px rgba(22, 120, 190, 0.22);
}

.brand-mark span {
  width: 3px;
  border-radius: 3px;
  background: currentColor;
}

.brand-mark span:nth-child(1) { height: 7px; opacity: 0.7; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: 0.86; }

nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 34px;
  transform: translateX(-50%);
}

.header-cta {
  color: #536b82;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
  letter-spacing: 0.5px;
}

nav a {
  color: #536b82;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
  letter-spacing: 0.5px;
}

nav a:hover,
.header-cta:hover {
  color: var(--blue);
}

nav a[aria-current="page"] {
  color: var(--blue-deep);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.hero {
  padding-top: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 60px 82px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--blue-bright);
}

.hero h1 {
  max-width: 760px;
  margin: 19px 0 24px;
  color: #172c44;
  font-size: clamp(47px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 700;
}

.hero-summary {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.25px;
  margin-top: 34px;
  line-height: 1.7;
  text-align: justify;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.25px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, #1888cf, #0b69aa);
  box-shadow: 0 12px 25px rgba(15, 111, 174, 0.23);
}

.button--primary:hover {
  box-shadow: 0 16px 32px rgba(15, 111, 174, 0.28);
  transform: translateY(-1px);
}

.button--quiet {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.hero-card {
  position: relative;
  min-height: 375px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(191, 218, 237, 0.85);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 246, 255, 0.78)),
    #fff;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(64, 160, 219, 0.08);
}

.hero-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(44, 165, 141, 0.12);
}

.score-orbit {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  margin: 18px auto 10px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
}

.orbit--outer {
  inset: 0;
  border: 1px solid #cfe6f5;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(64, 160, 219, 0.13) 8% 21%, transparent 21% 52%, rgba(64, 160, 219, 0.11) 52% 69%, transparent 69%);
  -webkit-mask: radial-gradient(circle, transparent 68%, black 69%);
  mask: radial-gradient(circle, transparent 68%, black 69%);
}

.orbit--inner {
  inset: 29px;
  border: 1px dashed #bddbef;
}

.orbit--outer::before,
.orbit--inner::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 2px 10px rgba(18, 110, 173, 0.35);
}

.orbit--outer::before { top: 22px; right: 30px; }
.orbit--inner::before { left: 9px; bottom: 27px; width: 6px; height: 6px; }

.score-core {
  width: 124px;
  height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 40px rgba(37, 104, 150, 0.13);
}

.score-core span,
.score-core small {
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-core strong {
  margin: -1px 0 1px;
  color: var(--blue-deep);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  letter-spacing: 0.1px;
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 17px;
}

.hero-metrics div + div {
  border-left: 1px solid var(--line);
}

.hero-metrics strong {
  color: #24435f;
  font-size: 18px;
}

.hero-metrics span {
  margin-top: 2px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.thesis-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.thesis-card {
  min-height: 220px;
  padding: 35px 40px 36px;
}

.thesis-card + .thesis-card {
  border-left: 1px solid var(--line-strong);
}

.thesis-card--solution {
  background: linear-gradient(135deg, rgba(224, 243, 255, 0.5), rgba(250, 253, 255, 0.35));
}

.thesis-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thesis-label span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #bcdcef;
  border-radius: 50%;
  color: var(--blue);
  font-size: 8px;
}

.thesis-card h2 {
  max-width: 470px;
  margin: 17px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.thesis-card p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.25px;
  text-align: justify;
}

.method {
  padding-top: 30px;
}

.method details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.method summary {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
}

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

.summary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  font-family: Georgia, serif;
  font-size: 23px;
}

.method summary small,
.method summary strong {
  display: block;
}

.method summary small {
  margin-bottom: 3px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.method summary strong {
  color: #203b56;
  font-size: 16px;
}

.summary-action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.summary-action i {
  position: relative;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.summary-action i::before,
.summary-action i::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 8px;
  width: 9px;
  height: 1px;
  background: var(--blue-deep);
  transition: transform 180ms ease;
}

.summary-action i::after { transform: rotate(90deg); }
.method details[open] .summary-action i::after { transform: rotate(0); }

.method-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  padding: 12px 29px 34px 85px;
  border-top: 1px solid var(--line);
}

.method-intro > p,
.method-detail > p,
.method-detail li,
.method-tail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.2px;
  text-align: justify;
}

.equation {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #cfe4f3;
  border-radius: 14px;
  background: #f5fafe;
}

.eq-main,
.eq-key {
  display: block;
}

.eq-main {
  color: #1c5278;
  font-family: Cambria, Georgia, serif;
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: 0.02em;
}

.equation mjx-container {
  margin: 0.35em 0 !important;
  color: #1c5278;
  font-size: clamp(20px, 2.5vw, 29px) !important;
}

.eq-key {
  margin-top: 11px;
  color: var(--soft);
  font-family: Cambria, Georgia, serif;
  font-size: 12px;
}

.method-detail h3 {
  margin: 15px 0 9px;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.method-detail ul {
  margin: 0;
  padding-left: 18px;
}

.method-detail li {
  padding-left: 3px;
}

.method-detail li::marker { color: var(--blue-bright); }

.method-note {
  margin: 18px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.posterior-equations {
  margin: 11px 0 13px;
  padding: 13px 18px;
  border: 1px solid #d5e8f5;
  border-radius: 12px;
  color: #1c5278;
  background: #f7fbfe;
  overflow-x: auto;
}

.posterior-equations mjx-container {
  margin: 0.4em 0 !important;
  font-size: 103% !important;
}

.method-tail {
  margin: 0;
}

.rankings {
  padding-top: 114px;
  padding-bottom: 95px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 13px 0 8px;
  font-size: clamp(35px, 5vw, 52px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.dataset-stamp {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 145px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.dataset-stamp__icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  font-weight: 800;
}

.dataset-stamp small,
.dataset-stamp strong {
  display: block;
}

.dataset-stamp small {
  color: var(--soft);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dataset-stamp strong {
  margin-top: 2px;
  font-size: 12px;
}

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

.leader-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #f6fbfe);
}

.leader-card--gold { border-color: #dfc176; background: linear-gradient(145deg, #fff8df, #fff 65%); }
.leader-card--silver { border-color: #bdc9d2; background: linear-gradient(145deg, #f2f6f8, #fff 65%); }
.leader-card--bronze { border-color: #d4aa86; background: linear-gradient(145deg, #fff1e7, #fff 65%); }
.leader-card--top-ten { border-color: #b9ddf2; background: linear-gradient(145deg, #edf8fe, #fff 65%); }

.leader-card::after {
  content: attr(data-rank);
  position: absolute;
  right: 10px;
  bottom: -24px;
  color: rgba(52, 137, 193, 0.07);
  font-size: 89px;
  font-weight: 800;
  letter-spacing: -0.09em;
}

.leader-rank {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leader-card--gold .leader-rank { color: #9a6c00; }
.leader-card--silver .leader-rank { color: #637582; }
.leader-card--bronze .leader-rank { color: #9a5728; }

.leader-model {
  position: relative;
  z-index: 1;
  min-height: 40px;
  margin: 8px 0 13px;
  overflow: hidden;
  color: #25425d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.leader-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
  letter-spacing: 0.5px;
}

.leader-score strong {
  color: var(--blue-deep);
  font-size: 31px;
  letter-spacing: 0.5px;
  font-weight: 800;
}

.leader-score span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.leader-ci {
  position: relative;
  z-index: 1;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: 0.2px;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(57, 103, 135, 0.09);
}

.table-tools {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  width: min(340px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-blue);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: #8ac6e8;
  box-shadow: 0 0 0 3px rgba(74, 168, 233, 0.12);
}

.search-box svg {
  width: 17px;
  fill: none;
  stroke: var(--soft);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.search-box input::placeholder { color: #8fa2b5; }

kbd {
  min-width: 21px;
  padding: 2px 6px;
  border: 1px solid #d5e3ee;
  border-radius: 5px;
  color: #8da0b3;
  background: #fff;
  font-family: inherit;
  font-size: 10px;
  text-align: center;
  box-shadow: 0 1px 0 #d5e3ee;
}

.table-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  position: relative;
  width: 30px;
  height: 8px;
  border-radius: 2px;
  background:
    linear-gradient(#25465f, #25465f) center / 100% 1px no-repeat,
    linear-gradient(#7fc5ec, #7fc5ec) left center / 82% 6px no-repeat;
}

.legend i::before,
.legend i::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 1px;
  height: 10px;
  background: #25465f;
}

.legend i::before { left: 0; }
.legend i::after { right: 0; }

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  height: 44px;
  padding: 0 18px;
  color: var(--soft);
  background: #f8fbfd;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
}

th:nth-child(1) { width: 82px; text-align: center; }
th:nth-child(2) { width: 29%; }
th:nth-child(3) { width: 85px; }
th:nth-child(4) { width: 34%; }

td {
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #e7eff6;
  color: #38516a;
  font-size: 13px;
  transition: background 140ms ease;
}

tbody tr:hover td { background: #f8fcff; }
tbody tr:last-child td { border-bottom: 0; }

.rank-cell {
  text-align: center;
}

.rank-number {
  min-width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #6c8297;
  background: #f0f6fa;
  font-size: 12px;
  font-weight: 750;
}

.rank-number--gold {
  color: #684900;
  border-color: #d7b75d;
  background: linear-gradient(145deg, #f4d77b, #c8951a);
  box-shadow: 0 5px 13px rgba(179, 128, 14, 0.22);
}

.rank-number--silver {
  color: #425463;
  border-color: #aebdc8;
  background: linear-gradient(145deg, #e7edf1, #b9c6cf);
  box-shadow: 0 5px 13px rgba(89, 108, 122, 0.17);
}

.rank-number--bronze {
  color: #613415;
  border-color: #c38e63;
  background: linear-gradient(145deg, #e9bb94, #ba7543);
  box-shadow: 0 5px 13px rgba(153, 85, 39, 0.18);
}

.rank-number--top-ten {
  color: #176ea8;
  border-color: #b9ddf2;
  background: #e4f3fc;
}

.model-cell {
  overflow: hidden;
  color: #243d57;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.2px;
  letter-spacing: 0.25px;
}

.numeric {
  text-align: right;
}

.iq-cell strong {
  color: #173b58;
  font-size: 18px;
  letter-spacing: 0.5px;
  font-weight: 800;
}

.iq-cell small {
  margin-left: 3px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ci-wrap {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 62px;
  align-items: center;
  gap: 14px;
}

.ci-track {
  position: relative;
  height: 24px;
  background-image: linear-gradient(90deg, transparent calc(var(--average) - 0.5px), #c9dbe7 calc(var(--average) - 0.5px), #c9dbe7 calc(var(--average) + 0.5px), transparent calc(var(--average) + 0.5px));
}

.ci-track::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 2px;
  background: #edf4f8;
}

.score-fill {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 0;
  width: var(--point);
  height: 8px;
  border-radius: 2px;
  background: #7fc5ec;
}

.ci-range {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: var(--low);
  width: max(2px, calc(var(--high) - var(--low)));
  height: 2px;
  border-radius: 3px;
  background: #25465f;
}

.ci-range::before,
.ci-range::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 10px;
  background: #25465f;
}

.ci-range::before { left: 0; }
.ci-range::after { right: 0; }

.ci-point {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: var(--point);
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border: 1.5px solid white;
  border-radius: 50%;
  background: #183b55;
  box-shadow: 0 1px 4px rgba(23, 72, 105, 0.32);
}

.ci-value {
  color: #678098;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.g-cell {
  color: #70869b;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.loading-cell,
.empty-cell,
.error-cell {
  height: 180px;
  color: var(--muted);
  text-align: center;
}

.error-cell { color: #9c3f4a; }

.loader {
  width: 13px;
  height: 13px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: -2px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.table-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.table-footer p {
  margin: 0;
  color: var(--soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.load-more {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--blue-deep);
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.load-more:hover { border-color: #8fc8e9; background: #f4faff; }

.data-note {
  display: flex;
  gap: 9px;
  margin: 18px 6px 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.25px;
}

.distribution {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(520px, 1.32fr);
  align-items: center;
  gap: 56px;
  padding-top: 6px;
  padding-bottom: 92px;
}

.distribution-copy h2 {
  margin: 13px 0 12px;
  color: #1b334b;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.distribution-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.2px;
  text-align: justify;
}

.bell-figure {
  min-width: 0;
  margin: 0;
  padding: 22px 24px 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fbfdff, #f1f8fd);
}

.bell-curve {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bell-area { fill: url(#bellFill); }

.bell-line {
  fill: none;
  stroke: #2b91cf;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.bell-axis {
  stroke: #a9c6d9;
  stroke-width: 1;
}

.bell-marks line {
  stroke: #9dbbcf;
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.bell-marks text {
  fill: #35536c;
  font-family: "Segoe UI", SegoeUI, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 0.2px;
}

.bell-marks .sigma {
  fill: #8ba0b2;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.bell-mean line {
  stroke: #267eb6;
  stroke-width: 1.5;
}

.bell-mean text { fill: #176b9f; }

.bell-figure figcaption {
  margin-top: -2px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: right;
  text-transform: uppercase;
}

.site-footer {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
}

.brand--footer {
  justify-self: start;
  color: #46637d;
  font-size: 11px;
}

.site-footer p { margin: 0; }

.site-footer > a {
  justify-self: end;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.benchmark-page {
  background: linear-gradient(180deg, #f8fcff 0, #eef7fd 34rem, #fff 54rem);
}

.benchmark-hero {
  padding-top: 92px;
  padding-bottom: 47px;
}

.benchmark-hero h1 {
  margin: 16px 0 13px;
  color: #172c44;
  font-size: clamp(46px, 6.2vw, 72px);
  font-weight: 690;
  line-height: 1;
  letter-spacing: -0.052em;
}

.benchmark-hero > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.25px;
}

.benchmark-rankings {
  padding-bottom: 90px;
}

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

.metric-option {
  min-height: 114px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  letter-spacing: 0.2px;
}

.metric-option:hover {
  border-color: #91c9e9;
  transform: translateY(-1px);
}

.metric-option[aria-pressed="true"] {
  border-color: #79bce3;
  background: linear-gradient(145deg, #e9f7ff, #fff 72%);
  box-shadow: 0 12px 30px rgba(42, 124, 178, 0.12);
}

.metric-option span,
.metric-option small {
  display: block;
}

.metric-option span {
  color: #1f4665;
  font-size: 15px;
  font-weight: 750;
}

.metric-option[aria-pressed="true"] span { color: var(--blue-deep); }

.metric-option small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.benchmark-table-heading {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.benchmark-table-heading small,
.benchmark-table-heading strong {
  display: block;
}

.benchmark-table-heading small,
.benchmark-table-heading > span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.benchmark-table-heading strong {
  margin-top: 3px;
  color: #294964;
  font-size: 16px;
}

.benchmark-table {
  min-width: 760px;
}

.benchmark-table th:nth-child(1) { width: 88px; }
.benchmark-table th:nth-child(2) { width: 36%; }
.benchmark-table th:nth-child(3) { width: auto; text-align: left; }
.benchmark-table th:nth-child(4) { width: 178px; text-align: left; }

.benchmark-table--classification th:nth-child(2) { width: 30%; }
.benchmark-table--classification th:nth-child(4) { text-align: center; }
.benchmark-table--classification td:nth-child(4) { text-align: center; }

.benchmark-table td {
  height: 57px;
}

.benchmark-rank {
  min-width: 30px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #c8e2f2;
  border-radius: 8px;
  color: #2878aa;
  background: #eaf6fd;
  font-size: 10px;
  font-weight: 750;
}

.benchmark-name {
  overflow: hidden;
  color: #29435c;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.g-classification {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5d7488;
  background: #f1f5f8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.g-classification--outstanding {
  color: #2c704b;
  border-color: #bfe6cc;
  background: #e5f6eb;
}

.g-classification--excellent { color: #24678e; background: #e8f5fc; }
.g-classification--very-good { color: #3d7191; background: #edf5fa; }
.g-classification--good { color: #526f82; background: #f0f5f8; }
.g-classification--fair { color: #92612f; background: #fff3e7; }
.g-classification--poor { color: #9a4b45; background: #fceceb; }
.g-classification--bad, .g-classification--terible { color: #893d50; background: #f8e8ed; }

.benchmark-value {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 72px;
  align-items: center;
  gap: 17px;
}

.benchmark-value strong {
  color: #31516c;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.benchmark-bar {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f8;
}

.benchmark-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(4px, var(--value));
  border-radius: inherit;
  background: linear-gradient(90deg, #8cccee, #379ed9);
}

.benchmark-bar--zero::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--zero);
  width: 1px;
  background: #55758c;
}

#method-title, #active-metric-title {
    letter-spacing: 0.2px;
}

#rankings-title, #benchmark-title {
    font-weight: 800;
    letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

  .hero-card {
    width: 100%;
    min-height: 330px;
  }

  .score-orbit { width: 175px; height: 175px; }

  .leader-podium { grid-template-columns: repeat(2, 1fr); }

  .method-content {
    grid-template-columns: 1fr;
    padding-left: 29px;
  }

  th:nth-child(2) { width: 28%; }
  th:nth-child(4) { width: 39%; }
  .optional-col { display: none; }

  .distribution {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .metric-switcher {
    grid-template-columns: 1fr;
  }

  .metric-option {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }

  .site-header { min-height: 70px; }
  nav { display: none; }
  .header-cta { padding: 9px 12px; font-size: 11px; }

  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(44px, 14vw, 67px); }
  .hero-summary { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }

  .thesis-grid { grid-template-columns: 1fr; }
  .thesis-card { min-height: auto; padding: 29px 26px; }
  .thesis-card + .thesis-card { border-top: 1px solid var(--line-strong); border-left: 0; }

  .method summary { padding-inline: 16px; }
  .summary-action { font-size: 0; }
  .method-content { padding: 12px 19px 26px; gap: 18px; }
  .posterior-equations { padding-inline: 10px; font-size: 12px; }

  .rankings { padding-top: 82px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .dataset-stamp { align-self: stretch; }
  .leader-podium { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .leader-card { min-width: 210px; scroll-snap-align: start; }

  .table-tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .table-meta { justify-content: space-between; }

  table { min-width: 620px; }
  th:nth-child(2) { width: 210px; }
  th:nth-child(4) { width: 245px; }

  .table-footer { align-items: stretch; flex-direction: column; }
  .load-more { width: 100%; }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding-block: 26px;
  }
  .site-footer p { display: none; }

  .distribution { padding-bottom: 66px; }
  .bell-figure { padding: 13px 10px 11px; border-radius: 16px; }
  .bell-figure figcaption { padding-right: 7px; font-size: 8px; }

  .benchmark-hero { padding-top: 60px; }
  .benchmark-rankings { padding-bottom: 65px; }
  .benchmark-table-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
}

#eci-link {
	color: var(--blue);
	text-decoration: none;
}

@media (max-width: 420px) {
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
