:root {
  --ink: #203149;
  --muted: #65758a;
  --blue: #446d9d;
  --teal: #208977;
  --line: #dce3e9;
  --paper: #f7f9fa;
  --white: #fff;
}
/* The approved figure remains a single, unmodified image. Only links are overlaid. */
.framework-section {
  margin-bottom: 38px;
}
.framework-figure {
  margin: 0;
}
.framework-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.framework-canvas {
  position: relative;
  min-width: 900px;
}
.framework-image {
  display: block;
  width: 100%;
  height: auto;
}
.framework-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.framework-hotspot {
  position: absolute;
  pointer-events: auto;
  border-radius: 7px;
}
.framework-hotspot:hover {
  outline: 2px solid rgba(68, 109, 157, 0.55);
  outline-offset: -2px;
}
.framework-hotspot:focus-visible {
  outline: 3px solid #b78c38;
  outline-offset: -3px;
}
.framework-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.framework-mobile-note {
  display: none;
}
.dimension-heading th,
#metric-definitions {
  scroll-margin-top: 24px;
}
.resource-details {
  max-width: 850px;
}
.resource-attribution {
  font-size: 13px;
}
.resource-context {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  margin: 24px 0;
}
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
@media (max-width: 600px) {
  .framework-canvas {
    min-width: 1000px;
  }
  .framework-mobile-note {
    display: inline;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #b78c38;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
  font-weight: 700;
  max-width: 1030px;
}
h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 12px;
}
p {
  color: var(--muted);
}
.masthead {
  height: 88px;
  border-bottom: 1px solid var(--line);
  padding: 0 max(28px, calc((100vw - 1194px) / 2));
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: white;
  background: var(--ink);
  border-radius: 9px;
  font-size: 23px;
}
.github-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.github-link:hover {
  color: var(--ink);
  text-decoration: underline;
}
main {
  max-width: 1250px;
  margin: auto;
  padding: 0 28px 40px;
  min-height: calc(100vh - 88px);
}
.page-heading {
  padding: 48px 0 32px;
}
.page-heading .intro {
  font-size: 18px;
  line-height: 1.7;
  max-width: 860px;
  margin-bottom: 0;
}
.page-heading h1:last-child {
  margin-bottom: 0;
}
.welcome strong {
  color: var(--ink);
  font-weight: 600;
}
.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.back-link {
  display: inline-block;
  margin-top: 28px;
  text-decoration: none;
  font-size: 14px;
}
.back-link + .page-heading {
  padding-top: 26px;
}
.experiment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.experiment-table thead th {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 24px;
  background: #eef2f5;
}
.experiment-table th:first-child {
  width: 60%;
}
.experiment-table td,
.experiment-table tbody th {
  padding: 17px 24px;
  border-top: 1px solid #e8edf1;
  font-size: 14px;
}
.experiment-table tbody th {
  font-weight: 600;
}
.experiment-table tbody tr:not(.dimension-heading) > th {
  padding-left: 44px;
}
.experiment-table thead th:last-child,
.experiment-results {
  text-align: right;
}
.experiment-table .dimension-heading th {
  font-size: 14px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-weight: 750;
}
.dimension-blue {
  --dimension-accent: #446d9d;
}
.dimension-yellow {
  --dimension-accent: #a1853f;
}
.dimension-green {
  --dimension-accent: #4b8066;
}
.dimension-blue .dimension-heading th {
  background: #e8eff7;
  color: #365575;
}
.dimension-yellow .dimension-heading th {
  background: #faf3e3;
  color: #80672e;
}
.dimension-green .dimension-heading th {
  background: #e9f3ed;
  color: #3f6b58;
}
.experiment-name {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.experiment-bullet {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  flex: 0 0 6px;
  background: var(--dimension-accent);
}
.experiment-name:hover {
  color: var(--blue);
  text-decoration: underline;
}
.experiment-description,
.experiment-results {
  white-space: nowrap;
}
.experiment-description a,
.experiment-results a {
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
}
.experiment-description a:hover,
.experiment-results a:hover,
.back-link:hover {
  text-decoration: underline;
}
.results-link {
  font-weight: 600;
}
.coming-soon {
  color: #7a8797;
  font-size: 12px;
}
.experiment-nav {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: -10px 0 28px;
}
.experiment-nav a,
.experiment-nav span {
  display: inline-block;
  padding: 10px 0 12px;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.experiment-nav a:hover {
  color: var(--ink);
}
.experiment-nav .active {
  color: var(--ink);
  border-bottom-color: var(--teal);
  font-weight: 650;
}
.experiment-nav .disabled {
  color: #95a0ae;
  cursor: default;
}
.objective {
  max-width: 1000px;
  margin-bottom: 28px;
}
.objective h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.objective p {
  font-size: 14px;
}
.setup {
  max-width: 1000px;
  margin-bottom: 32px;
}
.setup h2 {
  font-size: 20px;
  margin-bottom: 18px;
}
.setup-list {
  margin: 0;
}
.setup-list > div {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.setup-list dt {
  font-weight: 600;
  font-size: 13px;
}
.setup-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.unavailable {
  border-left: 3px solid var(--line);
  padding: 8px 16px;
  font-size: 14px;
  margin: 22px 0 32px;
}
#quantitative {
  padding-top: 4px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.data-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
}
.data-links a {
  text-decoration: none;
}
.cohort-note {
  font-size: 12px;
  margin-bottom: 23px;
}
.controls {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 18px;
  padding: 20px 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.controls label,
.media-filter {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #fff;
  border: 1px solid #ced8e1;
  border-radius: 6px;
  padding: 9px 34px 9px 11px;
  color: var(--ink);
  min-height: 42px;
}
.condition-context {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 13px 0 18px;
}
.condition-context p {
  font-size: 11px;
  margin: 0;
  max-width: 80%;
}
#direction {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.legend {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 0 0 14px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.swatch {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
}
.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.chart-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 23px;
  min-width: 0;
}
.chart {
  max-width: 100%;
  min-width: 0;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart circle[tabindex] {
  cursor: crosshair;
}
.chart circle[data-subject] {
  cursor: pointer;
}
.chart-caption {
  font-size: 11px;
  line-height: 1.65;
  margin: 12px 0 0;
  color: var(--muted);
}
.subject-note {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 24px;
  min-height: 25px;
}
.text-button {
  background: none;
  color: var(--blue);
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-size: 12px;
}
.provenance {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.provenance summary {
  cursor: pointer;
  color: var(--blue);
}
.provenance p {
  margin: 12px 0;
  max-width: 960px;
}
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 44px;
  margin: 0 0 30px;
}
.protocol-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.protocol-section + .protocol-section {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 30px;
}
.metric-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  background: var(--white);
  min-width: 0;
}
.metric-normalization,
.metric-ssim {
  grid-column: 1/-1;
}
.metric-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.metric-heading h3 {
  font-size: 20px;
  margin: 0;
}
.metric-direction {
  font-size: 11px;
  color: var(--muted);
}
.metric-card p,
.protocol-aggregation p {
  font-size: 14px;
}
.metric-card p:last-child {
  margin-bottom: 0;
}
.equations {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.metric-normalization .equations {
  flex-direction: row;
  gap: 28px 60px;
  flex-wrap: wrap;
}
.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.equation math {
  font-family: "Cambria Math", "STIX Two Math", math;
  font-size: 1.2rem;
  max-width: 100%;
}
.protocol-aggregation {
  margin: 0;
}
.protocol-aggregation h3 {
  font-size: 20px;
}
.protocol-aggregation > .equation {
  display: inline-flex;
  margin: 14px 36px 8px 0;
  vertical-align: middle;
}
.protocol-grid h3 {
  font-size: 20px;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}
.protocol-grid p {
  font-size: 14px;
  margin-bottom: 14px;
}
.media-section {
  margin: 35px 0;
}
.media-collection {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-top: 20px;
}
.media-filter {
  max-width: 360px;
  margin-bottom: 22px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.media-panel {
  margin: 0;
  border-top: 3px solid var(--line);
  padding-top: 10px;
  min-width: 0;
}
.media-panel img {
  width: 100%;
  height: auto;
  display: block;
}
.media-panel figcaption {
  font-size: 12px;
  padding-top: 8px;
  color: var(--muted);
}
#tooltip {
  position: fixed;
  z-index: 20;
  max-width: min(360px, calc(100vw - 20px));
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 7px;
  pointer-events: none;
  box-shadow: 0 4px 18px #20314922;
}
.error {
  border: 1px solid #dfb2a7;
  background: #fff7f4;
  padding: 16px;
  border-radius: 8px;
  color: #874a37;
}
.loading {
  padding: 30px 0;
  font-size: 14px;
}
.mobile-note {
  display: none;
  font-size: 11px;
  margin-top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  padding: 9px 15px;
  background: #fff;
  z-index: 30;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1600px) {
  h1 {
    font-size: 48px;
  }
}
@media (max-width: 900px) {
  h1 {
    font-size: 36px;
  }
  .experiment-table td,
  .experiment-table tbody th,
  .experiment-table thead th {
    padding-left: 18px;
    padding-right: 18px;
  }
  .chart-card {
    padding: 18px;
  }
  .charts {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart svg {
    max-width: 650px;
    margin: auto;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .masthead {
    height: 72px;
    padding: 0 18px;
    gap: 15px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
    border-radius: 7px;
  }
  .github-link {
    font-size: 12px;
  }
  main {
    padding: 0 18px 30px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  h2 {
    font-size: 22px;
  }
  .page-heading {
    padding: 34px 0 26px;
  }
  .page-heading .intro {
    font-size: 15px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .experiment-table {
    display: block;
  }
  .experiment-table thead {
    display: none;
  }
  .experiment-table tbody {
    display: block;
  }
  .experiment-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 14px 18px;
    border-top: 1px solid #e8edf1;
    gap: 7px 15px;
  }
  .experiment-table .dimension-heading {
    display: block;
    padding: 0;
    border-top: 0;
  }
  .experiment-table .dimension-heading th {
    display: block;
    width: auto;
    padding: 14px 18px;
  }
  .experiment-table tbody th,
  .experiment-table td {
    display: block;
    width: auto !important;
    padding: 0;
    border: 0;
    font-size: 13px;
  }
  .experiment-table tbody tr > th {
    grid-column: 1/-1;
  }
  .experiment-results {
    grid-column: 2;
    grid-row: 2;
  }
  .experiment-description {
    grid-column: 1;
    grid-row: 2;
  }
  .experiment-description a,
  .experiment-results a,
  .coming-soon {
    font-size: 11px;
  }
  .experiment-table tbody tr:not(.dimension-heading) > th {
    padding-left: 12px;
  }
  .experiment-description {
    margin-left: 30px;
  }
  .experiment-nav {
    gap: 26px;
  }
  .protocol-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .metric-card {
    padding: 20px;
  }
  .metric-heading h3 {
    font-size: 19px;
  }
  .protocol-aggregation > .equation {
    display: flex;
    margin-right: 0;
  }
  .setup-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 13px 0;
  }
  .setup-list dd {
    font-size: 13px;
  }
  .section-heading {
    gap: 12px;
  }
  .cohort-note {
    margin-top: 14px;
    line-height: 1.8;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }
  .condition-context {
    display: block;
    margin-bottom: 18px;
  }
  .condition-context p {
    max-width: none;
    margin-bottom: 7px;
  }
  .charts {
    gap: 18px;
  }
  .chart {
    overflow-x: auto;
  }
  .chart svg {
    min-width: 540px;
  }
  .chart-card h3 {
    font-size: 17px;
  }
  .mobile-note {
    display: block;
  }
  .legend {
    gap: 18px;
  }
  .subject-note {
    flex-wrap: wrap;
    gap: 8px 15px;
  }
  .protocol-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .protocol-grid h3 {
    font-size: 19px;
  }
}
