/* YES TO FOREVER 2.0 - responsive site navigation.
   Full navigation at desktop widths; one easy Menu button on small screens.
   The portal link stays visible outside the collapsible menu. */
.site-header .ytfp-main-nav{
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:clamp(12px,1.7vw,26px);
  width:auto;
  min-width:0;
}
.site-header .ytfp-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  gap:8px;
}
.site-header .ytfp-header-portal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  text-align:center;
  white-space:nowrap;
  line-height:1.2;
}
.site-header .ytfp-menu-toggle{
  display:none;
}
.site-header .ytfp-menu-toggle[hidden]{
  display:none!important;
}
.site-header .ytfp-main-nav a:focus-visible,
.site-header .ytfp-menu-toggle:focus-visible{
  outline:3px solid #bc975c;
  outline-offset:3px;
}
@media(max-width:900px){
  .site-header,
  body.home .site-header{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:12px 16px;
  }
  .site-header .wordmark.ytfp-site-logo,
  .site-header.ytfp-is-scrolled .wordmark.ytfp-site-logo{
    flex:0 1 230px;
    width:min(230px,42vw);
    max-width:42vw;
    min-width:0;
  }
  .site-header .ytfp-site-logo-image,
  .site-header.ytfp-is-scrolled .ytfp-site-logo-image{
    max-width:100%;
    max-height:66px;
  }
  .site-header .ytfp-header-actions{
    margin-left:auto;
    flex:0 0 auto;
    gap:7px;
  }
  .site-header .ytfp-header-actions .ytfp-header-portal{
    min-height:43px;
    padding:9px 11px;
    font:700 11px/1.25 Arial,sans-serif;
    border-radius:35px;
    white-space:nowrap;
  }
  .site-header .ytfp-menu-toggle{
    display:inline-flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    min-height:44px;
    min-width:44px;
    gap:8px;
    padding:8px 11px;
    border:1px solid #829888;
    border-radius:11px;
    background:#fffdf7;
    color:#315843;
    cursor:pointer;
    font:700 12px/1.25 Arial,sans-serif;
    white-space:nowrap;
  }
  .site-header .ytfp-menu-toggle:hover,
  .site-header.ytfp-nav-open .ytfp-menu-toggle{
    color:#fffdf6;
    background:#315843;
    border-color:#315843;
  }
  .site-header .ytfp-menu-icon{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    flex:0 0 19px;
    width:19px;
  }
  .site-header .ytfp-menu-icon span{
    display:block;
    width:19px;
    height:2px;
    background:currentColor;
    border-radius:3px;
  }
  .site-header.ytfp-nav-open .ytfp-menu-icon span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }
  .site-header.ytfp-nav-open .ytfp-menu-icon span:nth-child(2){
    opacity:0;
  }
  .site-header.ytfp-nav-open .ytfp-menu-icon span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }
  .site-header .ytfp-main-nav,
  .site-header.ytfp-is-scrolled .ytfp-main-nav{
    position:absolute;
    z-index:2;
    top:calc(100% + 1px);
    left:0;
    right:0;
    width:100%;
    max-height:calc(100dvh - 105px);
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:5px;
    padding:13px 18px 17px;
    background:#fffdf7;
    border:1px solid #dce3d8;
    border-top:0;
    border-radius:0 0 14px 14px;
    box-shadow:0 18px 29px rgba(35,61,42,.18);
    font-size:14px;
  }
  /* Only hide links when JavaScript has made the toggle operational.
     The unenhanced menu is visible if scripts are disabled. */
  .site-header.ytfp-menu-ready .ytfp-main-nav{
    display:none;
  }
  .site-header.ytfp-menu-ready.ytfp-nav-open .ytfp-main-nav{
    display:flex;
  }
  .site-header .ytfp-main-nav a{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:11px 14px;
    border-radius:9px;
    text-decoration:none;
    font:700 14px/1.35 Arial,sans-serif;
    color:#2b533d;
    background:transparent;
  }
  .site-header .ytfp-main-nav a:hover,
  .site-header .ytfp-main-nav a:focus-visible{
    background:#edf2e9;
    color:#2b533d;
  }
  .site-header.ytfp-is-scrolled,
  body.home .site-header.ytfp-is-scrolled{
    padding:9px 16px;
    gap:8px;
  }
}
@media(max-width:520px){
  .site-header .ytfp-menu-caption{display:none}
  .site-header .ytfp-menu-toggle{
    padding:8px;
    width:44px;
    flex:0 0 44px;
  }
  .site-header .ytfp-header-actions{
    gap:6px;
  }
  .site-header .ytfp-header-actions .ytfp-header-portal{
    font-size:10px;
    padding:9px 9px;
  }
}
@media(max-width:380px){
  .site-header,
  body.home .site-header{
    padding-left:10px;
    padding-right:10px;
    gap:6px;
  }
  .site-header .wordmark.ytfp-site-logo,
  .site-header.ytfp-is-scrolled .wordmark.ytfp-site-logo{
    flex:0 1 37vw;
    width:37vw;
    max-width:37vw;
  }
  .site-header .ytfp-header-actions .ytfp-header-portal{
    padding:8px 8px;
  }
  .site-header.ytfp-is-scrolled,
  body.home .site-header.ytfp-is-scrolled{
    padding-left:10px;
    padding-right:10px;
  }
}
/* Management-only shortcut inside the existing Wedding Portal header. */
.ytfp-app .ytfp-people-shortcut{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 15px;
  border:1px solid #b8cbb4;
  border-radius:10px;
  color:#2b533c;
  background:#eaf2e5;
  text-decoration:none;
  font:700 12px/1.4 Arial,sans-serif;
}
.ytfp-app .ytfp-people-shortcut:hover{
  color:#244a34;
  background:#daebd7;
}
.ytfp-app .ytfp-people-shortcut:focus-visible{
  outline:3px solid #bd9a5e;
  outline-offset:3px;
}
@media(max-width:680px){
  .ytfp-app .ytfp-top .ytfp-people-shortcut{
    width:100%;
    justify-content:center;
    margin:8px 0 0;
  }
}
@media(prefers-reduced-motion:reduce){
  .site-header .ytfp-menu-icon span{transition:none}
}
