:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-alt: #f8fbff;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #5d6b7f;
  --border: #e2e8f0;
  --border-soft: #dbe3ee;
  --border-input: #cbd5e1;

  --primary: #2d6a4f;
  --primary-text: #2d6a4f;
  --primary-bg: #2d6a4f;
  --primary-hover: #245741;
  --primary-soft: #eefaf4;
  --primary-border: #b6e2cd;
  --primary-border-soft: #d3f0e2;

  --success: #15803d;
  --success-soft: #ecfdf5;

  --warning: #b45309;
  --warning-soft: #fff7ed;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --max-width: 1120px;

  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(226, 232, 240, 0.9);
  --header-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  --brand-shadow: 0 10px 20px rgba(45, 106, 79, 0.2);

  --card-hover-border: #cbd5e1;
  --focus-ring: #7fc8a5;
  --input-focus-border: #7fc8a5;
  --input-focus-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);

  --footer-bg: #f9fafb;
  --footer-border: #e6e8ec;
  --footer-text: #4b5563;
  --footer-link: #374151;
  --footer-meta: #6b7280;

  --overlay-overlay-bg: rgba(15, 23, 42, 0.45);
  --overlay-placeholder: #94a3b8;

  --profile-chip-text: #1b4332;
  --profile-chip-bg: #eefaf4;
  --profile-chip-border: #b6e2cd;
  --profile-chip-hover-bg: #d3f0e2;
  --profile-chip-clear: #64748b;
  --profile-chip-clear-hover-bg: #b6e2cd;
  --profile-chip-clear-hover: #14342a;

  --profile-filled-border: #b6e2cd;
  --profile-filled-bg: #f2fbf7;
  --profile-badge-bg: #eefaf4;
  --profile-badge-text: #2d6a4f;

  --nav-cta-subtle-bg: #e4f5ec;
  --nav-cta-subtle-hover: #cdeada;
  --nav-cta-subtle-text: #2d6a4f;

  --pricing-chip-text: #065f46;
  --pricing-chip-bg: #ecfdf5;
  --pricing-chip-border: #a7f3d0;
  --pricing-chip-hover-bg: #d1fae5;
  --pricing-chip-clear: #64748b;
  --pricing-chip-clear-hover-bg: #a7f3d0;
  --pricing-chip-clear-hover: #064e3b;
}

.dark {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-soft: #283548;
  --surface-alt: #162032;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #9aa9bd;
  --border: #334155;
  --border-soft: #2d3c50;
  --border-input: #475569;

  --primary: #52b788;
  --primary-text: #74c69d;
  --primary-bg: #2d6a4f;
  --primary-hover: #74c69d;
  --primary-soft: #16362a;
  --primary-border: #1b4332;
  --primary-border-soft: #16362a;

  --success: #22c55e;
  --success-soft: #14332a;

  --warning: #f59e0b;
  --warning-soft: #332810;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);

  --header-bg: rgba(15, 23, 42, 0.92);
  --header-border: rgba(51, 65, 85, 0.9);
  --header-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --brand-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);

  --card-hover-border: #475569;
  --focus-ring: #2d6a4f;
  --input-focus-border: #52b788;
  --input-focus-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);

  --footer-bg: var(--bg);
  --footer-border: #334155;
  --footer-text: #94a3b8;
  --footer-link: #94a3b8;
  --footer-meta: #9aa9bd;

  --overlay-overlay-bg: rgba(0, 0, 0, 0.55);
  --overlay-placeholder: #64748b;

  --profile-chip-text: #7fc8a5;
  --profile-chip-bg: #16362a;
  --profile-chip-border: #1b4332;
  --profile-chip-hover-bg: #1e3a6f;
  --profile-chip-clear: #94a3b8;
  --profile-chip-clear-hover-bg: #1b4332;
  --profile-chip-clear-hover: #e0f2fe;

  --profile-filled-border: #1b4332;
  --profile-filled-bg: #0e2a20;
  --profile-badge-bg: #16362a;
  --profile-badge-text: #74c69d;

  --nav-cta-subtle-bg: #16362a;
  --nav-cta-subtle-hover: #1e3a6f;
  --nav-cta-subtle-text: #74c69d;

  --pricing-chip-text: #6ee7b7;
  --pricing-chip-bg: #064e3b;
  --pricing-chip-border: #065f46;
  --pricing-chip-hover-bg: #065f46;
  --pricing-chip-clear: #94a3b8;
  --pricing-chip-clear-hover-bg: #065f46;
  --pricing-chip-clear-hover: #a7f3d0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ICON SYSTEM */

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 36px;
  height: 36px;
}

.button .icon {
  margin-right: 8px;
}

a {
  color: var(--primary-text);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 2.9rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5rem;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}

.site-header-inner {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.site-brand:hover {
  color: var(--text);
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2d6a4f 0%, #245741 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--brand-shadow);
}

.site-brand-text {
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary-text);
  background: var(--primary-soft);
  border-color: var(--primary-border-soft);
}

/* Hero */

.hero {
  padding: 72px 0 52px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.hero-stat {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.hero-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-stat-label {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary-bg);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.button-secondary {
  background: var(--surface);
  color: var(--primary-text);
  border-color: var(--primary-border);
}

.button-secondary:hover {
  background: var(--primary-soft);
}

/* Page header */

.page-header {
  padding: 72px 0 44px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.08rem;
  max-width: 760px;
  margin-bottom: 16px;
}

/* The lead can run to two or three paragraphs; only the last one sits flush
   against the section below. Without this they ran together as one block. */
.page-header p:last-of-type,
.page-header .byline {
  margin-bottom: 0;
}

.page-header .byline {
  margin-top: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary-text);
}

/* Sections */

.section {
  padding: 44px 0;
}

.section-header {
  margin-bottom: 22px;
}

.section-header p {
  max-width: 760px;
  margin-bottom: 0;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-hover-border);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 2px;
}

.card-top .icon {
  width: 22px;
  height: 22px;
  color: var(--primary-text);
}

.card h3 {
  margin: 0;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary-text);
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-link-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-link-card:hover {
  color: inherit;
}

.card-link-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Panels */

.info-panel,
.highlight-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.info-panel {
  border: 1px solid var(--border);
}

.highlight-panel {
  border: 1px solid var(--primary-border-soft);
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary-soft) 100%);
}

.info-panel ul,
.highlight-panel ul,
.info-panel ol,
.highlight-panel ol {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
  margin-bottom: 0;
}

.info-panel li,
.highlight-panel li {
  margin-bottom: 12px;
}

.info-panel li:last-child,
.highlight-panel li:last-child {
  margin-bottom: 0;
}

.info-panel li a,
.highlight-panel li a,
.info-panel > a,
.highlight-panel > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.info-panel li a::after,
.highlight-panel li a::after,
.info-panel > a::after,
.highlight-panel > a::after {
  content: "›";
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--primary-text);
}

.info-panel li a:hover,
.highlight-panel li a:hover,
.info-panel > a:hover,
.highlight-panel > a:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-text);
  box-shadow: var(--shadow-md);
}

.panel-link-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
  align-self: start;
}

label {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  outline: none;
  transition: 0.2s ease;
}

textarea {
  min-height: 130px;
  height: auto;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
}

.helper-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.related-links {
  display: grid;
  gap: 12px;
}

.related-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.related-links a:hover {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-text);
}

.tool-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.tool-link .icon {
  color: var(--primary-text);
}

.tool-link:hover {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-text);
  transform: translateY(-2px);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  margin-top: 60px;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.site-footer-text p {
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.6;
  color: var(--footer-text);
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 36px;
  row-gap: 10px;
  align-content: start;
}

.site-footer-links a {
  text-decoration: none;
  color: var(--footer-link);
  font-size: 14px;
  transition: color 0.15s ease;
}

.site-footer-links a:hover {
  color: var(--primary-text);
}

.site-footer-meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-border);
  font-size: 13px;
  color: var(--footer-meta);
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer-links {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .site-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-brand {
    font-size: 1.1rem;
  }

  .site-brand-mark {
    min-width: 40px;
    height: 40px;
    font-size: 0.88rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .site-nav a {
    padding: 9px 14px;
  }

  .hero,
  .page-header {
    padding: 48px 0 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    padding: 30px 0 26px;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header-inner,
  .site-footer-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .site-brand {
    gap: 10px;
  }

  .site-brand-text {
    font-size: 1rem;
  }

  .site-footer-links {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* Data table — used in guide and tool pages */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-soft);
  font-weight: 700;
}

/* Nav CTA button — highlighted nav item */
.nav-cta-subtle,
.nav-cta-bold{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 16px;
  border-radius:20px;
  font-size:inherit;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  transition:background 0.2s, color 0.2s;
}

.nav-cta-subtle{
  color:var(--nav-cta-subtle-text);
  background:var(--nav-cta-subtle-bg);
}

.nav-cta-subtle:hover{
  background:var(--nav-cta-subtle-hover);
}

.nav-cta-bold{
  color:#ffffff;
  background:var(--primary-bg);
}

.nav-cta-bold:hover{
  background:var(--primary-hover);
}

.nav-cta-icon{
  width:16px;
  height:16px;
  flex-shrink:0;
}

@media (max-width: 768px){
  .nav-cta-subtle,
  .nav-cta-bold{
    padding:5px 12px;
    font-size:0.9em;
  }
}

/* ========================================
   HOUSEHOLD PROFILE — Header
   ======================================== */

.site-nav .myhome-set-btn{
  color:var(--text-soft);
  background:var(--surface-soft);
  border:1px solid var(--border-soft);
  border-radius:20px;
  padding:6px 14px;
  font-size:0.82rem;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}

.site-nav .myhome-set-btn:hover{
  color:var(--primary-text);
  background:var(--primary-soft);
  border-color:var(--primary);
}

.site-nav .myhome-chip{
  color:var(--profile-chip-text);
  background:var(--profile-chip-bg);
  border:1px solid var(--profile-chip-border);
  border-radius:20px;
  padding:6px 14px;
  font-size:0.82rem;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  max-width:220px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.site-nav .myhome-chip:hover{
  background:var(--profile-chip-hover-bg);
  border-color:var(--primary);
  color:var(--profile-chip-text);
}

.myhome-chip-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Green dot — indicates custom rates set alongside profile */
.myhome-chip-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--pricing-chip-border);
  flex-shrink:0;
}

/* ========================================
   MY HOME PANEL — Overlay
   ======================================== */

.mhp-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:40px 16px 16px;
  background:var(--overlay-overlay-bg);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  transition:opacity 0.2s, visibility 0.2s;
}

.mhp-overlay.mhp-open{
  opacity:1;
  visibility:visible;
}

.mhp-panel{
  width:100%;
  max-width:520px;
  max-height:calc(100vh - 80px);
  background:var(--surface);
  border:1px solid var(--border-soft);
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0, 0, 0, 0.2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform:translateY(-10px);
  transition:transform 0.2s;
}

.mhp-overlay.mhp-open .mhp-panel{
  transform:translateY(0);
}

.mhp-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px 0;
  flex-shrink:0;
}

.mhp-title{
  font-size:1.1rem;
  font-weight:700;
  color:var(--text);
  margin:0;
}

.mhp-close{
  width:32px;
  height:32px;
  min-height:0;
  border:none;
  border-radius:8px;
  background:transparent;
  color:var(--text-muted);
  font-family:inherit;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  transition:background 0.15s;
}

.mhp-close:hover{
  background:var(--surface-soft);
  color:var(--text);
}

/* Scrollable body */
.mhp-body{
  overflow-y:auto;
  padding:16px 20px 24px;
  flex:1;
  min-height:0;
}

/* Section labels */
.mhp-section{
  margin-bottom:4px;
}

.mhp-section-label{
  font-size:0.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--text-muted);
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:6px;
}

.mhp-section-icon{
  font-size:1rem;
  line-height:1;
}

.mhp-divider{
  height:1px;
  background:var(--border-soft);
  margin:16px 0;
}

.mhp-hint{
  font-size:0.78rem;
  color:var(--text-muted);
  text-align:center;
  margin:16px 0 0;
  line-height:1.4;
}

/* ========================================
   MY HOME PANEL — Summary card
   ======================================== */

.mhp-summary-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:12px;
  background:var(--surface-soft);
  border:1px solid var(--border-soft);
}

.mhp-summary-info{
  flex:1;
  min-width:0;
}

.mhp-summary-name{
  font-size:0.95rem;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mhp-summary-specs{
  font-size:0.78rem;
  color:var(--text-muted);
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mhp-summary-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.mhp-summary-actions a{
  font-size:0.82rem;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}

.mhp-summary-change{
  color:var(--primary-text);
}

.mhp-summary-change:hover{
  text-decoration:underline;
}

.mhp-summary-clear{
  color:var(--text-muted);
}

.mhp-summary-clear:hover{
  color:var(--warning);
  text-decoration:underline;
}

/* ========================================
   MY HOME PANEL — Search overrides
   ======================================== */

.mhp-search-wrap{
  margin-bottom:10px;
}

.mhp-profile-hint{
  padding:8px 8px 10px;
  font-size:0.8rem;
  color:var(--overlay-placeholder);
  text-align:center;
  margin:0;
}

.vs-search{
  width:100%;
  padding:12px 16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface-soft);
  font-family:inherit;
  font-size:0.95rem;
  color:var(--text);
  height:auto;
  min-height:0;
  box-sizing:border-box;
  transition:border-color 0.15s;
}

.vs-search:focus{
  outline:none;
  border-color:var(--primary);
  background:var(--surface);
}

.vs-search::placeholder{
  color:var(--overlay-placeholder);
}

.vs-results{
  list-style:none;
  margin:0;
  padding:0 8px 8px;
  overflow-y:auto;
  flex:1;
  min-height:0;
}

.vs-result{
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
  transition:background 0.12s;
}

.vs-result:hover,
.vs-result:focus{
  background:var(--surface-soft);
  outline:none;
}

.vs-result + .vs-result{
  margin-top:2px;
}

.vs-result-name{
  font-size:0.95rem;
  font-weight:600;
  color:var(--text);
  line-height:1.3;
}

.vs-result-specs{
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px;
  margin-top:4px;
}

.vs-result-specs span{
  font-size:0.8rem;
  color:var(--text-muted);
  white-space:nowrap;
}

.vs-more{
  padding:10px 14px;
  font-size:0.85rem;
  color:var(--overlay-placeholder);
  text-align:center;
}

.vs-no-results{
  padding:20px;
  text-align:center;
  color:var(--text-muted);
  font-size:0.92rem;
  margin:0;
}

/* Results list inside unified panel — constrain height */
.mhp-profile-search .vs-results{
  max-height:280px;
  overflow-y:auto;
}

/* ========================================
   HOUSEHOLD PROFILE — Custom rate rows
   ======================================== */

.vs-custom-link{
  padding:0 20px 14px;
  margin:0;
  text-align:center;
  font-size:0.85rem;
}
.vs-custom-link a{
  color:var(--primary-text);
  text-decoration:none;
}
.vs-custom-link a:hover{
  text-decoration:underline;
}

.vs-custom-form{
  padding:4px 20px 20px;
}

.vs-custom-back{
  margin:0 0 14px;
  font-size:0.85rem;
}
.vs-custom-back a{
  color:var(--primary-text);
  text-decoration:none;
}
.vs-custom-back a:hover{
  text-decoration:underline;
}

.vs-custom-field{
  margin-bottom:12px;
}
.vs-custom-field label{
  display:block;
  font-size:0.82rem;
  font-weight:600;
  color:var(--text-soft);
  margin-bottom:4px;
}
.vs-custom-field input{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--border-input);
  border-radius:10px;
  background:var(--surface-soft);
  font-size:0.92rem;
  color:var(--text);
  box-sizing:border-box;
}
.vs-custom-field input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--input-focus-shadow);
}

.vs-custom-specs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.vs-custom-specs .vs-custom-field{
  margin-bottom:0;
}

.vs-custom-save{
  width:100%;
  margin-top:16px;
  padding:12px;
  border:none;
  border-radius:12px;
  background:var(--primary-bg);
  color:#fff;
  font-size:0.95rem;
  font-weight:700;
  cursor:pointer;
  transition:background 0.15s;
}
.vs-custom-save:hover{
  background:var(--primary-hover);
}

.vs-custom-error{
  margin:10px 0 0;
  padding:8px 12px;
  border-radius:8px;
  background:#fef2f2;
  color:#dc2626;
  font-size:0.82rem;
  text-align:center;
}
.dark .vs-custom-error{
  background:#451a1a;
  color:#fca5a5;
}

/* ========================================
   HOUSEHOLD PROFILE — Override indicators
   ======================================== */

.profile-filled{
  border-color:var(--profile-filled-border) !important;
  background:var(--profile-filled-bg) !important;
}

.profile-badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:8px;
  background:var(--profile-badge-bg);
  color:var(--profile-badge-text);
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0.01em;
  vertical-align:middle;
  line-height:1.4;
}

/* ========================================
   HOUSEHOLD PROFILE — In-calculator trigger
   ======================================== */

.calc-profile-trigger{
  display:inline-flex;
  align-items:center;
  cursor:pointer;
  transition:background 0.15s, color 0.15s, border-color 0.15s;
  white-space:nowrap;
  line-height:1.3;
}

/* No profile set — the "My home" button in the header */
.calc-profile-select{
  padding:4px 12px;
  border-radius:8px;
  font-size:0.82rem;
  font-weight:600;
  color:var(--primary-text);
  background:transparent;
}

.calc-profile-select:hover{
  background:var(--primary-soft);
}

/* Profile set — the clickable household chip */
.calc-profile-trigger.calc-profile-badge{
  padding:3px 10px;
  border-radius:8px;
  font-size:0.75rem;
  font-weight:700;
  color:var(--profile-badge-text);
  background:var(--profile-badge-bg);
  border:1px solid transparent;
}

.calc-profile-trigger.calc-profile-badge:hover{
  border-color:var(--primary-border);
  background:var(--profile-chip-hover-bg);
}

/* ========================================
   REFERENCE TABLES — Inline emphasis
   ======================================== */

.ref-limited{
  display:block;
  font-size:0.72rem;
  font-weight:700;
  color:var(--warning);
  line-height:1.3;
  margin-top:2px;
}

/* ========================================
   MY HOME PANEL — Mobile bottom-sheet
   ======================================== */

@media (max-width: 640px){
  .mhp-overlay{
    padding:0;
    align-items:flex-end;
  }

  .mhp-panel{
    max-width:100%;
    max-height:92vh;
    border-radius:20px 20px 0 0;
    transform:translateY(20px);
  }

  .mhp-overlay.mhp-open .mhp-panel{
    transform:translateY(0);
  }

  .mhp-body{
    padding:14px 16px 24px;
  }

  .myhome-chip{
    max-width:160px;
  }

  .mhp-profile-search .vs-results{
    max-height:200px;
  }

  .cp-row{
    grid-template-columns:1fr 120px auto;
    gap:8px;
  }

  .cp-row-input{
    height:36px;
    min-height:36px;
    padding-right:62px;
  }
}

/* ========================================
   DARK MODE TOGGLE
   ======================================== */

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--surface-soft);
  color:var(--text-soft);
  cursor:pointer;
  transition:background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink:0;
}

.theme-toggle:hover{
  color:var(--primary-text);
  background:var(--primary-soft);
  border-color:var(--primary);
}

.theme-toggle svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.theme-toggle .icon-sun{
  display:none;
}

.dark .theme-toggle .icon-sun{
  display:block;
}

.dark .theme-toggle .icon-moon{
  display:none;
}

/* Smooth colour transition for dark mode */
body,
.site-header,
.card,
.info-panel,
.highlight-panel,
.article-card,
.related-card,
.hero,
.hero-panel,
.page-header,
.site-footer,
.calculator-panel,
.content-panel,
.vs-panel,
.mhp-panel,
.vs-search,
input,
select,
textarea{
  transition:background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ========================================
   PRICING ROWS — used inside unified panel
   (cp-row, cp-reset-all, cp-hint, cp-discovery-link retained)
   ======================================== */

.cp-row{
  display:grid;
  grid-template-columns:1fr 140px auto;
  align-items:center;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid var(--border-soft);
}

.cp-row:last-child{
  border-bottom:none;
}

.cp-row-label{
  font-size:0.88rem;
  font-weight:600;
  color:var(--text);
}

.cp-row-input-wrap{
  position:relative;
}

.cp-row-input{
  width:100%;
  height:38px;
  min-height:38px;
  padding:6px 70px 6px 12px;
  font-size:0.92rem;
  font-weight:600;
  font-family:inherit;
  border:1px solid var(--border-input);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  outline:none;
  transition:border-color 0.15s, box-shadow 0.15s;
  box-sizing:border-box;
}

.cp-row-input:focus{
  border-color:var(--input-focus-border);
  box-shadow:var(--input-focus-shadow);
}

.cp-row-unit{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:0.72rem;
  font-weight:600;
  color:var(--text-muted);
  pointer-events:none;
}

.cp-row-reset{
  min-height:0;
  border:none;
  border-radius:6px;
  background:transparent;
  color:var(--text-muted);
  font-family:inherit;
  font-size:0.72rem;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  white-space:nowrap;
  transition:background 0.15s, color 0.15s;
}

.cp-row-reset:hover{
  background:var(--surface-soft);
  color:var(--primary-text);
}

/* Customised row indicator */

.cp-row-custom .cp-row-input{
  border-color:var(--pricing-chip-border);
}

.cp-row-custom .cp-row-label{
  color:var(--pricing-chip-text);
}

/* Divider */

.cp-divider{
  height:1px;
  background:var(--border-soft);
  margin:14px 0;
}

/* Reset all link */

.cp-reset-all-wrap{
  text-align:center;
  margin-top:16px;
}

.cp-reset-all{
  font-size:0.82rem;
  font-weight:600;
  color:var(--text-muted);
  text-decoration:underline;
  cursor:pointer;
}

.cp-reset-all:hover{
  color:var(--text);
}

/* Hint text */

.cp-hint{
  font-size:0.78rem;
  color:var(--text-muted);
  text-align:center;
  margin:14px 0 0;
  line-height:1.4;
}

/* Discovery link in reference table small-notes */

.cp-discovery-link{
  color:var(--primary-text);
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
}

.cp-discovery-link:hover{
  text-decoration:underline;
}

/* ========================================
   G-TYPE CALCULATOR — Layout CSS
   ======================================== */

/* Calculator panel */

.calculator-panel{
  background:var(--surface);
  border:1px solid var(--border-soft);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  padding:28px;
}

.calculator-panel .section-header{
  margin-bottom:20px;
}

.calc-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* G-type top grid */

.calc-top{
  display:grid;
  grid-template-columns:1fr 0.7fr;
  gap:20px;
  align-items:end;
  margin-bottom:24px;
}

/* Input rows */

.calc-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.calc-row + .calc-row{
  margin-top:20px;
}

.calc-row-3col{
  grid-template-columns:1fr 1fr 1fr;
}

.calc-row-4col{
  grid-template-columns:1fr 1fr 1fr 1fr;
}

.calc-field label{
  display:block;
  font-size:0.82rem;
  font-weight:700;
  color:var(--text-soft);
  margin-bottom:6px;
  white-space:nowrap;
}

.calc-input-wrap{
  position:relative;
}

.calc-input-wrap input{
  width:100%;
  height:46px;
  min-height:46px;
  padding:10px 76px 10px 14px;
  font-size:1rem;
  font-weight:600;
  font-family:inherit;
  border:1px solid var(--border-input);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
  box-sizing:border-box;
}

.calc-input-wrap input:focus{
  border-color:var(--input-focus-border);
  box-shadow:var(--input-focus-shadow);
}

.calc-unit{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:0.78rem;
  font-weight:600;
  color:var(--text-muted);
  pointer-events:none;
}

/* Rate category label */

.calc-rate-bar{
  margin-top:20px;
}

.calc-rate-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:46px;
  padding:0 16px;
  background:var(--surface-soft);
  border:1px solid var(--border-soft);
  border-radius:10px;
  font-size:0.82rem;
  font-weight:700;
  color:var(--text-soft);
  white-space:nowrap;
  width:100%;
  box-sizing:border-box;
}

.calc-rate-icon{
  font-size:1rem;
  line-height:1;
}

/* Hero output card */

.calc-hero-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-self:stretch;
  margin-top:25px;
  padding:20px;
  background:var(--primary-soft);
  border:2px solid var(--primary);
  border-radius:14px;
  box-sizing:border-box;
}

.calc-hero-left{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:90px;
}

.calc-hero-label{
  font-size:0.75rem;
  font-weight:700;
  color:var(--primary-text);
  text-transform:uppercase;
  letter-spacing:0.03em;
  margin-bottom:6px;
}

.calc-hero-value{
  font-size:1.6rem;
  font-weight:800;
  color:var(--primary-text);
  line-height:1.1;
  margin-bottom:6px;
}

.calc-hero-meta{
  font-size:0.82rem;
  font-weight:600;
  color:var(--text-soft);
  line-height:1.4;
}

.calc-hero-meta-muted{
  color:var(--text-muted);
}

.calc-hero-right{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding-left:16px;
  border-left:1px solid var(--primary-border-soft);
  min-height:48px;
}

.calc-hero-right-label{
  font-size:0.75rem;
  font-weight:700;
  color:var(--primary-text);
  text-transform:uppercase;
  letter-spacing:0.03em;
  margin-bottom:6px;
}

.calc-hero-right-value{
  font-size:1.15rem;
  font-weight:800;
  color:var(--text);
  line-height:1.2;
  margin-bottom:2px;
}

.calc-hero-right-detail{
  font-size:0.78rem;
  font-weight:600;
  color:var(--text-muted);
  line-height:1.3;
}

/* Hero window variant — two-value hero card */

.calc-hero-window-left,
.calc-hero-window-right{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

/* Tier result cards */

.tier-section-label{
  font-size:0.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--text-muted);
  margin:22px 0 10px;
}

.tier-results{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-bottom:18px;
}

.tier-card{
  display:flex;
  flex-direction:column;
  padding:15px 17px;
  background:var(--surface-soft);
  border:2px solid var(--border-soft);
  border-radius:14px;
  cursor:pointer;
  transition:background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tier-card.is-active{
  background:var(--primary-soft);
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(37, 99, 235, 0.10);
}

.dark .tier-card.is-active{
  box-shadow:0 0 0 3px rgba(59, 130, 246, 0.18);
}

.tier-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 8px;
  margin-bottom:8px;
}

.tier-label{
  font-size:0.78rem;
  font-weight:700;
  color:var(--text-muted);
  line-height:1.2;
}

.tier-card.is-active .tier-label{
  color:var(--primary-text);
}

.tier-rate{
  font-size:0.72rem;
  font-weight:600;
  color:var(--text-muted);
  white-space:nowrap;
}

.tier-cost{
  font-size:1.55rem;
  font-weight:800;
  color:var(--text);
  line-height:1.1;
  margin-bottom:10px;
}

.tier-card.is-active .tier-cost{
  color:var(--primary-text);
}

/* Saving / costs-more colours */

.tier-cost.is-saving{
  color:var(--success);
}

.tier-cost.is-more{
  color:var(--warning);
}

.tier-card.is-active .tier-cost.is-saving,
.tier-card.is-active .tier-cost.is-more{
  color:var(--primary-text);
}

.calc-hero-value.is-saving{
  color:var(--success);
}

.calc-hero-value.is-more{
  color:var(--warning);
}

.tier-secondary{
  padding-top:10px;
  border-top:1px solid var(--border-soft);
  min-height:48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.tier-card.is-active .tier-secondary{
  border-top-color:var(--primary-border-soft);
}

/* Price-tier secondary line classes */

.tier-sec-line{
  font-size:0.82rem;
  line-height:1.3;
  color:var(--text-soft);
}

.tier-sec-value{
  font-weight:800;
  color:var(--text);
}

.tier-card.is-active .tier-sec-value{
  color:var(--primary-text);
}

.tier-sec-note{
  font-size:0.72rem;
  color:var(--text-muted);
  font-weight:600;
}

.tier-card.is-active .tier-sec-note{
  color:var(--primary-text);
}

/* Secondary line classes */

.tier-cmp-line{
  font-size:0.82rem;
  line-height:1.3;
  color:var(--text-soft);
}

.tier-cmp-value{
  font-weight:800;
  color:var(--text);
}

.tier-card.is-active .tier-cmp-value{
  color:var(--primary-text);
}

/* Charger-type tier group labels */

.tier-group{
  grid-column:1 / -1;
}

.tier-group-label{
  font-size:0.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--text-muted);
  margin:0;
  padding:6px 0 2px;
}

/* Charger-type label inside calc-field */

.calc-charger-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:46px;
  padding:0 16px;
  background:var(--surface-soft);
  border:1px solid var(--border-soft);
  border-radius:10px;
  font-size:0.82rem;
  font-weight:700;
  color:var(--text-soft);
  white-space:nowrap;
  width:100%;
  box-sizing:border-box;
}

/* Charger-type price chips (home cards) */

.tier-price-chips{
  display:flex;
  gap:4px;
  margin-left:auto;
}

.tier-price-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:0.68rem;
  font-weight:700;
  color:var(--text-muted);
  background:var(--surface);
  border:1px solid var(--border-soft);
  cursor:pointer;
  transition:background 0.15s, color 0.15s, border-color 0.15s;
  white-space:nowrap;
}

.tier-price-chip:hover{
  color:var(--primary-text);
  border-color:var(--primary-border);
  background:var(--primary-soft);
}

.tier-price-chip.chip-active{
  color:var(--primary-text);
  background:var(--primary-soft);
  border-color:var(--primary);
}

.tier-card.is-active .tier-price-chip{
  background:rgba(255,255,255,0.5);
  border-color:var(--primary-border);
  color:var(--text-muted);
}

.tier-card.is-active .tier-price-chip.chip-active{
  background:#fff;
  border-color:var(--primary);
  color:var(--primary-text);
}

/* Charger-type tier secondary two-column layout (available time) */

.tier-sec-2col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.tier-sec-left,
.tier-sec-right{
  display:flex;
  flex-direction:column;
}

.tier-sec-limit{
  font-size:0.68rem;
  font-weight:600;
  color:var(--warning);
  margin-top:2px;
}

/* Hero right empty state (charger-type calcs) */

.calc-hero-right.is-empty{
  opacity:0;
  pointer-events:none;
}

/* Calculator responsive — 960px */

@media (max-width: 960px){
  .calc-top{
    grid-template-columns:1fr;
  }

  .calc-hero-card{
    align-self:auto;
    margin-top:0;
  }

  .tier-results{
    grid-template-columns:repeat(2, 1fr);
  }

  .calc-row-3col{
    grid-template-columns:1fr 1fr;
  }

  .calc-row-4col{
    grid-template-columns:1fr 1fr;
  }
}

/* Calculator responsive — 520px */

@media (max-width: 520px){
  .calc-row{
    grid-template-columns:1fr;
  }

  .calc-row-3col{
    grid-template-columns:1fr;
  }

  .calc-row-4col{
    grid-template-columns:1fr;
  }

  .tier-results{
    grid-template-columns:1fr 1fr;
  }

  .tier-cost{
    font-size:1.3rem;
  }

  .calc-hero-card{
    grid-template-columns:1fr;
    gap:12px;
  }

  .calc-hero-right{
    padding-left:0;
    border-left:none;
    padding-top:12px;
    border-top:1px solid var(--primary-border-soft);
  }
}

/* ========================================
   Guide + Tool — Shared Content Panel CSS
   ======================================== */

/* Content panels */

.content-panel{
  background:var(--bg);
  border:1px solid var(--border-soft);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  padding:24px;
  margin-top:24px;
}

.content-panel + .content-panel{
  margin-top:20px;
}

.content-panel:first-child{
  margin-top:0;
}

.content-panel h2{
  margin-top:0;
}

.content-panel h3{
  margin-top:22px;
  margin-bottom:8px;
}

.content-panel h3:first-of-type{
  margin-top:0;
}

.content-panel p:last-child:not(.small-note){
  margin-bottom:0;
}

/* Calculator content panels use --surface background */

.calculator-panel ~ .content-panel{
  background:var(--surface);
}

/* Reference tables */

.reference-table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
}

.reference-table th,
.reference-table td{
  padding:12px 14px;
  border:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}

.reference-table th{
  background:var(--surface-soft);
  font-weight:700;
}

.small-note{
  margin-top:14px;
  margin-bottom:20px;
  font-size:0.95rem;
  color:var(--text-soft);
}

[data-ref-table]{
  margin-bottom:6px;
}

/* Bar-in-table variant */

.speed-bar-table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
}

.speed-bar-table th,
.speed-bar-table td{
  padding:10px 14px;
  border:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
}

.speed-bar-table th{
  background:var(--surface-soft);
  font-weight:700;
}

.speed-bar-cell{
  width:50%;
}

.speed-bar-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:28px;
}

.speed-bar{
  height:28px;
  border-radius:6px;
  background:var(--primary-bg);
  min-width:4px;
  transition:width 0.3s ease;
}

.speed-bar-has-label{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding-right:10px;
}

.speed-bar-label{
  font-weight:700;
  font-size:0.9rem;
  white-space:nowrap;
}

.speed-bar-has-label .speed-bar-label{
  color:#fff;
}

.speed-bar-wrap > .speed-bar-label{
  color:var(--text-soft);
}

/* FAQ stack */

.faq-stack{
  display:grid;
  gap:16px;
}

.faq-box{
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface-soft);
}

.faq-box h3{
  margin:0 0 8px;
  font-size:1.05rem;
}

.faq-box p{
  margin:0;
}

/* Content panel + calculator responsive — 520px */

@media (max-width: 520px){
  .content-panel{
    padding:18px;
    border-radius:18px;
  }

  .calculator-panel{
    padding:20px;
    border-radius:18px;
  }

  .faq-box{
    padding:14px 16px;
    border-radius:12px;
  }

  .reference-table th,
  .reference-table td{
    padding:10px 10px;
    font-size:0.92rem;
  }

  .reference-table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .speed-bar-table th,
  .speed-bar-table td{
    padding:8px 10px;
    font-size:0.92rem;
  }

  .speed-bar-table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .speed-bar{
    height:24px;
  }
}


/* ==========================================================
   CALCULATOR MODES
   Segmented control used where several former calculators were
   merged into one page. Selecting a mode only changes input
   defaults and which figures are emphasised; the formula is the
   same in every mode.
   Shares the chip language already used by the profile filters.
   ========================================================== */

.calc-modes{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  padding:10px 14px;
  margin-bottom:14px;
  border:1px solid var(--border-soft);
  border-radius:14px;
  background:var(--surface-soft);
}

.calc-modes-label{
  font-size:0.72rem;
  font-weight:800;
  color:var(--text-muted);
  letter-spacing:0.04em;
  text-transform:uppercase;
  margin-right:3px;
  white-space:nowrap;
}

.calc-mode{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--bg);
  color:var(--text-soft);
  font:inherit;
  font-size:0.78rem;
  font-weight:700;
  cursor:pointer;
  transition:border-color 0.18s,background 0.18s,color 0.18s;
  white-space:nowrap;
  user-select:none;
  -webkit-user-select:none;
}

.calc-mode:hover{
  border-color:var(--primary-border);
  background:var(--primary-soft);
  color:var(--primary-text);
}

.calc-mode.is-active{
  border-color:var(--primary);
  background:var(--primary-bg);
  color:#fff;
}

.dark .calc-mode.is-active{
  box-shadow:0 2px 8px rgba(59,130,246,0.2);
}


/* ==========================================================
   BYLINE
   Author and last-reviewed date, stamped by the build from
   site-config.json. Sits under the page intro.
   ========================================================== */

.byline{
  margin-top:10px;
  font-size:0.82rem;
  color:var(--text-muted);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
}

.byline a{
  color:var(--text-soft);
  text-decoration:none;
  border-bottom:1px solid var(--border);
}

.byline a:hover{
  color:var(--primary-text);
  border-bottom-color:var(--primary-border);
}

.byline-author{
  font-weight:700;
}

.byline-sep{
  opacity:0.55;
}
/* ==========================================================
   HOME HERO — Household picker
   Live personalisation demo on the landing page.
   ========================================================== */

.hero-note{
  font-size:0.9rem;
  color:var(--text-muted);
  margin-top:-4px;
}

.myhome-hero-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.myhome-hero-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.myhome-hero-label{
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--primary-text);
}

.myhome-hero-count{
  font-size:0.78rem;
  color:var(--text-muted);
}

.myhome-hero-select-label{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

.myhome-hero-select{
  width:100%;
  padding:13px 14px;
  font-size:1rem;
  font-family:inherit;
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--border-input);
  border-radius:var(--radius-sm);
  cursor:pointer;
  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='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
}

.myhome-hero-select:focus{
  outline:none;
  border-color:var(--input-focus-border, var(--primary));
  box-shadow:var(--input-focus-shadow, 0 0 0 4px rgba(37,99,235,0.18));
}

.myhome-hero-results{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}

.myhome-hero-result{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 10px;
  background:var(--surface-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  text-align:center;
}

.myhome-hero-result-label{
  font-size:0.7rem;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--text-soft);
}

.myhome-hero-result-value{
  font-size:1.35rem;
  font-weight:700;
  color:var(--primary-text);
  line-height:1.2;
}

.myhome-hero-hint{
  font-size:0.86rem;
  line-height:1.55;
  color:var(--text-soft);
  margin:0;
}

.myhome-hero-hint strong{
  color:var(--text);
}

@media (max-width:520px){
  .myhome-hero-results{
    grid-template-columns:1fr;
  }
  .myhome-hero-result{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    text-align:left;
  }
}

/* Live profile note appended to reference table captions */
.ref-profile-note{
  display:none;
}

.ref-profile-note.is-set{
  display:inline;
  font-weight:600;
  color:var(--primary-text);
}

/* Page-specific sentence appended to a shared reference-table caption */
.ref-note-extra{
  display:inline;
}

/* ==========================================================
   MY HOME PANEL — State selector
   Residential electricity price varies more by state than by
   profile, so this sits at the top of the rates section.
   ========================================================== */

.mhp-state-row{
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border-soft);
}

.mhp-state-label{
  display:block;
  font-size:0.82rem;
  font-weight:600;
  color:var(--text);
  margin-bottom:6px;
}

.mhp-state-select{
  width:100%;
  padding:10px 12px;
  font-size:0.95rem;
  font-family:inherit;
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--border-input);
  border-radius:var(--radius-sm);
  cursor:pointer;
}

.mhp-state-select:focus{
  outline:none;
  border-color:var(--input-focus-border, var(--primary-text));
  box-shadow:var(--input-focus-shadow, 0 0 0 4px rgba(37,99,235,0.18));
}

.mhp-state-note{
  margin:8px 0 0;
  font-size:0.78rem;
  line-height:1.5;
  color:var(--text-muted);
}

.mhp-state-note.is-set{
  color:var(--text-soft);
}

/* Select styled to match .calc-input-wrap inputs */
.calc-select{
  width:100%;
  padding:11px 12px;
  font-size:1rem;
  font-family:inherit;
  font-weight:600;
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--border-input);
  border-radius:var(--radius-sm);
  cursor:pointer;
}

.calc-select:focus{
  outline:none;
  border-color:var(--input-focus-border, var(--primary-text));
  box-shadow:var(--input-focus-shadow, 0 0 0 4px rgba(37,99,235,0.18));
}

/* Formula callout in explanatory copy */
.calc-formula{
  padding:14px 16px;
  background:var(--surface-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  text-align:center;
}


/* Region switcher — the four country sites, with the units each uses, so a
   reader who wants km rather than miles can find the right one. Rendered by
   the build only when two or more markets are live. */

.site-regions {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-border);
}

.site-regions-heading {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--footer-meta);
}

.site-regions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-regions-item > a,
.site-regions-item.is-current {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid var(--footer-border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-regions-item > a:hover {
  border-color: var(--primary-text);
  background: var(--nav-cta-subtle-bg);
}

.site-regions-item.is-current {
  border-color: var(--primary-text);
  background: var(--nav-cta-subtle-bg);
}

.site-regions-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--footer-link);
}

.site-regions-item.is-current .site-regions-name {
  color: var(--primary-text);
}

.site-regions-units {
  font-size: 12px;
  color: var(--footer-meta);
}

.site-regions-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--footer-meta);
}

@media (max-width: 600px) {
  .site-regions-list {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------------
   Home Running Cost — section accents and component tokens
   ------------------------------------------------------------------
   Each section of the site carries an accent so a visitor can tell at a
   glance which calculator they are in. Accents are used for section
   headers, result bars, chart fills and cross-link badges — never for
   body text, where they would not clear 4.5:1 against the surface.     */

:root {
  --accent-hot-water: #e67e22;
  --accent-hot-water-soft: #fdf1e6;
  --accent-hot-water-border: #f6d3ae;

  --accent-solar: #b7860b;
  --accent-solar-soft: #fdf8e6;
  --accent-solar-border: #f0dda0;

  --accent-cooling: #c25b3a;
  --accent-cooling-soft: #fdefea;
  --accent-cooling-border: #f4cbba;

  --accent-appliances: #0f766e;
  --accent-appliances-soft: #eafaf6;
  --accent-appliances-border: #a9e5d7;

  --accent-electricity: #1d6fa5;
  --accent-electricity-soft: #eaf4fb;
  --accent-electricity-border: #b3d8ef;

  /* A darker variant of each accent, for small text sitting on the soft
     background of the same accent. The display accents are tuned to be
     legible as fills and borders; at 0.75rem on their own tint several of
     them land near 2.5:1, well under the 4.5:1 that small text needs. Use
     --accent for fills, --accent-strong for words. */
  --accent-hot-water-strong: #8a4b12;
  --accent-solar-strong: #6f5205;
  --accent-cooling-strong: #8a3d22;
  --accent-appliances-strong: #0b5e58;
  --accent-electricity-strong: #14567f;

  /* Set per page by a class on <body>; components read these tokens so a
     new section only needs the one line in the block below. */
  --accent: var(--primary);
  --accent-soft: var(--primary-soft);
  --accent-border: var(--primary-border);
  --accent-strong: var(--primary);
}

body.section-hot-water   { --accent: var(--accent-hot-water);   --accent-soft: var(--accent-hot-water-soft);   --accent-border: var(--accent-hot-water-border); --accent-strong: var(--accent-hot-water-strong); }
body.section-appliances  { --accent: var(--accent-appliances);  --accent-soft: var(--accent-appliances-soft);  --accent-border: var(--accent-appliances-border); --accent-strong: var(--accent-appliances-strong); }
body.section-solar       { --accent: var(--accent-solar);       --accent-soft: var(--accent-solar-soft);       --accent-border: var(--accent-solar-border); --accent-strong: var(--accent-solar-strong); }
body.section-cooling     { --accent: var(--accent-cooling);     --accent-soft: var(--accent-cooling-soft);     --accent-border: var(--accent-cooling-border); --accent-strong: var(--accent-cooling-strong); }
body.section-electricity { --accent: var(--accent-electricity); --accent-soft: var(--accent-electricity-soft); --accent-border: var(--accent-electricity-border); --accent-strong: var(--accent-electricity-strong); }

html.dark {
  /* Reversed: on a dark tint the lighter display accent is the legible one,
     so --accent-strong follows --accent rather than darkening away from it. */
  --accent-hot-water-strong: #f0a05a;
  --accent-solar-strong: #dbb64a;
  --accent-cooling-strong: #e69171;
  --accent-appliances-strong: #4fd1b5;
  --accent-electricity-strong: #6fb6e4;

  --accent-hot-water: #f0a05a;
  --accent-hot-water-soft: #2e2216;
  --accent-hot-water-border: #5c4227;

  --accent-solar: #dbb64a;
  --accent-solar-soft: #2c2716;
  --accent-solar-border: #574c26;

  --accent-cooling: #e69171;
  --accent-cooling-soft: #2e1f19;
  --accent-cooling-border: #5c3f31;

  --accent-appliances: #4fd1b5;
  --accent-appliances-soft: #122d28;
  --accent-appliances-border: #235248;

  --accent-electricity: #6fb6e4;
  --accent-electricity-soft: #14252f;
  --accent-electricity-border: #2a4a5e;
}

/* ------------------------------------------------------------------
   Home Running Cost — components added for this site
   ------------------------------------------------------------------ */

/* A bar inside each result card, so the size of the difference between
   systems is visible before the numbers are read. */
.tier-bar{
  height:6px;
  border-radius:3px;
  background:var(--surface-soft);
  overflow:hidden;
  margin:10px 0 8px;
}
.tier-bar-fill{
  display:block;
  height:100%;
  border-radius:3px;
  background:var(--accent);
  transition:width 0.3s ease;
}
.tier-card.is-active .tier-bar-fill{ background:var(--success); }

/* An option that cannot be installed here is shown greyed with the reason,
   never removed. A missing row reads as a broken tool. */
.tier-card.is-unavailable,
tr.is-unavailable{
  opacity:0.62;
}
.tier-card.is-unavailable .tier-cost{
  font-size:1rem;
  color:var(--text-muted);
  font-weight:600;
}

.calc-field.is-disabled{ opacity:0.5; }

/* Per-system working, collapsed by default — the progressive disclosure
   pattern from Efficiency Maine, which is the best reference in this
   category. */
.hw-breakdown{
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  padding:12px 16px;
  margin-bottom:10px;
  background:var(--surface);
}
.hw-breakdown > summary{
  cursor:pointer;
  font-weight:650;
  color:var(--text);
  list-style:none;
}
.hw-breakdown > summary::-webkit-details-marker{ display:none; }
.hw-breakdown > summary::before{
  content:"▸";
  display:inline-block;
  width:1.1em;
  color:var(--text-muted);
  transition:transform 0.15s ease;
}
.hw-breakdown[open] > summary::before{ transform:rotate(90deg); }
.hw-breakdown[open] > summary{ margin-bottom:10px; }
.hw-breakdown .reference-table{ margin-top:8px; }

/* View switcher: annual / 10 year / 20 year. */
.calc-mode[aria-pressed="true"],
.calc-mode.is-active{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-soft);
}

/* Section accent on page headers, so each calculator is identifiable at a
   glance without relying on colour alone — the eyebrow text says it too. */
.section-eyebrow{
  display:inline-block;
  font-size:0.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--accent-strong);
  background:var(--accent-soft);
  border:1px solid var(--accent-border);
  border-radius:999px;
  padding:4px 12px;
  margin-bottom:12px;
}

/* Cross-link to the sibling site: present, findable, not shouting. */
.site-footer-other{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--footer-border);
  font-size:0.88rem;
  color:var(--footer-meta);
}
.site-footer-other a{
  color:var(--footer-link);
  font-weight:600;
}

.reference-table th.num,
.reference-table td.num{ text-align:right; }

/* A figure the visitor has changed is marked as theirs everywhere it is
   shown, so a default can never pass itself off as a personal number. */
.is-yours{
  color:var(--accent);
  font-weight:650;
}

/* A caveat on a result card. Used where the price is not the thing to judge
   the option on — evaporative cooling in humidity, ceiling fans not actually
   cooling air. Deliberately not styled as small print. */
.tier-sec-caveat{
  display:block;
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed var(--border-soft);
  font-size:0.78rem;
  line-height:1.45;
  color:var(--text-soft);
}
