/* How Much Actually? Design tokens and components.
   Built from the How Much Actually? Brand Guidelines v1.0 (Dec 2026) and the "How Much Actually?" design system.
   Navy brings authority, red brings personality, orange is a small signature (decoration only, never text). */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-opsz-var.woff2') format('woff2-variations'), url('../fonts/inter-latin-opsz-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette (raw values: use the semantic tokens below in UI) */
  --brand-navy: #10243C;       /* text, headers, dark sections. White on it 15.68:1 */
  --brand-red: #E53535;        /* signal red: large emphasis (24px+) only, 4.29:1 on white */
  --brand-orange: #F59A23;     /* the question mark's dot: decoration only, never text */
  --brand-paper: #F6F2EA;      /* warm alternate background */
  --brand-action-red: #C9252D; /* buttons and links on light grounds. White on it 5.55:1 */
  --brand-ondark-red: #FF5151; /* highlights on navy, 4.89:1 */
  --brand-slate: #475569;      /* secondary text, 7.58:1 on white */

  /* Semantic tokens */
  --bg: #FFFFFF;
  --bg-alt: var(--brand-paper);
  --action: var(--brand-action-red);
  --on-action: #FFFFFF;
  --link: var(--brand-action-red);
  --accent: var(--brand-red);
  --focus: var(--brand-navy);
  --field-ink: #10243C;        /* inputs are always white, so their text stays navy everywhere */

  /* Older names kept so existing components pick up the brand */
  --navy-950: #0B1A2C;
  --navy-900: var(--brand-navy);
  --navy-700: #2E4560;
  --navy-100: #DCE2EA;
  --navy-50:  #EEF1F5;
  --red-600:  var(--brand-action-red);
  --red-700:  #A81E25;
  --red-50:   #FCECEC;
  --orange-500: var(--brand-orange);
  --orange-700: var(--brand-action-red); /* was dark orange text; orange never carries text in this brand */
  --orange-50:  #FEF4E6;
  /* Status: red is the only signal colour (decided Dec 2026). Good news uses navy, always with a word, never colour alone */
  --green-700:  var(--brand-navy);
  --green-50:   var(--navy-50);

  /* Surfaces */
  --cream: var(--brand-paper);
  --paper: var(--brand-paper);
  --card:  #FFFFFF;
  --line:  #D3D8DF;        /* hairline, navy at 18% on white */
  --line-strong: var(--brand-slate); /* input borders: visible, 7.58:1 */

  /* Text */
  --ink:   var(--brand-navy);
  --muted: var(--brand-slate);

  /* Type */
  --font: 'Inter', Arial, sans-serif;
  --fs-body: 1.0625rem;  /* 17px */

  /* Shape: 4px base, radius 8 for inputs and buttons, 12 for cards */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(16,36,60,.06), 0 6px 20px rgba(16,36,60,.06);
  --shadow-lift: 0 2px 4px rgba(16,36,60,.08), 0 12px 32px rgba(16,36,60,.10);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.5;
  color: var(--ink); background: var(--bg); font-feature-settings: 'tnum' 0; font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); font-weight: 800; line-height: 1.08; font-variation-settings: 'opsz' 32; }
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--orange-500); }

/* Buttons and controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--red-700); color: var(--on-action); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--link); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

label { font-weight: 600; font-size: .9375rem; display: block; margin-bottom: 6px; color: var(--navy-900); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 500; }
input[type=number], input[type=search], input[type=text], select {
  font: inherit; font-size: 1rem; color: var(--field-ink); width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff;
}
input:focus, select:focus { border-color: var(--brand-navy); outline: 2px solid var(--focus); outline-offset: 2px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 64px; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; font-weight: 600; pointer-events: none; }
.field-error { color: var(--red-700); font-size: .85rem; font-weight: 600; margin-top: 4px; min-height: 0; }

/* Segmented control (tariff picker) */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 999px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem; display: inline-flex; align-items: center; }
.segmented input:checked + label { background: var(--navy-900); color: #fff; }
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand img { width: 140px; height: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--navy-900); font-weight: 700; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--navy-50); color: var(--navy-900); }
.header-search { position: relative; width: 240px; }
.header-search input { min-height: 42px; border-radius: 999px; padding-left: 40px; font-size: .95rem; background: var(--paper); }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; min-width: 44px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
/* Stacked logo (v2.0 primary) at its 140px minimum. The desktop nav only shows when it fits on one line:
   search box from 1080px, the menu button below 840px. */
.main-nav a { white-space: nowrap; }
@media (max-width: 1080px) {
  .header-search { display: none; }
}
@media (max-width: 840px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
}

/* Hero */
.hero { background: var(--cream); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: clamp(32px, 7vw, 80px); padding-bottom: clamp(36px, 6vw, 64px); }
.hero h1 .swoosh { position: relative; white-space: nowrap; color: var(--accent); }
.hero h1 .swoosh svg { position: absolute; left: -2%; bottom: -.22em; width: 104%; height: .4em; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 44ch; margin: 18px 0 26px; }
.big-search { display: flex; gap: 8px; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); max-width: 560px; }
.big-search input { border: 0; min-height: 50px; padding-left: 18px; font-size: 1.05rem; background: transparent; }
.big-search input:focus { outline: none; }
.big-search:focus-within { outline: 3px solid rgba(245,124,0,.45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chips span { font-size: .9rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; }
.hero-badge { position: relative; margin: 8px 0 0 auto; width: fit-content; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: 12px 16px; display: flex; gap: 12px; align-items: center; max-width: 280px; }
.hero-badge strong { font-size: 1.5rem; color: var(--navy-900); display: block; line-height: 1.1; }
.hero-badge small { color: var(--muted); font-size: .82rem; font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-badge { position: static; margin: 12px auto 0; }
}
@media (max-width: 480px) {
  .big-search { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .big-search .btn { width: 100%; }
  .hero h1 .swoosh { white-space: normal; }
}

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.tool-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); color: inherit; }
.tool-card h3 { margin: 4px 0 0; font-size: 1.15rem; }
.tool-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.tool-card .link-arrow { margin-top: auto; padding-top: 8px; }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-50); color: var(--navy-900); }
.icon-tile.navy { background: var(--navy-50); }
.icon-tile.red { background: var(--red-50); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--navy-50); color: var(--navy-900); width: fit-content; }
.tag.red { background: var(--red-50); color: var(--red-700); }
.tag.green { background: var(--green-50); color: var(--green-700); }
.tag.orange { background: var(--navy-50); color: var(--navy-900); }

/* Jan 2027 feature */
.feature { background: var(--navy-900); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.feature h2 { color: #fff; }
.feature p { color: rgba(255,255,255,.82); }
.feature .eyebrow { color: #fff; }
.feature .eyebrow::before { background: var(--orange-500); }
.rate-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .95rem; }
.rate-table th, .rate-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.14); }
.rate-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.78); font-weight: 700; }
.rate-table td:last-child, .rate-table th:last-child { color: #fff; }
.rate-table .up { color: var(--brand-ondark-red); font-weight: 700; font-size: .85rem; }
.feature-calc p { color: var(--muted); }
.feature-calc { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); }
.feature-calc h3 { margin-bottom: 4px; }
.feature-note { font-size: .82rem; color: rgba(255,255,255,.78); margin-top: 10px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; margin: 0; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--navy-900); }

.result-panel { background: var(--paper); border-radius: var(--r-sm); padding: 16px; margin-top: 6px; }
.result-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.result-compare .label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result-compare .val { font-size: 1.45rem; font-weight: 800; color: var(--navy-900); }
.result-compare .arrow { color: var(--orange-500); font-size: 1.4rem; font-weight: 800; }
.result-headline { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-weight: 600; }
.result-headline strong { color: var(--red-600); font-size: 1.25rem; }

/* Flagship */
.flagship { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.flagship-side { background: var(--cream); padding: clamp(22px, 4vw, 40px); }
.flagship-main { padding: clamp(22px, 4vw, 40px); }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.appliance-list { display: grid; gap: 8px; margin: 14px 0; }
.appliance { display: grid; grid-template-columns: 1fr 132px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.appliance.off { opacity: .55; }
.appliance .check { min-height: 40px; }
.appliance .meta { font-size: .8rem; color: var(--muted); font-weight: 500; display: block; }
.appliance .input-unit input { min-height: 42px; padding: 6px 54px 6px 10px; }
.appliance .input-unit span { font-size: .78rem; right: 10px; }
.total-box { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; padding: 18px; border-radius: var(--r-md); background: var(--navy-900); color: #fff; margin: 16px 0 12px; }
.total-box .big { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; line-height: 1; }
.total-box small { color: rgba(255,255,255,.78); font-weight: 600; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 120px 1fr 72px; gap: 10px; align-items: center; font-size: .92rem; font-weight: 600; }
.bars .track { display: block; height: 12px; background: var(--navy-50); border-radius: 999px; overflow: hidden; }
.bars .fill { display: block; height: 100%; background: var(--navy-700); border-radius: 999px; transition: width .3s; }
.bars li:first-child .fill { background: var(--red-600); }
.bars .v { text-align: right; }
@media (max-width: 860px) { .flagship { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .bars li { grid-template-columns: 92px 1fr 62px; font-size: .85rem; } .appliance { grid-template-columns: 1fr 112px; } }

/* Which is cheaper */
.vs-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.vs-card:hover { color: inherit; box-shadow: var(--shadow-lift); }
.vs-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; }
.vs-row .side { background: var(--paper); border-radius: var(--r-sm); padding: 12px 8px; font-weight: 700; font-size: .95rem; }
.vs-row .side small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.vs-row .vs { font-weight: 800; color: var(--orange-700); font-size: .85rem; }

/* Categories */
.cat-card { padding: 20px; display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.cat-card:hover { color: inherit; border-color: var(--navy-900); }
.cat-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.cat-card.soon { box-shadow: none; background: transparent; border-style: dashed; }

/* Banner */
.banner { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 12px; }
.banner-copy { padding: clamp(22px, 4vw, 44px); }
.banner img { width: 100%; padding: 16px 16px 0; }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; } .banner img { order: -1; } }

/* Guides */
.guide-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.guide-card:hover { color: inherit; box-shadow: var(--shadow-lift); }
.guide-top { height: 8px; background: var(--orange-500); }
.guide-top.navy { background: var(--navy-900); }
.guide-top.red { background: var(--red-600); }
.guide-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-body h3 { font-size: 1.1rem; margin: 0; }
.guide-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.guide-meta { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: 10px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust strong { display: block; color: var(--navy-900); }
.trust span { color: var(--muted); font-size: .9rem; }
.trust svg { flex: none; color: var(--orange-500); margin-top: 2px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--brand-navy); color: rgba(255,255,255,.82); --focus: #fff; padding: 56px 0 32px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .95rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { width: 220px; margin-bottom: 14px; }
.footer-small { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Calculator page */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.calc-hero { padding: 18px 0 28px; }
.answer-box { background: #fff; border-left: 5px solid var(--orange-500); border-radius: var(--r-sm); padding: 18px 20px; box-shadow: var(--shadow); max-width: 760px; font-size: 1.08rem; }
.answer-box strong { color: var(--navy-900); }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 14px; }
.calc-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.calc-panel { padding: clamp(18px, 3vw, 28px); }
.calc-panel fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc-panel legend { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.calc-panel legend .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.calc-panel .form-row { margin: 10px 0; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .form-row.three { grid-template-columns: 1fr 1fr; } }
.result-card { padding: clamp(18px, 3vw, 26px); position: sticky; top: 96px; }
.verdict { font-size: 1.3rem; font-weight: 800; color: var(--navy-900); line-height: 1.3; margin: 8px 0 16px; }
.verdict .save { color: var(--green-700); }
.cost-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cost-split > div { background: var(--paper); border-radius: var(--r-sm); padding: 14px; }
.cost-split .label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.cost-split .val { font-size: 1.6rem; font-weight: 800; color: var(--navy-900); }
.cost-split .winner { outline: 2px solid var(--green-700); background: var(--green-50); }
.period-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.period-table th, .period-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.period-table th:first-child, .period-table td:first-child { text-align: left; }
.period-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.assume-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.assume-list li { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .95rem; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } .result-card { position: static; } }

.toast:empty { visibility: hidden; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-lift); transition: transform .25s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .hero-ctas, .chips { display: none; } body { background: #fff; } }

/* ---- v0.2 additions ---- */
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310243C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.calc-panel fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 20px; }
.rate-field legend { font-weight: 800; }
.own-rate { margin-top: 12px; max-width: 240px; }
.own-rate.form-row { max-width: none; }
.field-hint { margin: 4px 0 0; }
.calc-h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 22ch; }
.calc-hero.with-photo { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
.calc-photo { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .calc-hero.with-photo { grid-template-columns: 1fr; } .calc-photo { display: none; } }
.hero-photo { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); aspect-ratio: 16 / 10; object-fit: cover; }
.hero-badge { margin-top: -36px; margin-right: 16px; }
@media (max-width: 860px) { .hero-badge { margin: 12px auto 0; } }
.side-photo { width: 100%; border-radius: var(--r-md); margin-top: 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.btn-light { background: #fff; color: var(--navy-900); margin-top: 18px; }
.btn-light:hover { background: var(--orange-50); color: var(--navy-900); }
.tool-card.has-thumb { padding: 0; overflow: hidden; gap: 0; }
.tool-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tool-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-body .link-arrow { margin-top: auto; padding-top: 6px; }
.bars .fill.best { background: var(--green-700); }
.bars .fill.top { background: var(--red-600); }
.bars li:first-child .fill { background: var(--navy-700); }
.bars li:first-child .fill.top { background: var(--red-600); }
.bars li .fill.best { background: var(--green-700); }
[data-bars] li:first-child .fill { background: var(--red-600); }
.appliance-3 { grid-template-columns: 1fr 104px 118px; }
.appliance-3 .check { min-height: 42px; font-size: .92rem; }
.name-input { min-height: 38px !important; padding: 4px 8px !important; font-weight: 600; }
@media (max-width: 480px) { .appliance-3 { grid-template-columns: 1fr 1fr; } .appliance-3 .check { grid-column: 1 / -1; } }
.range { width: 100%; accent-color: var(--action); min-height: 44px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 16px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-900); min-height: 44px; display: flex; align-items: center; }
details.faq p { margin: 4px 0 12px; color: var(--ink); }
.hub-hero { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: center; padding: 18px 0 10px; }
.hub-photo { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 860px) { .hub-hero { grid-template-columns: 1fr; } .hub-photo { max-height: 220px; object-fit: cover; } }
.cat-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.cat-card.soon h3 { color: var(--muted); }
.banner-photo img { padding: 0; height: 100%; object-fit: cover; min-height: 320px; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.verdict .save { color: var(--green-700); }
.prose a { font-weight: 600; }
[hidden] { display: none !important; }
.sticky-result { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-900); color: #fff; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(16,36,60,.18); }
.sticky-result span { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.sticky-result button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--navy-900); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
@media (max-width: 900px) { .sticky-result.on { display: flex; } }
[data-search] { position: relative; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-lift); z-index: 70; overflow: hidden; text-align: left; }
.search-results a { display: block; padding: 13px 16px; text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: .98rem; border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a:focus { background: var(--orange-50); color: var(--navy-900); }
.search-results p { margin: 0; padding: 13px 16px; color: var(--muted); font-size: .95rem; }
.header-search .search-results { min-width: 320px; right: auto; }

/* ---- v0.3: finder, impact labels, hub list, row lists ---- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.finder { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.finder-q { padding: clamp(20px, 4vw, 36px); }
.finder-a { padding: clamp(20px, 4vw, 36px); background: var(--cream); }
.finder fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.finder legend { font-weight: 800; color: var(--navy-900); margin-bottom: 8px; font-size: .98rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { margin: 0; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .93rem; color: var(--navy-900); transition: background .15s, border-color .15s; }
.chip-opt input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip-opt input:checked + span::before { content: '✓'; margin-right: 6px; font-weight: 800; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; }
.finder-a h3 { font-size: 1.15rem; margin: 0 0 12px; }
.picks { display: grid; gap: 10px; }
.pick { display: grid; grid-template-columns: 34px 1fr 20px; gap: 12px; align-items: center; padding: 14px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.pick-n { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pick:first-child .pick-n { background: var(--red-600); }
.pick-body { display: flex; flex-direction: column; gap: 3px; }
.pick-body strong { color: var(--navy-900); line-height: 1.3; }
.pick-why { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.pick-go { font-weight: 800; color: var(--orange-700); }
.impact { display: inline-block; width: fit-content; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.impact-big { background: var(--red-50); color: var(--red-700); }
.impact-medium { background: var(--navy-50); color: var(--navy-900); }
.impact-small { background: var(--green-50); color: var(--green-700); }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }
.topic-row { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy-900); font-weight: 700; box-shadow: var(--shadow); }
.topic span { background: var(--navy-50); border-radius: 999px; padding: 2px 9px; font-size: .8rem; }
.topic:hover { border-color: var(--navy-900); color: var(--navy-900); }
.hub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin: 32px 0 20px; }
@media (max-width: 860px) { .hub-list { grid-template-columns: 1fr; } }
.hub-group h2 { font-size: 1.25rem; margin: 18px 0 10px; scroll-margin-top: 90px; }
.hub-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hub-group a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.hub-group a:hover { border-color: var(--navy-900); color: var(--ink); }
.hub-group strong { color: var(--navy-900); }
.hub-group a > span:not(.impact) { font-size: .9rem; color: var(--muted); }
.hub-group li.is-pick a { border: 2px solid var(--orange-500); background: var(--orange-50); }
.hub-group li.is-pick a::after { content: 'One of your top picks'; font-size: .78rem; font-weight: 800; color: var(--orange-700); }
.row-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.row-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.row-item.off { opacity: .55; }
.row-item .check { min-height: 40px; font-size: .92rem; }
.row-name { font-weight: 600; font-size: .92rem; }
.row-fields { display: grid; grid-template-columns: 96px 92px 96px; gap: 8px; }
.row-fields.two { grid-template-columns: 96px 100px; }
.row-fields .input-unit input { min-height: 42px; padding: 6px 36px 6px 10px; }
.row-fields .input-unit span { font-size: .76rem; right: 8px; }
@media (max-width: 560px) { .row-item { grid-template-columns: 1fr; } .row-fields { grid-template-columns: 1fr 1fr 1fr; } .row-fields.two { grid-template-columns: 1fr 1fr; } }
.finder-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.finder-jump { display: none; }
.finder-a { scroll-margin-top: 90px; }
.finder-a:focus { outline: none; }
@media (max-width: 900px) { .finder-jump { display: inline-flex; width: 100%; } .chip-opt span { min-height: 40px; padding: 0 13px; font-size: .9rem; } }
.stale-banner { background: var(--red-50); color: var(--red-700); border-bottom: 1px solid #F2C3C5; padding: 12px var(--gutter); font-weight: 600; font-size: .95rem; text-align: center; }
.footer-licence { font-size: .8rem; color: rgba(255,255,255,.72); margin: 14px 0 0; }
.footer-licence a { font-size: .8rem; display: inline; padding: 0; text-decoration: underline; }
.draft-note { background: var(--orange-50); border: 1px dashed var(--orange-500); border-radius: var(--r-sm); padding: 12px 16px; font-size: .92rem; margin: 0 0 20px; }
.legal h2 { font-size: 1.35rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.legal dt { font-weight: 700; color: var(--navy-900); }
.legal dd { margin: 0; }
.ph { background: #FFF3BF; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal dd, .legal td, .legal p { overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.area-bar { background: var(--navy-50); border-bottom: 1px solid var(--navy-100); }
.area-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
.area-label { font-weight: 800; font-size: .88rem; color: var(--navy-900); }
.area-bar select { width: auto; min-height: 40px; padding: 6px 36px 6px 12px; font-size: .92rem; font-weight: 600; border-radius: 999px; background-color: #fff; }
.area-note { font-size: .82rem; color: var(--muted); flex-basis: 100%; }
@media (min-width: 900px) { .area-note { flex-basis: auto; margin-left: 6px; } }
@media (max-width: 600px) { .area-label { display: none; } .area-bar select { flex: 1 1 0; min-width: 0; text-overflow: ellipsis; } .area-note.quiet { display: none; } }

.guide-photo { width: 100%; height: auto; border-radius: 14px; margin: 20px 0 8px; }
.guide .period-table { margin: 14px 0; }

/* Seasonal decorations (Christmas pages only, switched on by site.js from 1 Dec to 6 Jan). Purely decorative. */
.is-festive .calc-hero, .is-festive .guide { position: relative; padding-top: 64px; }
.is-festive .calc-hero::before, .is-festive .guide::before, .is-festive .calc-hero::after, .is-festive .guide::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none;
  background: url(../img/festive-garland.svg) repeat-x left top / 240px 64px;
}
.is-festive .calc-hero::after, .is-festive .guide::after { background-image: url(../img/festive-glow.svg); opacity: .5; animation: hma-twinkle 3.2s ease-in-out infinite alternate; }
.is-festive .calc-hero > div:first-child { background: url(../img/festive-snow.svg) no-repeat right 8px top 10px / 300px auto; }
.is-festive [data-calc] .result-card { overflow: visible; }
.is-festive [data-calc] .result-card::before {
  content: ""; position: absolute; top: -26px; right: 14px; width: 72px; height: 55px; pointer-events: none;
  background: url(../img/festive-holly.svg) no-repeat center / contain;
}
.is-festive [data-calc] .result-card { position: relative; }
@media (min-width: 901px) { .is-festive [data-calc] .result-card { position: sticky; } }
@keyframes hma-twinkle { from { opacity: .15; } to { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .is-festive .calc-hero::after, .is-festive .guide::after { animation: none; opacity: .4; } }
@media print { .is-festive .calc-hero::before, .is-festive .calc-hero::after, .is-festive .guide::before, .is-festive .guide::after, .is-festive [data-calc] .result-card::before { display: none; } }
.is-festive .guide::before, .is-festive .guide::after { left: var(--gutter); right: var(--gutter); }

/* Result actions: PDF and share */
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #E5E0D6); }
.result-actions .btn { flex: 1 1 140px; justify-content: center; }
.btn-sm { padding: 9px 14px; font-size: .92rem; min-height: 42px; }
@media print { .result-actions, .area-bar, .site-header, .site-footer, .sticky-result { display: none !important; } }

/* ---------- v0.6: My home, area hubs, subscriptions, search ---------- */
.nav-home { display: inline-flex; align-items: center; gap: 6px; position: relative; border: 1.5px solid var(--navy-900); margin-left: 6px; }
.nav-home svg { flex: none; }
.nav-home-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }
@media (max-width: 1080px) { .main-nav a { padding: 10px 11px; font-size: .92rem; } }
@media (max-width: 840px) { .nav-home { margin: 8px 0 0; justify-content: center; } }
.search-results a strong { display: block; }
.search-results a small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; margin-top: 2px; line-height: 1.35; }
.search-results p a { display: inline; padding: 0; border: 0; text-decoration: underline; }
.soon { padding: 20px 24px; margin-top: 28px; background: var(--navy-50); border: 0; box-shadow: none; }
.soon h2 { font-size: 1.05rem; margin: 0 0 6px; }
.soon p { margin: 0; color: var(--muted); }
.side-h { font-size: 1rem; margin: 22px 0 8px; }
.reminders { display: flex; flex-wrap: wrap; gap: 8px; }
.reminders .btn { flex: 1 1 200px; }
.privacy-pill { display: flex; gap: 8px; align-items: flex-start; max-width: 60ch; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: .92rem; }
.privacy-pill a { color: var(--green-700); }
.privacy-pill svg { flex: none; margin-top: 3px; }
.myhome-layout { margin-top: 24px; }
.myhome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.myhome-links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.myhome-links a { display: block; padding: 11px 14px; border-radius: 10px; background: var(--paper); font-weight: 700; text-decoration: none; color: var(--navy-900); }
.myhome-links a:hover { background: var(--orange-50); }
input[type=date] { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
/* Subscriptions */
.subs-list { display: grid; gap: 8px; }
.sub-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: 8px; align-items: center; }
.sub-price { position: relative; }
.sub-price .pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.sub-price input { padding-left: 26px; }
.sub-row select { min-height: 48px; width: 100%; }
.sub-row select.use-no { border-color: var(--red-600); border-width: 2px; color: var(--red-700); font-weight: 700; }
.sub-row select.use-rarely { border-color: var(--brand-navy); border-width: 2px; color: var(--field-ink); font-weight: 700; }
.sub-del { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.sub-del:hover { border-color: var(--red-600); color: var(--red-600); }
.subs-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.save-row { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.bars li.cut .fill { background: var(--red-600); }
.bars li em { font-style: normal; font-size: .78rem; color: var(--red-700); font-weight: 700; display: block; }
.bars li .v { white-space: nowrap; }
@media (max-width: 640px) {
  .sub-row { grid-template-columns: 1fr 1fr 40px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .sub-name { grid-column: 1 / 3; grid-row: 1; }
  .sub-del { grid-column: 3; grid-row: 1; }
  .sub-price { grid-column: 1 / 2; grid-row: 2; }
  .sub-every { grid-column: 2 / 4; grid-row: 2; }
  .sub-use { grid-column: 1 / 4; grid-row: 3; }
}
.home-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-md, 16px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.home-strip p { margin: 0; flex: 1; }
.home-strip-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-900); }
.home-strip.saved .home-strip-icon { background: var(--green-50); color: var(--green-700); }
.home-strip .btn { flex: none; }
@media (max-width: 700px) { .home-strip { flex-wrap: wrap; } .home-strip .btn { width: 100%; } }
.area-card { padding: 22px; display: flex; flex-direction: column; }
.area-card h3 { margin: 0; font-size: 1.25rem; }
.area-card h3 a { text-decoration: none; color: var(--navy-900); }
.area-count { margin: 4px 0 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.area-card ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 2px; flex: 1; }
.area-card li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.area-card li a:hover { color: var(--red-700); }
.area-card li.soon-item { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: .95rem; font-weight: 600; }
.area-card li.soon-item span { display: inline-block; margin-left: 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-700); }
.sub-price input { padding-right: 10px; }
.explain { margin-top: 14px; font-size: .94rem; max-width: 62ch; }
.explain summary { cursor: pointer; font-weight: 700; color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; }
.explain p { margin: 10px 0 0; color: var(--ink); }
/* "Prices for" setting inside each energy calculator */
.price-set { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--navy-50); border: 1px solid var(--navy-100); font-size: .95rem; }
.price-set-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-set-line strong { color: var(--navy-900); }
.price-set .link-btn { font-weight: 800; color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 6px 2px; cursor: pointer; font: inherit; font-weight: 800; min-height: 32px; }
.price-set-body { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--navy-100); }
.price-set-body .form-row { margin: 10px 0; }
.price-set-note { margin: 8px 0 0; font-size: .9rem; color: var(--ink); }
.price-set-note a { font-weight: 700; }
.feature-calc .price-set { margin-top: 10px; }
@media print { .price-set-body, .price-set .link-btn { display: none !important; } }
.period-table tr.total-row td { font-weight: 800; border-top: 2px solid var(--line-strong); }
.result-note { margin: 14px 0 0; font-size: .94rem; color: var(--ink); }
.result-note:empty { display: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; }
.check-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--orange-50); color: var(--ink); font-size: .92rem; border-left: 3px solid var(--orange-500); }
.check-note:empty { display: none; }

/* ---------- Pass 1: design polish ---------- */
.big-search button { white-space: nowrap; }
.footer-logo { width: 190px; height: auto; background: none; }
.result-card .tag, .feature-calc .tag { text-transform: none; letter-spacing: 0; font-size: .8rem; }
/* Rate pickers: equal columns that wrap neatly on a phone */
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); border-radius: 14px; width: 100%; max-width: 460px; }
.segmented label { justify-content: center; text-align: center; border-radius: 10px; line-height: 1.25; padding: 8px 10px; font-weight: 600; }
.segmented label span { white-space: nowrap; }
/* Area cards with a coloured accent */
.area-card { border-top: 4px solid var(--navy-900); }
.area-card.area-home-energy { border-top-color: var(--orange-500); }
.area-card.area-money { border-top-color: var(--brand-navy); }
.area-card.area-car { border-top-color: var(--red-600); }
.area-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.area-head .area-count { margin: 2px 0 0; }
.area-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-700); }
.area-money .area-icon { background: var(--green-50); color: var(--green-700); }
.area-car .area-icon { background: var(--red-50); color: var(--red-700); }
.area-card ul { margin-top: 12px; }
/* Tighter vertical rhythm on the homepage */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.segmented label { display: flex; flex-direction: column; gap: 1px; }
.segmented .seg-t { font-weight: 700; }
.segmented .seg-p { font-size: .82rem; font-weight: 600; opacity: .85; }
@media (max-width: 600px) { .hero-photo { aspect-ratio: 2 / 1; } .hero { padding-bottom: 32px; } }

/* ---------- Pass 2: usability and accessibility ---------- */
/* Unticked rows stay readable (contrast) but look set aside */
.appliance.off, .row-item.off { opacity: 1; background: var(--paper); border-style: dashed; }
.appliance.off .input-unit input, .row-item.off .input-unit input { background: var(--paper); }
.reset-btn { flex-basis: 100%; background: none; border: 0; padding: 6px 0 0; font: inherit; font-size: .9rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reset-btn:hover { color: var(--navy-900); }
.nav-search { display: none; }
@media (max-width: 840px) { .main-nav .nav-search { display: block; width: 100%; margin: 4px 0 10px; } .main-nav .nav-search .search-results { min-width: 0; left: 0; right: 0; } }
.estimate-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); font-size: .95rem; line-height: 1.5; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.region-table tbody th { text-align: left; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
.period-table tr.total-row th { font-weight: 800; border-top: 2px solid var(--line-strong); }

/* ---- Brand v1.0: the cost result is a navy panel (Brand Guidelines, ResultCard) ----
   Tokens are re-scoped inside the panel so every result component flips to its on-navy version. */
.result-card {
  background: var(--brand-navy); color: #fff; border-color: var(--brand-navy);
  --ink: #FFFFFF; --muted: rgba(255,255,255,.78); --navy-900: #FFFFFF; --navy-700: #A9B8CC;
  --navy-50: rgba(255,255,255,.10); --navy-100: rgba(255,255,255,.18);
  --line: rgba(255,255,255,.24); --line-strong: rgba(255,255,255,.6);
  --paper: rgba(255,255,255,.08); --bg-alt: rgba(255,255,255,.08);
  --red-600: var(--brand-ondark-red); --red-700: #FF8C8C; --red-50: rgba(255,81,81,.16);
  --green-700: #FFFFFF; --green-50: rgba(255,255,255,.14);
  --orange-50: rgba(245,154,35,.16); --orange-700: #FFB766;
  --link: #FFFFFF; --focus: #FFFFFF; /* v2.0: on navy, links go white. On-dark red stays only for red status (owner exception, 6 Dec 2026) */
}
.result-card a { color: var(--link); }
.result-card .btn-primary { background: var(--action); color: #fff; }
.result-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.result-card .btn-ghost:hover { background: #fff; color: var(--brand-navy); }
.result-card .cost-split .val, .result-card .verdict { font-variation-settings: 'opsz' 32; }
.cost-split .val { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.result-card .bars .track { background: rgba(255,255,255,.14); }
.result-card .reset-btn { color: rgba(255,255,255,.85); }
.result-card .reset-btn:hover { color: #fff; }
.result-card .tag:not(.red):not(.green):not(.orange) { background: rgba(255,255,255,.12); color: #fff; }

/* Logo in header and footer: supplied SVG artwork only */
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.footer-logo { width: 200px; height: auto; margin-bottom: 12px; }
.footer-tagline { font-weight: 600; color: #fff; margin: 0 0 8px; }
/* On the lighter tints inside the navy panel, on-dark red drops below 4.5:1, so links there are white (still underlined) */
.result-card .myhome-links a, .result-card .result-panel a, .result-card .check-note a, .result-card .estimate-note a { color: #fff; }
