/* Touch-first layouts, without changing desktop or printed reports. */
html{scroll-behavior:smooth;scroll-padding-top:20px}*,*::before,*::after{min-width:0}img{max-width:100%}.mobileNav{display:none}input,select,button,summary,a{-webkit-tap-highlight-color:transparent}input,select,button,summary{touch-action:manipulation}.workspace>*,.methodrow>*{min-width:0}
@media screen and (max-width:900px){
 .workspace{grid-template-columns:1fr;gap:22px}aside{position:static}header{grid-template-columns:1fr;padding:20px 24px;gap:15px}header .brand{grid-row:1;width:min(340px,80vw)}header .tag{display:none}header button{grid-row:2;justify-self:center;min-height:44px}main{padding:0 20px}.intro{padding:32px 0 24px}.intro h1{font-size:clamp(32px,6vw,45px);letter-spacing:-1.3px}.intro p{font-size:15px}.inputs,.breakdown,.result{padding:24px}label{font-size:13px;line-height:1.5}label span{font-size:11px}input:not([type=checkbox]):not([type=range]),select{font-size:16px;min-height:48px;padding:12px;line-height:1.4}button,.subtle{min-height:44px;font-size:13px}input[type=range]{min-height:44px;margin-top:7px}.hint{font-size:12px;line-height:1.65}.industryPicker{padding:18px 16px 1px}.advanced summary{font-size:14px;min-height:44px;line-height:1.5}.advanced summary span{font-size:12px}.methodrow div{flex-direction:column;gap:7px}.methodrow div span{font-size:14px}.methodrow strong{font-size:18px;overflow-wrap:anywhere}.methodrow p,.rangeNote{font-size:12px}.resulttop{gap:12px;flex-wrap:wrap}.metric{gap:16px;font-size:13px}.metric strong{text-align:right;overflow-wrap:anywhere}#range{font-size:clamp(27px,6.8vw,39px);letter-spacing:-1px;overflow-wrap:anywhere}.result h2{font-size:27px}.notes p{font-size:13px}.notes a{display:inline-block;padding:10px 0;font-size:12px}footer{flex-direction:column;text-align:center;padding:24px 20px 100px;gap:15px}footer .brand img{width:210px}
 .mobileNav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;gap:12px;background:#fffef9f5;border-top:1px solid #dce1d7;padding:10px 18px max(10px,env(safe-area-inset-bottom));box-shadow:0 -3px 20px #133c360d;backdrop-filter:blur(10px)}.mobileNav a{flex:1;text-align:center;text-decoration:none;min-height:46px;display:flex;align-items:center;justify-content:center;border:1px solid #dce1d7;border-radius:8px;color:var(--ink);font-size:14px;font-weight:600}.mobileNav a:last-child{background:var(--ink);color:white;border-color:var(--ink)}body:has(dialog[open]) .mobileNav{display:none}
 dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border-radius:0;border:0;overscroll-behavior:contain}.reportActions{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));gap:12px}.reportActions button{font-size:12px;flex:1;line-height:1.4;padding:10px 8px;min-height:46px}.reportContent{padding:28px 20px max(28px,env(safe-area-inset-bottom))}.reportLogo{width:300px;margin-bottom:30px}.reportContent h1{font-size:30px}.reportContent p{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.reportContent .reportRange{font-size:clamp(25px,6vw,34px);line-height:1.4}.reportContent table{display:block;overflow-x:auto;max-width:100%;font-size:12px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.reportContent th,.reportContent td{padding:11px 9px;min-width:92px;line-height:1.5}.reportContent th:first-child,.reportContent td:first-child{min-width:130px}.reportContent .reportDetail,.reportContent .reportDisclaimer{font-size:12px}.reportWatermark{width:90vw}
}
@media screen and (max-width:540px){
 main{padding:0 14px}.inputs,.breakdown,.result{padding:20px 18px;border-radius:12px}.two,.industryPicker .two{grid-template-columns:1fr;gap:0}.two label{margin-bottom:17px}.sectionhead{align-items:start;gap:12px}.sectionhead h2{font-size:20px}.sectionhead .subtle{font-size:11px;padding:8px 10px;flex-shrink:0}.intro .eyebrow{font-size:9px;letter-spacing:1.2px;line-height:1.6}.intro h1{font-size:34px;line-height:1.18}.intro p{font-size:14px}.intro br{display:none}.industryPicker{padding:16px 12px 0;margin:18px 0}.industryPicker input[readonly]{text-overflow:ellipsis}.advanced{padding:15px 12px}.advanced article{padding:14px 12px}.next{padding:22px}.next button,#reset{width:100%}.notes{margin-top:28px}.notes h2{font-size:19px;line-height:1.4}label span{float:none;margin-left:6px}#uncertaintyLabel{float:right}.result>p#businessLabel{margin-top:22px}.result h2{margin-bottom:18px}.metric{align-items:start}.metric span{max-width:65%}.reportContent{padding-left:16px;padding-right:16px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.mobileNav{display:none!important}}
