/* RUMA v3 · Descanso Nocturno · the booking pages.
   The schedule, class detail, book, pricing, account, auth, checkout and policies pages render
   the DEFAULT templates (concept v1 markup); this file restyles their classes for the night room.
   Pills for anything you press, 20-26px shells for containers, 14px fields. Status is never
   colour-only: every badge carries its word. */

/* ---------- vocabulary ---------- */
.theme-v3 .wrap--narrow { max-width: 820px; }
.theme-v3 .wrap--form { max-width: 600px; }
.theme-v3 .stack { display: grid; gap: var(--stack-gap, 18px); align-content: start; }
.theme-v3 .stack > * { margin: 0; }
.theme-v3 .stack--lg { --stack-gap: 36px; }
.theme-v3 .stack--sm { --stack-gap: 8px; }
.theme-v3 ul.stack, .theme-v3 ol.stack { list-style: none; padding: 0; margin: 0; }
.theme-v3 .cluster { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.theme-v3 .eyebrow { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--candle); line-height: 1.2; }
.theme-v3 .display { font-size: var(--fs-h1-page); line-height: 1.04; letter-spacing: -.02em; }
.theme-v3 .display .ln { display: block; padding-bottom: .06em; }
.theme-v3 .h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.theme-v3 .h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.12; }
.theme-v3 .caption { font-size: var(--fs-micro); line-height: 1.55; color: var(--muted); }
.theme-v3 .small { font-size: var(--fs-small); }
.theme-v3 .num { font-variant-numeric: tabular-nums lining-nums; }
.theme-v3 .prose { max-width: 66ch; }
.theme-v3 .prose p { margin: 0 0 1em; }
.theme-v3 .rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.theme-v3 .folio { display: flex; align-items: baseline; gap: 14px; max-width: 560px; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.theme-v3 .folio .num { color: var(--candle-soft); font-style: normal; font-family: var(--font-body); font-size: var(--fs-small); font-weight: 500; }
.theme-v3 .folio .rule-fill { flex: 1; height: 1px; background: var(--line-strong); align-self: center; min-width: 24px; }
.theme-v3 .empty-note { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--muted); margin: 18px 0 0; }
.theme-v3 .empty-note + .btn, .theme-v3 .empty-note + .more { margin-top: 12px; }
.theme-v3 .card > .more, .theme-v3 .stack > .more, .theme-v3 .cluster > .more { justify-self: start; }

/* page head: a quiet dusk room with the breathing glow behind the title */
.theme-v3 .page-head { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(36px, 5vw, 64px); }
.theme-v3 .page-head::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 70%; top: 0; width: min(900px, 120vw); aspect-ratio: 1; translate: -50% -45%;
  background: radial-gradient(closest-side, rgb(var(--flame-rgb) / .16), rgb(var(--dusk-rgb) / .42) 45%, transparent 72%);
  transform: scale(.9); opacity: .8;
}
@media (prefers-reduced-motion: no-preference) { .theme-v3 .page-head::before { animation: v3-breathe calc(var(--breath-in) + var(--breath-out)) infinite; } }
.theme-v3 .page-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 4vw, 64px); align-items: end; }
.theme-v3 .page-head__grid > .folio { grid-column: 1 / -1; }
.theme-v3 .page-head__aside { border-top: 1px solid var(--line-strong); padding-top: 18px; }
@media (max-width: 860px) { .theme-v3 .page-head__grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .theme-v3 .rise { animation: v3-rise var(--t-reveal) var(--ease-warm) both; animation-delay: calc(var(--d, 0) * 1ms); }
}
@keyframes v3-rise { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- notices / flash ---------- */
.theme-v3 .flash-zone { padding-top: 20px; display: grid; gap: 10px; position: relative; z-index: 2; }
.theme-v3.has-hero .flash-zone { position: absolute; left: 0; right: 0; top: calc(var(--head-h) + 12px); z-index: calc(var(--z-header) - 1); }
.theme-v3 .notice {
  display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 16px 20px; border-radius: var(--r-core);
  background: var(--ember); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-strong); font-size: var(--fs-small); line-height: 1.55;
}
.theme-v3 .notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--candle); box-shadow: 0 0 10px rgba(var(--candle-glow) / .7); }
.theme-v3 .notice > * { margin: 0; }
.theme-v3 .notice a { color: var(--candle-soft); text-decoration: underline; text-underline-offset: .2em; }
.theme-v3 .notice strong { color: var(--text-strong); font-weight: 600; }
.theme-v3 .notice--error { background: var(--danger-wash); box-shadow: inset 0 0 0 1px var(--danger-line); color: var(--text-strong); }
.theme-v3 .notice--error::before { background: var(--danger); box-shadow: none; }
.theme-v3 .notice--error a { color: var(--text-strong); }
.theme-v3 .notice--warn { background: var(--warn-wash); box-shadow: inset 0 0 0 1px var(--warn-line); color: var(--warn-ink); }
.theme-v3 .notice--quiet { background: rgb(var(--text-rgb) / .04); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .notice .btn { margin-left: auto; }
.theme-v3 .notice:focus { outline: 2px solid var(--candle); outline-offset: 3px; }

/* ---------- cards: the double-bezel look without extra markup ---------- */
.theme-v3 .card {
  position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-shell); background: var(--ember);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(var(--text-rgb) / .07);
}
.theme-v3 .card--framed { box-shadow: 0 0 0 8px rgb(var(--text-rgb) / .035), 0 0 0 9px var(--line), inset 0 1px 0 rgb(var(--text-rgb) / .07); margin: 9px; }

/* ---------- fields (auth, filters, pause) ---------- */
.theme-v3 .form { display: grid; gap: 20px; padding: clamp(24px, 3.6vw, 44px); border-radius: var(--r-shell); background: var(--ember); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px rgba(var(--candle-glow) / .25); align-content: start; }
.theme-v3 .form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 560px) { .theme-v3 .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.theme-v3 .form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 0; display: grid; gap: 16px; min-width: 0; }
.theme-v3 .form legend { padding: 0 12px 0 0; font-family: var(--font-display); font-size: 1.45rem; color: var(--text-strong); }
.theme-v3 .form > .btn { justify-self: start; }
.theme-v3 .field { display: grid; gap: 8px; align-content: start; } /* side by side (.row2), an error under one field never stretches its neighbour */
.theme-v3 .field label, .theme-v3 .field .label { font-size: var(--fs-small); font-weight: 500; color: var(--text-strong); text-transform: none; letter-spacing: 0; }
.theme-v3 .opt { font-weight: 400; color: var(--muted); }
.theme-v3 .field .hint, .theme-v3 .hint { font-size: var(--fs-micro); color: var(--muted); margin: 0; }
.theme-v3 .field input[type="text"], .theme-v3 .field input[type="email"], .theme-v3 .field input[type="tel"],
.theme-v3 .field input[type="password"], .theme-v3 .field select, .theme-v3 .field textarea, .theme-v3 .select, .theme-v3 .pause-form select {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--r-field);
  background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--field-line); color: var(--text-strong); font-size: 1rem;
  transition: box-shadow .3s var(--ease-warm), background-color .3s var(--ease-warm);
}
.theme-v3 .select, .theme-v3 .field select, .theme-v3 .pause-form select {
  appearance: none; padding-right: 44px; min-width: 190px;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C0966B' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
.theme-v3 .select { min-height: 44px; }
.theme-v3 .pause-form select { width: auto; min-height: 44px; }
.theme-v3 select option { background: var(--ember); color: var(--text-strong); }
.theme-v3 ::placeholder { color: var(--sage); opacity: 1; }
.theme-v3 .field input:focus-visible, .theme-v3 .field select:focus-visible, .theme-v3 .field textarea:focus-visible, .theme-v3 .select:focus-visible, .theme-v3 .pause-form select:focus-visible {
  outline: 2px solid transparent; box-shadow: inset 0 0 0 1.5px var(--candle), 0 0 0 4px rgba(var(--candle-glow) / .22); background-color: rgb(var(--text-rgb) / .09);
}
.theme-v3 .field input:-webkit-autofill { -webkit-text-fill-color: var(--text-strong); -webkit-box-shadow: 0 0 0 40px var(--ember-2) inset, inset 0 0 0 1px var(--field-line); caret-color: var(--text-strong); }
.theme-v3 .field .error { font-size: var(--fs-micro); color: var(--danger); margin: 0; font-weight: 600; }
.theme-v3 .field .error::before { content: "! "; }
.theme-v3 .field.has-error input { box-shadow: inset 0 0 0 1.5px var(--danger); }
/* Rails wraps an invalid label/input in div.field_with_errors: let them stay grid items of .field. */
.theme-v3 .field_with_errors { display: contents; }
.theme-v3 .check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--fs-small); line-height: 1.55; color: var(--text); cursor: pointer; }
.theme-v3 .check input {
  appearance: none; width: 24px; height: 24px; margin: 0; border: 0; border-radius: 7px; background: var(--field-bg);
  box-shadow: inset 0 0 0 1.5px var(--candle); display: grid; place-items: center; cursor: pointer;
}
.theme-v3 .check input::after { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--on-candle); border-bottom: 2px solid var(--on-candle); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .2s var(--ease-out); }
.theme-v3 .check input:checked { background: var(--candle); }
.theme-v3 .check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.theme-v3 .check input:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.theme-v3 .check a { color: var(--candle-soft); text-decoration: underline; text-underline-offset: .2em; }
.theme-v3 .check strong { color: var(--text-strong); font-weight: 600; }
.theme-v3 .consents { display: grid; gap: 14px; }
.theme-v3 .form-errors { list-style: none; margin: 0; padding: 0; }
.theme-v3 .auth-alt { font-size: var(--fs-small); color: var(--text); border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 0; }
.theme-v3 .auth-alt p { margin: 0; }
.theme-v3 .auth-alt a { color: var(--candle-soft); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-strong); display: inline-flex; min-height: 44px; align-items: center; }
.theme-v3 .pause-form { gap: 10px 12px; }
.theme-v3 .pause-form label { font-size: var(--fs-small); color: var(--text-strong); }

/* ---------- auth ---------- */
.theme-v3 .auth { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(48px, 7vw, 104px); }
.theme-v3 .auth::before {
  content: ""; position: absolute; z-index: -1; left: 18%; top: 10%; width: min(820px, 120vw); aspect-ratio: 1; translate: -50% -40%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--flame-rgb) / .14), rgb(var(--dusk-rgb) / .4) 45%, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) { .theme-v3 .auth::before { animation: v3-breathe calc(var(--breath-in) + var(--breath-out)) infinite; } }
.theme-v3 .auth__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 112px); align-items: start; }
.theme-v3 .auth__intro { display: grid; gap: 20px; justify-items: start; position: sticky; top: calc(var(--head-h) + 32px); }
@media (max-width: 900px) { .theme-v3 .auth__grid { grid-template-columns: minmax(0, 1fr); } .theme-v3 .auth__intro { position: static; } }

/* ---------- schedule ---------- */
.theme-v3 .sched-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; margin-bottom: 32px; }
@media (max-width: 860px) { .theme-v3 .sched-tools { grid-template-columns: minmax(0, 1fr); } }
.theme-v3 .filters { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end; margin: 0; }
.theme-v3 .filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.theme-v3 .filters legend, .theme-v3 .filters .flabel { display: block; padding: 0; margin-bottom: 10px; font-size: var(--fs-small); color: var(--muted); }
.theme-v3 .filters .field { gap: 0; }
.theme-v3 .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-v3 .chip { position: relative; display: inline-flex; }
.theme-v3 .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-v3 .chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-small); color: var(--text);
  transition: background-color .35s var(--ease-warm), color .35s var(--ease-warm);
}
.theme-v3 .chip input:checked + span { background: var(--candle); color: var(--on-candle); box-shadow: none; font-weight: 600; }
.theme-v3 .chip input:focus-visible + span { outline: 2px solid var(--candle); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .theme-v3 .chip input:not(:checked):hover + span { background: rgb(var(--candle-glow) / .1); color: var(--candle-soft); } }
.theme-v3 .js-autosubmit .filters__apply { display: none; }

.theme-v3 .weeknav { display: flex; align-items: center; gap: 8px; }
.theme-v3 .weeknav__label { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-strong); padding-inline: 8px; white-space: nowrap; }
.theme-v3 .weeknav a, .theme-v3 .weeknav span.off {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--candle-soft); text-decoration: none;
  transition: background-color .3s var(--ease-warm);
}
.theme-v3 .weeknav a:hover { background: rgb(var(--candle-glow) / .12); }
.theme-v3 .weeknav span.off { color: var(--sage); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .weeknav svg { width: 16px; height: 16px; }

.theme-v3 .daytabs { display: none; }
.theme-v3 .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
/* minmax(0, 1fr) inside the day too: an auto track would let the head's min-content widen the
   day past its week column and spill into the next one */
.theme-v3 .day { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; container-type: inline-size; }
.theme-v3 .day__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 10px 4px 14px; border-bottom: 1px solid var(--line); font-size: clamp(1.3rem, 1.35vw, 1.6rem); font-weight: 400; margin: 0; }
/* narrow week columns (small laptops): every day stacks its date under the weekday, so the heads stay one height */
@container (max-width: 155px) {
  .theme-v3 .day__head { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 1.2rem; }
  .theme-v3 .day .slot { padding: 12px 10px 10px; }
  .theme-v3 .day .slot time { font-size: 1.25rem; }
}
.theme-v3 .day__head small { white-space: nowrap; font-family: var(--font-body); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--candle); font-weight: 500; }
.theme-v3 .day.is-today .day__head { border-bottom-color: var(--candle); font-style: italic; color: var(--candle-soft); }
.theme-v3 .day.is-past .day__head { color: var(--muted); }
.theme-v3 .day__empty { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--muted); padding: 8px 4px; }

.theme-v3 .slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.theme-v3 .slot {
  position: relative; overflow: hidden; display: grid; gap: 3px; padding: 14px 14px 12px; border-radius: 14px;
  background: var(--ember); box-shadow: inset 0 0 0 1px rgb(var(--text-rgb) / .07);
  transition: background-color .4s var(--ease-warm), transform .16s var(--ease-out);
}
/* evening + rest classes glow like the concept's candlelit slots */
.theme-v3 .slot[data-intent="rest"] { background: linear-gradient(160deg, var(--ember-2), var(--plum-deep) 90%); }
.theme-v3 .slot[data-intent="rest"]::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--candle-glow) / .26), transparent); pointer-events: none; }
.theme-v3 .slot[data-intent="together"] { background: var(--plum-deep); box-shadow: inset 0 0 0 1px rgb(var(--candle-glow) / .2); }
@media (hover: hover) and (pointer: fine) { .theme-v3 .slot:not(.is-over):hover { background: var(--ember-2); } }
.theme-v3 .slot time { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-strong); line-height: 1.1; font-variant-numeric: lining-nums; }
.theme-v3 .slot__name { font-weight: 600; font-size: var(--fs-small); color: var(--text-strong); line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.theme-v3 .slot__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.theme-v3 .slot__name:focus-visible { outline: none; }
.theme-v3 .slot:has(.slot__name:focus-visible) { outline: 2px solid var(--candle); outline-offset: 3px; }
.theme-v3 .slot__meta { font-size: var(--fs-micro); color: var(--muted); line-height: 1.45; }
.theme-v3 .slot__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 6px; }
.theme-v3 .slot__spots { font-size: var(--fs-micro); color: var(--text); font-weight: 500; }
.theme-v3 .slot__spots.is-low { color: var(--candle-soft); }
.theme-v3 .slot__book, .theme-v3 .bk__actions .slot__book {
  position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--candle); color: var(--on-candle); font-size: var(--fs-small); font-weight: 600; text-decoration: none;
  transition: background-color .35s var(--ease-warm), box-shadow .5s var(--ease-warm);
}
@media (hover: hover) { .theme-v3 .slot__book:hover { background: var(--candle-hover); box-shadow: 0 0 28px -6px rgba(var(--candle-glow) / .7); } }
.theme-v3 .slot__badge { position: relative; z-index: 2; font-size: var(--fs-micro); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.theme-v3 .slot__badge--yours { background: rgb(var(--candle-glow) / .16); color: var(--candle-soft); }
/* Class language (ClassSession#language): "En español" / "Bilingual", only for Spanish-guided classes. */
.theme-v3 .slot__badge--lang { display: inline-block; color: var(--candle-soft); line-height: 1.3; white-space: nowrap; }
.theme-v3 .slot__meta .slot__badge--lang { margin-top: 6px; }
.theme-v3 .cls-hero__lang { margin-top: 12px; }
.theme-v3 .cls-hero__lang .slot__badge--lang { background: rgb(var(--night-rgb) / .55); }
/* Footer: the "Experiences" list under Say hello (layout, Themes::V3LandingsHelper). */
.theme-v3 .foot .foot__more-h { margin-top: 32px; }
/* A row of pill links to the landing pages (classes page, landing pages' "Keep exploring"). */
.theme-v3 ul.lp-links.beyond__links { margin: 4px 0 18px; }
.theme-v3 ul.lp-links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.theme-v3 .slot.is-cancelled time, .theme-v3 .slot.is-cancelled .slot__name { text-decoration: line-through; text-decoration-color: var(--muted); }
.theme-v3 .slot.is-over { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .slot.is-over::after { display: none; }
.theme-v3 .slot.is-over time, .theme-v3 .slot.is-over .slot__name, .theme-v3 .slot.is-over .slot__spots, .theme-v3 .slot.is-over .slot__meta { color: var(--muted); }
.theme-v3 .slot.is-over .dots i { box-shadow: inset 0 0 0 1px var(--muted); }
.theme-v3 .slot.is-over .dots i.on { background: var(--muted); box-shadow: none; }
.theme-v3 .slot.is-over .slot__name::after { display: none; }

.theme-v3 .legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font-size: var(--fs-small); color: var(--muted); }
.theme-v3 .legend span { display: inline-flex; align-items: center; gap: 8px; }
.theme-v3 .legend i { width: 16px; height: 16px; border-radius: 5px; background: var(--ember); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .legend .r i { background: linear-gradient(160deg, var(--ember-2), var(--plum-deep)); }
.theme-v3 .legend .t i { background: var(--plum-deep); box-shadow: inset 0 0 0 1px rgb(var(--candle-glow) / .3); }
.theme-v3 .sched-empty { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.theme-v3 .sched-empty .h3 { font-family: var(--font-display); font-style: italic; color: var(--text-strong); }

@media (max-width: 1180px) and (min-width: 961px) { .theme-v3 .slot__foot { flex-direction: column; align-items: flex-start; } }
@media (max-width: 960px) {
  .theme-v3 .is-tabbed .daytabs { display: flex; gap: 6px; margin: 0 calc(var(--gut) * -1) 18px; padding: 0 var(--gut) 6px; overflow-x: auto; scrollbar-width: none; }
  .theme-v3 .daytabs::-webkit-scrollbar { display: none; }
  .theme-v3 .daytabs [role="tab"] {
    flex: 1 0 auto; min-width: 52px; min-height: 60px; padding: 6px 10px; display: grid; justify-items: center; gap: 0;
    border: 0; border-radius: 18px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: var(--fs-micro); letter-spacing: .04em;
  }
  .theme-v3 .daytabs [role="tab"] b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--text-strong); line-height: 1.1; }
  .theme-v3 .daytabs [role="tab"][aria-selected="true"] { background: var(--candle); color: var(--on-candle); box-shadow: none; }
  .theme-v3 .daytabs [role="tab"][aria-selected="true"] b { color: var(--on-candle); font-style: italic; }
  .theme-v3 .daytabs [role="tab"].is-past b { color: var(--muted); }
  .theme-v3 .daytabs [role="tab"][aria-selected="true"].is-past b { color: var(--on-candle); }
  .theme-v3 .week { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .theme-v3 .day { padding-bottom: 28px; }
  .theme-v3 .is-tabbed .day:not(.is-active) { display: none; }
  .theme-v3 .is-tabbed .day__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .theme-v3 .slot { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; padding: 16px; }
  .theme-v3 .slot time { grid-row: span 3; font-size: 1.3rem; white-space: nowrap; }
  .theme-v3 .slot__foot { grid-column: 2; }
}

/* ---------- class detail ---------- */
.theme-v3 .cls-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(28px, 5vw, 88px); align-items: start; }
@media (max-width: 900px) { .theme-v3 .cls-head { grid-template-columns: minmax(0, 1fr); } }
.theme-v3 .cls-when { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--text-strong); line-height: 1.25; }
.theme-v3 .cls-when em { color: var(--candle-soft); }
.theme-v3 .cls-panel { position: sticky; top: calc(var(--head-h) + 24px); }
.theme-v3 .cls-panel .card { display: grid; gap: 20px; }
.theme-v3 .facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; font-size: var(--fs-small); }
.theme-v3 .facts dt { color: var(--muted); }
.theme-v3 .facts dd { margin: 0; color: var(--text-strong); font-weight: 500; }
.theme-v3 .spots-big { font-family: var(--font-display); font-weight: 300; font-size: 3.2rem; line-height: 1; color: var(--candle-soft); }
.theme-v3 .spots-big small { font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); margin-left: 8px; }
.theme-v3 .policy-line { font-size: var(--fs-small); color: var(--text); border-top: 1px solid var(--line); padding-top: 16px; }
.theme-v3 .teacher-block { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; border-top: 1px solid var(--line-strong); padding-top: 28px; }
.theme-v3 .teacher-block__photo { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 50%; background: var(--ember); filter: sepia(.45) saturate(.75) contrast(1.02) brightness(.78); }
.theme-v3 .monogram { display: grid; place-items: center; width: 120px; aspect-ratio: 3 / 4; border-radius: 50%; background: radial-gradient(closest-side, var(--plum), var(--ember)); font-family: var(--font-display); font-style: italic; font-size: 2.6rem; color: var(--candle-soft); }
.theme-v3 .teacher-block h2 { font-size: 2rem; }
.theme-v3 .teacher-block .t-quote { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--text-strong); }
@media (max-width: 520px) { .theme-v3 .teacher-block { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; } .theme-v3 .teacher-block__photo, .theme-v3 .monogram { width: 84px; } }

/* ---------- book: choose how to pay ---------- */
.theme-v3 .book-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .theme-v3 .book-grid { grid-template-columns: minmax(0, 1fr); } .theme-v3 .book-grid .cls-summary { order: -1; } }
/* Phones/tablets: the class card is first, so a bottom bar keeps "Book now" in thumb reach (book.html.haml). */
.theme-v3 .book-bar { display: none; }
@media (max-width: 900px) {
  .theme-v3:has(.book-bar) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .theme-v3 .book-bar {
    display: flex; align-items: center; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-dock);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgb(var(--deep-rgb) / .94); box-shadow: 0 -1px 0 var(--line), 0 -18px 40px -24px rgb(0 0 0 / .8);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .theme-v3 .book-bar__what { display: grid; gap: 2px; min-width: 0; flex: 1; }
  .theme-v3 .book-bar__class { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .theme-v3 .book-bar__how { color: var(--text-strong); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .theme-v3 .book-bar__btn { flex: none; min-height: 48px; }
  .theme-v3.menu-open .book-bar { visibility: hidden; }
}
.theme-v3 .cls-summary {
  display: grid; gap: 10px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-shell);
  background: radial-gradient(120% 100% at 100% 0%, rgb(var(--dusk-rgb) / .85), transparent 70%), var(--ember); box-shadow: inset 0 0 0 1px var(--line);
}
.theme-v3 .cls-summary h2 { font-size: 2rem; }
.theme-v3 .cls-summary h2 a { color: var(--text-strong); text-decoration: none; }
.theme-v3 .cls-summary h2 a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }
.theme-v3 .choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.theme-v3 .choice {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 22px 24px; border-radius: var(--r-core);
  background: linear-gradient(160deg, var(--ember-2), var(--ember)); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px -36px rgba(var(--candle-glow) / .45);
}
.theme-v3 .choice h3 { font-size: 1.6rem; }
.theme-v3 .choice p { margin: 4px 0 0; font-size: var(--fs-small); color: var(--muted); }
.theme-v3 .choice form { margin: 0; }
.theme-v3 .choice--off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 560px) { .theme-v3 .choice { grid-template-columns: minmax(0, 1fr); } .theme-v3 .choice .btn { width: 100%; } }
.theme-v3 .offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.theme-v3 .offer { border-bottom: 1px solid var(--line); }
.theme-v3 .offer > details > summary {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 8px 24px; align-items: center; min-height: 76px; padding: 18px 0; cursor: pointer;
}
.theme-v3 .offer > details > summary::-webkit-details-marker { display: none; }
.theme-v3 .offer__name { font-family: var(--font-display); font-size: 1.65rem; color: var(--text-strong); line-height: 1.2; }
.theme-v3 .offer__name small { display: block; font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.theme-v3 .offer__price { font-family: var(--font-display); font-weight: 300; font-size: 2.1rem; color: var(--candle-soft); white-space: nowrap; font-variant-numeric: lining-nums; line-height: 1; }
.theme-v3 .offer__price small { font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); margin-left: 4px; }
.theme-v3 .offer__tag { display: inline-block; font-style: italic; font-size: 1.1rem; color: var(--candle); margin-left: 10px; }
.theme-v3 .pm { position: relative; width: 16px; height: 16px; }
.theme-v3 .pm::before, .theme-v3 .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 7.5px; height: 1.5px; background: var(--candle); transition: transform .45s var(--ease-inout); }
.theme-v3 .pm::after { transform: rotate(90deg); }
.theme-v3 details[open] > summary .pm::after { transform: rotate(0deg); }
@media (hover: hover) { .theme-v3 .offer > details > summary:hover .offer__name { color: var(--candle-soft); } }
@media (max-width: 560px) {
  .theme-v3 .offer > details > summary { grid-template-columns: minmax(0, 1fr) 20px; }
  .theme-v3 .offer__price { grid-column: 1; grid-row: 2; }
  .theme-v3 .pm { grid-row: 1; grid-column: 2; }
}
.theme-v3 .buy { display: grid; gap: 18px; padding: 4px 0 26px; }
.theme-v3 .buy__terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.theme-v3 .buy__terms li { padding-left: 28px; position: relative; }
.theme-v3 .buy__terms li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 14px; height: 1px; background: var(--candle); }
.theme-v3 .renewal { margin: 0; padding: 16px 18px; border-radius: var(--r-field); background: var(--warn-wash); box-shadow: inset 0 0 0 1px var(--warn-line); color: var(--text); font-size: var(--fs-small); line-height: 1.6; }
.theme-v3 .renewal strong { color: var(--candle-soft); font-weight: 600; }
.theme-v3 .buy form { display: grid; gap: 16px; margin: 0; }
.theme-v3 .buy .btn { justify-self: start; }
@media (max-width: 560px) { .theme-v3 .buy .btn { justify-self: stretch; white-space: normal; text-align: center; } }

/* ---------- pricing ---------- */
.theme-v3 .intro-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--r-shell); overflow: hidden;
  background: radial-gradient(80% 140% at 0% 50%, rgba(var(--candle-glow) / .16), transparent 60%), var(--ember);
  box-shadow: 0 0 0 8px rgb(var(--text-rgb) / .035), 0 0 0 9px var(--line), inset 0 1px 0 rgb(var(--text-rgb) / .07); margin: 9px;
}
.theme-v3 .intro-card__text { padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; align-content: center; justify-items: start; }
.theme-v3 .intro-card__text p { margin: 0; }
.theme-v3 .intro-card__price { font-family: var(--font-display); font-weight: 300; font-size: clamp(5rem, 11vw, 9rem); line-height: .86; letter-spacing: -.04em; color: var(--candle-soft); }
.theme-v3 .intro-card__side { padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; gap: 16px; background: rgb(var(--dusk-rgb) / .7); box-shadow: inset 1px 0 0 var(--line); }
.theme-v3 .intro-card__side p { margin: 0; }
@media (max-width: 860px) { .theme-v3 .intro-card { grid-template-columns: minmax(0, 1fr); } .theme-v3 .intro-card__side { box-shadow: inset 0 1px 0 var(--line); } }
.theme-v3 .plans { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; align-items: stretch; padding-top: 18px; }
.theme-v3 .plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-shell); background: var(--ember); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .plan--chosen { background: linear-gradient(180deg, var(--ember-2), var(--plum-deep)); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 80px -30px rgba(var(--candle-glow) / .35); transform: translateY(-14px); }
.theme-v3 .plan__tag { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--candle); min-height: 1.3em; line-height: 1.2; }
.theme-v3 .plan h3 { font-size: 2.3rem; }
.theme-v3 .plan__price { font-family: var(--font-display); font-weight: 300; font-size: 3.6rem; line-height: 1; color: var(--text-strong); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.theme-v3 .plan__price small { font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.theme-v3 .plan .ticks { margin-bottom: auto; }
.theme-v3 .plan .btn { margin-top: 8px; align-self: flex-start; }
@media (max-width: 960px) { .theme-v3 .plans { grid-template-columns: minmax(0, 1fr); gap: 20px; } .theme-v3 .plan--chosen { transform: none; } }
.theme-v3 .promise { margin: 40px 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--text-strong); text-align: center; }
/* packs section sets an inline ivory background in the default template: bring it back to night */
.theme-v3 section[aria-labelledby="packs-title"] { background: linear-gradient(180deg, var(--night), var(--ember) 20%, var(--ember) 80%, var(--night)) !important; }
.theme-v3 .rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; margin-top: 18px; }
.theme-v3 .rate-table th, .theme-v3 .rate-table td { text-align: left; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.theme-v3 .rate-table thead th { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 0; }
.theme-v3 .rate-table tbody th { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; color: var(--text-strong); }
.theme-v3 .rate-table td { font-size: var(--fs-small); color: var(--text); }
.theme-v3 .rate-table .price { font-family: var(--font-display); font-size: 1.8rem; color: var(--candle-soft); text-align: right; white-space: nowrap; }
.theme-v3 .rate-table thead th.price { font-family: var(--font-body); font-size: var(--fs-micro); color: var(--muted); }
.theme-v3 .rate-table .act { text-align: right; padding-right: 0; width: 1%; }
@media (max-width: 640px) {
  .theme-v3 .rate-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .theme-v3 .rate-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .theme-v3 .rate-table th, .theme-v3 .rate-table td { border: 0; padding: 0; }
  .theme-v3 .rate-table .act { grid-column: 1 / -1; text-align: left; width: auto; margin-top: 8px; }
  .theme-v3 .rate-table td.detail { grid-column: 1; grid-row: 2; }
  .theme-v3 .rate-table .price { grid-column: 2; grid-row: 1; }
}
.theme-v3 .buy-panel { display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-shell); background: var(--ember); box-shadow: 0 0 0 8px rgb(var(--text-rgb) / .035), 0 0 0 9px var(--line-strong); margin: 9px; }
.theme-v3 .buy-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.theme-v3 .buy-panel__head h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.theme-v3 .buy-panel > .more { justify-self: start; }

/* ---------- account ---------- */
.theme-v3 .acct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(28px, 5vw, 88px); align-items: start; }
@media (max-width: 960px) { .theme-v3 .acct-grid { grid-template-columns: minmax(0, 1fr); } }
.theme-v3 .acct-side { display: grid; gap: 36px; }
.theme-v3 .sec-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); margin-bottom: 8px; }
.theme-v3 .sec-title h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.theme-v3 .sec-title a { font-size: var(--fs-small); color: var(--candle-soft); display: inline-flex; min-height: 44px; align-items: center; }
.theme-v3 .member-card { display: grid; gap: 16px; justify-items: start; }
.theme-v3 .member-card__plan { font-family: var(--font-display); font-weight: 300; font-size: 2.4rem; line-height: 1.05; color: var(--text-strong); }
.theme-v3 .member-card__status { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ok); font-weight: 600; }
.theme-v3 .member-card__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.theme-v3 .member-card__status.is-attention { color: var(--danger); }
.theme-v3 .member-card__status.is-quiet { color: var(--muted); }
.theme-v3 .member-card__status.is-quiet::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.theme-v3 .usage { display: grid; gap: 8px; width: 100%; }
.theme-v3 .usage__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-small); }
.theme-v3 .usage__bar { display: flex; gap: 4px; }
.theme-v3 .usage__bar i { flex: 1; height: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-v3 .usage__bar i.on { background: var(--candle); box-shadow: 0 0 8px rgba(var(--candle-glow) / .5); }
.theme-v3 .credits-total { display: flex; align-items: baseline; gap: 12px; }
.theme-v3 .credits-total b { font-family: var(--font-display); font-weight: 300; font-size: 4rem; line-height: 1; color: var(--candle-soft); font-variant-numeric: lining-nums; }
.theme-v3 .buckets { list-style: none; margin: 0; padding: 0; display: grid; }
.theme-v3 .buckets li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.theme-v3 .buckets li:last-child { border-bottom: 0; }
.theme-v3 .buckets .soon { color: var(--warn-ink); font-weight: 600; }
/* a booking row reads its own width, not the viewport's: in a half-width column (the bookings page,
   the account sidebar) the actions and the cancel box drop under the class instead of squeezing it */
.theme-v3 .bookings { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.theme-v3 .bk { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 6px 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.theme-v3 .bk__date { font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; line-height: .95; color: var(--text-strong); font-variant-numeric: lining-nums; }
.theme-v3 .bk__date small { display: block; font-family: var(--font-body); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--candle); margin-top: 6px; font-weight: 500; }
.theme-v3 .bk h3 { font-size: 1.6rem; }
.theme-v3 .bk h3 a { text-decoration: none; color: var(--text-strong); }
.theme-v3 .bk h3 a:hover { color: var(--candle-soft); }
.theme-v3 .bk__meta { font-size: var(--fs-small); color: var(--muted); margin: 2px 0 0; }
.theme-v3 .bk__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; max-width: 380px; }
.theme-v3 .bk__actions .slot__book { background: transparent; color: var(--candle-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-v3 .bk__actions .cancel[open] { flex-basis: 100%; }
.theme-v3 .bk__status { font-size: var(--fs-micro); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); white-space: nowrap; }
.theme-v3 .bk__status--booked { background: rgb(var(--candle-glow) / .16); color: var(--candle-soft); box-shadow: none; }
.theme-v3 .bk__status--late_cancelled, .theme-v3 .bk__status--no_show { background: var(--warn-wash); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.theme-v3 .bk--past .bk__date, .theme-v3 .bk--past h3 a { color: var(--muted); }
@container (max-width: 720px) {
  .theme-v3 .bk { grid-template-columns: 64px minmax(0, 1fr); }
  .theme-v3 .bk__date { font-size: 2rem; }
  .theme-v3 .bk__actions { grid-column: 2; justify-content: flex-start; max-width: none; }
  .theme-v3 .bk .cancel { justify-items: start; }
}
.theme-v3 .cancel { position: relative; display: grid; justify-items: end; }
@media (max-width: 640px) { .theme-v3 .cancel { justify-items: start; } }
.theme-v3 .cancel > summary {
  list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; cursor: pointer;
  font-size: var(--fs-small); font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line-strong);
}
.theme-v3 .cancel > summary::-webkit-details-marker { display: none; }
.theme-v3 .cancel > summary:hover { color: var(--danger); text-decoration-color: currentColor; }
.theme-v3 .cancel[open] > summary { color: var(--muted); }
.theme-v3 .cancel__box { margin-top: 8px; padding: 18px; width: min(360px, 78vw); border-radius: var(--r-core); background: var(--ember-2); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; gap: 12px; text-align: left; }
.theme-v3 .cancel__box p { margin: 0; font-size: var(--fs-small); color: var(--text); }
.theme-v3 .cancel__box.is-late { background: var(--warn-wash); box-shadow: inset 0 0 0 1px var(--warn-line); }
.theme-v3 .cancel__box.is-late p { color: var(--warn-ink); }
.theme-v3 .cancel__box .cluster { gap: 8px 12px; }
@media (max-width: 640px) { .theme-v3 .cancel__box { width: 100%; } }
.theme-v3 .receipts { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; font-size: var(--fs-small); }
.theme-v3 .receipts th, .theme-v3 .receipts td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.theme-v3 .receipts thead th { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); font-weight: 500; }
.theme-v3 .receipts .r { text-align: right; padding-right: 0; }
.theme-v3 .receipts a { color: var(--candle-soft); text-underline-offset: .2em; display: inline-flex; min-height: 44px; align-items: center; }
/* an issued document is paper: it stays a light sheet on the night table, with its own dark ink */
.theme-v3 .doc-frame { background: var(--cream); color: var(--ink); border-radius: var(--r-core); padding: clamp(20px, 4vw, 48px); overflow-x: auto; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.theme-v3 .doc-frame * { color: inherit; }
.theme-v3 .doc-frame a { color: var(--umber); }
.theme-v3 .doc-frame .facts dt { color: var(--umber); }
.theme-v3 .doc-frame :focus-visible { outline-color: var(--umber); }

/* ---------- policies ---------- */
.theme-v3 .policy { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 18px clamp(24px, 4vw, 64px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.theme-v3 .policy:first-of-type { border-top-color: var(--line-strong); margin-top: 24px; }
.theme-v3 .policy h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.theme-v3 .policy .prose { color: var(--text); }
@media (max-width: 760px) { .theme-v3 .policy { grid-template-columns: minmax(0, 1fr); } }

/* ---------- editorial devices the default (v1) templates add ----------
   pub_folio ("Nº 01 · The Fall Issue · p. 03") and plate numbers ("Pl. I") are v1 magazine
   identity; the night room has no issue numbers. Plates become candlelit media, the FAQ and
   the closing band take the v3 shapes. */
.theme-v3 .folio:has(.pg) { display: none; }
.theme-v3 .plate { margin: 0; display: grid; gap: 12px; }
.theme-v3 .plate__media { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: var(--ar, 16 / 9); border-radius: var(--r-media); background: var(--ember); }
.theme-v3 .plate__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgb(var(--deep-rgb) / .55)), linear-gradient(180deg, rgb(var(--dusk-rgb) / .18), rgb(var(--ember-rgb) / .28)); mix-blend-mode: multiply; }
.theme-v3 .plate__media img, .theme-v3 .plate__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: sepia(.28) saturate(.82) contrast(.96) brightness(.8); }
.theme-v3 .plate__media video, .theme-v3 .plate__media .vid-toggle { display: none; }
.theme-v3 .plate figcaption { display: grid; gap: 4px; }
.theme-v3 .plate .pl { display: none; }
.theme-v3 .plate .caption { font-size: var(--fs-small); color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.theme-v3 .cls-plate .plate__media { aspect-ratio: 21 / 9; }
.theme-v3 .auth__plate { max-width: 460px; }
.theme-v3 .auth__plate .plate__media { aspect-ratio: 4 / 3; border-radius: 50% / 38%; }
.theme-v3 .s-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 780px; }
.theme-v3 .section--roomy { padding-block: var(--section); }
.theme-v3 .faq summary:has(.pm)::after { display: none; }
.theme-v3 .faq summary .pm { flex: none; }
.theme-v3 .faq .answer p { padding: 0 0 24px; max-width: 64ch; color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .theme-v3 .faq details[open] .answer { animation: v3-faq .7s var(--ease-warm); } }
.theme-v3 .closing {
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 176px);
  background: radial-gradient(55% 70% at 80% 40%, rgb(var(--dusk-rgb) / .75), transparent 72%), radial-gradient(40% 60% at 15% 80%, rgba(var(--candle-glow) / .1), transparent 70%), var(--night);
}
.theme-v3 .closing__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.theme-v3 .closing__side { display: grid; gap: 20px; justify-items: start; }
.theme-v3 .closing__side p { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--text); max-width: 36ch; }
.theme-v3 .btn-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (max-width: 860px) { .theme-v3 .closing__grid { grid-template-columns: minmax(0, 1fr); } }
.theme-v3 .book-grid .cls-summary .cls-when { font-size: clamp(1.4rem, 1.8vw, 1.7rem); }

/* ---------- control rows: shared height (--ctl-h) ---------- */
.theme-v3 .filters .field .select { height: var(--ctl-h); min-height: var(--ctl-h); padding-block: 0; }
.theme-v3 .pause-form { align-items: center; }
.theme-v3 .pause-form select, .theme-v3 .pause-form .btn { height: var(--ctl-h); min-height: var(--ctl-h); padding-block: 0; }
.theme-v3 .pause-form .btn:not(:has(> .btn__ic)) { padding-inline: 20px; }
