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

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;
  --primary-border-soft: #dbeafe;

  --success: #16a34a;
  --success-soft: #ecfdf5;

  --warning: #d97706;
  --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(37, 99, 235, 0.2);

  --card-hover-border: #cbd5e1;
  --focus-ring: #93c5fd;
  --input-focus-border: #93c5fd;
  --input-focus-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);

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

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

  --vehicle-chip-text: #1e40af;
  --vehicle-chip-bg: #eff6ff;
  --vehicle-chip-border: #bfdbfe;
  --vehicle-chip-hover-bg: #dbeafe;
  --vehicle-chip-clear: #64748b;
  --vehicle-chip-clear-hover-bg: #bfdbfe;
  --vehicle-chip-clear-hover: #1e3a8a;

  --vehicle-filled-border: #bfdbfe;
  --vehicle-filled-bg: #f0f7ff;
  --vehicle-badge-bg: #eff6ff;
  --vehicle-badge-text: #2563eb;

  --nav-cta-subtle-bg: #e6f1fb;
  --nav-cta-subtle-hover: #d0e4f7;
  --nav-cta-subtle-text: #2563eb;

  --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: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-soft: #2d3c50;
  --border-input: #475569;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: #1e3a5f;
  --primary-border: #1e40af;
  --primary-border-soft: #1e3a5f;

  --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: #2563eb;
  --input-focus-border: #3b82f6;
  --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: #64748b;

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

  --vehicle-chip-text: #93c5fd;
  --vehicle-chip-bg: #1e3a5f;
  --vehicle-chip-border: #1e40af;
  --vehicle-chip-hover-bg: #1e3a6f;
  --vehicle-chip-clear: #94a3b8;
  --vehicle-chip-clear-hover-bg: #1e40af;
  --vehicle-chip-clear-hover: #e0f2fe;

  --vehicle-filled-border: #1e40af;
  --vehicle-filled-bg: #172554;
  --vehicle-badge-bg: #1e3a5f;
  --vehicle-badge-text: #60a5fa;

  --nav-cta-subtle-bg: #1e3a5f;
  --nav-cta-subtle-hover: #1e3a6f;
  --nav-cta-subtle-text: #60a5fa;

  --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-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, #2563eb 0%, #1d4ed8 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);
  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);
  color: #ffffff;
}

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

.button-secondary {
  background: var(--surface);
  color: var(--primary);
  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: 0;
}

.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);
}

/* 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);
}

.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);
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  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);
}

.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);
  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);
}

.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);
}

.tool-link:hover {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary);
  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);
}

.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 — Charging Apps */
.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);
}

.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;
  }
}

/* ========================================
   VEHICLE SELECTOR — Header
   ======================================== */

.site-nav .myev-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 .myev-set-btn:hover{
  color:var(--primary);
  background:var(--primary-soft);
  border-color:var(--primary);
}

.site-nav .myev-chip{
  color:var(--vehicle-chip-text);
  background:var(--vehicle-chip-bg);
  border:1px solid var(--vehicle-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 .myev-chip:hover{
  background:var(--vehicle-chip-hover-bg);
  border-color:var(--primary);
  color:var(--vehicle-chip-text);
}

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

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

/* ========================================
   MY EV PANEL — Overlay
   ======================================== */

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

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

.mep-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;
}

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

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

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

.mep-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;
}

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

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

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

.mep-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;
}

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

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

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

/* ========================================
   MY EV PANEL — Vehicle summary card
   ======================================== */

.mep-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);
}

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

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

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

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

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

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

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

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

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

/* ========================================
   MY EV PANEL — Vehicle search overrides
   ======================================== */

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

.mep-vehicle-hint{
  padding:8px 8px 10px;
  font-size:0.8rem;
  color:var(--vs-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(--vs-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(--vs-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 */
.mep-vehicle-search .vs-results{
  max-height:280px;
  overflow-y:auto;
}

/* ========================================
   VEHICLE SELECTOR — Custom vehicle form
   ======================================== */

.vs-custom-link{
  padding:0 20px 14px;
  margin:0;
  text-align:center;
  font-size:0.85rem;
}
.vs-custom-link a{
  color:var(--primary);
  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-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);
  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;
}

/* ========================================
   VEHICLE SELECTOR — Autofill indicators
   ======================================== */

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

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

/* ========================================
   VEHICLE SELECTOR — In-calculator trigger
   ======================================== */

.calc-vehicle-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 vehicle state — "Select your EV →" link */
.calc-vehicle-select{
  padding:4px 12px;
  border-radius:8px;
  font-size:0.82rem;
  font-weight:600;
  color:var(--primary);
  background:transparent;
}

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

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

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

/* ========================================
   REFERENCE TABLES — Vehicle DC limit
   ======================================== */

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

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

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

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

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

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

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

  .mep-vehicle-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);
  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,
.mep-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);
}

/* 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);
  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-transform:uppercase;
  letter-spacing:0.03em;
  margin-bottom:6px;
}

.calc-hero-value{
  font-size:1.6rem;
  font-weight:800;
  color:var(--primary);
  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-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 (ev-charging-time-and-cost) */

.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);
}

.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);
}

/* EV vs petrol saving/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);
}

.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);
}

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

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

/* EV vs petrol 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);
}

/* 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);
  border-color:var(--primary-border);
  background:var(--primary-soft);
}

.tier-price-chip.chip-active{
  color:var(--primary);
  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);
}

/* 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;
}

/* Speed bar table (charging speed reference table) */

.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);
  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;
  }
}