/**
 * Fluid header / title — scales with viewport (mobile → 13"/14" laptop → 21" display).
 * Same layout: full width edge-to-edge; type and spacing grow/shrink proportionally.
 */
body.tev-home-page,
body.tev-marketplace-page {
  --tev-fluid-pad: clamp(0.65rem, 0.5rem + 1.8vw, 2.5rem);
  --tev-fluid-title: clamp(1.05rem, 0.7rem + 1.25vw, 1.55rem);
  --tev-fluid-sub: clamp(0.78rem, 0.58rem + 0.45vw, 1.05rem);
  --tev-fluid-brand: clamp(0.88rem, 0.62rem + 0.7vw, 1.42rem);
  --tev-fluid-brand-charge: clamp(0.5rem, 0.38rem + 0.32vw, 0.82rem);
  --tev-fluid-cta: clamp(0.72rem, 0.52rem + 0.38vw, 0.95rem);
  --tev-fluid-ticker-label: clamp(0.62rem, 0.48rem + 0.3vw, 0.8rem);
  --tev-fluid-ticker-text: clamp(0.72rem, 0.55rem + 0.35vw, 0.95rem);
  --tev-fluid-map-badge: clamp(0.62rem, 0.48rem + 0.28vw, 0.8rem);
  --tev-fluid-map-count: clamp(0.75rem, 0.58rem + 0.35vw, 0.95rem);
}

/* —— Homepage —— */
body.tev-home-page .hero .nav.container,
body.tev-home-page .hero-content.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--tev-fluid-pad);
  padding-right: var(--tev-fluid-pad);
  box-sizing: border-box;
}

body.tev-home-page .hero .nav {
  padding-top: clamp(0.35rem, 0.25rem + 0.5vw, 0.85rem);
  padding-bottom: clamp(0.35rem, 0.25rem + 0.5vw, 0.85rem);
  gap: clamp(0.5rem, 1vw, 1.25rem);
}

body.tev-home-page .hero .brand {
  font-size: var(--tev-fluid-brand);
}

body.tev-home-page .hero .brand-charging {
  font-size: var(--tev-fluid-brand-charge) !important;
}

body.tev-home-page .hero .cta-small {
  font-size: var(--tev-fluid-cta);
  padding: clamp(0.4rem, 0.3rem + 0.35vw, 0.6rem) clamp(0.65rem, 0.5rem + 0.8vw, 1.1rem);
}

body.tev-home-page .hero-text {
  max-width: none;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

body.tev-home-page .hero-text h1.tev-tagline-blue,
body.tev-home-page .hero-text h1#tev-hero-heading {
  font-size: var(--tev-fluid-title) !important;
  width: 100%;
  max-width: none;
  margin: -2rem 0 clamp(0.25rem, 0.5vw, 0.5rem) !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  text-align: center;
}

/* Header tickers — compact size (pre fluid-scale layout) */
body.tev-home-page .tickers-container.tev-tickers-full {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 650px;
  margin: -2px auto 0;
}

body.tev-home-page .tev-ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

body.tev-home-page .tev-ticker-label {
  font-weight: 800;
  color: #38bdf8;
  white-space: nowrap;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

body.tev-home-page .tev-ticker-strip {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  padding: 2px 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

body.tev-home-page .ticker-track span.brand-logo {
  font-size: 1rem !important;
}

body.tev-home-page .ticker-track .ticker-name {
  font-size: 0.95rem !important;
}

body.tev-home-page .ticker-track .ticker-loc {
  font-size: 0.72rem !important;
}

body.tev-home-page .hero .nav {
  position: relative;
  z-index: 40;
}

body.tev-home-page .nav-ctas-right {
  position: relative;
  z-index: 41;
}

body.tev-home-page .nav-ctas-right a.cta-small {
  position: relative;
  z-index: 42;
  pointer-events: auto;
}

body.tev-home-page .hero-content.container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.75rem, 3vw + 0.5rem, 3.75rem);
}

body.tev-home-page #hero-map-trigger {
  position: absolute;
  right: var(--tev-fluid-pad);
  bottom: clamp(0.35rem, 1vw, 0.85rem);
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 0.65rem);
  cursor: pointer;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

body.tev-home-page #hero-map-trigger .tev-live-points-badge {
  color: #0f172a;
  font-weight: 800;
  font-size: var(--tev-fluid-map-badge);
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.85);
  padding: clamp(3px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

body.tev-home-page #hero-map-trigger #live-points-count {
  color: #2563eb;
  font-size: var(--tev-fluid-map-count);
}

body.tev-home-page #hero-map-trigger svg {
  width: clamp(22px, 4vw, 32px);
  height: clamp(22px, 4vw, 32px);
}

body.tev-home-page .tev-map-pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

body.tev-home-page .tev-map-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: clamp(6px, 1.2vw, 9px);
  height: clamp(6px, 1.2vw, 9px);
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
}

body.tev-home-page .tev-ticker-loading {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0 0.5rem;
}

/* —— Marketplace product list —— */
body.tev-marketplace-page .tev-mp-nav {
  padding: clamp(0.35rem, 0.3rem + 0.4vw, 0.65rem) var(--tev-fluid-pad);
  min-height: clamp(40px, 8vw, 52px);
}

body.tev-marketplace-page .tev-mp-nav .brand {
  font-size: var(--tev-fluid-brand);
}

body.tev-marketplace-page .tev-mp-nav .brand-charging {
  font-size: var(--tev-fluid-brand-charge);
}

body.tev-marketplace-page .tev-mp-title-band {
  width: 100%;
  padding: clamp(0.4rem, 0.35rem + 0.5vw, 0.75rem) var(--tev-fluid-pad)
    clamp(0.5rem, 0.4rem + 0.55vw, 0.85rem);
}

body.tev-marketplace-page .tev-mp-title-band h1 {
  font-size: var(--tev-fluid-title);
}

body.tev-marketplace-page .tev-mp-title-band p {
  font-size: var(--tev-fluid-sub);
}

body.tev-marketplace-page .tev-mp-nav__titles h1 {
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.15rem);
}

body.tev-marketplace-page .tev-mp-nav__titles p {
  font-size: clamp(0.68rem, 0.58rem + 0.3vw, 0.85rem);
}

body.tev-marketplace-page .tev-mp-cart-btn {
  font-size: var(--tev-fluid-cta);
  padding: clamp(0.35rem, 0.3rem + 0.35vw, 0.55rem) clamp(0.6rem, 0.5rem + 0.7vw, 1rem);
}

/* Small phones: stack nav CTAs, center map chip */
@media (max-width: 520px) {
  body.tev-home-page .hero .nav {
    flex-wrap: wrap;
  }

  body.tev-home-page .nav-ctas-right {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    gap: 0.4rem;
  }

  body.tev-home-page .hero .cta-small {
    flex: 1 1 auto;
    text-align: center;
    font-size: clamp(0.68rem, 3.2vw, 0.82rem);
  }

  body.tev-home-page #hero-map-trigger {
    position: static;
    margin: clamp(0.5rem, 2vw, 0.85rem) auto 0;
    justify-content: center;
  }

  body.tev-home-page .hero-content.container {
    padding-bottom: 0.5rem;
  }

  body.tev-marketplace-page .tev-mp-nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    row-gap: 0;
  }

  body.tev-marketplace-page .tev-mp-nav__actions {
    width: auto;
    justify-content: flex-end;
  }
}

/* Let fluid scale win over compact-topbar fixed rem overrides */
body.tev-compact-topbar.tev-home-page .nav .brand-thunder,
body.tev-compact-topbar.tev-home-page .tev-partner-nav .brand-thunder {
  font-size: inherit !important;
}

body.tev-compact-topbar.tev-home-page .brand-charging {
  font-size: var(--tev-fluid-brand-charge) !important;
}

body.tev-compact-topbar.tev-home-page .nav a.cta-small {
  font-size: var(--tev-fluid-cta) !important;
}

/* Large desktops (21"+ / ultrawide): cap growth so type does not overshoot */
@media (min-width: 1600px) {
  body.tev-home-page,
  body.tev-marketplace-page {
    --tev-fluid-title: 1.55rem;
    --tev-fluid-sub: 1.05rem;
    --tev-fluid-brand: 1.42rem;
    --tev-fluid-pad: 2.5rem;
  }
}
