/* ClubHub83 app styling. Inspired by the familiar GFC layout; no GFC assets or data. */
:root{--ch-cream:#f7f0dd;--ch-orange:#fa991e;--ch-navy:#10202d}
body.signed-in{background:#090e15}
body.signed-in .wrap{max-width:1000px;padding:18px 18px 112px}
body.signed-in .top{margin:0 auto 14px;padding:12px 17px;background:linear-gradient(145deg,#14202a,#0b1019);border:2px solid var(--ch-orange);border-radius:18px}
body.signed-in .logo{font-size:clamp(23px,5vw,33px);font-style:italic;letter-spacing:-1.7px}
body.signed-in .logo span{color:var(--ch-orange)}
body.signed-in .top .tag{color:var(--ch-cream);border-color:#6b6053}
body.signed-in .hero{display:none}
body.signed-in .panel{border-radius:17px;background:#121c29;box-shadow:0 5px 22px #0003}
body.signed-in #clubDash{padding:16px;background:#101722}
body.signed-in #clubDash>.kicker,body.signed-in #clubDash>#clubName,body.signed-in #clubDash>#clubSub,body.signed-in #clubDash>#featureList{margin-left:6px}
body.signed-in .ch-home{background:linear-gradient(155deg,var(--club-main),#101722 85%);margin:0 0 19px}
body.signed-in .ch-home-head{min-height:125px}
body.signed-in .ch-tabs{background:#101722;border-top:1px solid #46576a;gap:9px}
body.signed-in .ch-tabs button{background:var(--ch-cream);color:var(--ch-navy);border:1px solid #e3d8bd;border-radius:9px;text-transform:none}
body.signed-in .ch-tabs button.ch-selected{background:var(--club-accent);border-color:var(--club-accent);color:#101722}
body.signed-in .ch-tab-content{min-height:100px}
body.signed-in .ch-admin,body.signed-in .ch-brand-settings{background:#182334;border:1px solid #35495c;border-radius:15px;padding:18px}
body.signed-in #ch-create,body.signed-in #ch-join{padding:18px}
body.signed-in button:not(.ch-tabs button){transition:filter .15s}
body.signed-in button:not(.ch-tabs button):hover{filter:brightness(1.08)}
@media(max-width:650px){
body.signed-in .wrap{padding-left:10px;padding-right:10px}
body.signed-in .top{margin-left:1px;margin-right:1px}
body.signed-in .top .tag{font-size:9px}
body.signed-in .ch-tabs{position:fixed;left:0;right:0;bottom:0;z-index:15;padding:10px 8px calc(10px + env(safe-area-inset-bottom));gap:5px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:2px solid var(--ch-orange);box-shadow:0 -5px 25px #000a;overflow:visible;background:#17212bdc;backdrop-filter:blur(16px)}
body.signed-in .ch-tabs button{padding:11px 2px;border:0;font-size:10px;border-radius:6px;white-space:normal;min-height:44px}
body.signed-in .ch-home-head{min-height:105px}
body.signed-in .ch-home-logo,body.signed-in .ch-home-monogram{width:61px;height:61px}
body.signed-in #clubDash{padding:12px}
}

/* Club-specific visitor experience: no central platform content. */
body.club-route .hero,body.club-route .grid,body.club-route footer,body.club-route .top .tag,
body.club-route #ch-platform-login-title,body.club-route #loginCard>p.muted{display:none!important}
body.club-route:not(.signed-in) .wrap{max-width:520px;min-height:100vh;padding:28px 18px}
body.club-route:not(.signed-in) .top{margin-bottom:24px;justify-content:center}
body.club-route:not(.signed-in) #loginCard{display:block!important;border-color:var(--login-accent,#f2a126);background:linear-gradient(140deg,var(--login-main,#18334e),#14202d);padding:26px}
body.club-route #loginCard button:not(.secondary){background:var(--login-accent,#f2a126)}
#ch-login-brand{display:none;align-items:center;gap:16px;margin-bottom:18px}
body.club-route #ch-login-brand{display:flex}
#ch-club-login-logo{width:66px;height:66px;flex-shrink:0;border:2px solid var(--login-accent,#f2a126);border-radius:16px;display:grid;place-items:center;font-size:22px;font-weight:900;overflow:hidden}
#ch-club-login-logo img{width:100%;height:100%;object-fit:cover}
body.club-route #loginCard label{font-size:13px}
body.club-route #loginCard .switch button{flex:1}
body.club-route.signed-in #ch-create,body.club-route.signed-in #ch-join{display:none!important}
body.club-route.signed-in #clubPicker{display:none!important}
body.club-route.signed-in #app>.panel:first-of-type{padding:12px 16px}
body.club-route.signed-in #ch-admin{display:none!important}

/* Platform root is owner-only: show login, never public registration. */
body.platform-route:not(.signed-in) .hero,body.platform-route:not(.signed-in) .grid,body.platform-route:not(.signed-in) footer{display:none!important}
body.platform-route:not(.signed-in) .wrap{max-width:520px;margin:auto;padding:28px 18px}
body.platform-route:not(.signed-in) .top{margin-bottom:24px;justify-content:center}
body.platform-route #signUpBtn{display:none!important}
body.platform-route:not(.signed-in) #loginCard{display:block!important}

/* The platform-owner dashboard has no club-page navigation; keep navigation inside each club app. */
body.platform-route.signed-in #ch-tabs{display:none!important}
