.clubhouse{max-width:960px;margin:0 auto;padding:1.25rem 1rem 4rem}.club-heading{margin-bottom:1.5rem}.club-heading h1{font-size:clamp(1.8rem,4vw,2.5rem);letter-spacing:-.025em}.club-heading p{color:var(--muted)}.club-eyebrow{font-size:.875rem;font-weight:700;letter-spacing:.12em}.club-toolbar,.club-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}.club-toolbar{justify-content:space-between}.club-actions{margin-top:1rem}.club-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.25rem 0}.club-tabs button{min-height:44px;padding:.65rem 1rem;border:1px solid var(--line);background:var(--surface)}.club-tabs button[aria-pressed=true]{background:var(--court);color:var(--court-ink)}.club-panel{padding:1.25rem;margin:1rem 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.club-panel h2{font-size:1.25rem;margin:0 0 .75rem}.club-panel h3{font-size:1rem;margin:0}.club-panel p{margin:.5rem 0}.club-muted{color:var(--muted);font-size:.875rem;line-height:1.5}.club-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}.clubhouse label{display:grid;gap:.4rem;font-size:.9rem}.clubhouse input,.clubhouse select,.clubhouse textarea{width:100%;min-height:46px;padding:.65rem .75rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface);color:var(--ink)}.clubhouse textarea{min-height:7rem}.clubhouse button,.clubhouse a.secondary,.clubhouse a.primary{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:.65rem .9rem}.clubhouse button,.clubhouse a.primary,.clubhouse a.secondary{white-space:nowrap;max-width:100%}.clubhouse summary{min-height:44px;cursor:pointer;padding:.7rem 0;font-weight:600}.clubhouse details[open]>summary{margin-bottom:.75rem}.clubhouse details .club-panel{margin:.5rem 0}.club-tally{display:flex;gap:1.25rem;flex-wrap:wrap;margin:1rem 0}.club-tally strong{font-size:1.5rem;font-variant-numeric:tabular-nums}.club-tally span{display:grid;font-size:.8rem;color:var(--muted)}.club-ranking{list-style:none;padding:0;margin:1rem 0}.club-ranking li{display:grid;grid-template-columns:2rem minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.75rem 0;border-top:1px solid var(--line)}.club-ranking small{display:block;color:var(--muted);font-size:.75rem}.club-ranking b{font-variant-numeric:tabular-nums}.club-badge{font-size:.75rem;padding:.25rem .5rem;border-radius:2rem;background:var(--chipS);color:var(--ink)}.club-warning{border-left:3px solid var(--warning);padding-left:.75rem}.club-status-error{color:var(--warning)}.club-list{display:grid;gap:.75rem}.club-list>a{color:var(--ink);text-decoration:none;padding:.75rem;border:1px solid var(--line);border-radius:.5rem}.club-list>a:hover{background:var(--hover)}.clubhouse [hidden]{display:none!important}.clubhouse input[type=checkbox]{width:1.25rem;height:1.25rem;min-height:0}.club-check{display:flex!important;align-items:center;gap:.75rem!important;min-height:44px}.clubhouse :focus-visible{outline:3px solid var(--ball);outline-offset:3px}#clubStatus{min-height:1.5em}.club-readonly-link{font-size:.875rem;word-break:normal;overflow-wrap:anywhere}.club-table-head{color:var(--muted);font-size:.8rem}.club-table-head,.club-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:1rem}.clubhouse form{display:grid;gap:1rem}.clubhouse form .club-actions{margin:0}@media(max-width:420px){.club-panel{padding:1rem}.club-ranking li{gap:.5rem;grid-template-columns:1.5rem minmax(0,1fr)}.club-ranking li>span:last-child{grid-column:2}}@media(prefers-reduced-motion:no-preference){.clubhouse button,.club-list>a{transition:background-color 160ms ease,border-color 160ms ease}}

.clubhouse meter{width:100%}.clubhouse .coach-context{white-space:pre-line}.clubhouse .club-note{white-space:pre-line}

.clubhouse .club-list{max-height:28rem;overflow:auto;padding-bottom:.5rem}.clubhouse summary:focus-visible{outline:3px solid var(--ball)}

.clubhouse form,.clubhouse form>*{min-width:0}.clubhouse input,.clubhouse select,.clubhouse textarea{min-width:0;max-width:100%}.club-panel{min-width:0}.club-actions>*{max-width:100%}

.club-sitebar nav{display:flex;flex-wrap:wrap}.club-sitebar nav a{flex:1 1 auto}.club-sitebar .site-actions{align-self:flex-start}

/* Native WebKit selects can leak the option's intrinsic width into grid overflow. */
.clubhouse select{overflow:hidden;appearance:none;-webkit-appearance:none;padding-right:2rem;text-overflow:ellipsis}
.clubhouse label:has(>select){position:relative}
.clubhouse label:has(>select)::after{content:"";position:absolute;right:.9rem;bottom:1.2rem;width:.45rem;height:.45rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);pointer-events:none}

#socialBoard textarea{width:100%;min-height:6rem;font:inherit}#socialBoard select,#socialBoard input,#socialBoard button{font:inherit;min-height:44px;max-width:100%}#socialBoard label{display:block;margin:.75rem 0}#socialBoard .club-check{display:flex;align-items:center;gap:.6rem}#socialBoard .club-check input{width:24px;min-width:24px;min-height:24px}.social-text{white-space:pre-wrap;overflow-wrap:anywhere}.social-photo{display:block;width:auto;max-width:100%;max-height:32rem;border-radius:var(--radius);margin:.75rem auto}.social-comment{border-top:1px solid var(--line);padding:.75rem 0}.social-feed{margin-top:1rem}#socialBoard details>summary{min-height:44px;align-content:center;cursor:pointer}#socialBoard .club-actions{flex-wrap:wrap}

/* Keep narrow-screen product headings readable at enlarged text sizes. */
@media(max-width:420px){.club-heading h1{font-size:1.5rem}}

.club-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:.5rem;color:var(--ink);text-decoration:none;font-weight:600}.club-back:hover{color:var(--court)}

/* Inline links share the readable, theme-aware Ganak accent. */
.club-panel p a:not(.primary):not(.secondary){color:var(--accent-text);text-underline-offset:.2em}

.community-memories #clubStatus:empty{display:none}

.vibe-match-draft img{display:block;max-width:100%;max-height:18rem;margin:.5rem auto;border-radius:var(--small-radius)}
.social-match-composer> .club-actions,.social-match-composer:not(.vibe-match-posted)>.social-feed{display:none}
.social-match-composer form textarea{min-height:6rem}

.social-match-composer.vibe-match-posted>#socialPostForm{display:none}
.community-match-compose #clubStatus:empty{display:none}

/* Enlarged and translated social actions wrap within their real targets. */
#socialBoard .club-actions button{white-space:normal;overflow-wrap:anywhere}

/* No empty social surface while a profile lookup is unavailable. */
#socialBoard:empty{display:none}

/* Club challenges keep the rules scannable and the sealed-lineup state calm. */
.challenge-invite{display:grid;gap:.75rem}.challenge-invite>p,.challenge-invite>h2{margin:0}.challenge-invite form{margin-top:.25rem}.challenge-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:.25rem 0}.challenge-rules>div,.challenge-rule-summary{padding:.875rem;border:1px solid var(--line);border-radius:var(--small-radius);background:var(--hover)}.challenge-rules dt{color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.challenge-rules dd{margin:.35rem 0 0;font-size:.9rem;line-height:1.45}.challenge-rule-summary{display:grid;gap:.4rem}.challenge-rule-summary span{color:var(--muted);font-size:.875rem;line-height:1.45}.challenge-sealed{display:flex;align-items:flex-start;gap:.75rem;padding:.875rem;border:1px solid var(--line);border-radius:var(--small-radius);background:var(--hover)}.challenge-sealed>span{display:grid;flex:0 0 1.75rem;width:1.75rem;height:1.75rem;place-items:center;border-radius:50%;background:var(--chipS);font-weight:800}.challenge-sealed strong{display:block}.challenge-sealed p{color:var(--muted);font-size:.875rem;line-height:1.45}.challenge-invite .club-kicker{color:var(--accent-text);font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
@media(max-width:680px){.challenge-rules{grid-template-columns:1fr}.challenge-invite .primary,.challenge-invite form .primary{width:100%}}
.clubhouse>#clubStatus:empty{display:none}

/* The desk shows one decision first; the schedule and history stay available on demand. */
.match-day-desk{display:grid;gap:1rem}.match-day-desk>.club-toolbar h2,.match-day-preview h3,.match-day-item h3{margin:.2rem 0 0}.match-day-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;padding:1rem 0;border-top:1px solid var(--line)}.match-day-focus{padding:1rem;border:1px solid var(--line);border-radius:var(--small-radius);background:var(--hover)}.match-day-item .club-actions{justify-content:flex-end;margin:0}.match-day-item details{grid-column:1/-1}.match-day-item form{grid-template-columns:minmax(0,1fr) auto;align-items:end}.match-day-blocked{color:var(--warning);font-weight:700}.match-day-list{display:grid}.match-day-preview{padding:1rem;border:1px solid var(--line);border-radius:var(--small-radius);background:var(--surface)}.match-day-shifts{display:grid;gap:.15rem}.match-day-shifts p{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--line)}.match-day-shifts span{color:var(--muted);font-variant-numeric:tabular-nums}.match-day-empty{padding:1.25rem;border:1px solid var(--line);border-radius:var(--small-radius);background:var(--hover)}.match-day-empty p{color:var(--muted)}
@media(max-width:680px){.match-day-item{grid-template-columns:1fr}.match-day-item .club-actions{justify-content:stretch}.match-day-item .club-actions>*{flex:1 1 100%}.match-day-item form{grid-template-columns:1fr}.match-day-shifts p{display:grid;gap:.25rem}.match-day-preview>.club-actions{display:grid}.match-day-focus>.club-actions{position:sticky;bottom:.5rem;z-index:2;padding:.35rem;border-radius:var(--small-radius);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px)}}
