:root {
  --ink: #14222b;
  --muted: #58656e;
  --line: #d6dde0;
  --line-strong: #aeb9be;
  --soft: #f3f7f6;
  --soft-blue: #f2f6f8;
  --teal: #0b716c;
  --teal-dark: #075752;
  --brick: #984a43;
  --gold: #87651d;
  --blue: #3f667d;
  --white: #ffffff;
  --max-width: 1180px;
  --measure: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--brick);
}

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

button {
  font: inherit;
  letter-spacing: 0;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 66px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.87rem;
}

.nav-links a {
  position: relative;
  padding: 21px 0 19px;
  color: var(--muted);
  font-weight: 680;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: '';
}

.nav-links a[aria-current='page'] {
  color: var(--ink);
}

.nav-links a[aria-current='page']::after {
  background: var(--teal);
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 0;
  border-bottom: 1px solid var(--line);
}

.hero .shell {
  padding-bottom: 46px;
}

.hero--program {
  background-image: url('images/concept_multimodal_patient.png');
  background-repeat: no-repeat;
  background-position: right 18px top 56px;
  background-size: 900px auto;
}

.hero--program .shell {
  position: relative;
  padding-bottom: 28px;
}

.hero--program h1 {
  max-width: 760px;
}

.hero--program .lead {
  max-width: 690px;
}

.hero-mobile-image {
  display: none;
}

.hero-source-band {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.hero-source-band .shell {
  padding: 13px 0 15px;
}

.hero-source-key {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero-source-key span {
  min-width: 0;
  padding: 2px 13px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 730;
  text-align: center;
}

.hero-source-key span + span {
  border-left: 1px solid var(--line);
}

.concept-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 1020px;
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.07;
}

h2 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.18;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.28;
}

.lead {
  max-width: 880px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.54;
}

.authors {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 680;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

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

.button--quiet {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.button--quiet:hover,
.button--quiet:focus-visible {
  border-color: var(--ink);
  background: var(--soft);
  color: var(--ink);
}

.status-line {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-line span {
  min-width: 0;
  padding: 16px 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.status-line span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.section--soft {
  background: var(--soft);
}

.section-intro {
  max-width: var(--measure);
  margin: 0 0 30px;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
}

.prose p:first-child {
  margin-top: 0;
}

.route {
  display: grid;
  margin: 32px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-step {
  min-width: 0;
  padding: 22px 20px 22px 0;
}

.route-step + .route-step {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.route-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.route-step span {
  color: var(--muted);
  font-size: 0.87rem;
}

.paper-grid {
  display: grid;
  margin-top: 30px;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paper-card {
  min-width: 0;
  padding: 27px;
  background: var(--white);
}

.paper-card--validity {
  border-top: 4px solid var(--teal);
}

.paper-card--laterality {
  border-top: 4px solid var(--brick);
}

.paper-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.paper-facts {
  display: grid;
  margin: 21px 0;
  gap: 11px;
}

.paper-facts div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.paper-facts dt {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.paper-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 760;
}

.convergence {
  display: grid;
  margin-top: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
}

.convergence p {
  margin: 0;
  color: var(--muted);
}

.figure {
  margin: 32px 0 0;
}

.figure-shell {
  border: 1px solid var(--line);
  background: var(--white);
}

.figure-toolbar {
  display: flex;
  min-height: 46px;
  padding: 9px 12px 9px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.figure-toolbar strong {
  font-size: 0.79rem;
  font-weight: 790;
}

.figure-action {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 740;
}

.figure-action:hover,
.figure-action:focus-visible {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.figure-viewport {
  padding: 14px;
  overflow: auto;
  background: var(--white);
}

.figure-viewport img {
  width: 100%;
}

.figure figcaption {
  max-width: 970px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.concept-key {
  display: grid;
  margin: 26px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
}

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

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

.concept-key div {
  min-width: 0;
  padding: 15px 17px;
}

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

.concept-key strong,
.concept-key span {
  display: block;
}

.concept-key strong {
  margin-bottom: 3px;
  color: var(--teal-dark);
  font-size: 0.8rem;
}

.concept-key span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.concept-figure {
  margin-top: 16px;
}

.figure-shell--concept {
  border-color: var(--line-strong);
}

.figure-shell--concept .figure-viewport {
  padding: 0;
}

.metric-grid {
  display: grid;
  margin-top: 28px;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  min-width: 0;
  padding: 24px;
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 600;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.callout {
  max-width: 960px;
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
}

.callout p {
  margin: 0;
}

.gate-strip {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gate-item {
  min-width: 0;
  padding: 17px 12px;
}

.gate-item + .gate-item {
  border-left: 1px solid var(--line);
}

.gate-item strong,
.gate-item span {
  display: block;
}

.gate-item strong {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.gate-item span {
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.gate-pass span {
  color: var(--teal-dark);
}

.gate-caution span {
  color: var(--gold);
}

.gate-stop span {
  color: var(--brick);
}

.table-wrap {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 760;
}

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

.verdict-pass {
  color: var(--teal-dark);
  font-weight: 760;
}

.verdict-stop {
  color: var(--brick);
  font-weight: 760;
}

.verdict-caution {
  color: var(--gold);
  font-weight: 760;
}

.scope-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scope-list section {
  padding-top: 18px;
  border-top: 3px solid var(--line);
}

.scope-list section:first-child {
  border-color: var(--teal);
}

.scope-list section:last-child {
  border-color: var(--brick);
}

.scope-list ul {
  margin: 0;
  padding-left: 20px;
}

.case-explorer {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.case-controls {
  display: grid;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-tab {
  min-width: 0;
  min-height: 58px;
  padding: 10px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.case-tab:last-child {
  border-right: 0;
}

.case-tab strong,
.case-tab small {
  display: block;
}

.case-tab strong {
  color: inherit;
  font-size: 0.86rem;
}

.case-tab small {
  margin-top: 2px;
  font-size: 0.7rem;
}

.case-tab[aria-selected='true'] {
  box-shadow: inset 0 -4px 0 var(--teal);
  background: var(--white);
  color: var(--ink);
}

.case-tab:hover,
.case-tab:focus-visible {
  color: var(--teal-dark);
}

.case-panel[hidden] {
  display: none;
}

.case-summary {
  display: grid;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-summary div {
  min-width: 0;
}

.case-summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.case-summary span {
  color: var(--muted);
  font-size: 0.83rem;
}

.case-panel .figure-toolbar {
  border-top: 0;
}

.case-panel .figure-viewport {
  padding: 18px;
}

.figure-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
}

.figure-dialog::backdrop {
  background: rgba(15, 25, 31, 0.76);
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 58px;
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.dialog-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.dialog-zoom,
.dialog-close {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.dialog-zoom {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.76rem;
  font-weight: 740;
}

.dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-zoom:hover,
.dialog-zoom:focus-visible,
.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--brick);
  color: var(--brick);
}

.dialog-canvas {
  display: flex;
  min-height: calc(100vh - 59px);
  padding: 24px;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
}

.dialog-canvas img {
  width: min(100%, 1600px);
  max-width: 100%;
  height: auto;
}

.figure-dialog--actual .dialog-canvas {
  display: block;
}

.figure-dialog--actual .dialog-canvas img {
  width: auto;
  max-width: none;
  margin: 0;
}

.site-footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.81rem;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer a {
  font-weight: 720;
}

@media (max-width: 1240px) {
  .hero--program {
    background-image: none;
  }

  .hero--program h1,
  .hero--program .lead {
    max-width: 920px;
  }

  .hero-mobile-image {
    display: block;
    width: min(100%, 1180px);
    aspect-ratio: 16 / 7;
    margin: 28px auto 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .hero-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
  }
}

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

  .route-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .route-step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .concept-key--four {
    grid-template-columns: 1fr 1fr;
  }

  .concept-key--four div:nth-child(3) {
    border-left: 0;
  }

  .concept-key--four div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .gate-item:nth-child(5) {
    border-left: 0;
  }

  .gate-item:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 2.4rem;
  }

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

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

  .hero-source-key span:nth-child(4) {
    border-left: 0;
  }

  .hero-source-key span:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .convergence {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scope-list {
    grid-template-columns: 1fr;
  }

  .case-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav {
    width: min(calc(100% - 28px), var(--max-width));
    padding: 11px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav-links {
    width: 100%;
    gap: 8px 17px;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 5px 0 7px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    padding-top: 44px;
  }

  .hero-mobile-image {
    aspect-ratio: 4 / 3;
  }

  .hero-source-key {
    grid-template-columns: 1fr 1fr;
  }

  .hero-source-key span:nth-child(n) {
    border-left: 1px solid var(--line);
  }

  .hero-source-key span:nth-child(odd) {
    border-left: 0;
  }

  .hero-source-key span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero .shell {
    padding-bottom: 34px;
  }

  h1 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.62rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .status-line {
    grid-template-columns: 1fr;
  }

  .status-line span {
    padding: 11px 0;
  }

  .status-line span + span {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 44px 0;
  }

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

  .route-step,
  .route-step + .route-step {
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .route-step:first-child {
    border-top: 0;
  }

  .paper-card,
  .metric {
    padding: 21px;
  }

  .paper-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .figure-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .figure-viewport {
    padding: 8px;
  }

  .gate-strip {
    grid-template-columns: 1fr 1fr;
  }

  .concept-key--three,
  .concept-key--four {
    grid-template-columns: 1fr;
  }

  .concept-key div + div,
  .concept-key--four div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gate-item:nth-child(odd) {
    border-left: 0;
  }

  .gate-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .case-controls {
    grid-template-columns: 1fr 1fr;
  }

  .case-tab:nth-child(2) {
    border-right: 0;
  }

  .case-tab:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .case-summary {
    padding: 17px;
  }

  .case-panel .figure-viewport {
    padding: 8px;
  }

  .dialog-canvas {
    padding: 12px;
    align-items: start;
  }

  .figure-dialog--actual .dialog-canvas img {
    min-width: 900px;
  }
}

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