/* CrossFit MadCity · Schedule page (calendar + private training requests) */
.sched-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; max-width: 1240px; margin: 0 auto; }
@media (max-width: 960px) { .sched-grid { grid-template-columns: 1fr; } }

.soon-banner { max-width: 1240px; margin: 0 auto clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border: 1px solid var(--line-d); border-left: 4px solid var(--red); background: var(--ink-2); padding: 1.25rem 1.5rem; }
.soon-banner h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; }
.soon-banner p { color: var(--muted-d); font-size: .98rem; margin-top: .35rem; max-width: 34rem; }
.soon-banner .inline-form { flex: 1 1 320px; max-width: 460px; flex-wrap: wrap; }
.soon-banner .form-ok { flex-basis: 100%; }

.cal { background: var(--ink-2); border-top: 3px solid var(--red); padding: clamp(1rem, 3vw, 2rem); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cal-title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1; }
.cal-nav { display: flex; gap: .5rem; }
.cal-btn { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line-d); background: transparent; color: var(--paper); font: 500 1rem var(--f-mono); cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.cal-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.cal-btn:disabled { opacity: .3; cursor: default; }
.cal-today { width: auto; padding: 0 .9rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.cal-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cal-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; }
.lg-open { background: transparent; box-shadow: inset 0 0 0 1px var(--paper); }
.lg-sel { background: var(--red); }
.lg-soon { background: transparent; border: 1px dashed var(--muted-d); }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow div { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); text-align: center; padding: .35rem 0; }
.cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: .45rem .5rem; border: 1px solid var(--line-d); background: var(--ink); color: var(--paper); font: 500 .95rem var(--f-mono); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cal-day:hover:not(:disabled) { border-color: var(--red); }
.cal-day .cd-tag { font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); line-height: 1.2; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--paper); }
.cal-day.is-today .num::after { content: " · today"; font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.cal-day.is-sel { background: var(--red); border-color: var(--red); color: #fff; }
.cal-day.is-sel .tag { color: #fff; }
.cal-day:disabled { cursor: default; color: rgba(244,241,236,.22); background: transparent; border-color: rgba(244,241,236,.06); }
.cal-day.pad { visibility: hidden; }
.cal-foot { margin-top: 1rem; font-size: .88rem; color: var(--muted-d); line-height: 1.6; }
.cal-foot strong { color: var(--paper); font-weight: 600; }
@media (max-width: 560px) {
  .cal-day { aspect-ratio: auto; height: 48px; padding: .3rem; font-size: .82rem; }
  .cal-day .cd-tag { display: none; }
  .cal-day.is-today .num::after { content: ""; }
  .cal-dow div { font-size: .58rem; letter-spacing: .04em; }
}

.picked { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; margin-bottom: 1.25rem; border: 1px dashed var(--line-d); font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.picked.on { border-style: solid; border-color: var(--red); color: var(--paper); }
.picked b { color: var(--red); font-weight: 500; }
.fg input[type=date] { color-scheme: dark; }
.form-done .pill { width: auto; }
.req-steps { list-style: none; counter-reset: s; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.req-steps li { counter-increment: s; display: flex; gap: .7rem; font-size: .92rem; color: var(--muted-d); line-height: 1.5; }
.req-steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: .7rem; color: var(--red); padding-top: .2rem; }

/* ── Group class booking ── */
.classes { max-width: 1240px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.cls-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem 3rem; align-items: end; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .cls-head { grid-template-columns: 1fr; } }
.cls-head h2, .pt-head h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; margin-top: .6rem; }
.cls-head p, .pt-head p { color: var(--muted-d); font-size: .98rem; margin-top: .6rem; max-width: 36rem; }
.cls-how { list-style: none; display: grid; gap: .55rem; border-left: 4px solid var(--red); background: var(--ink-2); padding: 1rem 1.25rem; }
.cls-how li { font-size: .92rem; color: var(--muted-d); line-height: 1.5; }
.cls-how b { display: inline-block; min-width: 6.2rem; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); }
.cls-week { background: var(--ink-2); border-top: 3px solid var(--red); padding: clamp(1rem, 3vw, 2rem); }
.cls-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 960px) { .cls-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cls-days { grid-template-columns: 1fr; } }
.cls-day { border: 1px solid var(--line-d); background: var(--ink); padding: .6rem; display: flex; flex-direction: column; gap: 6px; min-height: 8rem; }
.cls-day.is-today { box-shadow: inset 0 0 0 1px var(--paper); }
.cls-day h4 { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); padding-bottom: .35rem; border-bottom: 1px solid var(--line-d); margin-bottom: .15rem; }
.cls-day h4 b { color: var(--paper); font-weight: 500; }
.cls-day .none { font-size: .82rem; color: rgba(244,241,236,.35); }
.cls-slot { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; width: 100%; padding: .55rem .6rem; border: 1px solid var(--line-d); background: transparent; color: var(--paper); font: 500 .9rem var(--f-mono); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cls-slot:hover:not(:disabled) { border-color: var(--red); background: rgba(237,28,36,.08); }
.cls-slot small { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); white-space: nowrap; }
.cls-slot.low small { color: var(--paper); }
.cls-slot:disabled { cursor: default; color: rgba(244,241,236,.3); border-style: dashed; }
.cls-slot:disabled small { color: rgba(244,241,236,.3); }
.cls-loading { grid-column: 1 / -1; color: var(--muted-d); font-family: var(--f-mono); font-size: .8rem; padding: 1rem 0; }
.cls-notice { border: 1px solid var(--red); background: rgba(237,28,36,.08); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.cls-notice h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.cls-notice p { color: var(--muted-d); font-size: .95rem; margin-top: .35rem; }
.cls-notice a { color: var(--red); font-weight: 600; text-decoration: none; }
.cls-dialog { border: 0; padding: 0; background: transparent; color: var(--paper); width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); margin: auto; }
.cls-dialog::backdrop { background: rgba(0,0,0,.72); }
.cls-dialog .form-card { position: relative; }
.cls-x { position: absolute; z-index: 2; right: .6rem; top: .6rem; }
.cls-x button { width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--line-d); background: var(--ink); color: var(--paper); font-size: 1.3rem; cursor: pointer; }
.cls-x button:hover { border-color: var(--red); color: var(--red); }
.cls-dialog .form-done.on { display: block; }
.cls-upsell { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-d); font-size: .92rem; color: var(--muted-d); }
.cls-upsell a { color: var(--red); text-decoration: none; font-weight: 600; }
#bookAlt .pill { margin-top: .75rem; }
.pt-head { max-width: 1240px; margin: 0 auto 1.5rem; }
@media (max-width: 960px) { .cls-day.is-past { display: none; } }
@media (max-width: 560px) { .cls-day { min-height: 0; } }
