.ufco-experiment-bar,.ufco-experiment-footer,.ufco-experiment-bar *,.ufco-experiment-footer *{box-sizing:border-box}
.ufco-experiment-bar{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px clamp(14px,3vw,30px);border-bottom:1px solid rgba(26,35,52,.10);background:rgba(255,255,255,.94);color:#1b2435;font-family:inherit;backdrop-filter:blur(12px)}
.ufco-experiment-brand{display:flex;align-items:center;gap:9px;min-width:0;color:#1b2435!important;text-decoration:none!important}.ufco-experiment-mark{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #ddd6fe;border-radius:10px;background:#f5f2ff;color:#7048db;font-size:18px}.ufco-experiment-brand strong,.ufco-experiment-footer-brand strong{display:block;font-size:12.5px;font-weight:850;line-height:1.2}.ufco-experiment-brand small{display:block;margin-top:2px;color:#8a92a1;font-size:8px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
.ufco-experiment-share-compact{display:flex;align-items:center;gap:5px;color:#7b8493;font-size:9px;font-weight:700;text-transform:uppercase}.ufco-experiment-share-compact button,.ufco-share-buttons button{appearance:none;border:1px solid #dde2ea;background:#fff;color:#243047;cursor:pointer}.ufco-experiment-share-compact button{display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:999px;font-size:9px;font-weight:850;text-transform:none}
.ufco-experiment-footer{width:100%;padding:36px clamp(16px,4vw,44px);border-top:1px solid rgba(26,35,52,.10);background:#f8f9fc;color:#1c2638}.ufco-experiment-footer-inner{width:min(1180px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:40px}.ufco-experiment-footer-brand{display:flex;align-items:flex-start;gap:11px}.ufco-experiment-footer-brand small{display:block;margin-top:7px;color:#7b8493;font-size:10px}.ufco-share-eyebrow{display:block;margin-bottom:6px;color:#7048db;font-size:9px;font-weight:850;letter-spacing:.10em;text-transform:uppercase}.ufco-experiment-share h2{margin:0 0 5px;color:#1c2638;font-size:20px}.ufco-experiment-share p{margin:0 0 15px;color:#727c8d;font-size:12px}.ufco-share-buttons{display:flex;flex-wrap:wrap;gap:7px}.ufco-share-buttons button{min-height:36px;padding:7px 12px;border-radius:999px;font-size:10px;font-weight:750}.ufco-share-status{min-height:18px;margin-top:8px;color:#4b735d;font-size:10px}
@media(max-width:700px){.ufco-experiment-share-compact>span{display:none}.ufco-experiment-footer-inner{grid-template-columns:1fr;gap:24px}}


/* Build 076 — homepage uses one true global header, not nested headers */
.ufco-global-home-header,
.ufco-global-home-header *{box-sizing:border-box}

.ufco-global-home-header{
  position:sticky;
  top:0;
  z-index:9990;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:26px;
  width:100%;
  min-height:72px;
  padding:12px clamp(18px,4vw,52px);
  border-bottom:1px solid rgba(26,35,52,.09);
  background:rgba(255,255,255,.92);
  color:#1b2435;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px)
}

.ufco-global-home-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#1b2435!important;
  text-decoration:none!important
}

.ufco-global-home-brand small,
.ufco-global-home-brand strong{display:block}

.ufco-global-home-brand small{
  margin-bottom:2px;
  color:#8a92a1;
  font-size:8px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase
}

.ufco-global-home-brand strong{
  max-width:320px;
  overflow:hidden;
  font-size:12px;
  font-weight:850;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap
}

.ufco-global-home-nav{
  display:flex;
  justify-content:center;
  gap:clamp(14px,2.5vw,34px)
}

.ufco-global-home-nav a{
  position:relative;
  color:#586274!important;
  font-size:11px;
  font-weight:750;
  text-decoration:none!important
}

.ufco-global-home-nav a::after{
  content:"";
  position:absolute;
  left:50%;
  right:50%;
  bottom:-8px;
  height:1px;
  background:#7148dc;
  transition:left .18s ease,right .18s ease
}

.ufco-global-home-nav a:hover::after{left:0;right:0}

.ufco-global-home-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  background:#1d2638;
  color:#fff!important;
  font-size:10px;
  font-weight:800;
  text-decoration:none!important;
  transition:transform .18s ease
}

.ufco-global-home-cta:hover{transform:translateY(-2px)}

.ufco-global-menu-toggle{display:none}

@media(max-width:1000px){
  .ufco-global-home-header{grid-template-columns:auto 1fr auto}

  .ufco-global-home-nav{display:none}

  .ufco-global-home-cta{display:none}

  .ufco-global-menu-toggle{
    justify-self:end;
    display:grid;
    place-content:center;
    gap:5px;
    width:38px;
    height:38px;
    padding:0;
    border:1px solid #e0e4ea;
    border-radius:50%;
    background:#fff;
    cursor:pointer
  }

  .ufco-global-menu-toggle span{
    display:block;
    width:15px;
    height:1px;
    background:#263146
  }

  .ufco-global-home-nav.is-open{
    position:absolute;
    top:calc(100% + 8px);
    left:18px;
    right:18px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:9px;
    border:1px solid #e4e8ee;
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 44px rgba(25,36,56,.12)
  }

  .ufco-global-home-nav.is-open a{
    padding:12px;
    border-radius:9px
  }
}

@media(max-width:620px){
  .ufco-global-home-header{padding-inline:14px}
  .ufco-global-home-brand strong{max-width:220px;font-size:10.5px}
}

@media(prefers-reduced-motion:reduce){
  .ufco-global-home-nav a::after,
  .ufco-global-home-cta{transition:none!important}
}

/* Build 078 — Copy Link feedback */
.ufco-experiment-share-wrap{position:relative;display:flex;align-items:center}
.ufco-share-status{transition:opacity .18s ease,transform .18s ease}
.ufco-share-status:not(.is-visible){opacity:0;transform:translateY(3px)}
.ufco-share-status.is-visible{opacity:1;transform:translateY(0)}
.ufco-share-status.is-success{color:#397253}
.ufco-share-status.is-error{color:#a2454c}
.ufco-share-status-compact{
  position:absolute;top:calc(100% + 7px);right:0;z-index:20;
  width:max-content;max-width:270px;min-height:0!important;margin:0!important;
  padding:6px 9px;border:1px solid #e0e5ec;border-radius:9px;background:#fff;
  box-shadow:0 9px 25px rgba(25,35,52,.11);font-size:9px!important;line-height:1.35;
  pointer-events:none
}
[data-ufco-share="copy"].is-copied{border-color:#b9dcc6!important;background:#f0faf4!important}
@media(max-width:700px){.ufco-share-status-compact{max-width:220px}}
@media(prefers-reduced-motion:reduce){.ufco-share-status{transition:none!important}}

/* Build 082 — one global header everywhere + social share beside nav */
.ufco-global-home-center{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px
}

.ufco-header-share{
  position:relative;
  display:flex;
  align-items:center;
  gap:5px;
  padding-left:16px;
  border-left:1px solid #e2e6ec
}

.ufco-header-share-label{
  margin-right:2px;
  color:#9098a6;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}

.ufco-header-share button{
  appearance:none;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  padding:0;
  border:1px solid #e0e5eb;
  border-radius:50%;
  background:#fff;
  color:#5c6678;
  font-size:8px;
  font-weight:850;
  line-height:1;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease
}

.ufco-header-share button:hover{
  transform:translateY(-1px);
  border-color:#cbbdf3;
  background:#faf8ff
}

.ufco-header-share .ufco-share-status-compact{
  top:calc(100% + 8px);
  right:0
}

@media(max-width:1180px){
  .ufco-global-home-header{gap:16px}
  .ufco-global-home-center{gap:11px}
  .ufco-global-home-nav{gap:15px}
  .ufco-header-share{padding-left:10px}
  .ufco-header-share-label{display:none}
}

@media(max-width:1000px){
  .ufco-global-home-center{
    display:block;
    min-width:0
  }

  .ufco-global-home-nav.is-open{
    padding-bottom:52px
  }

  .ufco-header-share{
    display:none
  }

  .ufco-global-home-nav.is-open + .ufco-header-share{
    position:absolute;
    left:36px;
    right:36px;
    top:calc(100% + 172px);
    z-index:3;
    display:flex;
    justify-content:flex-start;
    padding:10px 12px 0;
    border-left:0;
    border-top:1px solid #edf0f4
  }

  .ufco-global-home-nav.is-open + .ufco-header-share .ufco-header-share-label{
    display:inline
  }
}

@media(prefers-reduced-motion:reduce){
  .ufco-header-share button{transition:none!important}
}

/* Build 084 — suppress theme chrome across the entire public site */
body.ufco-engine-page #masthead,
body.ufco-engine-page .site-header,
body.ufco-engine-page header.site-header,
body.ufco-engine-page .site-header-wrap,
body.ufco-engine-page .site-main-header-wrap,
body.ufco-engine-page .kadence-sticky-header,
body.ufco-engine-page .entry-hero,
body.ufco-engine-page .entry-hero-container-inner,
body.ufco-engine-page .entry-header,
body.ufco-engine-page .page-header,
body.ufco-engine-page .content-title-style-above,
body.ufco-engine-page .content-title-style-normal,
body.ufco-engine-page .wp-site-blocks > header,
body.ufco-engine-page .site-branding,
body.ufco-engine-page .site-navigation{
  display:none!important;
}

body.ufco-engine-page .site,
body.ufco-engine-page .site-content,
body.ufco-engine-page #primary,
body.ufco-engine-page .content-area,
body.ufco-engine-page .content-container,
body.ufco-engine-page .site-container,
body.ufco-engine-page .entry-content-wrap,
body.ufco-engine-page .entry-content{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

body.ufco-engine-page .site-content,
body.ufco-engine-page #primary,
body.ufco-engine-page .content-area,
body.ufco-engine-page .entry-content-wrap{
  padding-top:0!important;
}

body.ufco-engine-page .content-container,
body.ufco-engine-page .site-container{
  padding-left:0!important;
  padding-right:0!important;
}

/* Preserve the WordPress admin bar for logged-in admins. */
body.admin-bar .ufco-global-home-header{
  top:32px;
}

@media(max-width:782px){
  body.admin-bar .ufco-global-home-header{
    top:46px;
  }
}

/* Build 085 — canonical UFCo footer copyright + suppress active-theme footer */
.ufco-experiment-footer-bottom{
  width:min(1180px,100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:28px auto 0;
  padding-top:18px;
  border-top:1px solid rgba(28,38,56,.10);
  color:#87909f;
  font-size:9px;
  line-height:1.5;
}

/* Remove Kadence/theme footer and its "WordPress Theme by Kadence WP" credit globally. */
body.ufco-engine-page #colophon,
body.ufco-engine-page .site-footer,
body.ufco-engine-page footer.site-footer,
body.ufco-engine-page .site-footer-wrap,
body.ufco-engine-page .site-footer-row,
body.ufco-engine-page .site-footer-row-container,
body.ufco-engine-page .site-footer-section,
body.ufco-engine-page .footer-html,
body.ufco-engine-page .footer-widget-area,
body.ufco-engine-page .site-info,
body.ufco-engine-page .footer-navigation,
body.ufco-engine-page .wp-site-blocks > footer{
  display:none!important;
}

@media(max-width:700px){
  .ufco-experiment-footer-bottom{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
}

/* Build 086 — remove orphaned Kadence header/hero spacing on inner pages */
body.ufco-engine-page:not(.ufco-clean-homepage) #inner-wrap,
body.ufco-engine-page:not(.ufco-clean-homepage) .site-content,
body.ufco-engine-page:not(.ufco-clean-homepage) .content-area,
body.ufco-engine-page:not(.ufco-clean-homepage) #primary,
body.ufco-engine-page:not(.ufco-clean-homepage) #main,
body.ufco-engine-page:not(.ufco-clean-homepage) main.site-main,
body.ufco-engine-page:not(.ufco-clean-homepage) .content-container,
body.ufco-engine-page:not(.ufco-clean-homepage) .site-container,
body.ufco-engine-page:not(.ufco-clean-homepage) .content-bg,
body.ufco-engine-page:not(.ufco-clean-homepage) article.page,
body.ufco-engine-page:not(.ufco-clean-homepage) article.type-page,
body.ufco-engine-page:not(.ufco-clean-homepage) .entry-content-wrap,
body.ufco-engine-page:not(.ufco-clean-homepage) .entry-content{
  margin-top:0!important;
  padding-top:0!important;
}

body.ufco-engine-page:not(.ufco-clean-homepage) .site-content{
  min-height:0!important;
}

/* Replace the removed theme hero spacing with a deliberate compact gap. */
body.ufco-engine-page:not(.ufco-clean-homepage) .entry-content > :first-child,
body.ufco-engine-page:not(.ufco-clean-homepage) #main > :first-child,
body.ufco-engine-page:not(.ufco-clean-homepage) main.site-main > :first-child{
  margin-top:0!important;
}

/* UFCo shortcode pages get a small, consistent separation from the global header. */
body.ufco-engine-page:not(.ufco-clean-homepage) .ufco-builder,
body.ufco-engine-page:not(.ufco-clean-homepage) .ufco-gallery-surface,
body.ufco-engine-page:not(.ufco-clean-homepage) .ufco-single-shell{
  margin-top:24px!important;
}

@media(max-width:700px){
  body.ufco-engine-page:not(.ufco-clean-homepage) .ufco-builder,
  body.ufco-engine-page:not(.ufco-clean-homepage) .ufco-gallery-surface,
  body.ufco-engine-page:not(.ufco-clean-homepage) .ufco-single-shell{
    margin-top:14px!important;
  }
}

/* Build 087 — platform-branded social controls, including hover states */

/* Shared social control transition. */
[data-ufco-share]{
  transition:
    transform .16s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease!important;
}

/* Facebook */
[data-ufco-share="facebook"]{
  background:#1877F2!important;
  border-color:#1877F2!important;
  color:#fff!important;
}
[data-ufco-share="facebook"]:hover{
  background:#0f65d8!important;
  border-color:#0f65d8!important;
  color:#fff!important;
  transform:translateY(-2px)!important;
  box-shadow:0 8px 18px rgba(24,119,242,.24)!important;
}

/* X */
[data-ufco-share="x"]{
  background:#000!important;
  border-color:#000!important;
  color:#fff!important;
}
[data-ufco-share="x"]:hover{
  background:#232323!important;
  border-color:#232323!important;
  color:#fff!important;
  transform:translateY(-2px)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20)!important;
}

/* WhatsApp */
[data-ufco-share="whatsapp"]{
  background:#25D366!important;
  border-color:#25D366!important;
  color:#fff!important;
}
[data-ufco-share="whatsapp"]:hover{
  background:#1fb858!important;
  border-color:#1fb858!important;
  color:#fff!important;
  transform:translateY(-2px)!important;
  box-shadow:0 8px 18px rgba(37,211,102,.22)!important;
}

/* Copy link is a UFCo utility, so use the experiment purple rather than a platform brand. */
[data-ufco-share="copy"]{
  background:#7148dc!important;
  border-color:#7148dc!important;
  color:#fff!important;
}
[data-ufco-share="copy"]:hover{
  background:#5f36c7!important;
  border-color:#5f36c7!important;
  color:#fff!important;
  transform:translateY(-2px)!important;
  box-shadow:0 8px 18px rgba(113,72,220,.22)!important;
}

/* Footer share buttons can keep their pill shape while adopting the platform colors. */
.ufco-share-buttons [data-ufco-share]{
  color:#fff!important;
}

/* Preserve copied feedback without losing readability. */
[data-ufco-share="copy"].is-copied{
  background:#397253!important;
  border-color:#397253!important;
  color:#fff!important;
}

@media(prefers-reduced-motion:reduce){
  [data-ufco-share]{
    transition:none!important;
  }
  [data-ufco-share]:hover{
    transform:none!important;
  }
}

/* Build 088 — global footer brand accent + centered social media section */

.ufco-experiment-footer-inner{
  grid-template-columns:minmax(220px,.85fr) minmax(240px,1fr) minmax(320px,1.25fr)!important;
  align-items:start;
}

.ufco-footer-company{
  display:inline-block;
  margin-top:7px;
  padding:4px 8px;
  border:1px solid rgba(113,72,220,.20);
  border-radius:999px;
  background:#f3efff;
  color:#7148dc;
  font-size:9px;
  font-weight:850;
  letter-spacing:.045em;
}

.ufco-experiment-footer-brand small{
  margin-top:8px!important;
}

.ufco-footer-socials{
  text-align:center;
}

.ufco-footer-social-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:12px;
}

.ufco-footer-social-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #e0e5ec;
  border-radius:999px;
  background:#fff;
  color:#4f596c!important;
  font-size:10px;
  font-weight:750;
  text-decoration:none!important;
  transition:
    transform .16s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.ufco-footer-social-link>span{
  display:grid;
  place-items:center;
  min-width:16px;
  height:16px;
  font-size:9px;
  font-weight:900;
}

.ufco-footer-social-link small{
  color:inherit;
  font-size:9.5px;
  font-weight:750;
}

.ufco-footer-social-link:hover{
  transform:translateY(-2px);
  color:#fff!important;
}

/* Platform-specific social link colors */
.ufco-footer-social-link.is-facebook:hover{
  border-color:#1877F2;
  background:#1877F2;
  box-shadow:0 8px 18px rgba(24,119,242,.20);
}

.ufco-footer-social-link.is-instagram:hover{
  border-color:#E1306C;
  background:linear-gradient(135deg,#833AB4,#E1306C,#F77737);
  box-shadow:0 8px 18px rgba(225,48,108,.20);
}

.ufco-footer-social-link.is-x:hover{
  border-color:#000;
  background:#000;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.ufco-footer-social-link.is-youtube:hover{
  border-color:#FF0000;
  background:#FF0000;
  box-shadow:0 8px 18px rgba(255,0,0,.18);
}

.ufco-footer-social-link.is-tiktok:hover{
  border-color:#111;
  background:#111;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.ufco-footer-social-link.is-whatsapp:hover{
  border-color:#25D366;
  background:#25D366;
  box-shadow:0 8px 18px rgba(37,211,102,.18);
}

.ufco-footer-social-link.is-linkedin:hover{
  border-color:#0A66C2;
  background:#0A66C2;
  box-shadow:0 8px 18px rgba(10,102,194,.18);
}

.ufco-footer-social-link.is-pinterest:hover{
  border-color:#E60023;
  background:#E60023;
  box-shadow:0 8px 18px rgba(230,0,35,.18);
}

.ufco-footer-social-link.is-website:hover{
  border-color:#7148dc;
  background:#7148dc;
  box-shadow:0 8px 18px rgba(113,72,220,.18);
}



@media(max-width:980px){
  .ufco-experiment-footer-inner{
    grid-template-columns:1fr 1fr!important;
  }

  .ufco-footer-socials{
    text-align:left;
  }

  .ufco-footer-social-list{
    justify-content:flex-start;
  }

  .ufco-experiment-share{
    grid-column:1 / -1;
  }
}

@media(max-width:700px){
  .ufco-experiment-footer-inner{
    grid-template-columns:1fr!important;
  }

  .ufco-footer-socials{
    text-align:left;
  }

  .ufco-footer-social-list{
    justify-content:flex-start;
  }

  .ufco-experiment-share{
    grid-column:auto;
  }
}

@media(prefers-reduced-motion:reduce){
  .ufco-footer-social-link{
    transition:none!important;
  }
  .ufco-footer-social-link:hover{
    transform:none!important;
  }
}

/* Build 090 — polished global footer legal/signature bar */
.ufco-experiment-footer-bottom{
  position:relative;
  width:min(1180px,100%);
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:30px auto 0;
  padding:18px 2px 0;
  border-top:1px solid rgba(36,48,72,.10);
  color:#87909f;
}

.ufco-footer-copyright{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  color:#8b94a3;
  font-size:9.5px;
  font-weight:550;
  line-height:1.55;
  letter-spacing:.012em;
}

.ufco-footer-copyright-mark{
  margin-right:1px;
  color:#7148dc;
  font-weight:850;
}

.ufco-footer-copyright strong{
  color:#5f4a9e;
  font-weight:800;
}

.ufco-footer-experiment-signature{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border:1px solid rgba(113,72,220,.14);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(113,72,220,.055),rgba(99,181,255,.055));
  color:#6c5a9c;
  font-size:8.5px;
  font-weight:800;
  line-height:1;
  letter-spacing:.075em;
  text-transform:uppercase;
  white-space:nowrap;
}

.ufco-footer-signature-mark{
  color:#7148dc;
  font-size:10px;
  line-height:1;
}

@media(max-width:700px){
  .ufco-experiment-footer-bottom{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    margin-top:24px;
    padding-top:16px;
  }

  .ufco-footer-copyright{
    font-size:9px;
  }

  .ufco-footer-experiment-signature{
    font-size:8px;
  }
}

/* Build 100 — remove orphaned theme/content spacing before the global footer */

/* Theme containers must not reserve large bottom space after public page content. */
body.ufco-engine-page #inner-wrap,
body.ufco-engine-page .site-content,
body.ufco-engine-page .content-area,
body.ufco-engine-page #primary,
body.ufco-engine-page #main,
body.ufco-engine-page main.site-main,
body.ufco-engine-page .content-container,
body.ufco-engine-page .site-container,
body.ufco-engine-page .content-bg,
body.ufco-engine-page article.page,
body.ufco-engine-page article.type-page,
body.ufco-engine-page .entry-content-wrap,
body.ufco-engine-page .entry-content{
  margin-bottom:0!important;
  padding-bottom:0!important;
  min-height:0!important;
}

/* Kadence can inject spacing through row/content wrappers even when footer/header are hidden. */
body.ufco-engine-page .site-main-header-wrap + *,
body.ufco-engine-page .entry-content-wrap > .entry-content,
body.ufco-engine-page .content-wrap,
body.ufco-engine-page .content-section,
body.ufco-engine-page .wp-site-blocks{
  margin-bottom:0!important;
  padding-bottom:0!important;
}

/* Remove empty blocks immediately before our global Experiment footer. */
body.ufco-engine-page .ufco-experiment-footer{
  margin-top:0!important;
}

body.ufco-engine-page .ufco-experiment-footer::before{
  content:none!important;
}

/* Common empty spacer elements generated by themes/builders. */
body.ufco-engine-page .entry-content > .wp-block-spacer:last-child,
body.ufco-engine-page .entry-content > .wp-block-group:empty:last-child,
body.ufco-engine-page .entry-content > p:empty:last-child,
body.ufco-engine-page .entry-content > div:empty:last-child{
  display:none!important;
}

/* Dedicated UFCo surfaces end cleanly into the global footer. */
body.ufco-engine-page .ufco-full-gallery,
body.ufco-engine-page .ufco-builder,
body.ufco-engine-page .ufco-gallery-surface,
body.ufco-engine-page .ufco-single-shell,
body.ufco-engine-page .ufco-home{
  margin-bottom:0!important;
}

/* Preserve a deliberate compact rhythm inside the footer itself. */
body.ufco-engine-page .ufco-experiment-footer{
  padding-top:30px!important;
}

@media(max-width:700px){
  body.ufco-engine-page .ufco-experiment-footer{
    padding-top:22px!important;
  }
}

/* Build 107 — compact beta status with floating detail popup */
.ufco-footer-beta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  margin-top:14px;
  padding:5px 6px 5px 5px;
  border:1px solid rgba(124,92,255,.20);
  border-radius:999px;
  background:rgba(124,92,255,.045);
  text-align:left;
}

.ufco-footer-beta-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:4px 7px;
  border:1px solid rgba(124,92,255,.28);
  border-radius:999px;
  background:rgba(124,92,255,.10);
  color:#7452e8;
  font-size:9px;
  font-weight:800;
  letter-spacing:.11em;
  line-height:1;
}

.ufco-footer-beta-title{
  min-width:0;
  overflow:hidden;
  color:#1b2438;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ufco-footer-beta-toggle{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#7452e8;
  cursor:pointer;
  font:inherit;
  font-size:14px;
  line-height:1;
  transition:background .18s ease,transform .18s ease;
}

.ufco-footer-beta-toggle:hover,
.ufco-footer-beta-toggle:focus-visible{
  background:rgba(124,92,255,.10);
}

.ufco-footer-beta.is-open .ufco-footer-beta-toggle{
  transform:rotate(45deg);
}

.ufco-footer-beta-popup{
  position:absolute;
  z-index:30;
  left:0;
  bottom:calc(100% + 10px);
  width:min(340px,calc(100vw - 32px));
  padding:16px;
  border:1px solid rgba(124,92,255,.18);
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 48px rgba(35,42,62,.16),0 4px 14px rgba(35,42,62,.08);
  color:#657087;
}

.ufco-footer-beta-popup[hidden]{display:none!important;}

.ufco-footer-beta-popup::after{
  content:"";
  position:absolute;
  left:24px;
  top:100%;
  width:10px;
  height:10px;
  border-right:1px solid rgba(124,92,255,.18);
  border-bottom:1px solid rgba(124,92,255,.18);
  background:#fff;
  transform:translateY(-5px) rotate(45deg);
}

.ufco-footer-beta-popup p{
  margin:0 28px 13px 0;
  color:#657087;
  font-size:12px;
  line-height:1.6;
}

.ufco-footer-beta-close{
  position:absolute;
  top:8px;
  right:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#7b8598;
  cursor:pointer;
  font:inherit;
  font-size:20px;
  line-height:1;
}

.ufco-footer-beta-close:hover,
.ufco-footer-beta-close:focus-visible{
  background:#f3f4f8;
  color:#1b2438;
}

@media(max-width:520px){
  .ufco-footer-beta-popup{
    left:0;
    width:min(310px,calc(100vw - 32px));
  }
}

/* Build 103 — global footer author credit */
.ufco-footer-author{
  color:inherit;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(116,82,232,.28);
  transition:color .18s ease,border-color .18s ease;
}
.ufco-footer-author:hover,
.ufco-footer-author:focus-visible{
  color:#7452e8;
  border-bottom-color:#7452e8;
}

/* Build 105 — beta bug-report action */
.ufco-footer-bug-report{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  align-self:flex-start;
  margin-top:8px;
  padding:7px 11px;
  border:1px solid rgba(37,211,102,.28);
  border-radius:999px;
  background:rgba(37,211,102,.08);
  color:#168b45;
  font-size:11px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.ufco-footer-bug-report:hover,
.ufco-footer-bug-report:focus-visible{
  background:rgba(37,211,102,.15);
  border-color:rgba(37,211,102,.48);
  color:#11753a;
  transform:translateY(-1px);
}
.ufco-footer-bug-report>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  border-radius:50%;
  background:#25d366;
  color:#fff;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}

/* Build 112 — keep WordPress admin toolbar and dropdowns above UFCo chrome. */
body.admin-bar #wpadminbar{z-index:999999!important}
body.admin-bar #wpadminbar .ab-sub-wrapper{z-index:1000000!important}
/* Build 150 — resilient mobile header socials and footer layout */
@media(max-width:1000px){
  .ufco-global-home-header{
    grid-template-columns:minmax(0,1fr) 38px 38px;
    gap:8px;
  }

  .ufco-global-home-brand{
    grid-column:1;
    overflow:hidden;
  }

  .ufco-global-home-brand>span:last-child{
    min-width:0;
  }

  .ufco-global-home-brand strong{
    max-width:none;
    text-overflow:ellipsis;
  }

  .ufco-global-menu-toggle{
    grid-column:2;
    grid-row:1;
    margin-right:0;
  }

  .ufco-global-home-actions{
    grid-column:3;
    grid-row:1;
  }

  .ufco-global-home-center{
    position:absolute;
    top:calc(100% + 8px);
    left:18px;
    right:18px;
    z-index:4;
    display:none;
    min-width:0;
    padding:9px;
    border:1px solid #e4e8ee;
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 44px rgba(25,36,56,.12);
  }

  .ufco-global-home-center.is-open{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }

  .ufco-global-home-center .ufco-global-home-nav.is-open{
    position:static;
    display:flex;
    width:100%;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .ufco-global-home-center .ufco-header-share,
  .ufco-global-home-nav.is-open + .ufco-header-share{
    position:static;
    display:none;
    width:100%;
  }

  .ufco-global-home-center.is-open .ufco-header-share{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:7px;
    margin-top:4px;
    padding:10px 12px 3px;
    border:0;
    border-top:1px solid #edf0f4;
  }

  .ufco-global-home-center.is-open .ufco-header-share-label{
    display:inline;
    margin-right:auto;
  }

  .ufco-global-home-center.is-open .ufco-header-share button{
    flex:0 0 36px;
    width:36px;
    height:36px;
  }

  .ufco-global-home-center.is-open .ufco-share-status-compact{
    top:calc(100% + 7px);
    right:9px;
  }

  body.ufco-dark-theme .ufco-global-home-center{
    border-color:rgba(255,255,255,.12);
    background:#0f151f;
    box-shadow:0 22px 55px rgba(0,0,0,.42);
  }

  body.ufco-dark-theme .ufco-global-home-center.is-open .ufco-header-share{
    border-top-color:rgba(255,255,255,.10);
  }
}

@media(max-width:620px){
  .ufco-global-home-center{
    left:14px;
    right:14px;
  }
}

@media(max-width:700px){
  body.ufco-engine-page .ufco-experiment-footer{
    padding:24px 16px 28px!important;
  }

  .ufco-experiment-footer-inner{
    gap:28px!important;
  }

  .ufco-experiment-footer-brand{
    width:100%;
  }

  .ufco-footer-social-list,
  .ufco-share-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
  }

  .ufco-footer-social-link,
  .ufco-share-buttons button{
    width:100%;
    min-width:0;
    min-height:42px;
    justify-content:center;
    margin:0;
  }

  .ufco-footer-social-link small{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ufco-experiment-footer-bottom{
    grid-template-columns:minmax(0,1fr)!important;
    justify-items:center!important;
    gap:10px!important;
    width:100%;
    margin-top:26px;
    padding-top:16px;
  }

  .ufco-experiment-footer-bottom>.ufco-footer-build-badge,
  .ufco-experiment-footer-bottom>.ufco-footer-copyright,
  .ufco-experiment-footer-bottom>.ufco-footer-experiment-signature{
    grid-column:1!important;
    justify-self:center!important;
  }

  .ufco-experiment-footer-bottom>.ufco-footer-build-badge{
    justify-content:center!important;
    width:min(100%,330px)!important;
    white-space:normal!important;
    text-align:center;
  }

  .ufco-experiment-footer-bottom>.ufco-footer-copyright{
    justify-content:center!important;
    text-align:center!important;
  }

  .ufco-experiment-footer-bottom>.ufco-footer-experiment-signature{
    max-width:100%;
    justify-content:center;
    white-space:normal;
    text-align:center;
    line-height:1.35;
  }
}

@media(max-width:360px){
  .ufco-global-home-header{
    grid-template-columns:minmax(0,1fr) 36px 36px;
    gap:6px;
    padding-inline:12px;
  }

  .ufco-global-menu-toggle,
  .ufco-theme-toggle{
    width:36px;
    height:36px;
    min-height:36px;
  }

  .ufco-global-home-brand{
    gap:8px;
  }

  .ufco-global-home-brand .ufco-experiment-mark{
    flex-basis:30px;
    width:30px;
    height:30px;
  }

  .ufco-global-home-brand strong{
    font-size:10px;
  }

  .ufco-global-home-center{
    left:12px;
    right:12px;
  }

  .ufco-global-home-center.is-open .ufco-header-share{
    gap:5px;
    padding-inline:9px;
  }

  .ufco-global-home-center.is-open .ufco-header-share button{
    flex-basis:34px;
    width:34px;
    height:34px;
  }
}
