/* House plan and construction cost calculator, plus the home page box. Loads after /style.css and reuses its palette. */

/* the plan section sits under the form and ledger, across the full width of the .tool box */
.hp-plan{grid-column:1/-1;min-width:0;border-top:1px solid #d5dde3;padding:22px;background:#fff}
.hp-plan h2{margin:0 0 4px;font-size:22px}
.hp-head{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin:0 0 12px}
.hp-head h2{margin:0}
.hp-tabs{display:flex;gap:6px}
.hp-tab{padding:7px 14px;border:1px solid #aab7c1;border-radius:4px;background:#fff;color:#14202b;font:600 15px/1.2 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer}
.hp-tab:hover{background:#eef3f0}
.hp-tab[aria-selected="true"]{background:#14202b;border-color:#14202b;color:#fff}
.hp-sheet{background-color:#f7faf8;background-image:linear-gradient(#e3ebe6 1px,transparent 1px),linear-gradient(90deg,#e3ebe6 1px,transparent 1px);background-size:20px 20px;border:1px solid #d5dde3;border-radius:4px;padding:8px}
.hp-sheet svg{display:block;width:100%;height:auto;max-height:640px}
.hp-meta{margin:10px 0 0;display:flex;flex-wrap:wrap;gap:4px 16px;font:400 13.5px ui-monospace,Menlo,Consolas,monospace;color:#3a4a58;max-width:none}
.hp-warns{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.hp-warns li{font-size:14px;line-height:1.3;padding:3px 10px;border:1px solid #b45309;border-radius:99px;color:#92400e;background:#fffbeb}
.hp-warns li.good{border-color:#0b6e4f;color:#074a35;background:#eef7f2}
.hp-opts{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:14px 0 0}
@media(min-width:760px){.hp-opts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hp-opt{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:center;text-align:left;padding:10px;border:2px solid #d5dde3;border-radius:6px;background:#fff;color:#14202b;font:15px/1.4 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer}
@media(min-width:760px){.hp-opt{grid-template-columns:minmax(0,1fr);align-items:start}}
.hp-opt:hover{border-color:#aab7c1}
.hp-opt[aria-pressed="true"]{border-color:#0b6e4f;background:#f7faf8}
.hp-th{display:block;background:#f7faf8;border:1px solid #d5dde3;border-radius:3px;padding:4px}
.hp-th svg{display:block;width:100%;height:auto}
.hp-opt b{display:block;font:700 18px Georgia,serif}
.hp-opt small{display:block;color:#3a4a58;font-size:14px;line-height:1.4}
.hp-fit{display:block;margin-top:4px;font:400 12.5px ui-monospace,Menlo,Consolas,monospace;color:#3a4a58}
.hp-approve{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:18px 0 0;padding:14px 16px;background:#f7faf8;border:1px solid #cfe3d9;border-left:4px solid #0b6e4f;border-radius:6px}
.hp-approve p{margin:0;flex:1 1 260px;max-width:none}
.hp-ok{color:#0b6e4f}
.hp-btn{display:inline-block;padding:11px 20px;border:1px solid #0b6e4f;border-radius:4px;background:#0b6e4f;color:#fff;font:700 16px/1.2 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;cursor:pointer}
.hp-btn:hover{background:#074a35}
.hp-btn.hp-sec{background:#fff;color:#14202b;border-color:#aab7c1}
.hp-btn.hp-sec:hover{background:#eef3f0}
.hp-btns{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.hp-cost,.hp-export{margin:22px 0 0;padding-top:18px;border-top:1px solid #d5dde3}
.hp-cost[hidden],.hp-export[hidden]{display:none}
.hp-hero{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 20px;margin:8px 0}
.hp-big{font:700 clamp(30px,7vw,42px)/1.15 Georgia,serif;color:#0b6e4f;font-variant-numeric:tabular-nums}
.hp-range{font-size:15px;color:#3a4a58}
.hp-bar{display:flex;height:12px;border-radius:3px;overflow:hidden;margin:12px 0}
.hp-bar i{display:block;height:100%}
.hp-rows{list-style:none;margin:0;padding:0}
.hp-rows li{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid #d5dde3}
.hp-rows li:last-child{border-bottom:0}
.hp-sw{width:10px;height:10px;border-radius:2px;display:block;align-self:center}
.hp-rows small{display:block;font-size:13.5px;color:#3a4a58}
.hp-v{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.hp-note{margin:10px 0 0;font-size:14px;color:#3a4a58;max-width:none}
textarea.hp-dxf{width:100%;height:150px;margin:10px 0 0;font:12px ui-monospace,Menlo,Consolas,monospace;min-height:0}
.hp-export details{margin:14px 0 0}
.hp-export summary{cursor:pointer;font-weight:700}
.hp-export table.t{font-size:15px}
.hp-export .t td:nth-child(3),.hp-export .t td:nth-child(2),.hp-export .t th:nth-child(2),.hp-export .t th:nth-child(3){text-align:left}

/* floor plan drawing (the same classes are used in the big drawing, the thumbnails and the home page box) */
.hp-s .plot{fill:none;stroke:#6b7b88;stroke-width:1.2;stroke-dasharray:8 5}
.hp-s .road{fill:#e6e9ec}
.hp-s .room{stroke:#14202b;stroke-width:1.3}
.hp-s .k-pub{fill:#e0efe8}.hp-s .k-prv{fill:#f4eddb}.hp-s .k-wet{fill:#dcebf0}.hp-s .k-svc{fill:#e6e9ec}
.hp-s .ext{fill:none;stroke:#14202b;stroke-width:4}
.hp-s .furn{fill:none;stroke:#5a6a76;stroke-width:.9;opacity:.85}
.hp-s .tread{stroke:#5a6a76;stroke-width:.8}
.hp-s .win{stroke:#f7faf8;stroke-width:5.5}
.hp-s .winl{stroke:#0b6e4f;stroke-width:1.5}
.hp-s .dgap{stroke-width:3.4}
.hp-s .g-pub{stroke:#e0efe8}.hp-s .g-prv{stroke:#f4eddb}.hp-s .g-wet{stroke:#dcebf0}.hp-s .g-svc{stroke:#e6e9ec}
.hp-s .dleaf,.hp-s .darc{fill:none;stroke:#14202b;stroke-width:.9}
.hp-s .edoor .dleaf,.hp-s .edoor .darc{stroke:#0b6e4f;stroke-width:1.4}
.hp-s .egap{stroke:#f7faf8;stroke-width:6}
.hp-s .rn,.hp-s .rd,.hp-s .dim,.hp-s .tag{text-anchor:middle;paint-order:stroke;stroke-linejoin:round}
.hp-s .rn{font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-weight:700;fill:#14202b;stroke-width:3px}
.hp-s .rd{font-family:ui-monospace,Menlo,Consolas,monospace;fill:#3a4a58;stroke-width:3px}
.hp-s .s-pub{stroke:#e0efe8}.hp-s .s-prv{stroke:#f4eddb}.hp-s .s-wet{stroke:#dcebf0}.hp-s .s-svc{stroke:#e6e9ec}
.hp-s .dim{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:9px;fill:#3a4a58;stroke:none}
.hp-s .tag{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:8px;fill:#3a4a58;letter-spacing:.14em;stroke:none}
.hp-s .tag.acc{fill:#0b6e4f}

/* home page box */
.hpbox{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px 24px;align-items:center;background:#fff;border:1px solid #cfe3d9;border-left:6px solid #e8a317;border-radius:6px;padding:20px 22px;margin:22px 0 10px;box-shadow:0 2px 10px rgba(11,110,79,.08)}
.hptop{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.hpbox h2{margin:0;font-size:26px}
.hptag{background:#e8a317;color:#14202b;font:700 12px system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:99px}
.hptxt{margin:10px 0 14px;color:#3a4a58}
.hplinks{display:flex;flex-wrap:wrap;gap:10px}
.hplinks a{display:block;background:#f7faf8;border:1px solid #cfe3d9;border-radius:6px;padding:12px 14px;text-decoration:none;color:#14202b}
.hplinks a:hover{background:#e8f4ee;border-color:#0b6e4f}
.hplinks strong{display:block;color:#0b6e4f;font-size:17px}
.hplinks span{font-size:14px;color:#3a4a58}
.hpbox-art{display:block;background-color:#f7faf8;background-image:linear-gradient(#e3ebe6 1px,transparent 1px),linear-gradient(90deg,#e3ebe6 1px,transparent 1px);background-size:16px 16px;border:1px solid #d5dde3;border-radius:4px;padding:6px}
.hpbox-art svg{display:block;width:100%;height:auto}
@media(max-width:720px){.hpbox{grid-template-columns:1fr}.hpbox h2{font-size:22px}.hpbox-art{max-width:230px}}
@media(prefers-reduced-motion:reduce){.hp-tab,.hp-opt,.hp-btn{transition:none}}
@media print{.hp-tabs,.hp-approve,.hp-btns{display:none}}
