/* =======================================================
   sr-design-fix-final.css
   Comprehensive Design Fix - 2026-06-01
   Fixes: body padding, mobile overlap, scroll conflicts,
   footer layout, header overflow, promo FAB stacking
   MUST be loaded LAST to override all conflicting CSS
   ======================================================= */

/* ===================== 1. GLOBAL SCROLL FIX ===================== */
html {
  overflow-x: clip !important;
  overflow-y: auto !important;
  height: auto !important;
  scrollbar-gutter: auto !important;
}

html body.sr-site,
html body.sr-site.sr-flagship {
  overflow-x: clip !important;
  overflow-y: clip !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100vw !important;
  margin: 0 !important;
}

body.sr-site .site-wrapper,
body.sr-site main {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

body.sr-site section[id] {
  overflow-x: clip !important;
  overflow-y: clip !important;
}

/* ===================== 2. REMOVE BODY PADDING (DESKTOP) ===================== */
@media (min-width: 981px) {
  html body.sr-site,
  html body.sr-site.sr-flagship {
    padding-right: 0 !important;
  }

  html body.sr-site nav.nav-glass,
  html body.sr-site .nav-glass,
  html body.sr-site .sr-vdm,
  html body.sr-site header.sr-vdm {
    width: 100% !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  html body.sr-site footer.sr-footer-pro,
  html body.sr-site .footer-premium {
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
}

/* ===================== 3. ACQUISITION CARD FIX ===================== */
@media (min-width: 981px) {
  #sr-acq-card {
    position: fixed !important;
    top: auto !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    width: 320px !important;
    max-width: 320px !important;
    z-index: 9999 !important;
  }

  #sr-acq-card .sr-acq-card-link {
    padding: 14px !important;
    max-height: 280px !important;
    overflow: hidden !important;
  }

  #sr-acq-card .sr-acq-title {
    font-size: 14px !important;
    max-width: 280px !important;
    line-height: 1.2 !important;
  }

  #sr-acq-card .sr-acq-copy {
    font-size: 11px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
  }

  #sr-acq-card .sr-acq-proof {
    gap: 5px !important;
    margin-bottom: 8px !important;
  }

  #sr-acq-card .sr-acq-metric {
    min-height: 40px !important;
    padding: 5px !important;
  }

  #sr-acq-card .sr-acq-metric small {
    display: none !important;
  }

  #sr-acq-card .sr-acq-cta {
    min-height: 30px !important;
    font-size: 10px !important;
    padding: 6px 10px !important;
    margin-bottom: 4px !important;
  }

  #sr-acq-card .sr-acq-note {
    font-size: 9px !important;
  }
}

@media (max-width: 980px) {
  html body.sr-site {
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  #sr-acq-card {
    position: fixed !important;
    top: auto !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    z-index: 9999 !important;
  }

  #sr-acq-card .sr-acq-card-link {
    padding: 10px 12px !important;
    max-height: 100px !important;
    overflow: hidden !important;
  }

  #sr-acq-card .sr-acq-title {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100% - 30px) !important;
  }

  #sr-acq-card .sr-acq-copy {
    font-size: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
  }

  #sr-acq-card .sr-acq-proof {
    display: none !important;
  }

  #sr-acq-card .sr-acq-cta {
    min-height: 26px !important;
    font-size: 9px !important;
    padding: 5px 8px !important;
    margin-bottom: 0 !important;
  }

  #sr-acq-card .sr-acq-note {
    display: none !important;
  }

  #sr-acq-card .sr-acq-kicker {
    font-size: 8px !important;
    padding: 3px 7px !important;
    margin-bottom: 4px !important;
  }
}

/* ===================== 4. PROMO FAB STACKING FIX ===================== */
@media (min-width: 981px) {
  html body.sr-site #sr-promo-fab,
  .sr-promo-fab {
    right: 16px !important;
    bottom: 310px !important;
    z-index: 9998 !important;
    max-width: 300px !important;
  }

  html body.sr-site #back-to-top,
  .back-to-top {
    right: 16px !important;
    bottom: 380px !important;
    z-index: 9997 !important;
  }
}

@media (max-width: 980px) {
  html body.sr-site #sr-promo-fab,
  .sr-promo-fab {
    right: 8px !important;
    bottom: 120px !important;
    z-index: 9998 !important;
    max-width: min(16rem, calc(100vw - 1rem)) !important;
    transform: scale(0.88) !important;
    transform-origin: bottom right !important;
  }

  html body.sr-site #back-to-top,
  .back-to-top.visible {
    right: 8px !important;
    bottom: 180px !important;
    z-index: 9997 !important;
  }
}

/* ===================== 5. HEADER BRAND OVERFLOW FIX ===================== */
html body.sr-site .sr-vdm-bar {
  max-width: 100% !important;
  overflow: visible !important;
}

html body.sr-site .sr-vdm-brand {
  min-width: 0 !important;
  overflow: hidden !important;
}

html body.sr-site .sr-vdm-brand-title,
html body.sr-site .sr-vdm-wordmark {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  html body.sr-site .sr-vdm-brand-title {
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
  }

  html body.sr-site .sr-nexus-mark {
    width: 2.8rem !important;
    height: 2.8rem !important;
  }

  html body.sr-site .sr-nexus-logo {
    width: 2.2rem !important;
    height: 2.2rem !important;
  }

  html body.sr-site .sr-vdm-brand {
    max-width: calc(100% - 7rem) !important;
  }

  html body.sr-site .sr-vdm-stars {
    display: none !important;
  }

  html body.sr-site .sr-vdm-ops {
    gap: 0.35rem !important;
  }

  html body.sr-site .sr-vdm-aud,
  html body.sr-site .sr-vdm-utc {
    font-size: 0.6rem !important;
  }
}

/* ===================== 6. FOOTER LAYOUT FIX ===================== */
html body.sr-site .sr-footer-pro__matrix > .sr-footer-pro__card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body.sr-site .sr-footer-pro__card-head,
html body.sr-site .sr-footer-pro__nav {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body.sr-site .sr-footer-pro__nav a {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  align-items: center !important;
  gap: 0.6rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body.sr-site .sr-footer-pro__nav a span {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Footer language grid fix */
html body.sr-site .sr-footer-col--langs .sr-footer-lang-grid,
html body.sr-site .sr-footer-lang-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  gap: 0.4rem !important;
  align-items: flex-start !important;
}

html body.sr-site .sr-footer-lang-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.35rem !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 2rem !important;
  padding: 0.34rem 0.62rem !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

html body.sr-site .sr-footer-lang-flag {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  width: 1.35rem !important;
  height: 0.95rem !important;
  border-radius: 0.2rem !important;
}

html body.sr-site .sr-footer-lang-code {
  display: inline-block !important;
  position: static !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Footer bottom padding for mobile */
@media (max-width: 980px) {
  html body.sr-site footer.footer-premium.sr-footer-pro {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 981px) {
  html body.sr-site .sr-footer-pro__matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

/* ===================== 7. WORLD SOLAR BG Z-INDEX FIX ===================== */
html body.sr-site #world-solar-bg,
html body.sr-site #world-solar-bg * {
  pointer-events: none !important;
}

html body.sr-site #world-solar-bg {
  z-index: 1 !important;
}

html body.sr-site .site-wrapper,
html body.sr-site main,
html body.sr-site section[id] {
  position: relative;
  z-index: 4;
  background: transparent !important;
}

/* ===================== 8. STAR MODAL FIX ===================== */
html body.sr-site #star-chart-modal:not(.open),
html body.sr-site .star-modal:not(.open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body.sr-site #star-chart-modal.open,
html body.sr-site .star-modal.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ===================== 9. HERO SECTION FIX ===================== */
html body.sr-site .sr-hero-pro.sr-aether-hero {
  display: flex !important;
  flex-direction: column !important;
  overflow-x: clip !important;
  overflow-y: clip !important;
  min-height: auto !important;
}

html body.sr-site .sr-hero-pro .sr-aether-orbit-svg,
html body.sr-site .sr-hero-pro .sr-aether-pulse,
html body.sr-site .sr-hero-pro .sr-aether-kicker,
html body.sr-site .sr-hero-pro .sr-aether-portal {
  display: none !important;
}

html body.sr-site .sr-hero-pro__spectro-frame,
html body.sr-site .sr-hero-pro__spectro-frame img {
  border-radius: 0 !important;
  clip-path: none !important;
}

/* ===================== 10. COOKIE BANNER + PROMO INTERACTION ===================== */
body.sr-site:has(.sr-cookie-banner:not([hidden]):not([style*="display:none"])) .sr-promo-fab.is-visible {
  bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.sr-site:has(.sr-cookie-banner:not([hidden]):not([style*="display:none"])) .back-to-top.visible {
  bottom: calc(8rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* ===================== 11. EARTH HEART HIDE ===================== */
html body.sr-site .sr-earth-heart,
html body.sr-site #world-solar-bg .sr-earth-heart {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ===================== 12. RESPONSIVE TYPOGRAPHY ===================== */
@media (max-width: 480px) {
  html body.sr-site .sr-vdm-wordmark__line--top {
    font-size: 0.65rem !important;
  }

  html body.sr-site .sr-vdm-wordmark__line--bottom {
    font-size: 0.55rem !important;
  }
}

/* Prevent news/SRN wrappers from showing */
.srn-wrap {
  display: none !important;
}

/* ===================== 13. WIDTH UNIFORMITY - ALL SECTIONS 1280px ===================== */
/* This file loads LAST — overrides all earlier CSS */

html body.sr-site .sr-hero-pro,
html body.sr-site .sr-hero-pro__shell,
html body.sr-site .sr-hero-pro__grid {
  max-width: 80rem !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html body.sr-site .sr-hero-pro__shell {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

html body.sr-site #dashboard,
html body.sr-site .sr-dash-pro,
html body.sr-site .sr-dash-ultra,
html body.sr-site .sr-flow-section {
  max-width: 80rem !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html body.sr-site .max-w-7xl {
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

html body.sr-site .sr-cite-section,
html body.sr-site .sr-promo-strip {
  max-width: 80rem !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

html body.sr-site .sr-footer-pro,
html body.sr-site .footer-premium,
html body.sr-site #site-footer {
  max-width: 80rem !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html body.sr-site .sr-footer-pro__mast {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body.sr-site #search-guide,
html body.sr-site #about,
html body.sr-site .sr-seo-section,
html body.sr-site .sr-faq-section {
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===================== 14. KILL ALL INTERNAL SCROLLBARS ===================== */
/* Every element with overflow:auto that shows scrollbar due to micro-overflow */

/* Hero elements with overflow:auto causing scrollbars */
html body.sr-site .sr-hero-pro__title-accent-wrap,
html body.sr-site .sr-hero-masthead-hz,
html body.sr-site .sr-hero-pro__intro-wave,
html body.sr-site .sr-hero-pro__tone-ripples,
html body.sr-site .sr-hero-tone-freq,
html body.sr-site .sr-hero-pro__tone-unit,
html body.sr-site .hero-freq,
html body.sr-site #hero-freq {
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: clip !important;
}

/* Dashboard/spectro elements */
html body.sr-site .spectro-insight-grid,
html body.sr-site .sr-dash-pro-chart-frame,
html body.sr-site .sr-spectro-panel,
html body.sr-site .solar,
html body.sr-site #solar {
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: clip !important;
}

/* Cite textarea - hide scrollbar */
html body.sr-site .sr-cite-html,
html body.sr-site #sr-cite-html {
  overflow: hidden !important;
}

/* FAQ/About content areas */
html body.sr-site .sr-faq-list,
html body.sr-site .sr-seo-body,
html body.sr-site .sr-seo-paragraphs,
html body.sr-site .sr-seo-cards {
  overflow: visible !important;
  overflow-y: clip !important;
}

/* Footer elements */
html body.sr-site .sr-footer-pro__matrix,
html body.sr-site .sr-footer-pro__logo,
html body.sr-site .sr-footer-premium-shell,
html body.sr-site #footer-premium-shell {
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: clip !important;
}

/* Global: prevent overflow:auto/scroll on ANY element (except html/body) */
html body.sr-site *:not(html):not(body) {
  scrollbar-width: none !important;
}

html body.sr-site *:not(html):not(body)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Custom cursor - hide scrollbar */
html body.sr-site .sr-cursor {
  overflow: hidden !important;
}

/* Language select - hide */
html body.sr-site #sr-cmd-lang {
  overflow: hidden !important;
}

/* ===================== 15. LAYOUT STABILITY ===================== */

/* Prevent site-wrapper from being wider than viewport */
html body.sr-site .site-wrapper {
  max-width: 100vw !important;
  overflow-x: clip !important;
}

/* Nav bar should not cause horizontal overflow */
html body.sr-site .nav-glass {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

html body.sr-site .sr-vdm-bar {
  max-width: 100vw !important;
  overflow: visible !important;
}

html body.sr-site header.sr-vdm,
html body.sr-site #sr-cmd-header {
  max-width: 100vw !important;
  overflow: visible !important;
}

/* Background elements should not overflow */
html body.sr-site #world-solar-bg,
html body.sr-site #wsb-stars-fallback,
html body.sr-site #wsb-vignette {
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* All sections: clip overflow */
html body.sr-site section {
  overflow-x: clip !important;
}

/* Cards should not have internal scroll */
html body.sr-site .card {
  overflow-x: hidden !important;
}

/* ===================== 16. BACKGROUND ENHANCEMENT ===================== */
#world-solar-bg {
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#world-solar-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(2,4,12,0.45) 85%, rgba(2,4,12,0.85) 100%);
  pointer-events: none;
  z-index: 5;
}

#sr-dust-canvas,
#sr-aurora-canvas,
#sr-enhance-vignette,
#sr-lens-flare {
  display: none !important;
}

/* Keep main page scrollbar styled */
html::-webkit-scrollbar { width: 7px !important; }
html::-webkit-scrollbar-track { background: #05080f !important; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2dd4bf55, #818cf855) !important;
  border-radius: 4px !important;
}
html { scrollbar-width: thin !important; scrollbar-color: #2dd4bf44 #05080f !important; }

/* Mobile overrides */
@media (max-width: 768px) {
  #world-solar-bg {
    will-change: auto;
    opacity: 1 !important;
  }
  #world-solar-bg::after {
    display: none;
  }
  html body.sr-site .sr-hero-pro,
  html body.sr-site .sr-hero-pro__shell,
  html body.sr-site #dashboard,
  html body.sr-site .max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  html::-webkit-scrollbar { width: 0 !important; display: none !important; }
  html { scrollbar-width: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #world-solar-bg {
    will-change: auto;
    opacity: 1 !important;
  }
}


/* ===================== 19. MAX-HEIGHT REMOVAL ===================== */
/* Remove height constraints that cause content to overflow and trigger scrollbars */
html body.sr-site #search-guide,
html body.sr-site #about,
html body.sr-site .sr-seo-section,
html body.sr-site .sr-faq-section,
html body.sr-site .sr-flow-section,
html body.sr-site .max-w-7xl {
  max-height: none !important;
  height: auto !important;
  overflow: clip clip !important;
}

/* Hero internal elements - prevent scrollbar via clip + no max-height */
html body.sr-site .sr-hero-pro__title-accent-wrap,
html body.sr-site .sr-hero-masthead-hz,
html body.sr-site .sr-hero-pro__intro-wave,
html body.sr-site .sr-hero-pro__tone-ripples,
html body.sr-site .sr-hero-tone-freq,
html body.sr-site .sr-hero-pro__tone-unit,
html body.sr-site .sr-hero-pro__hz,
html body.sr-site .sr-hero-pro__tel-value,
html body.sr-site .sr-hero-pro__title-main,
html body.sr-site .sr-hero-masthead__hz-unit {
  max-height: none !important;
  height: auto !important;
  overflow-y: clip !important;
  overflow-x: clip !important;
}

/* Dashboard internal containers */
html body.sr-site .sr-dash-pro,
html body.sr-site .sr-dash-ultra,
html body.sr-site #dashboard {
  overflow-y: clip !important;
  overflow-x: clip !important;
}

/* sr-hero-pro and children - clip all overflow */
html body.sr-site .sr-hero-pro *,
html body.sr-site .sr-hero-pro__shell *,
html body.sr-site .sr-hero-pro__grid * {
  overflow-y: clip !important;
  overflow-x: clip !important;
}

/* Section-level clip for all content sections */
html body.sr-site section[id] {
  overflow: clip clip !important;
  max-height: none !important;
}

/* Footer and content areas */
html body.sr-site .sr-footer-pro,
html body.sr-site .footer-premium,
html body.sr-site #site-footer,
html body.sr-site .sr-cite-section,
html body.sr-site .sr-promo-strip {
  overflow-y: clip !important;
  overflow-x: clip !important;
}
