.compact-page { font-size: 16px; }
.compact-shell { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; width: min(1200px, calc(100% - 40px)); margin: auto; }
.compact-header, .compact-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compact-header { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wordmark { font: 700 1.2rem var(--display); text-decoration: none; }
.compact-header a, .compact-footer a, .compact-footer button { min-height: 44px; display: inline-flex; align-items: center; }
.compact-footer { flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.compact-footer button, .text-button, .inline-button { background: transparent; border: 0; color: var(--ink); padding: 8px; text-decoration: underline; text-underline-offset: .25em; }
.opening { display: grid; align-content: center; gap: 16px; padding: 20px 0; text-align: center; }
.opening-copy h1 { font: 700 clamp(2rem, 4.4vw, 3.5rem)/1 var(--display); letter-spacing: -.06em; margin: 0 0 12px; }
.opening-copy p { margin: 0; color: var(--muted); }
.lesson-hub { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px); max-width: 880px; width: 100%; margin: auto; perspective: 800px; }
.centre-mark { width: auto; height: clamp(180px, 36dvh, 310px); max-width: 100%; object-fit: contain; animation: mark-arrive 650ms ease-out both; }
.hub-choices { display: grid; gap: 16px; }
.hub-choices button { background: var(--white); border: 1px solid var(--line); color: var(--ink); text-align: left; padding: 16px; min-height: 78px; }
.hub-choices button:hover, .hub-choices button:focus-visible { background: #303030; }
.hub-choices strong { display: block; font: 700 clamp(1.05rem, 2vw, 1.4rem) var(--display); }
.hub-choices span { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.hub-hint { margin: 0; font-size: .85rem; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 20px; max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px); overscroll-behavior: contain; }
dialog::backdrop { background: #000c; }
dialog[open] { animation: panel-arrive 180ms ease-out; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.dialog-header h2 { font: 700 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); margin: 0; letter-spacing: -.04em; }
.dialog-header p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.dialog-header > button { flex: none; min-width: 70px; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 8px; }
.booking-dialog { width: 560px; }
.booking-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.booking-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .85rem; }
.booking-tabs button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.booking-columns { display: block; }
.booking-column { display: grid; gap: 12px; }
.booking-column[data-book-section] { display: none; }
#booking-form[data-step="lesson"] [data-book-section="lesson"], #booking-form[data-step="dates"] [data-book-section="dates"], #booking-form[data-step="details"] [data-book-section="details"] { display: grid; }
.booking-column .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-column .field { gap: 4px; }
.booking-column input, .booking-column select { padding: 8px; min-height: 44px; }
.booking-column .field label, .booking-column .field-label { font-size: .82rem; }
.booking-column p, .booking-actions p { margin: 0; }
.small { font-size: .78rem; line-height: 1.5; }
.booking-column .choice-options { gap: 6px; }
.booking-column .choice-options label { padding: 8px; font-size: .8rem; }
.booking-column .choice-options input { min-height: 20px; padding: 0; width: 20px; }
.booking-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
#payment-note { font-size: .85rem; }
.booking-actions .check-row { align-items: center; }
.inline-button { min-height: 44px; padding: 4px; font-size: inherit; }
#slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.selected-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); padding-left: 10px; font-size: .8rem; }
.selected-slot span { min-width: 0; }
.selected-slot button { flex: none; min-width: 44px; background: transparent; color: var(--ink); border: 0; }
.info-dialog { width: 640px; }
.info-dialog p { font-size: .9rem; }
.info-dialog .price-row { font-size: .85rem; flex-wrap: wrap; }
.info-dialog .price-row strong { font-size: 1rem; }
.manage-dialog { width: 1000px; }
#booking-data { display: grid; gap: 12px; margin: 12px 0; }
#booking-data .panel { padding: 12px; }
#booking-data .panel p { margin: 4px 0; }
#booking-data .booking-overview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; }
#booking-data .booking-overview .notice { width: 100%; }
#private-link { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
@keyframes mark-arrive { from { opacity: 0; transform: rotateY(-60deg) scale(.94); } to { opacity: 1; transform: rotateY(0) scale(1); } }
@keyframes panel-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) {
  #booking-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .compact-shell { width: calc(100% - 24px); }
  .compact-header .micro { display: none; }
  .compact-footer { justify-content: center; gap: 4px 12px; }
  .compact-footer button, .compact-footer a { font-size: .75rem; }
  .opening { gap: 14px; padding: 16px 0; }
  .lesson-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .centre-mark { grid-column: 1 / -1; grid-row: 1; justify-self: center; height: clamp(110px, 23dvh, 180px); }
  .hub-choices { gap: 10px; }
  .hub-choices button { min-height: 72px; padding: 10px; }
  .hub-choices span { font-size: .72rem; }
  .opening-copy p { font-size: .85rem; }
  dialog { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .centre-mark, dialog[open] { animation: none; }
}

.lessons-page { position: relative; isolation: isolate; }
.background-felt { position: fixed; inset: 0; width: 100%; height: 100dvh; pointer-events: none; z-index: -1; }
.lessons-page .compact-shell { width: calc(100% - clamp(32px, 8vw, 160px)); }
.lessons-page .opening { gap: clamp(16px, 2.5dvh, 30px); }
.lessons-page .opening-copy h1 { font-size: clamp(2rem, 4.5vw, 5.5rem); }
.lessons-page .opening-copy > p:first-of-type { font-size: clamp(1rem, 1.2vw, 1.2rem); }
.lessons-page .lesson-hub { max-width: none; gap: clamp(24px, 4vw, 88px); }
.lessons-page .centre-mark { height: max(220px, calc(100dvh - 500px)); }
.lessons-page .hub-choices { gap: clamp(16px, 3dvh, 40px); }
.lessons-page .hub-choices strong { font-size: clamp(1.2rem, 2vw, 2.5rem); }
.lessons-page .hub-choices span { font-size: clamp(.85rem, 1.1vw, 1.25rem); }
.contact-form { display: grid; gap: 16px; }
.contact-form p { margin: 0; }
.contact-form [type="submit"] { justify-self: end; }
@media (min-width: 551px) and (max-width: 760px) {
  .lessons-page .lesson-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lessons-page .centre-mark { grid-column: 1 / -1; grid-row: 1; justify-self: center; height: clamp(130px, 24dvh, 220px); }
  .lessons-page .hub-choices button { padding: 14px; min-height: 90px; }
}
.opening-copy .teacher-line { margin-top: 8px; color: var(--ink); font-size: .82rem; }
.lessons-page .hub-choices button { padding: 20px 24px; min-height: 100px; }
@media (min-width: 761px) {
  .lessons-page .hub-choices button { min-height: clamp(100px, 15dvh, 210px); padding: clamp(20px, 2.5vw, 48px); }
}
.hub-choices .lesson-price { color: var(--ink); }
.hub-choices .card-action { color: var(--ink); font-size: .75rem; text-decoration: underline; text-underline-offset: .2em; }
.opening-next { font-size: clamp(.9rem, 1vw, 1rem); }
.opening-next p { margin: 0; }
.opening-next p + p { margin-top: 6px; }
.opening-next .inline-button { font-weight: 600; }
.booking-codes summary { min-height: 44px; padding: 8px; cursor: pointer; border: 0; text-decoration: underline; text-underline-offset: .2em; font-size: .82rem; }
.code-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (max-width: 550px) {
  .lessons-page .compact-shell { width: calc(100% - 24px); }
  .lessons-page .opening { gap: 14px; }
  .lessons-page .hub-choices { gap: 10px; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .lessons-page .centre-mark { height: clamp(80px, 17dvh, 130px); }
  .lessons-page .hub-choices button { padding: 10px; min-height: 78px; }
  .lessons-page .hub-choices strong { font-size: 1rem; }
  .lessons-page .hub-choices span { font-size: .75rem; }
  .lessons-page .opening-copy .teacher-line { font-size: .75rem; }
  .opening-next { font-size: .78rem; }
}

.booking-step-actions { display: flex; justify-content: space-between; gap: 12px; }
.booking-step-actions [data-book-next], #booking-pay { margin-left: auto; }
#book-panel:has(#booking-form:not([data-step="lesson"])) #lesson-copy { display: none; }

.calendar-heading, .time-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-heading h3, .date-times h3 { margin: 0; font-size: 1rem; }
.calendar-heading button, .time-pages button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink); }
.calendar-days, .calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.calendar-weekdays { font-size: .75rem; color: var(--muted); margin: 8px 0; }
.calendar-days button { min-width: 0; min-height: 44px; padding: 4px; border: 1px solid transparent; background: transparent; color: var(--ink); }
.calendar-days .unavailable-day, .calendar-key span, .time-grid button:disabled { text-decoration: line-through; color: var(--muted); }
.calendar-days button:disabled { opacity: .55; }
.calendar-days button[aria-pressed="true"], .time-grid button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.calendar-days .chosen-day { border-color: var(--ink); }
.calendar-key { margin-top: 8px!important; color: var(--muted); }
.date-picker { display: grid; gap: 12px; }
.date-times { display: grid; gap: 8px; }
#slots:empty { display: none; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.time-grid button { border: 1px solid var(--line); background: transparent; color: var(--ink); min-height: 44px; padding: 4px; }
.time-grid button:disabled { opacity: .7; border-color: transparent; }
@media (min-width: 700px) {
  #book-panel:has(#booking-form[data-step="dates"]) { width: 780px; }
  .date-picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .date-times { align-content: start; }
}
