@font-face{font-family:Roboto;src:url("assets/Roboto-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url("assets/Roboto-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url("assets/Roboto-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}

:root{
  --ink:#0f2433;
  --ink-soft:#455a6b;
  --muted:#64748b;
  --bg:#f2f7fb;
  --card:#fff;
  --line:#dce5ec;
  --line-strong:#c7d3dc;
  --teal:#1cb963;
  --teal-dark:#0f9f52;
  --teal-soft:#e7f9ee;
  --blue:#5e97c8;
  --pink:#d05179;
  --amber:#b7791f;
  --amber-soft:#fff8df;
  --danger:#c24141;
  --shadow:0 1px 3px rgba(15,36,51,.08),0 12px 28px rgba(15,36,51,.045);
  --radius:8px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Roboto,Arial,sans-serif;font-size:15px;line-height:1.5}
.error-page{width:min(560px,calc(100% - 32px));margin:12vh auto;padding:36px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);text-align:center}
.error-page img{display:block;margin:0 auto 28px}
.error-page h1{margin:0 0 8px}
.error-page p{margin:0 0 20px;color:var(--muted)}
.error-page a{font-weight:700}
button,input,select,textarea{font:inherit}
a{color:#0f766e;text-decoration:none}
a:hover{text-decoration:underline}

.topbar{position:sticky;top:0;z-index:40;height:64px;display:flex;align-items:center;gap:28px;padding:0 28px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.brand{display:flex;align-items:center;min-width:178px}
.brand img{display:block;width:151px;height:auto;max-height:42px}

.page-shell{max-width:1500px;margin:0 auto;padding:34px 30px 110px;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}
main{min-width:0}
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.hero h1{margin:0 0 6px;font-size:30px;letter-spacing:-.02em;line-height:1.15}
.hero p{margin:0;color:var(--ink-soft);font-size:16px}
.hero .eyebrow{margin:0 0 8px;color:#0f8c4a;font-size:12px;font-weight:700;letter-spacing:.12em}
.status-chip{display:flex;align-items:center;gap:8px;padding:7px 11px;background:#fff;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap}
.status-chip span{width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(28,185,99,.12)}

.section-card{margin:18px 0;padding:26px 28px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.section-heading{display:flex;gap:16px;align-items:flex-start;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #edf2f5}
.section-heading .step{display:grid;place-items:center;width:42px;height:32px;border-radius:6px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;letter-spacing:.05em;flex:0 0 auto}
.section-heading h2{margin:-2px 0 2px;font-size:21px;line-height:1.25}
.section-heading p{margin:0;color:var(--muted)}

.field-grid{display:grid;gap:18px 20px}
.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.energy-basics{margin-bottom:22px}
.energy-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 22px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#f8fbfd}
.energy-price-column{display:grid;gap:16px;min-width:0}
.energy-options{margin-top:0}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field>span:first-child{color:#3d5262;font-size:13px;font-weight:500}
.field.full{margin-top:22px}
input,select,textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}
textarea{resize:vertical;min-height:96px}
input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(28,185,99,.13)}
input:invalid{border-color:#df6b6b}
.selfuse-only{transition:opacity .18s,filter .18s,background-color .18s}
.selfuse-only.is-disabled{opacity:.45;filter:grayscale(.7)}
.field.selfuse-only.is-disabled{padding:9px;border-radius:7px;background:#e9edf0}
.selfuse-only.is-disabled input,.selfuse-only.is-disabled select{background:#dde2e6;color:#6b7780;cursor:not-allowed}
.info-details.selfuse-only.is-disabled{background:#e9edf0;pointer-events:none}
.input-unit{position:relative;display:block}
.input-unit input{padding-right:74px}
.input-unit em{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px;font-style:normal;pointer-events:none}

.notice{padding:15px 17px;border-radius:7px;border:1px solid var(--line);font-size:13px;color:#3e5362}
.notice p{margin:7px 0 0}
.notice ul{margin:8px 0;padding-left:20px}
.notice-neutral{background:#f8fafc}
.notice-info{margin-bottom:22px;background:#eef7ff;border-color:#cbe2f3}
.notice-green{background:var(--teal-soft);border-color:#bcebd0}
.funding-period-info{margin:20px 0 0}
.selected-funding-period{padding:9px 11px;border-radius:6px;background:#fff;border:1px solid #cbe2f3;color:#24445d;font-weight:700}
.bonus-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}
.bonus-timeline span{display:flex;flex-direction:column;gap:3px;padding:9px 10px;border:1px solid #cbe2f3;border-radius:6px;background:#fff}
.bonus-timeline b{color:#456174;font-size:11px;font-weight:500;line-height:1.3}
.bonus-timeline em{color:#0f766e;font-size:17px;font-style:normal;font-weight:700}
.family-note{margin-top:18px}
.conversion-note{margin:0 0 22px}
.heating-efficiency-grid{margin-bottom:18px}
.efficiency-note{margin-bottom:22px}
.efficiency-note ul{margin-bottom:0}
.selected-efficiency-profile{padding:9px 11px;border:1px solid #cbe2f3;border-radius:6px;background:#fff;color:#24445d;font-weight:700}
.info-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.biooil-note{margin-top:16px}
.inline-warning{margin:12px 0 0;color:#92600f;font-size:13px}
.inline-warning:before{content:"!";display:inline-grid;place-items:center;width:18px;height:18px;margin-right:7px;border-radius:50%;background:#fff1bd;color:#8b5b0d;font-weight:700}

.info-details{margin:22px 0;border:1px solid var(--line);border-radius:7px;background:#fafcfd}
.info-details summary{padding:14px 16px;cursor:pointer;font-weight:500;color:#294154}
.info-details[open] summary{border-bottom:1px solid var(--line)}
.info-details p{margin:0;padding:14px 16px;color:#516675;font-size:13px}
.info-details .source-links{padding-top:0;display:flex;gap:14px;flex-wrap:wrap}

.funding-panel{width:80%;margin:22px auto 0;border:1px solid #bcebd0;border-radius:8px;overflow:hidden;background:#fbfffc;font-size:12px}
.funding-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:var(--teal-soft);border-bottom:1px solid #cdeedb}
.funding-title span{display:block;color:#3b6850;font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.04em}
.funding-title strong{display:block;margin-top:2px;color:#0c7340;font-size:22px;line-height:1.2}
.funding-title .rate-badge{padding:5px 8px;background:#fff;border:1px solid #a8dfc0;border-radius:999px;color:#0c7340;font-size:11px;font-weight:700;white-space:nowrap}
.breakdown{margin:0;padding:6px 16px}
.breakdown div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:7px 0;border-bottom:1px solid #e8f1eb}
.breakdown div:last-child{border-bottom:0}
.breakdown dt{color:#405669}
.breakdown dt small{margin-left:6px;color:#6a7e8c}
.breakdown dd{margin:0;font-weight:700;white-space:nowrap}
.calculation-note{margin:0;padding:9px 16px 13px;color:#617260;font-size:11px}
.subsection{margin-top:26px;padding-top:22px;border-top:1px solid #edf2f5}
.subsection h3{margin:0 0 15px;font-size:16px}

.result-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.result-kpis>div{padding:15px 16px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}
.result-kpis span{display:block;color:var(--muted);font-size:12px}
.result-kpis strong{display:block;margin-top:4px;font-size:20px}
.chart-wrap{padding:16px 16px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
#costChart{display:block;width:100%;height:390px}
.chart-legend{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:12px}
.chart-legend span:before{content:"";display:inline-block;width:18px;height:3px;margin-right:7px;vertical-align:middle;border-radius:3px;background:var(--teal)}
.chart-legend .legend-fossil:before{background:var(--pink)}
.chart-legend .legend-payback:before{height:0;border-top:2px dashed var(--blue);background:transparent}

.amortisation-details{margin-top:20px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.amortisation-details summary{padding:13px 16px;background:#f7fafc;color:#3d5262;font-size:13px;font-weight:700;cursor:pointer}
.amortisation-details[open] summary{border-bottom:1px solid var(--line)}
.amortisation-details .table-wrap{margin-top:0;border:0;border-radius:0}

.table-wrap{margin-top:20px;overflow:auto;border:1px solid var(--line);border-radius:8px}
table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
th,td{padding:11px 13px;text-align:right;border-bottom:1px solid #edf2f5}
th:first-child,td:first-child{text-align:left}
thead th{position:sticky;top:0;background:#f7fafc;color:#465b6b;font-size:12px;font-weight:700}
tbody tr:last-child td{border-bottom:0}
tbody tr:nth-child(even){background:#fbfcfd}
.positive{color:#0c8a48;font-weight:700}
.negative{color:var(--danger)}
.method-note{margin-top:20px;padding:15px 17px;border-left:3px solid var(--blue);background:#f5f9fc;color:#516675;font-size:13px}
.method-note p{margin:5px 0 0}

.sources h2{margin:0 0 12px;font-size:18px}
.sources ul{margin:0;padding-left:20px}
.sources li{margin:6px 0}
.sources p{margin:14px 0 0;color:var(--muted);font-size:12px}

.live-panel{position:sticky;top:88px;padding:22px;background:#e5edf4;border:1px solid #bfd0dd;border-radius:var(--radius);box-shadow:0 2px 5px rgba(15,36,51,.10),0 16px 34px rgba(15,36,51,.09)}
.live-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:15px;border-bottom:1px solid var(--line)}
.live-head span:first-child{color:#0f8c4a;font-size:10px;font-weight:700;letter-spacing:.12em}
.live-head h2{margin:2px 0 0;font-size:20px}
.pulse-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 5px rgba(28,185,99,.12)}
.live-primary{padding:20px 0;border-bottom:1px solid var(--line)}
.live-primary span{display:block;color:var(--muted);font-size:12px}
.live-primary strong{display:block;margin-top:6px;font-size:28px;line-height:1.15;color:#0c7340}
.live-list{margin:0;padding:10px 0}
.live-list div{display:flex;justify-content:space-between;gap:10px;padding:9px 0}
.live-list dt{color:#526676;font-size:13px}
.live-list dd{margin:0;font-weight:700;text-align:right}
.live-foot{margin:5px 0 0;padding-top:13px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}

.pdf-button{position:fixed;right:26px;bottom:24px;z-index:50;display:flex;align-items:center;gap:9px;padding:13px 18px;border:0;border-radius:7px;background:var(--teal);color:#fff;font-weight:700;box-shadow:0 10px 26px rgba(20,170,85,.3);cursor:pointer}
.pdf-button:hover{background:var(--teal-dark)}
.pdf-button:focus-visible{outline:3px solid rgba(28,185,99,.28);outline-offset:3px}
.pdf-button span{font-size:19px;line-height:1}

.pdf-dialog{width:min(520px,calc(100vw - 30px));padding:0;border:0;border-radius:10px;box-shadow:0 25px 70px rgba(15,36,51,.25)}
.pdf-dialog::backdrop{background:rgba(15,36,51,.46);backdrop-filter:blur(2px)}
.pdf-dialog form{padding:24px}
.dialog-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}
.dialog-head span{color:#0f8c4a;font-size:10px;font-weight:700;letter-spacing:.12em}
.dialog-head h2{margin:2px 0 0;font-size:21px}
.dialog-head .icon-close{width:34px;height:34px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#607282;font-size:24px;line-height:1;cursor:pointer}
.pdf-dialog p{color:var(--muted);font-size:13px}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.button-primary,.button-secondary{padding:10px 14px;border-radius:6px;font-weight:700;cursor:pointer}
.button-primary{border:1px solid var(--teal-dark);background:var(--teal);color:#fff}
.button-secondary{border:1px solid var(--line-strong);background:#fff;color:#405669}
.toast{position:fixed;left:50%;bottom:28px;z-index:80;transform:translate(-50%,25px);padding:11px 15px;border-radius:7px;background:var(--ink);color:#fff;font-size:13px;opacity:0;pointer-events:none;transition:.2s}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:1150px){
  .page-shell{grid-template-columns:minmax(0,1fr) 290px;padding-left:20px;padding-right:20px}
  .field-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:840px){
  .topbar{padding:0 16px;gap:16px}
  .brand{min-width:auto}.brand img{width:132px}
  .page-shell{display:flex;flex-direction:column;padding:22px 14px 110px}
  main{width:100%;display:contents}
  .hero,.notice-neutral,.section-card{order:2;width:100%}
  .live-panel{order:1;top:72px;z-index:20;width:100%;padding:14px 16px}
  .live-head{display:none}
  .live-primary{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px}
  .live-primary strong{font-size:20px}
  .live-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:9px 0 0}
  .live-list div{display:block;padding:0}
  .live-list dd{text-align:left}
  .live-foot{display:none}
  .hero{align-items:flex-start}.hero h1{font-size:25px}.status-chip{display:none}
  .section-card{padding:22px 18px}
  .info-columns,.result-kpis{grid-template-columns:1fr}
  .energy-price-grid{grid-template-columns:1fr}
  .bonus-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .funding-panel{width:100%}
}

@media (max-width:590px){
  .field-grid.two,.field-grid.three{grid-template-columns:1fr}
  .section-heading{gap:12px}.section-heading h2{font-size:19px}
  .funding-title{align-items:flex-start}.funding-title strong{font-size:20px}
  .breakdown div{align-items:flex-start}.breakdown dt{max-width:65%}
  .live-list{grid-template-columns:repeat(2,1fr)}
  .live-list div:last-child{display:none}
  #costChart{height:310px}
  .bonus-timeline{grid-template-columns:1fr}
  .pdf-button{right:14px;bottom:14px;padding:12px 14px}
}

@media print{
  .topbar,.live-panel,.pdf-button,.notice-neutral,.sources{display:none!important}
  body,.page-shell{background:#fff}
  .page-shell{display:block;max-width:none;padding:0}
  .section-card{box-shadow:none;break-inside:avoid}
}
