/* town.css - public town pages (/invest/<town>), growth plan 1 Dec 2026. Same tokens as free.css. */
:root{--ground:#F4F6F5;--surface:#FFFFFF;--raised:#EEF1EF;--border:#E3E8E5;--text:#0C1311;--muted:#5B6661;--accent:#0A7C55;--on-accent:#FFFFFF;--accent-soft:#E6F3ED;--accent-ink:#075E40;--neg-soft:#FCEAE8;--neg-ink:#831C1E;--bar:#C9D8D0;--font-ui:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:light}
@media (prefers-color-scheme:dark){:root{--ground:#0C1311;--surface:#141C19;--raised:#1B2521;--border:#25302B;--text:#EEF2F0;--muted:#9AA6A0;--accent:#4FC08A;--on-accent:#06120D;--accent-soft:#12301F;--accent-ink:#A9EBC3;--neg-soft:#3A1A19;--neg-ink:#FFC4BD;--bar:#2B3A33;color-scheme:dark}}
*{box-sizing:border-box}html,body{margin:0}
body{background:var(--ground);color:var(--text);font:16px/1.5 var(--font-ui);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#0C1311}
.logo{font-weight:650;font-size:24px;letter-spacing:-.035em;color:#fff;text-decoration:none;display:inline-flex;align-items:baseline}
.logo .lt{font-weight:700;font-size:11px;letter-spacing:.12em;text-transform:uppercase;border-radius:99px;padding:5px 9px 4px;margin-left:10px;line-height:1;align-self:center;color:#7BE0AE;background:rgba(47,179,122,.18)}
.logo .i{position:relative}.logo .i::after{content:"";position:absolute;left:50%;top:.02em;width:.26em;height:.26em;border-radius:.07em;background:#2FB37A;transform:translateX(-50%)}
.btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 20px;border-radius:12px;background:var(--accent);color:var(--on-accent);font:600 16px var(--font-ui);text-decoration:none;white-space:nowrap}
.btn.sm{height:36px;padding:0 14px;font-size:14px}
.wrap{max-width:760px;margin:0 auto;padding:24px 16px 48px}
.kicker{margin:0 0 4px;color:var(--muted);font-size:14px}
h1{margin:0 0 18px;font-size:clamp(28px,6vw,40px);line-height:1.1;letter-spacing:-.025em;font-weight:700;text-wrap:balance}
h2{margin:0 0 12px;font-size:20px;letter-spacing:-.01em;text-wrap:balance}
.card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px;margin:0 0 14px}
.label{margin:0;color:var(--muted);font-size:14px}
.big{margin:2px 0 8px;font-size:clamp(36px,10vw,52px);font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.meta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:0 0 14px;color:var(--muted);font-size:14px}
.chip{display:inline-block;padding:3px 10px;border-radius:999px;font-weight:600;font-size:13.5px}
.chip.up{background:var(--accent-soft);color:var(--accent-ink)}.chip.down{background:var(--neg-soft);color:var(--neg-ink)}
.plain{margin:0;color:var(--muted);font-size:15px}.plain b{color:var(--text)}
.types{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.types li{background:var(--raised);border-radius:12px;padding:12px 14px;display:grid;gap:2px}
.types span{color:var(--muted);font-size:14px}.types b{font-size:20px;font-variant-numeric:tabular-nums}
.trend{margin:0 0 12px}.trend svg{width:100%;height:auto;display:block}
.trend rect{fill:var(--bar)}.trend rect.now{fill:var(--accent)}
.trend figcaption{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.how ol{margin:0 0 12px;padding-left:22px;display:grid;gap:8px}
.cta{background:var(--accent-soft);border-color:transparent}.cta p{margin:0 0 14px}
.towns{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.towns a{display:inline-block;padding:8px 14px;border-radius:999px;background:var(--raised);color:var(--text);text-decoration:none;font-weight:500}
.townlist{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--border)}
.townlist a{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 2px;border-bottom:1px solid var(--border);color:var(--text);text-decoration:none}
.townlist .nm{display:grid;flex:1;min-width:0}.townlist .nm b{font-size:17px;font-weight:600;overflow-wrap:normal}
.townlist small{color:var(--muted);font-size:13px}
.townlist .fig{display:grid;justify-items:end;font-variant-numeric:tabular-nums;white-space:nowrap}.townlist .fig b{font-size:16px;font-weight:600}
.townlist .fig .up{color:var(--accent-ink)}.townlist .fig .down{color:var(--neg-ink)}
.townlist .chev{width:18px;height:18px;flex:none;fill:none;stroke:var(--muted);stroke-width:2}
.sp{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.segrow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.segrow>span{color:var(--muted);font-size:14px}
.seg{display:inline-flex;background:var(--raised);border-radius:10px;padding:3px;gap:2px}
.seg label{padding:6px 11px;border-radius:8px;font-size:14px;font-weight:500;color:var(--muted);cursor:pointer;white-space:nowrap;transition:background 150ms,color 150ms}
#sp1:checked~.segrow label[for=sp1],#sp3:checked~.segrow label[for=sp3],#sp5:checked~.segrow label[for=sp5]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
#sp1:focus-visible~.segrow label[for=sp1],#sp3:focus-visible~.segrow label[for=sp3],#sp5:focus-visible~.segrow label[for=sp5]{outline:2px solid var(--accent);outline-offset:1px}
.townlist .fig .c{display:none}
#sp1:checked~.townlist .c1,#sp3:checked~.townlist .c3,#sp5:checked~.townlist .c5{display:block}

/* Return on cash (Lee 2 Dec): the buy-to-let card on a town page */
.ret .kicker{margin-bottom:2px}
.rets{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rets li{background:var(--raised);border-radius:14px;padding:14px;display:grid;gap:2px;align-content:start;border:1px solid transparent}
.rets li.top1{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,transparent)}
.rets .ty{color:var(--muted);font-size:14px;font-weight:500;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.rets .ty em{font-style:normal;font-size:12px;font-weight:600;color:var(--accent-ink);background:var(--surface);border-radius:999px;padding:1px 8px}
.rets .roi{font-size:34px;line-height:1.1;letter-spacing:-.03em;font-weight:700;font-variant-numeric:tabular-nums;margin-top:4px}
.rets li.top1 .roi{color:var(--accent-ink)}
.rets .sub{color:var(--muted);font-size:13px}
.rets .facts{display:grid;gap:1px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border);font-size:13.5px;font-variant-numeric:tabular-nums}
.wwn{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px;color:var(--muted);font-size:15px}.wwn b{color:var(--text)}
.work{margin:0 0 10px;border:1px solid var(--border);border-radius:14px;padding:0 14px}
.work summary{cursor:pointer;padding:12px 0;font-weight:600;font-size:15px;color:var(--accent-ink);list-style-position:inside}
.work table{width:100%;border-collapse:collapse;margin:0 0 12px;font-size:14.5px;font-variant-numeric:tabular-nums}
.work th,.work td{padding:7px 0;border-top:1px solid var(--border);vertical-align:top}
.work th{text-align:left;font-weight:500;padding-right:12px}.work td{text-align:right;white-space:nowrap}
.work th small{display:block;color:var(--muted);font-size:12.5px;font-weight:400}
.work tr.hd th{border-top:0;padding-top:12px;color:var(--muted);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.work tr.tot th{font-weight:600}.work tr.roirow td b{font-size:18px;color:var(--accent-ink)}
.work .plain{margin:0 0 14px;font-size:14px}
/* The /invest list: two views, and a ranking per type of home */
.tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--raised);border-radius:12px;padding:4px;gap:4px;margin:0 0 4px}
.tabs label{text-align:center;padding:9px 8px;border-radius:9px;font-weight:600;font-size:15px;color:var(--muted);cursor:pointer;transition:background 150ms,color 150ms}
#vwr:checked~.tabs label[for=vwr],#vwp:checked~.tabs label[for=vwp]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
#vwr:focus-visible~.tabs label[for=vwr],#vwp:focus-visible~.tabs label[for=vwp]{outline:2px solid var(--accent);outline-offset:1px}
.pane{display:none}#vwr:checked~.pr,#vwp:checked~.pp{display:block}
#tyt:checked~.segrow label[for=tyt],#tyf:checked~.segrow label[for=tyf],#tys:checked~.segrow label[for=tys]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
#tyt:focus-visible~.segrow label[for=tyt],#tyf:focus-visible~.segrow label[for=tyf],#tys:focus-visible~.segrow label[for=tys]{outline:2px solid var(--accent);outline-offset:1px}
.ranked{display:flex;flex-direction:column}
.ranked .rv,.ranked .pos{display:none}
#tyt:checked~.ranked .rt,#tyf:checked~.ranked .rf,#tys:checked~.ranked .rs{display:grid;justify-items:end}
#tyt:checked~.ranked .pt,#tyf:checked~.ranked .pf,#tys:checked~.ranked .ps{display:grid}
.ranked .pos{place-items:center;flex:none;width:28px;height:28px;border-radius:999px;background:var(--raised);color:var(--muted);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.ranked .rv b{font-size:19px;font-weight:700;color:var(--accent-ink);letter-spacing:-.01em}.ranked .rv b.nk{color:var(--muted)}
#tyt:checked~.ranked .ot1{order:1}#tyt:checked~.ranked .ot2{order:2}#tyt:checked~.ranked .ot3{order:3}#tyt:checked~.ranked .ot4{order:4}#tyt:checked~.ranked .ot5{order:5}#tyt:checked~.ranked .ot6{order:6}#tyt:checked~.ranked .ot7{order:7}#tyt:checked~.ranked .ot8{order:8}#tyt:checked~.ranked .ot9{order:9}#tyt:checked~.ranked .ot10{order:10}#tyt:checked~.ranked .ot11{order:11}#tyt:checked~.ranked .ot12{order:12}#tyt:checked~.ranked .ot13{order:13}#tyt:checked~.ranked .ot14{order:14}#tyt:checked~.ranked .ot15{order:15}#tyt:checked~.ranked .ot16{order:16}#tyt:checked~.ranked .ot17{order:17}#tyt:checked~.ranked .ot18{order:18}#tyt:checked~.ranked .ot19{order:19}#tyt:checked~.ranked .ot20{order:20}#tyt:checked~.ranked .ot21{order:21}#tyt:checked~.ranked .ot22{order:22}#tyt:checked~.ranked .ot23{order:23}#tyt:checked~.ranked .ot24{order:24}#tyt:checked~.ranked .ot25{order:25}#tyt:checked~.ranked .ot26{order:26}#tyt:checked~.ranked .ot27{order:27}#tyt:checked~.ranked .ot28{order:28}#tyt:checked~.ranked .ot29{order:29}#tyt:checked~.ranked .ot30{order:30}#tyf:checked~.ranked .of1{order:1}#tyf:checked~.ranked .of2{order:2}#tyf:checked~.ranked .of3{order:3}#tyf:checked~.ranked .of4{order:4}#tyf:checked~.ranked .of5{order:5}#tyf:checked~.ranked .of6{order:6}#tyf:checked~.ranked .of7{order:7}#tyf:checked~.ranked .of8{order:8}#tyf:checked~.ranked .of9{order:9}#tyf:checked~.ranked .of10{order:10}#tyf:checked~.ranked .of11{order:11}#tyf:checked~.ranked .of12{order:12}#tyf:checked~.ranked .of13{order:13}#tyf:checked~.ranked .of14{order:14}#tyf:checked~.ranked .of15{order:15}#tyf:checked~.ranked .of16{order:16}#tyf:checked~.ranked .of17{order:17}#tyf:checked~.ranked .of18{order:18}#tyf:checked~.ranked .of19{order:19}#tyf:checked~.ranked .of20{order:20}#tyf:checked~.ranked .of21{order:21}#tyf:checked~.ranked .of22{order:22}#tyf:checked~.ranked .of23{order:23}#tyf:checked~.ranked .of24{order:24}#tyf:checked~.ranked .of25{order:25}#tyf:checked~.ranked .of26{order:26}#tyf:checked~.ranked .of27{order:27}#tyf:checked~.ranked .of28{order:28}#tyf:checked~.ranked .of29{order:29}#tyf:checked~.ranked .of30{order:30}#tys:checked~.ranked .os1{order:1}#tys:checked~.ranked .os2{order:2}#tys:checked~.ranked .os3{order:3}#tys:checked~.ranked .os4{order:4}#tys:checked~.ranked .os5{order:5}#tys:checked~.ranked .os6{order:6}#tys:checked~.ranked .os7{order:7}#tys:checked~.ranked .os8{order:8}#tys:checked~.ranked .os9{order:9}#tys:checked~.ranked .os10{order:10}#tys:checked~.ranked .os11{order:11}#tys:checked~.ranked .os12{order:12}#tys:checked~.ranked .os13{order:13}#tys:checked~.ranked .os14{order:14}#tys:checked~.ranked .os15{order:15}#tys:checked~.ranked .os16{order:16}#tys:checked~.ranked .os17{order:17}#tys:checked~.ranked .os18{order:18}#tys:checked~.ranked .os19{order:19}#tys:checked~.ranked .os20{order:20}#tys:checked~.ranked .os21{order:21}#tys:checked~.ranked .os22{order:22}#tys:checked~.ranked .os23{order:23}#tys:checked~.ranked .os24{order:24}#tys:checked~.ranked .os25{order:25}#tys:checked~.ranked .os26{order:26}#tys:checked~.ranked .os27{order:27}#tys:checked~.ranked .os28{order:28}#tys:checked~.ranked .os29{order:29}#tys:checked~.ranked .os30{order:30}
.note{margin:10px 0 0;color:var(--muted);font-size:13px}
.foot{color:var(--muted);font-size:13px;padding:8px 4px}.foot p{margin:0 0 8px}
@media (max-width:560px){.rets{grid-template-columns:minmax(0,1fr)}.rets li{grid-template-columns:1fr auto;column-gap:12px}.rets .ty{grid-column:1/-1}.rets .roi{grid-column:1;margin:0}.rets .sub{grid-column:1}.rets .facts{grid-column:2;grid-row:2/4;margin:0;padding:0 0 0 12px;border-top:0;border-left:1px solid var(--border);align-content:center}}
@media (max-width:420px){.types{grid-template-columns:minmax(0,1fr)}.cta .btn{width:100%}}
.reg{border-top:1px solid var(--border)}.reg:last-child{border-bottom:1px solid var(--border)}
.reg summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;cursor:pointer;font-weight:600;list-style:none}
.reg summary::-webkit-details-marker{display:none}
.reg summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin:0 6px 4px 12px;flex:none}
.reg[open] summary::after{transform:rotate(-135deg);margin-bottom:-2px}
.reg summary small{color:var(--muted);font-weight:500;margin-left:auto}
.reg .towns{padding:0 0 14px}
.reg .towns a{padding:6px 12px;font-size:14.5px}
/* Free tools (/tools): a GET form and the answer, no script */
.lead{margin:-6px 0 16px}
.calc{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;align-items:end}
.fld{display:grid;gap:5px;font-size:14px;color:var(--muted)}.fld span{font-weight:600;color:var(--text)}.fld small{font-size:12.5px}
.fld input,.fld select{height:46px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:500 16px var(--font-ui);padding:0 12px;width:100%;min-width:0}
.fld input:focus,.fld select:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.calc .btn{width:100%}
.bands{width:100%;border-collapse:collapse;margin:4px 0 14px;font-size:15px;font-variant-numeric:tabular-nums}
.bands th,.bands td{padding:8px 0;border-top:1px solid var(--border);vertical-align:top}
.bands th{text-align:left;font-weight:500;padding-right:12px}.bands td{text-align:right;white-space:nowrap}
.bands th small{display:block;color:var(--muted);font-size:12.5px;font-weight:400}
.bands tr.tot th{font-weight:600}.bands tbody+tbody tr:first-child th,.bands tbody+tbody tr:first-child td{border-top:2px solid var(--border)}
.code{white-space:pre-wrap;word-break:break-all;background:var(--raised);border-radius:10px;padding:12px;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;margin:0 0 14px;user-select:all}
/* UK heat map (townmap.js): radios #mtt/#mtf/#mts switch the colours and the best/worst lists */
:root{--h0:#D2544B;--h1:#EFA88E;--h2:#EFE3B8;--h3:#86CBA4;--h4:#16925E;--hn:#DCE2DF;--ho:#EEF1EF}
@media (prefers-color-scheme:dark){:root{--h0:#C4514A;--h1:#9A5E4E;--h2:#6E6A4E;--h3:#3F8A63;--h4:#4FC08A;--hn:#2B3632;--ho:#19221F}}
.hm .hmap{display:block;width:100%;max-width:520px;height:auto;margin:14px auto 6px}
.hmap use{fill:var(--hn);stroke:var(--surface);stroke-width:.8;transition:fill 150ms}
.hmap use.out{fill:var(--ho)}
.hmap a:hover use,.hmap a:focus-visible use{stroke:var(--text);stroke-width:1.4}
#mtt:checked~.hmap .t0,#mtf:checked~.hmap .f0,#mts:checked~.hmap .s0{fill:var(--h0)}
#mtt:checked~.hmap .t1,#mtf:checked~.hmap .f1,#mts:checked~.hmap .s1{fill:var(--h1)}
#mtt:checked~.hmap .t2,#mtf:checked~.hmap .f2,#mts:checked~.hmap .s2{fill:var(--h2)}
#mtt:checked~.hmap .t3,#mtf:checked~.hmap .f3,#mts:checked~.hmap .s3{fill:var(--h3)}
#mtt:checked~.hmap .t4,#mtf:checked~.hmap .f4,#mts:checked~.hmap .s4{fill:var(--h4)}
#mtt:checked~.segrow label[for=mtt],#mtf:checked~.segrow label[for=mtf],#mts:checked~.segrow label[for=mts]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
#mtt:focus-visible~.segrow label[for=mtt],#mtf:focus-visible~.segrow label[for=mtf],#mts:focus-visible~.segrow label[for=mts]{outline:2px solid var(--accent);outline-offset:1px}
.hkey{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;font-size:13px;color:var(--muted)}
.hkey li{display:flex;align-items:center;gap:6px;white-space:nowrap}
.hkey i{width:12px;height:12px;border-radius:3px;display:inline-block}
.hkey .k0{background:var(--h0)}.hkey .k1{background:var(--h1)}.hkey .k2{background:var(--h2)}.hkey .k3{background:var(--h3)}.hkey .k4{background:var(--h4)}.hkey .kn{background:var(--hn)}
.bw{display:none;gap:4px 24px}
#mtt:checked~.bw.wt,#mtf:checked~.bw.wf,#mts:checked~.bw.ws{display:grid}
@media (min-width:640px){.bw{grid-template-columns:1fr 1fr}}
.bw h3{margin:14px 0 0;font-size:15px}
.bw .townlist{margin-top:6px}
.bw .fig b.b0,.bw .fig b.b1{color:var(--neg-ink)}.bw .fig b.b3,.bw .fig b.b4{color:var(--accent-ink)}
/* auction pages: logo + latest results */
.brand{display:flex;align-items:center;gap:14px}.brand h1{margin:0}
.hlogo{flex:none;border-radius:10px;background:#fff;border:1px solid var(--border);padding:4px;object-fit:contain}
.townlist .hlogo{border-radius:8px;padding:3px}
.lots .row{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 2px;border-bottom:1px solid var(--border)}
.lots .fig{text-align:right}.lots .fig b{font-size:15px;white-space:nowrap}
.lots .fig b.up{color:var(--accent-ink)}.lots .fig b.down{color:var(--muted)}
/* calculators work out as you type (calc.js); the button stays for no-script visitors */
.calc.live .btn{display:none}
#res[aria-busy=true]{opacity:.6;transition:opacity 150ms}
/* regions / cities / towns (Lee 2 Dec) */
.kicker .kind{font-weight:600;color:var(--accent-ink)}
.sub3{margin:14px 0 8px;font-size:15px;color:var(--muted);font-weight:600}
.types li small{color:var(--muted);font-size:13px}
.rgts{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rgts li{display:grid;justify-items:center;text-align:center;gap:2px;padding:12px 6px;border-radius:12px;background:var(--raised)}.rgts b{font-size:13.5px}.rgts small{font-size:12px;color:var(--muted)}
.rg{width:74px;height:74px;margin-bottom:4px}.rg path{fill:none;stroke:var(--border);stroke-width:6}.rg path.on{stroke:var(--accent)}.rg.w path.on{stroke:#c98a00}.rg text{font-size:13px;font-weight:700;fill:var(--text)}
@media (max-width:560px){.rgts{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Lee 3 Dec ("pages that for desktop are optimised for mobile"): on a computer the page uses the width. Cards sit two
   side by side (a calculator beside its answer); the headline, map and long lists run the full width. */
@media (min-width:1100px){
  .wrap{max-width:1200px;padding:32px 32px 56px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;align-items:start}
  .wrap>*{grid-column:1/-1;min-width:0}
  .wrap>.card{grid-column:auto;margin:0 0 20px}
  .wrap>.card.hero:not(#res),.wrap>.card.ret,.wrap>#map,.wrap>#all,.wrap>.card.wide,.wrap>.card:only-of-type{grid-column:1/-1}
  .wrap>.calc{align-self:stretch}.wrap>#res{align-self:stretch}
  .wrap>.card.wide .townlist,.wrap>#all .townlist,.wrap>.card:only-of-type .townlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
  .wrap>.lead,.wrap>.plain{max-width:70ch}
}

/* Stop iPhone Safari enlarging text (Lee 3 Dec, Inbox previews drawn huge). */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.cvbs{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
.cvb{display:grid;grid-template-columns:1fr auto;gap:2px 8px;font-size:13.5px}.cvb span{color:var(--muted,#6b7280)}.cvb svg{grid-column:1/-1;width:100%;height:6px}.cvb .t{fill:var(--control,#e5e7eb)}.cvb .g{fill:var(--positive,#0A7C55)}.cvb .a{fill:var(--warning,#A35400)}.cvb .w{fill:var(--negative,#B42318)}
@media (max-width:560px){.cvbs{grid-template-columns:1fr}}

/* Free tools (Lee 5 Dec): a fixed £ in money boxes, and a way back to all the tools. */
.pound{position:relative;display:block}
.pound>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);font:500 16px var(--font-ui);pointer-events:none}
.fld .pound input{padding-left:28px;font-variant-numeric:tabular-nums}
.back{display:inline-flex;align-items:center;gap:4px;margin:0 0 6px -4px;padding:4px 6px 4px 2px;border-radius:8px;color:var(--muted);font-size:14px;font-weight:500;text-decoration:none}
.back:hover{color:var(--text);background:var(--raised)}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Lee 5 Dec ("a little off"): every box's top edge lines up; hints sit under their box without moving the row. */
.calc{align-items:start}
.fld{grid-template-rows:auto 46px auto}
.pct{position:relative;display:block}
.pct>span{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:var(--muted);font:500 16px var(--font-ui);pointer-events:none}
.fld .pct input{padding-right:30px;font-variant-numeric:tabular-nums}
.fld select{text-overflow:ellipsis;padding-right:32px}
/* Free lookups (EPC, planning), 5 Dec */
.calc.lookup{grid-template-columns:minmax(0,1fr) auto;align-items:end}.calc.lookup .fld{grid-template-rows:auto 46px}
.lookup input[name=postcode]{text-transform:uppercase}
.e-A{fill:#0A7C55;background:#0A7C55}.e-B{fill:#2E9B4E;background:#2E9B4E}.e-C{fill:#8DBE3F;background:#8DBE3F}.e-D{fill:#F2C230;background:#F2C230}.e-E{fill:#F2A33A;background:#F2A33A}.e-F{fill:#E8702F;background:#E8702F}.e-G{fill:#D3322B;background:#D3322B}.e-none{fill:var(--border)}
.epcstrip{margin:4px 0 6px}.epcstrip svg{width:100%;display:block}
.epcstrip .bl{fill:var(--text);font:600 15px var(--font-ui)}.epcstrip .bn{fill:var(--muted);font:500 14px var(--font-ui)}
.epclist li,.planlist li{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 2px;border-bottom:1px solid var(--border)}
.eb{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#fff;font-weight:700;font-size:16px}
.eb.e-C,.eb.e-D,.eb.e-E{color:#1B1A12}
.planlist li{align-items:flex-start}.planlist .nm small+small{margin-top:2px}
.planlist .fig small{color:var(--muted);font-size:13px}.planlist .fig a{font-size:13px}
.num{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;font:600 13px var(--font-ui);color:var(--on-accent);background:var(--accent)}.num.no{background:var(--neg);color:#fff}
.pmap{margin:6px 0 4px}.pmap svg{width:100%;max-height:340px;height:auto;display:block;background:var(--raised);border-radius:14px}
.pmap .ring{fill:none;stroke:var(--border);stroke-width:1.5}.pmap .ring.in{stroke-dasharray:4 5}
.pmap .sc{fill:var(--muted);font:500 12px var(--font-ui);text-anchor:middle}
.pmap .d circle{stroke:var(--surface);stroke-width:2}.pmap .d.ok circle{fill:var(--accent)}.pmap .d.no circle{fill:var(--neg)}.pmap .d.mix circle{fill:var(--accent);stroke:var(--neg);stroke-width:3}
.pmap .d text{fill:#fff;font:600 13px var(--font-ui);text-anchor:middle}
.pmap .pin circle{fill:var(--text);stroke:var(--surface);stroke-width:3}
.pmap figcaption{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;color:var(--muted);font-size:13px}
.pmap .k{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px}.pmap .k.ok{background:var(--accent)}.pmap .k.no{background:var(--neg)}.pmap .k.pin{background:var(--text)}
.rates li{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 2px;border-bottom:1px solid var(--border)}
.faq details{border-top:1px solid var(--border);padding:12px 0}.faq details:last-child{border-bottom:1px solid var(--border)}
.faq summary{cursor:pointer;font-weight:600;list-style-position:outside}.faq details p{margin-top:8px}
.epcstrip svg{height:12px;border-radius:6px;overflow:hidden}
.epcstrip ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;padding:0;font-variant-numeric:tabular-nums;color:var(--muted);font-size:14px}
.epcstrip li{display:flex;align-items:center;gap:6px}.eb.sm{width:22px;height:22px;border-radius:6px;font-size:12px}
.more summary{cursor:pointer;padding:12px 2px;color:var(--accent);font-weight:600}.more .townlist{margin-top:0}
.epclist:empty,.planlist:empty{display:none}
/* Lookups, after the design review (6 Dec) */
:root{--neg:#B42318}@media (prefers-color-scheme:dark){:root{--neg:#F97066}.e-A{fill:#2FA374;background:#2FA374}.e-B{fill:#4DB36A;background:#4DB36A}.e-C{fill:#A3CF5C;background:#A3CF5C}.e-D{fill:#F5CD52;background:#F5CD52}.e-E{fill:#F5B15A;background:#F5B15A}.e-F{fill:#EE8650;background:#EE8650}.e-G{fill:#E2564F;background:#E2564F}}
.planlist .nm a{display:inline;min-height:0;padding:0;border:0;color:var(--accent);font-size:13px}
.planlist .nm small{display:block}.planlist li:target{background:var(--accent-soft);border-radius:10px}
.ref{font-style:normal;font-weight:600;color:var(--neg)}
.side h2{margin-top:0}.side .rates{margin-bottom:8px}
details.more>summary,.faq summary{list-style:none;display:flex;align-items:center;gap:8px}
details.more>summary::-webkit-details-marker,.faq summary::-webkit-details-marker{display:none}
details.more>summary::after,.faq summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;transition:transform 150ms;opacity:.7}
details[open].more>summary::after,.faq details[open] summary::after{transform:rotate(-135deg)}
.why>summary{color:var(--text)}
@media (min-width:1100px){.wrap>#res.lk{grid-row:span 3;align-self:start}}
.lk .big{line-height:1.05;text-wrap:balance}
.pmap{max-width:460px}.pmap .k.mix{background:var(--accent);box-shadow:0 0 0 2px var(--neg)}
.planlist .fig{align-self:flex-start}.planlist .fig a{display:inline;min-height:0;padding:0;border:0;color:var(--accent);font-size:13px}
.lk>.why{margin-top:4px}
