@font-face{font-family:"HP Roboto";src:url(fonts/roboto.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{--navy:#182C72;--red:#DD021B;--sky:#65C0E8;--ink:#182C72;--text:#1E2533;--muted:#56607A;--line:#D3D8E6;--bg:#fff}
html,body{font-family:"HP Roboto",Roboto,sans-serif;color:var(--text);background:var(--bg)}
.piece-fallback table{font-size:15px}
.piece-fallback th{color:var(--navy)}
.piece-fallback td+td{white-space:nowrap}
.piece-sources a{color:var(--muted)}

.piece-app{container-type:inline-size;max-width:760px}
.hp-lead{margin:0 0 14px;font-size:clamp(20px,6.4cqi,28px);line-height:1.2;font-weight:700;color:var(--navy);letter-spacing:-.005em;text-wrap:balance}

/* The drawn comparison: both bars on one dollar scale, the saving as the gap between their ends. */
.hp-figure{margin:0 0 6px}
.hp-row{margin:0 0 10px}
.hp-label{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;margin:0 0 6px;font-size:14.5px;line-height:1.3;color:var(--text)}
.hp-cost{font-size:18px;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap}
.hp-track{position:relative;height:30px}
.hp-bar{position:absolute;left:0;top:0;bottom:0;width:0}
.hp-bar.is-tank{background:var(--red)}
.hp-bar.is-pump{background:var(--sky)}
.hp-gap{position:absolute;top:0;bottom:0;background:rgba(101,192,232,.2);border:1.5px dashed var(--navy);border-left:0;box-sizing:border-box}
/* A bracket under the gap, its label right-aligned to the tank's end so it never runs off the axis. */
.hp-mark-track{position:relative;height:32px}
.hp-gap-mark{position:absolute;top:4px;height:7px;border:1.5px solid var(--navy);border-top:0;box-sizing:border-box}
.hp-gap-label{position:absolute;left:0;top:14px;font-size:14.5px;font-weight:700;line-height:1;color:var(--navy);white-space:nowrap}
.hp-ticks{position:relative;height:20px;border-top:1px solid var(--line)}
.hp-tick{position:absolute;top:6px;font-size:11.5px;line-height:1;color:var(--muted);font-variant-numeric:tabular-nums;transform:translateX(-50%)}
.hp-tick::before{content:"";position:absolute;left:50%;top:-7px;height:5px;border-left:1px solid var(--muted)}
.hp-tick:first-child{transform:none}
.hp-tick:first-child::before{left:0}
.hp-live .hp-bar,.hp-live .hp-gap,.hp-live .hp-gap-mark,.hp-live .hp-gap-label,.hp-live .hp-cyl-water{transition:width .45s cubic-bezier(.3,.7,.3,1),left .45s cubic-bezier(.3,.7,.3,1),transform .45s cubic-bezier(.3,.7,.3,1)}
.hp-still .hp-bar,.hp-still .hp-gap,.hp-still .hp-gap-mark,.hp-still .hp-gap-label,.hp-still .hp-cyl-water{transition:none}
@media (prefers-reduced-motion:reduce){.hp-live .hp-bar,.hp-live .hp-gap,.hp-live .hp-gap-mark,.hp-live .hp-gap-label,.hp-live .hp-cyl-water{transition:none}}
.hp-kwh{margin:6px 0 14px;font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums}

/* Controls: quiet, under the answer. */
.hp-controls{display:grid;gap:10px 28px;margin:0 0 10px;padding-top:14px;border-top:1px solid var(--line)}
.hp-choice{margin:0;padding:0;border:0;min-width:0}
.hp-choice legend{padding:0;margin:0 0 2px;font-size:14px;font-weight:700;color:var(--navy)}
.hp-choice label{position:relative;display:flex;gap:10px;align-items:center;min-height:34px;font-size:15px;line-height:1.25;cursor:pointer}
.hp-choice label span:last-child{text-wrap:balance}
.hp-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.hp-dot{flex:none;display:grid;place-items:center;width:20px;height:20px;border:1.5px solid var(--navy);border-radius:50%;background:#fff}
.hp-choice input:checked+.hp-dot::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--navy)}
.hp-choice input:focus-visible+.hp-dot{outline:2px solid var(--sky);outline-offset:2px}
.hp-range{display:block}
.hp-range.has-cyl{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:end}
.hp-cyl{grid-row:1/3;width:38px;height:60px;overflow:visible}
.hp-cyl-shell{fill:none;stroke:var(--navy);stroke-width:1.5}
.hp-cyl-pipe{fill:var(--navy)}
.hp-cyl-water{fill:var(--red);transform-box:fill-box;transform-origin:50% 100%}
.hp-cyl-lines{stroke:var(--navy);stroke-width:1.2;opacity:.55}
.hp-range-row{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.hp-range-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 10px;font-size:14px;font-weight:700;color:var(--navy)}
.hp-range-head output{font-weight:400;color:var(--text);font-variant-numeric:tabular-nums}
.hp-range input{display:block;width:100%;min-width:0;height:34px;margin:2px 0 0;accent-color:var(--navy);cursor:pointer}
.hp-range input:focus-visible{outline:2px solid var(--sky);outline-offset:2px}

.hp-how{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:13px;line-height:1.5;color:var(--muted);text-wrap:pretty}
.hp-how strong{color:var(--navy);font-weight:700}
.hp-checked .piece-sources{margin:6px 0 0;font-size:12.5px;line-height:1.5}

@container (min-width:560px){
  .hp-controls{grid-template-columns:1fr 1fr}
  .hp-label,.hp-gap-label{font-size:15.5px}
  .hp-cost{font-size:20px}
  .hp-track{height:36px}
}
@container (max-width:359px){
  .hp-label{font-size:13.5px}
  .hp-choice label{font-size:14px;min-height:32px}
  .hp-lead{font-size:clamp(18.5px,6.4cqi,22px);margin-bottom:12px}
  .hp-cost{font-size:17px}
  .hp-track{height:24px}
  .hp-mark-track{height:26px}
  .hp-kwh{margin:4px 0 10px}
  .hp-controls{gap:8px;padding-top:10px}
  .hp-range input{height:30px}
  .hp-how{margin-top:8px;padding-top:8px;font-size:12.5px;line-height:1.45}
}
@container (max-width:289px){
  .hp-tick:nth-child(even){display:none}
}
