:root{
  font-size: var(--growth-font-size, 16px);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}

a{ text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(100% - 32px, var(--growth-container, 1200px));
  margin-inline:auto;
}

.site-header{
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.site-title{ font-weight:700; }

.primary-nav .menu{
  list-style:none;
  display:flex;
  gap:16px;
  padding:0;
  margin:0;
}
.primary-nav a{ display:inline-block; padding:8px 6px; }

.menu-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.15);
  background:transparent;
  padding:8px 10px;
  border-radius:8px;
}

.site-main{ padding:26px 0; }

.content-wrap{
  display:grid;
  gap:26px;
  align-items:start;
}

.content-wrap.sidebar-right{
  grid-template-columns: 1fr 320px;
}
.content-wrap.sidebar-left{
  grid-template-columns: 320px 1fr;
}
.content-wrap.sidebar-none{
  grid-template-columns: 1fr;
}

.entry{
  padding:18px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
}

.site-footer{
  border-top:1px solid rgba(0,0,0,.08);
  padding:22px 0;
}

@media (max-width: 900px){
  .content-wrap.sidebar-right,
  .content-wrap.sidebar-left{
    grid-template-columns: 1fr;
  }

  .menu-toggle{ display:inline-flex; }
  .primary-nav{ display:none; }
  .primary-nav.is-open{ display:block; }
  .primary-nav .menu{ flex-direction:column; }
}



/* === Header Builder (Growth) === */
:root{
  --growth-header-height: 70px;
}

.header-inner{
  flex-direction: column;
  gap: 10px;
}

.header-row{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-row-top{
  justify-content: space-between;
}

.header-row-bottom{
  justify-content: center;
  gap: 16px;
  padding-bottom: 6px;
}

/* Layout variants */
body.growth-header-layout-inline .header-row-top{
  justify-content: space-between;
}

body.growth-header-layout-split .header-row-top{
  justify-content: space-between;
}

body.growth-header-layout-center .header-row-top{
  justify-content: center;
}
body.growth-header-layout-center .site-branding{
  text-align: center;
}

/* Logo alignment */
body.growth-logo-left .site-branding{ margin-right:auto; }
body.growth-logo-center .site-branding{ margin-inline:auto; }
body.growth-logo-right .site-branding{ margin-left:auto; }

/* Menu alignment */
body.growth-menu-left .primary-nav .menu{ justify-content: flex-start; }
body.growth-menu-center .primary-nav .menu{ justify-content: center; }
body.growth-menu-right .primary-nav .menu{ justify-content: flex-end; }

.primary-nav{ flex: 1 1 auto; }
.primary-nav .menu{
  width: 100%;
  flex-wrap: wrap;
}

/* CTA */
.header-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  font-weight: 600;
  white-space: nowrap;
}

/* Transparent header */
body.growth-transparent-enabled .site-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  background: transparent;
  z-index: 50;
}
body.growth-transparent-enabled .site-main{
  padding-top: calc(var(--growth-header-height, 70px) + 26px);
}

/* Sticky header */
body.growth-sticky-enabled .site-header{
  will-change: transform;
  transition: transform 180ms ease;
}
body.growth-is-sticky .site-header{
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 60;
}
body.growth-sticky-hidden .site-header{
  transform: translateY(-110%);
}

/* Mobile menu improvements */
@media (max-width: 900px){
  .header-inner{ gap: 8px; }
  .header-row{ flex-wrap: wrap; }
  .primary-nav{ width: 100%; }
  .header-cta{ width: 100%; justify-content: center; }
}


/* === FSE Native Layout Widths === */
/* Gutenberg now controls content width via theme.json layout.contentSize */
/* Wide blocks use layout.wideSize */
.wp-site-blocks {
  padding-left: 16px;
  padding-right: 16px;
}


/* === Growth Page Width Final Working Selectors === */

/* Default state – let theme.json handle it */
body:not(.growth-page-narrow):not(.growth-page-wide):not(.growth-page-full)
.wp-block-post-content {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
}

/* Narrow */
body.growth-page-narrow .wp-block-post-content {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Wide */
body.growth-page-wide .wp-block-post-content {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Full */
body.growth-page-full .wp-block-post-content {
  max-width: none !important;
  width: 100% !important;
}


/* =========================================================
   Growth Page Width – Universal Builder-Compatible Rules
   Applies to:
   - Native Gutenberg (.wp-block-post-content)
   - Spectra/UAGB (.wp-block-uagb-container.uagb-is-root-container)
   - Avada (.fusion-row, .fusion-builder-row)
   - Elementor (.elementor-section, .elementor-container)
   ========================================================= */

/* --- Narrow --- */
body.growth-page-narrow .wp-block-post-content,
body.growth-page-narrow .wp-block-uagb-container.uagb-is-root-container,
body.growth-page-narrow .fusion-row,
body.growth-page-narrow .fusion-builder-row,
body.growth-page-narrow .elementor-section,
body.growth-page-narrow .elementor-container {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Wide --- */
body.growth-page-wide .wp-block-post-content,
body.growth-page-wide .wp-block-uagb-container.uagb-is-root-container,
body.growth-page-wide .fusion-row,
body.growth-page-wide .fusion-builder-row,
body.growth-page-wide .elementor-section,
body.growth-page-wide .elementor-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Full --- */
body.growth-page-full .wp-block-post-content,
body.growth-page-full .wp-block-uagb-container.uagb-is-root-container,
body.growth-page-full .fusion-row,
body.growth-page-full .fusion-builder-row,
body.growth-page-full .elementor-section,
body.growth-page-full .elementor-container {
  max-width: none !important;
  width: 100% !important;
}
