/**
 * Energy Badger — Memphis-style tokens + components (works with Tailwind utilities).
 */
:root {
  --deep-blue: #0f2744;
  --ocean-blue: #1d4ed8;
  --ocean-blue-hover: #1e40af;
  --sky-blue: #3b82f6;
  --light-blue: #60a5fa;
  --pale-blue: #bfdbfe;
  /** Legacy hue names — remapped to blues for a single coherent palette */
  --forest-green: #0c4a6e;
  --emerald-green: #0891b2;
  --sage-green: #0e7490;
  --mint-green: #22d3ee;
  --eb-yellow: #38bdf8;
  --eb-mint: #22d3ee;
  --eb-coral: #6366f1;
  --eb-lilac: #818cf8;
  --black: #0b0f17;
  /** Near-black band for alternating sections (with light foreground in `.eb-section-ink`) */
  --eb-charcoal: #0f172a;
  --white: #ffffff;
  --gray-light: #f1f5f9;
  --gray-medium: #94a3b8;
  /** Darker than Bootstrap’s default .text-secondary for readability on pale backgrounds */
  --eb-text-secondary: #475569;
}

.text-secondary {
  color: var(--eb-text-secondary) !important;
}

/* Footer stays light-on-dark (copyright, separators, muted contact lines) */
.eb-site-footer .text-secondary {
  color: rgba(255, 255, 255, 0.68) !important;
}

.memphis-bg {
  background-color: var(--pale-blue);
  position: relative;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.memphis-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--sky-blue);
  border-radius: 50%;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.memphis-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: var(--ocean-blue);
  border-radius: 50%;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.memphis-bg > * {
  position: relative;
  z-index: 1;
}

.memphis-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border: 3px solid var(--black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memphis-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

/** Homepage “Our services” — keep product photos compact on small screens */
@media (max-width: 767.98px) {
  .eb-service-product-thumb {
    max-width: 10.5rem;
  }
}

.memphis-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  background: var(--ocean-blue);
  border: 3px solid var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.memphis-button:hover {
  color: var(--white);
  background: var(--ocean-blue-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

/** Primary CTA — sentence case, less “sales” than all-caps */
.memphis-button--natural {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.memphis-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ocean-blue);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.memphis-button-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.memphis-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  background: var(--emerald-green);
  border: 3px solid var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.memphis-button-secondary:hover {
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.eb-input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: var(--white);
  border: 2px solid var(--black);
}

.eb-input-field:focus {
  outline: none;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
}

.eb-input-field.eb-input-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.eb-input-field.eb-input-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.28);
}

/** Password fields: eye toggle aligned inside the input */
.eb-password-field {
  position: relative;
}

.eb-password-field .eb-input-field {
  padding-right: 2.75rem;
}

.eb-password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  line-height: 0;
}

.eb-password-toggle:hover {
  color: var(--ocean-blue);
}

.eb-password-toggle:focus-visible {
  outline: 2px solid var(--ocean-blue);
  outline-offset: 2px;
}

.eb-password-toggle__icon {
  display: inline-flex;
  pointer-events: none;
}

.text-ocean-blue {
  color: var(--ocean-blue);
}

/** Portal home: quote / message counts */
.eb-portal-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  box-sizing: border-box;
  border-radius: 9999px;
  background: var(--ocean-blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/** Customer portal top nav: compact blue pill on Quotes / Messages */
.eb-portal-nav-count-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.28rem;
  box-sizing: border-box;
  border-radius: 9999px;
  background: var(--ocean-blue);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--white);
  pointer-events: none;
}

.text-emerald-green {
  color: var(--emerald-green);
}
.text-eb-coral {
  color: var(--eb-coral);
}
.text-eb-mint {
  color: var(--eb-mint);
}
.text-eb-lilac {
  color: var(--eb-lilac);
}
.text-eb-yellow {
  color: var(--eb-yellow);
}
.bg-eb-yellow-tint {
  background-color: color-mix(in srgb, var(--eb-yellow) 22%, transparent);
}
.bg-eb-mint-tint {
  background-color: color-mix(in srgb, var(--eb-mint) 22%, transparent);
}
.bg-eb-lilac-tint {
  background-color: color-mix(in srgb, var(--eb-lilac) 22%, transparent);
}

/** Step badges / inline panels that used hardcoded green tints */
.bg-eb-accent-tint {
  background-color: color-mix(in srgb, var(--emerald-green) 22%, transparent);
}

.bg-eb-accent-tint-strong {
  background-color: color-mix(in srgb, var(--emerald-green) 28%, transparent);
}

/**
 * Dark section band: light copy on the band; cards and accordions stay white so tints and body text stay readable.
 */
.eb-section-ink {
  background-color: var(--eb-charcoal);
  color: rgba(255, 255, 255, 0.93);
}

.eb-section-ink > .container,
.eb-section-ink > .container-fluid {
  --bs-body-color: rgba(255, 255, 255, 0.93);
}

.eb-section-ink .text-secondary {
  color: rgba(255, 255, 255, 0.74) !important;
}

.eb-section-ink .lead {
  color: rgba(255, 255, 255, 0.92) !important;
}

.eb-section-ink .lead strong {
  color: #fff !important;
}

.eb-section-ink .memphis-card .lead strong {
  color: var(--black) !important;
}

.eb-section-ink h1,
.eb-section-ink h2,
.eb-section-ink h3,
.eb-section-ink h4,
.eb-section-ink .display-5,
.eb-section-ink .display-6 {
  color: #fff !important;
}

.eb-section-ink .text-black {
  color: #fff !important;
}

.eb-section-ink a.text-ocean-blue,
.eb-section-ink a.fw-semibold.text-ocean-blue {
  color: var(--pale-blue) !important;
}

.eb-section-ink a.text-ocean-blue:hover,
.eb-section-ink a.fw-semibold.text-ocean-blue:hover {
  color: #fff !important;
}

.eb-section-ink .text-ocean-blue:not(a) {
  color: var(--pale-blue) !important;
}

/* Restore dark-on-light inside white cards / panels */
.eb-section-ink .memphis-card,
.eb-section-ink .memphis-card h1,
.eb-section-ink .memphis-card h2,
.eb-section-ink .memphis-card h3,
.eb-section-ink .memphis-card h4,
.eb-section-ink .memphis-card h5,
.eb-section-ink .memphis-card .text-black,
.eb-section-ink .memphis-card .lead {
  color: var(--black) !important;
}

.eb-section-ink .memphis-card .text-secondary {
  color: var(--eb-text-secondary) !important;
}

.eb-section-ink .memphis-card a.text-ocean-blue {
  color: var(--ocean-blue) !important;
}

.eb-section-ink .memphis-card a.text-ocean-blue:hover {
  color: var(--deep-blue) !important;
}

/* Step numbers use coloured .display-6 — override generic heading colour on cards */
.eb-section-ink .memphis-card .display-6.text-eb-coral {
  color: var(--eb-coral) !important;
}

.eb-section-ink .memphis-card .display-6.text-eb-mint {
  color: var(--eb-mint) !important;
}

.eb-section-ink .memphis-card .display-6.text-eb-lilac {
  color: var(--eb-lilac) !important;
}

.eb-section-ink .accordion-item.bg-white,
.eb-section-ink .accordion-item.bg-white .accordion-button {
  color: var(--black) !important;
}

.eb-section-ink .accordion-item.bg-white .accordion-body.text-secondary {
  color: var(--eb-text-secondary) !important;
}

.eb-section-ink .accordion-item.bg-white a.text-ocean-blue {
  color: var(--ocean-blue) !important;
}

.eb-section-ink figure.memphis-card .text-black,
.eb-section-ink figure.memphis-card figcaption .text-black {
  color: var(--black) !important;
}

.eb-section-ink figure.memphis-card .text-secondary {
  color: var(--eb-text-secondary) !important;
}

/* Wrapped service cards: Bootstrap `text-reset` inherits section white — force dark copy on the card */
.eb-section-ink a.text-decoration-none.text-reset {
  color: var(--black) !important;
}

.eb-section-ink a.text-decoration-none.text-reset .text-ocean-blue {
  color: var(--ocean-blue) !important;
}

.eb-section-ink a.text-decoration-none.text-reset .text-eb-coral {
  color: var(--eb-coral) !important;
}

/* Inline light panels on charcoal (e.g. disclaimer strip) */
.eb-section-ink p.bg-white.text-secondary,
.eb-section-ink p.bg-white {
  color: var(--eb-text-secondary) !important;
}

.eb-section-ink p.bg-white .text-ocean-blue {
  color: var(--ocean-blue) !important;
}

.eb-section-ink .border-dark.border-opacity-10 {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.eb-section-ink hr.border-dark {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/**
 * Tailwind CDN defines a `.collapse` utility that overrides Bootstrap 5’s
 * `.collapse` on `.navbar-collapse`, hiding nav links. Restore Bootstrap behaviour.
 */
nav.navbar .navbar-collapse.collapse {
  visibility: visible !important;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  nav.navbar.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-end;
    height: auto !important;
    overflow: visible !important;
  }

  .eb-site-navbar > .container {
    align-items: center;
  }
}

/* Main nav — 110px strip + full-size logo overlapping below (same as former desktop-only treatment) */
.eb-site-navbar {
  min-height: 110px;
  height: 110px;
  overflow: visible;
}

.eb-site-navbar > .container {
  overflow: visible;
}

.eb-site-navbar .eb-nav-logo {
  width: auto;
  height: auto;
  max-width: min(210px, calc(100vw - 5.5rem));
  max-height: 210px;
  object-fit: contain;
  margin-top: 60px;
}

/**
 * Shared mobile nav shell (marketing site + customer / installer / admin portals):
 * compact header row, solid panel under the toggler, same grid as index.php main nav.
 */
@media (max-width: 991.98px) {
  .eb-mobile-nav-shell {
    height: auto;
    min-height: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--white) !important;
  }

  .eb-mobile-nav-shell > .container,
  .eb-mobile-nav-shell > .container-fluid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 0.5rem;
  }

  .eb-mobile-nav-shell.navbar {
    --bs-navbar-padding-y: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .eb-mobile-nav-shell .navbar-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: start;
  }

  /* Marketing + portals: keep header row short so the menu sits just under the toggler */
  .eb-mobile-nav-shell .eb-nav-logo {
    margin-top: 0.35rem;
    max-height: 80px;
    width: auto;
  }

  .eb-mobile-nav-shell .navbar-toggler {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 0.35rem;
  }

  .eb-mobile-nav-shell .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    z-index: 1035;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 0.35rem;
    box-shadow: 0 8px 24px rgba(11, 15, 23, 0.12);
    width: 100%;
    max-width: 100%;
  }

  .eb-mobile-nav-shell .navbar-collapse .navbar-nav,
  .eb-mobile-nav-shell .navbar-collapse > .d-flex {
    width: 100%;
  }

}

@media (min-width: 992px) {
  .eb-site-navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Installer portal — same logo treatment as main site nav (110px strip + overlapping logo) */
.eb-installer-navbar {
  min-height: 110px;
  overflow: visible;
}

.eb-installer-navbar > .container-fluid {
  overflow: visible;
}

.eb-installer-navbar .eb-nav-logo {
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  /* Installer + admin portal nav: fixed band when not on mobile (matches prior header strip) */
  .eb-installer-navbar.eb-mobile-nav-shell {
    height: 120px;
    padding-top: 80px;
  }

  .eb-installer-navbar .eb-nav-logo {
    max-width: min(210px, calc(100vw - 5.5rem));
    max-height: 210px;
  }
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Home hero — grid stack so the image grows with content (avoids clipping on narrow viewports) */
.eb-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.eb-hero-inner > .eb-hero-img,
.eb-hero-inner > .eb-hero-overlay {
  grid-column: 1;
  grid-row: 1;
}

.eb-hero-inner > .eb-hero-img {
  display: block;
  width: 100%;
  min-height: 18rem;
  height: 100%;
  align-self: stretch;
  object-fit: cover;
  /* Shift focus toward roof/home; reduces mascot competing with estimator */
  object-position: 62% 42%;
  /* Let the row grow with overlay content on small screens; cap height on large screens */
  max-height: none;
}

@media (min-width: 992px) {
  .eb-hero-inner > .eb-hero-img {
    object-position: 58% 38%;
  }
}

/** Stronger readability over photo */
.eb-hero-overlay--readable {
  background: linear-gradient(
    115deg,
    rgba(11, 24, 44, 0.97) 0%,
    rgba(15, 39, 68, 0.88) 35%,
    rgba(15, 39, 68, 0.55) 58%,
    rgba(15, 39, 68, 0.25) 78%,
    rgba(15, 39, 68, 0.12) 100%
  ) !important;
}

.eb-hero-lead {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/** Premium estimator panel */
.eb-estimator-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(11, 15, 23, 0.12);
  box-shadow: 0 12px 40px rgba(11, 15, 23, 0.18), 0 2px 0 rgba(11, 15, 23, 0.06);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.eb-estimator-card .memphis-button {
  min-height: 2.75rem;
}

@media (max-width: 575.98px) {
  .eb-estimator-card .memphis-button {
    min-height: 3rem;
  }
}

/** Section surfaces — cohesive bands */
.eb-section-surface {
  background: var(--gray-light);
}

.eb-section-surface-white {
  background: rgba(255, 255, 255, 0.92);
}

.eb-section-surface-tint {
  background: color-mix(in srgb, var(--pale-blue) 35%, var(--white));
}

/** Mobile sticky conversion bar */
.eb-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding: 0.65rem 1rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 2px solid var(--black);
  box-shadow: 0 -6px 24px rgba(11, 15, 23, 0.12);
}

.eb-sticky-cta .memphis-button {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.eb-home-sticky-padding {
  padding-bottom: 5.25rem;
}

@media (min-width: 992px) {
  .eb-home-sticky-padding {
    padding-bottom: 0;
  }
}

.eb-hero-inner > .eb-hero-overlay {
  position: relative;
  z-index: 1;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .eb-hero-inner > .eb-hero-img {
    min-height: 22rem;
  }
}

@media (min-width: 992px) {
  .eb-hero-inner > .eb-hero-img {
    min-height: 26rem;
    max-height: 72vh;
  }
}

/* Site footer — social icons stay white; SVGs use currentColor */
.eb-site-footer .eb-footer-social-link {
  color: #fff !important;
  background: transparent;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.eb-site-footer .eb-footer-social-link:hover,
.eb-site-footer .eb-footer-social-link:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
  transform: translateY(-2px);
}

.eb-site-footer .eb-footer-social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

/* Legal / policy pages */
.eb-legal-page {
  max-width: 48rem;
}

/* Solar savings page — layout & step chrome (Memphis: bold border, ocean-blue) */
.eb-solar-page__hero {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.eb-solar-page__lede {
  line-height: 1.55;
}
.eb-solar-steps {
  row-gap: 0.5rem;
}
.eb-solar-steps__arrow {
  opacity: 0.45;
  font-size: 0.85rem;
  user-select: none;
}
.eb-solar-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--eb-text-secondary);
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(15, 23, 42, 0.12);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.eb-solar-step-pill.is-active {
  color: var(--ocean-blue);
  background: #fff;
  border-color: var(--ocean-blue);
  box-shadow: 3px 3px 0 rgba(29, 78, 216, 0.18);
}
.memphis-card.memphis-card--solar-wizard {
  box-shadow: 0 12px 28px -8px rgba(11, 15, 23, 0.12);
}
.memphis-card.memphis-card--solar-wizard:hover {
  transform: translateY(-2px);
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.1);
}
.eb-solar-panel__title {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(29, 78, 216, 0.2);
}
.eb-solar-fieldset {
  background: rgba(255, 255, 255, 0.5);
}
.eb-solar-stat-card--accent {
  background: linear-gradient(145deg, color-mix(in srgb, var(--eb-mint) 18%, #fff) 0%, #fff 100%);
}
.eb-solar-stat-card:not(.eb-solar-stat-card--accent) {
  background: linear-gradient(180deg, #fff 0%, var(--gray-light) 100%);
}
.eb-solar-assumptions {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.eb-solar-roof-hints {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Roof snapshot — document-style header, soft panel, per-face tabs */
.eb-solar-roof-snapshot {
  --eb-roof-snapshot-surface: #f4f6f8;
  background: var(--eb-roof-snapshot-surface) !important;
}
.eb-solar-roof-snapshot__head-icon,
.eb-solar-roof-snapshot__title {
  color: var(--ocean-blue);
}
.eb-solar-roof-snapshot__title {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.eb-solar-roof-snapshot__disclaimer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--eb-text-secondary, #5c5c5c);
}
.eb-solar-roof-snapshot__disclaimer-icon {
  color: var(--eb-text-secondary, #5c5c5c);
  margin-top: 0.1rem;
  opacity: 0.85;
}

.eb-solar-roof-snapshot__subsection--property {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.eb-solar-roof-snapshot__subsection-title {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ocean-blue);
}
.eb-solar-roof-snapshot__subsection-sub {
  line-height: 1.4;
  max-width: 42rem;
}

/* Roof snapshot — per-face tabs (when multiple roof segments are available) */
.eb-roof-face-tabs {
  width: 100%;
  margin-bottom: 0.6rem;
}
.eb-roof-face-tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eb-roof-face-tabs .nav-item {
  margin: 0;
}
.eb-roof-face-tabs__tab.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #64748b !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 9999px !important;
  padding: 0.45rem 0.85rem 0.45rem 0.75rem;
  margin: 0;
  white-space: normal;
  text-align: left;
  max-width: 100%;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.eb-roof-face-tabs__tab .eb-roof-face-tabs__text {
  min-width: 0;
  text-align: left;
  white-space: normal;
}
.eb-roof-face-tabs__tab .eb-roof-face-tabs__compass {
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
}
.eb-roof-face-tabs__tab.nav-link:hover {
  border-color: rgba(29, 78, 216, 0.4) !important;
  color: var(--ocean-blue) !important;
  background: #fff;
  transform: translateY(-1px);
}
.eb-roof-face-tabs__tab.nav-link.active {
  color: #fff !important;
  background: var(--ocean-blue) !important;
  border-color: #1a56c8 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
.eb-roof-face-tabs__tab.nav-link.active:hover {
  color: #fff !important;
  background: #1a56c8 !important;
  border-color: #174cb3 !important;
  transform: none;
}
.eb-roof-face-tabs__tab.nav-link:focus-visible {
  outline: 2px solid var(--ocean-blue);
  outline-offset: 2px;
}
.letter-spacing-wide {
  letter-spacing: 0.06em;
}

/* Solar savings wizard — Leaflet map */
.eb-solar-map {
  min-height: 300px;
  max-height: 75vh;
  resize: vertical;
  overflow: hidden;
  background: var(--gray-light);
}
@media (min-width: 768px) {
  .eb-solar-map {
    min-height: 360px;
  }
}

/* Solar wizard — roof hint grid (small bordered cards) */
.eb-solar-roof-snapshot .eb-roof-hint-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(15, 23, 42, 0.06);
}
.eb-roof-hint-card {
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
}
.eb-roof-hint-card__icon {
  margin-top: 0.2rem;
  opacity: 0.92;
  width: 22px;
  height: 22px;
}
.eb-roof-hint-card__label {
  font-size: clamp(0.95rem, 2.6vw, 1rem);
  /* font-weight: 800; */
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.45rem;
}
.eb-roof-hint-card__value {
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.eb-roof-hint-card__note {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--eb-text-secondary, #5c5c5c);
  line-height: 1.35;
  margin-top: 0.45rem;
}
.eb-roof-area-override-controls {
  row-gap: 0.5rem;
}
.eb-roof-area-override-input {
  max-width: 150px;
}
.eb-roof-area-override-actions {
  flex-wrap: nowrap;
}
.eb-roof-area-override-btn {
  min-width: 84px;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}

.leaflet-container {
  font-family: Inter, system-ui, sans-serif;
}

/* Solar savings — prominent export / self-consumption toggle */
.eb-tariff-advanced-toggle .form-switch .form-check-input,
.eb-annual-flux-toggle .form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  border: 2px solid var(--black);
  cursor: pointer;
}
.eb-tariff-advanced-toggle .form-switch .form-check-input:focus,
.eb-annual-flux-toggle .form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.35);
  border-color: var(--ocean-blue);
}
.eb-tariff-advanced-toggle .form-switch .form-check-input:checked,
.eb-annual-flux-toggle .form-switch .form-check-input:checked {
  background-color: var(--ocean-blue);
  border-color: var(--black);
}

/* Solar savings wizard — wide help tooltips */
.eb-solar-tooltip-wide .tooltip-inner {
  max-width: 22rem;
  text-align: left;
}
.eb-wizard-help:focus-visible {
  outline: 2px solid var(--ocean-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/*
 * Tailwind 3.4+ ships a `.collapse` utility (visibility: collapse for tables).
 * Bootstrap accordions use the same class name on panels — without this override,
 * body text can vanish when a panel opens.
 */
.accordion .accordion-collapse.collapse,
.accordion .accordion-collapse.collapsing,
.accordion .accordion-collapse.collapse.show {
  visibility: visible !important;
}

/* Home FAQ accordion */
.eb-faq-accordion .accordion-button {
  background-color: #fff;
  color: var(--black);
  box-shadow: none;
}
.eb-faq-accordion .accordion-button:not(.collapsed) {
  background-color: color-mix(in srgb, var(--pale-blue) 38%, transparent);
  color: var(--black);
  box-shadow: none;
}
.eb-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.eb-faq-accordion .accordion-button:focus-visible {
  outline: 2px solid var(--ocean-blue);
  outline-offset: -2px;
  z-index: 1;
}
.eb-faq-accordion .accordion-body {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eb-faq-accordion .accordion-item {
  border-radius: 0.75rem !important;
  margin-bottom: 0.75rem !important;
  border-width: 1px !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 2px 8px rgba(11, 15, 23, 0.06);
}

.eb-testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--eb-text-secondary);
}

.eb-why-pillar {
  border-left: 4px solid var(--ocean-blue);
  padding-left: 1rem;
}

.eb-decision-card {
  border-radius: 1rem;
  border: 2px solid var(--black);
  background: var(--white);
  padding: 1.25rem 1.35rem;
  height: 100%;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
}

/* Trust & credentials strip (compact + footer) */
.eb-trust-strip {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
}
.eb-trust-strip--footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}
.eb-trust-strip--light {
  padding-bottom: 1rem;
}
.eb-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.eb-trust-item.memphis-card {
  padding: 1rem 1.1rem;
}
.eb-trust-item__label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.eb-trust-strip--footer .eb-trust-item.memphis-card {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.eb-trust-strip--footer .eb-trust-item.memphis-card:hover {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

/* Trust banner strip — matches homepage “premium” light panels */
.eb-trust-banner {
  background: color-mix(in srgb, var(--white) 94%, var(--pale-blue));
}

/** Logo strip only (e.g. under booking form) — no credential cards */
.eb-trust-logos-only {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

/* Homepage trust banner (logo strip below hero) */
.eb-trust-banner__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}
.eb-trust-banner__slot {
  flex: 0 1 auto;
}
.eb-trust-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  color: inherit;
}
.eb-trust-banner__link:focus-visible {
  outline: 2px solid var(--ocean-blue);
  outline-offset: 4px;
  border-radius: 0.35rem;
}
.eb-trust-banner__img {
  max-height: 3rem;
  width: auto;
  max-width: 9rem;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: grayscale(0.06);
}

.eb-trust-banner__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.eb-trust-banner__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--eb-text-secondary);
  background: color-mix(in srgb, var(--pale-blue) 45%, var(--white));
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
}

.eb-trust-banner__chip svg {
  flex-shrink: 0;
  color: var(--emerald-green);
}
@media (min-width: 768px) {
  .eb-trust-banner__img {
    max-height: 3.25rem;
    max-width: 10rem;
  }
}
.eb-trust-banner__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 2px dashed rgba(15, 23, 42, 0.22);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
}
.eb-trust-banner__placeholder-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eb-text-secondary);
}
.eb-trust-banner__link--placeholder:hover .eb-trust-banner__placeholder {
  border-color: rgba(29, 78, 216, 0.45);
  background: rgba(29, 78, 216, 0.06);
}

/* Solar wizard — property & area insights drawer */
.eb-insights-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.eb-insights-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}
.eb-insights-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(100vw, 36.25rem);
  max-width: 100%;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}
.eb-insights-panel.is-open {
  transform: translateX(0);
}
.eb-insights-panel__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
}
@media (min-width: 576px) {
  .eb-insights-panel__inner {
    border-radius: 0 0 0 0.75rem;
  }
}
.eb-insights-panel__body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.eb-insights-kv li:last-child {
  border-bottom: 0 !important;
}
.eb-insights-breakdown li:last-child {
  border-bottom: 0 !important;
}
.eb-insights-details summary {
  cursor: pointer;
  list-style-position: outside;
}
.eb-insights-epc-badge {
  min-width: 7rem;
  background: color-mix(in srgb, var(--pale-blue, #e8f4fc) 55%, var(--white, #fff));
}
.eb-insights-epc-letter {
  font-size: 1.35rem;
  line-height: 1.2;
}
