/* Scoped to the new Quick Calculators; existing calculator styling is untouched. */
.quick-page { --qc-navy:#102638; --qc-muted:#526575; max-width:1100px; margin:auto; padding:28px 24px 64px; color:var(--qc-navy); }
.quick-page *, .quick-page *::before, .quick-page *::after { box-sizing:border-box; }
.quick-page [hidden] { display:none !important; }
.quick-page .qc-breadcrumb { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; margin-bottom:22px; color:var(--qc-muted); }
.quick-page a { color:inherit; text-underline-offset:4px; }
.quick-page h1 { font-size:clamp(28px,4vw,42px); line-height:1.15; letter-spacing:-.035em; margin:0 0 10px; }
.quick-page h2 { font-size:21px; line-height:1.25; margin:0 0 12px; }
.quick-page p { line-height:1.6; }
.quick-page .qc-intro { margin:0 0 26px; color:var(--qc-muted); font-size:16px; }
.quick-page .qc-kicker { font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin:0 0 12px; }
.quick-page .qc-workbench { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:22px; align-items:start; }
.quick-page .qc-panel { padding:26px; border:1px solid #d8e0e6; border-radius:16px; background:#fff; min-width:0; }
.quick-page .qc-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.quick-page .qc-field { min-width:0; }
.quick-page label, .quick-page legend { display:block; font-size:14px; font-weight:700; margin:0 0 8px; }
.quick-page .qc-field input, .quick-page input[type=search] { width:100%; min-height:48px; border:1px solid #aebcc7; border-radius:8px; padding:11px 12px; font:inherit; font-size:18px; color:#102638; background:white; }
.quick-page .qc-field small { display:block; font-size:12px; line-height:1.5; color:var(--qc-muted); margin-top:7px; }
.quick-page .qc-field .qc-error { color:#a22525; }
.quick-page [aria-invalid=true] { border-color:#a22525 !important; }
.quick-page .qc-result { background:var(--qc-navy); color:#fff; border-color:var(--qc-navy); }
.quick-page .qc-result p { color:#d0dde5; margin:12px 0; }
.quick-page .qc-big { display:block; font-size:clamp(35px,4vw,48px); font-weight:800; line-height:1.1; letter-spacing:-.03em; overflow-wrap:anywhere; margin:12px 0 8px; color:#e5ff50; }
.quick-page .qc-result dl { margin:20px 0; border-top:1px solid #3b5161; }
.quick-page .qc-result dl div { padding:12px 0; display:flex; justify-content:space-between; gap:16px; border-bottom:1px solid #3b5161; font-size:14px; }
.quick-page dt { color:#d0dde5; }
.quick-page dd { text-align:right; margin:0; font-weight:700; overflow-wrap:anywhere; }
.quick-page button { cursor:pointer; font:inherit; font-size:14px; font-weight:700; padding:11px 16px; min-height:44px; border:1px solid #b7c3cc; background:#fff; color:#102638; border-radius:8px; }
.quick-page button:disabled { opacity:.55; cursor:default; }
.quick-page :is(a,button,input,summary):focus-visible { outline:3px solid #4388b2; outline-offset:3px; }
.quick-page .qc-result button { width:100%; border-color:#e5ff50; background:#e5ff50; }
.quick-page .qc-copy-status { font-size:12px; min-height:20px; margin-bottom:0 !important; }
.quick-page .qc-mode { border:0; padding:0; margin:0 0 24px; }
.quick-page .qc-mode-options { display:flex; flex-wrap:wrap; gap:8px; }
.quick-page .qc-mode label { display:flex; align-items:center; gap:6px; padding:10px; border:1px solid #bac7d0; border-radius:8px; margin:0; cursor:pointer; font-size:13px; min-height:44px; }
.quick-page .qc-mode label:has(:checked) { background:#eef5d5; border-color:#6b7e25; }
.quick-page .qc-mode input { accent-color:#102638; margin:0; width:16px; height:16px; }
.quick-page .qc-note { font-size:13px; color:var(--qc-muted); margin:16px 0 0; }
.quick-page .qc-explanation { margin-top:30px; border-top:1px solid #d2dce4; padding-top:22px; }
.quick-page details summary { cursor:pointer; font-size:18px; font-weight:700; min-height:44px; }
.quick-page .qc-explanation p { max-width:80ch; font-size:14px; }
.quick-page .qc-formula { background:#fff; padding:14px 16px; border-left:3px solid #92a851; border-radius:4px; }
.quick-page .qc-related { margin-top:24px; padding-top:20px; border-top:1px solid #d2dce4; font-size:14px; line-height:1.8; }
.quick-page .qc-search { margin:0 0 24px; }
.quick-page .qc-search-row { display:flex; gap:10px; }
.quick-page .qc-search-row input { min-width:0; flex:1; }
.quick-page .qc-filters { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.quick-page .qc-filters button[aria-pressed=true] { background:#102638; border-color:#102638; color:white; }
.quick-page .qc-count { color:var(--qc-muted); font-size:13px; }
.quick-page .qc-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.quick-page .qc-card { display:block; padding:26px; background:#fff; border:1px solid #d2dce4; border-radius:14px; text-decoration:none; }
.quick-page .qc-card:hover { border-color:#6f8798; box-shadow:0 6px 20px #1026380d; }
.quick-page .qc-card p { font-size:15px; color:var(--qc-muted); margin:12px 0 22px; }
.quick-page .qc-card small { display:block; color:var(--qc-muted); font-size:12px; margin-bottom:16px; }
.quick-page .qc-card strong { display:inline-block; font-size:14px; border-bottom:2px solid #c6df40; padding-bottom:4px; }
.quick-page .qc-empty { padding:30px; border:1px dashed #aab9c4; border-radius:12px; }
@media(max-width:700px) {
 .quick-page { padding:22px 16px 42px; }
 .quick-page .qc-workbench, .quick-page .qc-cards { grid-template-columns:1fr; }
 .quick-page .qc-panel, .quick-page .qc-card { padding:20px; }
 .quick-page .qc-intro { margin-bottom:20px; }
 .quick-page .qc-breadcrumb { margin-bottom:18px; font-size:12px; }
}
@media(max-width:360px) {
 .quick-page .qc-fields { grid-template-columns:1fr; gap:14px; }
 .quick-page .qc-panel { padding:17px; }
}

/* V2 directory and new tools only; V1 calculator layout rules remain unchanged. */
.qc-expanded select, .quick-page .qc-trade-filter select { width:100%; min-height:48px; border:1px solid #aebcc7; border-radius:8px; padding:11px 32px 11px 12px; font:inherit; font-size:16px; color:#102638; background:#fff; }
.qc-expanded select:focus-visible, .quick-page .qc-trade-filter select:focus-visible { outline:3px solid #4388b2; outline-offset:3px; }
.qc-expanded form > .qc-field, .qc-expanded form > .qc-fields, .qc-expanded form > [data-show-for] { margin-bottom:18px; }
.qc-expanded form > :last-child { margin-bottom:0; }
.qc-expanded .qc-presets { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.qc-expanded .qc-presets button { padding:9px 11px; font-size:12px; }
.qc-expanded .qc-result dd { min-width:0; }
.qc-expanded .qc-result dt { flex:1; }
.qc-expanded .qc-big { font-size:clamp(29px,3.5vw,43px); }
.qc-expanded [data-area-row] { min-width:0; padding:16px 0; margin:0; border:0; border-bottom:1px solid #d8e0e6; }
.qc-expanded [data-area-row] legend { padding:0; }
.qc-expanded [data-remove] { margin-top:10px; }
.qc-expanded #add-section { margin:18px 0; }
.quick-page .qc-trade-filter { max-width:440px; margin:16px 0; }
.quick-page[data-quick-directory] .qc-card { padding:20px; }
.quick-page[data-quick-directory] .qc-card p { font-size:14px; margin:10px 0 14px; line-height:1.5; }
.quick-page[data-quick-directory] .qc-card .qc-kicker { font-size:10px; line-height:1.6; }
.quick-page[data-quick-directory] .qc-card h2 { font-size:20px; }
.quick-page[data-quick-directory] .qc-card small { margin-bottom:12px; }
@media(min-width:1000px) { .quick-page[data-quick-directory] .qc-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Field guidance and current-value explanations remain scoped to Quick Calculators. */
.qc-help,.qc-live-details {margin:28px 0; overflow-wrap:anywhere;}
.qc-help h2 {font-size:1.45rem; margin-bottom:12px;}
.qc-help h3 {font-size:1.1rem; margin-top:20px;}
.qc-help .qc-explanation {margin:12px 0;}
.qc-syntax {font-size:.9rem; line-height:1.5; opacity:.85;}
.qc-live-details details {border:1px solid rgba(150,160,145,.35);border-radius:12px;padding:16px;margin:12px 0;}
.qc-live-details summary {cursor:pointer;font-weight:700;}
.qc-result dd {max-width:65%;}
@media(max-width:480px){.qc-result dl>div {display:block}.qc-result dd {max-width:100%;margin:6px 0 0}.qc-big {font-size:1.75rem}}

.qc-diagram {margin-top:28px;overflow:hidden;}
.qc-diagram h2 {font-size:1.4rem;margin:0 0 18px;}
.qc-diagram-scroll {overflow-x:auto;max-width:100%;border-radius:10px;background:#15202b;color:#edf1e8;}
.qc-diagram-scroll:focus-visible {outline:3px solid #c6ec79;outline-offset:3px;}
.qc-diagram svg {display:block;width:100%;min-width:560px;height:auto;}
.qc-diagram svg text {fill:#edf1e8;font:16px system-ui,sans-serif;}
.qc-dimension {stroke:#a9b8c3;stroke-width:1.5;}
.qc-level,.qc-stair-profile {stroke:#c6ec79;stroke-width:3;fill:none;}
.qc-diagonal {stroke:#9db0c4;stroke-width:2;stroke-dasharray:7 6;}
.qc-post {fill:#475968;stroke:#c1ced9;stroke-width:1.5;}
.qc-baluster {fill:#c6ec79;stroke:#d5eca9;stroke-width:1;}
.qc-gravel {fill:#516051;stroke:#9dac98;stroke-width:1;}
.qc-fabric {fill:none;stroke:#c6ec79;stroke-width:4;stroke-linejoin:round;}
.qc-overlap {stroke:#c6ec79;stroke-width:4;stroke-dasharray:7 3;}
.qc-pipe {fill:#15202b;stroke:#edf1e8;stroke-width:3;}
.qc-diagram-caption {line-height:1.6;font-size:.92rem;}
.qc-diagram-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 0;}
.qc-diagram-facts dt {font-weight:700;font-size:.88rem;color:#344a5e;}
.qc-diagram-facts dd {margin:5px 0 0;overflow-wrap:anywhere;text-align:left;}
@media(max-width:600px){.qc-diagram-facts {grid-template-columns:1fr}.qc-diagram {padding:18px}}

/* Construction dimensions for stair and baluster details. */
.qc-diagram svg.qc-dimensioned {min-width:680px;}
.qc-dimensioned text {font-size:18px;}
.qc-witness {stroke:#91a3b1;stroke-width:1;}
.qc-tick {stroke:#e9f1f4;stroke-width:2;}
.qc-center {stroke:#edf1e8;stroke-width:1;stroke-dasharray:7 3 2 3;}
.qc-cut-section {fill:#455b6c;stroke:#b6c7d3;stroke-width:2;}
.qc-cut-tread {fill:#c6ec79;stroke:#c6ec79;stroke-width:1;}
.qc-bottom-detail {margin-top:24px;}

.qc-diagram svg.qc-compact {min-width:0;}
.qc-diagram svg.qc-compact text {font-size:20px;}
