/* Free public calculators (/calculators and its three pages). Same look as
   landing.html: white and warm off-white, charcoal ink, one red, Archivo. Do
   not build on _shared.css: that is the older dark sheet the legal pages use. */
:root{
  --bg:#ffffff; --bg-2:#f6f5f1; --bg-3:#efede7; --line:#e4e1da; --line-2:#d3cfc6;
  --ink:#14171c; --ink-2:#454b55; --muted:#6b7079;
  --red:#d92d20; --red-dark:#b42318;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17.5px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.wrap{max-width:1160px; margin:0 auto; padding:0 24px}
.wrap.wide{max-width:1040px}
header{position:sticky; top:0; z-index:20; background:rgba(255,255,255,.95); backdrop-filter:blur(8px); border-bottom:1px solid var(--line)}
.bar{display:flex; align-items:center; justify-content:space-between; height:70px; gap:20px}
.logo{display:flex; align-items:center; text-decoration:none}
.logo img{height:26px; width:auto; display:block}
.bar nav{display:flex; align-items:center; gap:22px}
.bar nav a{color:var(--ink-2); text-decoration:none; font-size:16px; font-weight:500}
.bar nav a:hover{color:var(--ink)}
main.calc{padding:40px 24px 70px}
h1{font-size:clamp(36px,5vw,54px); line-height:1.02; font-weight:800; font-stretch:75%; letter-spacing:-.005em; margin:0 0 12px}
.text h2{font-size:26px; line-height:1.1; font-weight:800; font-stretch:75%; margin:38px 0 10px}
.text ul{padding-left:22px; margin:0 0 12px}
.text li{margin:7px 0; color:var(--ink-2)}
.text h3{font-size:19px; line-height:1.25; font-weight:700; margin:22px 0 6px}
.text p{color:var(--ink-2); margin:0 0 12px}
.text p.hint{margin-top:22px}
.lead{color:var(--ink-2); font-size:19px; margin:0 0 28px; max-width:640px}
.crumb{font-size:15px; color:var(--muted); margin:0 0 14px}
.crumb a{color:var(--muted)}
.calc-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start}
.card{background:var(--bg-2); border:1px solid var(--line); border-radius:12px; padding:22px}
.card h2{font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 0 14px; font-weight:600}
.card h2.next{margin-top:22px}
.field{margin:0 0 14px}
.field > label, .field > .lab{display:block; font-size:15px; color:var(--ink-2); margin:0 0 5px}
.inline{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
input[type=number], select{
  background:#fff; color:var(--ink); border:1px solid var(--line-2); border-radius:8px;
  font:inherit; font-size:16px; padding:9px 10px; width:100%; min-width:0;
}
.inline input[type=number]{flex:1 1 110px; width:auto}
.inline select{flex:1 1 130px; width:auto}
input:focus, select:focus{outline:2px solid var(--ink); outline-offset:1px}
input[type=checkbox]{accent-color:var(--red)}
.field > label.check{display:flex; gap:8px; align-items:center; font-size:15px; color:var(--ink-2); margin:8px 0 0}
.hint{font-size:14.5px; color:var(--muted); margin:8px 0 0}
.field input.other{margin-top:8px}
.sizes{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px}
.sizes label{display:block; font-size:15px; color:var(--ink-2)}
.sizes input{margin-top:5px}
.wire{display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) 74px auto auto; gap:8px; align-items:center; margin:0 0 8px}
.wire .solid{font-size:14px; color:var(--ink-2); display:flex; gap:5px; align-items:center}
.btn-line{background:#fff; color:var(--ink); border:1.5px solid var(--ink); border-radius:8px; font:inherit; font-size:15px; font-weight:600; padding:8px 14px; cursor:pointer}
.btn-line:hover{background:var(--ink); color:#fff}
.btn-x{background:none; color:var(--muted); border:0; font-size:16px; cursor:pointer; padding:2px 6px}
.verdict{border:1.5px solid var(--line-2); border-radius:10px; padding:16px; margin:0 0 14px; background:#fff}
.verdict.ok{border-color:#2e8b57; background:#edf7f0}
.verdict.over{border-color:var(--red); background:#fdeeec}
.verdict.info{border-color:var(--ink); background:#fff}
.verdict .big{font-size:38px; font-weight:800; font-stretch:75%; line-height:1.1}
.verdict .sub{font-size:15.5px; color:var(--ink-2); margin-top:2px}
.rows{width:100%; border-collapse:collapse; margin:0; font-size:15.5px}
.rows td{padding:8px 0; color:var(--ink-2); border-bottom:1px solid var(--line); vertical-align:top}
.rows td:last-child{text-align:right; color:var(--ink); white-space:nowrap; padding-left:12px}
.rows tr.total td{font-weight:700; color:var(--ink)}
.cta{margin:26px 0 0; background:var(--bg-3); border-radius:12px; padding:22px 24px}
.cta p{margin:0 0 14px; color:var(--ink-2); max-width:32em}
.cta strong{color:var(--ink)}
.btn{display:inline-block; background:var(--red); border:1.5px solid var(--red); color:#fff; font-weight:600; text-decoration:none; border-radius:8px; padding:12px 20px; font-size:16.5px; line-height:1.2}
.btn:hover{background:var(--red-dark); border-color:var(--red-dark)}
/* Prose about 70 characters a line on a computer (design scan 2026-11-09: 90 to 96 at 720px). Phones are narrower already. */
.text{max-width:32em}
/* One word alone on a last line, and lopsided two-line headings: the browser evens them out. Browsers without these keep wrapping as before. */
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
.tiles{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:8px 0 0}
.related{margin:40px 0 8px}
.related h2{font-size:22px; font-weight:800; font-stretch:75%; margin:0 0 4px}
.related .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
.tile{background:var(--bg-2); border:1px solid var(--line); border-radius:12px; padding:20px; text-decoration:none; display:block}
.tile:hover{border-color:var(--line-2); background:var(--bg-3)}
.tile strong{display:block; font-size:22px; font-weight:800; font-stretch:75%; margin:0 0 6px}
.tile span{color:var(--ink-2); font-size:16px}
/* Residential load calculator, the checklist and chip layout (2026-11-06). */
.form{display:flex; flex-direction:column; gap:16px}
.card.result{position:sticky; top:86px}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  background:#fff; color:var(--ink); border:1.5px solid var(--line-2); border-radius:9px; font:inherit; font-size:15.5px; font-weight:600;
  padding:8px 13px; cursor:pointer; line-height:1.2; text-align:left; min-height:40px;
}
.chip small{display:block; font-size:12.5px; font-weight:500; color:var(--muted); margin-top:2px}
.chip:hover{border-color:var(--ink)}
.chip[aria-checked=true]{border-color:var(--ink); background:var(--ink); color:#fff}
.chip[aria-checked=true] small{color:rgba(255,255,255,.75)}
.chip:focus-visible{outline:2px solid var(--red); outline-offset:2px}
.chips.units .chip{padding:8px 11px; min-height:0}
.chips.big .chip{flex:1 1 110px; text-align:center; padding:12px 10px}
/* Box fill, the box picked from its picture (2026-11-07). */
.boxes{display:grid; grid-template-columns:repeat(auto-fill,minmax(108px,1fr)); gap:8px}
.boxfam{grid-column:1/-1; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:8px 0 -2px}
.boxfam:first-child{margin-top:0}
.box{display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 6px 9px; background:#fff; color:var(--ink); border:1.5px solid var(--line-2); border-radius:10px; font:inherit; cursor:pointer; text-align:center; min-width:0}
.box svg{width:100%; max-width:98px; height:auto; display:block}
.box b{font-size:14px; font-weight:600; line-height:1.2}
.box small{font-size:12.5px; color:var(--muted)}
.box:hover{border-color:var(--ink)}
.box[aria-checked=true]{border-color:var(--ink); background:var(--ink); color:#fff}
.box[aria-checked=true] small{color:rgba(255,255,255,.75)}
.box:focus-visible{outline:2px solid var(--red); outline-offset:2px}
.boxpick{display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:10px 12px; border:1.5px solid var(--line-2); border-radius:10px; background:#fff}
.boxpick svg{width:84px; height:auto; flex:none}
.boxpick .txt{flex:1 1 150px; min-width:0}
.boxpick .txt b{display:block; font-size:16px}
.boxpick .txt small{font-size:13.5px; color:var(--muted)}
.load{border:1px solid var(--line); border-radius:10px; background:#fff; margin:0 0 10px}
.load-head{display:flex; align-items:center; gap:10px; padding:11px 13px; cursor:pointer; font-size:16px; font-weight:600}
.load-head input{width:18px; height:18px; margin:0; accent-color:var(--red)}
.load-body{padding:0 13px 13px 41px; border-top:1px solid var(--line)}
.load-body .entries{margin-top:12px}
.load-body .check{margin-top:10px}
.note{font-size:14px; color:var(--muted); margin:8px 0 0; line-height:1.45}
.entries{display:flex; flex-direction:column; gap:10px}
.entry{position:relative; padding-right:34px}
.entry + .entry{border-top:1px dashed var(--line); padding-top:10px}
.entry .btn-x{position:absolute; right:0; top:4px; font-size:22px; line-height:1}
.entry .field.sub{margin:10px 0 0}
.entry .field.sub .lab{margin-bottom:5px}
.add{background:none; border:1.5px dashed var(--line-2); color:var(--ink-2); border-radius:9px; font:inherit; font-size:14.5px; font-weight:600; padding:7px 12px; cursor:pointer; margin-top:10px}
.add:hover{border-color:var(--ink); color:var(--ink)}
.other-loads{margin-top:16px}
label.check{display:flex; gap:8px; align-items:flex-start; font-size:15px; color:var(--ink-2); margin:12px 0 0; line-height:1.4}
label.check input{margin-top:3px; accent-color:var(--red)}
.verdict .big .of{font-size:20px; font-weight:600; font-stretch:100%; color:var(--ink-2)}
.verdict.close{border-color:#b7791f; background:#fdf6e7}
.gauge{height:10px; border-radius:6px; background:var(--line); overflow:hidden; margin:12px 0 10px}
.gauge span{display:block; height:100%; background:#2e8b57; border-radius:6px}
.verdict.close .gauge span{background:#b7791f}
.verdict.over .gauge span{background:var(--red)}
.minline{font-size:15.5px; color:var(--ink-2); margin:0 0 12px}
.actions{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 14px}
.steps summary{font-size:15px; font-weight:600; cursor:pointer; margin:0 0 8px; color:var(--ink-2)}
.sticky-res{position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--ink); color:#fff; padding:12px 16px; font-weight:600; font-size:16px}
.sticky-res a{color:#fff; font-weight:600; font-size:15px; white-space:nowrap}
@media (min-width:821px){ .sticky-res{display:none} .load-body{padding-left:41px} }
@media (max-width:820px){ .card.result{position:static} .load-body{padding-left:13px} .verdict .big .of{display:block; font-size:17px; margin-top:2px} }
@media print{
  header, .crumb, .lead, .cta, .text, .related, footer, .actions, .sticky-res, .note{display:none !important}
  main.calc{padding:0}
  .calc-grid{display:block}
  .card{break-inside:avoid; border:1px solid #999; margin:0 0 10px}
  .load-body[hidden], .field[hidden]{display:none}
  .chip{border-color:#bbb; color:#999}
  .chip[aria-checked=true]{background:#000; color:#fff}
  .steps summary{display:none}
}
footer{border-top:1px solid var(--line); padding:34px 0; color:var(--muted); font-size:14.5px}
footer a{color:var(--muted)}
.foot{display:flex; flex-wrap:wrap; gap:14px 34px; justify-content:space-between}
.foot .legal a{margin-right:14px}
@media (max-width:820px){
  .calc-grid, .tiles, .related .tiles{grid-template-columns:minmax(0,1fr)}
  .bar nav .hide-sm{display:none}
  main.calc{padding:28px 24px 56px}
}
@media (max-width:460px){
  .wrap, main.calc{padding-left:16px; padding-right:16px}
  .wire{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .wire select.wtype{grid-column:1 / -1}
  .btn-x{justify-self:end}
}

/* No defaults (2026-11-08): the Result card waits until the calculator is started, and a conductor group is a
   box of chips, not a row of dropdowns. */
[hidden]{display:none !important}
.wire{display:block; border:1px solid var(--line); border-radius:10px; padding:12px 12px 2px; margin:0 0 10px}
.wire .wire-head{display:flex; justify-content:space-between; align-items:center; font-size:13px; font-weight:700; color:var(--muted); margin:0 0 8px}
.wire .field input{max-width:120px}
