/* Page-local styles. Existing article and shared styles are unchanged. */
#room-width{margin:1.5rem 0;padding:clamp(.8rem,3vw,1.5rem);border:2px solid #006b77;border-radius:12px;background:#f5fafb;color:#12324b;scroll-margin-top:1rem;overflow-wrap:anywhere}
#room-width *{box-sizing:border-box}
#room-width [hidden]{display:none!important}
#room-width h3{margin:.2rem 0 .7rem;font-size:1.55rem;line-height:1.25}
#room-width h4{margin:0 0 .6rem;font-size:1.15rem}
#room-width .rw-kicker{margin:0;color:#35575f;font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
#room-width .rw-small,#room-width .rw-hint{font-size:.9rem;line-height:1.45;color:#35575f}
#room-width .rw-hint{margin:.3rem 0 .8rem}
#room-width .rw-workspace{display:grid;gap:1.2rem;align-items:start}
#room-width .rw-workspace>*,#room-width .rw-pair>*{min-width:0}
#room-width label{display:block;font-weight:600;line-height:1.4;margin:.5rem 0 .3rem}
#room-width input,#room-width select{width:100%;min-width:0;min-height:44px;padding:.5rem;font:inherit;color:#12324b;background:white;border:1px solid #597781;border-radius:5px}
#room-width .rw-pair{display:grid;gap:.8rem}
#room-width fieldset{min-width:0;margin:0 0 1rem;padding:.6rem .8rem .8rem;border:1px solid #9fbec6;border-radius:8px}
#room-width legend{font-weight:700;padding:0 .3rem;color:#12324b}
#room-width .rw-output{background:white;border:1px solid #9fbec6;border-radius:8px;padding:1rem}
#room-width .rw-balance{font-size:1.3rem;font-weight:700;line-height:1.4}
#room-width .rw-over{color:#912819}
#room-width .rw-figure{margin:1rem 0}
#room-width svg{display:block;width:100%;height:auto;overflow:visible}
#room-width figcaption{color:#35575f;background:transparent;font-size:.85rem;line-height:1.4;padding:.5rem 0}
#room-width .rw-zones{padding-left:1.5rem}
#room-width .rw-zones li{padding-left:.2rem}
#room-width .rw-zones strong{white-space:nowrap;margin-left:.6rem}
#room-width .rw-caution{padding:.75rem;border-left:3px solid #597781;background:#f5fafb;font-size:.95rem}
#room-width .rw-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}
#room-width button{font:inherit;font-size:.95rem;font-weight:600;line-height:1.4;min-height:44px;padding:.55rem .75rem;border:2px solid #006b77;border-radius:6px;color:#005762;background:white;cursor:pointer}
#room-width button[type=submit]{color:white;background:#006b77}
#room-width button:disabled{color:#52646b;border-color:#9fb0b7;background:#edf2f4;cursor:default}
#room-width :is(input,select,button,summary,a):focus-visible{outline:3px solid #a24f00;outline-offset:3px}
#room-width [aria-invalid=true]{border:2px solid #a32a1e}
#room-width .rw-field-error,#room-width #rw-error{color:#912819;font-size:.95rem;font-weight:600}
#room-width .rw-field-error:empty,#room-width #rw-error:empty{display:none}
#room-width .rw-method{margin-top:1rem;border-top:1px solid #bacfd5;padding-top:.8rem}
#room-width summary{font-weight:700;cursor:pointer}
#room-width li{margin:.5rem 0}
#room-width .rw-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:600px){#room-width .rw-pair{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){#room-width .rw-pair{grid-template-columns:repeat(3,minmax(0,1fr))}}
#room-width #rw-result{scroll-margin-top:1rem}
@media(max-width:600px){#room-width svg{height:110px}#room-width svg text{display:none}}
@media print{
  #room-width #rw-interactive{display:none!important}
  #room-width{background:white;border:1px solid #597781;padding:.5rem}
  #room-width #rw-print-record[hidden]{display:block!important}
  #room-width dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem 1rem}
  #room-width dl>div,#room-width figure{break-inside:avoid}
  #room-width svg{height:auto!important;max-height:40mm;print-color-adjust:exact}
  #room-width dt{font-weight:700}
  #room-width dd{margin:0}
  body.rw-print .gridContainer>:not(article),body.rw-print article>:not(.home-guide),body.rw-print .home-guide>:not(#layout),body.rw-print #layout>:not(#room-width){display:none!important}
  body.rw-print,body.rw-print .gridContainer,body.rw-print article{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:white!important}
  body.rw-print #room-width{border:0;margin:0;padding:0;font:10pt/1.35 system-ui,sans-serif}
  body.rw-print #room-width>:not(h3):not(#rw-print-record){display:none!important}
  body.rw-print #room-width h3{font-size:16pt}
  body.rw-print #room-width h4{font-size:11pt;margin:.7rem 0 .3rem;break-after:avoid}
  body.rw-print #room-width li{margin:.3rem 0}
}
