/* FAAC desktop header: one row, with Elementor owning its width and gaps.
   Mobile navigation/search remain in frontend.css and are not moved here. */
@media(min-width:768px){
  .pink-mobile-menu-cap,
  .pink-mobile-menu-footer{display:none !important;}

  .faac-header-placeholder{display:none;width:100%;pointer-events:none;}

  body .faac-header-main{
    position:relative !important;
    min-width:0;
    box-sizing:border-box;
    z-index:99980;
    overflow:visible !important;
    transition:height .32s ease,min-height .32s ease,background-color .32s ease;
  }
  body .faac-header-main.faac-header-fixed{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
  }
  body.admin-bar .faac-header-main.faac-header-fixed{top:32px !important;}

  /* A boxed container has an inner row; a full container is itself the row.
     Neither case receives a hard-coded content width or side offset. */
  body .faac-header-main .faac-header-desktop,
  body .faac-header-main .faac-header-desktop > .e-con-inner{
    min-width:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    transition:min-height .32s ease,height .32s ease,padding-block .32s ease;
  }
  body .faac-header-main .faac-header-desktop > .e-con-inner,
  body .faac-header-main .faac-header-desktop:not(:has(> .e-con-inner)){
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) max-content !important;
    grid-template-rows:auto !important;
    align-items:center !important;
    margin-inline:auto;
  }

  body .faac-header-main .faac-header-logo{
    grid-column:1 !important;
    grid-row:1 !important;
    justify-self:start !important;
    align-self:center !important;
    position:relative !important;
    inset:auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    margin-inline:0 !important;
    transform:scale(1) !important;
    transform-origin:left center !important;
    transition:transform .32s ease !important;
  }

  body .faac-header-main .faac-header-icons,
  body .faac-header-main .faac-header-desktop .elementor-widget-pink-posts-navigation{
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:center !important;
    align-self:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin-inline:0 !important;
    overflow:visible !important;
    transform:none !important;
  }
  body .faac-header-main .faac-header-desktop .pink-posts-navigation,
  body .faac-header-main .faac-header-desktop .elementor-widget-pink-posts-navigation > .elementor-widget-container,
  body .faac-header-main .faac-header-icons > .e-con-inner{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  body .faac-header-main .faac-header-desktop .pink-posts-navigation-track{
    display:grid !important;
    grid-auto-flow:column !important;
    grid-auto-columns:minmax(0,1fr) !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding-inline:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }
  body .faac-header-main .faac-header-desktop .pink-nav-item{
    min-width:0 !important;
    max-width:100% !important;
    position:relative;
    overflow:visible !important;
    align-items:center !important;
  }
  body .faac-header-main .faac-header-desktop .pink-nav-icon,
  body .faac-header-main .faac-header-desktop .pink-nav-icon-picture{
    min-width:0;
    max-width:100%;
  }
  body .faac-header-main .faac-header-desktop .pink-nav-icon-image{
    max-width:100% !important;
    object-fit:contain;
    transition:height .32s ease,width .32s ease,opacity .18s ease;
  }

  /* Every label has the same anchor and wrapping, including both edges. */
  body .faac-header-main .pink-posts-navigation.show-desktop-labels.desktop-labels-hover-only.pink-desktop-label-overlay .pink-nav-item .pink-nav-label-desktop{
    left:50% !important;
    right:auto !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    width:var(--pink-nav-hover-label-width,120px) !important;
    min-width:0 !important;
    max-width:none !important;
    text-align:center !important;
    justify-content:center !important;
    align-items:center !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    overflow:visible !important;
    font-size:var(--pink-nav-hover-label-font-size,12px) !important;
    z-index:2;
  }

  body .faac-header-main .faac-header-tools{
    grid-column:3 !important;
    grid-row:1 !important;
    justify-self:end !important;
    align-self:center !important;
  }
  body .faac-header-main .faac-header-tools,
  body .faac-header-main .faac-header-actions,
  body .faac-header-main .faac-header-tools > .e-con-inner,
  body .faac-header-main .faac-header-actions > .e-con-inner{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    position:relative !important;
    inset:auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    margin-inline:0 !important;
    gap:var(--column-gap,10px) !important;
    transform:none !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }
  body .faac-header-main .faac-header-tools > *,
  body .faac-header-main .faac-header-actions > *{
    flex:0 0 auto;
    min-width:0;
  }
  body .faac-header-main .faac-header-desktop .elementor-widget-pink-posts-search{
    flex:0 1 auto !important;
    min-width:0 !important;
    width:auto !important;
    max-width:100% !important;
  }
  body .faac-header-main .faac-header-desktop .pink-posts-search:not(.pink-search-desktop-compact){
    width:var(--pink-search-desktop-width,220px);
    max-width:100% !important;
  }
  body .faac-header-main .pink-search-field{
    transition:width .32s ease,height .32s ease,background-color .18s ease,border-color .18s ease;
  }

  body.pink-header-over-page-bg:not(.faac-header-scrolled) .faac-header-main,
  body.pink-header-over-page-bg:not(.faac-header-scrolled) .faac-header-main .faac-header-desktop,
  body.pink-header-over-page-bg:not(.faac-header-scrolled) .faac-header-main .faac-header-desktop > .e-con-inner{
    background-color:transparent !important;
    background-image:none !important;
  }

  /* Only vertical size and paint change. No horizontal shift or tools scale. */
  body.faac-header-scrolled .faac-header-main.faac-header-fixed{
    min-height:var(--pink-sticky-header-height,100px) !important;
    height:var(--pink-sticky-header-height,100px) !important;
    max-height:var(--pink-sticky-header-height,100px) !important;
    padding-block:0 !important;
    background:var(--pink-category-primary,var(--pink-primary,#000000)) !important;
  }
  body.faac-header-scrolled .faac-header-main .faac-header-desktop{
    min-height:var(--pink-sticky-header-height,100px) !important;
    height:var(--pink-sticky-header-height,100px) !important;
    max-height:var(--pink-sticky-header-height,100px) !important;
    padding-block:var(--pink-sticky-header-padding-y,6px) !important;
    background:transparent !important;
  }
  body.faac-header-scrolled .faac-header-main .faac-header-desktop > .e-con-inner{
    height:100%;
    background:transparent !important;
  }
  body.faac-header-scrolled .faac-header-main .faac-header-logo{
    transform:scale(.8) !important;
  }

  .faac-header-show-sticky{opacity:0;visibility:hidden;pointer-events:none;}
  body.faac-header-scrolled .faac-header-show-sticky{opacity:1;visibility:visible;pointer-events:auto;}
  body.faac-header-scrolled .faac-header-hide-sticky{opacity:0;visibility:hidden;pointer-events:none;}
}
@media(min-width:768px) and (max-width:782px){
  body.admin-bar .faac-header-main.faac-header-fixed{top:46px !important;}
}
@media(min-width:768px) and (prefers-reduced-motion:reduce){
  body .faac-header-main,
  body .faac-header-main .faac-header-desktop,
  body .faac-header-main .faac-header-logo{transition:none !important;}
}

/* Adaptive HTML logo: an explicit intrinsic width prevents grid collapse.
   Resize the content instead of transforming its parent, preserving blending. */
@media(min-width:768px){
 body .faac-header-main .faac-header-desktop .faac-header-logo:has(.faac-adaptive-logo),
 body.faac-header-scrolled .faac-header-main .faac-header-desktop .faac-header-logo:has(.faac-adaptive-logo){transform:none !important;}
 body .faac-header-main .faac-header-logo .faac-adaptive-logo{width:var(--faac-logo-width,200px);max-width:100%;transition:width .32s ease;}
 body.faac-header-scrolled .faac-header-main .faac-header-logo .faac-adaptive-logo{width:calc(var(--faac-logo-width,200px) * .8) !important;}
}

/* 0.22.38: restore the complete desktop geometry and adaptive foreground. */
@media(min-width:768px){
 body .faac-header-main{
   --pink-header-foreground:#000;
   --pink-header-icon-filter:brightness(0);
   height:var(--pink-header-height,160px) !important;
   min-height:var(--pink-header-height,160px) !important;
   max-height:var(--pink-header-height,160px) !important;
   padding-block:0 !important;
 }
 body .faac-header-main > .e-con-inner{
   height:100% !important;min-height:0 !important;
   padding-block:0 !important;display:flex;flex-direction:column;align-items:stretch;
 }
 body:not(.faac-header-scrolled) .faac-header-main .faac-header-desktop{
   height:100% !important;min-height:0 !important;max-height:100% !important;
   padding-block:20px !important;margin-block:0 !important;
 }
 body .faac-header-main .faac-header-desktop > .e-con-inner{
   height:100% !important;min-height:0 !important;align-items:center !important;
 }
 /* Remove Elementor wrapper blending; contrast is based on the actual background. */
 body .faac-header-main .faac-header-desktop .faac-header-logo,
 body .faac-header-main .faac-header-desktop .faac-header-logo > .elementor-widget-container,
 body .faac-header-main .faac-header-desktop .faac-header-icons{
   mix-blend-mode:normal !important;filter:none !important;
 }
 body .faac-header-main .faac-header-desktop .faac-header-logo .faac-adaptive-logo > .faac-adaptive-mono{
   mix-blend-mode:normal !important;filter:none !important;
   color:var(--pink-header-foreground) !important;fill:var(--pink-header-foreground) !important;
 }
 body .faac-header-main .faac-header-desktop .faac-header-logo .faac-adaptive-logo > .faac-adaptive-mono path{
   fill:var(--pink-header-foreground) !important;
 }
 body .faac-header-main .faac-header-desktop .faac-header-logo .faac-adaptive-logo > .faac-adaptive-pink,
 body .faac-header-main .faac-header-desktop .faac-header-logo .faac-adaptive-logo > .faac-adaptive-pink path{
   mix-blend-mode:normal !important;filter:none !important;fill:#ee2a7b !important;
 }
 body .faac-header-main .faac-header-desktop .faac-header-logo:not(:has(.faac-adaptive-logo)) svg,
 body .faac-header-main .faac-header-desktop .faac-header-logo:not(:has(.faac-adaptive-logo)) img,
 body .faac-header-main .faac-header-desktop .faac-header-icons .pink-nav-item:not(.is-pink-hovering) .pink-nav-icon-image,
 body .faac-header-main .faac-header-desktop .faac-header-icons .pink-nav-item:not(.is-pink-hovering) .pink-nav-icon svg{
   mix-blend-mode:normal !important;filter:var(--pink-header-icon-filter) !important;
 }
 body .faac-header-main .faac-header-desktop .faac-header-icons,
 body .faac-header-main .faac-header-desktop .faac-header-icons .pink-nav-label{
   color:var(--pink-header-foreground) !important;
 }
}

/* 0.22.39 – keep Elementor's nested rows inside the painted sticky band. */
@media(min-width:768px){
 body.faac-header-scrolled .faac-header-main.faac-header-fixed{
   background:color-mix(in srgb,var(--pink-category-primary,var(--pink-primary,#000)) calc(var(--pink-sticky-background-opacity,.2) * 100%),transparent) !important;
   justify-content:center !important;row-gap:0 !important;
 }
 body.faac-header-scrolled .faac-header-main > .e-con-inner{
   box-sizing:border-box !important;margin-block:0 !important;padding-block:0 !important;
   height:100% !important;min-height:0 !important;
   justify-content:center !important;row-gap:0 !important;flex-shrink:0 !important;
 }
 body.faac-header-scrolled .faac-header-main .faac-header-desktop{
   box-sizing:border-box !important;margin-block:0 !important;
   flex-shrink:0 !important;transform:none !important;inset:auto !important;
   align-content:center !important;align-items:center !important;
 }
 body.faac-header-scrolled .faac-header-main .faac-header-desktop > .e-con-inner{
   box-sizing:border-box !important;margin-block:0 !important;padding-block:0 !important;
   height:100% !important;min-height:0 !important;
   align-content:center !important;align-items:center !important;
 }
 body.faac-header-scrolled .faac-header-main .faac-header-desktop .faac-header-logo,
 body.faac-header-scrolled .faac-header-main .faac-header-desktop .faac-header-icons,
 body.faac-header-scrolled .faac-header-main .faac-header-desktop .faac-header-tools,
 body.faac-header-scrolled .faac-header-main .faac-header-desktop .faac-header-actions{
   margin-block:0 !important;padding-block:0 !important;inset:auto !important;
   align-self:center !important;
 }
}

/* 0.22.40 – category stripe dimensions owned by the administration. */
@media(min-width:768px){
 body:not(.faac-header-scrolled) .faac-header-main{
   border-top:var(--pink-header-line-height,8px) solid var(--pink-category-primary,var(--pink-primary,#000)) !important;
 }
 body.faac-header-scrolled .faac-header-main.faac-header-fixed{
   border-top:8px solid var(--pink-category-primary,var(--pink-primary,#000)) !important;
 }
 body.faac-header-scrolled .faac-header-main .faac-header-desktop{
   height:100% !important;min-height:0 !important;max-height:100% !important;
 }
}
