/* Format-specific documentary readers within the illustrated atlas. */
.selected-study-page{max-width:none;min-width:0;font-size:1rem}
.selected-study-page>header{border-bottom:1px solid var(--soft-line);padding-bottom:.8rem;margin-bottom:.8rem}
.study-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;align-items:start;margin:1rem 0}
.study-model-panel{padding:1rem;min-width:0}
.study-model-panel>h2{font-size:1.45rem;min-height:2.6em;margin:0 0 .8rem}
.study-native-plate{margin:.8rem 0;background:#fff9eb;border:1px solid var(--soft-line);min-width:0}
.study-native-plate figcaption{padding:.6rem;font:.8rem/1.5 var(--sans);border-top:1px solid var(--soft-line);overflow-wrap:anywhere}
.study-native-svg{display:block;width:100%;height:24rem;max-height:none;min-width:0;padding:.6rem;overflow:hidden}
.study-native-svg [role=button]{cursor:pointer}
.study-native-svg [role=button]:focus-visible{outline:none;stroke:#8d3d69;filter:drop-shadow(0 0 1px #fff7e9)}
.study-source-curve,.study-native-arc{fill:none;stroke-linejoin:round;stroke-linecap:round}
.study-native-arc{pointer-events:stroke}
.study-metrics{display:flex;flex-wrap:wrap;gap:.4rem 1rem;padding:.5rem 0;border-block:1px solid var(--soft-line);margin:.5rem 0 .8rem}
.study-metrics>div{display:flex;flex-direction:column-reverse;min-width:0}
.study-metrics dt{font:.8rem/1.4 var(--sans);margin:0;font-weight:400}
.study-metrics dd{font:1.15rem/1.4 var(--serif);margin:0;overflow-wrap:anywhere}
.study-equivalent-lists h3{font-size:1.1rem}
.study-equivalent-lists details{padding:.6rem;border:1px solid var(--soft-line);margin:.5rem 0;background:#f8efd9}
.study-equivalent-lists summary{font-size:1rem;cursor:pointer;line-height:1.5}
.study-part-list{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}
.study-part-list button{min-height:2.5rem;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;justify-content:flex-start;font-size:.9rem;line-height:1.4}
.study-inspector,.study-report{margin:1rem 0;min-width:0}
.study-inspector h2,.study-report h2{font-size:1.5rem;margin-top:0}
.study-inspector pre{max-height:24rem}
.study-report pre{max-height:26rem}
.study-report td,.study-report th{font-size:.9rem;overflow-wrap:anywhere}
.study-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr));gap:1rem;margin:1rem 0}
.study-context h2{font-size:1.4rem;margin-top:0}
.study-context li,.study-context p{font-size:1rem;line-height:1.5}
.study-provenance{padding:.8rem;border:1px solid var(--soft-line);background:#f4e8d0}
.study-provenance summary{font-size:1rem;line-height:1.5;cursor:pointer}
.selected-study-preview{display:flex;align-items:stretch;gap:.4rem;width:100%;min-width:0}
.selected-study-preview figure{flex:1;min-width:0;margin:0;background:#fff9eb}
.selected-study-preview .study-native-svg{height:12rem;min-height:0;max-height:none;padding:.3rem}
.selected-study-preview figcaption{font:.8rem/1.4 var(--sans);padding:.3rem;overflow-wrap:anywhere;text-align:center}
.study-chambers,.study-chamber-unavailable{min-width:0;margin:1rem 0;padding:1rem}
.study-chambers h2,.study-chamber-unavailable h2{font-size:1.5rem;margin:.4rem 0 .8rem}
.study-chambers p,.study-chamber-unavailable p{font-size:1rem;line-height:1.5}
.study-chamber-controls{display:flex;flex-wrap:wrap;gap:.5rem;margin:.7rem 0}
.selected-study-page .study-chamber-controls button{font-size:1rem;line-height:1.4;min-height:2.75rem;max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
.study-chamber-controls button[aria-pressed=true]{background:#173d50;color:#fff7e7;border-color:#173d50}
.study-chamber-controls button:focus-visible{outline:3px solid #793c68;outline-offset:3px}
.study-chamber-answer{padding:.7rem;border-left:3px solid #793c68;background:#f4e8d0}
.study-chamber-plate{margin:.8rem 0;background:#fff9eb;border:1px solid var(--soft-line);min-width:0}
.study-chamber-proof{display:block;width:100%;height:clamp(16rem,35vw,20rem);padding:.6rem;overflow:hidden;pointer-events:none}
.study-chamber-plate figcaption{font:1rem/1.5 var(--sans);padding:.7rem;border-top:1px solid var(--soft-line);overflow-wrap:anywhere}
.study-chamber-outline-source,.study-chamber-outline-target{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.study-chamber-outline-source{stroke:#793c68}
.study-chamber-outline-target{stroke:#a34f38}
.study-chamber-source-label{color:#793c68;font-weight:600}
.study-chamber-target-label{color:#8e422e;font-weight:600}
.study-chamber-context{pointer-events:none}
.study-chamber-mark-ring{fill:none;stroke:#173d50;pointer-events:none}
.study-chamber-mark-dot{fill:#173d50;pointer-events:none}
.study-chamber-witness{fill:#fff9eb;stroke:#173d50;pointer-events:none}
.study-chamber-witness-label{border-left:3px solid #a34f38;padding-left:.7rem;overflow-wrap:anywhere}
.study-chambers details{padding:.7rem;border:1px solid var(--soft-line);margin:.6rem 0;background:#f8efd9;min-width:0}
.study-chambers summary{font-size:1rem;line-height:1.5;cursor:pointer}
.study-chambers pre{max-height:22rem;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.selected-study-page.prose{padding:1rem}.study-panels,.study-context{grid-template-columns:1fr}.study-model-panel{padding:.8rem}.study-native-svg{height:22rem}.study-part-list button{flex:1 1 9rem}.selected-study-page .toolbar{flex-direction:column;align-items:stretch}.selected-study-page .toolbar a{justify-content:flex-start;white-space:normal;font-size:1rem}}
