/* Gym Wise venues: venue dropdown, court/bay sheet (staff), Book a court (members). Colours come from venues.js per venue. */
.venue-switch{display:inline-flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:3px 6px 3px 10px;flex-shrink:0;max-width:60vw}
.venue-switch .vs-ic{font-size:15px;line-height:1}
.venue-switch select{border:0;background:transparent;font:600 14px Barlow,Arial,sans-serif;color:var(--ink);padding:4px 2px;cursor:pointer;max-width:46vw;min-height:32px}
.venue-switch select:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
body.member .venue-switch{order:1}
body.member #pageTitle{display:none}
@media (max-width:760px){body:not(.member) #globalSearch{min-width:0;flex:1}}

/* CrossFit photos and logo don't belong on other venues: plain colour banners instead */
body.venue-other .hero,body.venue-other [style*="img/cfr-"]{background-image:linear-gradient(135deg,var(--brand) 0%,var(--brand2) 55%,#111 140%)!important}
body.venue-other .boxname img{display:none}
body.venue-other .hero.greet .boxname{display:none} /* venue name is in the dropdown */
body.venue-other a.tile[href="#/programming"]{display:none} /* no CrossFit workout of the day */

/* ---------- staff: court / bay sheet ---------- */
.cs-days{flex-wrap:wrap;gap:6px}
.cs-days input[type=date]{width:auto}
.cs-day{font-family:var(--head);font-size:17px;text-transform:uppercase;letter-spacing:.02em;margin-left:6px}
.cs-key{display:inline-block;width:11px;height:11px;border:1px solid var(--line);background:#fff;vertical-align:-1px;border-radius:2px}
.cs-key.peak{background:color-mix(in srgb,var(--brand) 9%,#fff)}
.cs-wrap{overflow:auto;max-height:72vh;padding:0!important;position:relative}
.cs-grid{display:grid;grid-template-columns:52px repeat(var(--n),minmax(130px,1fr));position:relative;min-width:calc(52px + var(--n) * 130px)}
.cs-col{border-left:1px solid var(--line)}
.cs-col.cs-times{border-left:0}
.cs-head{position:sticky;top:0;z-index:3;background:var(--card);height:38px;padding:4px 8px;border-bottom:1px solid var(--line);font-weight:700;font-size:13px;line-height:1.2}
.cs-head small{display:block;font-weight:400;color:var(--muted);font-size:11px}
.cs-body{position:relative}
.cs-times .cs-body div{position:absolute;right:6px;font-size:11px;color:var(--muted);transform:translateY(-6px)}
.cs-times .cs-body div:first-child{transform:none}
.cs-free{position:absolute;left:0;right:0;height:26px;border:0;border-top:1px dashed #eef1ef;background:transparent;cursor:pointer;padding:0 6px;text-align:left;font:inherit}
.cs-free.peak{background:color-mix(in srgb,var(--brand) 5%,transparent)}
.cs-free span{display:none;font-size:11px;color:var(--brand);font-weight:600}
.cs-free:hover,.cs-free:focus-visible{background:color-mix(in srgb,var(--brand) 14%,transparent);outline:0}
.cs-free:hover span,.cs-free:focus-visible span{display:inline}
.cs-block{position:absolute;left:3px;right:3px;z-index:2;border-radius:5px;padding:3px 7px;text-align:left;overflow:hidden;font:inherit;font-size:12px;line-height:1.25;cursor:pointer;border:0;color:#fff;background:var(--brand);box-shadow:0 1px 2px rgba(0,0,0,.12);display:block}
.cs-block b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
.cs-block small{opacity:.9;font-size:11px}
.cs-block.cs-attended{background:#2f7d4f}
.cs-block.cs-no-show{background:#b23b3b}
.cs-block.cs-held{background:#b26a00}
.cs-block.unpaid{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.0) 0 8px,rgba(255,255,255,.14) 8px 16px)}
.cs-block.cs-class{background:color-mix(in srgb,var(--c) 16%,#fff);color:var(--ink);border-left:4px solid var(--c);text-decoration:none}
.cs-now{position:absolute;left:52px;right:0;height:2px;background:#e11d48;z-index:4;pointer-events:none}
.cs-now::before{content:'';position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:#e11d48}

/* ---------- members: book a court / bay ---------- */
.vb-hero .txt{padding-bottom:22px}
.vb-hero .boxname{font-family:var(--head);text-transform:uppercase;letter-spacing:.04em}
.vb-cta{margin-top:14px;background:#fff!important;color:var(--brand)!important;font-weight:700}
.vb-chips{display:flex;flex-wrap:wrap;gap:8px}
.vb-chip{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-weight:700;color:var(--ink);background:var(--card)}
.vb-chip small{font-weight:500;color:var(--muted)}
.vb-chip:hover{border-color:var(--brand)}
.vb-date{width:44px;flex-shrink:0;text-align:center;line-height:1.1}
.vb-date b{display:block;font-size:20px;font-family:var(--head)}
.vb-date small{color:var(--muted);font-size:11px;text-transform:uppercase}
.vb-pitch{border-left:4px solid var(--brand)}
.vb-days{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.vb-days::-webkit-scrollbar{display:none}
.vb-day{flex:0 0 54px;display:flex;flex-direction:column;align-items:center;padding:7px 0;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink)}
.vb-day small{font-size:11px;color:var(--muted)}
.vb-day b{font-size:19px;font-family:var(--head)}
.vb-day.on{background:var(--brand);border-color:var(--brand);color:#fff}
.vb-day.on small{color:rgba(255,255,255,.85)}
.vb-day.locked{opacity:.5}
.vb-day i{font-style:normal;font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.vb-lens{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.vb-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line)}
.vb-slot{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;font:inherit;text-align:left;cursor:pointer;color:var(--ink);min-height:52px}
.vb-slot:last-child{border-bottom:0}
.vb-slot:hover,.vb-slot.pick{background:color-mix(in srgb,var(--brand) 8%,transparent)}
.vb-time{font-weight:700;font-size:16px;width:92px;flex-shrink:0}
.vb-time small{font-weight:400;color:var(--muted);font-size:12px}
.vb-free{flex:1;color:var(--muted);font-size:13px}
.vb-price{font-weight:700;text-align:right}
.vb-price small{display:block;font-weight:400;color:var(--muted);text-decoration:line-through;font-size:11px}
.vb-courts{display:flex;flex-wrap:wrap;gap:6px}
.vb-court input{position:absolute;opacity:0}
.vb-court span{display:inline-flex;flex-direction:column;padding:6px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-weight:600}
.vb-court span small{font-weight:400;color:var(--muted);font-size:11px}
.vb-court input:checked+span{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,#fff)}
.vb-court input:focus-visible+span{outline:2px solid var(--brand)}
