/* Shared final layout: all coaches and localized homepages. */
html:has(body main>.portrait),html:has(body main.coach-page){min-height:100%;background:var(--theme-bg,#fff)!important}
body:has(main>.portrait),body:has(main.coach-page){min-height:100svh;background:linear-gradient(100deg,var(--coach-top-left,#fff),var(--coach-top-right,#fff))!important;background-attachment:fixed!important}
html[data-theme] body main:has(>.portrait),html[data-theme] body main.coach-page{background:transparent!important;min-height:100svh}
html[data-theme=color]:has(main>.portrait){--coach-top-left:#09253b;--coach-top-right:#173b32}
html[data-theme=dark]:has(main>.portrait){--coach-top-left:#111b30;--coach-top-right:#17233b}
html[data-theme=mono]:has(main>.portrait){--coach-top-left:#fff;--coach-top-right:#fff}
body main>.coach-header{grid-template-columns:80px minmax(0,1fr);grid-template-rows:124px auto;row-gap:12px;margin-bottom:12px}
body .coach-header>.brand{width:80px;height:124px}
body .coach-header>.brand img{width:80px!important;height:110px!important}
body .coach-header>.home-back{margin:0!important;align-self:start}
body .coach-page .call-header{grid-template-rows:72px auto;row-gap:12px;margin-bottom:12px}
body .coach-page .call-header .logo-home,body .coach-page .call-header .logo-home img{width:64px;height:72px}
body main:has(>.portrait)>.portrait{width:100%!important;display:flex;justify-content:center;isolation:isolate}
html[data-theme] body main>.portrait img{width:auto!important;max-width:100%;height:100%;object-fit:contain;mask-image:linear-gradient(to right,transparent,#000 15%,#000 85%,transparent),linear-gradient(to bottom,transparent,#000 3%,#000 88%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 15%,#000 85%,transparent),linear-gradient(to bottom,transparent,#000 3%,#000 88%,transparent);-webkit-mask-composite:source-in}
html[data-theme=mono] body main>.portrait img{mix-blend-mode:multiply;mask-image:none;-webkit-mask-image:none}
body main:has(>.portrait)>h1,body main.coach-page>h1{font-size:clamp(60px,14vw,88px)!important;font-weight:750!important;line-height:1.06!important;letter-spacing:-.025em;margin:12px 0 18px!important;text-align:center!important}
html body main>.hero .title{grid-column:1 / -1!important;padding:0 26px!important;margin:0!important;transform:none!important;text-align:center!important;justify-self:stretch!important;width:auto!important}
html body main>.hero .title h1,html body main>.hero h1{font-size:clamp(32px,8.3vw,54px)!important;line-height:1.08!important;text-align:center!important;margin:0 auto!important;letter-spacing:-.035em!important;text-wrap:balance}
html body main>.hero .title h1 span{padding:0!important;text-align:center!important}
@media(max-width:500px){body main>.coach-header{grid-template-rows:100px auto;row-gap:12px}body .coach-header>.brand{height:100px}body .coach-header>.brand img{height:98px!important}html body main>.hero .title{padding:0 23px!important}}

/* Quiet company information below the AI disclosure, in every theme. */
html[data-theme] footer .company-details{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin-top:12px!important;font-size:.85em!important;line-height:1.5}
footer .company-details p{font-size:inherit!important;margin:2px 0!important}

/* One continuous full-screen scene, with feathered portrait edges. */
html[data-theme=dark]:has(main>.portrait){--coach-scene:radial-gradient(ellipse at 50% 38%,#223455 0%,#15233d 43%,#0b152b 100%);background:#0b152b!important}
html[data-theme=color]:has(main>.portrait){--coach-scene:radial-gradient(ellipse at 50% 40%,#143f52 0%,transparent 66%),linear-gradient(100deg,#021733,#0a2a2c);background:#021733!important}
html:is([data-theme=dark],[data-theme=color]) body:has(main>.portrait){background:var(--coach-scene)!important;background-size:100% 100%!important;background-attachment:scroll!important;min-height:100svh;margin:0!important}
html:is([data-theme=dark],[data-theme=color]) body main:has(>.portrait){background:transparent!important;box-shadow:none!important;border:0!important;min-height:100svh}
html:is([data-theme=dark],[data-theme=color]) body main>.portrait{background:transparent!important;box-shadow:none!important;overflow:visible!important}
html:is([data-theme=dark],[data-theme=color]) body main>.portrait img{mask-image:linear-gradient(to right,transparent 0%,#000 23%,#000 77%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 2%,#000 84%,transparent 100%);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 23%,#000 77%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 2%,#000 84%,transparent 100%);-webkit-mask-composite:source-in}
