body:has(.bah-page){min-width:0;overflow-x:clip}
.bah-page [hidden]{display:none!important}
.bah-page .tool-shell>*{min-width:0}
.bah-page .result-empty :is(strong,span){display:block}
.bah-page .result-empty span{margin-top:.5rem}
.bah-page .result-number{font-size:clamp(2rem,5vw,4.25rem)!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%;min-width:0}
.bah-page .field input[aria-invalid=true],.bah-page select[aria-invalid=true]{outline:2px solid #cd5555;outline-offset:2px}
.bah-page .bah-box{padding:clamp(.8rem,2vw,1.2rem);margin:1.15rem 0 0;border:1px solid #b48a4670;border-radius:16px;background:#b48a4610;min-width:0}
.bah-page .bah-box :is(h2,figcaption){font-size:1.2rem;font-weight:800;margin:0 0 .5rem}
.bah-page .bah-box dl{margin:0}
.bah-page .bah-box dl div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1ch;padding:.55rem 0;border-bottom:1px solid #80808045}
.bah-page .bah-box dd{margin:0;text-align:right;font-weight:750;overflow-wrap:anywhere}
.bah-page :is(.bah-steps-card h2,.bah-step-label){color:#f4bd46}
.bah-page #bah-steps{padding:0;list-style:none;margin:0}
.bah-page #bah-steps li{border-inline-start:3px solid #d7aa36;border-radius:0 10px 10px 0;padding:.8rem .9rem;background:#08090b65;break-inside:avoid}
.bah-page #bah-steps li+li{margin-top:.65rem}
.bah-page .bah-step-intro{margin:0 0 1rem}
.bah-page .bah-step-equation{display:block;margin-top:.5rem;font-family:ui-monospace,Consolas,monospace;font-size:.92em;overflow-wrap:anywhere}
.bah-page .result-actions{margin-top:1rem}
.bah-page .result-actions button{min-width:0;white-space:normal}
.bah-page .bah-bar+.bah-bar{margin-top:1rem}
.bah-page .bah-bar-label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.25rem .75rem;margin-bottom:.35rem}
.bah-page .bah-bar-track{height:1rem;border-radius:6px;background:#80808035;overflow:hidden}
.bah-page .bah-bar-track span{display:block;height:100%;background:#468fc1;border-radius:inherit}
.bah-page .bah-bar-selected .bah-bar-track span{background:linear-gradient(90deg,#b77d21,#f4bc48)}
.bah-page .article details{margin-block:.8rem;padding:.75rem;border:1px solid #b48a4670;border-radius:10px}
.bah-page .article summary{cursor:pointer;font-weight:700}
html[data-theme=light] .bah-page :is(.bah-steps-card h2,.bah-step-label){color:#805908}
html[data-theme=light] .bah-page #bah-steps li{background:#b48a4610}
@media(max-width:460px){.bah-page .field-grid{grid-template-columns:1fr}.bah-page .result-actions{grid-template-columns:1fr}}
@media print{
  body>header,body>footer,body>.skip-link,.bah-page :is(.hero,.breadcrumbs,.content-layout,.result-actions,.result-action-status,#bah-form,.panel-title,.panel-copy,.result-empty){display:none!important}
  html,body,.bah-page,.bah-page :is(.wrap,.tool-shell,.calc-panel,.result-panel,.result-content,.bah-box,.result-note){background:#fff!important;color:#111!important;box-shadow:none!important;border-color:#aaa!important}
  .bah-page .tool-shell{display:block!important;margin:0!important}
  .bah-page :is(.tool-shell,.calc-panel,.result-panel,.result-content)::before,.bah-page :is(.tool-shell,.calc-panel,.result-panel)::after{display:none!important}
  .bah-page .result-number{color:#111!important;-webkit-text-fill-color:#111!important}
  .bah-page .bah-box{break-inside:avoid}
  .bah-page :is(.bah-steps-card h2,.bah-step-label){color:#111!important}
  .bah-page #bah-steps li{background:#fff!important}
  .bah-page .bah-chart{print-color-adjust:exact}
}

