/* The source header, footer, menu, palette and type hierarchy are retained.
   Article panels are sized inside the original content stage. */
body{display:flex;flex-direction:column;height:100dvh;min-height:650px}
.page-header{flex-shrink:0}.app-layout{flex:1;min-height:0;margin-bottom:16px}.site-footer{flex-shrink:0}
.content-stage{display:flex;flex-direction:column;min-height:0;padding:20px 24px}
.stage-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px;flex-shrink:0}.stage-top h1{font-size:clamp(1.7rem,2.5vw,2.2rem)}
.article-subtitle{font-size:.85rem}.stage-journal{color:#8b6140;margin-left:12px;white-space:nowrap}.source-short{color:var(--wine-800);font-size:.78rem;line-height:1.4;white-space:nowrap;text-underline-offset:4px}
.content-panel.is-visible{display:flex;flex:1;flex-direction:column;min-height:0}.content-panel[hidden]{display:none}
.inside-nav{display:flex;gap:22px;align-items:center;border-bottom:1px solid var(--line);flex-shrink:0;margin-bottom:14px;overflow-x:auto}
.inside-nav button{position:relative;white-space:nowrap;padding:11px 0 12px;background:none;color:var(--muted);font-size:.83rem;font-weight:700;border-bottom:3px solid transparent}
.inside-nav button[aria-pressed=true]{color:var(--wine-900);border-bottom-color:var(--wine-900)}.inside-nav button:hover{color:var(--wine-800)}.inside-nav>span{margin-left:auto;white-space:nowrap;font-size:.66rem;color:var(--muted)}
.panel-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c49b51 #fff6d8;padding:1px 6px 6px 1px}.panel-scroll>*{animation:panelIn .25s ease-out}
.summary-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);gap:16px;min-height:100%}
.paper-hero{display:flex;min-height:0;flex-direction:column}.hero-copy{padding:22px;gap:12px;align-content:start;display:flex;flex-direction:column;flex:1}.hero-copy h2{font-size:clamp(1.35rem,1.7vw,2rem);line-height:1.14}.hero-copy p{font-size:.86rem;line-height:1.55}.hero-copy .kicker{background:transparent;color:var(--gold-300);border-color:#ffe08a55;min-height:24px;font-size:.63rem;padding:5px 8px}
.author-line{color:#ffe8bd;font-size:.73rem;line-height:1.6}.paper-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 22px;background:#ffffff0b;border-top:1px solid #ffe08a44;color:#ffe8bd;font-size:.74rem}.paper-meta a{color:var(--gold-300)}
.paper-hero .abstract-details{color:#f5d9a0}.paper-hero .abstract-details summary{color:var(--gold-300)}.paper-hero .source-caption{color:#ffe8bd}
.compact-authors{display:none}
.summary-right{display:flex;flex-direction:column;gap:12px}.research-counts{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--cream-300);background:var(--paper);border-radius:8px;padding:15px 8px}.research-counts>div{padding:0 12px;border-right:1px solid #e4cf9b}.research-counts>div:last-child{border:0}.research-counts strong{display:block;font-size:1.7rem;color:var(--wine-950);font-weight:500;font-variant-numeric:tabular-nums}.research-counts span{font-size:.66rem;color:var(--muted);display:block;margin-top:5px;line-height:1.4}
.signal-panel{flex:1;border:1px solid var(--cream-300);border-radius:8px;background:var(--paper);padding:16px;display:flex;flex-direction:column;gap:10px}.small-kicker{font-size:.65rem;font-weight:800;letter-spacing:.08em;color:var(--wine-800);text-transform:uppercase}.signal-panel h3{margin:0;color:var(--wine-950);font-size:1.08rem}.signal-line{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;font-size:.8rem;color:var(--muted)}.signal-line strong{font-size:1.08rem;color:var(--wine-900)}.signal-track{grid-column:1/-1;background:#f0e1be;height:5px}.signal-track i{display:block;height:100%;background:var(--wine-800)}.signal-panel p{font-size:.75rem;line-height:1.5;color:var(--muted);margin:0}.text-action{padding:0;background:none;color:var(--wine-800);text-align:left;font-size:.78rem;font-weight:800;margin-top:auto}.text-action:hover{text-decoration:underline}
.overview-section{margin-top:0}.section-heading h2{font-size:1.13rem}.section-heading span{height:28px;width:28px;font-size:.8rem}.section-heading{margin-bottom:14px}.compact-section,.visual-section{padding:16px}
.study-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.flow{display:flex;align-items:center;gap:12px;padding:17px;background:var(--paper);border:1px solid var(--cream-300);border-radius:7px}.flow>div{flex:1}.flow strong{display:block;font-size:1.75rem;color:var(--wine-900)}.flow small{display:block;color:var(--muted);line-height:1.5;font-size:.72rem}.flow>span{color:#9a7541;font-size:1.4rem}.study-note{font-size:.78rem;color:var(--muted);line-height:1.6;margin:12px 0}.method-switch{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.choice,.primary,.secondary{padding:9px 12px;border:1px solid var(--cream-300);border-radius:6px;font-size:.76rem;font-weight:700;background:var(--paper);color:var(--wine-900)}.choice:hover,.secondary:hover{background:var(--gold-300)}.choice[aria-pressed=true],.primary{background:linear-gradient(135deg,var(--wine-800),var(--wine-950));border-color:var(--wine-900);color:var(--cream-100)}.primary:hover{background:var(--wine-800)}
.detail-panel{background:var(--paper);border:1px solid var(--cream-300);border-radius:8px;padding:18px}.detail-panel h3{font-size:1.05rem;color:var(--wine-900);margin:0 0 10px}.detail-panel p,.detail-panel li{font-size:.8rem;color:var(--muted);line-height:1.6}.detail-panel p:last-child{margin-bottom:0}.detail-panel ul{padding-left:18px}.keyword-row{gap:6px;margin-top:12px}.keyword-row span{font-size:.58rem;padding:5px 7px;min-height:24px}.finding-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finding-card{min-height:0;padding:15px}.finding-card>span{font-size:.6rem;min-height:22px;padding:5px 7px;margin-bottom:8px}.finding-card h3{font-size:1.15rem;margin-bottom:6px}.finding-card p{font-size:.78rem;line-height:1.5}.finding-card button{margin-top:12px}.finding-card{border-top-width:4px}
.figure-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:15px;min-height:100%}.figure-menu{display:flex;flex-direction:column;gap:10px}.figure-option{display:grid;grid-template-columns:28px 1fr;gap:10px;text-align:left;padding:14px 11px;border:1px solid var(--cream-300);background:var(--paper);color:var(--wine-950);border-radius:8px;line-height:1.5;font-size:.76rem}.figure-option b{display:grid;place-items:center;background:#f4e3b6;border-radius:4px;font-size:.74rem;height:28px}.figure-option[aria-pressed=true]{background:linear-gradient(120deg,var(--wine-800),var(--wine-950));color:var(--cream-100);border-color:var(--wine-900);box-shadow:inset 3px 0 var(--gold-500)}.figure-option[aria-pressed=true] b{background:var(--gold-500);color:var(--wine-950)}.figure-selection-note{font-size:.7rem;line-height:1.6;color:var(--muted);margin:5px 0}
.figure-sheet{border:1px solid var(--cream-300);border-radius:8px;background:var(--paper);overflow:hidden;display:flex;flex-direction:column;min-width:0}.figure-visual{padding:12px;display:grid;place-items:center;background:#fffdf7;flex:1;min-height:150px}.figure-visual img{display:block;max-width:100%;max-height:280px;object-fit:contain}.figure-visual svg{width:100%;max-height:330px;display:block}.figure-bottom{padding:12px 16px;border-top:1px solid var(--cream-300);display:flex;align-items:center;gap:15px}.figure-bottom p{font-size:.72rem;color:var(--muted);line-height:1.5;margin:0;flex:1}.figure-bottom button{white-space:nowrap}
.limits-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px}.limit-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.boundary-list{margin:0;padding-left:18px}.source-caption{font-size:.68rem;line-height:1.5;color:#806344;margin:10px 0 0}.abstract-details{margin-top:12px;font-size:.78rem;color:var(--muted)}.abstract-details summary{cursor:pointer;color:var(--wine-900);font-weight:700;padding:6px 0}.abstract-details p{line-height:1.7}.abstract-details img{width:100%;max-width:650px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:15px;min-height:100%}.chart-panel{border:1px solid var(--cream-300);background:var(--paper);border-radius:8px;min-width:0;padding:16px;display:flex;flex-direction:column}.workspace-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.workspace-heading h2{font-size:1.1rem;color:var(--wine-950);margin:4px 0 0}.workspace-heading>div:last-child{display:flex;gap:5px}.forest{width:100%;display:block;flex:1;min-height:180px}.forest .domain-row{cursor:pointer;outline:none}.forest .domain-row:focus .row-bg{stroke:var(--gold-500);stroke-width:2}.forest .domain-row:hover .row-bg{fill:#fff0c8}.forest text{font-family:Arial,Helvetica,sans-serif}.chart-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:.68rem;color:var(--muted);margin:8px 0 0}.chart-legend span{display:flex;align-items:center;gap:6px}.marker-filled,.marker-open{width:8px;height:8px;border-radius:50%;background:var(--wine-800);border:1px solid var(--wine-800)}.marker-open{background:transparent}
.inspector{display:flex;flex-direction:column;padding:18px;border:1px solid var(--cream-300);background:linear-gradient(180deg,#fff2cd,var(--paper));border-radius:8px;gap:10px}.inspector h3{color:var(--wine-950);font-size:1.25rem;margin:0}.inspector p{color:var(--muted);font-size:.77rem;line-height:1.6;margin:0}.inspector .stat-value{font-size:2.15rem;color:var(--wine-900);font-variant-numeric:tabular-nums;line-height:1.05}.stat-unit{font-size:.66rem;color:var(--muted)}.inspector dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:9px}.inspector dl>div{border-top:1px solid #dbc58e;padding-top:8px}.inspector dt{font-size:.63rem;color:var(--muted)}.inspector dd{font-size:.82rem;color:var(--wine-900);margin:5px 0 0;font-weight:700}.evidence-badge{display:inline-block;padding:7px 9px;font-size:.69rem;border:1px solid #c9ad6a;border-radius:4px;color:var(--wine-900);background:#ffe8a6}.evidence-badge.neutral{background:#f6eedb;color:#77614b}.inspector .secondary{margin-top:auto}.filter-line{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:.72rem;color:var(--muted);margin:8px 0}.filter-line label{display:flex;align-items:center;gap:7px}.filter-line input{accent-color:var(--wine-800);width:15px;height:15px}.filter-line select{color:var(--wine-900);padding:6px;border:1px solid var(--cream-300);background:var(--paper);border-radius:4px;font-size:.72rem;max-width:170px}
#domainChart{flex:1;min-height:210px;max-height:290px;display:flex;align-items:center}#domainChart svg{height:100%;min-height:0;max-height:290px}#modelChart svg{max-height:230px;min-height:180px}.figure-layout{height:100%;min-height:285px}.figure-sheet{height:100%}.figure-visual{flex:1 1 0;min-height:0;overflow:hidden}.figure-visual svg,.figure-visual img{height:100%;max-height:100%}
.data-table{border-collapse:collapse;width:100%;font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}.data-table th,.data-table td{border-bottom:1px solid #e4d3ac;padding:9px 8px;text-align:left}.data-table th{color:var(--wine-900)}.data-table caption{text-align:left;font-size:.69rem;color:var(--muted);padding:10px 0}.data-table details{font-size:.72rem}.table-details{margin-top:8px;font-size:.73rem;color:var(--wine-900)}.table-details summary{cursor:pointer;padding:7px 0}.chart-panel .source-caption{margin-top:10px}.model-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0 14px}.model-choices button{padding:11px 6px;font-size:.7rem}.model-choices b{display:block;margin-bottom:5px;font-size:.64rem;opacity:.7}.delta-control{padding:12px 0;border-top:1px solid #dbc58e}.delta-control label{font-size:.72rem;color:var(--muted);display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.delta-control input{width:100%;accent-color:var(--wine-800)}.delta-control small{display:block;font-size:.65rem;color:var(--muted);line-height:1.6;margin-top:6px}
.threshold-toggle{display:flex;gap:7px;margin:12px 0}.threshold-visual{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;flex:1;min-height:190px}.threshold-number{padding:24px;text-align:center;background:#fff4d7;border:1px solid var(--cream-300);border-radius:8px}.threshold-number strong{display:block;color:var(--wine-900);font-size:3rem;font-weight:500}.threshold-number span{display:block;color:var(--muted);font-size:.76rem;margin-top:8px}.threshold-number small{display:block;font-size:.69rem;line-height:1.5;margin-top:12px;color:var(--muted)}.threshold-explanation h3{font-size:1.1rem;color:var(--wine-900);margin:0 0 10px}.threshold-explanation p{font-size:.79rem;color:var(--muted);line-height:1.7;margin:0}.strata{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.strata div{padding:10px;background:var(--paper);border:1px solid var(--cream-300);border-radius:5px}.strata strong{display:block;color:var(--wine-900);font-size:1rem}.strata span{color:var(--muted);font-size:.67rem;line-height:1.4;display:block;margin-top:4px}
dialog{width:min(1100px,94vw);max-height:92dvh;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:20px;color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#24100caa}.dialog-top{display:flex;justify-content:space-between;gap:15px;align-items:center;color:var(--wine-900);margin-bottom:14px}.dialog-top button{padding:9px 13px;background:var(--wine-900);color:var(--cream-100);border-radius:5px}#dialogFigure img,#dialogFigure svg{display:block;width:100%;max-height:70vh;object-fit:contain}#dialogCaption{font-size:.8rem;line-height:1.6;color:var(--muted)}
#dialogFigure{overflow:auto}#dialogFigure svg{min-width:700px}.figure-bottom .figure-buttons{display:flex;gap:7px;flex-wrap:wrap}.figure-bottom a{text-decoration:none;display:inline-block}
@keyframes panelIn{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:981px) and (max-height:800px){.content-stage{padding:14px 20px}.stage-top h1{font-size:1.7rem}.stage-top{margin-bottom:6px}.inside-nav{margin-bottom:9px}.inside-nav button{padding-block:8px}.hero-copy{padding:17px;gap:9px}.hero-copy h2{font-size:1.4rem}.research-counts{padding:10px 7px}.research-counts strong{font-size:1.4rem}.signal-panel{padding:13px}.workspace{min-height:320px}.summary-layout{min-height:280px}}
@media(max-width:1200px){.workspace{grid-template-columns:minmax(0,1fr) 235px}.inside-nav{gap:15px}.inside-nav>span,.stage-journal{display:none}.summary-layout{grid-template-columns:1.1fr .9fr}.research-counts>div{padding-inline:8px}.figure-layout{grid-template-columns:170px 1fr}}
@media(max-width:980px){body{min-height:600px}.app-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.side-panel{padding:15px 22px}.section-tabs{display:flex;gap:8px}.tab-button{font-size:.8rem}.content-stage{padding:16px}.summary-layout{grid-template-columns:1fr 1fr}.paper-hero{display:flex}.hero-copy h2{font-size:1.35rem}.source-short{font-size:.7rem}.workspace{grid-template-columns:minmax(0,1fr) 235px}.side-title{font-size:.85rem}.inside-nav button{font-size:.76rem}.study-grid{grid-template-columns:1fr 1fr}.content-stage .section-heading h2{font-size:1rem}}
@media(max-width:680px){body{height:auto;min-height:100dvh}.page-header .image-banner{min-height:0}.app-layout{flex:none;height:calc(100dvh - 195px);min-height:560px;margin-top:12px}.side-panel{grid-template-columns:1fr;padding:12px 16px;gap:10px}.side-title{grid-template-columns:32px 1fr;gap:9px}.side-title span{width:32px;height:32px;font-size:.68rem}.section-tabs{display:grid;grid-template-columns:1fr 1fr}.tab-button{padding:9px}.stage-top{gap:8px}.stage-top h1{font-size:1.65rem}.article-subtitle{font-size:.73rem}.source-short{white-space:normal;min-width:67px;text-align:right}.inside-nav{gap:17px}.summary-layout,.study-grid,.limits-layout,.workspace,.threshold-visual{grid-template-columns:1fr}.summary-layout{gap:12px}.hero-copy{padding:20px}.hero-copy h2{font-size:1.55rem}.summary-right{gap:12px}.research-counts strong{font-size:1.7rem}.figure-layout{grid-template-columns:1fr}.figure-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.figure-option{grid-template-columns:1fr;font-size:.66rem;padding:10px;gap:6px}.figure-option b{width:26px}.figure-selection-note{grid-column:1/-1;margin:0}.figure-bottom{align-items:start;flex-direction:column}.finding-grid{grid-template-columns:1fr}.workspace{gap:12px}.inspector{gap:12px}.forest{min-height:250px}.chart-panel{padding:12px}.model-choices{grid-template-columns:1fr 1fr}.workspace-heading{flex-wrap:wrap}.threshold-number strong{font-size:2.3rem}.threshold-visual{gap:12px}.threshold-number{padding:17px}.data-table{font-size:.66rem}.data-table th,.data-table td{padding:8px 4px}.site-footer{margin-top:0}dialog{padding:14px}.stage-top .eyebrow{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:680px){.figure-layout{height:auto;min-height:0}.figure-sheet{height:auto}.figure-visual{height:230px;flex:none}.figure-visual svg{height:230px}.figure-visual img{height:100%;max-height:210px}#domainChart{display:block;overflow-x:auto;height:305px;min-height:305px;max-height:none}#domainChart svg{width:620px;min-width:620px;height:300px;max-height:none}.filter-line{flex-wrap:wrap}.forest{min-height:0}#modelChart{overflow-x:auto}#modelChart svg{min-width:580px;width:580px;height:225px}}
.workspace-heading>div:first-child:last-child{display:block}
@media(min-width:981px) and (max-height:800px){.summary-layout{min-height:0;height:100%;gap:12px}.summary-layout .hero-copy{padding:13px 17px;gap:9px}.summary-layout .hero-copy h2{font-size:1.15rem}.summary-layout .author-line,.summary-layout .hero-copy>p{display:none}.compact-authors{display:block}.summary-layout .hero-copy .abstract-details{margin-top:auto}.summary-layout .hero-copy .abstract-details p{display:block}.summary-layout .paper-meta{padding:10px 17px;font-size:.66rem}.summary-right{gap:8px}.research-counts{padding:8px 5px}.research-counts strong{font-size:1.25rem}.research-counts span{margin-top:2px;font-size:.58rem}.signal-panel{padding:11px;gap:7px}.signal-panel h3{font-size:.92rem}.signal-panel p{display:none}.signal-line{font-size:.73rem}.signal-line strong{font-size:.95rem}.signal-track{height:3px}.signal-panel .small-kicker{font-size:.58rem}.signal-panel .text-action{font-size:.7rem}}
