/* Full-width header is a direct body child, not a half-column brand panel. */
html:has(body[data-freeflow-layout]){min-width:0}body[data-freeflow-layout]{display:block!important;margin:0!important;min-width:0;width:auto!important;max-width:none!important;grid-template-columns:none!important}body[data-freeflow-layout]>[data-freeflow-header]{position:relative!important;display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;width:100%!important;max-width:none!important;min-width:0;min-height:112px!important;height:auto!important;max-height:none!important;margin:0!important;padding:18px clamp(16px,4vw,48px)!important;box-sizing:border-box!important;grid-column:1/-1!important;justify-self:stretch!important;overflow:hidden;border-radius:0!important;color:#fff!important;background:#030a0d!important;isolation:isolate}body[data-freeflow-layout]>[data-freeflow-header]::before,body[data-freeflow-layout]>[data-freeflow-header]::after{content:none!important}body[data-freeflow-layout]>[data-freeflow-header] :is(.identity,.brand,.bar,.in){display:flex;align-items:center;gap:12px;min-width:0;background:transparent!important}body[data-freeflow-layout]>[data-freeflow-header] .freeflow-original-logo{display:block!important;width:clamp(54px,7vw,76px)!important;height:auto!important;max-width:100%;object-fit:contain!important;aspect-ratio:auto!important;filter:none!important;opacity:1!important;transform:none!important;mask-image:none!important;-webkit-mask-image:none!important;flex:0 0 auto}body[data-freeflow-layout]>[data-freeflow-header] a:has(.freeflow-original-logo){display:flex;align-items:center;gap:10px;color:#fff!important;min-width:0}body[data-freeflow-layout]>[data-freeflow-header] :is(.brandWords,.brandFoot,.header-balance){display:none!important}body[data-freeflow-layout]>[data-freeflow-header] :is(header,.ck-t-glass){background:transparent!important;width:100%;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}body[data-freeflow-layout]>[data-freeflow-header] nav{display:flex;flex-wrap:wrap;gap:12px}body[data-freeflow-layout]>[data-freeflow-header] :is(.product-title,.coreank-wordmark,.wordmark){color:#fff!important}body[data-freeflow-layout]>.shell{grid-template-columns:minmax(0,1fr)!important;min-width:0}body[data-freeflow-layout] .freeflow-original-logo{user-select:none}@media(max-width:600px){body[data-freeflow-layout]>[data-freeflow-header]{min-height:96px!important;padding:14px 16px!important;gap:10px}body[data-freeflow-layout]>[data-freeflow-header] :is(.product-title,.wordmark){font-size:20px}body[data-freeflow-layout]>[data-freeflow-header] .in{flex-wrap:wrap}body[data-freeflow-layout]>[data-freeflow-header] .product-subtitle{font-size:12px}}
/* Preserve the original centered GOLF BOX title while the cosmic band spans the viewport. */
body[data-freeflow-layout]>[data-freeflow-header] .product-wordmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;max-width:calc(100% - 168px)}

/* Original 1600×400 image: central horizon apex near source y=20.
   Shift its top toward the band bottom, without scaling/stretching the asset.
   At 390px apex ≈ bottom−19px; at 1600px ≈ bottom−12px. */
body[data-freeflow-layout]>[data-freeflow-header]::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:calc(100% - clamp(24px,2vw,36px))!important;bottom:auto!important;width:100%!important;height:25vw!important;min-height:100px;z-index:-1;pointer-events:none;opacity:1!important;transform:none!important;filter:none!important;border:0!important;background:linear-gradient(90deg,#02070a55,#02070a00),url('/assets/theme/ck-cosmos-band.webp') center top/100% auto no-repeat!important}


/* Keep late page-local auth theme rules from making the cosmic header transparent. */
html:root body[data-freeflow-layout]>[data-freeflow-header][data-freeflow-header]{background-color:#030a0d!important;background-image:none!important}

/* R4: original business-card cosmos, full-width image, horizon at about 80%. */
html:root body[data-freeflow-layout]>[data-freeflow-header][data-freeflow-header]{height:clamp(144px,14vw,220px)!important;min-height:clamp(144px,14vw,220px)!important;background-color:#06100f!important;background-image:linear-gradient(90deg,#02070a22,#02070a10),url('/assets/theme/coreank-cosmos-original-v4.png')!important;background-size:100% 100%,100% auto!important;background-position:center,center calc(80% + 7.6vw)!important;background-repeat:no-repeat!important}
html:root body[data-freeflow-layout]>[data-freeflow-header][data-freeflow-header]::before,html:root body[data-freeflow-layout]>[data-freeflow-header][data-freeflow-header]::after{content:none!important;display:none!important;background:none!important}
html:root body[data-freeflow-layout] nav.partner-nav{background:rgba(17,24,27,.76)!important;color:#f7faf3!important;border:1px solid #ffffff66;border-radius:14px;padding:14px 18px}
html:root body[data-freeflow-layout] nav.partner-nav p{color:#f7faf3!important;background:transparent!important}
html:root body[data-freeflow-layout] nav.partner-nav a{color:#d8ef83!important;text-decoration:underline;text-underline-offset:.2em}
html:root body[data-freeflow-layout] nav.partner-nav button{background:rgba(17,24,27,.76)!important;color:#f7faf3!important;border:1px solid #ffffff99;border-radius:10px;padding:9px 14px;min-height:42px}
html:root body[data-freeflow-layout] :is(.msg.error,.ck-t-msg.error){background:rgba(17,24,27,.76)!important;color:#ffdad1!important}

/* Shared alignment. Cosmos is header-only; preserve the original forest body. */
html:root body[data-freeflow-layout]>[data-freeflow-header][data-freeflow-header]{flex-direction:row!important}
html:root body[data-freeflow-layout]>[data-freeflow-header] .identity{margin:0!important;justify-content:flex-start!important;width:auto!important}
html:root body[data-freeflow-layout] :is(dialog,[role=dialog]){background:rgba(17,24,27,.9)!important;color:#f7faf3!important;border:1px solid #ffffff88}
html:root body[data-freeflow-layout] :is(dialog,[role=dialog]) :is(h1,h2,h3,p,span,label,small):not(button *){color:#f7faf3!important}

@media(max-width:600px){
 html:root body[data-freeflow-layout]>[data-freeflow-header] :is(.identity,.brand,a:has(.freeflow-original-logo)){flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;max-width:96px!important;margin:0!important}
 html:root body[data-freeflow-layout]>[data-freeflow-header] .freeflow-original-logo{width:38px!important;height:auto!important}
 html:root body[data-freeflow-layout]>[data-freeflow-header] :is(.coreank-wordmark,.wordmark){font-size:11px!important;letter-spacing:1px!important;line-height:1.2!important;text-align:center!important;max-width:96px!important}
 html:root body[data-freeflow-layout]>[data-freeflow-header] .product-wordmark{max-width:calc(100% - 160px)!important}
 html:root body[data-freeflow-layout]>[data-freeflow-header] .product-title{font-size:22px!important;line-height:1.1!important}
 html:root body[data-freeflow-layout]>[data-freeflow-header] .product-subtitle{font-size:10px!important}
}

html:root body[data-freeflow-layout] #confirmContent{background:rgba(17,24,27,.76)!important;color:#f7faf3!important;border:1px solid #ffffff88!important}

html:root body[data-freeflow-layout] nav.partner-nav a{background:rgba(17,24,27,.76)!important;border:1px solid #ffffff99!important;color:#d8ef83!important;border-radius:10px}

html:root body[data-freeflow-layout] #wayRemote{background:rgba(17,24,27,.76)!important;color:#f7faf3!important;border:1px solid #ffffff99}
html:root body[data-freeflow-layout] #wayRemote :is(strong,span,small,p){color:#f7faf3!important}
html:root body[data-freeflow-layout]>[data-freeflow-header] :is(.in,.bar){width:100%!important;max-width:none!important;margin:0!important;justify-content:space-between!important}
html:root body[data-freeflow-layout]>[data-freeflow-header] :is(.identity,.brand){margin-left:0!important;margin-right:0!important;justify-content:flex-start!important}

html:root body[data-freeflow-layout] .socialGoogle{background:#FFFFFF!important;color:#1F1F1F!important;border:1px solid #747775!important}
html:root body[data-freeflow-layout] .socialGoogle :is(span,strong){color:#1F1F1F!important}

/* Requested contrast frame only. Original logo file/colours/proportions are unchanged. */
html:root body[data-freeflow-layout]>[data-freeflow-header] .freeflow-original-logo{background-color:#000!important;border:1.5px solid #fff!important;border-radius:50%!important;padding:4px!important;box-sizing:content-box!important}
html:root body[data-freeflow-layout]>[data-freeflow-header] .mark:has(.freeflow-original-logo){width:auto!important;height:auto!important;overflow:visible!important;background:transparent!important;border:0!important;flex:0 0 auto}
