:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --paper-deep: #ece9e0;
  --surface: #ffffff;
  --surface-soft: #faf9f5;
  --ink: #17201d;
  --ink-soft: #34413c;
  --muted: #666f6b;
  --line: #d8d9d3;
  --line-strong: #babeb7;
  --green: #176b52;
  --green-dark: #0e503d;
  --green-soft: #e3f0ea;
  --coral: #c85a46;
  --coral-dark: #963b2d;
  --coral-soft: #f7e7e2;
  --amber: #8a6b2f;
  --amber-soft: #f2ead7;
  --mentioned: #57716a;
  --mentioned-soft: #e8eeec;
  --silent: #b6bbb6;
  --silent-soft: #f0f1ee;
  --shadow: 0 12px 32px rgba(27, 38, 33, 0.09);
  --max-width: 1440px;
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
button, input, select { color: inherit; font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid rgba(23, 107, 82, 0.28); outline-offset: 2px; }
[hidden] { display: none !important; }
.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: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px;
  border-radius: 4px; background: var(--ink); color: white;
  transform: translateY(-160%); transition: transform 160ms ease;
}
.skip-link:focus { color: white; transform: translateY(0); }

.app-bar {
  position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 237, 0.96);
}
.app-bar__inner {
  display: flex; width: min(100%, calc(var(--max-width) + 48px)); min-height: 64px;
  margin: 0 auto; padding: 10px 24px; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 6px;
  background: var(--ink); color: white; place-items: center; font-size: 11px; font-weight: 800;
}
.brand__copy { display: grid; line-height: 1.15; }
.brand__copy strong { font-size: 15px; font-weight: 760; }
.brand__copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.app-bar__meta {
  display: flex; min-width: 0; margin-right: auto; align-items: center; gap: 7px;
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.data-dot {
  width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.app-actions { display: flex; align-items: center; gap: 6px; }
.button, .icon-button {
  display: inline-flex; min-height: 38px; border: 1px solid transparent; border-radius: 5px;
  align-items: center; justify-content: center; gap: 8px; font-weight: 680; line-height: 1;
  text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.button { padding: 0 12px; font-size: 13px; }
.button svg, .icon-button svg { width: 16px; height: 16px; stroke-width: 1.9; }
.button__chevron { width: 13px !important; height: 13px !important; }
.button--quiet { border-color: transparent; background: transparent; color: var(--ink-soft); }
.button--quiet:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button--primary { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.button--primary:hover { border-color: var(--green); background: var(--green); color: white; }
.icon-button {
  position: relative; width: 38px; flex: 0 0 38px; padding: 0; border-color: var(--line);
  background: var(--surface); color: var(--ink-soft);
}
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--ink); }
[data-tooltip]::after {
  position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: max-content;
  max-width: 220px; padding: 7px 9px; border-radius: 4px; background: var(--ink); color: white;
  content: attr(data-tooltip); font-size: 11px; font-weight: 560; line-height: 1.3;
  opacity: 0; pointer-events: none; transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(0); }
.export-control { position: relative; }
.export-menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: 260px;
  padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
  box-shadow: var(--shadow);
}
.export-menu a, .export-menu button {
  display: grid; width: 100%; min-height: 56px; padding: 9px 10px; border: 0; border-radius: 4px;
  background: transparent; color: var(--ink); grid-template-columns: 22px 1fr; align-items: center;
  gap: 8px; text-align: left; text-decoration: none;
}
.export-menu a:hover, .export-menu button:hover, .export-menu a:focus-visible, .export-menu button:focus-visible { background: var(--surface-soft); }
.export-menu svg { width: 17px; height: 17px; color: var(--green); }
.export-menu span { display: grid; gap: 2px; }
.export-menu strong { font-size: 13px; }
.export-menu small { color: var(--muted); font-size: 11px; }

main, .site-footer {
  width: min(100%, calc(var(--max-width) + 48px)); margin: 0 auto; padding-right: 24px; padding-left: 24px;
}
.page-intro {
  display: grid; padding: 54px 0 26px; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  align-items: end; gap: 44px;
}
.eyebrow, .section-kicker {
  margin: 0 0 7px; color: var(--green-dark); font-size: 11px; font-weight: 780; text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 850px; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: 42px; font-weight: 500; line-height: 1.08;
}
.intro-copy { max-width: 790px; margin: 17px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.interpretation-note {
  display: grid; padding: 17px 18px; border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 0 6px 6px 0; background: var(--surface); grid-template-columns: 20px 1fr; gap: 6px 10px;
}
.interpretation-note > svg { width: 18px; height: 18px; margin-top: 2px; color: var(--coral-dark); }
.interpretation-note p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.interpretation-note p strong { color: var(--ink); }
.interpretation-note a {
  display: inline-flex; width: fit-content; grid-column: 2; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
}
.interpretation-note a svg { width: 13px; height: 13px; }
.cohort-band {
  display: flex; min-height: 92px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); align-items: center; justify-content: space-between; gap: 24px;
}
.cohort-band .section-kicker { margin-bottom: 8px; }
.segmented-control {
  display: inline-grid; padding: 3px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface-soft); grid-template-columns: repeat(2, minmax(0, 1fr));
}
.segmented-control button {
  display: inline-flex; min-height: 36px; padding: 7px 11px; border: 0; border-radius: 3px;
  background: transparent; color: var(--muted); align-items: center; gap: 8px;
  font-size: 12px; font-weight: 690; white-space: nowrap;
}
.segmented-control button span {
  min-width: 25px; padding: 2px 5px; border-radius: 3px; background: var(--paper-deep);
  color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: center;
}
.segmented-control button.is-active { background: var(--ink); color: white; box-shadow: 0 1px 2px rgba(23, 32, 29, 0.15); }
.segmented-control button.is-active span { background: rgba(255, 255, 255, 0.14); color: white; }
.cohort-description { max-width: 550px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.metric-grid { display: grid; margin: 14px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card {
  position: relative; min-width: 0; min-height: 116px; padding: 17px 18px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
}
.metric-card::before {
  position: absolute; top: -1px; right: -1px; left: -1px; height: 3px; border-radius: 7px 7px 0 0;
  background: var(--green); content: "";
}
.metric-card:nth-child(2)::before, .metric-card:nth-child(4)::before { background: var(--coral); }
.metric-card > span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card strong {
  display: block; margin-top: 7px; font-family: Georgia, "Times New Roman", serif;
  font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1;
}
.metric-card small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }
.metric-card.is-loading { color: var(--line-strong); }
.overview-grid {
  display: grid; margin-bottom: 14px; grid-template-columns: minmax(310px, 0.78fr) minmax(540px, 1.45fr); gap: 14px;
}
.panel, .matrix-panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.panel { min-width: 0; min-height: 362px; padding: 20px; }
.panel-heading, .matrix-heading, .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2, .matrix-heading h2, .dialog-header h2 { margin: 0; font-size: 20px; font-weight: 735; line-height: 1.25; }
.panel-context { margin-top: 2px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.funnel { display: grid; margin-top: 24px; gap: 16px; }
.funnel-step { display: grid; grid-template-columns: minmax(120px, 1fr) 56px; gap: 6px 12px; }
.funnel-step__label { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.funnel-step__value { font-size: 12px; font-weight: 780; font-variant-numeric: tabular-nums; text-align: right; }
.funnel-step__track { height: 7px; border-radius: 2px; background: var(--silent-soft); grid-column: 1 / -1; overflow: hidden; }
.funnel-step__fill { display: block; height: 100%; border-radius: 2px; background: var(--green); }
.classification-heading { margin: 2px 0 -5px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; }
.classification-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.classification-branch { min-width: 0; padding-left: 12px; border-left: 3px solid var(--green); }
.classification-branch:last-child { border-left-color: var(--coral); }
.classification-branch span, .classification-branch strong { display: block; }
.classification-branch span { color: var(--muted); font-size: 10px; font-weight: 700; }
.classification-branch strong { margin-top: 3px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; line-height: 1; }
.classification-branch small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.35; }
.branch-reconciliation { margin: -3px 0 0; color: var(--muted); font-size: 10px; }
.funnel-caption { margin: 2px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.domain-bars { display: grid; margin-top: 20px; gap: 14px; }
.domain-row { display: grid; min-width: 0; grid-template-columns: 122px minmax(180px, 1fr) 54px; align-items: center; gap: 10px; }
.domain-label { min-width: 0; }
.domain-label strong, .domain-label small { display: block; }
.domain-label strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.domain-label small { color: var(--muted); font-size: 10px; }
.stacked-bar {
  display: flex; height: 17px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--silent-soft); overflow: hidden;
}
.stacked-bar button { position: relative; min-width: 0; height: 100%; padding: 0; border: 0; border-right: 1px solid rgba(255,255,255,.7); }
.stacked-bar button:last-child { border-right: 0; }
.stacked-bar button:hover, .stacked-bar button:focus-visible { filter: brightness(0.88); }
.bar--restrictive, .state-dot--restrictive { background: var(--coral); }
.bar--accommodating, .state-dot--accommodating { background: var(--green); }
.bar--mixed, .state-dot--mixed { background: var(--amber); }
.bar--mentioned, .state-dot--mentioned { background: var(--mentioned); }
.bar--silent, .state-dot--silent { background: var(--silent); }
.domain-detected { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.loading-line { height: 12px; border-radius: 3px; background: var(--silent-soft); }
.loading-line:nth-child(2) { width: 82%; }
.loading-line:nth-child(3) { width: 64%; }

.matrix-panel { margin-bottom: 28px; overflow: hidden; }
.matrix-heading { padding: 20px 20px 16px; }
.matrix-heading > div:first-child > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.legend { display: flex; max-width: 610px; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px 13px; color: var(--muted); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.state-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.filter-bar {
  display: grid; padding: 12px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface-soft); grid-template-columns: minmax(240px, 1.5fr) minmax(150px, .65fr) minmax(150px, .65fr) minmax(170px, .75fr) 38px;
  align-items: end; gap: 9px;
}
.filter-bar label:not(.search-field) { display: grid; gap: 4px; }
.filter-bar label > span { color: var(--muted); font-size: 10px; font-weight: 720; text-transform: uppercase; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 11px; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.filter-bar input, .filter-bar select { width: 100%; height: 38px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); font-size: 12px; }
.filter-bar input { padding: 0 12px 0 36px; }
.filter-bar select { padding: 0 30px 0 10px; }
.filter-bar input::placeholder { color: var(--muted); opacity: 1; }
.filter-reset { background: var(--surface); }
.table-shell { width: 100%; max-height: 690px; overflow: auto; overscroll-behavior: contain; }
table { width: 100%; min-width: 1030px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
th, td { border-bottom: 1px solid var(--line); }
th {
  position: sticky; z-index: 4; top: 0; height: 48px; padding: 7px 8px; background: #f4f3ee;
  color: var(--muted); font-size: 10px; font-weight: 760; text-align: center; text-transform: uppercase; vertical-align: middle;
}
th:first-child { z-index: 6; left: 0; width: 335px; min-width: 335px; padding-left: 20px; border-right: 1px solid var(--line); text-align: left; }
th.status-column { width: 126px; min-width: 126px; }
th.domain-column { width: 84px; min-width: 84px; }
td { height: 69px; padding: 8px; background: var(--surface); text-align: center; }
tbody tr:hover td { background: #fbfaf6; }
td:first-child { position: sticky; z-index: 2; left: 0; padding-left: 20px; border-right: 1px solid var(--line); background: var(--surface); text-align: left; }
tbody tr:hover td:first-child { background: #fbfaf6; }
.trial-link { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.trial-link:hover strong { color: var(--green-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.trial-link strong { display: -webkit-box; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trial-link span { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.trial-link span b { color: var(--green-dark); font-weight: 750; }
.status-badge {
  display: inline-flex; max-width: 112px; min-height: 24px; padding: 4px 6px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--surface-soft); color: var(--ink-soft); align-items: center; justify-content: center;
  font-size: 9px; font-weight: 750; line-height: 1.15;
}
.status-badge--recruiting { border-color: #bad9cc; background: var(--green-soft); color: var(--green-dark); }
.status-badge--stopped { border-color: #e5c0b7; background: var(--coral-soft); color: var(--coral-dark); }
.evidence-cell {
  position: relative; display: inline-grid; width: 34px; height: 34px; padding: 0;
  border: 1px solid transparent; border-radius: 5px; place-items: center;
}
.evidence-cell svg { width: 16px; height: 16px; stroke-width: 2; }
.evidence-cell::after { right: 50%; transform: translate(50%, -3px); }
.evidence-cell:hover::after, .evidence-cell:focus-visible::after { transform: translate(50%, 0); }
.evidence-cell--restrictive { border-color: #e6b8ae; background: var(--coral-soft); color: var(--coral-dark); }
.evidence-cell--accommodating { border-color: #b4d8ca; background: var(--green-soft); color: var(--green-dark); }
.evidence-cell--mixed { border-color: #dfc98f; background: var(--amber-soft); color: #674d1c; }
.evidence-cell--mentioned { border-color: #c6d5d0; background: var(--mentioned-soft); color: #3f5e56; }
.evidence-cell--silent { border-color: var(--line); background: var(--silent-soft); color: #7d8681; }
.cell-count {
  position: absolute; top: -5px; right: -5px; display: grid; min-width: 15px; height: 15px; padding: 0 3px;
  border: 1px solid white; border-radius: 3px; background: var(--ink); color: white;
  font-size: 8px; font-style: normal; font-weight: 800; line-height: 1; place-items: center;
}
.table-empty, .table-loading { height: 180px; padding: 30px; color: var(--muted); text-align: center !important; }
.silent-footnote { margin: 0; padding: 11px 20px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer {
  display: flex; min-height: 85px; margin-bottom: 24px; border-top: 1px solid var(--line-strong);
  align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px;
}
.site-footer > div { display: flex; align-items: center; gap: 14px; }
.site-footer strong { color: var(--ink); }
.site-footer a { font-weight: 680; }

dialog { padding: 0; border: 0; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(23, 32, 29, 0.45); }
.drawer { width: min(690px, 94vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; }
.drawer .dialog-frame { min-height: 100%; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -16px 0 44px rgba(23, 32, 29, 0.14); }
.method-dialog { width: min(780px, calc(100vw - 32px)); max-width: none; max-height: min(820px, calc(100dvh - 40px)); border-radius: 7px; }
.method-dialog .dialog-frame { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.dialog-header {
  position: sticky; z-index: 3; top: 0; min-height: 78px; padding: 17px 20px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.dialog-header .icon-button::after { top: calc(100% + 5px); }
.dialog-body { padding: 22px 24px 40px; overflow-y: auto; }
.drawer .dialog-body { height: calc(100dvh - 78px); }
.method-dialog .dialog-body { max-height: calc(min(820px, 100dvh - 40px) - 78px); }
.trial-summary { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.trial-summary h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; line-height: 1.23; }
.trial-summary__actions { display: flex; margin-top: 15px; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.source-button {
  display: inline-flex; min-height: 39px; padding: 0 13px; border-radius: 5px; background: var(--green-dark);
  color: white; align-items: center; gap: 7px; font-size: 12px; font-weight: 720; text-decoration: none;
}
.source-button:hover { background: var(--green); color: white; }
.source-button svg { width: 15px; height: 15px; }
.candidate-label {
  display: inline-flex; min-height: 27px; padding: 4px 7px; border: 1px solid #e6b8ae; border-radius: 4px;
  background: var(--coral-soft); color: var(--coral-dark); align-items: center; font-size: 10px; font-weight: 750;
}
.candidate-label--outside { border-color: var(--line); background: var(--silent-soft); color: var(--muted); }
.curation-audit { margin-top: 18px; padding: 14px 15px; border-left: 3px solid var(--green); background: var(--surface-soft); }
.curation-audit > strong { display: block; font-size: 10px; text-transform: uppercase; }
.curation-audit > p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.screen-audit { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.screen-audit > span { color: var(--muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.screen-components { display: grid; margin: 7px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; }
.screen-components div { display: grid; grid-template-columns: 15px 1fr auto; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.screen-components svg { width: 13px; height: 13px; }
.screen-components .is-true svg { color: var(--ink-soft); }
.screen-components .is-false svg { color: var(--line-strong); }
.screen-components b { color: var(--ink-soft); font-size: 8px; text-transform: uppercase; }
.metadata-grid { display: grid; margin: 18px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; }
.metadata-grid div { min-width: 0; }
.metadata-grid dt, .provenance-grid dt { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.metadata-grid dd, .provenance-grid dd { margin: 0; color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.domain-tabs {
  display: flex; margin: 0 -24px; padding: 13px 24px; border-bottom: 1px solid var(--line);
  background: var(--surface-soft); gap: 6px; overflow-x: auto;
}
.domain-tabs button {
  min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--muted); flex: 0 0 auto; font-size: 10px; font-weight: 690;
}
.domain-tabs button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.domain-detail { padding-top: 22px; }
.domain-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.domain-detail h3, .method-section h3 { margin: 0; font-size: 16px; font-weight: 750; }
.domain-question { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.state-label { min-height: 26px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; font-weight: 780; text-transform: uppercase; }
.state-label--restrictive { border-color: #e6b8ae; background: var(--coral-soft); color: var(--coral-dark); }
.state-label--accommodating { border-color: #b4d8ca; background: var(--green-soft); color: var(--green-dark); }
.state-label--mixed { border-color: #dfc98f; background: var(--amber-soft); color: #674d1c; }
.state-label--mentioned { border-color: #c6d5d0; background: var(--mentioned-soft); color: #3f5e56; }
.state-label--silent { background: var(--silent-soft); color: var(--muted); }
.state-stack { display: grid; flex: 0 0 auto; justify-items: end; gap: 4px; }
.state-stack small { color: var(--muted); font-size: 8px; font-weight: 740; text-transform: uppercase; }
.evidence-list { display: grid; margin-top: 17px; gap: 14px; }
.evidence-item { padding: 0 0 15px 15px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--coral); }
.evidence-item[data-effect="accommodating"] { border-left-color: var(--green); }
.evidence-item[data-effect="mentioned"] { border-left-color: var(--mentioned); }
.evidence-item blockquote {
  margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif;
  font-size: 16px; line-height: 1.5; white-space: pre-wrap;
}
.evidence-meta {
  display: flex; margin-top: 10px; flex-wrap: wrap; gap: 5px 12px; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px;
}
.silent-message { margin: 17px 0 0; padding: 14px 15px; border-left: 3px solid var(--silent); background: var(--silent-soft); color: var(--ink-soft); font-size: 12px; }
.evidence-overview { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.evidence-overview button {
  display: grid; width: 100%; min-height: 54px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; grid-template-columns: 1fr auto auto 16px; align-items: center; gap: 12px; text-align: left;
}
.evidence-overview button:hover strong { color: var(--green-dark); }
.evidence-overview strong { font-size: 12px; }
.evidence-overview small { color: var(--muted); font-size: 10px; }
.evidence-overview svg { width: 15px; height: 15px; color: var(--muted); }
.eligibility-details { margin-top: 22px; border-top: 1px solid var(--line); }
.eligibility-details summary { padding: 14px 0; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 720; }
.eligibility-details pre, .query-block {
  margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft);
  color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px; line-height: 1.55; overflow: auto; white-space: pre-wrap;
}
.method-lede { margin: 0 0 22px; padding: 14px 15px; border-left: 4px solid var(--coral); background: var(--coral-soft); color: var(--ink-soft); font-size: 13px; }
.method-section { padding: 21px 0; border-top: 1px solid var(--line); }
.method-section:first-of-type { border-top: 0; padding-top: 0; }
.method-section p, .method-section li { color: var(--ink-soft); font-size: 12px; }
.method-section ul, .method-section ol { margin: 12px 0 0; padding-left: 20px; }
.method-section li + li { margin-top: 7px; }
.provenance-grid { display: grid; margin: 15px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; }
.provenance-grid .wide { grid-column: 1 / -1; }
.hash-value { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px !important; }
.method-links { display: flex; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.method-links a {
  display: inline-flex; min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: 4px; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-decoration: none;
}
.method-links svg { width: 13px; height: 13px; }
.toast {
  position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px; border: 1px solid #b4d8ca; border-radius: 5px; background: var(--green-dark);
  color: white; box-shadow: var(--shadow); font-size: 12px; font-weight: 650;
}

@media (max-width: 1040px) {
  .app-bar__meta { display: none; }
  .page-intro { grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: 28px; }
  h1 { font-size: 36px; }
  .cohort-band { align-items: flex-start; flex-direction: column; gap: 12px; }
  .cohort-description { max-width: 800px; text-align: left; }
  .overview-grid { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .filter-bar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .search-field { grid-column: span 3; }
  .filter-bar label:not(.search-field) { grid-column: span 2; }
  .filter-reset { grid-column: 6; grid-row: 2; justify-self: end; }
}

@media (max-width: 760px) {
  .app-bar__inner { min-height: 58px; padding: 8px 14px; gap: 8px; }
  .brand__copy span, .button--quiet span { display: none; }
  .brand { margin-right: auto; }
  .button--quiet { width: 38px; padding: 0; }
  .app-actions { gap: 3px; }
  main, .site-footer { padding-right: 14px; padding-left: 14px; }
  .page-intro { display: block; padding: 34px 0 18px; }
  h1 { font-size: 32px; }
  .intro-copy { font-size: 15px; }
  .interpretation-note { margin-top: 24px; }
  .cohort-band { padding: 13px; }
  .segmented-control { display: grid; width: 100%; }
  .segmented-control button { padding-right: 8px; padding-left: 8px; white-space: normal; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 106px; padding: 15px; }
  .metric-card strong { font-size: 26px; }
  .panel { padding: 17px 14px; }
  .domain-row { grid-template-columns: 95px minmax(130px, 1fr) 42px; gap: 7px; }
  .domain-label strong { font-size: 11px; }
  .matrix-heading { align-items: flex-start; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .filter-bar { padding: 12px 14px; grid-template-columns: 1fr 1fr 38px; }
  .search-field { grid-column: 1 / -1; }
  .filter-bar label:not(.search-field) { grid-column: auto; }
  .filter-bar label:nth-of-type(4) { grid-column: 1 / 3; }
  .filter-reset { grid-column: 3; grid-row: 3; }
  .table-shell { max-height: 610px; }
  th:first-child { width: 258px; min-width: 258px; padding-left: 14px; }
  td:first-child { padding-left: 14px; }
  .site-footer { padding-top: 18px; padding-bottom: 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer > div { flex-wrap: wrap; }
  .drawer { width: 100vw; }
  .dialog-body { padding: 18px 17px 34px; }
  .domain-tabs { margin-right: -17px; margin-left: -17px; padding-right: 17px; padding-left: 17px; }
  .metadata-grid, .provenance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-components { grid-template-columns: 1fr; }
  .method-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .method-dialog .dialog-body { max-height: calc(100dvh - 98px); }
}

@media (max-width: 470px) {
  .brand__copy { display: none; }
  .app-bar__inner { padding-right: 10px; padding-left: 10px; }
  .button--primary { padding: 0 9px; }
  .button__chevron { display: none; }
  .page-intro { padding-top: 28px; }
  h1 { font-size: 29px; }
  .segmented-control { grid-template-columns: 1fr; }
  .metric-card { padding: 13px; }
  .domain-row { grid-template-columns: 82px minmax(108px, 1fr) 38px; }
  .filter-bar { grid-template-columns: 1fr 38px; }
  .filter-bar label:not(.search-field), .filter-bar label:nth-of-type(4) { grid-column: 1 / -1; }
  .filter-reset { grid-column: 2; grid-row: 5; }
  .metadata-grid, .provenance-grid { grid-template-columns: 1fr; }
  .provenance-grid .wide { grid-column: auto; }
  .evidence-overview button { grid-template-columns: 1fr auto 16px; gap: 5px 8px; }
  .evidence-overview button > strong { grid-column: 1; grid-row: 1; }
  .evidence-overview button > .state-stack { grid-column: 2; grid-row: 1 / 3; }
  .evidence-overview button > small { grid-column: 1; grid-row: 2; }
  .evidence-overview button > svg { grid-column: 3; grid-row: 1 / 3; }
}

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