/* Phone layout for the Lab-written showrooms (sponge filter, heater, sump, RO/DI), Nov 17 2026.
   Linked after each page's studio.css. phone.js sets body.phone-pinned and moves the headline above
   the picture and the mode bar below it; the picture then stays at the top while the page scrolls,
   so a slider and what it does are on screen together. The second block is larger print. */
@media(max-width:760px){
body.phone-pinned .stage{position:sticky;top:0;z-index:20;height:clamp(250px,40svh,360px);min-height:0;max-height:none;box-shadow:0 10px 18px -10px #000c;border-bottom:1px solid #355059}
body.phone-pinned #viewport,body.phone-pinned #labels{bottom:0}
body.phone-pinned .scene-heading{position:static;display:block;padding:18px 20px 14px;pointer-events:auto;background:#0e1d23}
body.phone-pinned .scene-heading h1{display:block!important;font-size:26px!important;margin:0}
body.phone-pinned .scene-heading .subtitle{display:block!important;max-width:none;margin:10px 0 0}
body.phone-pinned .scene-heading .eyebrow{margin:0 0 9px!important}
body.phone-pinned[data-study]:not([data-study='']) .scene-heading{background:#0e1d23;padding:18px 20px 14px;border-radius:0}
body.phone-pinned .transport{position:static;padding:12px 14px 10px;border-top:0;border-bottom:1px solid #355059}
body.phone-pinned .readout,body.phone-pinned[data-mode] .readout{top:8px;right:8px;min-width:0;max-width:150px;padding:6px 9px}
body.phone-pinned[data-mode=macro] .readout{display:none}
body.phone-pinned .readout b{font-size:22px;margin:1px 0}
body.phone-pinned .readout small:not(#care-mode){display:none}
body.phone-pinned .viewbar{bottom:8px;left:8px;right:8px}
body.phone-pinned #view-note{display:none}
body.phone-pinned #heat-legend{bottom:52px;top:auto}
body.phone-pinned #flow-legend{left:8px;right:auto;top:8px;bottom:auto;display:flex;flex-wrap:wrap;gap:3px 10px;max-width:calc(100% - 175px);padding:6px 8px}
body.phone-pinned #heat-legend{right:8px;left:auto}
body.phone-pinned #flow-legend[hidden]{display:none}
body.phone-pinned #study-banner{left:8px;top:8px;bottom:auto;max-width:calc(100% - 175px);padding:7px 9px}
body.phone-pinned[data-study]:not([data-study='']) #flow-legend{display:none}
body.phone-pinned #study-banner p{font-size:11px;line-height:1.4}
body.phone-pinned #journey-caption{top:8px;left:8px;max-width:calc(100% - 175px)}
body.phone-pinned .inspector,body.phone-pinned .inspector *{scroll-margin-top:calc(clamp(250px,40svh,360px) + 10px)}

/* Larger print and buttons a thumb can hit. */
.scene-heading .eyebrow,.eyebrow{font-size:10px}
.subtitle{font-size:10px;letter-spacing:.12em;line-height:1.6}
.readout span{font-size:11px}
.readout small,#care-mode{font-size:10px;letter-spacing:.03em}
.viewbar button,.units button{font-size:11.5px;padding:8px 8px;min-height:36px;white-space:nowrap}
.viewbar{gap:4px}
.modes button{font-size:11.5px;padding:10px 4px;min-height:42px;line-height:1.25}
.playback{gap:6px;margin-top:10px}
.playback button{font-size:11.5px;padding:8px 11px;min-height:36px}
#status{font-size:10px;line-height:1.4}
.part-label{font-size:10.5px;max-width:140px}
header button{font-size:12px;min-height:34px}
header nav{font-size:12px}
.tabs button{font-size:12.5px;padding:14px 4px}
.animation-settings,.animation-settings select,.animation-settings button{font-size:12px}
.animation-settings span{font-size:11px}
.field-label,section[role=tabpanel]>p.field-label,.lab-field label{font-size:11px}
.scenario-heading{font-size:10.5px!important}
.focus-grid button,.scenario-grid button{font-size:12.5px;padding:13px 10px}
.segmented button{font-size:12px;padding:11px 4px}
.service-actions button,.service-actions.three button{font-size:12px;padding:12px 6px}
.metrics span{font-size:11px}
.metrics b{font-size:16px}
.size-advice{font-size:13px}
.legend{font-size:11.5px}
.feedback-chain{font-size:10.5px}
.nitrogen-chain small{font-size:10.5px}
.text-button,.micro-controls button,.micro-controls label,.mechanics-control,.guide-panel button,.lesson-nav button{font-size:12.5px}
.guide-panel p,.motion-study p:not(.eyebrow),#drive-explanation,#study-banner p{font-size:12.5px}
#study-banner b{font-size:10px}
.motion-meter{font-size:11.5px}
.detail-meta .eyebrow,#part-number{font-size:10px}
#heat-legend{font-size:10px}
#flow-legend{font-size:10px}
#flow-legend b{font-size:9.5px}
.sizer-grid p{font-size:10.5px!important}
.sizer-grid label{font-size:12px}
.sizer-grid input,.yours-grid input,.yours-grid select{font-size:16px}
.identify p{font-size:12.5px}
.identify button{width:36px;height:36px}
.care-table div{font-size:12.5px}
.care-table em{font-size:11px}
.addons button{font-size:12.5px;padding:12px 6px}
.yours-grid label{font-size:11px}
.yours-grid i{font-size:12px}
.yours-actions output{font-size:12px}
/* RO/DI meter */
.meter{font-size:12px}
.meter-head>span{font-size:12.5px}
.meter-head>em{font-size:11px}
.meter-title{font-size:10px;letter-spacing:.1em}
.meter-grid{grid-template-columns:66px repeat(5,1fr)}
.meter-grid>button{font-size:10px;padding:8px 0;min-height:32px}
.meter-grid .row{font-size:10.5px}
.meter-grid .row small{font-size:10px}
.meter-grid .cell em{font-size:11px}
.meter-grid .life em{font-size:10px}
.meter-note,.meter-waste p{font-size:12px}
.meter-waste .keys{font-size:11.5px}
/* The showrooms that came from jez237-site (added by tools/apply-showroom-phone.mjs). */
body.phone-pinned .stage{--transport-space:0px}
body.phone-pinned .scene-footer{top:8px;left:8px;right:auto;bottom:auto;padding:0}
body.phone-pinned .scene-footer>span:last-child,body.phone-pinned #graphics-status{display:none}
.scene-heading .subtitle,#scene-subtitle{font-size:10px;max-width:none}
#scene-status,.scene-footer{font-size:9.5px}
.phase-track{font-size:10.5px}
.graphics-control select{font-size:11.5px;max-width:92px;min-height:36px}
.lab-field small,.range-labels,.slider-scale{font-size:10px}
.part-label b{font-size:10.5px}
.range-title label,#assembly-controls label{font-size:11px}
.range-ends span{font-size:9.5px}
.sequence span,.sequence i{font-size:10px}
.flow-readout span,.flow-readout strong,.flow-readout small,.stage-readout span{font-size:10.5px}
.power-off{font-size:10.5px}
#macro-controls button{font-size:12px;min-height:36px}
.references small{font-size:10.5px}
.chemistry i{font-size:11px}
.levels>div>span{font-size:10.5px}
.levels b{font-size:12.5px}
.levels p{font-size:11.5px}
.range-title output,#maturity-value{font-size:11px}
#macro-note b,#macro-note small{font-size:10px}
}
