/* Scoped to the two paper pages; the program homepage keeps its existing layout. */
.patient-first { font-size: 16px; letter-spacing: 0; }
.patient-first .hero { padding: 36px 0 25px; background: white; }
.patient-first .hero .shell { padding-bottom: 0; }
.patient-first .site-header { position: static; }
.patient-first .skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.patient-first .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.patient-first .evidence-section table { min-width: 0; }
.patient-first .evidence-section th { border-top: 0; }
.evidence-pair .evidence-source-table td, .evidence-pair .evidence-source-table th { height: 72px; }
.evidence-axis { min-height: 45px; }
.patient-first .hero h1 { max-width: 980px; font-size: 32px; line-height: 1.22; letter-spacing: 0; }
.patient-first .hero .lead { max-width: 920px; font-size: 17px; line-height: 1.65; }
.patient-first .hero .authors { margin-top: 12px; font-size: 14px; }
.patient-first .hero-actions { margin-top: 14px; gap: 18px; }
.patient-first .hero-actions .button { padding: 2px 0; border: 0; background: none; color: var(--teal); border-radius: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.patient-first .status-line { margin-top: 20px; font-size: 13px; }
.patient-first .eyebrow { letter-spacing: 0; font-size: 12px; }
.patient-first .section { padding: 38px 0; }
.patient-first .section h2 { font-size: 26px; line-height: 1.3; letter-spacing: 0; }
.patient-first .section-intro { font-size: 16px; max-width: 900px; }
.patient-first .section--soft { background: #f7f8f8; }
.patient-first .evidence-section { border-top: 1px solid var(--line); padding-top: 28px; }
.patient-first .figure { margin-top: 26px; }
.patient-first .figure-viewport img { width: 100%; height: auto; }
.patient-first .evidence-section h3 { font-family: Arial, sans-serif; font-size: 17px; line-height: 1.45; margin: 0 0 14px; }
.patient-first :focus-visible { outline: 3px solid #346d70; outline-offset: 4px; }
.patient-first [hidden] { display: none !important; }

.evidence-controls { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-top: 22px; }
.evidence-stages { display: flex; gap: 4px; flex: 1; min-width: 0; }
.evidence-tab { appearance: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; background: transparent; color: #53616b; border-radius: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; line-height: 1.35; }
.evidence-tab[aria-selected="true"] { color: #174b4c; border-bottom-color: #346d70; font-weight: 700; }
.evidence-tab:hover { background: #f2f5f5; }
.evidence-icon-tools { display: flex; gap: 6px; flex-shrink: 0; }
.evidence-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 8px; background: #fff; border: 1px solid #c7d0d3; border-radius: 4px; cursor: pointer; }
.evidence-icon:hover { background: #eef3f3; }
.evidence-icon img { width: 18px; height: 18px; }
.evidence-stage-summary { color: #52606a; font-size: 14px; margin: 13px 0 22px; min-height: 24px; }
.evidence-cases { display: flex; flex-wrap: wrap; column-gap: 18px; border-bottom: 1px solid var(--line); margin-top: 10px; }
.evidence-cases .evidence-tab { padding: 10px 0; }
.evidence-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.evidence-record { min-width: 0; }
.evidence-pair .evidence-record + .evidence-record { border-left: 1px solid var(--line); padding-left: 30px; }
.evidence-record-title { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.evidence-record-title h3 { font-size: 19px !important; }
.evidence-motor { white-space: nowrap; font-size: 14px; color: #52606a; }
.evidence-motor strong { color: #14222b; font-size: 24px; margin-left: 5px; }
.evidence-record-note { font-size: 14px; color: #52606a; margin: 0 0 20px; }
.evidence-source-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.evidence-source-table th, .evidence-source-table td { background: transparent !important; padding: 9px 8px 9px 0; border-bottom: 1px solid #e2e6e8; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.evidence-source-table th { width: 43%; font-weight: 400; }
.evidence-source-table td strong { display: block; font-weight: 600; }
.evidence-source-table td small { display: block; font-size: 12px; line-height: 1.5; color: #637079; margin-top: 3px; }
.evidence-axes { margin-top: 23px; }
.evidence-axis-head, .evidence-axis { display: grid; grid-template-columns: minmax(0, 1.6fr) 80px 46px; gap: 8px; align-items: center; font-size: 13px; margin: 9px 0; }
.evidence-axis-head { color: #637079; font-size: 12px; }
.evidence-axis b { font-variant-numeric: tabular-nums; font-weight: 400; }
.evidence-track { height: 26px; position: relative; background: linear-gradient(to right, transparent 49.5%, #c4cbcf 49.5%, #c4cbcf 50.5%, transparent 50.5%); }
.evidence-track::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #d2d9dc; }
.evidence-dot { position: absolute; top: 9px; width: 8px; height: 8px; margin-left: -4px; background: #346d70; border-radius: 50%; }
.evidence-score-text { font-size: 12px; color: #637079; text-align: center; }
.evidence-missing { color: #69767e; font-size: 12px; }
.evidence-explanation { border-left: 3px solid #346d70; padding: 2px 0 2px 16px; font-size: 15px; line-height: 1.65; margin: 24px 0 0; max-width: 900px; }
.evidence-explanation p { margin: 0; }
.evidence-verdict { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.evidence-verdict dl { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 14px 0; }
.evidence-verdict dt { font-size: 13px; color: #5e6a72; }
.evidence-verdict dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: #784239; }
.evidence-verdict p { max-width: 900px; margin-bottom: 0; font-size: 14px; }
.evidence-footnote { font-size: 13px; color: #5e6a72; line-height: 1.55; margin: 12px 0; }
.evidence-chart { margin: 24px 0 12px; min-width: 0; }
.evidence-chart svg { display: block; width: 100%; overflow: visible; }
.evidence-chart figcaption { font-size: 12px; }
.evidence-chart-title { color: #14222b; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.evidence-forecast { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.evidence-forecast caption { text-align: left; font-size: 15px; font-weight: 700; margin: 20px 0 8px; color: #14222b; }
.evidence-forecast th, .evidence-forecast td { background: white !important; padding: 9px 6px 9px 0; border-bottom: 1px solid #e2e6e8; vertical-align: middle; }
.evidence-forecast th { width: 49%; font-weight: 400; }
.evidence-forecast td:last-child { width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.evidence-forecast .evidence-highlight th, .evidence-forecast .evidence-highlight td { font-weight: 700; color: #245b5c; }
.evidence-range { position: relative; height: 24px; border-bottom: 1px solid #dde2e4; margin: 0 8px; }
.evidence-range .evidence-dot { top: 8px; }
.evidence-uq { margin: 16px 0; font-size: 14px; }
.evidence-uq b { font-weight: 600; }
.evidence-future { margin: 18px 0; padding: 14px 0; border-top: 1px solid #8cabae; border-bottom: 1px solid #8cabae; font-size: 16px; }
.evidence-future strong { font-size: 20px; font-weight: 600; }
.evidence-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.evidence-anatomy { width: 100%; height: auto; display: block; }
.evidence-bilateral { width: 100%; table-layout: fixed; font-size: 15px; }
.evidence-bilateral th, .evidence-bilateral td { padding: 8px 5px; background: white !important; }
.evidence-bilateral th:first-child { width: 48%; }
.evidence-bilateral td:not(:first-child) { font-variant-numeric: tabular-nums; }
.evidence-signs { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 15px; font-size: 14px; }
.evidence-signs strong { display: block; font-size: 23px; font-variant-numeric: tabular-nums; color: #245b5c; }
.evidence-methods { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 15px; font-size: 14px; max-width: 960px; }
.evidence-methods summary { cursor: pointer; color: #245b5c; padding: 5px 0; font-weight: 600; }
.evidence-methods p { max-width: 900px; }
.evidence-methods table { min-width: 0; table-layout: fixed; }
.evidence-methods caption { text-align: left; padding-bottom: 12px; font-weight: 600; }
.evidence-methods th, .evidence-methods td { overflow-wrap: anywhere; }
.patient-first .research-chain { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.research-chain li { border-top: 2px solid #bdcacc; padding-top: 12px; font-size: 14px; }
.research-chain strong { display: block; color: #14222b; margin: 5px 0; }
.research-chain small { color: #5e6a72; font-size: 12px; }
@media (max-width: 760px) {
  .patient-first .hero h1 { font-size: 26px; }
  .patient-first .hero { padding-top: 24px; }
  .patient-first .section h2 { font-size: 23px; }
  .patient-first .section { padding: 28px 0; }
  .evidence-pair, .evidence-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .evidence-pair .evidence-record + .evidence-record { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .evidence-controls { gap: 5px; }
  .evidence-stages .evidence-tab { padding: 8px 5px; font-size: 12px; }
  .evidence-icon { width: 32px; height: 34px; padding: 6px; }
  .evidence-icon-tools { gap: 4px; }
  .evidence-cases { column-gap: 14px; }
  .evidence-cases .evidence-tab { font-size: 13px; }
  .patient-first .research-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-record-title { flex-wrap: wrap; gap: 0 12px; }
  .evidence-methods th, .evidence-methods td { padding: 10px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .patient-first * { scroll-behavior: auto !important; transition: none !important; }
}
