@font-face{font-family:"Unbounded";font-weight:700;font-display:swap;src:url("/fonts/unbounded-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"DM Sans";font-weight:400;font-display:swap;src:url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"DM Sans";font-weight:700;font-display:swap;src:url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2")}
/* a winter evening by the meter cupboard: frost lilac walls, midnight ink, and one bar of credit cut into days, amber for electric and flame blue for gas */
:root{--frost:#e9e8f6;--paper:#fff;--ink:#1c1f52;--soft:#454874;--amber:#ffb81c;--amber2:#ffd166;--flame:#58b4f0;--flame2:#93d0f7;--rose:#e8537a;--link:#2a35a8;--bad:#a20e32;--line:#a9a8cc}
*{box-sizing:border-box}
html{background:var(--frost)}
body{margin:0;background:var(--frost);color:var(--ink);font:400 18px/1.6 "DM Sans",system-ui,sans-serif;overflow-x:clip}
main{display:block;max-width:640px;margin:0 auto;padding:0 16px 56px}
h1,h2,h3{line-height:1.2}
h1,h2{font-family:"Unbounded",system-ui,sans-serif;font-weight:700}
h1{font-size:clamp(1.6rem,7vw,2.5rem);line-height:1.14;margin:16px 0 6px;letter-spacing:-.01em;text-wrap:balance}
h2{font-size:1.3rem;margin:38px 0 10px;text-wrap:balance}
h3{font-size:1.15rem;margin:24px 0 6px}
p,li{max-width:66ch}
li{margin-bottom:7px}
a{color:var(--link);text-underline-offset:3px;overflow-wrap:anywhere}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 7px var(--amber)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lead{margin:0 0 10px;font-size:1rem;line-height:1.4}
.hint{margin:0 0 6px;color:var(--soft);font-size:.92rem;line-height:1.35}
.example{max-width:none;margin:0}
.q{margin:12px 0 18px}
.q>label,legend{font-weight:700;font-size:1.1rem;line-height:1.35;display:block;padding:0}
.opt{font-weight:400;color:var(--soft)}
fieldset{border:0;padding:0;min-width:0}
.affix{display:flex;align-items:center;gap:8px}
.affix>span{font-weight:700;font-size:1.3rem}
input[type=text],select{font:700 1.3rem "DM Sans",system-ui,sans-serif;min-width:0;min-height:48px;border:2px solid var(--ink);border-radius:6px;background:var(--paper);color:var(--ink);padding:4px 10px}
input[type=text]{width:7em;max-width:100%}
select{width:100%;font-size:1.05rem}
.pick{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0;font-size:1.02rem;line-height:1.35;cursor:pointer}
.pick input{flex:none;width:28px;height:28px;margin:0;accent-color:var(--ink)}
.side .opts{display:flex;gap:10px}
.side .pick{flex:1;background:var(--paper);border:2px solid var(--ink);border-radius:6px;padding:6px 12px;font-weight:700}
.side .pick:has(:checked){box-shadow:inset 0 -6px 0 var(--amber)}
.side .pick[for=fuel-gas]:has(:checked){box-shadow:inset 0 -6px 0 var(--flame)}
form:has(#use-own:not(:checked)) #q-kwh{display:none}
button{font:700 1.05rem "DM Sans",system-ui,sans-serif;min-height:48px;border:2px solid var(--ink);border-radius:6px;padding:8px 18px;cursor:pointer;background:var(--paper);color:var(--ink)}
.go{display:block;width:100%;margin-top:20px;background:var(--ink);color:#fff}

/* the signature: the bar is the money, each cut is a day, and January's cuts sit wider apart */
.board{margin:6px -16px 24px;padding:12px 16px 4px;background:var(--ink);color:#fff}
.knife{display:grid;grid-template-columns:1fr 1fr}
.knife button{background:var(--ink);color:#fff;border-color:#fff;border-radius:0}
.knife button:first-child{border-radius:6px 0 0 6px}
.knife button:last-child{border-radius:0 6px 6px 0;border-left-width:0}
.knife button[aria-pressed=true]{background:#fff;color:var(--ink)}
.board :focus-visible{outline-color:#fff}
.loaf{margin-top:12px}
.loaf svg{display:block;width:100%;height:auto}
rect.tray{fill:#34376e}
.slice,.cut,.num,.owed,.slice rect{transform-origin:0 0}
.slice .energy{fill:var(--amber)}
.slice.alt .energy{fill:var(--amber2)}
.board[data-fuel=gas] .slice .energy{fill:var(--flame)}
.board[data-fuel=gas] .slice.alt .energy{fill:var(--flame2)}
.slice.part .energy{fill-opacity:.55}
.slice .standing{fill:#fff}
.slice.alt .standing{fill:#dcdcf0}
.slice.part .standing{fill-opacity:.55}
.slice .repay{fill:var(--rose)}
.owed rect{fill:var(--rose);fill-opacity:.35}
.cut line{stroke:var(--ink);stroke-width:2.5}
.num{font:700 12px "DM Sans",system-ui,sans-serif;fill:#fff}
.edge{fill:none;stroke:#fff;stroke-width:1}
.key{display:flex;flex-wrap:wrap;gap:2px 16px;list-style:none;margin:6px 0 0;padding:0;font-size:.88rem}
.key li{margin:0;display:flex;align-items:center;gap:6px}
.key li::before{content:"";width:14px;height:14px;background:var(--amber);border:1px solid #fff}
.board[data-fuel=gas] .k-energy::before{background:var(--flame)}
.key .k-standing::before{background:#fff}
.key .k-repay::before{background:var(--rose)}
.key .k-owed::before{background:#7a365f}
.say{margin:8px 0 8px;font-size:.98rem;line-height:1.4;min-height:5.6em}
.stale :is(.loaf,.knife,.key){display:none}
@media (prefers-reduced-motion:no-preference){.slice,.cut,.num,.owed,.slice rect{transition:transform .45s cubic-bezier(.3,.7,.2,1),opacity .3s}}
@media (prefers-reduced-motion:reduce){.slice,.cut,.num,.owed,.slice rect{transition-property:none}}

.ticket{margin-top:30px;background:var(--paper);border-top:8px solid var(--ink);border-radius:0 0 12px 12px;padding:6px 18px 16px;scroll-margin-top:12px}
.ticket h2{margin:12px 0 4px;font-size:1rem}
.big{font-family:"Unbounded",system-ui,sans-serif;font-size:1.32rem;line-height:1.32;margin:6px 0 10px;text-wrap:balance}
.big strong{font-weight:700}
.facts{margin:12px 0 0}
.facts div{border-top:1px solid var(--line);padding:10px 0}
.facts dt{font-size:.92rem;color:var(--soft);line-height:1.35}
.facts dd{margin:2px 0 0;font-weight:700;line-height:1.4}
.help{background:var(--frost);border-left:6px solid var(--ink);padding:10px 12px;line-height:1.45;font-size:.98rem}
.scrollx{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.92rem;line-height:1.4;background:var(--paper)}
article table{min-width:540px}
caption{text-align:left;font-weight:700;padding:6px 0}
th,td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--line)}
.summary{border:4px solid var(--bad);background:var(--paper);padding:2px 16px 8px;margin:14px 0}
.summary h2{margin:10px 0 6px;font-size:1.15rem}
.summary ul{list-style:none;padding:0;margin:0}
.summary a{color:var(--bad);font-weight:700;display:inline-block;padding:9px 0}
.q.bad{border-left:5px solid var(--bad);padding-left:10px}
.err{margin:0 0 6px;color:var(--bad);font-weight:700;font-size:.95rem}
.q.bad :is(input[type=text],select){border-color:var(--bad)}
.nojs{background:var(--paper);padding:12px 14px;border:2px solid var(--ink)}
details{border-bottom:1px solid var(--line)}
summary{cursor:pointer;font-weight:700;padding:12px 0;min-height:48px}
.short-answer{background:var(--paper);padding:14px 16px;border-left:8px solid var(--ink)}
.related{padding-left:20px}
.updated{color:var(--soft);font-size:.9rem}
@media (min-width:640px){.board{margin-left:0;margin-right:0;border-radius:12px}}
@media (min-width:900px){main{max-width:760px}}
[hidden]{display:none!important}
