/*
 * Studio sites. Everything is drawn from the tokens below; a theme (body.theme-*) swaps the
 * palette and type, and the studio's own colour (set inline from branding) replaces --brand.
 * The older names (--primary, --text, --border, ...) are aliases so page-level styles follow.
 */
:root {
    --brand: #C2410C;
    --brand-ink: #FFFFFF;
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --surface-2: #F3EEE7;
    --ink: #1F1A17;
    --muted: #6E655D;
    --line: #E8E0D6;
    --ok: #1F8A5B;
    --bad: #C2362F;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 10px 30px rgba(31, 26, 23, 0.07);
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display-weight: 600;
    --display-case: none;
    --display-tracking: -0.02em;
    --wrap: 1120px;
}
/* Derived from the brand colour, after any theme or studio override of it. */
body {
    --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
    --brand-strong: color-mix(in srgb, var(--brand) 82%, black);
    --brand-text: var(--brand-on-light, var(--brand));
    /* Older names used by page templates. */
    --primary: var(--brand);
    --primary-dark: var(--brand-strong);
    --text: var(--ink);
    --text-muted: var(--muted);
    --border: var(--line);
    --success: var(--ok);
    --danger: var(--bad);
}

/* Night: dark rooms, bright accents. Pole, aerial, heels. */
body.theme-night {
    --brand: #E0457B;
    --bg: #0F0D14;
    --surface: #1A1722;
    --surface-2: #241F2E;
    --ink: #F4F1F7;
    --muted: #A69FB3;
    --line: #2F2939;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --font-display: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display-weight: 800;
    --display-tracking: -0.03em;
    --brand-text: color-mix(in srgb, var(--brand) 65%, white);
    color-scheme: dark;
}

/* Bold: the studio's colour in big blocks, heavy condensed headings. */
body.theme-bold {
    --brand: #2B4ACB;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: color-mix(in srgb, var(--brand) 7%, white);
    --ink: #0E1220;
    --muted: #5A6075;
    --line: #E3E6EE;
    --radius: 6px;
    --radius-sm: 4px;
    --font-display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --display-weight: 800;
    --display-case: uppercase;
    --display-tracking: 0.01em;
}

/* Minimal: white, black, thin lines. */
body.theme-minimal {
    --brand: #111111;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F5F5F5;
    --ink: #111111;
    --muted: #666666;
    --line: #E5E5E5;
    --radius: 2px;
    --radius-sm: 2px;
    --shadow: none;
    --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display-weight: 600;
    --display-tracking: -0.035em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.15; margin: 0 0 0.6rem; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 0.9rem; }
ul, ol { margin: 0 0 1rem; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
small, .text-muted, .form-text { color: var(--muted); font-size: 0.875rem; }

/* Banners shown above the site in test mode and on demos. */
.test-mode-banner { background: #FFF4D6; color: #5C4300; border-bottom: 1px solid #F2D27A; padding: 0.55rem 1rem; text-align: center; font-size: 0.875rem; }
.preview-banner { background: #E8F0FE; color: #1A3E8C; border-bottom-color: #B7CBF5; position: sticky; top: 0; z-index: 50; }
.demo-login { display: inline; margin-left: 0.5rem; }
.demo-login button { font: inherit; font-weight: 650; padding: 0.25rem 0.85rem; border-radius: 999px; border: 0; background: #5C4300; color: #fff; cursor: pointer; }

/* Header */
.client-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.client-nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; height: 68px; display: flex; align-items: center; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; text-transform: none; }
body.theme-bold .brand-mark, body.theme-minimal .brand-mark { border-radius: var(--radius-sm); }
.nav-logo { max-height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-tracking); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.nav-menu a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.93rem; padding: 0.45rem 0.75rem; border-radius: 999px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--surface-2); }
.nav-menu a.nav-cta { background: var(--brand); color: var(--brand-ink); margin-left: 0.4rem; }
.nav-menu a.nav-cta:hover { background: var(--brand-strong); }
body.theme-bold .nav-menu a, body.theme-minimal .nav-menu a { border-radius: var(--radius-sm); }
.lang-select { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.6rem; font: inherit; font-size: 0.8rem; margin-left: 0.4rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; width: 42px; height: 42px; color: var(--ink); font-size: 1.15rem; cursor: pointer; }

/* Page */
.client-main { flex: 1 0 auto; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.client-main--home { max-width: none; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.section { margin: 2.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-header h2 { margin: 0; }
.section-header a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 0.6rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; margin-bottom: 1.25rem; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.7rem 1.25rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: 0.95rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
body.theme-bold .btn, body.theme-minimal .btn { border-radius: var(--radius-sm); }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-secondary, .btn-outline { background: transparent; border-color: color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-large, .btn-lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.btn[disabled], button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-group label.checkbox-label { display: flex; }
.form-control, .client-main input[type=text], .client-main input[type=email], .client-main input[type=password], .client-main input[type=tel],
.client-main input[type=date], .client-main input[type=number], .client-main input[type=url], .client-main select, .client-main textarea {
    width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.97rem; transition: border-color .15s, box-shadow .15s;
}
.client-main input:focus, .client-main select:focus, .client-main textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 180px; }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: auto; }
.error { color: var(--bad); font-size: 0.85rem; }
.auth-container { max-width: 440px; margin: 1rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.auth-container h1 { font-size: 1.9rem; }
.auth-container form .btn-primary { width: 100%; margin-top: 0.4rem; }
.auth-container > p { margin: 1rem 0 0; font-size: 0.92rem; }

/* Messages */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; border: 1px solid transparent; font-size: 0.95rem; }
.alert-error { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.alert-success { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert-info { background: var(--surface-2); border-color: var(--line); }
.badge, .tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 650; background: var(--surface-2); color: var(--muted); }

/* Cards used across pages */
.class-card, .plan-card, .pass-card, .booking-card, .waitlist-card, .offer-card, .billing-card, .billing-profile-card, .plan-detail-card, .profile-section {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }

/* ── Home ─────────────────────────────────────────────────────────── */
.home-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); background:
    radial-gradient(60rem 30rem at 90% -10%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%), var(--bg); }
.home-hero.has-image { background: linear-gradient(90deg, rgba(10, 8, 12, 0.82), rgba(10, 8, 12, 0.35)), var(--hero-image) center / cover; color: #fff; }
.home-hero.has-image h1, .home-hero.has-image .hero-lead, .home-hero.has-image .eyebrow { color: #fff; }
body.theme-bold .home-hero:not(.has-image) { background: var(--brand); color: var(--brand-ink); }
body.theme-bold .home-hero:not(.has-image) h1, body.theme-bold .home-hero:not(.has-image) .hero-lead, body.theme-bold .home-hero:not(.has-image) .eyebrow { color: var(--brand-ink); }
body.theme-bold .home-hero:not(.has-image) .btn-primary { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
body.theme-bold .home-hero .btn-secondary, .home-hero.has-image .btn-secondary { color: inherit; border-color: currentColor; }
body.theme-minimal .home-hero:not(.has-image) { background: var(--bg); border-bottom: 1px solid var(--line); }
.home-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.home-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.02; margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-next { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; }
.hero-next-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.hero-next-item { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.75rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.hero-next-item:first-of-type { border-top: 0; }
.hero-next-item:hover .hero-next-name { color: var(--brand-text); }
.hero-next-day { text-align: center; line-height: 1.05; padding: 0.35rem 0; border-radius: var(--radius-sm); background: var(--surface-2); }
.hero-next-day b { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.hero-next-day span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.hero-next-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-next-meta { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-next-spots { font-size: 0.75rem; font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.hero-next-spots.full { color: var(--muted); }
.hero-next-all { display: block; text-align: center; margin-top: 0.4rem; font-weight: 650; font-size: 0.9rem; text-decoration: none; }

.home-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.home-section.alt { background: var(--surface-2); }
.section-lead { color: var(--muted); max-width: 40rem; margin: -0.6rem 0 1.75rem; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.class-card { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.4rem 1.4rem 1.2rem 1.6rem; color: inherit; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.class-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.class-color { position: absolute; inset: 0 auto 0 0; width: 5px; }
.class-card h3 { margin: 0; }
.class-card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 0.4rem; }
.class-card .duration { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: auto; }
.class-card .badge { display: none; }

.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.teacher-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.teacher-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.teacher-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 0.55rem; text-transform: none; }
.teacher-card b { font-size: 1.05rem; }
.teacher-card span:not(.teacher-avatar) { font-size: 0.88rem; color: var(--muted); }

.plan-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.plan-teaser-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.plan-teaser-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.plan-teaser-card .price { color: var(--ink); font-family: var(--font-display); font-size: 1.9rem; font-weight: var(--display-weight); }
.plan-teaser-card .price small { font-family: var(--font-body); font-size: 0.85rem; }
.plan-teaser-card span:not(.price) { color: var(--muted); font-size: 0.9rem; }

.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.place-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.place-card p { color: var(--muted); margin: 0.2rem 0 0.8rem; white-space: pre-line; }
.place-card a { font-weight: 650; text-decoration: none; font-size: 0.92rem; }
.home-cta { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.home-cta p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.5rem; }

/* ── Schedule ─────────────────────────────────────────────────────── */
.schedule-filters { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 550; }
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.schedule-date-group { margin-bottom: 2rem; }
.schedule-date-header { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.6rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.schedule-card { position: relative; display: flex; align-items: center; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 0.6rem; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.schedule-card:hover { border-color: color-mix(in srgb, var(--ink) 25%, transparent); box-shadow: var(--shadow); }
.schedule-card-accent { width: 4px; align-self: stretch; border-radius: 2px; flex-shrink: 0; }
.schedule-card-body { flex: 1; min-width: 0; }
.schedule-card-time { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.schedule-card-name { font-weight: 700; font-size: 1.08rem; }
.schedule-card-link { display: block; color: inherit; text-decoration: none; }
.schedule-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.schedule-card-location { font-size: 0.87rem; color: var(--muted); }
.schedule-card .location-link { position: relative; z-index: 1; color: inherit; }
.location-link { color: inherit; text-decoration: none; }
.location-link:hover { color: var(--brand-text); text-decoration: underline; }
.schedule-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; flex-shrink: 0; }
.schedule-spots { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.schedule-spots--low { color: #B45309; }
.schedule-spots--full { color: var(--bad); }

/* ── Passes ───────────────────────────────────────────────────────── */
.plans-grid, .passes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.plan-card { display: flex; flex-direction: column; padding: 1.5rem; gap: 0.3rem; text-align: left; }
.plan-card .plan-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.plan-card h3 { margin: 0.2rem 0; }
.plan-card .plan-price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2rem; margin: 0.5rem 0; color: var(--ink); }
.plan-card .plan-description, .plan-card .plan-details { color: var(--muted); font-size: 0.92rem; }
.plan-card .btn { margin-top: auto; }
.plan-scope { list-style: none; padding: 0; margin: 0.5rem 0 1rem; font-size: 0.85rem; color: var(--muted); display: grid; gap: 0.2rem; }
.pass-card { padding: 1.25rem; }

/* ── Footer ───────────────────────────────────────────────────────── */
.client-footer { background: #17131A; color: #E9E4EE; }
body.theme-night .client-footer { background: #08070B; border-top: 1px solid var(--line); }
body.theme-bold .client-footer { background: var(--ink); }
body.theme-minimal .client-footer { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; margin-bottom: 0.8rem; font-weight: 700; }
.footer-brand { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-tracking); font-size: 1.45rem; margin-bottom: 0.5rem; }
.client-footer p, .client-footer li { opacity: 0.82; font-size: 0.92rem; }
.client-footer a { color: inherit; text-decoration: none; }
.client-footer a:hover { text-decoration: underline; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; opacity: 0.6; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
body.theme-minimal .footer-bottom { border-top-color: var(--line); }

@media (max-width: 860px) {
    .home-hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .client-nav-inner { height: auto; min-height: 60px; flex-wrap: wrap; padding: 0.6rem 1.25rem; }
    .nav-toggle { display: block; }
    .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.5rem 0 0.75rem; }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 0.7rem 0.75rem; border-radius: var(--radius-sm); }
    .nav-menu a.nav-cta { margin: 0.4rem 0 0; text-align: center; }
    .lang-select { margin: 0.4rem 0 0; align-self: flex-start; }
    .client-main { padding: 1.75rem 1rem 3rem; }
    .client-main--home { padding: 0; }
    .schedule-card { flex-wrap: wrap; }
    .schedule-card-meta { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
}

/* ── Rich page content, class and instructor pages (kept from the previous styles) ── */
/* Page blocks */
.page-article { max-width: 760px; margin: 0 auto; }
.page-title { font-size: 2rem; margin-bottom: 2rem; }
.page-blocks { margin: 2rem 0; }
.page-h2 { font-size: 1.75rem; margin: 2rem 0 0.75rem; }
.page-h3 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; }
.page-h4 { font-size: 1.15rem; margin: 1.25rem 0 0.4rem; }
.page-p { margin-bottom: 1rem; line-height: 1.7; }
.page-list { margin: 0.5rem 0 1rem 1.5rem; }
.page-list li { margin-bottom: 0.25rem; }
.page-figure { margin: 1.5rem 0; }
.page-img { max-width: 100%; border-radius: var(--radius); }
.page-figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; text-align: center; }
.page-blockquote { border-left: 4px solid var(--primary); margin: 1.5rem 0; padding: 0.75rem 1.25rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.page-blockquote p { margin: 0 0 0.25rem; font-style: italic; }
.page-blockquote cite { font-size: 0.85rem; color: var(--text-muted); }
.page-divider { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }
.embed-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.5rem 0; }
.embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius); }
.page-table-wrapper { overflow-x: auto; margin: 1rem 0; }
.page-table { width: 100%; border-collapse: collapse; }
.page-table td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); font-size: 0.9rem; }
.page-schedule-embed { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 1rem 0; }
.schedule-embed-item { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.schedule-embed-name { font-weight: 600; }
.schedule-embed-time { color: var(--text-muted); font-size: 0.85rem; }
.page-instructor-grid { margin: 1rem 0; }
.instructor-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0; }
.instructor-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.instructor-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.instructor-card h4 { font-size: 0.95rem; }
.instructor-card p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.page-pricing { margin: 1rem 0; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.pricing-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0.25rem 0; }
.pricing-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Quill-rendered content typography */
.quill-content h2 { font-size: 1.75rem; margin: 2rem 0 0.75rem; }
.quill-content h3 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; }
.quill-content h4 { font-size: 1.15rem; margin: 1.25rem 0 0.4rem; }
.quill-content p { margin-bottom: 1rem; line-height: 1.7; }
.quill-content ul, .quill-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.quill-content li { margin-bottom: 0.25rem; }
.quill-content img { max-width: 100%; border-radius: var(--radius); height: auto; }
.quill-content blockquote { border-left: 4px solid var(--primary); margin: 1.5rem 0; padding: 0.75rem 1.25rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.quill-content pre { background: #17131A; color: #cdd6f4; padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.875rem; margin: 1rem 0; }
.quill-content a { color: var(--primary); }
.quill-content a:hover { color: var(--primary-dark); }
.quill-content .ql-align-center { text-align: center; }
.quill-content .ql-align-right  { text-align: right; }
.quill-content .ql-align-justify { text-align: justify; }
/* Smart block chips on client (hidden — replaced server-side) */
.quill-content .ql-smart-block { display: none; }

/* Instructor detail enhancements */
.instructor-tagline { color: var(--text-muted); font-size: 1rem; margin: 0.25rem 0 0.5rem; font-style: italic; }
.instructor-website { display: inline-block; color: var(--primary); font-size: 0.875rem; text-decoration: none; margin-top: 0.5rem; }
.instructor-website:hover { text-decoration: underline; }

/* Class type detail page */
.class-type-detail { max-width: 800px; margin: 0 auto; }
.class-type-hero { min-height: 240px; background-size: cover; background-position: center; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; display: flex; align-items: flex-end; }
.class-type-hero-overlay { width: 100%; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.class-type-hero-overlay h1 { color: #fff; margin: 0; font-size: 2rem; }
.class-type-hero-plain { padding: 2rem 0 1rem; margin-bottom: 1.5rem; }
.class-type-hero-plain h1 { font-size: 2rem; margin: 0; }
.class-type-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.class-type-content { margin-bottom: 2.5rem; }
.class-type-schedule h2 { margin-bottom: 1rem; font-size: 1.5rem; }


/* ══ Theme layouts ═══════════════════════════════════════════════════
 * Themes change structure, not just colour: the same pages read as a different site. */
.hero-next-text { min-width: 0; }
.hero-next-name, .hero-next-meta { display: block; }
.class-index { display: none; }
.class-marquee { display: none; }

/* ── Night: centred and dramatic ─────────────────────────────────── */
@media (min-width: 769px) {
    /* Two tiers: the name centred on top, the menu centred under it. */
    body.theme-night .client-nav-inner { height: auto; flex-direction: column; gap: 0.6rem; padding: 1rem 1.25rem 0.75rem; }
    body.theme-night .brand-link { flex-direction: column; gap: 0.35rem; text-align: center; }
    body.theme-night .brand-text { align-items: center; }
    body.theme-night .brand-name { font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.04em; }
    body.theme-night .nav-menu { margin: 0; justify-content: center; flex-wrap: wrap; }
}
body.theme-night .nav-menu a { white-space: nowrap; }
body.theme-night .nav-menu a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; }
body.theme-night .home-hero { min-height: min(88vh, 860px); display: flex; align-items: center; text-align: center;
    background: radial-gradient(50rem 32rem at 50% 25%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 65%), radial-gradient(30rem 20rem at 85% 95%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), var(--bg); }
body.theme-night .home-hero .wrap { grid-template-columns: 1fr; justify-items: center; gap: 3.5rem; width: 100%; }
body.theme-night .home-hero h1 { font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; max-width: 14ch; margin-inline: auto; }
body.theme-night .hero-lead { margin-inline: auto; }
body.theme-night .hero-actions { justify-content: center; }
body.theme-night .hero-next { width: 100%; background: transparent; border: 0; box-shadow: none; padding: 0; text-align: left; }
body.theme-night .hero-next-title { text-align: center; margin-bottom: 1rem; }
body.theme-night .hero-next { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
body.theme-night .hero-next-title, body.theme-night .hero-next-all { grid-column: 1 / -1; }
body.theme-night .hero-next-item { grid-template-columns: 1fr; gap: 0.35rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); }
body.theme-night .hero-next-item:first-of-type { border-top: 1px solid var(--line); }
body.theme-night .hero-next-day { background: none; text-align: left; display: flex; gap: 0.4rem; align-items: baseline; padding: 0; }
body.theme-night .hero-next-day b { font-size: 1.6rem; }
body.theme-night .hero-next-name, body.theme-night .hero-next-meta { white-space: normal; }
body.theme-night .class-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
body.theme-night .class-card { border: 0; border-radius: 0; box-shadow: none; padding: 2rem 1.75rem; min-height: 210px; background: var(--surface); }
body.theme-night .class-card:hover { transform: none; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
body.theme-night .class-color { inset: auto auto 0 0; width: 100%; height: 3px; }
body.theme-night .class-index { display: block; font-size: 3rem; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--ink) 14%, transparent); letter-spacing: -0.04em; margin-bottom: 0.5rem; }
body.theme-night .class-card h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
body.theme-night .section-header h2, body.theme-night .home-section h2 { text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.04em; }
body.theme-night .teacher-card { align-items: center; text-align: center; background: transparent; border: 0; }
body.theme-night .teacher-avatar { width: 112px; height: 112px; font-size: 2.4rem; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand), 0 0 40px color-mix(in srgb, var(--brand) 40%, transparent); }
body.theme-night .btn-primary { box-shadow: 0 0 30px color-mix(in srgb, var(--brand) 45%, transparent); }

/* ── Bold: poster, thick lines, hard shadows ─────────────────────── */
body.theme-bold { --hard: 5px 5px 0 var(--ink); }
body.theme-bold .client-nav { background: var(--bg); border-bottom: 3px solid var(--ink); backdrop-filter: none; }
body.theme-bold .nav-menu a { font-weight: 800; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }
body.theme-bold .nav-menu a.nav-cta { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
body.theme-bold .home-hero { border-bottom: 3px solid var(--ink); padding: clamp(4rem, 10vw, 8rem) 0; }
body.theme-bold .home-hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); line-height: 0.9; }
body.theme-bold .hero-next { border: 3px solid var(--ink); border-radius: 0; box-shadow: 10px 10px 0 var(--ink); }
body.theme-bold .hero-next-day { background: var(--brand); color: var(--brand-ink); border-radius: 0; }
body.theme-bold .hero-next-day span { color: inherit; opacity: 0.85; }
body.theme-bold .btn { border: 2px solid var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; box-shadow: var(--hard); }
body.theme-bold .btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
body.theme-bold .btn-primary { border-color: var(--ink); }
body.theme-bold .home-hero .btn-primary, body.theme-bold .home-hero .btn-secondary { border-color: var(--ink); }
body.theme-bold .home-hero .btn-secondary { background: var(--bg); color: var(--ink); }
body.theme-bold .class-card, body.theme-bold .teacher-card, body.theme-bold .plan-teaser-card, body.theme-bold .place-card, body.theme-bold .plan-card, body.theme-bold .schedule-card, body.theme-bold .pass-card, body.theme-bold .auth-container {
    border: 3px solid var(--ink); border-radius: 0; box-shadow: var(--hard); }
body.theme-bold .class-card:hover, body.theme-bold .teacher-card:hover, body.theme-bold .plan-teaser-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
body.theme-bold .class-color { width: 100%; height: 12px; inset: 0 0 auto 0; }
body.theme-bold .class-card { padding-top: 2rem; }
body.theme-bold .class-marquee { display: block; overflow: hidden; background: var(--ink); color: var(--bg); border-bottom: 3px solid var(--ink); padding: 0.9rem 0; }
body.theme-bold .class-marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 0.02em; }
body.theme-bold .class-marquee-track span::after { content: "✦"; margin-left: 2.5rem; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { body.theme-bold .class-marquee-track { animation: none; } }
body.theme-bold .home-section.alt { background: var(--surface-2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
body.theme-bold .teacher-avatar { border-radius: 0; border: 3px solid var(--ink); background: var(--brand); color: var(--brand-ink); }
body.theme-bold .filter-chip { border: 2px solid var(--ink); border-radius: 0; font-weight: 700; }
body.theme-bold .schedule-date-header { color: var(--ink); border-bottom: 3px solid var(--ink); font-size: 0.95rem; }
body.theme-bold .client-footer { border-top: 3px solid var(--ink); }

/* ── Minimal: gallery, lists not cards ───────────────────────────── */
body.theme-minimal .client-nav { background: var(--bg); backdrop-filter: none; border-bottom: 0; }
body.theme-minimal .client-nav-inner { height: 84px; }
body.theme-minimal .brand-mark { display: none; }
body.theme-minimal .nav-menu a { border-radius: 0; padding: 0.3rem 0; margin-left: 1.4rem; font-weight: 500; }
body.theme-minimal .nav-menu a:hover, body.theme-minimal .nav-menu a[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: 6px; }
body.theme-minimal .nav-menu a.nav-cta { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; margin-left: 1.4rem; }
body.theme-minimal .home-hero { padding: clamp(4rem, 12vw, 10rem) 0 clamp(3rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
body.theme-minimal .home-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 4rem; }
body.theme-minimal .home-hero h1 { font-size: clamp(3rem, 9.5vw, 8.5rem); line-height: 0.95; letter-spacing: -0.055em; font-weight: 500; max-width: 12ch; }
body.theme-minimal .hero-lead { font-size: 1.15rem; max-width: 30rem; }
body.theme-minimal .btn { border-radius: 0; }
body.theme-minimal .home-hero .btn-secondary { border: 0; text-decoration: underline; text-underline-offset: 6px; padding-inline: 0.4rem; }
body.theme-minimal .hero-next { border: 0; border-top: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 1rem 0 0; background: none; }
body.theme-minimal .hero-next-item { grid-template-columns: 120px minmax(0, 1fr) auto; padding: 1rem 0; }
body.theme-minimal .hero-next-day { background: none; display: flex; gap: 0.5rem; align-items: baseline; text-align: left; padding: 0; }
body.theme-minimal .hero-next-day b { font-size: 1rem; font-family: var(--font-body); }
body.theme-minimal .home-section.alt { background: var(--bg); border-top: 1px solid var(--line); }
body.theme-minimal .section-header h2, body.theme-minimal .home-section h2 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; letter-spacing: 0; }
body.theme-minimal .class-grid, body.theme-minimal .plan-teaser, body.theme-minimal .place-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
body.theme-minimal .class-card, body.theme-minimal .plan-teaser-card, body.theme-minimal .place-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none;
    display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 2fr) auto; align-items: baseline; gap: 1.5rem; padding: 1.4rem 0; }
body.theme-minimal .class-card:hover, body.theme-minimal .plan-teaser-card:hover { transform: none; }
body.theme-minimal .class-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
body.theme-minimal .class-color { position: static; width: 10px; height: 10px; border-radius: 50%; display: none; }
body.theme-minimal .class-index { display: block; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
body.theme-minimal .class-card h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; }
body.theme-minimal .class-card p { margin: 0; }
body.theme-minimal .plan-teaser-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; }
body.theme-minimal .plan-teaser-card b { font-size: 1.3rem; font-weight: 500; }
body.theme-minimal .plan-teaser-card .price { order: 3; font-size: 1.3rem; font-weight: 500; }
body.theme-minimal .place-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; }
body.theme-minimal .place-card p { margin: 0; }
body.theme-minimal .teacher-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2.5rem 1.5rem; }
body.theme-minimal .teacher-card { border: 0; padding: 0; background: none; }
body.theme-minimal .teacher-card:hover { transform: none; }
body.theme-minimal .teacher-avatar { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; font-size: 4rem; background: var(--surface-2); color: var(--ink); font-weight: 500; }
body.theme-minimal .plan-card, body.theme-minimal .schedule-card, body.theme-minimal .auth-container { box-shadow: none; }
body.theme-minimal .schedule-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.1rem 0; margin: 0; }
body.theme-minimal .schedule-card-accent { display: none; }
body.theme-minimal .filter-chip { border-radius: 0; border: 0; padding: 0.3rem 0; margin-right: 1rem; }
body.theme-minimal .filter-chip.active { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
body.theme-minimal .filter-chip-dot { display: none; }
@media (max-width: 768px) {
    body.theme-night .hero-next { grid-template-columns: 1fr; }
    body.theme-minimal .class-card, body.theme-minimal .plan-teaser-card, body.theme-minimal .place-card { grid-template-columns: 1fr; gap: 0.3rem; }
    body.theme-minimal .nav-menu a { margin-left: 0; }
}

/* Error pages */
.error-page { max-width: 640px; margin: 2rem auto; text-align: center; }
.error-code { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); letter-spacing: -0.04em; }
.error-page h1 { margin-top: 0.5rem; }
.error-detail { font-weight: 600; }
.error-text { color: var(--muted); }
.error-page .hero-actions { justify-content: center; margin-top: 1.5rem; }
.error-reference { margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }

/* Classes used by the starter template for a studio's own pages (TASK-059); studios can restyle or drop them. */
.custom-hero { padding: clamp(2rem, 6vw, 4rem) 0 2rem; }
.custom-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 0.75rem; }
.custom-hero .lead { font-size: 1.15rem; max-width: 40rem; margin-bottom: 1.25rem; color: var(--muted); }
.custom-section { padding: 1.5rem 0; }
.custom-section h2 { margin-bottom: 1rem; }
.custom-classes { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.custom-classes li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.25rem 1rem; align-items: center; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.custom-classes li span { color: var(--muted); font-size: 0.92rem; }
.custom-classes li strong { grid-column: 1; }
.custom-classes li span:first-of-type { grid-column: 1; }
.custom-classes li span:last-of-type { grid-column: 2; grid-row: 1 / span 2; }
.custom-classes li .gb-book { grid-column: 3; grid-row: 1 / span 2; }
.custom-passes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.custom-passes li { padding: 0.7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (max-width: 640px) { .custom-classes li { grid-template-columns: 1fr; } .custom-classes li span:last-of-type, .custom-classes li .gb-book { grid-column: 1; grid-row: auto; } }

/* Rebook or refund after a cancellation */
.booking-choice { max-width: 52rem; padding: 2rem 0; }
.booking-choice .lead { font-size: 1.1rem; margin: 0.75rem 0 0.25rem; }
.choice-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.choice-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; }
.choice-card h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.choice-classes { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.choice-classes li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.choice-classes li:last-child { border-bottom: 0; }
.custom-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.5rem; }
.custom-filter a { padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-size: 0.9rem; }
.custom-filter a[aria-current] { background: var(--brand, var(--accent)); border-color: transparent; color: var(--brand-ink, #fff); }
.custom-classes li.custom-day { display: block; background: none; border: 0; padding: 1rem 0 0.25rem; }
.custom-teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.custom-teachers article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; }
.custom-teachers img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.custom-passes .price { font-size: 1.4rem; font-weight: 700; }
.custom-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem; }
.custom-brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: inherit; }
.custom-brand img { max-height: 44px; }
.custom-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.custom-nav a { text-decoration: none; color: inherit; font-weight: 550; }
.custom-nav a[aria-current] { text-decoration: underline; }
.gb-languages { display: inline-flex; gap: 0.5rem; }
.custom-footer { max-width: 1100px; margin: 3rem auto 0; padding: 2rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* Gift cards (TASK-022) */
.gift-cards { max-width: 40rem; padding: 2rem 0; }
.gift-amounts { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.25rem; }
.gift-amount { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 1rem; background: var(--surface); cursor: pointer; font-weight: 600; }
.gift-amount input { margin-right: 0.35rem; }

/* Schedule views: list, week and month */
.schedule-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.schedule-views { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.schedule-views a { padding: 0.4rem 0.95rem; text-decoration: none; color: inherit; font-weight: 600; font-size: 0.9rem; }
.schedule-views a[aria-current] { background: var(--brand, var(--accent)); color: var(--brand-ink, #fff); }
.schedule-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.schedule-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.schedule-week-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem; min-height: 8rem; }
.schedule-week-day.is-today { border-color: var(--brand, var(--accent)); }
.schedule-week-day h2 { font-size: 0.9rem; margin: 0 0 0.5rem; text-transform: capitalize; }
.schedule-week-class { display: grid; gap: 0.1rem; padding: 0.45rem 0.5rem; margin-bottom: 0.4rem; border-left: 4px solid; border-radius: 6px; background: var(--surface-2, rgba(0,0,0,.03)); text-decoration: none; color: inherit; font-size: 0.82rem; }
.schedule-week-class .time { font-weight: 700; }
.schedule-week-class .where, .schedule-week-class .spots { color: var(--muted); }
.schedule-week-class.is-full { opacity: 0.6; }
.schedule-week-empty { color: var(--muted); margin: 0; }
.schedule-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.schedule-month-head { background: var(--surface); padding: 0.4rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: center; }
.schedule-month-day { background: var(--surface); min-height: 6.5rem; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem; }
.schedule-month-day.is-outside { background: var(--surface-2, rgba(0,0,0,.03)); color: var(--muted); }
.schedule-month-day.is-today .schedule-month-date { background: var(--brand, var(--accent)); color: var(--brand-ink, #fff); border-radius: 999px; }
.schedule-month-date { align-self: flex-start; min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 0.85rem; text-decoration: none; color: inherit; padding: 0.05rem 0.3rem; }
.schedule-month-class { font-size: 0.75rem; text-decoration: none; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-month-class::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--dot); margin-right: 0.25rem; }
.schedule-month-class span { font-weight: 700; }
.schedule-month-more { font-size: 0.75rem; color: var(--muted); }
@media (max-width: 760px) {
  .schedule-week { grid-template-columns: 1fr; }
  .schedule-week-day { min-height: 0; }
  .schedule-month-day { min-height: 3.6rem; }
  .schedule-month-class { display: none; }
  .schedule-month-day:has(.schedule-month-class) .schedule-month-date { text-decoration: underline; text-decoration-color: var(--brand, var(--accent)); text-decoration-thickness: 3px; }
}

/* My payments */
.account-page { padding-block: 2rem 3rem; }
.account-section { margin-top: 2rem; }
.account-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.account-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.account-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 1rem; border: 1px solid var(--border, #e5e5e5); border-radius: 10px; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border, #e5e5e5); vertical-align: top; }
.account-table th { font-size: 0.85rem; color: var(--muted, #666); font-weight: 600; }

/* Calendar subscription */
.calendar-subscribe input[readonly] { width: 100%; margin: 0.35rem 0 0.5rem; font-size: 0.85rem; }
.calendar-subscribe-actions { margin: 0.75rem 0; }

/* Basket */
.basket-page { padding-block: 2rem 3rem; max-width: 760px; }
.basket-section { margin-top: 2rem; }
.basket-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.basket-class { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; border: 1px solid var(--border, #e5e5e5); border-left: 4px solid; border-radius: 10px; margin-bottom: 0.5rem; }
.basket-class-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.basket-class-info span { font-size: 0.9rem; color: var(--muted, #666); }
.basket-way { font-weight: 600; }
.basket-class form { margin: 0; }
.basket-action { margin-top: 1rem; display: grid; gap: 0.5rem; justify-items: start; }
.basket-link { position: relative; }
.basket-count { display: inline-block; min-width: 1.3em; padding: 0 0.35em; border-radius: 999px; background: var(--brand, #333); color: var(--brand-ink, #fff); font-size: 0.75rem; text-align: center; margin-left: 0.25rem; }
.add-to-basket { display: inline; }

.link-code { font-size: 2rem; font-weight: 700; letter-spacing: 0.3em; text-align: center; margin: 1rem 0; }

/* A phone number: country from a list, then the number as written locally. */
.phone-field { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.phone-field .phone-country { flex: 0 1 11rem; min-width: 0; max-width: 100%; }
.phone-field .phone-number { flex: 1 1 8rem; min-width: 0; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; background: #fff; color: #1f1f1f;
    border: 1px solid #dadce0; border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-weight: 600; text-decoration: none; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; }
.auth-or { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.85rem; margin: 1rem 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

