/* Public pages besides homepage hero — html.hub-pages-align is set by hub-pages-align.js */
/* Do not target homepage overlays owned by hub-align.css (_featureCard_2g08p, _board_2g08p, _track_azm1i, _track_1macn). */

html.hub-pages-align,
html.hub-pages-align body,
html.hub-pages-align #root {
  overflow-x: clip;
}

html.hub-pages-align [class*="_section_"],
html.hub-pages-align [class*="_inner_"],
html.hub-pages-align [class*="_hero_"],
html.hub-pages-align [class*="_heroContent_"] {
  max-width: 100%;
  box-sizing: border-box;
}

html.hub-pages-align [class*="_heroContent_"] {
  min-width: 0;
  width: min(100%, 760px) !important;
}

/* Hero stat chips — 3-up on desktop, stacked on ~390px so min-width:96px cannot overflow */
html.hub-pages-align [class*="_heroStats_"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  max-width: 36rem !important;
  margin-inline: auto !important;
}

html.hub-pages-align [class*="_heroStats_"] > [class*="_stat_"] {
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: #070910 !important;
  border: 1px solid rgba(139, 124, 255, 0.28) !important;
}

/* Shared public grids */
html.hub-pages-align [class*="_planGrid_"],
html.hub-pages-align [class*="_tierGrid_"],
html.hub-pages-align [class*="_benefitGrid_"],
html.hub-pages-align [class*="_principleGrid_"],
html.hub-pages-align [class*="_statusGrid_"],
html.hub-pages-align [class*="_prepGrid_"],
html.hub-pages-align [class*="_pillarGrid_"],
html.hub-pages-align [class*="_servicesGrid_"],
html.hub-pages-align [class*="_stackBar_"],
html.hub-pages-align [class*="_grid_vgs60"],
html.hub-pages-align [class*="_grid_1p1x1"] {
  display: grid !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_planGrid_"],
html.hub-pages-align [class*="_tierGrid_"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
}

html.hub-pages-align [class*="_benefitGrid_"],
html.hub-pages-align [class*="_grid_vgs60"],
html.hub-pages-align [class*="_grid_1p1x1"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important;
}

html.hub-pages-align [class*="_principleGrid_"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
}

html.hub-pages-align [class*="_statusGrid_"],
html.hub-pages-align [class*="_prepGrid_"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

html.hub-pages-align [class*="_servicesGrid_"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 1rem !important;
}

html.hub-pages-align [class*="_pillarGrid_"] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

html.hub-pages-align [class*="_pillarGrid_"] > [class*="_pillar_"] {
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  padding: 0.75rem 0.85rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  background: #070910 !important;
}

/* Motion/reveal wrappers must stretch so inner cards can be height:100% */
html.hub-pages-align [class*="_planGrid_"] > *,
html.hub-pages-align [class*="_tierGrid_"] > *,
html.hub-pages-align [class*="_benefitGrid_"] > *,
html.hub-pages-align [class*="_principleGrid_"] > *,
html.hub-pages-align [class*="_statusGrid_"] > *,
html.hub-pages-align [class*="_prepGrid_"] > *,
html.hub-pages-align [class*="_servicesGrid_"] > *,
html.hub-pages-align [class*="_grid_vgs60"] > *,
html.hub-pages-align [class*="_grid_1p1x1"] > * {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_planCard_"],
html.hub-pages-align [class*="_tierCard_"],
html.hub-pages-align [class*="_benefitCard_"],
html.hub-pages-align [class*="_principleCard_"],
html.hub-pages-align [class*="_statusCard_"],
html.hub-pages-align [class*="_prepCard_"],
html.hub-pages-align [class*="_serviceCard_"],
html.hub-pages-align [class*="_grid_vgs60"] [class*="_card_vgs60"],
html.hub-pages-align [class*="_grid_1p1x1"] [class*="_card_1p1x1"] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  background: #070910 !important;
  border-color: rgba(139, 124, 255, 0.22) !important;
}

html.hub-pages-align [class*="_planFeatured_"],
html.hub-pages-align [class*="_tierFeatured_"] {
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.18) !important;
}

html.hub-pages-align [class*="_planList_"],
html.hub-pages-align [class*="_tierList_"],
html.hub-pages-align [class*="_benefitBody_"],
html.hub-pages-align [class*="_principleBody_"],
html.hub-pages-align [class*="_cardBody_vgs60"],
html.hub-pages-align [class*="_cardBody_1p1x1"] {
  flex: 1 1 auto !important;
}

html.hub-pages-align [class*="_planCta_"],
html.hub-pages-align [class*="_planCtaDisabled_"],
html.hub-pages-align [class*="_tierCta_"],
html.hub-pages-align [class*="_tierCtaDisabled_"] {
  width: 100% !important;
  margin-top: auto !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_serviceCard_"] {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
}

html.hub-pages-align [class*="_serviceInfo_"] {
  min-width: 0 !important;
}

html.hub-pages-align [class*="_serviceStatusBadge_"] {
  flex-shrink: 0 !important;
}

/* Contact team — flex wrap made uneven pills; use a 2-col card grid */
html.hub-pages-align [class*="_teamGrid_"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 1rem !important;
  width: 100% !important;
}

html.hub-pages-align [class*="_memberBadge_"] {
  width: 100% !important;
  height: 100% !important;
  min-height: 88px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  background: #070910 !important;
  border: 1px solid rgba(139, 124, 255, 0.22) !important;
}

html.hub-pages-align [class*="_memberInfo_"] {
  min-width: 0 !important;
}

html.hub-pages-align [class*="_memberName_"],
html.hub-pages-align [class*="_memberRole_"],
html.hub-pages-align [class*="_memberDesc_"] {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* Footer team chips */
html.hub-pages-align [class*="_container_vt9w5"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0.85rem !important;
  width: 100% !important;
  max-width: 1000px !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_member_vt9w5"] {
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 64px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  background: #070910 !important;
  border: 1px solid rgba(139, 124, 255, 0.2) !important;
}

html.hub-pages-align [class*="_name_vt9w5"],
html.hub-pages-align [class*="_role_vt9w5"] {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* Footer link columns */
html.hub-pages-align footer [class*="_inner_"] {
  width: min(100%, var(--max, 1200px)) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-inline: 1.25rem !important;
}

html.hub-pages-align footer [class*="_grid_"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 1.25rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

html.hub-pages-align footer [class*="_column_"] {
  min-width: 0 !important;
}

/* Preturi comparison table */
html.hub-pages-align [class*="_tableWrap_"] {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

html.hub-pages-align [class*="_table_"] {
  max-width: none;
}

/* Auth panel */
html.hub-pages-align [class*="_panel_sn0mn"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_inner_sn0mn"] {
  width: min(100%, 440px) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_row2_"] {
  min-width: 0 !important;
}

html.hub-pages-align [class*="_row2_"] > * {
  min-width: 0 !important;
}

html.hub-pages-align [class*="_statusOverview_"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.hub-pages-align [class*="_timelineItem_"] {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  html.hub-pages-align [class*="_pillarGrid_"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html.hub-pages-align footer [class*="_grid_"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html.hub-pages-align [class*="_heroStats_"],
  html.hub-pages-align [class*="_pillarGrid_"],
  html.hub-pages-align [class*="_teamGrid_"],
  html.hub-pages-align [class*="_container_vt9w5"],
  html.hub-pages-align [class*="_planGrid_"],
  html.hub-pages-align [class*="_tierGrid_"],
  html.hub-pages-align [class*="_benefitGrid_"],
  html.hub-pages-align [class*="_principleGrid_"],
  html.hub-pages-align [class*="_statusGrid_"],
  html.hub-pages-align [class*="_prepGrid_"],
  html.hub-pages-align [class*="_servicesGrid_"],
  html.hub-pages-align [class*="_grid_vgs60"],
  html.hub-pages-align [class*="_grid_1p1x1"],
  html.hub-pages-align footer [class*="_grid_"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.hub-pages-align [class*="_hero_"],
  html.hub-pages-align [class*="_section_"],
  html.hub-pages-align [class*="_inner_"] {
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
  }

  html.hub-pages-align [class*="_serviceCard_"] {
    flex-wrap: wrap !important;
  }

  html.hub-pages-align [class*="_table_"] {
    min-width: 480px;
  }
}
