/*
 * Business pages (D-078): the shared base every design builds on.
 * Colours come ONLY from the tokens Palette prints on :root, so a business's
 * colour choice (contrast-guarded) reaches every element. Designs restyle
 * in designs/<key>/style.css. Mobile first; logical properties so Arabic
 * (dir=rtl) mirrors without a separate sheet.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the sticky bar on phones */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-edge); outline-offset: 3px; border-radius: 4px; }

.pg-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.pg-narrow { width: min(760px, 100% - 32px); }
.pg-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; }
.pg-skip:focus { top: 8px; }

/* ---------- type ---------- */
.pg-h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 8vw, 5.2rem); line-height: 1.02; letter-spacing: -.01em; font-weight: 700; overflow-wrap: anywhere; }
.pg-h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4.6vw, 2.8rem); line-height: 1.1; font-weight: 600; margin-bottom: 26px; }
.pg-h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 26px 0 10px; color: var(--accent-text); }
.pg-kicker, .pg-eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-bottom: 12px; }
.pg-tagline { font-size: clamp(1.05rem, 2.6vw, 1.3rem); margin-top: 14px; max-width: 34ch; opacity: .92; }
.pg-prose { color: var(--ink); max-width: 64ch; }
.pg-empty { color: var(--muted); }

/* ---------- buttons ---------- */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent-edge);
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, filter .18s ease;
}
@media (hover: hover) and (pointer: fine) { .pg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); } }
.pg-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.pg-btn-sm { min-height: 38px; padding: 0 16px; font-size: .85rem; }
.pg-btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.pg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* A long translation wraps inside its pill rather than running off a phone screen
   (Turkish "Book in Telegram" needs 320px in the widest designs). */
.pg-ctas .pg-btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
.pg-ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-inline-end: .2em; }

/* ---------- nav ---------- */
.pg-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.pg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1; }
.pg-logo { max-height: 42px; width: auto; }
.pg-monogram { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.pg-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-links { display: none; gap: 26px; font-size: .9rem; }
.pg-links a { text-decoration: none; opacity: .85; }
.pg-links a:hover { opacity: 1; color: var(--accent-text); }
.pg-nav-end { display: flex; align-items: center; gap: 10px; flex: none; }
@media (min-width: 900px) { .pg-links { display: flex; } .pg-brand { flex: 0 1 auto; } .pg-nav { justify-content: space-between; } }

/* language menu */
.pg-lang { position: relative; font-size: .82rem; }
.pg-lang > summary { list-style: none; display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; letter-spacing: .06em; }
.pg-lang > summary::-webkit-details-marker { display: none; }
.pg-lang[open] .langpick-chev { transform: rotate(180deg); }
.pg-lang .langpick-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 170px; max-height: 60vh; overflow: auto; background: #fff; color: #1d1b22; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 6px; z-index: 40; }
.pg-lang .langpick-item { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.pg-lang .langpick-item:hover { background: #f2f0f5; }
.pg-lang .langpick-item.on { font-weight: 700; background: #efedf3; }

/* ---------- hero ---------- */
.pg-hero { position: relative; }
.pg-slides { position: relative; overflow: hidden; }
.pg-slide { width: 100%; height: 100%; object-fit: cover; }
.pg-slide:not(:first-child) { position: absolute; inset: 0; }
.pg-slide { opacity: 0; transition: opacity 1.1s ease; }
.pg-slide.on { opacity: 1; }
.pg-dots { position: absolute; bottom: 16px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
[dir="rtl"] .pg-dots { transform: translateX(50%); }
.pg-dot { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background-color: rgba(255,255,255,.45); cursor: pointer; }
.pg-dot.on { background-color: #fff; }
/* the tap target is taller than the bar it draws */
.pg-dot { background-clip: content-box; padding-block: 10px; height: 24px; }

.pg-hero-full { min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; }
.pg-hero-full .pg-slides { position: absolute; inset: 0; }
.pg-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.72) 100%); z-index: 1; }
.pg-hero-full .pg-hero-text { position: relative; z-index: 2; width: min(1160px, 100% - 32px); margin: 0 auto; padding: 120px 0 64px; }
.pg-hero-full .pg-eyebrow { color: #fff; opacity: .85; }
.pg-hero-full .pg-btn-ghost { color: #fff; }

.pg-hero-split { display: grid; gap: 0; }
.pg-hero-split .pg-hero-media { order: -1; }
.pg-hero-split .pg-slides { aspect-ratio: 4 / 3; }
.pg-hero-split .pg-hero-text { padding: 34px 16px 48px; }
@media (min-width: 900px) {
  .pg-hero-split { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: min(82vh, 780px); }
  .pg-hero-split .pg-hero-media { order: 0; height: 100%; }
  .pg-hero-split .pg-slides { aspect-ratio: auto; height: 100%; min-height: 520px; }
  .pg-hero-split .pg-hero-text { padding: 64px max(40px, calc((100vw - 1160px) / 2)); padding-inline-end: 56px; }
}

.pg-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .88rem; font-weight: 600; }
.pg-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; }
.pg-status.is-open .pg-status-dot { background: #2fbf71; box-shadow: 0 0 0 4px rgba(47,191,113,.2); }

/* ---------- sections ---------- */
.pg-sec { padding: 72px 0; }
@media (min-width: 900px) { .pg-sec { padding: 104px 0; } }

.pg-facts ul { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: -1px; }
.pg-facts li { background: var(--surface); padding: 16px 18px; display: grid; gap: 2px; }
.pg-fact-k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pg-fact-v { font-weight: 600; text-decoration: none; }
a.pg-fact-v { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.pg-facts-strip { padding: 22px 0 0; }
@media (min-width: 760px) { .pg-facts ul { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }

.pg-about-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .pg-about.has-photo .pg-about-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.pg-about-photo img { width: 100%; border-radius: 18px; }

/* services: every variant shares the button; variants restyle it */
.pg-svc-group + .pg-svc-group { margin-top: 18px; }
.pg-svc-list { display: grid; gap: 10px; }
.pg-svc {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: start;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .18s, transform .18s;
}
@media (hover: hover) and (pointer: fine) { .pg-svc:hover { border-color: var(--accent-edge); transform: translateY(-1px); } }
.pg-svc-main { display: grid; gap: 2px; min-width: 0; }
.pg-svc-name { font-weight: 600; overflow-wrap: anywhere; }
.pg-svc-meta { font-size: .84rem; color: var(--muted); }
.pg-svc-lead { flex: 1; }
.pg-svc-price { font-weight: 700; white-space: nowrap; color: var(--accent-text); }
.pg-svc-price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.pg-svc-go { color: var(--accent-text); font-weight: 700; }
[dir="rtl"] .pg-svc-go { transform: scaleX(-1); }
.pg-branches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pg-branches a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.pg-branches a.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent-edge); }

.pg-services-cards .pg-svc-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pg-services-cards .pg-svc { flex-wrap: wrap; align-items: flex-start; min-height: 116px; }
.pg-services-cards .pg-svc-lead { display: none; }
.pg-services-cards .pg-svc-price { width: 100%; margin-top: auto; }

/* team */
.pg-team-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pg-member { text-align: center; }
.pg-member-photo { width: 148px; height: 148px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; }
.pg-member-initial { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: 3rem; color: var(--accent-text); }
.pg-member-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.pg-member-bio { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.pg-team-portrait .pg-member { text-align: start; }
.pg-team-portrait .pg-member-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 180px 180px 14px 14px; margin: 0 0 14px; }
.pg-team-portrait .pg-team-grid { grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 22px 14px; }
.pg-team-portrait .pg-member-initial { font-size: 3rem; }

/* gallery */
.pg-masonry { columns: 2 150px; column-gap: 12px; }
@media (min-width: 900px) { .pg-masonry { columns: 3 260px; column-gap: 16px; } }
.pg-masonry li { break-inside: avoid; margin-bottom: 12px; }
.pg-masonry img { width: 100%; border-radius: 12px; }

/* faq */
.pg-qa { border-bottom: 1px solid var(--line); }
.pg-qa summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
[dir="rtl"] .pg-qa summary { padding: 20px 0 20px 36px; }
.pg-qa summary::-webkit-details-marker { display: none; }
.pg-qa summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 16px; font-size: 1.5rem; color: var(--accent-text); transition: transform .2s; }
.pg-qa[open] summary::after { transform: rotate(45deg); }
.pg-qa .pg-prose { padding: 0 0 20px; color: var(--muted); }

/* contact */
.pg-contact-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .pg-contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; } }
.pg-address { font-size: 1.1rem; font-weight: 600; }
.pg-directions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.pg-directions a { font-size: .84rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pg-hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.pg-hours caption { text-align: start; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-bottom: 8px; }
.pg-hours th, .pg-hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 500; }
.pg-hours td { text-align: end; font-variant-numeric: tabular-nums; }
.pg-hours tr.is-today th, .pg-hours tr.is-today td { font-weight: 800; color: var(--accent-text); }
.pg-reach { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pg-reach a { font-weight: 600; text-underline-offset: 3px; }
.pg-map { min-height: 300px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.pg-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-map-load {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-content: center; gap: 8px; text-align: center; font-weight: 700;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--surface);
}
.pg-map-load small { font-weight: 400; color: var(--muted); max-width: 30ch; }
.pg-map-pin { width: 34px; height: 34px; margin: 0 auto; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* footer */
.pg-foot { padding: 48px 16px; text-align: center; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.pg-foot-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.pg-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.pg-social a { text-underline-offset: 3px; }
.pg-powered { font-size: .8rem; color: var(--muted); }

/* sticky booking bar (phones) */
.pg-sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25; display: flex; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease;
}
.pg-sticky.on { transform: none; }
.pg-sticky .pg-btn { flex: 1; }
@media (min-width: 900px) { .pg-sticky { display: none; } body { padding-bottom: 0; } }

/* entrance: one orchestrated reveal of the hero words, nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .pg-hero-text > * { animation: pg-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .pg-hero-text > :nth-child(2) { animation-delay: .08s; }
  .pg-hero-text > :nth-child(3) { animation-delay: .16s; }
  .pg-hero-text > :nth-child(4) { animation-delay: .24s; }
  .pg-hero-text > :nth-child(5) { animation-delay: .32s; }
}
@keyframes pg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- booking sheet (always a light panel, readable on any design) ---------- */
.pb-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(12,10,16,.55); display: flex; align-items: flex-end; justify-content: center; }
.pb-sheet[hidden] { display: none !important; }
.pb-panel { background: #fff; color: #1d1b22; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); font-family: var(--font-body); }
@media (min-width: 640px) { .pb-sheet { align-items: center; } .pb-panel { border-radius: 22px; } }
.pb-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pb-panel-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.pb-close { background: none; border: none; font-size: 28px; line-height: 1; color: #6b6675; cursor: pointer; padding: 4px 8px; }
.pb-chosen { background: #f5f3f8; border-radius: 10px; padding: 10px 12px; font-weight: 600; margin-bottom: 16px; }
.pb-chosen:empty { display: none; }
.pb-field { margin-bottom: 15px; }
.pb-field label { display: block; font-size: 13px; color: #5d5868; margin-bottom: 6px; }
.pb-field input, .pb-field select, .pb-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #ddd8e6; border-radius: 11px; font: inherit; font-size: 16px; background: #fff; color: #1d1b22; }
.pb-field input:focus, .pb-field select:focus, .pb-field textarea:focus { outline: none; border-color: #1d1b22; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.pb-slots { display: flex; flex-wrap: wrap; gap: 8px; max-height: 176px; overflow-y: auto; }
.pb-hint { font-size: 13.5px; color: #6b6675; }
.pb-slot { padding: 9px 13px; border: 1px solid #ddd8e6; border-radius: 10px; background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.pb-slot.on { background: #1d1b22; border-color: #1d1b22; color: #fff; font-weight: 700; }
.pb-error { background: #fdecec; color: #9b1c1c; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.pb-cta { width: 100%; }
.pb-cta:disabled { opacity: .6; cursor: default; }
.pb-terms { margin-top: 12px; text-align: center; font-size: 11.5px; color: #8a8494; line-height: 1.6; }
.pb-deposit { border: 1px solid #e7e2ef; border-radius: 12px; padding: 12px 14px; }
.pb-deposit-title { display: block; font-size: 13px; color: #5d5868; margin-bottom: 8px; }
.pb-deposit-note { margin: 0; font-size: 14px; line-height: 1.45; }
.pb-field label.pb-choice { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: inherit; margin: 0 0 8px; cursor: pointer; }
.pb-field .pb-choice input { width: auto; margin: 3px 0 0; flex: none; }
.pb-bill-pop { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: rgba(12,10,16,.55); display: grid; place-items: center; padding: 16px; }
.pb-bill-pop:not([open]) { display: none; }
.pb-bill-card { background: #fff; color: #1f1b2b; border-radius: 16px; padding: 22px; max-width: 400px; width: 100%; }
.pb-bill-card h2 { font-size: 19px; margin: 0 0 10px; }
.pb-bill-card p { margin: 0 0 16px; line-height: 1.5; }

/* Arabic is a joined script: letter-spacing breaks the joins and swallows the
   gap between words, so no design may space its letters in RTL (D-078). */
[dir="rtl"] body * { letter-spacing: 0 !important; }

/* departments (services) and before/after pairs (gallery), slice 3 */
.pg-depts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pg-dept { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 10px; }
.pg-dept .pg-h3 { margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pg-dept-n { font-size: .75rem; min-width: 26px; height: 26px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-body); }
.pg-dept .pg-svc-list { gap: 0; }
.pg-dept .pg-svc { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 2px; }
@media (hover: hover) and (pointer: fine) { .pg-dept .pg-svc:hover { transform: none; color: var(--accent-text); } }
.pg-pairs { display: grid; gap: 22px; }
@media (min-width: 900px) { .pg-pairs { grid-template-columns: 1fr 1fr; } }
.pg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pg-pair.is-single { grid-template-columns: 1fr; }
.pg-pair figure { position: relative; margin: 0; }
.pg-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pg-pair figcaption { position: absolute; top: 10px; inset-inline-start: 10px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }

/* Phones: the top bar keeps the business name readable. Booking stays one
   tap away through the hero's own button and the sticky bar below it. */
@media (max-width: 599px) { .pg-nav-end .pg-btn-sm { display: none; } }

/* group classes (D-102 slice 1c, premium pass 2026-10-14): calendar day chips, one card per class with the time in
   the design's display face, an instructor badge, a seat meter and a Book / Waitlist pill. Colours are the design's
   own tokens only. Readability (measured over all 17 designs): accent and muted dip to ~4.2:1 on the card, so small
   text uses the ink colour and accent appears only on large text, fills and decoration. */
.pg-cls-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.pg-cls-head .pg-h2 { margin-bottom: 0; }
.pg-cls-head .pg-kicker { margin-bottom: 4px; }
.pg-cls-badge {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent);
}
.pg-cls-days { display: flex; gap: 10px; overflow-x: auto; padding: 10px 8px 26px; margin: -10px -8px -2px; scrollbar-width: none; }
.pg-cls-days::-webkit-scrollbar { display: none; }
.pg-cls-days[hidden] { display: none; }
.pg-cls-days button {
  flex: 0 0 auto; position: relative; display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 10px 12px 12px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pg-cls-wd { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pg-cls-num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.pg-cls-count {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: .68rem; font-weight: 700; background: var(--ink); color: var(--bg); border: 2px solid var(--bg);
}
.pg-cls-days button[aria-selected="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent-edge); box-shadow: 0 12px 26px -14px var(--accent);
}
@media (hover: hover) and (pointer: fine) { .pg-cls-days button:hover { transform: translateY(-2px); border-color: var(--accent-edge); } }
.pg-cls-days button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.pg-classes.has-tabs .pg-cls-date { display: none; }
.pg-cls-day + .pg-cls-day { margin-top: 22px; }
.pg-cls-list { display: grid; gap: 12px; }
.pg-cls-card {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; text-align: start;
  padding: 18px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; cursor: pointer;
  font: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 30px -22px rgba(0,0,0,.35);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .pg-cls-card:hover { transform: translateY(-2px); border-color: var(--accent-edge); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 22px 40px -24px rgba(0,0,0,.45); }
  .pg-cls-card:hover .pg-cls-cta { transform: translateX(2px); }
}
.pg-cls-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.pg-cls-when { display: grid; justify-items: center; gap: 4px; min-width: 84px; padding-inline-end: 18px; border-inline-end: 1px solid var(--line); }
.pg-cls-time { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.pg-cls-len, .pg-cls-left, .pg-cls-who { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink); }
.pg-cls-len svg, .pg-cls-left svg { width: 14px; height: 14px; color: var(--accent-text); flex: 0 0 auto; }
.pg-cls-body { display: grid; gap: 7px; min-width: 0; }
.pg-cls-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.pg-cls-ava {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent); color: var(--on-accent); font-size: .62rem; font-weight: 700; letter-spacing: .02em;
}
.pg-cls-seats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pg-cls-dots { display: inline-flex; flex-wrap: wrap; gap: 4px; }
/* Seat meter (non-text, needs 3:1 on the card): the pale accents of light designs fade to ~1.5:1, so free seats are
   outlined in --muted and taken seats filled with --accent-text (both measured >= 4.2:1 on the card). */
.pg-cls-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; }
.pg-cls-dots i.on { background: var(--accent-text); border-color: var(--accent-text); }
.pg-cls-bar { display: block; width: 88px; height: 6px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--muted); overflow: hidden; }
.pg-cls-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-text); }
.pg-cls-card.is-few .pg-cls-left { font-weight: 700; }
.pg-cls-end { display: grid; justify-items: end; gap: 10px; }
.pg-cls-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.pg-cls-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent-edge); font-size: .9rem; font-weight: 700; white-space: nowrap;
  transition: transform .2s;
}
.pg-cls-card.is-full .pg-cls-cta { background: transparent; color: var(--ink); border-color: var(--ink); }
.pg-cls-card.is-full .pg-cls-time, .pg-cls-card.is-full .pg-cls-name { opacity: .72; }
.pg-cls-note { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.pb-class-wait { margin: -6px 0 14px; font-size: .9rem; color: #5d5868; }
@media (max-width: 560px) {
  /* Phone: time column on the left, details on the right, price and the pill on one row underneath. */
  .pg-cls-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "when body" "end end"; gap: 14px 16px; padding: 16px; }
  .pg-cls-when { grid-area: when; min-width: 70px; padding-inline-end: 14px; align-self: start; }
  .pg-cls-time { font-size: 1.5rem; }
  .pg-cls-body { grid-area: body; }
  .pg-cls-end { grid-area: end; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
  .pg-cls-end .pg-cls-cta:only-child { margin-inline-start: auto; }
  .pg-cls-head { gap: 12px; }
  .pg-cls-badge { width: 44px; height: 44px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pg-cls-card, .pg-cls-days button, .pg-cls-cta { transition: none; } }
