.bcshingle{--rs-accent:#b84040;background:#fff;border:1px solid #dee3e8;border-radius:12px;padding:clamp(16px,3vw,28px);margin:24px 0;color:#20252b;max-width:100%;font-size:16px}.bcshingle *{box-sizing:border-box;min-width:0}.bcshingle [hidden]{display:none!important}.bcshingle .rs-eyebrow{font-size:12px;letter-spacing:.07em;font-weight:700;color:#8d3434}.bcshingle label{display:block;font-weight:600;margin-bottom:6px}.bcshingle input[type=text],.bcshingle select,.bcshingle textarea{display:block;width:100%;max-width:100%;border:1px solid #87939e;border-radius:5px;background:#fff;color:#20252b;min-height:44px;padding:9px;font:inherit}.bcshingle input[aria-invalid=true],.bcshingle select[aria-invalid=true]{border:2px solid #a02727}.bcshingle :is(input,select,textarea,button,summary):focus-visible{outline:3px solid #275fa0;outline-offset:3px}.bcshingle .rs-field{margin-bottom:14px}.bcshingle small{display:block;font-size:13px;line-height:1.5;margin-top:5px}.bcshingle .rs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.bcshingle .rs-note{font-size:14px;color:#53616e;line-height:1.6}.bcshingle .rs-error{color:#a02727;font-weight:600}.bcshingle details{border-top:1px solid #dee3e8;padding:15px 0}.bcshingle summary{cursor:pointer;font-weight:650;min-height:44px;padding:10px 0}.bcshingle .rs-check{display:flex;gap:10px;align-items:center;min-height:44px;margin:10px 0}.bcshingle input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}.bcshingle button{font:inherit;min-height:44px;padding:10px 15px;border:1px solid #a8b1b9;border-radius:6px;background:#f5f6f8;color:#20252b;cursor:pointer;white-space:normal}.bcshingle button.rs-primary{background:var(--rs-accent);color:white;border-color:var(--rs-accent);font-weight:700}.bcshingle button:disabled{opacity:.55;cursor:default}.bcshingle .rs-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.bcshingle fieldset{border:1px solid #dee3e8;border-radius:8px;padding:16px;margin:18px 0}.bcshingle legend{font-weight:700;padding:0 6px}.bcshingle .rs-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bcshingle .rs-results>div{background:#f5f6f8;padding:14px;border-radius:6px}.bcshingle .rs-results span{display:block;font-size:14px;color:#53616e}.bcshingle .rs-results strong{display:block;font-size:22px;margin-top:5px;overflow-wrap:anywhere}.bcshingle .rs-diagram{max-width:420px;margin:12px auto}.bcshingle svg{width:100%;height:auto}.bcshingle svg text{font:14px sans-serif;fill:#20252b}.bcshingle figcaption{font-size:13px;color:#53616e}.bcshingle table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px}.bcshingle th,.bcshingle td{padding:10px 6px;border-bottom:1px solid #dee3e8;text-align:left;overflow-wrap:anywhere}.bcshingle th:first-child{width:35%}.bcshingle pre{font-family:inherit;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;background:#f5f6f8;padding:14px}.bcshingle .rs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.bcshingle h2{margin-top:28px}.bcshingle .rs-cost strong{font-size:24px}.bcshingle .rs-breakdown{overflow-wrap:anywhere}.bcshingle textarea{resize:vertical}
@media(max-width:600px){.bcshingle .rs-grid{grid-template-columns:1fr}.bcshingle .rs-results{gap:8px}.bcshingle .rs-results>div{padding:10px}.bcshingle .rs-results strong{font-size:19px}.bcshingle th,.bcshingle td{font-size:12px;padding:8px 3px}.bcshingle fieldset{padding:12px}}
@media print{body.rs-printing *{visibility:hidden}body.rs-printing .bcshingle[data-print-active],body.rs-printing .bcshingle[data-print-active] *{visibility:visible}body.rs-printing .bcshingle[data-print-active]{position:absolute;left:0;top:0;width:100%;border:0;padding:0;margin:0}body.rs-printing .bcshingle[data-print-active] form,body.rs-printing .bcshingle[data-print-active] [data-results]>:not([data-report-view]){display:none!important}body.rs-printing .bcshingle[data-print-active] [data-report-view]{display:block!important;border:0}body.rs-printing .bcshingle[data-print-active] [data-report-view] summary{display:none}body.rs-printing .bcshingle[data-print-active] pre{background:white;padding:0;font-size:11pt}}

/* Roof Shingle only: allow long controls, formulas and narrow result cards to wrap. */
.bcshingle :is(label,legend,summary,button,h2,h3,p){overflow-wrap:anywhere;max-width:100%}
.bcshingle input[type=text],.bcshingle select{font-size:16px}
.rs-article{min-width:0;max-width:100%;overflow-wrap:anywhere}
.rs-article pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
@media(max-width:600px){.bcshingle .rs-results{grid-template-columns:1fr}.bcshingle .rs-table-wrap{max-width:100%}.bcshingle .rs-actions>button{flex:1 1 100%}}

@media(max-width:600px){
 .bcshingle .rs-table-wrap table,.bcshingle .rs-table-wrap tbody,.bcshingle .rs-table-wrap tr{display:block;width:100%}
 .bcshingle .rs-table-wrap thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .bcshingle .rs-table-wrap tr{border:1px solid #dee3e8;border-radius:6px;padding:8px;margin:12px 0}
 .bcshingle .rs-table-wrap th[scope=row]{display:block;width:100%;font-size:16px;padding:8px 0}
 .bcshingle .rs-table-wrap td{display:flex;justify-content:space-between;gap:16px;width:100%;font-size:16px;padding:10px 0;text-align:right}
 .bcshingle .rs-table-wrap td::before{content:attr(data-label);font-weight:600;text-align:left;flex:1;min-width:0}
}
