/* Muval Lookalike Cities Calculator
   Brand (Muval Brand Guidelines, June 2023):
   - GT Haptik headings (tracking tightened), Work Sans body
   - Muval Orange #FF5C00 primary; Amber #FDB83E as the duotone data-viz pair
   - Pill shapes everywhere; the "swoosh" journey motif; rounded chart marks
   Neutral grey scale and spacing scale are not defined in the guidelines
   (verified gap) — derived here to fit the rest of the system. */

@font-face {
  font-family: "GT Haptik";
  src: url("fonts/GT-Haptik-Regular-2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Haptik";
  src: url("fonts/GT-Haptik-Regular-Oblique-2.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Haptik";
  src: url("fonts/GT-Haptik-Medium-2.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Haptik";
  src: url("fonts/GT-Haptik-Bold-2.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Haptik";
  src: url("fonts/GT-Haptik-Light-2.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* transparent canvas so the tool sits flush on whatever the host page uses */
html, body { background: transparent; }

#mvcCalculator {
  /* Brand palette (guidelines p.15) */
  --mvc-orange: #FF5C00;
  --mvc-orange-hover: #FF7426;
  --mvc-red: #E31B44;
  --mvc-amber: #FDB83E;
  --mvc-apricot: #F57B39;
  --mvc-tangerine: #F64E00;
  --mvc-marmalade: #EC4617;
  --mvc-orange-tint: #FFE4D1;
  --mvc-amber-tint: #FFF1D9;
  /* Darkened orange for SMALL text on light backgrounds only — #FF5C00 is
     3.1:1 on white (fails WCAG AA 4.5:1); this is ~4.6:1. Keep the true brand
     orange for fills, buttons, large headings and non-text elements. */
  --mvc-orange-text: #C94500;

  /* Derived neutrals (not specified in brand guidelines) */
  --mvc-ink: #1A1A1A;
  --mvc-body: #454545;
  --mvc-muted: #6E6E6E;
  --mvc-border: #EAE4E0;
  --mvc-surface: #FAF8F6;
  --mvc-white: #FFFFFF;

  --mvc-font-head: "GT Haptik", Arial, sans-serif;
  --mvc-font-body: "Work Sans", Arial, sans-serif;

  --mvc-radius-sm: 10px;
  --mvc-radius-md: 18px;
  --mvc-radius-pill: 999px;
  --mvc-space-1: 4px;
  --mvc-space-2: 8px;
  --mvc-space-3: 16px;
  --mvc-space-4: 24px;
  --mvc-space-5: 40px;

  --mvc-shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --mvc-shadow-md: 0 6px 20px rgba(26, 26, 26, 0.08);

  font-family: var(--mvc-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mvc-body);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--mvc-space-3) var(--mvc-space-4);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
/* Explicit border-box on the whole subtree — never inherit from the host page
   (when embedded, the host body's content-box would otherwise leak in). */
#mvcCalculator, #mvcCalculator *, #mvcCalculator *::before, #mvcCalculator *::after {
  box-sizing: border-box;
}

#mvcCalculator :focus-visible {
  outline: 3px solid rgba(255, 92, 0, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.mvc-noscript {
  text-align: center;
  background: var(--mvc-amber-tint);
  border-radius: var(--mvc-radius-md);
  padding: var(--mvc-space-3);
  margin-bottom: var(--mvc-space-3);
  color: var(--mvc-ink);
}

/* ---------- Header ---------- */
.mvc-header {
  text-align: center;
  padding: var(--mvc-space-5) var(--mvc-space-3) var(--mvc-space-4);
}
.mvc-eyebrow {
  font-family: var(--mvc-font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mvc-orange-text);
  margin: 0 0 var(--mvc-space-2);
}
.mvc-title {
  font-family: var(--mvc-font-head);
  font-weight: 700;
  letter-spacing: -0.02em; /* guidelines: large headings tracked to -20 */
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  color: var(--mvc-ink);
  margin: 0 0 var(--mvc-space-2);
}
.mvc-dot { color: var(--mvc-orange); }
.mvc-swoosh {
  display: block;
  width: min(240px, 60%);
  height: auto;
  margin: 0 auto var(--mvc-space-3);
  color: var(--mvc-orange);
}
.mvc-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Steps ---------- */
.mvc-step {
  background: var(--mvc-white);
  border: 1px solid var(--mvc-border);
  border-radius: var(--mvc-radius-md);
  padding: var(--mvc-space-4);
  margin-bottom: var(--mvc-space-3);
  box-shadow: var(--mvc-shadow-sm);
}
.mvc-step-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--mvc-space-2);
}
.mvc-step-title {
  font-family: var(--mvc-font-head);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.3rem;
  color: var(--mvc-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--mvc-space-1);
}
.mvc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mvc-orange);
  color: var(--mvc-ink);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.mvc-step-hint {
  margin: 0 0 var(--mvc-space-3);
  font-size: 0.92rem;
  color: var(--mvc-muted);
}
.mvc-reset-btn {
  font-family: var(--mvc-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mvc-orange-text);
  background: var(--mvc-white);
  border: 1.5px solid var(--mvc-orange);
  border-radius: var(--mvc-radius-pill);
  padding: 6px 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.mvc-reset-btn:hover {
  background: var(--mvc-orange);
  color: var(--mvc-ink);
}

/* ---------- Combobox (origin search) ---------- */
.mvc-combobox { position: relative; }
.mvc-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--mvc-muted);
  pointer-events: none;
}
.mvc-input {
  width: 100%;
  font-family: var(--mvc-font-body);
  font-size: 1rem;
  padding: 13px 18px 13px 46px;
  border: 1.5px solid var(--mvc-border);
  border-radius: var(--mvc-radius-pill);
  background: var(--mvc-surface);
  color: var(--mvc-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mvc-input::placeholder { color: var(--mvc-muted); }
.mvc-input:focus {
  border-color: var(--mvc-orange);
  box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.12);
}
.mvc-listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: var(--mvc-space-1);
  list-style: none;
  background: var(--mvc-white);
  border: 1px solid var(--mvc-border);
  border-radius: var(--mvc-radius-md);
  box-shadow: var(--mvc-shadow-md);
}
.mvc-listbox[hidden] { display: none; }
.mvc-listbox li {
  padding: 10px 14px;
  border-radius: var(--mvc-radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--mvc-ink);
}
.mvc-listbox li .mvc-opt-state { color: var(--mvc-muted); }
.mvc-listbox li .mvc-opt-context {
  color: var(--mvc-muted);
  font-size: 0.85em;
}
.mvc-listbox li mark {
  background: var(--mvc-orange-tint);
  color: var(--mvc-ink);
  border-radius: 3px;
}
.mvc-listbox li[aria-selected="true"], .mvc-listbox li:hover {
  background: var(--mvc-orange-tint);
}
.mvc-listbox .mvc-listbox-empty {
  color: var(--mvc-muted);
  cursor: default;
}
.mvc-listbox .mvc-listbox-empty:hover { background: none; }

/* ---------- Dimension weight cards ---------- */
.mvc-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--mvc-space-3);
}
.mvc-dim-card {
  border: 1px solid var(--mvc-border);
  border-radius: var(--mvc-radius-md);
  padding: var(--mvc-space-3);
  background: var(--mvc-surface);
  transition: border-color 0.15s ease;
}
.mvc-dim-card:hover { border-color: var(--mvc-orange-tint); }
.mvc-dim-card.is-zero, .mvc-dim-card.is-neutralised { opacity: 0.6; }
.mvc-subzero-note {
  margin: var(--mvc-space-2) 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #7A4E00;
  background: var(--mvc-amber-tint);
  border-radius: var(--mvc-radius-sm);
  padding: 8px 12px;
}
.mvc-subzero-note[hidden] { display: none; }
.mvc-dim-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--mvc-space-2);
}
.mvc-dim-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--mvc-radius-sm);
  background: var(--mvc-orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mvc-orange);
}
.mvc-dim-icon svg { width: 18px; height: 18px; }
.mvc-dim-name {
  font-family: var(--mvc-font-head);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--mvc-ink);
  flex: 1;
}
.mvc-dim-weight-value {
  font-family: var(--mvc-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mvc-orange-text);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mvc-dim-single-note {
  margin: var(--mvc-space-1) 0 0;
  font-size: 0.78rem;
  color: var(--mvc-muted);
}

.mvc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--mvc-radius-pill);
  background: var(--mvc-orange-tint);
  outline: none;
  margin: 10px 0 6px;
  cursor: pointer;
}
.mvc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mvc-orange);
  border: 3px solid var(--mvc-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}
.mvc-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.mvc-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mvc-orange);
  border: 3px solid var(--mvc-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}
.mvc-slider.mvc-slider-sub::-webkit-slider-thumb { width: 16px; height: 16px; }

.mvc-advanced-toggle {
  font-family: var(--mvc-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mvc-orange-text);
  background: none;
  border: none;
  padding: var(--mvc-space-1) 0 0;
  cursor: pointer;
}
.mvc-advanced-toggle:hover { color: #A83A00; }
.mvc-advanced-panel {
  margin-top: var(--mvc-space-2);
  padding-top: var(--mvc-space-2);
  border-top: 1px dashed var(--mvc-border);
  display: grid;
  gap: 10px;
}
.mvc-advanced-panel[hidden] { display: none; }
.mvc-sub-row { font-size: 0.82rem; }
.mvc-sub-row-head {
  display: flex;
  justify-content: space-between;
  gap: var(--mvc-space-2);
  color: var(--mvc-body);
  margin-bottom: 2px;
}
.mvc-sub-weight-value {
  color: var(--mvc-orange-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Filters ---------- */
.mvc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mvc-space-4);
  margin-top: var(--mvc-space-3);
}
.mvc-filter-group { flex: 1; min-width: 240px; }

/* "Cheaper than home" switch — its own full-width row so the pill groups
   above never get squashed. iOS-style: grey track off, ink track on,
   white shadowed knob. */
.mvc-switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--mvc-space-4);
}
.mvc-switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: inline-block;
  width: 58px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--mvc-radius-pill);
  background: #C9C4C0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.mvc-switch:hover { background: #B8B2AD; }
.mvc-switch.is-on { background: var(--mvc-ink); }
.mvc-switch.is-on:hover { background: #333333; }
.mvc-switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mvc-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.mvc-switch.is-on .mvc-switch-knob { transform: translateX(24px); }
.mvc-switch-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mvc-ink);
  cursor: pointer;
  user-select: none;
}
.mvc-switch-note {
  margin: var(--mvc-space-2) 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #7A4E00;
  background: var(--mvc-amber-tint);
  border-radius: var(--mvc-radius-sm);
  padding: 8px 12px;
  display: inline-block;
}
.mvc-switch-note[hidden] { display: none; }

/* Post-selection confirmation under the search field: instant feedback that
   matches are ready plus a one-tap jump to them (results sit far below the
   sliders/filters, especially on mobile). */
.mvc-search-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--mvc-space-2) var(--mvc-space-3);
  margin-top: var(--mvc-space-3);
  padding: 10px 16px;
  background: var(--mvc-surface);
  border: 1px solid var(--mvc-border);
  border-radius: var(--mvc-radius-md);
}
.mvc-search-confirm[hidden] { display: none; }
.mvc-search-confirm-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mvc-ink);
}
.mvc-search-confirm-text .mvc-confirm-tick { color: var(--mvc-orange); }
.mvc-view-matches-btn {
  font-family: var(--mvc-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mvc-ink);
  background: var(--mvc-orange);
  border: none;
  border-radius: var(--mvc-radius-pill);
  padding: 8px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.mvc-view-matches-btn:hover { background: var(--mvc-orange-hover); }
.mvc-filter-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mvc-ink);
  margin-bottom: var(--mvc-space-2);
}
.mvc-segmented {
  display: inline-flex;
  background: var(--mvc-surface);
  border: 1px solid var(--mvc-border);
  border-radius: var(--mvc-radius-pill);
  padding: 4px;
  gap: 2px;
  flex-wrap: wrap;
}
.mvc-segment {
  font-family: var(--mvc-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--mvc-radius-pill);
  border: none;
  background: transparent;
  color: var(--mvc-body);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.mvc-segment:hover:not(.is-active) { color: var(--mvc-ink); }
.mvc-segment.is-active {
  background: var(--mvc-orange);
  color: var(--mvc-ink);
}

/* ---------- Results ---------- */
.mvc-results { padding: var(--mvc-space-2) 0; }
.mvc-results-placeholder {
  text-align: center;
  padding: var(--mvc-space-5) var(--mvc-space-3);
  color: var(--mvc-muted);
  font-size: 1rem;
}
.mvc-results-content[hidden] { display: none; }
.mvc-results-title {
  font-family: var(--mvc-font-head);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--mvc-ink);
  text-align: center;
  margin: var(--mvc-space-4) 0 var(--mvc-space-1);
}
.mvc-results-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--mvc-muted);
  margin: 0 0 var(--mvc-space-1);
}
.mvc-results-explainer {
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mvc-muted);
  max-width: 560px;
  margin: 0 auto var(--mvc-space-4);
}
.mvc-results-grid {
  display: grid;
  gap: var(--mvc-space-3);
}

/* Origin summary ("your home base") */
.mvc-origin-card {
  display: flex;
  gap: var(--mvc-space-3);
  align-items: center;
  background: var(--mvc-ink);
  color: var(--mvc-white);
  border-radius: var(--mvc-radius-md);
  padding: var(--mvc-space-3) var(--mvc-space-4);
  margin-bottom: var(--mvc-space-3);
}
.mvc-origin-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mvc-orange);
  color: var(--mvc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mvc-origin-badge svg { width: 26px; height: 26px; }
.mvc-origin-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mvc-amber);
  margin: 0 0 2px;
}
.mvc-origin-name {
  font-family: var(--mvc-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--mvc-white);
}
.mvc-origin-stats {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.mvc-origin-stats strong { color: var(--mvc-white); font-weight: 600; }
.mvc-origin-note {
  font-size: 0.78rem;
  color: var(--mvc-amber);
  margin: 6px 0 0;
}
/* Result cards */
.mvc-result-card {
  display: flex;
  gap: var(--mvc-space-3);
  align-items: flex-start;
  background: var(--mvc-white);
  border: 1px solid var(--mvc-border);
  border-radius: var(--mvc-radius-md);
  padding: var(--mvc-space-3) var(--mvc-space-3) var(--mvc-space-3) var(--mvc-space-4);
  position: relative;
  box-shadow: var(--mvc-shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mvc-result-card:hover {
  box-shadow: var(--mvc-shadow-md);
  border-color: var(--mvc-orange-tint);
}
.mvc-result-rank {
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--mvc-ink);
  color: var(--mvc-white);
  font-family: var(--mvc-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: var(--mvc-radius-pill);
}
.mvc-result-card:first-child .mvc-result-rank {
  background: var(--mvc-orange);
  color: var(--mvc-ink);
}
.mvc-result-gauge { flex-shrink: 0; width: 72px; }
.mvc-gauge-arc { transition: stroke-dashoffset 0.7s cubic-bezier(0.25, 1, 0.4, 1); }
.mvc-gauge-pct {
  font-family: var(--mvc-font-head);
  font-weight: 700;
  font-size: 1rem;
  fill: var(--mvc-ink);
}
.mvc-result-body { flex: 1; min-width: 0; }
.mvc-result-name {
  font-family: var(--mvc-font-head);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--mvc-ink);
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mvc-result-state { color: var(--mvc-muted); font-weight: 500; font-size: 0.85rem; }
.mvc-badge-samestate {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--mvc-amber-tint);
  color: #7A4E00;
  padding: 2px 10px;
  border-radius: var(--mvc-radius-pill);
}
.mvc-result-cost { margin: 0 0 8px; font-size: 0.95rem; }
.mvc-result-cost .mvc-cost-value { color: var(--mvc-ink); font-weight: 600; }
.mvc-result-cost .mvc-cost-saving { color: var(--mvc-orange-text); font-weight: 600; }
.mvc-result-cost .mvc-cost-costlier { color: var(--mvc-red); font-weight: 600; }
.mvc-result-expand {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mvc-body);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mvc-result-expand:hover { color: var(--mvc-orange-text); }
.mvc-result-breakdown {
  margin-top: var(--mvc-space-3);
  display: grid;
  gap: 8px;
}
.mvc-result-breakdown[hidden] { display: none; }
.mvc-breakdown-legend {
  display: flex;
  gap: var(--mvc-space-3);
  font-size: 0.72rem;
  color: var(--mvc-muted);
  margin-bottom: 2px;
}
.mvc-legend-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mvc-legend-swatch {
  width: 14px;
  height: 6px;
  border-radius: var(--mvc-radius-pill);
  display: inline-block;
}
.mvc-legend-swatch.origin { background: var(--mvc-amber); }
.mvc-legend-swatch.match { background: var(--mvc-orange); }
.mvc-breakdown-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.mvc-breakdown-label { color: var(--mvc-muted); }
.mvc-breakdown-bars { display: grid; gap: 3px; }
.mvc-bar-track {
  height: 6px;
  border-radius: var(--mvc-radius-pill);
  background: var(--mvc-surface);
  overflow: hidden;
}
.mvc-bar-fill { height: 100%; border-radius: var(--mvc-radius-pill); }
.mvc-bar-fill.origin { background: var(--mvc-amber); }
.mvc-bar-fill.match { background: var(--mvc-orange); }
.mvc-breakdown-footnote {
  margin: var(--mvc-space-1) 0 0;
  font-size: 0.78rem;
  color: var(--mvc-muted);
  border-top: 1px dashed var(--mvc-border);
  padding-top: var(--mvc-space-2);
}
.mvc-breakdown-footnote strong { color: var(--mvc-body); font-weight: 600; }

.mvc-empty-state, .mvc-weights-warning {
  text-align: center;
  padding: var(--mvc-space-5) var(--mvc-space-3);
  color: var(--mvc-muted);
}
.mvc-weights-warning { color: #7A4E00; background: var(--mvc-amber-tint); border-radius: var(--mvc-radius-md); }

/* ---------- CTA ---------- */
.mvc-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--mvc-space-3);
  background: var(--mvc-ink);
  border-radius: var(--mvc-radius-md);
  padding: var(--mvc-space-4);
  margin-top: var(--mvc-space-3);
}
.mvc-cta-card[hidden] { display: none; }
.mvc-cta-title {
  font-family: var(--mvc-font-head);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.35rem;
  color: var(--mvc-white);
  margin: 0 0 4px;
}
.mvc-cta-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.mvc-cta-btn {
  /* muval.com.au btn-primary convention: orange fill, black text */
  display: inline-block;
  font-family: var(--mvc-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mvc-ink);
  background: var(--mvc-orange);
  border-radius: var(--mvc-radius-pill);
  padding: 13px 28px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mvc-cta-btn:hover {
  background: var(--mvc-orange-hover);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.mvc-footer {
  margin-top: var(--mvc-space-4);
  padding: var(--mvc-space-3);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--mvc-muted);
  text-align: center;
  border-top: 1px solid var(--mvc-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .mvc-step { padding: var(--mvc-space-3); }
  .mvc-dimensions { grid-template-columns: 1fr; }
  .mvc-result-card { flex-direction: column; align-items: center; text-align: center; }
  .mvc-result-name { justify-content: center; }
  .mvc-origin-card { flex-direction: column; text-align: center; }
  .mvc-breakdown-row { grid-template-columns: 1fr; text-align: left; }
  /* Equal-width grid instead of wrapping pills — stops "Interstate only"
     orphaning onto its own centred row. */
  .mvc-segmented {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    width: 100%;
  }
  .mvc-segment {
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
  }
  .mvc-cta-card { flex-direction: column; text-align: center; }
}

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