
@layer reset, tokens, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure, figcaption { margin: 0; }
  ul, ol { padding: 0; }
  button, input, select { font: inherit; }
  button, select { cursor: pointer; }
  img, svg { display: block; max-width: 100%; }
}

@layer tokens {
  :root {
    --night: #061429;
    --night-2: #0a2a52;
    --night-3: #0d3f76;
    --ink: #09182f;
    --ink-2: #2d405d;
    --muted: #5c6d85;
    --paper: #f2f6fb;
    --surface: #ffffff;
    --line: #dce5f0;
    --line-strong: #b9c8da;
    --blue: #265fe7;
    --blue-dark: #153eac;
    --blue-soft: #eaf0ff;
    --cyan: #55def7;
    --lime: #dcff66;
    --lime-ink: #1b3100;
    --focus: #ffbd3e;
    --result: #4b50df;
    --result-soft: #eff0ff;
    --result-ink: #3036a8;
    --development: #087c68;
    --development-soft: #e4f7f2;
    --development-ink: #075747;
    --pending: #a65a07;
    --pending-soft: #fff2da;
    --pending-ink: #7a4000;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Avenir Next", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-sm: 0 9px 28px rgba(7, 24, 50, 0.07);
    --shadow-md: 0 24px 65px rgba(7, 24, 50, 0.15);
    --shadow-hero: 0 28px 80px rgba(0, 7, 23, 0.38);
    --radius-sm: 0.75rem;
    --radius-md: 1.15rem;
    --radius-lg: 1.75rem;
    --radius-pill: 999px;
    --content: 78rem;
    --gutter: 1.125rem;
  }

  .evidence--results { --signal: var(--result); --signal-soft: var(--result-soft); --signal-ink: var(--result-ink); }
  .evidence--development { --signal: var(--development); --signal-soft: var(--development-soft); --signal-ink: var(--development-ink); }
  .evidence--pending { --signal: var(--pending); --signal-soft: var(--pending-soft); --signal-ink: var(--pending-ink); }
  .area--CRM { --area: #8c4c17; --area-soft: #fff0e2; }
  .area--ONC { --area: #9c3567; --area-soft: #fceaf3; }
  .area--IIR { --area: #6346a5; --area-soft: #f0ebff; }
  .area--INF { --area: #08746e; --area-soft: #e5f7f4; }
  .area--RAR { --area: #22649a; --area-soft: #e8f3fc; }
  .area--NEU { --area: #3c56a7; --area-soft: #eaf0ff; }
  .area--MJR { --area: #4e762e; --area-soft: #edf7e6; }
}

@layer base {
  body {
    min-width: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.58;
    text-rendering: optimizeLegibility;
  }
  a { color: var(--blue-dark); text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
  a:hover { color: var(--ink); }
  :focus-visible { border-radius: 0.25rem; outline: 3px solid var(--focus); outline-offset: 3px; }
  ::selection { background: var(--lime); color: var(--ink); }
  main:focus { outline: 0; }
  h1, h2, h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.06;
    text-wrap: balance;
  }
  h1 { font-size: clamp(2.65rem, 5.5vw, 5rem); }
  h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
  h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
  small { font-size: 0.875rem; }
  button, input, select, a.button { min-height: 3rem; }
  button, a, input, select { touch-action: manipulation; }
}

@layer components {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.72rem 1rem;
    transform: translateY(-160%);
    border-radius: var(--radius-sm);
    background: var(--lime);
    color: var(--lime-ink);
    font-weight: 800;
    text-decoration: none;
  }
  .skip-link:focus { transform: translateY(0); }
  .shell { width: 100%; max-width: calc(var(--content) + var(--gutter) + var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  @supports (padding: max(1px, 2px)) {
    .shell { padding-right: max(var(--gutter), env(safe-area-inset-right)); padding-left: max(var(--gutter), env(safe-area-inset-left)); }
  }

  .site-header { position: relative; z-index: 30; border-bottom: 1px solid rgba(255,255,255,0.12); background: var(--night); color: #fff; }
  .header-inner { display: flex; min-height: 4.75rem; align-items: center; }
  .brand { display: inline-flex; min-height: 3rem; align-items: center; gap: 0.78rem; color: #fff; text-decoration: none; }
  .brand:hover { color: #fff; }
  .brand > span:last-child { display: grid; }
  .brand-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 780; letter-spacing: -0.035em; line-height: 1.12; }
  .brand-descriptor { color: #aebed5; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; line-height: 1.25; }
  .brand-mark { display: grid; width: 2.85rem; height: 2.85rem; flex: 0 0 auto; place-items: center; filter: drop-shadow(0 7px 16px rgba(0,8,28,0.42)); transform-origin: 50% 54%; transition: transform 180ms ease, filter 180ms ease; }
  .brand-mark svg { width: 100%; height: 100%; overflow: visible; }
  .brand:hover .brand-mark { filter: drop-shadow(0 10px 20px rgba(50,182,242,0.26)); transform: translateY(-1px) rotate(-2deg); }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.78rem 1.08rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 780; line-height: 1.25; text-align: center; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
  .button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
  .button--primary { border-color: var(--blue); background: var(--blue); color: #fff; }
  .button--primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }

  .eyebrow, .section-kicker { color: var(--blue); font-size: 0.78rem; font-weight: 820; letter-spacing: 0.11em; line-height: 1.3; text-transform: uppercase; }

  .hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 77% 41%, rgba(22,135,255,0.37), transparent 27rem),
      radial-gradient(circle at 18% 92%, rgba(88,69,212,0.24), transparent 30rem),
      linear-gradient(135deg, #061429 0%, #0a2145 58%, #061429 100%);
    color: #fff;
    isolation: isolate;
  }
  .hero::before { position: absolute; inset: 0; z-index: -1; opacity: 0.11; background-image: linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to right, #000, transparent 72%); content: ""; }
  .hero::after { position: absolute; z-index: -1; top: 7%; right: 5%; width: 30rem; aspect-ratio: 1; border: 1px solid rgba(85,222,247,0.16); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(85,222,247,0.025), 0 0 0 8rem rgba(85,222,247,0.02); content: ""; }
  .hero-grid { display: grid; min-height: 44rem; grid-template-columns: minmax(0, 1.08fr) minmax(27rem, 0.92fr); align-items: center; gap: clamp(1.75rem, 3.2vw, 3.5rem); }
  .hero-grid > * { min-width: 0; }
  .hero-copy-block { position: relative; z-index: 4; min-width: 0; padding: 2.8rem 0 3.4rem; scroll-margin-top: 1rem; }
  .hero .eyebrow { color: var(--lime); }
  .hero h1 { max-width: 17ch; margin-top: 0.65rem; color: #fff; font-size: clamp(2.8rem, 4.1vw, 3.95rem); line-height: 1.01; }
  .hero-copy { max-width: 35rem; margin-top: 0.8rem; color: #cdd9eb; font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.5; }

  .search-panel { display: grid; max-width: 36.5rem; gap: 0.6rem; margin-top: 1.35rem; padding: 0.95rem; border: 1px solid rgba(255,255,255,0.78); border-top: 4px solid var(--lime); border-radius: 1.35rem; background: rgba(255,255,255,0.985); box-shadow: 0 30px 85px rgba(0,7,23,0.46); color: var(--ink); }
  .search-panel-heading { display: flex; align-items: center; gap: 0.7rem; padding: 0.05rem 0.1rem 0.2rem; }
  .search-panel-icon { display: grid; width: 2.05rem; height: 2.05rem; flex: 0 0 auto; place-items: center; border-radius: 0.65rem; background: linear-gradient(135deg, var(--blue), var(--result)); color: #fff; box-shadow: 0 7px 18px rgba(38,95,231,0.22); }
  .search-panel-icon svg { width: 1.05rem; }
  .search-panel-heading strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; }
  .search-field { display: grid; gap: 0.32rem; }
  .search-field label { color: var(--ink-2); font-size: 0.8125rem; font-weight: 780; }
  .search-field select, .query-control { width: 100%; min-width: 0; min-height: 3.15rem; border: 1px solid var(--line-strong); border-radius: 0.9rem; background: #fff; color: var(--ink); transition: border-color 140ms ease, box-shadow 140ms ease; }
  .search-field select { padding: 0.62rem 2.5rem 0.62rem 0.82rem; }
  .search-field select:hover, .query-control:hover { border-color: #8ca3c0; }
  .search-field select:focus, .query-control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38,95,231,0.13); }
  .query-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .query-control > svg { width: 1.25rem; margin-left: 0.78rem; color: var(--blue); }
  .query-control input { width: 100%; min-width: 0; min-height: 3.05rem; padding: 0.55rem 0.65rem; border: 0; outline: 0; background: transparent; color: var(--ink); }
  .query-control input::placeholder { color: #74839a; opacity: 1; }
  .search-clear { display: none; width: 3rem; min-height: 3rem; align-items: center; justify-content: center; border: 0; border-radius: 0.75rem; background: transparent; color: var(--muted); font-size: 1.45rem; line-height: 1; }
  .search-clear.is-visible { display: inline-flex; }
  .search-clear:hover { background: var(--paper); color: var(--ink); }
  .search-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; margin-top: 0.15rem; }
  .search-submit, .search-reset { min-height: 3.25rem; border-radius: 0.9rem; font-weight: 800; }
  .search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid var(--blue); background: var(--blue); color: #fff; }
  .search-submit:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
  .search-reset { padding-inline: 1rem; border: 1px solid var(--line); background: #fff; color: var(--blue-dark); }
  .search-reset:hover { background: var(--blue-soft); }
  /* The caption owns a row: wrapping text must never cover the head or its controls. */
  .body-explorer { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.75rem; min-width: 0; align-self: stretch; min-height: 0; padding: 1.1rem clamp(0.25rem, 0.6vw, 0.55rem) 0; isolation: isolate; }
  .body-caption { position: relative; z-index: 6; top: auto; left: auto; width: max-content; max-width: calc(100% - 2rem); margin: 0 auto; transform: none; padding: 0.72rem 0.9rem 0.78rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 1rem; background: rgba(5,20,43,0.78); color: #fff; box-shadow: 0 14px 36px rgba(0,7,23,0.2); text-align: center; backdrop-filter: blur(12px); }
  .body-caption-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.28rem 0.48rem; margin-bottom: 0.28rem; }
  .body-alternative { color: #b9cae0; font-size: 0.72rem; font-weight: 760; letter-spacing: 0.055em; line-height: 1.2; text-transform: uppercase; }
  .optional-badge { display: inline-flex; min-height: 1.65rem; align-items: center; padding: 0.25rem 0.55rem; border: 1px solid rgba(220,255,102,0.42); border-radius: var(--radius-pill); background: rgba(220,255,102,0.11); color: var(--lime); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; }
  .body-caption strong, .body-caption small { display: block; }
  .body-caption strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.015em; line-height: 1.2; }
  .body-caption small { margin-top: 0.1rem; color: #c6d4e7; font-size: 0.75rem; line-height: 1.3; }
  .anatomy-stage { position: relative; width: 100%; min-width: 0; height: auto; min-height: 44rem; isolation: isolate; }
  .anatomy-stage::before { position: absolute; top: 51%; left: 50%; width: min(33rem, 98%); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid rgba(85,222,247,0.17); border-radius: 50%; background: radial-gradient(circle, rgba(39,124,241,0.2), rgba(6,20,41,0) 69%); box-shadow: inset 0 0 90px rgba(85,222,247,0.05); content: ""; }
  .anatomy-map { position: absolute; z-index: 1; top: 52%; left: 50%; width: min(25.8rem, 94%); height: 41rem; transform: translate(-50%, -50%); }
  .anatomy-map > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 38px rgba(0,5,20,0.42)); }
  .organ-hotspots { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
  .organ-hotspot { position: absolute; display: grid; width: 3rem; min-height: 3rem; place-items: center; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; color: #fff; pointer-events: auto; }
  .organ-hotspot:is(:hover, :focus-visible), .organ-hotspot[aria-pressed="true"] { z-index: 3; }
  .hotspot-dot { position: relative; display: block; width: 0.95rem; height: 0.95rem; border: 3px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0.35rem rgba(220,255,102,0.2), 0 0 1.35rem rgba(85,222,247,0.95); transition: transform 150ms ease, box-shadow 150ms ease; }
  .hotspot-dot::after { position: absolute; inset: -0.7rem; border: 1px solid rgba(255,255,255,0.52); border-radius: 50%; content: ""; animation: hotspot-pulse 2.6s ease-out infinite; }
  .organ-hotspot:hover .hotspot-dot, .organ-hotspot:focus-visible .hotspot-dot, .organ-hotspot[aria-pressed="true"] .hotspot-dot { transform: scale(1.18); box-shadow: 0 0 0 0.48rem rgba(220,255,102,0.25), 0 0 1.6rem rgba(85,222,247,1); }
  .hotspot-label { position: absolute; z-index: 2; top: 50%; left: calc(100% + 0.25rem); width: max-content; max-width: 9.5rem; padding: 0.45rem 0.65rem; transform: translate(-0.35rem, -50%); border: 1px solid rgba(255,255,255,0.52); border-radius: var(--radius-pill); background: rgba(4,17,37,0.94); box-shadow: 0 9px 26px rgba(0,6,24,0.32); color: #fff; font-size: 0.8125rem; font-weight: 790; line-height: 1.2; opacity: 0; pointer-events: none; text-align: center; transition: opacity 140ms ease, transform 140ms ease; }
  .hotspot-label--left { right: calc(100% + 0.25rem); left: auto; transform: translate(0.35rem, -50%); }
  .organ-hotspot:hover .hotspot-label, .organ-hotspot:focus-visible .hotspot-label, .organ-hotspot[aria-pressed="true"] .hotspot-label { transform: translate(0, -50%); opacity: 1; }
  .organ-hotspots:hover .organ-hotspot[aria-pressed="true"]:not(:hover) .hotspot-label,
  .organ-hotspots:focus-within .organ-hotspot[aria-pressed="true"]:not(:focus) .hotspot-label { opacity: 0; }
  @media (min-width: 40.0625rem) {
    .organ-hotspot--lungs .hotspot-label { right: calc(100% + 0.25rem); left: auto; transform: translate(0.35rem, -50%); }
    .organ-hotspot--lungs:hover .hotspot-label, .organ-hotspot--lungs:focus-visible .hotspot-label, .organ-hotspot--lungs[aria-pressed="true"] .hotspot-label { transform: translate(0, -50%); }
    .organ-hotspot--digestive .hotspot-label { top: calc(100% + 0.12rem); right: auto; left: 50%; transform: translate(-50%, -0.35rem); }
    .organ-hotspot--digestive:hover .hotspot-label, .organ-hotspot--digestive:focus-visible .hotspot-label, .organ-hotspot--digestive[aria-pressed="true"] .hotspot-label { transform: translate(-50%, 0); }
    .organ-hotspot--bones .hotspot-label { top: auto; right: auto; bottom: calc(100% + 0.12rem); left: 50%; transform: translate(-50%, 0.35rem); }
    .organ-hotspot--bones:hover .hotspot-label, .organ-hotspot--bones:focus-visible .hotspot-label, .organ-hotspot--bones[aria-pressed="true"] .hotspot-label { transform: translate(-50%, 0); }
  }
  .organ-hotspot--brain { top: 6%; left: 50%; }
  .organ-hotspot--lungs { top: 24%; left: 44%; }
  .organ-hotspot--heart { top: 27%; left: 54%; }
  .organ-hotspot--liver { top: 33%; left: 43%; }
  .organ-hotspot--kidneys { top: 38%; left: 57%; }
  .organ-hotspot--digestive { top: 44%; left: 47%; }
  .organ-hotspot--bones { top: 69%; left: 59%; }
  .organ-hotspot--lungs .hotspot-dot::after { animation-delay: -0.38s; }
  .organ-hotspot--heart .hotspot-dot::after { animation-delay: -0.76s; }
  .organ-hotspot--liver .hotspot-dot::after { animation-delay: -1.14s; }
  .organ-hotspot--kidneys .hotspot-dot::after { animation-delay: -1.52s; }
  .organ-hotspot--digestive .hotspot-dot::after { animation-delay: -1.9s; }
  .organ-hotspot--bones .hotspot-dot::after { animation-delay: -2.28s; }
  .topic-menu { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
  .topic-button { position: absolute; display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; max-width: min(11.5rem, 34%); padding: 0.5rem 0.72rem; border: 1px solid rgba(255,255,255,0.58); border-radius: var(--radius-pill); background: rgba(255,255,255,0.94); box-shadow: 0 10px 28px rgba(0,7,23,0.26); color: var(--ink); font-size: 0.8125rem; font-weight: 790; line-height: 1.15; overflow-wrap: anywhere; text-align: center; pointer-events: auto; backdrop-filter: blur(10px); transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease; }
  .topic-button:hover { transform: translateY(-2px); border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
  .topic-button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 4px rgba(220,255,102,0.17), 0 12px 30px rgba(0,7,23,0.3); }
  .topic-button--neu { top: 18%; left: 0.35rem; }
  .topic-button--onc { top: 25%; right: 0.35rem; }
  .topic-button--crm { top: 42%; left: 0; }
  .topic-button--iir { top: 48%; right: 0; }
  .topic-button--inf { top: 65%; left: 0.2rem; }
  .topic-button--rar { top: 69%; right: 0.35rem; }
  .topic-button--mjr { bottom: 4%; left: 50%; transform: translateX(-50%); }
  .topic-button--mjr:hover { transform: translate(-50%, -2px); }
  .topic-button--mjr[aria-pressed="true"] { transform: translateX(-50%); }
  @keyframes hotspot-pulse { 0% { transform: scale(0.72); opacity: 0.72; } 75%, 100% { transform: scale(1.28); opacity: 0; } }

  .explorer { padding: clamp(3.8rem, 7vw, 6rem) 0 6rem; background: var(--paper); }
  .catalog-intro { display: flex; width: min(100%, 70rem); margin-inline: auto; align-items: end; justify-content: space-between; gap: 2rem; }
  .catalog-intro > *, .results-toolbar > * { min-width: 0; }
  .catalog-intro h2 { max-width: 20ch; }
  .change-search { display: inline-flex; min-height: 3rem; align-items: center; gap: 0.35rem; flex: 0 0 auto; font-size: 0.875rem; font-weight: 790; text-decoration: none; }
  .results-column { width: min(100%, 70rem); margin: 1.7rem auto 0; }
  .results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .results-count { color: var(--ink); font-size: 1.02rem; font-weight: 750; scroll-margin-top: 1rem; }
  .results-count span { font-size: 1.7rem; font-weight: 830; letter-spacing: -0.045em; }
  .results-subtitle { margin-top: 0.08rem; color: var(--muted); font-size: 0.8125rem; }
  .active-filters { display: flex; flex-wrap: wrap; gap: 0.48rem; margin: 0.9rem 0 0; list-style: none; }
  .active-filters:empty { display: none; }
  .filter-chip { min-width: 0; max-width: 100%; }
  .filter-chip button { display: inline-flex; max-width: 100%; min-height: 3rem; align-items: center; gap: 0.5rem; padding: 0.52rem 0.78rem; border: 1px solid #bfcbed; border-radius: var(--radius-pill); background: var(--blue-soft); color: var(--blue-dark); font-size: 0.8125rem; font-weight: 750; overflow-wrap: anywhere; text-align: left; }
  .filter-chip button::after { content: "×"; font-size: 1.05rem; }

  .study-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; list-style: none; }
  .study-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--signal); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease; }
  .study-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); box-shadow: var(--shadow-md); }
  .study-card-link { display: grid; min-height: 100%; grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.75fr); grid-template-areas: "top top" "summary facts" "footer footer"; column-gap: 1.6rem; padding: 1.3rem 1.4rem 1.15rem; color: var(--ink); text-decoration: none; }
  .study-card-link:hover { color: var(--ink); }
  .card-topline { display: flex; min-width: 0; grid-area: top; flex-wrap: wrap; align-items: center; gap: 0.42rem; }
  .evidence-pill, .tag { display: inline-flex; min-height: 1.9rem; align-items: center; gap: 0.42rem; padding: 0.3rem 0.58rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 760; line-height: 1.15; }
  .evidence-pill { background: var(--signal-soft); color: var(--signal-ink); }
  .signal-dot { display: inline-block; width: 0.58rem; height: 0.58rem; flex: 0 0 auto; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--signal) 15%, transparent); }
  .tag { border: 1px solid var(--line); background: #f7f9fc; color: var(--ink-2); }
  .tag--area { border-color: color-mix(in srgb, var(--area) 20%, var(--line)); background: var(--area-soft); color: var(--area); }
  .card-summary { min-width: 0; grid-area: summary; align-self: start; margin-top: 1.05rem; }
  .study-card .study-name { color: var(--blue-dark); font-family: var(--font-display); font-size: 1rem; font-weight: 820; letter-spacing: -0.015em; line-height: 1.3; overflow-wrap: anywhere; }
  .study-card .study-question { color: var(--ink); font-size: clamp(1.18rem, 1.75vw, 1.42rem); letter-spacing: -0.025em; line-height: 1.24; overflow-wrap: anywhere; }
  .study-card .study-name + .study-question { margin-top: 0.48rem; }
  .card-details { display: grid; min-width: 0; grid-area: facts; grid-template-columns: 1fr; align-content: start; gap: 0.8rem; margin-top: 1.05rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0.9rem; background: #f7f9fc; }
  .card-detail { min-width: 0; }
  .card-detail dt { color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  .card-detail dd { margin-top: 0.22rem; color: var(--ink-2); font-size: 0.9rem; line-height: 1.42; overflow-wrap: anywhere; }
  .card-footer { display: flex; min-width: 0; grid-area: footer; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem 1rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  .nct { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; font-weight: 720; letter-spacing: 0.02em; }
  .card-link-cue { color: var(--blue-dark); font-size: 0.85rem; font-weight: 800; }

  .pagination { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
  .pagination[hidden] { display: none; }
  .pagination button { display: inline-grid; width: 3rem; min-height: 3rem; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); font-weight: 800; }
  .pagination button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue); color: #fff; }
  .pagination button:disabled { cursor: not-allowed; opacity: 0.42; }
  .pagination-status { min-width: 8rem; color: var(--muted); font-size: 0.8125rem; font-weight: 700; text-align: center; }
  .empty-state { display: none; margin-top: 1rem; padding: 3.5rem 1.4rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: #fff; text-align: center; }
  .empty-state.is-visible { display: block; }
  .empty-mark { display: grid; width: 3.6rem; height: 3.6rem; margin: 0 auto 0.9rem; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 1.45rem; font-weight: 850; }
  .empty-state h2 { font-size: 1.8rem; }
  .empty-state p { margin: 0.55rem auto 1rem; color: var(--muted); }
  .notice { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
  .notice p { margin-top: 0.25rem; color: var(--muted); }

  .detail-hero { position: relative; overflow: hidden; padding: 2rem 0 7.2rem; background: linear-gradient(145deg, var(--night), var(--night-2)); }
  .detail-hero::after { position: absolute; right: -12rem; bottom: -18rem; width: 34rem; height: 34rem; border: 1px solid rgba(85,222,247,0.19); border-radius: 50%; content: ""; }
  .breadcrumb { position: relative; z-index: 1; display: flex; min-width: 0; flex-wrap: wrap; gap: 0.45rem; align-items: center; color: #9aabc5; font-size: 0.8125rem; overflow-wrap: anywhere; }
  .breadcrumb a { color: #d7e4f5; }
  .detail-labels { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.1rem; }
  .detail-hero .tag { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.09); color: #fff; }
  .detail-hero .tag--area { color: #fff; }
  .detail-study-name { position: relative; z-index: 1; max-width: 58rem; margin-top: 1.2rem; color: var(--lime); font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 820; letter-spacing: -0.015em; line-height: 1.35; overflow-wrap: anywhere; }
  .detail-hero .detail-study-question { position: relative; z-index: 1; max-width: 32ch; margin-top: 1.2rem; color: #fff; font-size: clamp(2rem, 3.45vw, 3.2rem); line-height: 1.09; overflow-wrap: anywhere; }
  .detail-study-name + .detail-study-question { margin-top: 0.58rem; }
  .summary-shell { position: relative; z-index: 2; margin-top: -4.4rem; padding-bottom: clamp(4.5rem, 9vw, 8rem); }
  .summary-empty { width: min(100%, 50rem); margin-inline: auto; padding: clamp(2rem, 6vw, 4.1rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); text-align: center; }
  .summary-icon { display: grid; width: 4.6rem; height: 4.6rem; margin: 0 auto 1.35rem; place-items: center; border-radius: 1.4rem; background: linear-gradient(135deg, var(--blue-soft), #e5fbff); color: var(--blue); transform: rotate(-3deg); }
  .summary-icon svg { width: 2.25rem; }
  .summary-empty h2 { margin-top: 0.5rem; font-size: clamp(2rem, 4vw, 3.1rem); }
  .summary-empty > p:not(.section-kicker) { max-width: 35rem; margin: 0.85rem auto 1.5rem; color: var(--muted); font-size: 1.05rem; }
  .summary-empty .button { min-height: 3.3rem; padding-inline: 1.35rem; }
  .external-note { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 0.75rem; }

  .detail-content-shell { position: relative; z-index: 2; margin-top: -4.4rem; padding-bottom: clamp(4.5rem, 9vw, 8rem); }
  .detail-content-grid { display: grid; width: min(100%, 68rem); margin-inline: auto; grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr); align-items: stretch; gap: 1rem; }
  .detail-panel { min-width: 0; padding: clamp(1.5rem, 3.2vw, 2.35rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
  .detail-panel--facts { border-top: 4px solid var(--signal); }
  .detail-panel--source { border-top: 4px solid var(--blue); }
  .detail-panel h2 { margin-top: 0.42rem; font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.1; }
  .study-facts { display: grid; gap: 0.9rem; margin-top: 1.35rem; }
  .study-fact { min-width: 0; padding-top: 0.9rem; border-top: 1px solid var(--line); }
  .study-fact dt { color: var(--muted); font-size: 0.75rem; font-weight: 820; letter-spacing: 0.07em; text-transform: uppercase; }
  .study-fact dd { margin-top: 0.28rem; color: var(--ink); font-size: 0.98rem; font-weight: 680; line-height: 1.46; overflow-wrap: anywhere; }
  .source-heading { display: flex; min-width: 0; align-items: flex-start; gap: 0.9rem; }
  .source-heading > div { min-width: 0; }
  .source-icon { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; place-items: center; border-radius: 0.9rem; background: linear-gradient(135deg, var(--blue-soft), #e5fbff); color: var(--blue-dark); font-size: 1.35rem; font-weight: 850; }
  .detail-source-copy { max-width: 40rem; margin-top: 1rem; color: var(--muted); font-size: 1.02rem; line-height: 1.58; }
  .detail-panel--source .button { min-height: 3.3rem; margin-top: 1.35rem; padding-inline: 1.35rem; }
  .detail-panel--source .external-note { margin-top: 0.7rem; }

  .explorer[hidden] { display: none !important; }

  .error-page { display: grid; min-height: 72vh; place-items: center; padding: 3rem 1rem; text-align: center; }
  .error-page > div { max-width: 38rem; }
  .error-page h1 { margin-top: 0.5rem; }
  .error-page p:not(.eyebrow) { margin: 1rem 0 1.4rem; color: var(--muted); }

  .site-footer { padding: 3rem 0; background: #040d1e; color: #fff; }
  .footer-inner { display: block; }
  .footer-brand { font-family: var(--font-display); font-size: 1.12rem; font-weight: 780; letter-spacing: -0.03em; }
  .footer-copy { max-width: 34rem; margin-top: 0.5rem; color: #aab8cf; font-size: 0.8125rem; }
}

@layer responsive {
  @media (max-width: 70rem) {
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(25rem, 0.95fr); gap: 1.5rem; }
    .hero h1 { font-size: clamp(2.75rem, 4.6vw, 4rem); }
    .anatomy-map { width: min(25.4rem, 95%); }
    .topic-button { max-width: min(9.8rem, 34%); padding-inline: 0.62rem; font-size: 0.75rem; }
    .topic-button--crm { left: 0.15rem; }
    .topic-button--iir { right: 0.15rem; }
  }

  @media (max-width: 68rem) {
    .hero-grid { min-height: 0; grid-template-columns: 1fr; }
    .hero-copy-block { width: min(100%, 43rem); padding: 3.5rem 0 1.5rem; }
    .hero h1 { max-width: 17ch; }
    .search-panel { max-width: 40rem; }
    .anatomy-stage { min-height: 46rem; }
    .body-explorer { width: min(100%, 54rem); margin: -0.5rem auto 0; padding-inline: 0; }
    .anatomy-map { top: 55%; width: min(26.7rem, 86%); height: 40rem; }
    .topic-button { max-width: min(11.5rem, 30%); font-size: 0.8125rem; }
    .topic-button--crm { left: 2%; }
    .topic-button--iir { right: 2%; }
  }

  @media (max-width: 56rem) {
    .study-card-link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "summary" "facts" "footer"; }
    .card-details { padding: 0.85rem 0 0; border-width: 1px 0 0; border-radius: 0; background: transparent; }
    .detail-content-grid { grid-template-columns: minmax(0, 1fr); }
  }

  @media (max-width: 40rem) {
    .shell { --gutter: 0.875rem; }
    .header-inner { min-height: 4.35rem; }
    .brand-descriptor { display: none; }
    .brand-mark { width: 2.55rem; height: 2.55rem; }
    .brand-name { font-size: 0.98rem; }
    .hero-copy-block { padding-top: 2.75rem; }
    .hero h1 { font-size: clamp(2.45rem, 11.5vw, 3.45rem); line-height: 1.01; }
    .hero-copy { font-size: 1rem; }
    .search-panel { margin-top: 1.4rem; padding: 0.9rem; border-radius: 1.2rem; }
    .search-actions { grid-template-columns: 1fr; }
    .search-reset { order: 2; }
    .body-explorer { min-height: 0; margin-top: 0.9rem; padding-block: 0; gap: 0.5rem; }
    .body-caption { position: relative; top: auto; left: auto; width: min(100%, 21rem); margin: 0 auto; transform: none; }
    .anatomy-stage { display: flex; height: auto; min-height: 0; flex-direction: column; }
    .anatomy-map { position: relative; top: auto; left: auto; width: min(18rem, 84%); height: 24.5rem; flex: 0 0 auto; margin: 0.2rem auto 0; transform: none; }
    .anatomy-stage::before { top: 12.45rem; width: min(18rem, 88%); }
    .hotspot-label, .hotspot-label--left { top: calc(100% - 0.15rem); right: auto; bottom: auto; left: 50%; width: max-content; max-width: min(8.7rem, calc(100vw - 2.5rem)); transform: translate(-50%, -0.35rem); font-size: 0.75rem; }
    .organ-hotspot:hover .hotspot-label, .organ-hotspot:focus-visible .hotspot-label, .organ-hotspot[aria-pressed="true"] .hotspot-label { transform: translate(-50%, 0); }
    .topic-menu { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; height: auto; margin-top: -0.35rem; padding: 0 0.15rem 0.15rem; }
    .topic-button, .topic-button--neu, .topic-button--onc, .topic-button--crm, .topic-button--iir, .topic-button--inf, .topic-button--rar, .topic-button--mjr { position: static; width: 100%; max-width: none; min-height: 2.75rem; transform: none; font-size: 0.75rem; }
    .topic-button--mjr { grid-column: 1 / -1; width: min(100%, 17rem); justify-self: center; }
    .topic-button--mjr:hover, .topic-button--mjr[aria-pressed="true"] { transform: translateY(-2px); }
    .explorer { padding-top: 3.5rem; }
    .catalog-intro { align-items: start; }
    .catalog-intro h2 { font-size: 2.05rem; }
    .change-search { min-height: 2.75rem; font-size: 0.8125rem; }
    .card-details { grid-template-columns: 1fr; gap: 0.65rem; }
    .study-card-link { padding: 1.1rem; }
    .detail-hero { padding-bottom: 6rem; }
    .detail-hero .detail-study-question { font-size: 1.9rem; line-height: 1.1; }
    .summary-shell, .detail-content-shell { margin-top: -3rem; }
    .summary-empty { padding: 2rem 1.1rem; border-radius: var(--radius-md); }
    .summary-empty .button { width: 100%; }
    .detail-panel { padding: 1.45rem 1.1rem; border-radius: var(--radius-md); }
    .detail-panel--source .button { width: 100%; }
  }

  @media (max-width: 32rem) {
    .catalog-intro { display: grid; gap: 0.35rem; }
    .change-search { justify-self: start; }
  }

  @media (max-width: 25rem) {
    .hotspot-label { max-width: 7.6rem; white-space: normal; }
    .pagination { gap: 0.45rem; }
    .pagination-status { min-width: 7rem; }
  }

  @media (hover: none), (pointer: coarse) {
    .button:hover, .study-card:hover, .topic-button:hover { transform: none; }
    .topic-button--mjr:hover { transform: translateX(-50%); }
  }

  @media (max-width: 40rem) and (hover: none), (max-width: 40rem) and (pointer: coarse) {
    .topic-button--mjr:hover { transform: none; }
  }

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

  @media (forced-colors: active) {
    :focus-visible { outline: 3px solid Highlight; }
    .study-card, .summary-empty, .search-panel, .query-control, .search-field select { border: 1px solid CanvasText; }
    .signal-dot, .hotspot-dot { background: CanvasText; box-shadow: none; }
    .organ-hotspot[aria-pressed="true"], .topic-button[aria-pressed="true"] { outline: 3px solid Highlight; }
    .hotspot-label { border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  }

  @media print {
    .site-header, .site-footer, .search-panel, .body-explorer, .pagination, .change-search { display: none !important; }
    body, .hero, .detail-hero, .study-card, .summary-empty { background: #fff !important; color: #000 !important; box-shadow: none !important; }
    .hero h1, .hero p, .detail-hero h1, .detail-hero p { color: #000 !important; }
    .study-list { display: block; }
    .study-card { break-inside: avoid; margin-bottom: 1rem; }
  }
}

  

/* P19: extend the approved P18 identity; anatomy caption has a separate flow row since P19.3. */
[hidden] { display: none !important; }
:root { --gutter: clamp(1rem, 2.4vw, 2rem); }
.header-inner { justify-content: space-between; gap: 1rem; }
.brand-descriptor { font-size: .8125rem; }
.header-search { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; color: #d8e7ff; font-size: .875rem; font-weight: 700; text-decoration: none; }
.header-search:hover { color: var(--lime); }
.hero h1 { max-width: 18ch; line-height: 1.08; letter-spacing: -.045em; font-size: clamp(2.5rem, 3.7vw, 3.65rem); }
.hero-copy { max-width: 40ch; color: #d6e1f1; }
.hero-copy-block { padding-block: 2.5rem; }
.hero::before { opacity: .065; }
.hero::after { opacity: .55; }
.search-panel { padding: 1.1rem; gap: .85rem; box-shadow: 0 22px 60px #0005; }
.search-field label { font-size: .875rem; }
.search-field select { text-overflow: ellipsis; }
.query-control input { font-size: 1rem; }
.query-control input::placeholder { color: #62728a; }
.search-submit { box-shadow: 0 5px 15px #265fe728; }
.search-advanced { border-top: 1px solid var(--line); }
.search-advanced > summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .75rem .15rem; cursor: pointer; color: var(--ink-2); font-size: .875rem; font-weight: 750; list-style: none; min-height: 3rem; }
.search-advanced > summary::-webkit-details-marker { display: none; }
.search-advanced > summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; }
.search-advanced[open] > summary::after { content: '−'; }
.search-advanced > summary > span { color: var(--muted); font-weight: 400; font-size: .875rem; }
.advanced-fields { display: grid; gap: .85rem; padding: .15rem 0 .4rem; }
.optional-badge, .body-alternative, .body-caption small { font-size: .8125rem; }
.body-caption { border-color: #8fb3e33d; }
.hotspot-dot::after { animation: none; opacity: .55; }
.results-toolbar { gap: 1rem; flex-wrap: wrap; }
.sort-control { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.sort-control label { font-size: .875rem; font-weight: 650; }
.sort-control select { max-width: 100%; min-height: 3rem; border: 1px solid var(--line-strong); padding: .55rem 2rem .55rem .75rem; border-radius: .75rem; background: #fff; color: var(--ink-2); font-size: .875rem; }
.study-card { border-color: #d8e3f1; box-shadow: 0 4px 20px #09182f06; }
.study-card:hover { border-color: #9ab4e8; box-shadow: 0 8px 24px #265fe712; transform: translateY(-1px); }
.study-question { font-size: 1.08rem; line-height: 1.5; letter-spacing: -.015em; font-weight: 650; }
.study-name { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
.card-detail dt { font-size: .875rem; }
.card-detail dd { font-size: .9375rem; }
.card-link-cue { font-size: .9375rem; }
.detail-hero .detail-study-question { max-width: 44ch; font-size: clamp(1.65rem, 2.8vw, 2.7rem); line-height: 1.25; letter-spacing: -.025em; }
.detail-study-name { font-size: clamp(1.5rem, 2vw, 2rem); }
.detail-content-grid { align-items: start; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.detail-panel { min-width: 0; }
.detail-panel h2 { font-size: 1.45rem; line-height: 1.2; }
.study-fact dt { font-size: .875rem; }
.study-fact dd { font-size: 1rem; overflow-wrap: anywhere; }
.study-facts { gap: 1.25rem; }
.fact-disclosure { margin-top: .4rem; font-size: .9375rem; }
.fact-disclosure summary { cursor: pointer; color: var(--blue-dark); padding-block: .4rem; font-size: .875rem; }
.fact-disclosure p { margin-top: .4rem; }
.record-code { display: inline-block; margin-bottom: .65rem; color: #c9d8ee; font-size: .875rem; letter-spacing: .04em; }
.data-date { color: var(--muted); font-size: .875rem; margin-top: 1.4rem; }
.source-status { border-left: 3px solid var(--signal, var(--blue)); padding: .25rem 0 .25rem 1rem; margin: 1.2rem 0; font-size: 1rem; }
.source-status small { display: block; margin-top: .55rem; line-height: 1.5; }
.detail-source-copy { font-size: 1rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.2rem; }
.detail-actions button { padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: .7rem; color: var(--blue-dark); background: #fff; font-size: .875rem; font-weight: 650; min-height: 3rem; }
.detail-actions button:hover { background: var(--blue-soft); }
.detail-tools { margin-block: 1.6rem 2.5rem; font-size: .9375rem; }
.action-message { min-height: 1.5em; font-size: .875rem; color: var(--ink-2); margin-top: .65rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.5rem; }
.footer-copy { max-width: 66ch; }
.footer-meta { margin-top: .65rem; font-size: .8125rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: end; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; }
.content-page { padding-block: 3rem 4rem; }
.content-page h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 26ch; line-height: 1.12; }
.page-intro { max-width: 64ch; margin-block: 1rem 2rem; color: var(--ink-2); }
.area-grid { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.area-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 6rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; color: var(--ink); font-weight: 750; text-decoration: none; }
.area-link span { color: var(--muted); white-space: nowrap; font-size: .875rem; font-weight: 500; }
.area-link:hover { border-color: var(--blue); color: var(--blue-dark); }
.content-page .breadcrumb { color: var(--ink-2); margin-bottom: 1.5rem; flex-wrap: wrap; }
.content-page .breadcrumb a { color: var(--blue-dark); }
.directory-list { margin-top: 2rem; }
.directory-list .study-card-link { grid-template-columns: minmax(0,1fr); grid-template-areas: "top" "summary" "footer"; }
.directory-list .card-summary, .directory-list .card-topline, .directory-list .card-footer { grid-column: 1/-1; }
.directory-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.directory-pager a { min-height: 3rem; display: inline-flex; align-items: center; }
.home-noscript { display: block; padding: 1.5rem; background: #fff; color: var(--ink); }
.share-fallback { max-width: 100%; width: 100%; padding: .65rem; font: inherit; margin-top: .5rem; border: 1px solid var(--line-strong); }
@media (min-width: 68.01rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(27rem, 1fr); gap: clamp(2rem, 4vw, 4rem); } }
@media (max-width: 68rem) and (min-width: 40.01rem) { .hero-copy-block { max-width: 44rem; margin-inline: auto; width: 100%; } .hero h1 { max-width: 23ch; } .search-panel { max-width: none; } }
@media (max-width: 56rem) { .detail-content-grid { grid-template-columns: minmax(0,1fr); } .footer-inner { grid-template-columns: minmax(0,1fr); } .footer-nav { justify-content: start; } }
@media (max-width: 40rem) {
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.1rem); }
  .hero-copy-block { padding-block: 2rem .5rem; }
  .header-search { font-size: .8125rem; gap: .25rem; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand { gap: .5rem; }
  .search-actions { grid-template-columns: minmax(0,1fr) auto; }
  .search-reset { order: initial; padding-inline: .85rem; }
  .search-panel { padding: 1rem; }
  .topic-button { font-size: .875rem; min-height: 3rem; line-height: 1.25; padding: .55rem; }
  .topic-menu { gap: .5rem; }
  .area-grid { grid-template-columns: minmax(0,1fr); }
  .area-link { min-height: 5rem; padding: 1.2rem; }
  .detail-hero .detail-study-question { font-size: 1.65rem; }
  .sort-control { width: 100%; }
  .sort-control select { flex: 1; min-width: 0; }
}
@media (max-width: 23rem) { .header-search span { display: none; } .header-search { max-width: 6rem; line-height: 1.3; } .search-advanced > summary > span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .area-link, .detail-actions button, .search-advanced { border-color: CanvasText; } }
@media print {
  .detail-actions, .action-message, .detail-tools, .header-search { display: none !important; }
  .detail-content-grid { display: block; }
  .detail-panel { box-shadow: none; margin-block: 1rem; break-inside: avoid; }
  .detail-hero { padding-bottom: 2rem; }
  .detail-content-shell { margin-top: 0; }
  .detail-hero * { color: #000 !important; }
  a[data-external-link]::after { content: ' (' attr(href) ')'; font-size: .8rem; overflow-wrap: anywhere; }
}

/* P19.1: editorial wordmark and a direct explanation of the task. */
.header-inner { min-height: 6rem; }
.brand { min-width: 0; gap: 0; flex-shrink: 1; }
.brand-wordmark { display: block; width: 10rem; max-width: 100%; height: auto; color: #fff; overflow: visible; }
.brand:hover .brand-wordmark { color: #fff; }
.hero h1 { max-width: 24ch; margin-top: 0; font-size: clamp(2.3rem, 3.5vw, 3.45rem); line-height: 1.13; letter-spacing: -.035em; }
.hero h1 > span { display: block; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 .hero-emphasis { color: var(--lime); }
.hero-copy { max-width: 43ch; margin-top: 1rem; line-height: 1.6; }
.header-search { flex: 0 0 auto; }
@media (max-width: 40rem) {
  .header-inner { min-height: 5.4rem; gap: .75rem; }
  .brand-wordmark { width: 8.7rem; }
  .header-search { font-size: .875rem; }
  .hero h1 { font-size: clamp(1.95rem, 8.2vw, 2.85rem); max-width: 24ch; line-height: 1.16; letter-spacing: -.025em; }
}
@media (max-width: 23rem) {
  .header-search { font-size: .8125rem; max-width: 6.4rem; }
}
@media (forced-colors: active) {
  .brand-wordmark path { fill: CanvasText; }
  .hero h1 .hero-emphasis { color: CanvasText; }
}

/* P19.2: patient-focused hierarchy and consistent controls. */
.hero-copy-block { padding-block: clamp(2rem, 3.5vw, 3rem); }
.search-panel { margin-top: 1.4rem; border-top-width: 3px; border-radius: 1.15rem; }
.search-panel-heading { padding-bottom: .25rem; }
.search-panel-heading strong { font-size: 1.0625rem; line-height: 1.3; }
.query-control, .search-field select { border-color: #91a3bd; border-radius: .75rem; }
.search-field label { line-height: 1.4; }
.search-submit, .search-reset { min-height: 3.25rem; border-radius: .75rem; }
.search-reset { color: var(--ink-2); }
.search-submit:active, .search-reset:active { transform: translateY(1px); }
.search-panel :is(input, select, button, summary):focus-visible { outline-color: var(--blue-dark); outline-offset: 3px; }
.search-advanced > summary { border-radius: .5rem; }
.study-card-link { row-gap: .15rem; }
.study-card-link:focus-visible { outline-offset: 4px; }
.card-detail dd, .detail-source-copy { line-height: 1.55; }
.detail-content-shell { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.detail-tools { margin-bottom: 1.5rem; }
@media (max-width: 40rem) {
  .hero-copy-block { padding-block: 1.7rem .75rem; }
  .hero-copy { max-width: 36ch; margin-top: .85rem; font-size: 1rem; }
  .search-panel { margin-top: 1.2rem; }
  .search-actions { gap: .65rem; }
  .study-card-link { padding: 1.15rem; }
  .detail-content-shell { padding-bottom: 2.5rem; }
}
@media (max-width: 22rem) {
  .search-actions { grid-template-columns: minmax(0,1fr); }
  .search-reset { min-height: 2.75rem; }
}
@media (forced-colors: active) {
  .query-control, .search-field select { border-color: CanvasText; }
  .search-panel :is(input, select, button, summary):focus-visible { outline-color: Highlight; }
}

/* P20: Spanish-summary availability, plain legal text and funded content. */
.summary-filter { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; min-height: 44px; padding: .7rem 0 .2rem; color: var(--ink); font-size: .94rem; line-height: 1.5; }
.summary-filter input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: .12rem 0 0; accent-color: var(--blue); }
.summary-filter input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.summary-count { white-space: nowrap; }
.summary-filter-note { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0 0 .55rem; }
.tag--summary { background: #e6f4ef; color: #14523e; border: 1px solid #b8ddcf; }
.summary-content, .contact-content { margin-top: 1.5rem; max-width: 75ch; }
.summary-content h2, .contact-content h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.summary-content h3 { font-size: 1.15rem; margin: 1.3rem 0 .4rem; }
.summary-content p, .contact-content p { line-height: 1.7; margin-bottom: .9rem; overflow-wrap: anywhere; }
.summary-content .funding-disclosure, .contact-content .funding-disclosure { font-size: .9rem; color: var(--ink-2); }
.legal-page { max-width: 76ch; margin: 0 auto; padding: 2rem 1.25rem 4rem; font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.65; color: #202020; background: white; overflow-wrap: anywhere; }
.legal-page h1 { font-size: 1.65rem; line-height: 1.3; margin: 1.5rem 0 .8rem; letter-spacing: normal; }
.legal-page h2 { font-size: 1.15rem; line-height: 1.4; margin: 1.6rem 0 .5rem; letter-spacing: normal; }
.legal-page p { margin: .7rem 0; }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; }
.legal-page li { margin: .4rem 0; }
.legal-page a { color: #123da0; text-decoration: underline; }
body.plain-view { background: white; }
body.plain-view > header, body.plain-view > footer { display: none; }
