/* Homepage header and three-card desktop formulation goals. */
body .site-header{background:transparent!important;padding-bottom:8px;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
body .home-header-row>.nav-shell{background:#F3F7FD!important}
.english-home .en-goal-track{--visible-goals:3!important}
body .home-header-row{width:calc(100% - 40px);max-width:1440px;margin:0 auto;display:flex;align-items:center;gap:24px}
body .home-header-row>.brand{display:flex;flex:0 0 180px;width:180px;height:70px;padding:0;background:transparent;border:0;box-shadow:none}
body .home-header-row>.brand .brand-logo{width:180px;height:auto;max-height:70px;object-fit:contain}
body .home-header-row>.nav-shell{flex:1;min-width:0;width:auto;margin:0;padding:6px 10px;border-radius:40px;gap:8px;min-height:64px;box-shadow:0 10px 30px rgb(0 0 53 / 7%)}
body .home-header-row .desktop-nav{flex:1;justify-content:space-between;gap:0;padding:0;background:transparent;border:0}
body .home-header-row .nav-icon-link{padding:10px 9px;gap:5px;font-size:14px;white-space:nowrap}
body .home-header-row .nav-icon-link>svg{display:none}
body .home-nav-link{background:#F3F7FD;border-radius:24px}
body .home-header-row .header-cta{padding:0 12px;font-size:13px;gap:6px}
@media(min-width:1051px) and (max-width:1250px){
body .home-header-row{gap:16px}
body .home-header-row>.brand{flex-basis:160px;width:160px}
body .home-header-row>.brand .brand-logo{width:160px}
body .home-header-row .header-cta{display:none}
body .home-header-row .nav-icon-link{font-size:13px;padding:10px 7px}
}
@media(max-width:1050px){
body .home-header-row>.nav-shell{flex:0 0 auto;margin-left:auto;min-height:54px}
}
@media(max-width:980px){.english-home .en-goal-track{--visible-goals:2!important}}
@media(max-width:620px){
.english-home .en-goal-track{--visible-goals:1!important}
body .home-header-row{width:calc(100% - 24px);gap:10px}
body .home-header-row>.brand{flex-basis:130px;width:130px;height:58px}
body .home-header-row>.brand .brand-logo{width:130px}
body .home-header-row>.nav-shell{padding:4px 7px;gap:4px;min-height:48px}
body .home-header-row .phai-launch{font-size:0!important;width:38px;min-width:38px;padding:6px!important;gap:0!important}
body .home-header-row .phai-launch>span{font-size:0!important}
body .home-header-row .phai-launch>span:first-child{font-size:20px!important}
body .home-header-row .menu-button{padding:8px 10px;font-size:14px}
}

/* Give all six homepage images their natural landscape proportions. */
.english-home .en-goals>.shell{width:calc(100% - 40px);max-width:1440px}
.english-home .en-goal-slide{height:auto!important;min-height:0!important}
.english-home .en-goal-slide .en-goal-card{height:100%;display:flex;flex-direction:column}
.english-home .en-goal-art{height:auto!important;aspect-ratio:1672 / 941;flex:0 0 auto}
.english-home .en-goal-card h3{height:auto;min-height:76px;display:flex;align-items:center;padding:18px}
@media(max-width:620px){.english-home .en-goals>.shell{width:calc(100% - 32px)}.english-home .en-goal-card h3{min-height:64px}}

/* Compact desktop menu capsule, with controls aligned on one center line. */
@media(min-width:1051px){
body .home-header-row>.nav-shell{height:58px;min-height:58px;padding:5px 10px}
body .home-header-row .desktop-nav{height:46px;min-height:0}
body .home-header-row .nav-icon-link{height:40px;min-height:40px;padding:8px 9px;line-height:1.2;display:flex;align-items:center}
body .home-header-row .header-cta,body .home-header-row .phai-launch{height:40px;min-height:40px}
body .home-header-row .nav-item{height:40px;display:flex;align-items:center}
}

/* Long translated words must not widen the mobile grid. */
.english-home .en-intro-copy,.english-home .en-intro-sketch-glow{min-width:0;max-width:100%}
.english-home h1,.english-home h2,.english-home h3,.english-home .en-intro-actions{overflow-wrap:anywhere;hyphens:auto}
@media(max-width:620px){.english-home .en-intro-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep the navigation pill while removing its visible outer outline. */
body .site-header .home-header-row>.nav-shell{border-color:transparent!important;box-shadow:0 10px 30px rgb(0 0 53 / 7%)!important}

/* All primary menu items use the same pill interaction as Home. */
body .home-header-row .desktop-nav .nav-icon-link{border-radius:24px;border-color:transparent!important;text-decoration:none}
body .home-header-row .desktop-nav .nav-icon-link:is(:hover,:focus-visible,:active,.active,[aria-current]),body .home-header-row .desktop-nav .nav-item:is(:hover,:focus-within)>.nav-icon-link{background:#E8EFF8;color:#000035}
