/* Vedhanga learning portal (LMS Step B). Colours are the Android app's tokens (lib/app/theme/app_colors.dart): warm
   ivory ground, white surfaces, deep saffron actions, antique gold accents and the soft astrology / aura tints.
   Fonts are the website's own self-hosted files (/fonts). Light identity by design, colours set explicitly. */

@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  color-scheme: light;
  /* Phase 3.1 (2026-11-18) ONE theme for website + portal: the website's W1 tokens (src/app/globals.css), which carry the VG app
     hues (lib/app/theme/app_colors.dart: violet, indigo, teal, gold, saffron + the soft service tints). Names kept, values re-pointed. */
  --ivory: #fffdf8; --surface: #ffffff; --parchment: #f4f1fa; --hairline: #e7e1f1; --outline: #cfc5e3;
  --ink: #1f1b2e; --ink-muted: #514c66; --gold: #c9a24a; --gold-deep: #7d5e16; --gold-soft: #f6ead0;
  --saffron: #d9761f; --saffron-deep: #9b4d0b; --saffron-soft: #fbe3cc; --on-saffron-soft: #4a2706; --saffron-pale: #fff4e8;
  --indigo: #3b3c78; --astro-tint: #fce4c8; --lavender-soft: #f2eafb; --violet: #6b3fb0; --sky-soft: #e6eff9;
  --sage: #4e6b4d; --sage-soft: #e5f2ee; --rose-soft: #f9e8ec; --error: #9b1c1c; --error-soft: #fdecec; --focus: #1d4ed8;
  --night: #2a1450; --primary: #4e2a84; --blue: #1f5fbf; --teal: #0e7c78; --teal-soft: #dcefec; --on-night: #fbf7ef; --on-night-muted: #d9cdea;
  --grad-night: radial-gradient(80% 90% at 88% 12%, #4b5bd6 0%, #4e2a84 42%, #2a1450 85%);
  --grad-band: linear-gradient(120deg, #f2eafb 0%, #e6eff9 55%, #dcefec 100%);
  --shadow: 0 1px 2px rgba(42, 20, 80, .06), 0 10px 30px rgba(42, 20, 80, .08);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  --radius: 18px; --gutter: max(16px, env(safe-area-inset-left, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--saffron-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 .8em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { padding-block: 24px 56px; max-width: 1180px; }
main.wrap.wide { max-width: 1180px; }

/* ---------- header: original emblem on a white plate + original gold wordmark ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--hairline); box-shadow: 0 1px 0 rgba(176, 141, 62, .25); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 72px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 0 1 auto; }
.plate { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(42, 33, 26, .18), 0 0 0 1px var(--hairline); }
.plate img { display: block; border-radius: 50%; }
.brand-emblem { width: 52px; height: 52px; }
.brand-emblem img { width: 46px; height: 46px; }
.brand-wordmark { display: block; width: 176px; height: auto; min-width: 0; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul, .mnav ul { list-style: none; margin: 0; padding: 0; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { background: var(--saffron-pale); color: var(--saffron-deep); }
.main-nav a[aria-current] { color: var(--saffron-deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 12px 12px 4px 4px; }
.site-header .account-btn { display: none; }
.mnav { margin-left: auto; position: relative; }
.mnav summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--outline); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--surface); }
.mnav summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(42, 33, 26, .16); padding: 8px; }
.mnav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mnav a:hover, .mnav a[aria-current] { background: var(--saffron-pale); color: var(--saffron-deep); }
@media (min-width: 640px) { .site-header .account-btn { display: inline-flex; margin-left: auto; } .mnav { margin-left: 0; } }
@media (min-width: 1040px) { .main-nav { display: block; } .mnav { display: none; } .site-header .account-btn { margin-left: 8px; } }
@media (max-width: 400px) { .brand-emblem { width: 44px; height: 44px; } .brand-emblem img { width: 38px; height: 38px; } .brand-wordmark { width: 132px; } .bar { gap: 8px; } .mnav summary span:last-child { display: none; } }

/* ---------- buttons, badges, cards ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--saffron-deep); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #8a440b; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-soft { background: var(--saffron-soft); color: var(--on-saffron-soft); }
.btn-soft:hover { background: #f7d8b6; }
.btn-ghost { background: transparent; color: var(--saffron-deep); border: 1px solid var(--outline); }
.btn-ghost:hover { background: var(--saffron-pale); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.badge-free { background: var(--sage-soft); color: #33502f; }
.badge-open { background: var(--saffron-soft); color: var(--on-saffron-soft); }
.badge-on { background: var(--lavender-soft); color: var(--violet); }
.badge-done { background: var(--gold-soft); color: #3d2e0c; }
.badge-soon { background: var(--sky-soft); color: #234466; }
.badge-closed { background: var(--parchment); color: var(--ink-muted); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 10px rgba(42, 33, 26, .05); margin-bottom: 18px; min-width: 0; }
.card.narrow { max-width: 520px; margin-inline: auto; }
.center { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.grid .card { margin: 0; display: flex; flex-direction: column; }
.grid .card > p:last-child { margin-top: auto; margin-bottom: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .5em; }
.code { font-size: .92rem; color: var(--ink-muted); letter-spacing: .04em; }
.lead { font-size: 1.12rem; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.hint { font-size: .92rem; color: var(--ink-muted); }
.note { background: var(--sky-soft); border-radius: 12px; padding: 10px 14px; }
.flash, .ok { background: var(--sage-soft); color: #2c4a29; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.error { background: var(--error-soft); color: var(--error); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.field-error { color: var(--error); font-size: .92rem; font-weight: 600; margin: -4px 0 10px; }
.crumbs { font-size: .95rem; color: var(--ink-muted); margin-bottom: 12px; }
.facts { display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 12px 0 16px; }
.facts div { min-width: 0; }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.facts.compact { grid-template-columns: 1fr; gap: 6px; }

/* ---------- heroes: the app's soft gradients ---------- */
.hero { border-radius: 24px; padding: clamp(22px, 4vw, 40px); margin-bottom: 22px; border: 1px solid var(--hairline); }
.hero-courses { background: linear-gradient(135deg, var(--astro-tint), var(--lavender-soft)); }
.hero-course { background: linear-gradient(135deg, var(--saffron-pale), var(--astro-tint)); }
.hero-my { background: linear-gradient(135deg, var(--gold-soft), var(--sky-soft)); }
/* Premium W2: My Learning banner VG-IMG-117 (served by the website at /images/premium/; same origin, CSP img-src 'self').
   Calm ivory left side carries the text; phones get a stronger scrim. Without the image the gradient above remains. */
.hero-my {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, .94), rgba(255, 252, 245, .82)),
    url(/images/premium/vg-img-117-my-learning-768.webp) 78% 50% / cover no-repeat,
    linear-gradient(135deg, var(--gold-soft), var(--sky-soft));
  background:
    linear-gradient(180deg, rgba(255, 252, 245, .94), rgba(255, 252, 245, .82)),
    image-set(url(/images/premium/vg-img-117-my-learning-768.avif) type("image/avif"), url(/images/premium/vg-img-117-my-learning-768.webp) type("image/webp")) 78% 50% / cover no-repeat,
    linear-gradient(135deg, var(--gold-soft), var(--sky-soft));
}
@media (min-width: 768px) {
  .hero-my {
    min-height: 300px;
    background:
      linear-gradient(90deg, rgba(255, 252, 245, .97) 0%, rgba(255, 252, 245, .9) 50%, rgba(255, 252, 245, 0) 78%),
      url(/images/premium/vg-img-117-my-learning-1440.webp) 70% 50% / cover no-repeat,
      linear-gradient(135deg, var(--gold-soft), var(--sky-soft));
    background:
      linear-gradient(90deg, rgba(255, 252, 245, .97) 0%, rgba(255, 252, 245, .9) 50%, rgba(255, 252, 245, 0) 78%),
      image-set(url(/images/premium/vg-img-117-my-learning-1440.avif) type("image/avif"), url(/images/premium/vg-img-117-my-learning-1440.webp) type("image/webp")) 70% 50% / cover no-repeat,
      linear-gradient(135deg, var(--gold-soft), var(--sky-soft));
  }
  .hero-my > * { max-width: 48%; }
}
.hero-batch { background: linear-gradient(135deg, var(--lavender-soft), var(--saffron-pale)); }
.hero-account { background: linear-gradient(135deg, var(--rose-soft), var(--lavender-soft)); }
.my-wordmark { display: block; width: min(300px, 100%); margin-bottom: 14px; }
.course { margin-bottom: 30px; }
.course-head { margin-bottom: 14px; }
.enrol-box { border-top: 1px solid var(--hairline); padding-top: 16px; }
.confirm p { background: var(--saffron-pale); border-radius: 12px; padding: 12px 14px; }
.inline { display: inline; }
.more-classes { margin-top: 12px; }
.more-classes summary { cursor: pointer; font-weight: 700; color: var(--saffron-deep); min-height: 44px; display: flex; align-items: center; }

/* ---------- sign in / create account ---------- */
.auth { max-width: 460px; margin: 8px auto 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(22px, 5vw, 36px); box-shadow: 0 10px 30px rgba(42, 33, 26, .08); text-align: center; }
.auth .form, .auth .error, .auth .ok, .auth .note { text-align: left; }
.auth-emblem { width: 132px; height: 132px; margin: 0 auto 14px; display: grid; }
.auth-emblem img { width: 120px; height: 120px; }
.form { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.form label { font-weight: 600; margin-top: 8px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=password] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--outline); border-radius: 12px; font: inherit; background: var(--ivory); color: var(--ink); }
.form input[aria-invalid=true] { border-color: var(--error); }
.form .btn { margin-top: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--saffron-deep); }
.auth-links { margin-top: 16px; font-size: .98rem; }

/* ---------- schedule table (stacks on phones) ---------- */
.table-wrap { overflow-x: auto; }
.sessions { width: 100%; border-collapse: collapse; }
.sessions th, .sessions td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.sessions th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.sessions tr.cancelled td { color: var(--ink-muted); text-decoration: line-through; }
.sessions tr.cancelled td[data-label=Status] { text-decoration: none; }
@media (max-width: 640px) {
  .sessions thead { display: none; }
  .sessions tr { display: block; border: 1px solid var(--hairline); border-radius: 14px; padding: 6px 4px; margin-bottom: 10px; }
  .sessions td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; border: 0; padding: 6px 10px; }
  .sessions td::before { content: attr(data-label); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
}
.materials { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.materials li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--ivory); }
.doc-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--rose-soft); color: #8a2a3d; font-size: .75rem; font-weight: 800; }
.doc-title { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }

/* ---------- reader ---------- */
.viewer-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.viewer { background: var(--parchment); border-radius: var(--radius); padding: 12px; user-select: none; -webkit-user-select: none; }
.viewer-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* CONSOLIDATED-UX P3: reader toolbar, zoomable pages, full screen */
.viewer-pages { overflow: auto; max-height: calc(100vh - 160px); padding: 4px; touch-action: pan-x pan-y; }
.viewer-pages .page-slot { flex: 0 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(42, 33, 26, .15); }
.viewer-pages canvas.page { display: block; width: 100%; height: 100%; }
.reader-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; background: var(--surface, #fff); border: 1px solid var(--hairline, #e7e1f1); border-radius: 999px; padding: 6px 10px; margin: 0 auto 12px; width: fit-content; max-width: 100%; box-shadow: 0 2px 8px rgba(42, 20, 80, .08); }
.rd-group { display: inline-flex; align-items: center; gap: 4px; }
.rd-btn { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: var(--lavender-soft, #f2eafb); color: var(--violet, #4e2a84); font: inherit; font-weight: 700; cursor: pointer; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; }
.rd-btn:hover { background: #e7dbf8; }
.rd-btn:disabled { opacity: .4; cursor: default; }
.rd-btn[aria-pressed="true"] { background: var(--violet, #4e2a84); color: #fff; }
.rd-btn:focus-visible { outline: 3px solid var(--gold, #c9a24a); outline-offset: 2px; }
.rd-page, .rd-level { min-width: 4.5em; text-align: center; font-weight: 600; color: var(--ink, #1f1b2e); }
.viewer.is-full { background: #1f1b2e; padding: 10px; border-radius: 0; }
.viewer.is-full .viewer-pages { max-height: calc(100vh - 80px); }
@media (max-width: 560px) { .rd-label { display: none; } .reader-bar { border-radius: 18px; } }
.viewer-status { text-align: center; color: var(--ink-muted); }
.print-note { display: none; }
@media print { .viewer, .site-header, .site-footer { display: none !important; } .print-note { display: block; } }

/* ---------- footer: original gold wordmark ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); margin-top: 24px; }
.foot { display: grid; gap: 18px; padding-block: 32px 28px; grid-template-columns: 1fr; }
.foot-wordmark { width: min(220px, 100%); display: block; margin-bottom: 8px; }
.foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); }
.foot-note { font-size: .9rem; color: var(--ink-muted); }
@media (min-width: 800px) { .foot { grid-template-columns: 1fr 1.4fr; } .foot-note { grid-column: 1 / -1; } }

/* ---------- syllabus: weekly sections and class cards (Step B extension) ---------- */
.syllabus-h { margin-top: 26px; }
.week { margin-bottom: 18px; }
.week-h { font-family: var(--sans); font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); border-bottom: 1px solid var(--outline); padding-bottom: 6px; margin-bottom: 12px; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.class-card { background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--saffron); border-radius: 16px; padding: 16px 18px; min-width: 0; box-shadow: 0 2px 10px rgba(42, 33, 26, .05); }
.class-card.state-completed { border-left-color: var(--gold); }
.class-card.state-cancelled { border-left-color: var(--outline); opacity: .8; }
.class-card.state-unscheduled { border-left-color: #8fb3d9; }
.class-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.class-no { font-weight: 800; font-size: .85rem; letter-spacing: .08em; color: var(--indigo); }
.class-card h3 { font-size: 1.35rem; margin-bottom: .2em; overflow-wrap: anywhere; }
.class-card .kn { font-family: 'Noto Sans Kannada', 'Tunga', var(--sans); color: var(--ink-muted); margin-bottom: .4em; }
.class-card .desc { color: var(--ink-muted); font-size: .98rem; }
.class-card .when { font-weight: 600; font-size: .95rem; }
.res { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.res li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.res li.locked { display: block; color: var(--ink-muted); font-size: .92rem; background: var(--parchment); border-radius: 10px; padding: 8px 10px; }
.lock { display: inline-block; vertical-align: -1px; width: 10px; height: 8px; border: 2px solid currentColor; border-radius: 2px; position: relative; margin: 0 8px 0 2px; }
.lock::before { content: ''; position: absolute; left: 0; top: -7px; width: 6px; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.rec-note { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--ink-muted); }
.progress { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-muted); }
.progress .bar { flex: 0 0 110px; height: 8px; border-radius: 99px; background: var(--parchment); overflow: hidden; }
.progress .fill { display: block; height: 100%; background: var(--saffron); width: 0; }
.fill.w1 { width: 10%; } .fill.w2 { width: 20%; } .fill.w3 { width: 30%; } .fill.w4 { width: 40%; } .fill.w5 { width: 50%; }
.fill.w6 { width: 60%; } .fill.w7 { width: 70%; } .fill.w8 { width: 80%; } .fill.w9 { width: 90%; } .fill.w10 { width: 100%; }

.narrow-form { max-width: 420px; }

/* Phase 3.1 (2026-11-18): structured course summary (About this course) */
.course-about h3 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; color: var(--ink); }
.course-about h3:first-of-type { margin-top: .6rem; }
.course-about p, .course-about li { color: var(--ink-muted); max-width: 70ch; }
.summary-list { margin: .3rem 0 .6rem; padding-left: 1.2rem; display: grid; gap: .35rem; }


/* =====================================================================================================================
   Phase 3.1 (2026-11-18) unified premium theme: same palette, type scale and components as the website.
   Contrast (WCAG AA): ink on ivory 16.4:1; muted 8.0:1; violet #4e2a84 on white 10.3:1; night text on saffron 4.9:1;
   on-night on night 15.6:1; teal #0e7c78 on white 5.0:1; blue #1f5fbf on white 6.0:1.
   ================================================================================================================== */
body { line-height: 1.65; }
a { color: var(--primary); }
a:hover { color: var(--saffron-deep); }
h1, h2, h3, h4 { color: var(--primary); letter-spacing: -.005em; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 .3em; }
.lead { color: var(--ink-muted); line-height: 1.7; max-width: 68ch; }
.eyebrow { color: var(--saffron-deep); }
/* header + nav */
.site-header { box-shadow: 0 1px 0 rgba(201, 162, 74, .35); }
.main-nav a:hover, .mnav a:hover, .mnav a[aria-current] { background: var(--lavender-soft); color: var(--primary); }
.main-nav a[aria-current] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--saffron); }
/* buttons = website: primary saffron with night text; soft = violet outline */
.btn { background: var(--saffron); color: var(--night); font-weight: 700; box-shadow: 0 6px 16px rgba(217, 118, 31, .25); transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: #e8913f; color: var(--night); transform: translateY(-1px); }
.btn-soft { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.btn-soft:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--primary); border-color: var(--outline); box-shadow: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.06rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
/* badges */
.badge-free { background: var(--teal-soft); color: #0b5753; }
.badge-open { background: var(--saffron-soft); color: var(--on-saffron-soft); }
.badge-on { background: var(--lavender-soft); color: var(--primary); }
/* cards: white, soft violet shadow */
.card { border-color: var(--hairline); box-shadow: var(--shadow); position: relative; }
/* heroes: the website's night-violet gradient (white text) for courses / course / batch / account; My Learning keeps VG-IMG-117 */
.hero-courses, .hero-course, .hero-batch, .hero-account { background: var(--grad-night); border: 0; color: var(--on-night); position: relative; overflow: hidden; }
.hero-courses::after, .hero-course::after, .hero-batch::after, .hero-account::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(201, 162, 74, .35); box-shadow: 0 0 0 40px rgba(201, 162, 74, .06), 0 0 0 90px rgba(201, 162, 74, .04); pointer-events: none; }
.hero-courses h1, .hero-course h1, .hero-batch h1, .hero-account h1 { color: var(--on-night); }
.hero-courses .lead, .hero-course .lead, .hero-batch .lead, .hero-account .lead, .hero-batch .code { color: var(--on-night-muted); }
.hero-courses .eyebrow, .hero-course .eyebrow, .hero-batch .eyebrow, .hero-account .eyebrow { color: var(--gold); }
.hero-courses a, .hero-course a, .hero-batch a, .hero-account a { color: var(--on-night); }
.hero-my h1 { color: var(--primary); }
.crumbs a { color: var(--primary); }
/* fact chips in heroes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: var(--on-night); font-weight: 600; font-size: .95rem; }
.chips li.chip-free { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- catalogue (Courses) ---------- */
.course-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); margin-bottom: 28px; overflow: hidden; position: relative; }
.course-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--saffron), var(--gold), var(--violet), var(--blue), var(--teal)); }
.course-card .course-lead { color: var(--ink-muted); max-width: 72ch; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .more { font-weight: 700; }
.course-card .grid { margin-top: 18px; }
.batch-card { background: var(--grad-band); border: 1px solid var(--hairline); }

/* ---------- course detail: two columns from 1000 px, enrol card first on phones ---------- */
.course-layout { display: grid; gap: 20px; align-items: start; }
.course-layout .enrol-col, .course-layout .main-col { display: grid; gap: 18px; min-width: 0; }
.course-layout .card { margin: 0; }
@media (min-width: 1000px) {
  .course-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; }
  .course-layout .enrol-col { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
  .course-layout .main-col { grid-column: 1; grid-row: 1; }
}
.enrol-card { border: 2px solid var(--saffron); box-shadow: 0 12px 34px rgba(217, 118, 31, .18); }
.enrol-card h2 { font-size: 1.55rem; margin-bottom: .15em; }
.enrol-card .enrol-box { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 14px; }
.enrol-card .enrol-box form .btn, .enrol-card .enrol-box > p > .btn { width: 100%; }
.enrol-card .actions .btn { flex: 1 1 150px; }
.sec { padding: clamp(20px, 3vw, 30px); }
.sec h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); display: flex; align-items: center; gap: 12px; margin-bottom: .55em; }
.sec h2 .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-family: var(--sans); font-size: 1rem; font-weight: 800; }
.sec p, .sec li { color: var(--ink-muted); max-width: 70ch; line-height: 1.7; }
.sec-about { border-top: 4px solid var(--violet); }
.sec-about h2 .ico { background: var(--lavender-soft); color: var(--primary); }
.sec-outcomes { background: linear-gradient(160deg, #ffffff 0%, #f6f1fd 100%); border-top: 4px solid var(--primary); }
.sec-outcomes h2 .ico { background: var(--primary); color: #fff; }
.sec-join { background: linear-gradient(160deg, #ffffff 0%, #eef7f5 100%); border-top: 4px solid var(--teal); }
.sec-join h2 .ico { background: var(--teal); color: #fff; }
.sec-support { background: linear-gradient(160deg, #ffffff 0%, #eef4fc 100%); border-top: 4px solid var(--blue); }
.sec-support h2 .ico { background: var(--blue); color: #fff; }
.sec-cert { border-top: 4px solid var(--gold); }
.sec-cert h2 .ico { background: var(--gold-soft); color: var(--gold-deep); }
.sec-schedule { background: var(--grad-band); border-top: 4px solid var(--saffron); }
.sec-schedule h2 .ico { background: var(--saffron); color: var(--night); }
.sec-generic { border-top: 4px solid var(--violet); }
.sec-generic h2 .ico { background: var(--lavender-soft); color: var(--primary); }
.outcomes { list-style: none; counter-reset: oc; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.outcomes li { counter-increment: oc; position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 14px 14px 56px; color: var(--ink); max-width: none; line-height: 1.55; }
.outcomes li::before { content: counter(oc); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; font-weight: 800; font-size: .9rem; }
.sec ul.summary-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.sec ul.summary-list li { position: relative; padding-left: 1.4rem; }
.sec ul.summary-list li::before { content: ''; position: absolute; left: .2rem; top: .62em; width: .45rem; height: .45rem; transform: rotate(45deg); background: var(--saffron); }

/* ---------- My Learning + batch: next-class panel ---------- */
.next-class { display: grid; gap: 12px; align-items: center; background: var(--grad-night); color: var(--on-night); border-radius: 22px; padding: clamp(20px, 3vw, 30px); margin-bottom: 22px; box-shadow: 0 14px 40px rgba(42, 20, 80, .25); }
.next-class .eyebrow { color: var(--gold); margin: 0; }
.next-class h2 { color: var(--on-night); margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.next-class .when { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0; }
.next-class .muted { color: var(--on-night-muted); margin: 0; }
.next-class .btn { justify-self: start; }
@media (min-width: 820px) { .next-class { grid-template-columns: 1fr auto; } .next-class .btn { justify-self: end; grid-column: 2; grid-row: 1 / span 4; } }
.my-card { border-top: 4px solid var(--violet); }
.progress .bar { background: var(--lavender-soft); }
.progress .fill { background: linear-gradient(90deg, var(--teal), var(--violet)); }
.class-card { border-left-color: var(--violet); }
.class-card.state-completed { border-left-color: var(--teal); }
.class-no { color: var(--primary); }
.week-h { color: var(--primary); border-bottom-color: var(--hairline); }
.facts dt, .sessions th { color: var(--saffron-deep); }
/* auth pages + footer */
.auth { box-shadow: var(--shadow); border-top: 4px solid var(--violet); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=password] { background: #fff; }
.form input:focus { border-color: var(--violet); outline: 3px solid rgba(107, 63, 176, .25); outline-offset: 0; }
.site-footer { background: linear-gradient(180deg, #ffffff 0%, #f6f1fd 100%); }
.doc-ico { background: var(--lavender-soft); color: var(--primary); }
/* Phase 3.1 fix (pre-existing defect): the header rule ".bar { min-height: 72px; display: flex }" also hit the progress bar ".bar" and drew a tall pill. */
.progress .bar { display: block; min-height: 0; height: 8px; padding: 0; gap: 0; }
/* Phase 3.1 third pass: sign-in / create account / reset / account pages: rainbow top rule, gold-ringed emblem, soft page wash. */
body { background: linear-gradient(180deg, #fffdf8 0%, #fbf8ff 60%, #f6faff 100%) fixed; }
.auth { position: relative; overflow: hidden; border-top: 0; padding-top: clamp(30px, 5vw, 44px); }
.auth::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--saffron), var(--gold), var(--violet), var(--blue), var(--teal)); }
.auth h1 { color: var(--primary); }
.auth-emblem { box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(201, 162, 74, .55), 0 10px 26px rgba(42, 20, 80, .18); }
.auth .btn { width: 100%; }
.auth-links a { font-weight: 600; }

/* ---------- LP4.1 (2026-11-18, owner live review): formatting and spacing corrections ---------- */
/* header: fully opaque, so page text never shows through it when scrolling */
.site-header { background: #fff; }
/* course page: headings without symbol tiles; text uses the card width with a comfortable reading size */
.sec h2 { display: block; }
.sec h2::after { content: ''; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--saffron), var(--gold), var(--violet)); }
.main-col .sec p, .main-col .sec li, .main-col .lead { max-width: none; }
.main-col .sec p, .main-col .sec li { font-size: 1.04rem; line-height: 1.75; }
.main-col .sec .lead { font-size: 1.1rem; line-height: 1.8; color: var(--ink); }
.main-col .sec p + p { margin-top: .9em; }
/* My Learning: one card per enrolment, full width; details left, progress + actions right from 860 px */
.my-list { display: grid; gap: 18px; margin-top: 22px; }
.next-class { margin-bottom: 4px; }
.my-card { display: grid; gap: 18px; margin: 0; }
.my-card h2 { overflow-wrap: anywhere; }
.my-card .facts { margin: 6px 0 0; }
.my-card-side { display: grid; gap: 16px; align-content: start; }
.progress-block { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--lavender-soft); }
.progress-label { margin: 0; color: var(--ink); }
.pbar { display: block; height: 10px; border-radius: 99px; background: #fff; overflow: hidden; }
.pbar .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.my-card .actions, .next-class .btn, .class-actions { margin-top: 0; }
.my-card .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.my-card .actions .btn { flex: 1 1 220px; text-align: center; }
@media (min-width: 860px) { .my-card { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 20px 36px; align-items: start; } }
/* a little more air around every Zoom / action button group */
.next-class { row-gap: 14px; }
.batch-next .btn, .next-class .btn { margin-block: 4px; }
/* My Learning banner: less height while its photograph is unpublished */
@media (min-width: 768px) { .hero-my { min-height: 240px; } }
/* class cards: the Zoom / notes / recording buttons get room between them and before what follows */
.res { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 14px 0 4px; padding: 0; list-style: none; }
.res li { margin: 0; }
/* batch page: two classes a week fill the row (auto-fill kept an empty third column on wide screens) */
.week-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* EV-2 (2026-11-19) email confirmation: a single clear 6-digit field (48 px+ touch height, numeric, centred digits, full form
   width), the "code sent" status line, the resend disclosure and a visible busy state while a form is sending */
.form input.otp { width: 100%; min-height: 56px; padding: 8px 14px; border: 1px solid var(--outline); border-radius: 14px; background: #fff; color: var(--ink);
  font: 700 1.6rem/1.2 var(--sans); letter-spacing: .4em; text-indent: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.form input.otp:focus { border-color: var(--violet); outline: 3px solid rgba(107, 63, 176, .25); outline-offset: 0; }
.form input.otp::placeholder { letter-spacing: .4em; color: var(--ink-muted); }
.ev-sent { background: var(--sage-soft); color: #2c4a29; border-radius: 12px; padding: 12px 16px; max-width: 420px; }
.ev-resend { margin-top: 18px; max-width: 420px; }
.ev-resend summary { cursor: pointer; font-weight: 700; color: var(--saffron-deep); min-height: 44px; display: flex; align-items: center; }
.btn[aria-busy=true], .btn:disabled { opacity: .7; cursor: progress; }
/* LP4.4 (2026-11-19) Courses listing: the batch grid used auto-fill, so ONE batch sat in a 300 px track with empty tracks beside it;
   the opening paragraph was capped at 72ch. From 1000 px the course card is two balanced columns (description | batch cards); below,
   the batches fill the row (auto-fit) under the description. Hero, text and card contents unchanged. */
.course-card .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) {
  .course-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: clamp(28px, 3vw, 44px); align-items: start; }
  .course-card .course-head { margin-bottom: 0; min-width: 0; }
  .course-card .course-lead { max-width: none; -webkit-line-clamp: 6; line-clamp: 6; }
  .course-card > .grid { margin-top: 0; grid-template-columns: 1fr; }
  .course-card > .muted { margin: 0; align-self: center; }
}
/* P4.1a (2026-11-19) My Account: section links, people / receipts rows (wrap on phones), receipt view, deletion button */
.acct-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 18px; }
.acct-nav a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.materials.receipts li { flex-wrap: wrap; }
.materials.receipts .doc-title { flex: 1 1 220px; min-width: 0; }
.rc-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .facts dd { overflow-wrap: anywhere; }
.btn-danger { background: #9b2c2c; color: #fff; }
.btn-danger:hover, .btn-danger:focus-visible { background: #7f1d1d; color: #fff; }
.del .summary-list li { color: var(--ink-muted); }
.del-req { margin-top: 18px; max-width: 420px; }
.del-req summary { cursor: pointer; font-weight: 700; color: var(--saffron-deep); min-height: 44px; display: flex; align-items: center; }
/* LP4.6 (2026-11-19) family management: selects, date and time inputs look like the other fields (48 px), the time-of-birth group,
   the duplicate warning and the declaration box */
.form select, .form input[type=date], .form input[type=time] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--outline); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.form select:focus, .form input[type=date]:focus, .form input[type=time]:focus { border-color: var(--violet); outline: 3px solid rgba(107, 63, 176, .25); outline-offset: 0; }
.pf-time { border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px 12px; margin: 14px 0 0; display: grid; gap: 8px; }
.pf-time legend { font-weight: 600; padding: 0 6px; }
.pf-time input[type=time] { max-width: 200px; }
.dup-warn { background: #fff4e5; border: 1px solid #f0b46a; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; max-width: 420px; }
.dup-warn p { margin: 0 0 6px; color: var(--ink); }
.declare { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface-2, #faf7f2); }
.declare p { font-size: .95rem; color: var(--ink-muted); }
/* LP4.7 (2026-11-19) requests + website payment */
.book-list li { flex-wrap: wrap; }
.book-list .doc-title { flex: 1 1 220px; min-width: 0; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pay-box { border: 1px solid var(--gold, #c9a24a); border-radius: 16px; padding: 14px 16px; margin: 16px 0; max-width: 420px; background: var(--surface); }
.form textarea { width: 100%; min-height: 96px; padding: 10px 14px; border: 1px solid var(--outline); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.form input[type=file] { width: 100%; min-height: 48px; padding: 8px 0; }

/* LP4.9 DBK-1 direct booking (premium light theme: ivory, violet, blue, teal and gold accents; compact accessible forms) */
.book-hero { background: var(--grad-band); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cat-chips a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--outline); color: var(--primary); text-decoration: none; font-weight: 600; }
.cat-chips a:hover, .cat-chips a:focus-visible { background: var(--lavender-soft); }
.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.svc-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--violet); }
.svc-card.cat-astrology { border-top-color: var(--gold); }
.svc-card.cat-numerology { border-top-color: var(--blue); }
.svc-card.cat-vaastu { border-top-color: var(--teal); }
.svc-card.cat-aura-energy { border-top-color: var(--violet); }
.svc-title { font-weight: 600; color: var(--ink); }
.svc-price { color: var(--gold-deep); font-weight: 700; }
.svc-card .btn { margin-top: auto; align-self: flex-start; min-height: 44px; }
.svc-soon { margin-top: auto; color: var(--ink-muted); font-size: .95rem; }
.fee-line { color: var(--ink-muted); }
.fee-line strong, .fee-row strong { color: var(--primary); font-size: 1.15rem; }
.person-block { border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: var(--ivory); }
.person-block legend { font-weight: 700; color: var(--primary); padding: 0 6px; }
.inline-choice { border: 0; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.inline-choice legend { width: 100%; font-weight: 600; margin-bottom: 4px; }
.uncertain-pair { margin: 6px 0; }
.check.small { font-size: .95rem; color: var(--ink-muted); }
.book-review .facts > div { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.btn-pay { min-height: 52px; font-size: 1.1rem; background: var(--primary); color: #fff; }
.btn-pay:hover { background: var(--night); color: #fff; }
.book-review .btn-ghost { background: transparent; color: var(--primary); }
/* screen-reader-only text (e.g. the service name inside "Book now"): it was referenced by the markup but never defined */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* UC-SHOP-WEB (2026-11-23): website VG Shop (catalogue, product, one-page checkout, orders). Same tokens as the rest of the portal. */
/* VGSHOP-UI-2 (2026-11-25): compact premium shop introduction. Ivory ground, violet / blue / teal wash, gold hairline; no large coloured boxes. */
.shop-hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; margin: 4px 0 14px; padding: 20px 22px 16px;
  border-radius: var(--radius); border: 1px solid #e6d7b0; background: linear-gradient(115deg, #fffdf8 0%, #f6f0fc 48%, #eaf2fa 76%, #e6f3f1 100%); box-shadow: 0 1px 2px rgba(42, 20, 80, .04); overflow: hidden; }
.shop-hero::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--gold) 0%, #e3c77d 50%, var(--gold) 100%); }
.shop-hero-text { flex: 1 1 420px; min-width: 0; }
.shop-hero .eyebrow { margin: 0 0 2px; color: var(--gold-deep); letter-spacing: .14em; }
.shop-hero h1 { margin: 0; font: 600 clamp(2rem, 4.2vw, 2.7rem)/1.05 var(--serif); color: var(--primary); }
.shop-lede { margin: 6px 0 0; color: var(--ink-muted); font-size: 1.05rem; max-width: none; }
.shop-welcome { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; color: var(--ink); font-size: .98rem; }
.shop-welcome::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); transform: translateY(-1px); }
.shop-welcome strong { color: var(--primary); }
.shop-partner { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .9rem; color: #2f5496; }
.shop-partner-k { font-weight: 700; color: var(--gold-deep); letter-spacing: .03em; text-transform: uppercase; font-size: .78rem; }
.shop-partner-sep { color: #c9b27a; }
.shop-partner-tag { display: inline-block; margin: 2px 0 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid #d9c8a0; background: #fbf8f1; color: #5b3c8c; font-size: .85rem; }
.shop-cart-link { flex: none; }
.shop-note { margin: 10px 0; color: var(--ink-muted); font-size: .98rem; }
/* toolbar: search + Available to buy + categories */
.shop-tools { margin: 0 0 10px; }
.shop-tools-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.shop-search { display: flex; gap: 8px; margin: 0; flex: 1 1 320px; max-width: 520px; }
.shop-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--outline); border-radius: 999px; font: inherit; background: var(--surface); }
.shop-avail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.shop-avail-box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--teal); background: #fff; }
.shop-avail.is-on { border-color: var(--teal); background: var(--teal-soft); }
.shop-avail.is-on .shop-avail-box { background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.shop-count { min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: var(--parchment); color: var(--ink-muted); font-size: .82rem; text-align: center; }
.shop-cats { margin-top: 12px; }
.shop-cat-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-cats a, .shop-more summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--parchment); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.shop-cats a[aria-current="page"] { background: var(--primary); color: var(--on-night); }
.shop-more { position: relative; }
.shop-more summary { cursor: pointer; list-style: none; border: 1px dashed var(--outline); background: var(--surface); }
.shop-more summary::-webkit-details-marker { display: none; }
.shop-more summary::after { content: "▾"; margin-left: 6px; font-size: .8em; }
.shop-more[open] summary::after { content: "▴"; }
.shop-more-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: min(560px, 86vw); display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px 18px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow); }
.shop-more-h { margin: 0 0 4px; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.shop-more-col ul { list-style: none; margin: 0; padding: 0; }
.shop-more-col a { display: block; min-height: 0; padding: 7px 8px; border-radius: 8px; background: none; font-weight: 500; }
.shop-more-col a:hover { background: var(--parchment); }
.shop-catsel { display: none; margin-top: 10px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface); }
.shop-catsel summary { cursor: pointer; min-height: 46px; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.shop-catsel ul { list-style: none; margin: 0; padding: 4px 8px 10px; max-height: 60vh; overflow-y: auto; }
.shop-catsel a { display: block; padding: 10px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.shop-catsel li.sub a { padding-left: 26px; font-size: .95rem; color: var(--ink-muted); }
.shop-catsel a[aria-current="page"] { background: var(--parchment); color: var(--primary); font-weight: 700; }
.shop-result { margin: 4px 0 12px; color: var(--ink-muted); font-size: .95rem; }
@media (max-width: 719px) {
  .shop-hero { padding: 16px 16px 14px; }
  .shop-hero::before { left: 16px; right: 16px; }
  .shop-cats { display: none; }
  .shop-catsel { display: block; }
  .shop-search { flex-basis: 100%; max-width: none; }
  .shop-partner-k { flex-basis: 100%; }
  .shop-partner-k + .shop-partner-sep { display: none; }
}
/* product grid and cards */
.shop-grid { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.shop-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(42, 33, 26, .05); }
.shop-card:hover { border-color: var(--outline); box-shadow: var(--shadow); }
.shop-card.is-buyable { border-color: #b9dcd6; }
.shop-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.shop-card-title { font: 600 1.18rem/1.25 var(--serif); padding: 12px 14px 4px; overflow-wrap: anywhere; }
.shop-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 14px 14px; margin-top: auto; }
.shop-card-price { font-weight: 700; color: var(--saffron-deep); margin-right: auto; }
.shop-buyable { background: var(--teal-soft); color: #0b5f5c; }
.shop-soon { background: var(--parchment); color: var(--ink-muted); }
.shop-add-form { width: 100%; margin: 0; }
.shop-add { width: 100%; justify-content: center; }
.shop-buy-actions { display: grid; gap: 8px; margin-top: 12px; }
/* cart */
.shop-cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.shop-cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; background: var(--parchment); border: 1px solid var(--hairline); display: block; }
.shop-cart-title { margin: 0 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.shop-cart-qty, .shop-cart-rm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 8px 4px 0; }
.shop-cart-qty label { font-size: .9rem; color: var(--ink-muted); }
.shop-cart-qty select { min-height: 40px; min-width: 4.5em; padding: 0 10px; border: 1px solid var(--outline); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.shop-cart-amt { white-space: nowrap; }
.shop-img, .shop-ph { position: relative; aspect-ratio: 1 / 1; background: var(--parchment); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; color: transparent; font-size: 0; }
/* VGSHOP-IMG-1: a broken / missing image shows this text (the loaded image covers it); never stretched or cropped (contain). */
.shop-img::before { content: "Photograph coming soon"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: var(--ink-muted); font-size: .9rem; }
.shop-mfr { position: absolute; z-index: 2; left: 8px; bottom: 8px; background: var(--parchment); color: var(--ink-muted); border: 1px solid var(--line, #ddd); }
.shop-ph span { color: var(--ink-muted); font-size: .9rem; text-align: center; padding: 12px; }
.shop-demo { background: var(--rose-soft); color: var(--error); }
.shop-img .shop-demo { position: absolute; z-index: 2; left: 8px; bottom: 8px; }
.shop-product { display: grid; gap: 22px; }
.shop-main-img { border-radius: 14px; }
.shop-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.shop-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--hairline); }
.shop-price { font-size: 1.5rem; font-weight: 700; color: var(--saffron-deep); }
.shop-buy { max-width: 360px; }
.shop-checkout { display: grid; gap: 0 18px; }
.shop-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.shop-qty, .shop-pin { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 12px; }
.shop-qty label, .shop-pin label { width: 100%; font-weight: 600; }
.shop-pin input { min-height: 44px; width: 9em; padding: 0 12px; border: 1px solid var(--outline); border-radius: 10px; font: inherit; }
.shop-total dt, .shop-total dd { font-weight: 700; font-size: 1.15rem; }
.shop-policy { margin: 8px 0; }
.shop-policy summary { cursor: pointer; font-weight: 600; }
.pre { white-space: pre-line; }
@media (min-width: 820px) {
  .shop-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .shop-checkout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .shop-checkout > .card:not(.shop-summary) { grid-column: 1; }
  .shop-summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; }
}
.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; padding: 8px 0; }
.radio input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--saffron-deep); }
.shop-qty select { min-height: 44px; min-width: 5.5em; padding: 0 12px; border: 1px solid var(--outline); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
/* RC-1.25 booking pages: a centred, readable column instead of a narrow form at the left edge of a wide card; the person block lays its
   fields out in two balanced columns on wide screens and one column on phones; field-level errors sit under their field. */
.book-form, .book-review { max-width: 880px; margin-inline: auto; }
.book-form .book-fields, .book-review .book-pay-form { max-width: none; }
.book-form .book-fields { display: grid; gap: 12px; }
.book-form .book-fields > label { margin-top: 4px; }
.person-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px 22px; padding: 16px 18px; }
.person-block > legend { grid-column: 1 / -1; }
.person-block .fld { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.person-block .fld input[type=text], .person-block .fld input[type=date], .person-block .fld input[type=time] { width: 100%; }
.person-block .inline-choice { border: 0; padding: 0; margin: 0; }
.uncertain-pair { margin: 0; }
.req { color: var(--gold-deep); font-weight: 700; }
.fld-error { margin: 2px 0 0; color: #a3261b; font-size: .92rem; font-weight: 600; }
input[aria-invalid=true] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.err-summary { border: 1px solid #f0b4ac; background: #fff5f3; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.err-summary:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.err-summary ul { margin: 6px 0 0; padding-left: 18px; }
.book-review .facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.book-review .facts .fee-row { grid-column: 1 / -1; }
.book-review .declare { max-width: 72ch; }
.book-review .declare p { overflow-wrap: anywhere; }
.book-review .btn-pay { max-width: 460px; margin-inline: auto; display: block; }
@media (max-width: 640px) { .person-block { padding: 12px; } .book-review .btn-pay { max-width: none; } }

