/* Scoped trial. Keep other sections and standalone pages on the approved design. */
.header,.hero,.menu,.ys-mega-menu{--pale-yellow:#87a990;--ys-fill-green:#285640;--ys-cream:#f7f3e9}
.hero__bg{color:#87a990!important}
/* Match the dominant green in young-support-wordmark-clean.png. */
.hero .hero__bg{color:#598365!important}
.hero [data-hero-title],.hero [data-hero-paragraph],.hero .hero__text,
.ys-mega-menu h2,.ys-mega-menu h3,.ys-mega-menu__card-copy strong,.menu .ys-mobile-menu-group h2{
 font-family:ui-sans-serif,system-ui,sans-serif!important;
}
.hero [data-hero-title]{font-weight:700!important;letter-spacing:-.045em!important;line-height:1.02!important}
.hero .hero__visual-img{height:100%!important;object-fit:cover!important;object-position:center 45%!important;transform:none!important}
.hero .hero__visual::after{background:linear-gradient(170deg,#87a990,#f7f3e9 72%)}
.header .button-social__bg{background-color:#87a990!important}
.menu .ys-mobile-menu-panel li:nth-child(3n + 3) a{background-color:#87a990!important}
/* Keep the existing menu links; make their fill travel vertically too. */
.ys-mega-menu .ys-mega-menu__panel a,.menu .ys-mobile-menu-panel a{
 background-position:center bottom!important;background-size:100% 0%!important;
 transition:background-size .4s cubic-bezier(.5,.75,0,1),color .28s ease!important;
}
.ys-mega-menu .ys-mega-menu__panel a:is(:hover,:focus-visible),.menu .ys-mobile-menu-panel a:is(:hover,:focus-visible){background-size:100% 100%!important}
@media(min-width:992px){
 .ys-mega-menu__stage{grid-template-columns:minmax(230px,.9fr) minmax(270px,1.1fr) minmax(240px,1fr);gap:22px}
 .ys-mega-menu__cards{display:flex;flex-direction:column;gap:12px}
 .ys-mega-menu__card,.ys-mega-menu__card.is-active{flex:1;grid-area:auto!important;background:#87a990;color:#082f62;border-radius:18px}
 .ys-mega-menu__card[data-menu-card="information"]{background:#d7b889}
 .ys-mega-menu__card[data-menu-card="complaints"]{background:#87a990}
 .ys-mega-menu__card.is-active{background:#082f62;color:#f7f3e9}
 .ys-mega-menu .ys-mega-menu__topic,.ys-mega-menu .ys-mega-menu__card.is-active .ys-mega-menu__topic{height:100%;min-height:0;padding:22px;align-items:center}
 .ys-mega-menu__card-copy strong{font-size:clamp(19px,1.7vw,28px);font-weight:700;line-height:1.15}
 .ys-mega-menu__card-copy small{font-size:14px;line-height:1.4;color:#173e53}
 .ys-mega-menu__card.is-active .ys-mega-menu__card-copy small{color:#f7f3e9}
 .ys-menu-detail{background:#082f62;border-radius:22px;min-width:0;padding:26px;display:flex;align-items:center}
 .ys-mega-menu .ys-menu-detail .ys-mega-menu__panel{position:static;width:100%;gap:12px;transform:none}
 .ys-menu-detail h3{font-size:clamp(24px,2.2vw,34px);line-height:1.15;color:#f7f3e9;margin:0 0 18px;font-weight:700}
 .ys-mega-menu .ys-mega-menu__panel a{background-image:linear-gradient(#87a990,#87a990);line-height:1.35;padding:16px;font-size:17px}
 .ys-mega-menu .ys-mega-menu__panel a:hover,.ys-mega-menu .ys-mega-menu__panel a:focus-visible{border-color:#87a990}
 .ys-mega-menu .ys-mega-menu__image-wrap img{object-position:center;object-fit:cover}
}
@media(prefers-reduced-motion:reduce){.ys-fill-control .button__bg,.ys-fill-control .button-alt__bg{transition:none!important}}

.ys-approved-intro,.ys-approved-backdrop{background:var(--ys-lab-paper,#faf7f0)!important}
/* Once ready, only the fading backdrop and SVG sweep may cover the page. */
.ys-approved-intro.is-ready{background:transparent!important}
.ys-approved-shape{color:var(--ys-brand-green,#598365)!important}
@media(max-width:991px){
 .menu__container{background:#87a990!important}
 .menu__bg{background:#87a990!important;color:#789c83!important}
 .menu__bg svg{color:#789c83!important}
 .ys-mobile-menu-sweep{color:#87a990!important}
 .ys-mobile-menu-sweep__backdrop{background:#87a990!important}
}
body.ys-mega-open .ys-news-announcement,body:has(.menu.is--active) .ys-news-announcement{visibility:hidden;pointer-events:none}

/* Approved hero composition: clear text area and no newsflash. */
.ys-news-announcement{display:none!important}
@media(min-width:992px){.hero .hero__bg{left:18%!important}}
/* Mobile menu overrides previously forced white labels on green CTAs. */
.menu .ys-fill-control .button-alt__text,.menu .ys-fill-control .button-alt__icon{color:inherit!important}
.menu .ys-fill-control .button-alt__bg{background-color:transparent!important}
@media(prefers-reduced-motion:reduce){
 .ys-fill-control *,.ys-mega-menu .ys-mega-menu__panel a,.menu .ys-mobile-menu-panel a{transition:none!important}
}
/* BaseCreate's compact link-button proportions, desktop navigation only. */
@media(min-width:992px){
 .header__nav .ys-nav-pill{font-size:16px;--button-height:1.75em;--button-padding:0 .66em;--button-alt-height:1.75em;--button-alt-padding-x:.66em}
 .header__nav .ys-nav-pill .button__inner{height:1.75em!important;padding:0 .66em!important}
 .header__nav .ys-nav-pill .button-alt__text-wrap{height:1.75em!important;padding:0 .66em!important}
 .header__nav .ys-nav-pill .button-alt__icon-wrap{width:1.75em!important;height:1.75em!important}
}
/* Keep the old bounce off the containers, without suppressing the new layers. */
.ys-fill-control .button-alt__text-wrap,.ys-fill-control .button-alt__icon-wrap{transform:none!important;translate:none!important;rotate:none!important;scale:none!important}
/* Let the original hero sweep continue through the navigation area at the top. */
@media(min-width:992px){
 body.ys-at-hero-top:not(.ys-mega-open) .header{background:transparent!important}
}
