/* BoilerLight: boiler-cupboard utility. Warm enamel white, slate ink, amber LCD, pilot-flame accent. */
:root {
  --paper: #F5F2EC;
  --surface: #FFFFFF;
  --ink: #1D2630;
  --muted: #5B6672;
  --line: #DDD6CB;
  --flame: #C23E17;
  --flame-ink: #FFFFFF;
  --link: #B33A15;
  --lcd-bg: #141B22;
  --lcd: #FFB648;
  --ok: #23714A; --ok-bg: #E3F2E8;
  --warn: #86580A; --warn-bg: #FBF0D6;
  --bad: #A62C22; --bad-bg: #FBE4E1;
  --band: #1D2630; --on-band: #F5F2EC;
  --font-display: Inter, -apple-system, "system-ui", "Segoe UI", sans-serif;
  --font-body: Inter, -apple-system, "system-ui", "Segoe UI", sans-serif;
  --font-lcd: Inter, -apple-system, "system-ui", "Segoe UI", sans-serif;
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12171C; --surface: #1A2128; --ink: #ECE7DF; --muted: #A2ABB4; --line: #2C3640;
    --flame: #F06A3F; --flame-ink: #12171C; --link: #FF9A72; --lcd-bg: #0A0E12;
    --ok-bg: #173325; --warn-bg: #3A2D0E; --bad-bg: #3B1A17; --ok: #5CC488; --warn: #F0B640; --bad: #F07468;
    --band: #222B34; --on-band: #ECE7DF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12171C; --surface: #1A2128; --ink: #ECE7DF; --muted: #A2ABB4; --line: #2C3640;
  --flame: #F06A3F; --flame-ink: #12171C; --link: #FF9A72; --lcd-bg: #0A0E12;
  --ok-bg: #173325; --warn-bg: #3A2D0E; --bad-bg: #3B1A17; --ok: #5CC488; --warn: #F0B640; --bad: #F07468;
  --band: #222B34; --on-band: #ECE7DF; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--font-body); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lcd); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5.6vw, 48px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.035em; }
h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 750; margin: 40px 0 12px; }
h3 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--flame); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lcd); box-shadow: 0 0 0 3px #FFB64840; }
.lede { font-size: 19.5px; color: var(--muted); max-width: 60ch; }
.small { font-size: 14.5px; color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 16px; max-width: 70ch; }

/* Gas safety bar */
.gasbar { background: var(--band); color: var(--on-band); font-size: 14px; }
.gasbar .wrap { padding-block: 7px; }
.gasbar a { color: var(--lcd); }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 800 23px/1 var(--font-display); letter-spacing: -0.04em; }
.wm b { font-weight: 800; color: var(--flame); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo.small { font-size: 20px; }
.logo.small svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--flame); }

main { padding-block: 8px 64px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; padding-top: 18px; }
.crumbs a { color: var(--muted); }

/* LCD: the signature element, styled like the display on the boiler itself */
.lcd { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 168px; height: 92px; padding: 0 22px;
  background: var(--lcd-bg); border-radius: 10px; border: 3px solid #2B343D;
  box-shadow: inset 0 0 0 2px #0006, inset 0 10px 24px #0008; }
.lcd-glow { font: 400 54px/1 var(--font-lcd); color: var(--lcd); letter-spacing: .04em; text-shadow: 0 0 12px #FFB64899; white-space: nowrap; }
.lcd-flame { position: absolute; right: 9px; top: 9px; width: 9px; height: 13px; background: var(--flame); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: blink 1.4s steps(2, start) infinite; }
.lcd.big { min-width: 0; width: 100%; height: 110px; }
.lcd.big .lcd-glow { font-size: 64px; }
@keyframes blink { to { opacity: .15; } }
.mini-lcd { display: inline-block; min-width: 4.3em; text-align: center; font: 400 16px/1 var(--font-lcd); color: var(--lcd); background: var(--lcd-bg);
  border-radius: 5px; padding: 6px 7px; margin-right: 10px; text-decoration: none; white-space: nowrap; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; padding: 5px 11px; border-radius: 999px; border: 1.5px solid; }
.badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.lvl-diy { color: var(--ok); background: var(--ok-bg); }
.lvl-check { color: var(--warn); background: var(--warn-bg); }
.lvl-eng { color: var(--bad); background: var(--bad-bg); }
td .badge { font-size: 13px; padding: 3px 9px; white-space: nowrap; }

/* Code page */
.code-head { display: flex; gap: 20px 26px; align-items: center; flex-wrap: wrap; padding-block: 22px 8px; }
.code-title { flex: 1 1 320px; min-width: 0; }
.code-title h1 { margin-bottom: 12px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--lcd); border-radius: var(--radius);
  padding: 16px 20px; margin: 22px 0; max-width: 74ch; font-size: 18.5px; }
.answer strong { display: block; font: 700 12px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.answer p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.grid-2 > * { min-width: 0; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 16px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: var(--lcd); font: 400 18px/32px var(--font-lcd); text-align: center; }
.steps.big li { padding-bottom: 20px; max-width: 70ch; }
.causes { padding-left: 20px; }
.causes li { margin-bottom: 6px; }
.causes.ok li::marker { color: var(--ok); }
.causes.bad li::marker { color: var(--bad); }
.brand-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.bb-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bb-head h2 { margin: 6px 0; font-size: 25px; }
.more { font-weight: 700; }

/* CTA band */
.cta { background: var(--band); color: var(--on-band); border-radius: 12px; padding: 24px; margin: 40px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 28px; align-items: center; }
.cta h2 { margin: 0 0 6px; color: var(--on-band); }
.cta p { margin: 0; opacity: .88; }
.cta a:not(.btn) { color: var(--lcd); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta .tiny { grid-column: 1 / -1; color: var(--on-band); opacity: .7; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--flame); color: var(--flame-ink);
  border: 0; border-radius: 10px; padding: 14px 20px; font: 700 16px/1.2 var(--font-body); letter-spacing: -0.01em; box-shadow: 0 1px 0 #00000014, 0 6px 16px -8px var(--flame); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }

/* Kit and boiler boxes */
.kit, .aside-boiler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.kit h2, .aside-boiler h2 { margin-top: 0; font-size: 24px; }
.kit ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.kit li span { display: block; font-size: 15px; color: var(--muted); }
.pair { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; margin: 0; }
.ad-slot { border: 1px dashed var(--line); border-radius: var(--radius); min-height: 100px; margin: 30px 0; display: grid; place-items: center;
  color: var(--muted); font: 600 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; }

/* Lists of codes */
.code-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.code-list li { border-top: 1px solid var(--line); }
.code-list a { display: flex; align-items: center; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.code-list a:hover { color: var(--link); }
.src .sources { font-size: 15px; padding-left: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 22px 0; }
table { border-collapse: collapse; width: 100%; min-width: 0; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 700 12px var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }

/* Page top */
.page-top { padding-block: 26px 10px; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px 48px; align-items: center; padding-block: 36px 20px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-panel { display: none; } }
.finder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-top: 22px; }
@media (max-width: 640px) { .finder { grid-template-columns: 1fr; } }
.finder .form-msg { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.finder .form-msg:empty { display: none; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
input, select, textarea { font: 17px/1.3 var(--font-body); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.boiler { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 0; box-shadow: 0 18px 40px #1D263022; }
.boiler-top { height: 10px; border-radius: 6px; background: var(--line); margin-bottom: 18px; }
.boiler-knobs { display: flex; gap: 14px; align-items: center; padding: 18px 4px; }
.boiler-knobs i { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); background: var(--paper); }
.boiler-knobs b { margin-left: auto; width: 46px; height: 16px; border-radius: 8px; background: var(--flame); }
.boiler-base { border-top: 1px solid var(--line); padding: 12px 0 14px; display: flex; justify-content: center; }
.boiler-base span { font: 400 15px var(--font-lcd); color: var(--muted); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.tiles a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tiles a:hover { border-color: var(--flame); }
.tiles .mini-lcd { align-self: flex-start; font-size: 20px; margin-bottom: 8px; }
.tiles span:last-child { font-size: 15px; color: var(--muted); line-height: 1.35; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.checks a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; }
.checks b { grid-row: span 2; font: 400 34px/1 var(--font-lcd); color: var(--lcd); background: var(--lcd-bg); border-radius: 8px; padding: 8px 10px; align-self: start; }
.checks span { color: var(--muted); font-size: 15.5px; }
.brand-list, .link-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.brand-list a, .link-cards a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none; height: 100%; }
.brand-list strong { font: 750 19px/1.2 var(--font-display); letter-spacing: -0.02em; }
.brand-list span, .link-cards span { font-size: 14.5px; color: var(--muted); }

/* Pressure tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 26px 0; max-width: 640px; }
.tool h2 { margin-top: 0; }
.gauge-fig { margin: 0 0 12px; text-align: center; }
.gauge { width: 100%; max-width: 330px; }
.gauge #needle { transition: transform .25s ease; }
.gauge-fig figcaption { font-size: 14.5px; color: var(--muted); }
.tool-fields { display: grid; gap: 14px; }
output { font: 400 20px var(--font-lcd); color: var(--ink); }
input[type="range"] { padding: 0; accent-color: var(--flame); background: transparent; border: 0; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.seg legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.seg input { width: auto; }
.verdict { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.verdict.ok { background: var(--ok-bg); } .verdict.warn { background: var(--warn-bg); } .verdict.bad { background: var(--bad-bg); }

/* Lead form */
form.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 22px 0; display: grid; gap: 16px; max-width: 760px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
label.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; margin: 0; }

.guide, .prose { max-width: 74ch; }
.guide h2 { margin-top: 34px; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 30px; font-size: 15px; color: var(--muted); }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 40px; }
.site-foot nav { display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--muted); }
.fine { font-size: 13.5px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Phone tightening */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .lede { font-size: 17.5px; }
  .hero { padding-block: 18px 6px; }
  .finder { margin-top: 14px; padding: 14px; }
  .gasbar { font-size: 13px; }
  .site-head .wrap { padding-block: 10px; }
  .nav { gap: 2px 14px; font-size: 15px; }
  .lcd { height: 78px; min-width: 140px; }
  .lcd-glow { font-size: 44px; }
  .code-head { gap: 14px; padding-top: 14px; }
}
@media (max-width: 640px) {
  th, td { padding: 10px 8px; }
  td .mini-lcd { min-width: 0; margin-right: 0; font-size: 15px; }
  td .badge { font-size: 12.5px; padding: 3px 8px; gap: 5px; }
}

/* Brand header: dark band with the gas safety line folded in */
.site-head { background: var(--band); border-bottom: 0; }
.site-head .logo, .site-head .nav a { color: var(--on-band); }
.site-head .wm b { color: var(--lcd); }
.site-head .nav a:hover, .site-head .nav a[aria-current="page"] { border-bottom-color: var(--lcd); }
.gasbar { background: #11171D; border-bottom: 1px solid #ffffff14; }
.site-head { box-shadow: inset 0 -3px 0 var(--flame); }
.mini-lcd, .lcd { box-shadow: inset 0 0 0 1px #ffffff10; }
@media (max-width: 640px) {
  .site-head .wrap { gap: 8px; padding-block: 10px 0; }
  .site-head .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; font-size: 14.5px; padding-bottom: 10px; scrollbar-width: none; }
  .site-head .nav a { white-space: nowrap; }
  .logo { font-size: 21px; } .logo svg { width: 30px; height: 30px; }
  .eyebrow::before { box-shadow: 0 0 0 2px #FFB64840; }
}
.btn.ghost { box-shadow: none; }

/* Code displays in Inter: tabular figures, tight tracking, heavy weight */
.lcd-glow, .mini-lcd, .steps li::before, .checks b, output { font-family: var(--font-lcd); font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11", "ss01"; }
.lcd-glow { font-weight: 700; letter-spacing: -0.01em; font-size: 50px; }
.lcd.big .lcd-glow { font-size: 58px; }
.mini-lcd { font-weight: 700; font-size: 15px; letter-spacing: 0; }
.tiles .mini-lcd { font-size: 18px; }
.steps li::before { font-weight: 700; font-size: 16px; }
.checks b { font-weight: 800; font-size: 28px; }
output { font-weight: 700; font-size: 20px; }
@media (max-width: 640px) { .lcd-glow { font-size: 42px; } }
