:root {
  color-scheme: light;
  --ink: #253b40;
  --muted: #596b70;
  --paper: #fff;
  --teal: #176f65;
  --rose: #bc4564;
  --line: #dfe6e2;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #ba803f; outline-offset: 4px; }
button { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.8; }
h1 { font-family: var(--serif); font-size: clamp(33px, 3.3vw, 45px); line-height: 1.2; font-weight: 400; letter-spacing: -.025em; margin-bottom: 25px; }
h2 { font-size: 29px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; margin-bottom: 24px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.nav { height: 68px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1200px)/2)); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.brand { font-size: 23px; letter-spacing: 2px; display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; color: var(--ink); }
.brand svg { width: 32px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; }
.brand span { font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 20px; color: var(--muted); }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a { font-size: 13px; text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--teal); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; padding: 65px max(28px, calc((100vw - 1200px)/2)) 70px; }
.hero-content, .hero-visual { min-width: 0; }
.hero-intro { font-size: 16px; color: var(--muted); margin-bottom: 17px; }
.actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; padding: 12px 17px; text-decoration: none; border: 1px solid #b6cfc5; border-radius: 4px; font-size: 13px; background: #f0f6f2; color: var(--teal); }
.button:hover { background: #e5efe8; }
.text-link { font-size: 13px; }
.authors { margin-top: 26px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.authors span { display: block; }
.plot { width: 100%; height: 330px; min-width: 0; }
.hero .hero-plot { height: 440px; }
.plot .loading { padding: 30px; color: var(--muted); }
.hero-controls { display: flex; gap: 15px; align-items: flex-end; justify-content: space-between; }
.hero-controls label { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.hero-controls select { background: #fff; border: 1px solid #c9d6ce; color: var(--ink); font-size: 12px; padding: 8px; border-radius: 4px; }
.hero-controls .small-button { height: 34px; }
.opacity-control { max-width: 130px; }
.hero input[type=range] { margin: 12px 0; }
.hero-caption { font-size: 12px; color: var(--muted); margin-top: 19px; line-height: 1.7; }
.section { padding: 68px max(28px, calc((100vw - 1120px)/2)); border-top: 1px solid #e7ece8; }
.section-head { max-width: 860px; margin-bottom: 35px; }
.section-head p { font-size: 16px; color: var(--muted); margin-top: 17px; }
.prose { max-width: 860px; }
.prose p { margin-top: 18px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.panel-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e8ece9; }
.segmented { display: flex; gap: 3px; background: #f0f3f0; padding: 4px; border-radius: 4px; }
.segmented button { border: 0; background: transparent; font-size: 12px; padding: 9px 13px; border-radius: 3px; color: var(--muted); }
.segmented button.active { background: #fff; color: var(--teal); box-shadow: 0 1px 4px #203e2610; font-weight: 600; }
.check { font-size: 12px; display: flex; align-items: center; gap: 7px; color: var(--muted); }
input[type=checkbox], input[type=range] { accent-color: var(--teal); }
input[type=range] { cursor: pointer; height: 5px; }
.patient-charts { display: grid; grid-template-columns: 1.4fr 1fr; padding: 25px 16px 0; gap: 10px; }
.patient-charts>div, .population-charts>div, .convergence-layout>div, .spline-plots { min-width: 0; }
.chart-heading { padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.chart-heading h3 { font-size: 13px; letter-spacing: 0; }
.chart-heading span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.time-control { display: flex; align-items: center; gap: 18px; margin: 8px 30px 0; padding: 20px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.time-control input { flex: 1; }
.time-control output { min-width: 30px; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--teal); }
.circle-button { border: 1px solid var(--line); border-radius: 50%; height: 32px; width: 32px; background: #fff; color: var(--teal); font-size: 11px; }
.chart-legend { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); padding: 8px 20px; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.line { width: 20px; height: 2px; display: inline-block; }
.teal { background: var(--teal); }
.swatch { width: 18px; height: 9px; background: #d2ebe3; display: inline-block; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.rose { background: var(--rose); }
.figure-note { font-size: 12px; line-height: 1.75; color: var(--muted); padding: 20px 25px; }
.architecture-figure { margin: 35px -15px 45px; }
.architecture-figure img { width: 100%; display: block; }
.architecture-figure figcaption { font-size: 12px; color: var(--muted); padding: 15px; line-height: 1.7; }
.spline-explainer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; margin: 45px 0; padding: 35px 0; border-top: 1px solid var(--line); }
.spline-copy h3 { margin-bottom: 20px; }
.spline-copy p { font-size: 15px; color: var(--muted); margin-bottom: 17px; }
.spline-copy input { width: 100%; margin: 15px 0 25px; }
.transform-label { display: flex; justify-content: space-between; font-size: 12px; margin-top: 25px; color: var(--teal); }
.spline-copy .equation { font-family: var(--serif); font-size: 22px; color: var(--ink); white-space: nowrap; }
.equation span { color: var(--teal); padding: 0 7px; }
.small { font-size: 12px!important; color: var(--muted); }
.spline-plots .plot { height: 310px; }
.spline-plots .compact { height: 175px; }
.technical { border-top: 1px solid var(--line); padding: 20px 0; }
.technical:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-size: 14px; font-weight: 500; list-style: none; padding-right: 25px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 5px; font-size: 20px; top: -4px; color: var(--teal); }
details[open]>summary::after { content: '−'; }
.details-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 25px; align-items: center; }
.details-grid p { font-size: 15px; color: var(--muted); margin-top: 17px; }
.details-grid img { max-width: 100%; }
.quiet { font-size: 12px; color: var(--muted); }
.model-toggles { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 25px 4px; }
.model-toggles button { font-size: 11px; background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 8px 11px; display: flex; gap: 7px; align-items: center; }
.model-toggles button[aria-pressed=false] { opacity: .4; }
.model-toggles i { width: 8px; height: 8px; border-radius: 50%; }
.population-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 25px 14px 0; }
.insight { border-left: 2px solid #9dbfb1; margin: 10px 25px 0; padding: 3px 18px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.table-scroll { overflow-x: auto; padding: 8px 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
th { text-align: left; font-size: 11px; padding: 15px 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
th small { display: block; font-weight: 400; font-size: 10px; margin-top: 4px; }
td { padding: 14px; border-bottom: 1px solid #edf0ec; font-size: 13px; }
td:first-child { font-size: 12px; }
td small { font-size: 10px; color: var(--muted); margin-left: 7px; font-weight: 400; }
.spline-row td { background: #eef6f1; color: var(--teal); }
.spline-row td:first-child { font-weight: 650; border-left: 3px solid var(--teal); }
.best { font-weight: 750; }
.next { text-decoration: underline; text-underline-offset: 4px; }
.paired-difference { margin: 22px 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; font-size: 12px; align-items: center; color: var(--teal); }
.paired-difference small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.paired-difference b { font-size: 14px; font-weight: 600; }
.evaluation-note { border-top: 1px solid var(--line); padding: 22px 25px; }
.evaluation-note p { margin-top: 18px; font-size: 14px; color: var(--muted); }
.convergence-layout { display: grid; grid-template-columns: .75fr 1fr; gap: 50px; margin-top: 50px; align-items: center; }
.convergence-layout h3 { margin-bottom: 20px; }
.convergence-layout p { font-size: 15px; color: var(--muted); margin-bottom: 17px; }
#convergencePlot { height: 370px; }
.synthetic-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 45px; align-items: center; }
.synthetic-copy .segmented { flex-wrap: wrap; margin-bottom: 25px; }
.synthetic-copy .segmented button { font-size: 11px; flex: 1; padding: 10px 7px; white-space: nowrap; }
.synthetic-copy p { color: var(--muted); font-size: 15px; }
.synthetic-copy .check { margin-top: 22px; }
.effect-comparison { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 20px; }
.effect-comparison p { font-size: 12px; }
.effect-values { display: flex; gap: 35px; margin: 15px 0 10px; }
.effect-values strong { font-size: 26px; font-weight: 500; color: var(--teal); }
.effect-values small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.synthetic-chart { min-width: 0; }
#syntheticPlot { height: 410px; }
.synthetic-chart .figure-note { padding: 8px 15px; }
.synthetic-chart .chart-legend { font-size: 11px; gap: 15px; padding: 4px 10px 14px; }
.synthetic-footnote { color: var(--muted); border-top: 1px solid var(--line); padding-top: 25px; margin-top: 35px; font-size: 14px; }
.outlook-columns { max-width: 860px; }
.outlook-columns p { font-size: 16px; color: var(--muted); margin-top: 18px; }
.resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 35px; margin: 30px 0 40px; }
.resource-links a { border-top: 1px solid var(--line); padding: 20px 0; text-decoration: none; }
.resource-links a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.resource-links h3 { font-size: 18px; margin-bottom: 12px; }
.resource-links p { font-size: 14px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 25px; }
.gallery a { text-decoration: none; }
.gallery img { width: 100%; height: 200px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.gallery span { display: block; padding: 12px 0; font-size: 12px; color: var(--muted); }
.citation { background: #f7f9f6; border: 1px solid var(--line); padding: 24px; margin-top: 35px; border-radius: 4px; }
.citation>div { display: flex; align-items: center; gap: 15px; }
.citation h3 { font-size: 15px; margin-right: auto; }
.small-button { background: #fff; border: 1px solid #c9d6ce; padding: 8px 12px; border-radius: 4px; font-size: 11px; }
.small-button:hover { background: #f0f5f1; }
.citation pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
#copyStatus { font-size: 11px; color: var(--teal); }
.data-note { margin-top: 35px; max-width: 960px; }
.data-note h3 { font-size: 15px; margin-bottom: 10px; }
.data-note p { font-size: 13px; color: var(--muted); }
footer { background: #f8faf7; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 40px; padding: 40px max(28px, calc((100vw - 1120px)/2)); }
footer p { font-size: 12px; color: var(--muted); margin-top: 13px; }
footer .small { font-size: 11px!important; }
footer .brand { font-size: 21px; color: var(--teal); }
footer img { width: 210px; max-height: 95px; object-fit: contain; margin-left: auto; }
.back-top { font-size: 12px; align-self: flex-start; white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 15px; padding: 12px; background: #eff6ef; z-index: 999; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 25px; background: #f8e8c3; text-align: center; }
.js-plotly-plot .plotly .modebar { background: transparent!important; }
@media (max-width: 1050px) {
  .hero { gap: 30px; padding-top: 50px; }
  h1 { font-size: 35px; }
  .hero .hero-plot { height: 390px; }
  .hero-controls { gap: 8px; }
  .opacity-control { display: none!important; }
  .spline-explainer, .synthetic-layout, .convergence-layout { gap: 25px; }
  .spline-copy .equation { font-size: 19px; }
  .brand span { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .nav { height: 62px; padding: 0 20px; }
  .nav .brand { font-size: 21px; }
  .nav nav { gap: 17px; }
  .nav nav a { font-size: 11px; }
  .nav nav a:nth-child(1), .nav nav a:nth-child(2), .nav nav a[href="#results"] { display: none; }
  .hero { grid-template-columns: 1fr; padding: 36px 22px 45px; gap: 25px; }
  h1 { font-size: 33px; }
  .hero-intro { font-size: 15px; }
  .actions { margin-top: 24px; }
  .authors { font-size: 11px; }
  .hero .hero-plot { height: 330px; }
  .hero-caption { font-size: 12px; }
  .section { padding: 45px 22px; }
  h2 { font-size: 25px; margin-bottom: 20px; }
  .section-head { margin-bottom: 28px; }
  .section-head p, .prose p, .outlook-columns p { font-size: 15px; }
  .panel-toolbar { align-items: flex-start; flex-direction: column; padding: 15px; gap: 14px; }
  .segmented { width: 100%; }
  .segmented button { font-size: 11px; padding: 9px 7px; flex: 1; }
  .patient-charts, .population-charts { grid-template-columns: 1fr; padding: 20px 4px 0; gap: 25px; }
  .patient-charts .plot { height: 280px; }
  .chart-heading { padding: 0 15px; gap: 10px; }
  .chart-heading h3 { font-size: 12px; }
  .chart-heading span { font-size: 10px; }
  .time-control { margin: 0 18px; gap: 10px; }
  .chart-legend { font-size: 10px; gap: 10px; }
  .figure-note { font-size: 11px; padding: 18px; }
  .architecture-figure { margin: 20px -10px 25px; overflow-x: auto; }
  .architecture-figure img { min-width: 680px; }
  .architecture-figure figcaption { font-size: 11px; min-width: 300px; }
  .spline-explainer { display: block; margin: 30px 0; padding: 25px 0 0; }
  .spline-plots { margin-top: 28px; }
  .spline-plots .plot { height: 290px; }
  .spline-plots .compact { height: 190px; }
  .details-grid { grid-template-columns: 1fr; gap: 15px; }
  .details-grid p { font-size: 14px; }
  .model-toggles { padding: 18px 13px 0; gap: 7px; }
  .model-toggles button { font-size: 10px; padding: 8px; }
  .population-charts .plot { height: 270px; }
  .insight { margin: 5px 16px 0; font-size: 13px; padding: 3px 13px; }
  .table-scroll { padding: 5px 10px 0; }
  td, th { padding: 12px 10px; }
  td small { display: block; margin: 4px 0 0; }
  .paired-difference { grid-template-columns: 1fr 1fr; margin: 15px 14px 0; padding: 16px; gap: 12px; }
  .paired-difference>span:first-child { grid-column: 1/-1; }
  .paired-difference b { font-size: 12px; }
  .convergence-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 35px; }
  #convergencePlot { height: 330px; }
  .synthetic-layout { grid-template-columns: 1fr; gap: 25px; }
  .effect-values { gap: 45px; }
  #syntheticPlot { height: 350px; }
  .synthetic-footnote { font-size: 13px; }
  .resource-links { grid-template-columns: 1fr; gap: 0; margin: 25px 0; }
  .resource-links a { padding: 20px 0; }
  .resource-links h3 { margin-bottom: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 230px; }
  .citation { padding: 18px; }
  .citation pre { font-size: 10px; }
  .citation>div { flex-wrap: wrap; }
  footer { padding: 30px 22px; flex-wrap: wrap; gap: 25px; }
  footer img { margin-left: 0; width: 175px; }
  .back-top { margin-left: auto; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none!important; transition: none!important; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-bottom: 45px; }
  .hero-content { max-width: 760px; }
  .hero-visual { max-width: 700px; width: 100%; margin: 0 auto; }
  .hero .hero-plot { height: 390px; }
}
