/* Find a lesson (/tennis-lessons): the web app's sheets (app.css), with lessons in
   teal where the court grid has free courts in blue. */
:root{--teal:#0D9488;--teal-ink:#0F766E;--teal-t:rgba(13,148,136,.13);--teal2:#2DD4BF}

/* Courts | Lessons (app.css), Lessons in teal. */
.switch a[aria-current="page"]{background:linear-gradient(135deg,var(--teal2),var(--teal))}

/* The grid's sheet: the plain sheet, a hint of teal in its top corner; room under it for the tabs. */
.lessons .grid-sheet::before{background:linear-gradient(160deg,#EEF5F4,var(--sheet) 38%)}
.lessons .grid-sheet .icon-box,.lessons .venue-sheet .head .icon-box,.lessons .list-sheet .icon-box,.lessons .area-sheet .icon-box{background:var(--teal-t);color:var(--teal-ink)}
.lessons .tonal{background:var(--teal-t);color:var(--teal-ink)}
.lessons .all-empty .all-pin{color:var(--teal)}
.lessons .grid-sheet .cta{background:linear-gradient(135deg,var(--teal2),var(--teal))}
.lessons .grid-body .body{padding-bottom:96px}
.week{display:flex;flex-direction:column;min-height:0;flex:1;padding-bottom:84px}
/* A phone: the tabs float over the grid's foot (app.css), so it keeps just their room. */
@media (max-width:720px){
  .lessons.grid-up .week{padding-bottom:76px}
  .lessons.grid-up .week .legend{padding-top:8px}
  .lessons.grid-up .week .note{margin:0;padding:2px 16px 6px}
}
.week .card-x{flex:0 1 auto}
.mini .x-btn.inline{margin:0}

/* Filters: a sheet of their own, floating beside the grid's; a row to each kind
   (who, level, type, time of day); a second tap clears. The grid's title row opens it. */
.f-btn{flex:none;height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--teal-t);color:var(--teal-ink);font:600 13px/1 inherit;font-family:inherit;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.f-btn b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--teal);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;box-sizing:border-box}
.f-btn.on{background:var(--teal);color:#fff}
.f-btn.on b{background:#fff;color:var(--teal-ink)}
.fsheet{position:absolute;z-index:11;top:40px;right:calc(var(--sheet-w) + 24px);width:300px;max-height:calc(100% - 140px);overflow-y:auto;box-sizing:border-box;background:var(--sheet);border-radius:22px;padding:12px 16px 16px;box-shadow:0 12px 40px rgba(11,16,48,.18),0 0 0 .5px rgba(11,16,48,.08);animation:calIn .18s ease-out}
.fsheet[hidden]{display:none}
.fs-head{display:flex;align-items:center;gap:8px;height:34px;margin-bottom:6px}
.fs-head b{flex:1;font-family:var(--display);font-size:18px;font-weight:700}
.fs-head .tonal{height:30px;padding:0 14px}
.fs-head .x-btn{position:static}
.filters{display:flex;flex-direction:column;gap:12px}
.flab{display:block;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.frow{display:flex;flex-wrap:wrap;gap:6px}
/* No room beside the grid: the sheet floats over the grid's top instead. */
@media (max-width:1000px){.fsheet{right:24px;top:100px;width:min(320px,calc(100% - 48px))}}
.f{height:32px;padding:0 12px;border-radius:999px;border:0;background:#fff;box-shadow:inset 0 0 0 1px var(--sep);font-size:13px;font-weight:600;color:var(--ink2);cursor:pointer;white-space:nowrap;flex:none}
.f:hover{box-shadow:inset 0 0 0 1px var(--teal)}
.f[aria-pressed="true"]{background:var(--teal);color:#fff;box-shadow:none}

/* The week strip: a carousel of weeks, Monday to Sunday, one to a swipe (or the arrow
   keys); the calendar in the corner, outlined as the app's, under the venue square and as
   wide (.mini: 18px in, 40 wide); the lessons a day under its date. */
/* The strip scrolls sideways, which clips what it holds: room round the days for the
   picked day's ring; the calendar drops by as much to stay in line. */
.heads.lheads{touch-action:auto;padding:6px 12px 2px 16px;display:flex;align-items:flex-start;gap:4px}
.lheads .wk-strip{flex:1;min-width:0;padding:6px 0}
.cal-btn{flex:none;margin:20px 4px 0 2px;width:40px;height:52px;border:0;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--strong);color:var(--ink);display:grid;place-items:center;padding:0;cursor:pointer;}
.cal-btn:hover,.cal-btn.on{box-shadow:inset 0 0 0 1.5px var(--teal);color:var(--teal-ink)}
.wk-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.wk-strip::-webkit-scrollbar{display:none}
.wk-page{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:0 5px;box-sizing:border-box;align-items:start}
.dcol{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0}
.lessons .chip{background:#fff;color:var(--ink2);box-shadow:inset 0 0 0 1px var(--sep)}
.lessons .chip.open{background:var(--teal-t);color:var(--teal-ink);box-shadow:none}
.lessons .chip.today{background:var(--teal);color:#fff;box-shadow:none}
/* Another day picked: today steps back to a tint, a thin ring still marking it. */
.lessons .chip.today.dim{background:var(--teal-t);color:var(--teal-ink);box-shadow:inset 0 0 0 1px rgba(13,148,136,.45)}
.lessons .chip.on{background:var(--teal-ink);color:#fff;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--teal-ink)}
.lessons .chip.later,.lessons .chip.past{background:transparent;box-shadow:inset 0 0 0 1px var(--strong);color:var(--label3);cursor:default}
.lessons .chip.past{opacity:.55}
/* Every day keeps 14px clear above it; the picked day grows up into it. */
.dcol{padding-top:14px}
.dcol.on{padding-top:0}
.dcol.on .chip{height:66px}
/* A tap: the date gives a little, and the day picked springs up into its height. */
.lessons .chip{transition:transform .12s ease-out}
.lessons .chip:active:not(:disabled){transform:scale(.92)}
.dcol.pop{animation:dayRise .34s cubic-bezier(.2,.9,.25,1) both}
.dcol.pop .chip{animation:dayGrow .34s cubic-bezier(.2,.9,.25,1) both}
@keyframes dayRise{from{padding-top:14px}}
@keyframes dayGrow{0%{height:52px;transform:scale(.92)}60%{transform:scale(1.06)}100%{height:66px;transform:none}}
/* Let go: the day settles back down, the spring run backwards. */
.dcol.unpop{animation:dayFall .3s cubic-bezier(.2,.9,.25,1) both}
.dcol.unpop .chip{animation:dayShrink .3s cubic-bezier(.2,.9,.25,1) both}
@keyframes dayFall{from{padding-top:0}}
@keyframes dayShrink{0%{height:66px;transform:none}45%{transform:scale(.94)}100%{height:52px;transform:none}}
.cnt{height:14px;text-align:center;font-size:11px;font-weight:700;line-height:14px;color:var(--teal-ink)}
.cnt.zero{color:var(--label3);font-weight:500}

/* The calendar: a floating sheet as the Filters, in its place; the month, a day's
   lessons under its date, today ringed. */
.csheet{background:#fff;padding:12px 12px 10px}
.csheet .fs-head{padding-left:4px}
@keyframes calIn{from{opacity:0;transform:translateY(-6px)}}
.cal-top{display:flex;align-items:center;justify-content:space-between;padding:0 2px 8px}
.cal-top b{font-family:var(--display);font-size:16px;font-weight:700}
.cal-arrow{width:32px;height:32px;border:0;border-radius:50%;background:var(--teal-t);color:var(--teal-ink);display:grid;place-items:center;cursor:pointer;padding:0}
.cal-arrow:disabled{opacity:.3;cursor:default}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.cal-wd span{text-align:center;font-size:11px;font-weight:600;color:var(--muted);padding-bottom:4px}
.cd{height:42px;border:0;border-radius:10px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0;cursor:pointer;font-family:inherit;color:var(--ink)}
.cd b{font-size:14px;font-weight:600;line-height:17px}
.cd small{font-size:10px;font-weight:700;line-height:12px;height:12px;color:var(--teal-ink)}
.cd:hover:not(:disabled){background:var(--teal-t)}
.cd.off{color:var(--label3);cursor:default}
.cd.today{box-shadow:inset 0 0 0 1.5px var(--teal)}
.cd.on{background:var(--teal-ink);color:#fff}
.cd.on small{color:#fff}
.cal-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px 0;font-size:12px;color:var(--ink2)}
.cal-foot .tonal{height:30px;padding:0 14px}

/* The week: an hour a row, a cell where lessons start. */
.lessons .bar.any{background:var(--teal)}
.cell.lsn{background:linear-gradient(135deg,var(--teal2),var(--teal));color:#fff;font-weight:600;cursor:pointer}
.cell.lsn.full{background:var(--fill1);color:rgba(11,16,48,.45)}
.cell.lsn:hover{filter:brightness(1.06)}
.cell.lsn.full:hover{box-shadow:inset 0 0 0 1px var(--teal)}
.legend{display:flex;gap:14px;padding:10px 20px 4px;font-size:12px;color:var(--ink2);flex:none;flex-wrap:wrap}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:14px;height:10px;border-radius:3px;background:linear-gradient(135deg,var(--teal2),var(--teal))}
.legend i.full{background:var(--fill1);box-shadow:inset 0 0 0 1px var(--sep)}

/* A lesson: the time down the side, what it is, the spaces, Sign up. */
.lrow{display:flex;align-items:flex-start;gap:12px;padding:12px 14px 12px 12px;position:relative}
.lrow+.lrow::before{content:'';position:absolute;left:72px;right:14px;top:0;height:1px;background:var(--sep)}
.lrow.flash{animation:flash 1.6s ease-out}
@keyframes flash{0%,30%{background:var(--teal-t)}}
.ltime{width:50px;flex:none;display:flex;flex-direction:column;align-items:center;padding-top:1px}
.ltime b{font-size:15px;font-weight:600;letter-spacing:-.02em}
.ltime small{font-size:12px;color:var(--muted)}
.lrow .two{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.lrow .two>b{font-size:15px;font-weight:600;line-height:1.3}
.lrow .two>small{font-size:13px;color:var(--ink2);line-height:1.35}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.tag{min-height:22px;padding:3px 8px;line-height:16px;border-radius:11px;max-width:100%;background:var(--fill1);color:var(--ink2);font-size:12px;font-weight:600;display:inline-flex;align-items:center}
.tag.ok{background:rgba(18,183,106,.13);color:#067647}
.tag.low{background:rgba(255,159,10,.16);color:#9A5B00}
.tag.full{background:rgba(229,72,77,.10);color:#B42318}
.signup{height:34px;padding:0 14px;border-radius:999px;background:linear-gradient(135deg,var(--teal2),var(--teal));color:#fff;font-size:13px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:5px;flex:none;align-self:center;white-space:nowrap}
.signup:hover{filter:brightness(1.06)}
.signup.quiet{background:var(--teal-t);color:var(--teal-ink)}
.signup.grey{background:var(--fill1);color:var(--ink2)}
.lessons .venue-sheet .label{padding-bottom:8px}
.lessons .more-l{border-top:1px solid var(--sep);padding:13px 16px}
.lessons .more-l .two b{color:var(--teal-ink)}
.lday{font-size:12px;font-weight:600;color:var(--teal-ink);text-transform:uppercase;letter-spacing:.03em}
.empty-l{padding:22px 18px;text-align:center;font-size:14px;color:var(--ink2)}
.empty-l button{margin-top:10px}
.day-head{display:flex;align-items:baseline;gap:8px;padding:4px 4px 0}
.day-head b{font-family:var(--display);font-size:17px;font-weight:700}
.day-head small{font-size:13px;color:var(--muted);flex:1}
.day-head .tonal{align-self:center}
.group-note a{color:var(--teal-ink)}

@media (max-width:720px){
  .signup{padding:0 12px}
}
@media (prefers-reduced-motion:reduce){.lrow.flash,.fsheet,.dcol.pop,.dcol.pop .chip,.dcol.unpop,.dcol.unpop .chip{animation:none}.lessons .chip{transition:none}}
/* Lessons has one tab: the court:scout button, in a pill its own size, where it stood
   in the middle of the three. */
.lessons .tabs{width:104px;right:calc(28px + (min(588px,100% - 56px) - 104px) / 2)}
@media (max-width:720px){.lessons .tabs{right:calc(50% - 52px)}}
