/*!
 * Prayag Pandits Modern Seva: shell stylesheet (handle ppn-seva).
 * BUILT by tools/build-css.mjs from assets/css/{tokens,base,typography,layout,brand,components,motion,core-blocks,header,footer}.css. Do not edit: edit the parts and rebuild.
 * Included: tokens.css (18676 B), base.css (4376 B), typography.css (9002 B), layout.css (14666 B), brand.css (23946 B), components.css (84268 B), motion.css (4726 B), core-blocks.css (40989 B), header.css (37166 B), footer.css (18447 B).
 */

/* ==== tokens.css ==== */
/**
 * Modern Seva design tokens. GENERATED by tools/gen-tokens.mjs from tools/ds-source/tokens.json.
 * Do not edit by hand: edit tools/ds-source/tokens.json (the source since design system v2), then run
 * `node tools/gen-tokens.mjs --no-compare` and `node tools/build-css.mjs`.
 *
 * 240 design-system tokens (colour, spacing, radius, shadow, size, layout, breakpoint, duration,
 * easing, opacity, z-index, font families), 32 type styles (--type-<style>-size|lh|weight|tracking|family),
 * --type-numeric, --shift-sm|md|lg and --stagger, then the per-breakpoint values. Raw colour values live only here.
 */

:root {
  --maroon-600: #960000;
  --maroon-800: #5c0f1f;
  --maroon-900: #4a0c19;
  --brand-red-logo: #d01010;
  --cream-50: #fbf7f1;
  --cream-100: #fdf5ee;
  --cream-200: #f5ebdf;
  --sand-200: #f1ebe2;
  --sand-300: #ede3d6;
  --stone-200: #e9e6e0;
  --neutral-100: #efedea;
  --white: #ffffff;
  --ink-900: #1a1a1a;
  --ink-700: #444444;
  --ink-600: #555555;
  --ink-500: #666666;
  --stone-500: #857e76;
  --orange-500: #e8731a;
  --terracotta-600: #c45e12;
  --terracotta-800: #9c4a10;
  --gold-400: #c9a84c;
  --gold-700: #8a6d1f;
  --gold-200: #e9cf86;
  --taupe-700: #6b5a52;
  --kalava-gold: #d8a73f;
  --gs-line-gold: rgba(201,168,76,.55);
  --gs-line-quiet: rgba(26,26,26,.22);
  --moon-night: #2a0a12;
  --moon-light: #f4e7c8;
  --kusha-dash: #f3e3b5;
  --flame-glow: #f7c548;
  --apricot-300: #f0a364;
  --green-50: #eaf4ec;
  --green-700: #3c7a4e;
  --green-800: #2f5f3d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --whatsapp-500: #25d366;
  --surface-page: var(--cream-50);
  --surface-raised: var(--white);
  --surface-soft: var(--cream-200);
  --surface-sunken: var(--sand-300);
  --surface-inverse: var(--maroon-800);
  --text-primary: var(--ink-900);
  --text-body: var(--ink-700);
  --text-secondary: var(--ink-500);
  --text-accent: var(--terracotta-800);
  --text-link: var(--maroon-600);
  --text-price: var(--text-primary);
  --text-on-primary: var(--white);
  --text-emphasis: #4a3b36;
  --text-deva: var(--taupe-700);
  --icon-ritual: var(--terracotta-800);
  --icon-ui: var(--ink-900);
  --action-primary: var(--maroon-600);
  --action-primary-hover: #8a0000;
  --action-primary-pressed: #b03f3f;
  --action-secondary: var(--maroon-600);
  --action-secondary-bg: var(--white);
  --border-surface: transparent;
  --border-subtle: rgba(26,26,26,.10);
  --border-default: rgba(26,26,26,.14);
  --border-control: var(--stone-500);
  --focus-ring: var(--maroon-600);
  --wa-button-bg: var(--cream-200);
  --wa-button-bg-hover: var(--sand-300);
  --wa-button-text: var(--ink-900);
  --wa-button-border: var(--sand-300);
  --wa-button-bg-on-soft: var(--cream-100);
  --wa-button-bg-on-soft-hover: var(--cream-200);
  --wa-button-bg-on-raised: var(--cream-200);
  --wa-button-bg-on-raised-hover: var(--sand-300);
  --trustpill-bg: var(--surface-soft);
  --trustpill-bg-on-soft: var(--cream-100);
  --status-danger-bg: rgba(150,0,0,.06);
  --status-danger-text: var(--maroon-600);
  --status-danger-border: rgba(150,0,0,.35);
  --status-attention-bg: var(--surface-soft);
  --status-attention-text: var(--ink-900);
  --status-attention-mark: var(--terracotta-600);
  --status-success-bg: var(--green-50);
  --status-success-text: var(--green-800);
  --status-success-mark: var(--green-700);
  --status-success-border: rgba(60,122,78,.3);
  --status-neutral-bg: var(--neutral-100);
  --status-neutral-text: var(--ink-600);
  --status-neutral-border: rgba(26,26,26,.1);
  --error-text: var(--red-700);
  --error-border: var(--red-600);
  --error-fill: rgba(220,38,38,.07);
  --error-fill-border: rgba(220,38,38,.2);
  --placeholder-border: var(--gold-400);
  --placeholder-text: var(--gold-700);
  --placeholder-fill: rgba(201,168,76,.08);
  --scrim: rgba(26,26,26,.42);
  --skeleton-base: var(--sand-300);
  --skeleton-highlight: var(--cream-200);
  --space-2: 2px;
  --space-4: 4px;
  --space-6: var(--space-8);
  --space-8: 8px;
  --space-10: var(--space-8);
  --space-12: 12px;
  --space-14: var(--space-16);
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-chip: var(--radius-md);
  --radius-lg: var(--radius-xl);
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 0 0 1px rgba(74,12,25,.03), 0 1px 2px rgba(74,12,25,.05), 0 4px 14px rgba(74,12,25,.06);
  --shadow-card-warm: var(--shadow-card);
  --shadow-raised: 0 0 0 1px rgba(74,12,25,.03), 0 2px 4px rgba(74,12,25,.06), 0 10px 24px rgba(74,12,25,.10);
  --shadow-primary-hover: var(--shadow-raised);
  --shadow-float: 0 2px 6px rgba(74,12,25,.08), 0 18px 40px rgba(74,12,25,.14);
  --shadow-toast: 0 4px 12px rgba(74,12,25,.10), 0 16px 36px rgba(74,12,25,.16);
  --shadow-sheet: 0 -2px 6px rgba(74,12,25,.08), 0 -18px 40px rgba(74,12,25,.16);
  --shadow-drawer: -2px 0 6px rgba(74,12,25,.08), -18px 0 40px rgba(74,12,25,.16);
  --shadow-modal: 0 4px 12px rgba(74,12,25,.12), 0 28px 64px rgba(74,12,25,.24);
  --shadow-hero: 0 4px 12px rgba(74,12,25,.06), 0 24px 56px rgba(74,12,25,.12);
  --shadow-on-photo: 0 1px 2px rgba(74,12,25,.22), 0 2px 8px rgba(74,12,25,.18);
  --filter-on-photo: drop-shadow(0 1px 2px rgba(74,12,25,.22)) drop-shadow(0 2px 6px rgba(74,12,25,.14));
  --target-min: 44px;
  --step-size: 4px;
  --step-size-sm: 4px;
  --gs-line-inset: 4px;
  --gs-line-width: 1px;
  --gs-edge-width: 1.5px;
  --btn-pad-x: var(--space-24);
  --btn-min-w: 120px;
  --btn-gap: var(--space-8);
  --wa-dot: 20px;
  --wa-dot-lg: 24px;
  --wa-glyph: var(--icon-2xs);
  --wa-glyph-lg: var(--icon-xs);
  --wa-inset: var(--space-16);
  --wa-inset-sm: var(--space-12);
  --kalava-width: 2px;
  --kalava-short: 24px;
  --trustpill-height: var(--target-min);
  --focus-width: 2px;
  --focus-offset: 3px;
  --control-sm: 44px;
  --control-md: 48px;
  --control-lg: 52px;
  --search-height: var(--control-md);
  --chip-height: 26px;
  --chip-step: 3px;
  --chip-pad-x: var(--space-8);
  --icon-2xs: 14px;
  --icon-xs: 16px;
  --icon-sm: 20px;
  --icon-md: 24px;
  --icon-lg: 32px;
  --icon-xl: 48px;
  --icon-stroke: 1.75;
  --icon-stroke-fine: 2;
  --logo-desktop-w: 144px;
  --logo-tablet-w: 136px;
  --logo-mobile-w: 120px;
  --header-desktop: 120px;
  --header-mobile: 62px;
  --gutter-mobile: 20px;
  --gutter-tablet: 32px;
  --gutter-desktop: 40px;
  --container-max: 1200px;
  --measure-prose: 68ch;
  --measure-slot: 64ch;
  --grid-columns: 12;
  --split-main: 8;
  --split-major: 7;
  --split-half: 6;
  --split-third: 4;
  --split-quarter: 3;
  --ratio-card: 4 / 3;
  --ratio-hero: 16 / 10;
  --ratio-portrait: 4 / 5;
  --ratio-video: 16 / 9;
  --ratio-square: 1 / 1;
  --bp-mobile: 390px;
  --bp-tablet: 768px;
  --bp-laptop: 1024px;
  --bp-desktop: 1180px;
  --bp-wide: 1440px;
  --duration-xs: 120ms;
  --duration-sm: 160ms;
  --duration-md: 220ms;
  --duration-lg: 300ms;
  --duration-xl: 450ms;
  --duration-aarti: 1600ms;
  --duration-done-hold: 1400ms;
  --easing-out: cubic-bezier(.22,.61,.36,1);
  --easing-in: cubic-bezier(.4,0,1,1);
  --easing-standard: cubic-bezier(.4,0,.2,1);
  --opacity-disabled: 0.45;
  --opacity-scrim: 0.42;
  --z-sticky: 40;
  --z-header: 50;
  --z-scrim: 90;
  --z-dialog: 100;
  --z-toast: 110;
  --kalava-gold-soft: color-mix(in srgb, var(--kalava-gold) 80%, var(--maroon-600));
  --kalava-image: linear-gradient(180deg, color-mix(in srgb, var(--white) 22%, transparent), transparent 55%), repeating-linear-gradient(118deg, var(--maroon-600) 0 3px, var(--kalava-gold-soft) 3px 5px);
  --wa-dot-grow: 1.08;
  --gutter: var(--gutter-mobile);
  --section-y: var(--space-48);
  --section-y-tight: var(--space-24);
  --head-gap: var(--space-20);
  --grid-gap: var(--space-12);
  --card-pad: var(--space-16);
  --box-pad: var(--space-16);
  --video-tile-radius: var(--radius-md);
  --video-disc: 56px;
  --acc-open-thread: var(--kalava-short);
  --faq-answer-measure: 64ch;
  --included-icon: var(--icon-sm);
  --notice-icon: var(--icon-sm);
  --questions-sticky-top: calc(var(--sticky-top, 0px) + var(--target-min) + var(--space-24));
  --card-title-lines: 2;
  --card-desc-lh: 20px;
  --factchips-gap: var(--space-8);
  --card-compact-photo: 88px;
  --cmp-label-w: 180px;
  --cmp-row-pad: var(--space-12);
  --cmp-sticky-top: var(--sticky-top, 0px);
  --hdr-bar-h: 62px;
  --mega-well-w: auto;
  --font-display: "Tiro Devanagari Hindi", Georgia, serif;
  --font-devanagari: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --font-ui: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale: the 32 design-system type styles, phone values (fixed sizes; wider screens below). */
  --type-display-size: 40px;
  --type-display-lh: 44px;
  --type-display-weight: 400;
  --type-display-tracking: -0.01em;
  --type-display-family: var(--font-display);
  --type-display-accent-size: 20px;
  --type-display-accent-lh: 26px;
  --type-display-accent-weight: 400;
  --type-display-accent-tracking: normal;
  --type-display-accent-family: var(--font-display);
  --type-display-accent-lg-size: 20px;
  --type-display-accent-lg-lh: 26px;
  --type-display-accent-lg-weight: 400;
  --type-display-accent-lg-tracking: normal;
  --type-display-accent-lg-family: var(--font-display);
  --type-h1-size: 32px;
  --type-h1-lh: 36px;
  --type-h1-weight: 400;
  --type-h1-tracking: -0.01em;
  --type-h1-family: var(--font-display);
  --type-h1-compact-size: 32px;
  --type-h1-compact-lh: 36px;
  --type-h1-compact-weight: 400;
  --type-h1-compact-tracking: -0.01em;
  --type-h1-compact-family: var(--font-display);
  --type-h2-size: 28px;
  --type-h2-lh: 32px;
  --type-h2-weight: 400;
  --type-h2-tracking: normal;
  --type-h2-family: var(--font-display);
  --type-h3-size: 24px;
  --type-h3-lh: 30px;
  --type-h3-weight: 400;
  --type-h3-tracking: normal;
  --type-h3-family: var(--font-display);
  --type-h4-size: 20px;
  --type-h4-lh: 26px;
  --type-h4-weight: 400;
  --type-h4-tracking: normal;
  --type-h4-family: var(--font-display);
  --type-quote-size: 18px;
  --type-quote-lh: 28px;
  --type-quote-weight: 400;
  --type-quote-tracking: normal;
  --type-quote-family: var(--font-display);
  --type-stat-size: 40px;
  --type-stat-lh: 40px;
  --type-stat-weight: 400;
  --type-stat-tracking: -0.01em;
  --type-stat-family: var(--font-display);
  --type-date-numeral-size: 28px;
  --type-date-numeral-lh: 28px;
  --type-date-numeral-weight: 400;
  --type-date-numeral-tracking: normal;
  --type-date-numeral-family: var(--font-display);
  --type-serif-caption-size: 18px;
  --type-serif-caption-lh: 28px;
  --type-serif-caption-weight: 400;
  --type-serif-caption-tracking: normal;
  --type-serif-caption-family: var(--font-display);
  --type-deva-tag-size: 14px;
  --type-deva-tag-lh: 20px;
  --type-deva-tag-weight: 400;
  --type-deva-tag-tracking: normal;
  --type-deva-tag-family: var(--font-devanagari);
  --type-deva-title-size: 16px;
  --type-deva-title-lh: 22px;
  --type-deva-title-weight: 400;
  --type-deva-title-tracking: normal;
  --type-deva-title-family: var(--font-devanagari);
  --type-body-lg-size: 16px;
  --type-body-lg-lh: 26px;
  --type-body-lg-weight: 400;
  --type-body-lg-tracking: normal;
  --type-body-lg-family: var(--font-ui);
  --type-body-size: 15px;
  --type-body-lh: 1.6;
  --type-body-weight: 400;
  --type-body-tracking: normal;
  --type-body-family: var(--font-ui);
  --type-body-sm-size: 14px;
  --type-body-sm-lh: 22px;
  --type-body-sm-weight: 400;
  --type-body-sm-tracking: normal;
  --type-body-sm-family: var(--font-ui);
  --type-caption-size: var(--type-meta-size);
  --type-caption-lh: var(--type-meta-lh);
  --type-caption-weight: var(--type-meta-weight);
  --type-caption-tracking: var(--type-meta-tracking);
  --type-caption-family: var(--type-meta-family);
  --type-micro-size: var(--type-meta-size);
  --type-micro-lh: var(--type-meta-lh);
  --type-micro-weight: var(--type-meta-weight);
  --type-micro-tracking: var(--type-meta-tracking);
  --type-micro-family: var(--type-meta-family);
  --type-meta-size: 12px;
  --type-meta-lh: 18px;
  --type-meta-weight: 500;
  --type-meta-tracking: normal;
  --type-meta-family: var(--font-ui);
  --type-fact-size: 12px;
  --type-fact-lh: 16px;
  --type-fact-weight: 500;
  --type-fact-tracking: normal;
  --type-fact-family: var(--font-ui);
  --type-eyebrow-size: 12px;
  --type-eyebrow-lh: 16px;
  --type-eyebrow-weight: 600;
  --type-eyebrow-tracking: 0.08em;
  --type-eyebrow-family: var(--font-ui);
  --type-label-size: 14px;
  --type-label-lh: 20px;
  --type-label-weight: 600;
  --type-label-tracking: normal;
  --type-label-family: var(--font-ui);
  --type-chip-size: 12px;
  --type-chip-lh: 16px;
  --type-chip-weight: 600;
  --type-chip-tracking: normal;
  --type-chip-family: var(--font-ui);
  --type-button-sm-size: 14px;
  --type-button-sm-lh: 20px;
  --type-button-sm-weight: 600;
  --type-button-sm-tracking: normal;
  --type-button-sm-family: var(--font-ui);
  --type-button-md-size: 16px;
  --type-button-md-lh: 20px;
  --type-button-md-weight: 600;
  --type-button-md-tracking: normal;
  --type-button-md-family: var(--font-ui);
  --type-button-lg-size: 16px;
  --type-button-lg-lh: 20px;
  --type-button-lg-weight: 600;
  --type-button-lg-tracking: normal;
  --type-button-lg-family: var(--font-ui);
  --type-card-title-size: 16px;
  --type-card-title-lh: 22px;
  --type-card-title-weight: 600;
  --type-card-title-tracking: normal;
  --type-card-title-family: var(--font-ui);
  --type-price-lg-size: 28px;
  --type-price-lg-lh: 32px;
  --type-price-lg-weight: 700;
  --type-price-lg-tracking: normal;
  --type-price-lg-family: var(--font-ui);
  --type-price-md-size: 20px;
  --type-price-md-lh: 24px;
  --type-price-md-weight: 700;
  --type-price-md-tracking: normal;
  --type-price-md-family: var(--font-ui);
  --type-price-sm-size: 16px;
  --type-price-sm-lh: 22px;
  --type-price-sm-weight: 700;
  --type-price-sm-tracking: normal;
  --type-price-sm-family: var(--font-ui);
  --type-price-xs-size: 14px;
  --type-price-xs-lh: 20px;
  --type-price-xs-weight: 700;
  --type-price-xs-tracking: normal;
  --type-price-xs-family: var(--font-ui);
  --type-numeric: tabular-nums lining-nums;

  /* Motion: entrance shift distances and the list stagger step. */
  --shift-sm: 8px;
  --shift-md: 12px;
  --shift-lg: 16px;
  --stagger: 40ms;
}

/* Per-breakpoint values of the type styles, rhythm and component tokens. */
@media (min-width: 768px) {
  :root {
    --gutter: var(--gutter-tablet);
    --section-y: var(--space-64);
    --section-y-tight: var(--space-32);
    --head-gap: var(--space-24);
    --grid-gap: var(--space-16);
    --box-pad: var(--space-24);
    --hdr-bar-h: 72px;
    --type-display-size: 48px;
    --type-display-lh: 52px;
    --type-display-accent-size: 24px;
    --type-display-accent-lh: 32px;
    --type-display-accent-lg-size: 24px;
    --type-display-accent-lg-lh: 32px;
    --type-h1-size: 40px;
    --type-h1-lh: 44px;
    --type-h2-size: 32px;
    --type-h2-lh: 36px;
    --type-h2-tracking: -0.01em;
    --type-price-xs-size: 16px;
    --type-price-xs-lh: 22px;
  }
}

@media (min-width: 1180px) {
  :root {
    --gutter: var(--gutter-desktop);
    --section-y: var(--space-80);
    --section-y-tight: var(--space-40);
    --head-gap: var(--space-32);
    --grid-gap: var(--space-20);
    --hdr-bar-h: 68px;
    --mega-well-w: 340px;
    --type-display-size: 64px;
    --type-display-lh: 68px;
    --type-display-accent-lg-size: 28px;
    --type-display-accent-lg-lh: 32px;
  }
}

@media (min-width: 1280px) {
  :root {
    --mega-well-w: 420px;
  }
}

/* Deep-maroon ground: the 33 switching tokens. Set by data-theme="maroon" or the "Deep maroon" block style. */
[data-theme="maroon"],
.is-style-maroon {
  --gs-line-gold: rgba(201,168,76,.8);
  --surface-page: var(--maroon-800);
  --surface-raised: var(--maroon-900);
  --surface-soft: rgba(255,255,255,.1);
  --surface-sunken: rgba(255,255,255,.06);
  --surface-inverse: var(--cream-50);
  --text-primary: var(--white);
  --text-body: rgba(255,255,255,.86);
  --text-secondary: rgba(255,255,255,.78);
  --text-accent: var(--apricot-300);
  --text-link: var(--apricot-300);
  --text-price: var(--white);
  --text-on-primary: var(--maroon-800);
  --text-emphasis: rgba(255,255,255,.82);
  --text-deva: rgba(255,255,255,.78);
  --icon-ritual: var(--apricot-300);
  --icon-ui: var(--white);
  --action-primary: var(--white);
  --action-primary-hover: var(--cream-100);
  --action-primary-pressed: var(--sand-200);
  --action-secondary: var(--white);
  --action-secondary-bg: var(--maroon-800);
  --border-surface: rgba(255,255,255,.14);
  --border-subtle: rgba(255,255,255,.14);
  --border-default: rgba(255,255,255,.2);
  --border-control: rgba(255,255,255,.45);
  --focus-ring: var(--white);
  --wa-button-bg: var(--cream-100);
  --wa-button-bg-hover: var(--cream-200);
  --wa-button-border: transparent;
  --trustpill-bg: var(--cream-100);
  --placeholder-border: rgba(201,168,76,.8);
  --placeholder-text: var(--gold-200);
}

/* Light reset: the same 33 tokens back at their :root values, for a light panel inside a maroon
   section (data-theme="light" on the panel, e.g. the season banner's media and card panels), so its
   buttons, links, borders and focus ring read as they do on the default ground. Comes after the
   maroon block, so it also wins on an element that carries both. */
[data-theme="light"] {
  --gs-line-gold: rgba(201,168,76,.55);
  --surface-page: var(--cream-50);
  --surface-raised: var(--white);
  --surface-soft: var(--cream-200);
  --surface-sunken: var(--sand-300);
  --surface-inverse: var(--maroon-800);
  --text-primary: var(--ink-900);
  --text-body: var(--ink-700);
  --text-secondary: var(--ink-500);
  --text-accent: var(--terracotta-800);
  --text-link: var(--maroon-600);
  --text-price: var(--text-primary);
  --text-on-primary: var(--white);
  --text-emphasis: #4a3b36;
  --text-deva: var(--taupe-700);
  --icon-ritual: var(--terracotta-800);
  --icon-ui: var(--ink-900);
  --action-primary: var(--maroon-600);
  --action-primary-hover: #8a0000;
  --action-primary-pressed: #b03f3f;
  --action-secondary: var(--maroon-600);
  --action-secondary-bg: var(--white);
  --border-surface: transparent;
  --border-subtle: rgba(26,26,26,.10);
  --border-default: rgba(26,26,26,.14);
  --border-control: var(--stone-500);
  --focus-ring: var(--maroon-600);
  --wa-button-bg: var(--cream-200);
  --wa-button-bg-hover: var(--sand-300);
  --wa-button-border: var(--sand-300);
  --trustpill-bg: var(--surface-soft);
  --placeholder-border: var(--gold-400);
  --placeholder-text: var(--gold-700);
}

/* ==== base.css ==== */
/**
 * Modern Seva: base. Box model, the page ground, media defaults, links, focus, the skip link and the
 * screen-reader utilities, forced colours and the global reduced-motion rule.
 *
 * Tokens only (tokens.css). Components reset what they need; nothing here strips a link underline or
 * hides focus (the vault's modern-seva.css did both: tech-baseline §4.2).
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--surface-page);
	color: var(--text-body);
	font-family: var(--font-ui);
	font-size: var(--type-body-size);
	font-weight: var(--type-body-weight);
	line-height: var(--type-body-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

/* Media never overflows its column (WCAG 1.4.10 reflow at 320px). */
img,
video,
canvas,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
}

img {
	border-style: none;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

/* Links: underlined at rest by default, because most unclassed links sit in running text (WCAG 1.4.1:
   maroon on body text is 1.1:1). Components that use the kalava thread (.ms-link, buttons, cards, menus)
   drop the underline themselves. */
a {
	color: var(--text-link);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
	text-decoration-color: var(--kalava-gold);
}

/* Focus: one 2px outline everywhere, maroon on light grounds, white on deep maroon (the token flips).
   Never removed; native :focus-visible keeps it off pointer clicks (WCAG 2.4.7, 2.4.13). */
:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Screen-reader-only text: the design-system name and WordPress's own (core, WooCommerce and plugin markup). */
.ms-sr,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: var(--space-8);
	left: var(--space-8);
	z-index: var(--z-toast);
	width: auto;
	height: auto;
	padding: var(--space-12) var(--space-16);
	clip: auto;
	clip-path: none;
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font-weight: 600;
	white-space: normal;
}

/* Skip link (printed by header.php): off screen until focused, then a pill above everything. */
.ms-skip-link {
	position: absolute;
	top: var(--space-8);
	left: var(--space-8);
	z-index: calc(var(--z-toast) + 1);
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	padding: 0 var(--space-16);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font-size: var(--type-button-sm-size);
	font-weight: var(--type-button-sm-weight);
	text-decoration: none;
	transform: translateY(calc(-100% - var(--space-16)));
}

.ms-skip-link:focus,
.ms-skip-link:focus-visible {
	box-shadow: var(--shadow-float);
	transform: none;
}

.ms-nowrap {
	white-space: nowrap;
}

/* Forced colours (Windows high contrast): shapes drawn with clip-path or backgrounds vanish, so the
   controls keep a real border and the selected state a system highlight. */
@media (forced-colors: active) {
	.ms-gs,
	.ms-btn-wa,
	.ms-mode-btn,
	.ms-card,
	.ms-ph,
	.ms-status,
	.ms-notice {
		border: 1px solid CanvasText;
	}

	.ms-mode-btn[aria-pressed="true"] {
		border-color: Highlight;
		outline: 2px solid Highlight;
	}

	.ms-link:hover,
	.ms-link:focus-visible {
		text-decoration: underline;
	}

	.ms-kalava,
	.ms-eyebrow::before {
		background: CanvasText;
		forced-color-adjust: none;
	}
}

/* Reduced motion: fades of 120ms or less, no travel, no smooth scroll (DS Motion). Component files add
   their own exceptions inside the same query. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 120ms !important;
		animation-duration: 120ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/* ==== typography.css ==== */
/**
 * Modern Seva: typography. The design-system type roles as element defaults and utility classes.
 *
 * Design system v2 (D-111, ledger 1b): sizes and line heights come only from the --type-* roles in
 * tokens.css (11 fixed sizes, whole-pixel line heights, no fluid sizes); no sheet types its own.
 * Tiro Devanagari Hindi has one weight: headings, card and box titles, quotes and numerals stay at 400
 * and never turn bold (faux bold blurs it), and it is never set below 18px (the Devanagari tag and the
 * serif caption are the sanctioned exceptions). Capitals only on the eyebrow role (.08em). Heading
 * mapping (tech-baseline §5.3): HTML h1 = DS h1 (32/36, 40/44 from 768), h2 = DS h2 (28/32, 32/36 from
 * 768), h3 = DS h4 (20/26 box titles), h4 = card-title (Inter 16/22/600).
 */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-12);
	color: var(--text-primary);
	text-wrap: balance;
}

h1 {
	font-family: var(--type-h1-family);
	font-size: var(--type-h1-size);
	font-weight: var(--type-h1-weight);
	line-height: var(--type-h1-lh);
	letter-spacing: var(--type-h1-tracking);
}

h2 {
	font-family: var(--type-h2-family);
	font-size: var(--type-h2-size);
	font-weight: var(--type-h2-weight);
	line-height: var(--type-h2-lh);
	letter-spacing: var(--type-h2-tracking);
}

h3 {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	letter-spacing: var(--type-h4-tracking);
}

h4 {
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
}

h5,
h6 {
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
}

/* Bold inside a serif heading would be faux bold: keep the single weight. */
:is(h1, h2, h3, .ms-display, .ms-h1, .ms-h2, .ms-h4, .ms-quote) :is(strong, b) {
	font-weight: 400;
}

/* The italic accent phrase of a display or section title (DS: one per title, in text-emphasis). */
:is(h1, h2, h3, .ms-display, .ms-h1, .ms-h2, .ms-h4) em {
	font-style: italic;
	font-weight: 400;
	color: var(--text-emphasis);
}

/* ---- Display and headings as classes (when the level and the look differ) ---- */

.ms-display {
	margin: 0;
	font-family: var(--type-display-family);
	font-size: var(--type-display-size);
	font-weight: var(--type-display-weight);
	line-height: var(--type-display-lh);
	letter-spacing: var(--type-display-tracking);
	color: var(--text-primary);
}

.ms-display-accent {
	display: block;
	margin: 0;
	font-family: var(--type-display-accent-family);
	font-size: var(--type-display-accent-size);
	font-style: italic;
	font-weight: var(--type-display-accent-weight);
	line-height: var(--type-display-accent-lh);
	color: var(--text-emphasis);
}

.ms-h1 {
	color: var(--text-primary);
	font-family: var(--type-h1-family);
	font-size: var(--type-h1-size);
	font-weight: var(--type-h1-weight);
	line-height: var(--type-h1-lh);
	letter-spacing: var(--type-h1-tracking);
}

.ms-h1-compact {
	color: var(--text-primary);
	font-family: var(--type-h1-compact-family);
	font-size: var(--type-h1-compact-size);
	font-weight: var(--type-h1-compact-weight);
	line-height: var(--type-h1-compact-lh);
	letter-spacing: var(--type-h1-compact-tracking);
}

.ms-h2 {
	color: var(--text-primary);
	font-family: var(--type-h2-family);
	font-size: var(--type-h2-size);
	font-weight: var(--type-h2-weight);
	line-height: var(--type-h2-lh);
	letter-spacing: var(--type-h2-tracking);
}

.ms-h4 {
	color: var(--text-primary);
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
}

.ms-card-title {
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
}

.ms-quote {
	font-family: var(--type-quote-family);
	font-size: var(--type-quote-size);
	font-weight: var(--type-quote-weight);
	line-height: var(--type-quote-lh);
}

.ms-numeral {
	font-family: var(--type-date-numeral-family);
	font-size: var(--type-date-numeral-size);
	font-weight: var(--type-date-numeral-weight);
	line-height: var(--type-date-numeral-lh);
}

.ms-serif-caption {
	font-family: var(--type-serif-caption-family);
	font-size: var(--type-serif-caption-size);
	line-height: var(--type-serif-caption-lh);
}

/* ---- Running text ---- */

.ms-body-lg {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-lh);
}

.ms-body-sm {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-caption {
	font-size: var(--type-caption-size);
	font-weight: var(--type-caption-weight);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

.ms-micro {
	font-size: var(--type-micro-size);
	font-weight: var(--type-micro-weight);
	line-height: var(--type-micro-lh);
	color: var(--text-secondary);
}


.ms-label {
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
	color: var(--text-primary);
}

/* ---- Eyebrow: 12/16/600, .08em, uppercase (the only capitals in the system), led by the short kalava thread (--kalava-short, 24px, D-115(6)) (image in brand.css) ---- */

.ms-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-6) var(--space-14);
	margin: 0;
	font-family: var(--type-eyebrow-family);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-lh);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
	color: var(--text-accent);
}

.ms-eyebrow::before {
	content: "";
	flex-shrink: 0;
	width: var(--kalava-short);
	height: var(--kalava-width);
	border-radius: calc(var(--kalava-width) / 2);
}

.ms-eyebrow--plain::before {
	display: none;
}

/* The words wrap beside the thread instead of dropping under it. A wrapping flex row moves an item whose
   full width does not fit onto the next line, so the words are capped to the room the short thread (and
   the 18px landmark, when there is one) leaves. The Devanagari tag still moves down when it does not fit. */
.ms-eyebrow > span:not(.ms-deva, .ms-eyebrow__mark) {
	max-width: calc(100% - var(--kalava-short) - var(--space-14));
}

.ms-eyebrow--plain > span:not(.ms-deva, .ms-eyebrow__mark) {
	max-width: none;
}

/* The page city's landmark after the thread (ppn_seva_section_header() eyebrow_mark, printed at 18px). */
.ms-eyebrow__mark {
	display: inline-flex;
	color: var(--icon-ritual);
}

.ms-eyebrow > .ms-eyebrow__mark + span:not(.ms-deva) {
	max-width: calc(100% - var(--kalava-short) - 18px - var(--space-14) * 2);
}

/* A centred eyebrow sits between two threads (owner, 6 Nov 2026); the right one is mirrored, so the
   twist runs the same way out from the words on both sides. Its words leave room for both. */
.ms-sechead--center .ms-eyebrow:not(.ms-eyebrow--plain)::after {
	content: "";
	flex-shrink: 0;
	width: var(--kalava-short);
	height: var(--kalava-width);
	border-radius: calc(var(--kalava-width) / 2);
	transform: scaleX(-1);
}

.ms-sechead--center .ms-eyebrow:not(.ms-eyebrow--plain) > span:not(.ms-deva, .ms-eyebrow__mark) {
	max-width: calc(100% - 64px - var(--space-14) * 2);
}

.ms-sechead--center .ms-eyebrow:not(.ms-eyebrow--plain) > .ms-eyebrow__mark + span:not(.ms-deva) {
	max-width: calc(100% - 64px - 18px - var(--space-14) * 3);
}

/* ---- Devanagari tag (optional, by hand, at most twice a page): inline, in brackets, muted taupe ---- */

.ms-deva {
	display: inline;
	font-family: var(--type-deva-tag-family);
	font-size: var(--type-deva-tag-size);
	font-style: normal;
	font-weight: var(--type-deva-tag-weight);
	line-height: var(--type-deva-tag-lh);
	letter-spacing: normal;
	text-transform: none;
	color: var(--text-deva);
	white-space: nowrap;
}

.ms-deva-title,
:is(h1, h2, h3, .ms-h2, .ms-h4) .ms-deva {
	font-size: var(--type-deva-title-size);
	line-height: var(--type-deva-title-lh);
}

.ms-eyebrow .ms-deva {
	margin-left: calc(var(--space-4) * -1);
}

/* ---- Prices (Inter 700 in text-price, tabular lining figures; the Price component sets its own layout) ---- */

.ms-price-lg,
.ms-price-md,
.ms-price-sm {
	font-family: var(--type-price-md-family);
	font-weight: var(--type-price-md-weight);
	font-variant-numeric: var(--type-numeric);
	color: var(--text-price);
	white-space: nowrap;
}

/* A <strong> inside a 700 price would ask for 900, a weight the shipped Inter set does not have. */
:is(.ms-price-lg, .ms-price-md, .ms-price-sm) strong {
	font-weight: inherit;
}

.ms-price-lg {
	font-size: var(--type-price-lg-size);
	line-height: var(--type-price-lg-lh);
}

.ms-price-md {
	font-size: var(--type-price-md-size);
	line-height: var(--type-price-md-lh);
}

.ms-price-sm {
	font-size: var(--type-price-sm-size);
	line-height: var(--type-price-sm-lh);
}

/* ==== layout.css ==== */
/**
 * Modern Seva: layout. Container, section rhythm, prose flow, card grids and two utilities.
 * Mobile first; breakpoints 768px (tablet) and 1180px (desktop). Gutter and section padding are
 * tokens that change at those widths (tokens.css).
 */

.ms-container {
	width: 100%;
	max-width: calc(var(--container-max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Section blocks: one section-y above and below. Two plain sections in a row share the gap, so the
   rhythm is one section-y (48 / 64 / 80px, D-113); a ground (band) always keeps its own padding. */
.ms-block {
	padding-block: var(--section-y);
}

.ms-block:not([class*="is-style-"]):not([data-theme]) + .ms-block:not([class*="is-style-"]):not([data-theme]) {
	padding-top: 0;
}

/* Band rule (D-113): beside a band (a section with its own ground) a plain section gives only the tight
   step on that side, because the band's own padding carries the rest: plain to band is 40 + 80 at 1280,
   not 80 + 80. Band to band keeps both paddings (two grounds side by side). */
.ms-block:not([class*="is-style-"]):not([data-theme]):has(+ .ms-block:is([class*="is-style-"], [data-theme])) {
	padding-bottom: var(--section-y-tight);
}

.ms-block:is([class*="is-style-"], [data-theme]) + .ms-block:not([class*="is-style-"]):not([data-theme]) {
	padding-top: var(--section-y-tight);
}

/* Prose flow (page and post content): text children sit on one measure (the theme.json content size,
   about 68ch of body-lg) with the gutter on small screens; section blocks and full-width blocks span. */
.ms-flow > :where(:not(.ms-block, .alignfull, .alignwide)) {
	max-width: min(var(--wp--style--global--content-size, 650px), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.ms-flow > .alignwide {
	max-width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.ms-flow > .alignfull,
.ms-flow > .ms-block {
	max-width: none;
	margin-block: 0;
}

.ms-flow > :where(:not(.ms-block)) + :where(:not(.ms-block)) {
	margin-top: var(--space-16);
}

.ms-flow > :where(h2, h3) {
	margin-top: var(--space-32);
}

.ms-flow > :where(:not(.ms-block)):first-child {
	margin-top: var(--section-y);
}

.ms-flow > :where(:not(.ms-block)):last-child {
	margin-bottom: var(--section-y);
}

.ms-flow :where(p, li) > a:where(:not([class])) {
	text-decoration-line: underline;
}

/* Landing templates (parts/page/landing.php: .ms-flow.ms-landing__body). One left edge for the page:
   every top-level block starts where the section headings start, the content edge of .ms-container
   (--ms-edge: the gutter, or the margin that centres the 1200px container on a wider screen). ppn
   sections span the page and keep their own container. ppn/jump-nav and wide blocks span the
   container. Every other top-level block (paragraphs, headings, a notice, the cost table) is
   left-aligned on that edge with a reading measure (--measure-slot, 64ch of its own type), unless the
   template is a wide one (.ms-landing--wide, below), where the text spans the container.

   A prose core/group is a section of its own, so it needs no wrapper class: it spans the page with one
   section-y above and below (shared with a plain neighbouring section, as two plain ppn sections share
   it) and its padding puts its blocks on the same edge, on the same measure. With a ground (maroon,
   cream, white) the same group is a full-bleed band whose content keeps that edge. Card, panel and
   callout groups are boxes, not sections: they sit on the edge like a paragraph. */
.ms-landing__body {
	--ms-edge: max(var(--gutter), (100% - var(--container-max)) / 2);
}

.ms-landing__body > :where(:not(.ms-block, .alignfull)) {
	max-width: min(var(--measure-slot), 100% - var(--ms-edge) * 2);
	margin-inline: var(--ms-edge) auto;
}

.ms-landing__body > :where(.ms-jump, .alignwide) {
	max-width: none;
	margin-inline: var(--ms-edge);
}

/* The section bar (ppn/jump-nav "Section bar", parts/section-nav.php) spans the page and centres its
   pill; the section under it opens on the tight step (--section-y-tight, D-113),
   and every section it can jump to lands clear of the header and of the bar. */
.ms-landing__body > .ms-secnav {
	max-width: none;
	margin: 0;
}

.ms-landing__body > .ms-secnav + :is(.ms-block, .wp-block-group):not([class*="is-style-"]):not([data-theme]) {
	margin-top: 0;
	padding-top: var(--section-y-tight);
}

.ms-landing__body:has(> .ms-secnav) > [id] {
	scroll-margin-top: calc(var(--target-min) + var(--space-24));
}

.ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) {
	max-width: none;
	margin: 0;
	padding: var(--section-y) var(--ms-edge);
	border-radius: 0;
}

/* !important: core's constrained layout centres these children with margin-left/right auto !important. */
.ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > :where(:not(.alignleft, .alignright, .aligncenter, .alignwide, .alignfull)) {
	max-width: var(--measure-slot);
	margin-inline: 0 auto !important;
}

.ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > .alignwide {
	max-width: none;
	margin-inline: 0 !important;
}

/* The prose rhythm of the flow, inside the section. */
.ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > * {
	margin-block: 0;
}

.ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > * + * {
	margin-top: var(--space-16);
}

.ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > * + :where(h2, h3) {
	margin-top: var(--space-32);
}

/* Full-width content: a template whose 'width' is 'wide' (inc/templates.php; parts/page/landing.php adds
   .ms-landing--wide). The standalone pooja pages first (owner, 10 Nov 2026: no booking box beside the
   overview), then Yatra, Kundali and About (owner, 10 Nov 2026: "use full width for content"). The
   page's content spans the container like its sections: the words, the photos and a video in the text
   share both edges, a video keeps the text's rhythm rather than a section's padding, and a top-level
   paragraph or notice spans the same way. Section-header intros keep the shared measure. */
.ms-landing--wide .ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > :where(:not(.alignleft, .alignright, .aligncenter, .alignwide, .alignfull)) {
	max-width: none;
}

.ms-landing--wide .ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > .ms-block {
	padding-block: var(--space-16);
}

.ms-landing--wide .ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > .wp-block-image img {
	width: 100%;
	height: auto;
}

.ms-landing--wide .ms-landing__body > .wp-block-group:not(.is-style-card, .is-style-panel, .is-style-callout) > .ms-video--inline > .ms-container {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

.ms-landing--wide .ms-landing__body > :where(:not(.ms-block, .alignfull, .alignwide, .wp-block-group, .ms-jump, .ms-secnav)) {
	max-width: none;
	margin-inline: var(--ms-edge);
}

/* Plain neighbours share one section-y, whichever of the two is the prose group. */
.ms-landing__body > :is(.ms-block, .wp-block-group):not([class*="is-style-"]):not([data-theme]) + .wp-block-group:not([class*="is-style-"]),
.ms-landing__body > .wp-block-group:not([class*="is-style-"]) + .ms-block:not([class*="is-style-"]):not([data-theme]) {
	padding-top: 0;
}

/* Bleed band (D-113): a full-width ground or photo whose content keeps the one 1200 edge. The band spans
   the page (two classes, after the flow and landing rules above, so it outweighs their measure and edge);
   its words sit in the shared .ms-container inside it. */
.ms-flow > .ms-bleed,
.ms-landing__body > .ms-bleed {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* Under the breadcrumbs, a first block that is not a section (the scope notice above the hero) opens
   with a short gap rather than a whole section-y, and the section after it closes up to it. */
.ms-landing__body > :where(:not(.ms-block, .wp-block-group)):first-child {
	margin-top: var(--space-16);
}

.ms-landing__body > :where(:not(.ms-block, .wp-block-group)):first-child + .ms-block:not([class*="is-style-"]):not([data-theme]) {
	padding-top: var(--space-24);
}

.ms-slot {
	max-width: var(--measure-slot);
}

/* Card grid: 2 / 3 / 4 columns (DS ritual cards), gap space-14. --wide: 1 / 2 / 3 for packages and reviews. */
.ms-grid-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-14);
}

.ms-grid-cards--wide {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	.ms-grid-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ms-grid-cards--wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1180px) {
	.ms-grid-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ms-grid-cards--wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Stack (vertical rhythm) and cluster (wrapping row). */
.ms-stack {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.ms-stack--sm {
	gap: var(--space-8);
}

.ms-stack--lg {
	gap: var(--space-32);
}

.ms-cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8);
}

/* The scope notice above the trail (owner, 6 Nov 2026). */
.ms-landing__notice {
	padding-top: var(--space-16);
}

.ms-landing__notice > * {
	max-width: none;
	margin: 0;
}

/* A section headed by an H3 continues the section above it: the owner's merged sections (6 Nov 2026),
   on the tight step (D-113). Not after a band: there a plain continuation keeps the band rule's top
   space instead of pulling into the band. */
.ms-landing__body > .ms-block:not([class*="is-style-"]):not([data-theme]):not(.ms-block:is([class*="is-style-"], [data-theme]) + *):has(> .ms-container > .ms-sechead h3.ms-sechead__title) {
	margin-top: calc(var(--section-y) * -1 + var(--section-y-tight));
}

/* The same on a ground: an H3 section right after a section on the same ground joins its band (ritual
   hub "More sacred tirthas" under the sacred cities). */
.ms-landing__body > .is-style-cream + .ms-block.is-style-cream:has(> .ms-container > .ms-sechead h3.ms-sechead__title),
.ms-landing__body > .is-style-white + .ms-block.is-style-white:has(> .ms-container > .ms-sechead h3.ms-sechead__title) {
	margin-top: calc(var(--section-y) * -1 + var(--section-y-tight));
	padding-top: 0;
}

/* Ritual hub (owner, 6 Nov 2026): the H3 part of a section ("More sacred tirthas" under the sacred
   cities) starts after a hairline across the content, a little further down: one section, two parts. */
.ms-landing--ritual-hub .ms-landing__body > .ms-block:has(> .ms-container > .ms-sechead h3.ms-sechead__title) {
	margin-top: calc(var(--section-y) * -1 + var(--section-y-tight));
}

.ms-landing--ritual-hub .ms-landing__body > .ms-block:has(> .ms-container > .ms-sechead h3.ms-sechead__title) > .ms-container::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: var(--space-40);
	background-color: var(--border-default);
}

/* Finder (board SevaFinder): the hero text, the finder card and the cards under it share one centred
   column, the card's width (.ms-gf-wiz--solo, 880px since the owner's redesign of 9 Nov 2026), so the
   eyebrow and the title start on its edge. The board's column stays while every other plain hero sits
   on the content edge (owner, 10 Nov 2026): the words span the column, not the prose measure. */
.ms-landing--finder .ms-landing__body > .ms-hero--plain .ms-hero__grid,
.ms-landing--finder .ms-landing__body > .ms-link-cards > .ms-container {
	max-width: calc(880px + var(--gutter) * 2);
}

.ms-landing--finder .ms-landing__body > .ms-hero--plain .ms-hero__text {
	max-width: none;
}

/* Tithi calculator (owner, 10 Nov 2026): the hero's words and the calculator side by side from 1024px,
   on the page's content edges, both centred on the row; the result follows the form in its column.
   Phones and tablets keep them one under the other. */
@media (min-width: 1024px) {
	.ms-landing--tithi .ms-landing__body {
		display: grid;
		grid-template-columns: [full-start] var(--ms-edge) [content-start] minmax(0, 1fr) [half] minmax(0, 1fr) [content-end] var(--ms-edge) [full-end];
	}

	.ms-landing--tithi .ms-landing__body > * {
		grid-column: full;
	}

	.ms-landing--tithi .ms-landing__body > .ms-hero:first-child {
		grid-column: content-start / half;
		align-self: center;
		padding-block: var(--section-y);
		padding-inline-end: var(--space-48);
	}

	/* .ms-block twice: it outweighs the shared rule that takes the top padding off a plain section
	   after another (the two share a row here, not a gap). */
	.ms-landing--tithi .ms-landing__body > .ms-hero:first-child + .ms-tc.ms-block {
		grid-column: half / content-end;
		align-self: center;
		padding-block: var(--section-y);
	}

	.ms-landing--tithi .ms-landing__body > .ms-hero:first-child .ms-hero__grid,
	.ms-landing--tithi .ms-landing__body > .ms-hero:first-child + .ms-tc > .ms-container {
		max-width: none;
		margin-inline: 0;
		padding-inline: 0;
	}

	.ms-landing--tithi .ms-landing__body > .ms-hero:first-child + .ms-tc .ms-tc__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* With a result under the form the column runs long: the words stay level with the form. */
	.ms-landing--tithi .ms-landing__body > .ms-hero:first-child:has(+ .ms-tc:not(.ms-tc--empty)) {
		align-self: start;
	}
}

/* Reviews (board SevaReviews): one 960px column for every top-level block of the page, the hero's text
   and seal included. The sections cap their container at the column; every other top-level block (the
   WhatsApp and Call row after the video testimonials is a core/group; a paragraph or a notice) takes the
   column's edge as the page's edge (--ms-edge), so it starts where the section headings start. A group
   with a ground stays a full-bleed band with its blocks on the column; an .alignfull block spans the page.
   The board's column stays while every other plain hero sits on the content edge (owner, 10 Nov 2026):
   the words span the column beside the seal, not the prose measure. */
.ms-landing--reviews .ms-landing__body {
	--ms-edge: max(var(--gutter), (100% - 960px) / 2);
}

.ms-landing--reviews .ms-landing__body > .ms-block > .ms-container,
.ms-landing--reviews .ms-hero--plain .ms-hero__grid {
	max-width: calc(960px + var(--gutter) * 2);
}

.ms-landing--reviews .ms-hero--plain .ms-hero__text {
	max-width: none;
}

/* ==== brand.css ==== */
/**
 * Modern Seva: brand marks. Ported once from the design-system bundle (tools/ds-source/bundle.css),
 * token names only: the ghat-step corner, the kalava thread and TextLink, the diya, kusha, moon,
 * landmark badge, trust seal, the aarti loader and the spinner. The SVG art is in inc/marks.php.
 * Reduced-motion rules stay inside their @media query (the vault copy had flattened them).
 */

/* ---------- Kalava thread (Tier 1): 2px twisted maroon and gold, a finer stripe, a light sheen ----------
   One image for every thread on the site (--kalava-image, D-115(6)); each user below sets only its size
   and position. */
.ms-kalava,
.ms-eyebrow::before,
.ms-sechead--center .ms-eyebrow:not(.ms-eyebrow--plain)::after,
.ms-link,
.ms-k,
.ms-kalava-top::before,
.ms-kalava-under::after,
.ms-acc-item.is-open::after,
.wp-block-details.is-style-diya[open]::after,
.wp-block-separator.is-style-kalava,
.is-style-eyebrow::before,
.wp-block-button.is-style-link > .wp-block-button__link {
	background-image: var(--kalava-image);
}

.ms-kalava {
	display: block;
	height: var(--kalava-width);
	border-radius: calc(var(--kalava-width) / 2);
}

/* The short thread is 24px (D-115(6)); the eyebrow lead uses the same token (typography.css). */
.ms-kalava-short {
	width: var(--kalava-short);
	flex-shrink: 0;
}

/* Page anatomy edges (header top, under the navigation, footer top). */
.ms-kalava-top,
.ms-kalava-under {
	position: relative;
}

.ms-kalava-top::before,
.ms-kalava-under::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	height: var(--kalava-width);
	pointer-events: none;
}

.ms-kalava-top::before {
	top: 0;
}

.ms-kalava-under::after {
	bottom: 0;
}

/* TextLink: no underline at rest; the thread draws in under the text on hover and focus (160ms).
   .ms-k is the same thread for links that keep their own colour (menus, cards). */
.ms-link,
.ms-k {
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 var(--kalava-width), 0 var(--kalava-width);
	text-decoration: none;
	transition: background-size var(--duration-sm) var(--easing-out);
}

.ms-link {
	padding-bottom: var(--space-4);
	color: var(--text-link);
	font-weight: 600;
}

.ms-link:hover,
.ms-link:focus-visible,
.ms-k:hover,
.ms-k:focus-visible {
	background-size: 100% var(--kalava-width), 100% var(--kalava-width);
	text-decoration: none;
}

/* A standalone link has a 44px target; the thread sits just under its text, where an underline would. */
.ms-link--standalone {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	padding-bottom: 0;
	background-position: 0 calc(50% + 0.85em);
}

/* The 16px arrow keeps its size when the words wrap. */
.ms-link--standalone .ms-icon {
	flex-shrink: 0;
	color: currentColor;
}

/* When the words sit in their own span, the thread runs under the words only, never under the arrow,
   at the foot of the words; a wrapped link is underlined below its last line, never struck through
   (D-183(1), amends board 10's hover frame). */
.ms-link--standalone:has(> span:not(.ms-sr, .ms-wa-dot)) {
	background-image: none;
}

.ms-link--standalone > span:not(.ms-sr, .ms-wa-dot) {
	padding-bottom: var(--space-2);
	background-image: var(--kalava-image);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 var(--kalava-width), 0 var(--kalava-width);
	transition: background-size var(--duration-sm) var(--easing-out);
}

.ms-link--standalone:is(:hover, :focus-visible) > span:not(.ms-sr, .ms-wa-dot) {
	background-size: 100% var(--kalava-width), 100% var(--kalava-width);
}

/* A link inside a sentence keeps a 1px underline (WCAG 1.4.1); hover thickens it in kalava gold. */
.ms-link-inline {
	padding-bottom: 0;
	background-image: none;
	font-weight: inherit;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Restates the line: .ms-link:hover resets text-decoration, so ms-link + ms-link-inline would lose it. */
.ms-link-inline:is(:hover, :focus-visible) {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--kalava-gold);
}

/* ---------- Ghat-step corner (Tier 1): two 4px stair cuts, top-left and bottom-right, with a fine
   inner line (D-115(3)); small 44px buttons take one cut. The fill and line live on ::before / ::after,
   so the focus outline is never clipped. Core buttons with the Primary / Secondary styles, the reveal
   summary and the finder panel share the shape (core-blocks.css sets their colours). */
.ms-gs,
.wp-block-details.is-style-reveal > summary,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link {
	--s: var(--step-size);
	--gs-fill: var(--action-primary);
	--gs-ink: var(--text-on-primary);
	--gs-line: var(--gs-line-gold);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--btn-gap);
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--gs-ink);
	text-decoration: none;
	cursor: pointer;
	/* Every button eases into its hover state: the words here, the fill and line on ::before / ::after
	   (owner, 6 Nov 2026). Colour only, so it stays under reduced motion. */
	transition: transform var(--duration-xs) var(--easing-standard), color var(--duration-md) var(--easing-standard);
}

.ms-gs::before,
.ms-gs::after,
.wp-block-details.is-style-reveal > summary::after,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::before,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.ms-gs::before,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::before {
	background: var(--gs-fill);
	/* Every button eases into its hover over 220ms: fill, line and words (D-005, owner-component-rules 5 Nov). */
	transition: filter var(--duration-md) var(--easing-standard), background-color var(--duration-md) var(--easing-standard);
	clip-path: polygon(0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0, 100% 0, 100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 2) 100%, 0 100%);
}

.ms-gs::after,
.wp-block-details.is-style-reveal > summary::after,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::after {
	/* The gold inlay: 1px wide, 4px in (D-115(3)). */
	--a: var(--gs-line-inset);
	--b: calc(var(--gs-line-inset) + var(--gs-line-width));
	background: var(--gs-line);
	transition: background-color var(--duration-md) var(--easing-standard);
	clip-path: polygon(evenodd, var(--a) calc(var(--s) * 2 + var(--a)), calc(var(--s) + var(--a)) calc(var(--s) * 2 + var(--a)), calc(var(--s) + var(--a)) calc(var(--s) + var(--a)), calc(var(--s) * 2 + var(--a)) calc(var(--s) + var(--a)), calc(var(--s) * 2 + var(--a)) var(--a), calc(100% - var(--a)) var(--a), calc(100% - var(--a)) calc(100% - var(--s) * 2 - var(--a)), calc(100% - var(--s) - var(--a)) calc(100% - var(--s) * 2 - var(--a)), calc(100% - var(--s) - var(--a)) calc(100% - var(--s) - var(--a)), calc(100% - var(--s) * 2 - var(--a)) calc(100% - var(--s) - var(--a)), calc(100% - var(--s) * 2 - var(--a)) calc(100% - var(--a)), var(--a) calc(100% - var(--a)), var(--a) calc(var(--s) * 2 + var(--a)), var(--b) calc(var(--s) * 2 + var(--b)), calc(var(--s) + var(--b)) calc(var(--s) * 2 + var(--b)), calc(var(--s) + var(--b)) calc(var(--s) + var(--b)), calc(var(--s) * 2 + var(--b)) calc(var(--s) + var(--b)), calc(var(--s) * 2 + var(--b)) var(--b), calc(100% - var(--b)) var(--b), calc(100% - var(--b)) calc(100% - var(--s) * 2 - var(--b)), calc(100% - var(--s) - var(--b)) calc(100% - var(--s) * 2 - var(--b)), calc(100% - var(--s) - var(--b)) calc(100% - var(--s) - var(--b)), calc(100% - var(--s) * 2 - var(--b)) calc(100% - var(--s) - var(--b)), calc(100% - var(--s) * 2 - var(--b)) calc(100% - var(--b)), var(--b) calc(100% - var(--b)), var(--b) calc(var(--s) * 2 + var(--b)));
}

/* Edge: the line becomes the outline (secondary buttons). */
.ms-gs-edge::after,
.wp-block-details.is-style-reveal > summary::after,
.wp-block-button:is(.is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::after {
	--a: 0px;
	--b: var(--gs-edge-width);
}

/* Small (44px) buttons: ONE cut, top-left and bottom-right (D-115(3)); the fact chip takes the same
   single cut at its 3px step (D-115(5)). */
.ms-btn--sm,
.ms-btn-wa--sm {
	--s: var(--step-size-sm);
}

.ms-btn--sm::before,
.ms-btn-wa--sm::before,
.ms-gs-chip::before {
	clip-path: polygon(0 var(--s), var(--s) var(--s), var(--s) 0, 100% 0, 100% calc(100% - var(--s)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s)) 100%, 0 100%);
}

.ms-btn--sm::after,
.ms-btn-wa--sm::after {
	clip-path: polygon(evenodd, var(--a) calc(var(--s) + var(--a)), calc(var(--s) + var(--a)) calc(var(--s) + var(--a)), calc(var(--s) + var(--a)) var(--a), calc(100% - var(--a)) var(--a), calc(100% - var(--a)) calc(100% - var(--s) - var(--a)), calc(100% - var(--s) - var(--a)) calc(100% - var(--s) - var(--a)), calc(100% - var(--s) - var(--a)) calc(100% - var(--a)), var(--a) calc(100% - var(--a)), var(--a) calc(var(--s) + var(--a)), var(--b) calc(var(--s) + var(--b)), calc(var(--s) + var(--b)) calc(var(--s) + var(--b)), calc(var(--s) + var(--b)) var(--b), calc(100% - var(--b)) var(--b), calc(100% - var(--b)) calc(100% - var(--s) - var(--b)), calc(100% - var(--s) - var(--b)) calc(100% - var(--s) - var(--b)), calc(100% - var(--s) - var(--b)) calc(100% - var(--b)), var(--b) calc(100% - var(--b)), var(--b) calc(var(--s) + var(--b)));
}

/* A small primary keeps its gold inlay one step nearer the edge (3px), so it never reads as a flat block. */
.ms-btn--primary.ms-btn--sm::after {
	--a: calc(var(--gs-line-inset) - 1px);
	--b: var(--gs-line-inset);
}

/* Hover darkens the fill a little. WhatsApp and quiet buttons change their fill instead
   (components.css: one step darker cream, D-006, D-115(1); the soft band, D-115). */
.ms-gs:not(.ms-btn-wa, .ms-btn--quiet):hover::before,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link:hover::before {
	filter: brightness(0.92);
}

.ms-gs-edge:not(.ms-btn--quiet):hover::before,
.wp-block-button:is(.is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link:hover::before {
	filter: brightness(0.97);
}

.ms-gs:active,
.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link:active {
	transform: scale(0.98);
}

/* Static ghat-step shapes (finder panel, notes) and the small meta chip. */
.ms-gs-static {
	cursor: default;
}

.ms-gs-static:hover::before {
	filter: none;
}

.ms-gs-static:active {
	transform: none;
}

.ms-gs-chip {
	--s: var(--chip-step);
	--gs-fill: var(--surface-soft);
	--gs-ink: var(--text-primary);
	cursor: default;
}

.ms-gs-chip::after {
	display: none;
}

.ms-gs-chip:hover::before {
	filter: none;
}

.ms-gs-chip:active {
	transform: none;
}

/* Forced colours (Windows high contrast) paints over the clip-path fills, so every ghat-step shape
   keeps its stepped outline in system colours: 1px, 2px on a primary, Highlight on hover and focus,
   GrayText when disabled (D-115(3), board 10 "Forced colours"). The reveal summary, core buttons and
   the finder panel share the shape, so they share the outline; the chip is not a control. */
@media (forced-colors: active) {
	.ms-gs:not(.ms-gs-chip),
	.wp-block-details.is-style-reveal > summary,
	.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link {
		forced-color-adjust: none;
		color: ButtonText;
	}

	.ms-gs:not(.ms-gs-chip)::before,
	.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::before {
		background: ButtonFace;
		filter: none;
	}

	.ms-gs:not(.ms-gs-chip)::after,
	.wp-block-details.is-style-reveal > summary::after,
	.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link::after {
		--a: 0px;
		--b: 1px;
		display: block;
		background: ButtonText;
	}

	.ms-gs.ms-btn--primary::after,
	.wp-block-button:is(.is-style-primary, .is-style-fill) > .wp-block-button__link::after {
		--b: 2px;
	}

	/* Doubled class: beats the secondary hover (components.css, white words on maroon). */
	:is(a, button).ms-gs.ms-gs:not(.ms-gs-static):hover,
	.wp-block-details.is-style-reveal > summary:hover,
	.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link:hover {
		--gs-ink: HighlightText;
		color: HighlightText;
	}

	:is(a, button).ms-gs.ms-gs:not(.ms-gs-static):hover::before,
	.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link:hover::before {
		background: Highlight;
	}

	.ms-gs:not(.ms-gs-static, .ms-gs-chip):focus-visible,
	.wp-block-details.is-style-reveal > summary:focus-visible,
	.wp-block-button:is(.is-style-primary, .is-style-fill, .is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link:focus-visible {
		outline-color: Highlight;
	}

	.ms-gs:is(:disabled, [aria-disabled="true"]) {
		color: GrayText;
	}

	.ms-gs:is(:disabled, [aria-disabled="true"])::after {
		background: GrayText;
	}

	.ms-wa-dot {
		forced-color-adjust: none;
	}

	/* The done disc would take the button's ink on a fill of the same colour and vanish. Selectors
	   carry one more part than the aarti rules further down, which would otherwise win. */
	svg.ms-aarti-tick {
		forced-color-adjust: none;
	}

	.ms-aarti-tick .ms-aarti-disc {
		fill: CanvasText;
	}

	svg.ms-aarti-tick path {
		stroke: Canvas;
	}
}

/* ---------- Diya (Tier 1): the accordion lamp lights when its question opens ---------- */
.ms-diya {
	display: block;
	flex-shrink: 0;
	overflow: visible;
	color: var(--icon-ritual);
}

.ms-diya .ms-flame {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	transform: scale(0.15, 0);
	opacity: 0;
	transition: transform 260ms var(--easing-out), opacity var(--duration-sm) linear;
}

.ms-diya .ms-glow {
	opacity: 0;
	transition: opacity var(--duration-lg) var(--easing-out);
}

[aria-expanded="true"] .ms-diya .ms-flame,
.ms-diya.is-lit .ms-flame,
details[open] > summary .ms-diya .ms-flame {
	transform: scale(1, 1);
	opacity: 1;
}

[aria-expanded="true"] .ms-diya .ms-glow,
.ms-diya.is-lit .ms-glow,
details[open] > summary .ms-diya .ms-glow {
	opacity: 1;
}

/* A closed lamp flickers to half on hover (pointer devices only). */
@media (hover: hover) {
	[aria-expanded="false"]:hover .ms-diya .ms-flame {
		transform: scale(0.55, 0.4);
		opacity: 0.45;
	}
}

/* ---------- Kusha ring, moon phase, city landmark badge, trust seal ---------- */
.ms-kusha {
	display: block;
	flex-shrink: 0;
	color: var(--gold-700);
}

:is([data-theme="maroon"], .is-style-maroon) .ms-kusha {
	color: var(--gold-400);
}

.ms-moon {
	display: block;
	flex-shrink: 0;
}

.ms-landmark {
	display: block;
	flex-shrink: 0;
}

.ms-lm-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-pill);
	background-color: var(--cream-50);
	box-shadow: var(--shadow-raised);
	color: var(--maroon-600);
}

.ms-seal {
	display: block;
	flex-shrink: 0;
	transform: rotate(-8deg);
	filter: drop-shadow(var(--shadow-raised));
}

.ms-seal-num {
	font-family: var(--font-display);
}

/* The seal text line (ppn_seva_seal_line(), D-115(4)): the seal's facts wherever the 132px seal does not
   fit. Each fact is one unbreakable span, so the line wraps only at a separator (board 11 phone fixes). */
.ms-factline {
	margin: 0;
	font-size: var(--type-label-size);
	line-height: var(--type-label-lh);
	color: var(--text-secondary);
}

.ms-factline__item {
	white-space: nowrap;
}

/* ---------- Trust pill (ppn_seva_trust_pill(), D-115, board 10 [11]) ----------
   A short true claim that links to its proof: 44px pill (pills are allowed for trust pills), one step
   off its ground with no edge (a soft band switches --trustpill-bg, core-blocks.css), ink words, a 16px
   icon in the ritual colour and a chevron. Hover and focus underline the claim; the keyboard ring is
   the global one. */
.ms-trustpill {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--trustpill-height);
	padding: 0 var(--space-12) 0 var(--space-16);
	border-radius: var(--radius-pill);
	background-color: var(--trustpill-bg);
	color: var(--text-primary);
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
	text-decoration-line: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--duration-md) var(--easing-standard);
}

.ms-trustpill > .ms-icon:first-child {
	color: var(--icon-ritual);
}

.ms-trustpill__chev {
	color: var(--text-secondary);
}

/* On maroon the fill turns cream-100, so the words, chevron and icon take the light-ground values
   (the [data-theme="light"] reset in tokens.css); otherwise they would be white on cream. */
:is([data-theme="maroon"], .is-style-maroon) .ms-trustpill {
	--text-primary: var(--ink-900);
	--text-secondary: var(--ink-500);
	--icon-ritual: var(--terracotta-800);
}

.ms-trustpill:hover,
.ms-trustpill:focus-visible {
	text-decoration-color: currentColor;
}

@media (forced-colors: active) {
	.ms-trustpill {
		border: 1px solid LinkText;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-trustpill {
		transition: none;
	}
}

/* ---------- Spinner (busy buttons) ---------- */
.ms-spinner {
	display: inline-block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: ms-spin 700ms linear infinite; /* ppn-allow: a loader loop, not a transition; one turn in 700ms is the spinner's speed (no --duration-* step fits a rotation period; README Motion lets loaders loop) */
}

@keyframes ms-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Aarti loader ----------
   Owner, 7 Nov 2026: the site's one loading animation, on every booking button and every button that
   sends something and waits (it replaces "the screen's main commitment only").
   Busy: the Marigold thali circles clockwise like aarti, the plate kept level (rotate, translate,
   counter-rotate), with a 4deg hand tilt and a diya flicker. Done: a tick in a disc, in the button's
   own label and fill colours, held for duration-done-hold. assets/js/loader.js toggles is-busy / is-done;
   inc/loader.php prints the states. The states share one grid cell of their own (.ms-ld) inside the
   button, so the button keeps the width of its widest state and the layout its place gives it (inline,
   block, or the sticky bar's flex). */
.ms-ld {
	display: inline-grid;
	place-items: center;
	min-width: 0;
	max-width: 100%;
}

.ms-aarti-btn.is-busy,
.ms-aarti-btn.is-done {
	pointer-events: none;
}

/* WooCommerce greys a form while it sends it (blockUI's veil, z-index 1000): the busy button stays above
   the veil, so its thali shows. */
.processing .ms-aarti-btn.is-busy,
form:has(> .blockUI) .ms-aarti-btn.is-busy {
	z-index: 1001;
}

.ms-st {
	grid-area: 1 / 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-10);
	overflow: visible;
	transition: opacity var(--duration-sm) var(--easing-standard), transform var(--duration-md) var(--easing-out);
}

.ms-st-busy,
.ms-st-done {
	opacity: 0;
	transform: translateY(4px);
}

.is-busy .ms-st-idle,
.is-done .ms-st-idle {
	opacity: 0;
	transform: translateY(-4px);
}

.is-busy .ms-st-busy {
	opacity: 1;
	transform: none;
}

.is-done .ms-st-busy {
	opacity: 0;
	transform: scale(0.8);
	transition-duration: var(--duration-sm);
}

.is-done .ms-st-done {
	opacity: 1;
	transform: none;
}

.ms-aarti-thali {
	display: block;
	flex-shrink: 0;
	overflow: visible;
}

.ms-aarti-thali .ms-at-orbit {
	--r: 4px;
	transform: rotate(0deg) translateX(var(--r)) rotate(0deg);
}

.ms-aarti-thali .ms-at-tilt {
	transform-origin: 50% 58%;
}

.ms-aarti-thali .ms-at-flame,
.ms-aarti-thali .ms-at-glow {
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

.ms-aarti-thali.is-live .ms-at-orbit {
	animation: ms-aarti var(--duration-aarti) linear infinite;
	will-change: transform;
}

.ms-aarti-thali.is-live .ms-at-tilt {
	animation: ms-aarti-tilt calc(var(--duration-aarti) / 2) var(--easing-standard) infinite alternate;
}

.ms-aarti-thali.is-live .ms-at-flame {
	animation: ms-aarti-flicker 1.1s var(--easing-standard) infinite alternate;
}

.ms-aarti-thali.is-live .ms-at-glow {
	animation: ms-aarti-glow 1.1s var(--easing-standard) infinite alternate;
}

.ms-aarti-tick {
	display: block;
	flex-shrink: 0;
	overflow: visible;
}

.ms-aarti-disc {
	fill: var(--gs-ink, currentColor);
	transform-box: fill-box;
	transform-origin: center;
}

.ms-aarti-tick path {
	fill: none;
	stroke: var(--gs-fill, var(--surface-raised));
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 20;
	stroke-dashoffset: 20;
}

.is-done .ms-aarti-disc {
	animation: ms-aarti-seat 260ms var(--easing-out) both;
}

.is-done .ms-aarti-tick path {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset var(--duration-lg) var(--easing-out) 90ms;
}

@keyframes ms-aarti {
	from {
		transform: rotate(0deg) translateX(var(--r)) rotate(0deg);
	}
	to {
		transform: rotate(360deg) translateX(var(--r)) rotate(-360deg);
	}
}

@keyframes ms-aarti-tilt {
	from {
		transform: rotate(-4deg);
	}
	to {
		transform: rotate(4deg);
	}
}

@keyframes ms-aarti-flicker {
	0% {
		transform: scale(1, 1);
	}
	40% {
		transform: scale(0.92, 1.08);
	}
	100% {
		transform: scale(1.04, 0.94);
	}
}

@keyframes ms-aarti-glow {
	from {
		opacity: 0.25;
	}
	to {
		opacity: 0.55;
	}
}

@keyframes ms-aarti-seat {
	from {
		transform: scale(0.6);
	}
	to {
		transform: none;
	}
}

/* Reduced motion: no press scale, the diya lights without rising, the thali stays still while its glow
   pulses, the tick appears without drawing; loading spinners keep turning, slower (DS: loading excepted). */
@media (prefers-reduced-motion: reduce) {
	.ms-gs:active,
	.wp-block-button__link:active {
		transform: none !important;
	}

	.ms-diya .ms-flame {
		transition-property: opacity !important;
		transform: scale(1, 1) !important;
	}

	.ms-spinner {
		animation: ms-spin 1.2s linear infinite !important;
	}

	.ms-aarti-thali .ms-at-orbit,
	.ms-aarti-thali .ms-at-tilt,
	.ms-aarti-thali .ms-at-flame {
		animation: none !important;
		transform: none !important;
	}

	.ms-aarti-thali.is-live .ms-at-glow {
		animation: ms-aarti-glow 1.6s linear infinite alternate !important;
	}

	.ms-st {
		transform: none !important;
	}

	.ms-aarti-tick path {
		stroke-dasharray: none;
		stroke-dashoffset: 0;
	}

	.is-done .ms-aarti-disc {
		animation: none !important;
	}
}

/* ==== components.css ==== */
/**
 * Modern Seva: shared components, the markup the helpers in inc/template-tags.php print.
 * Section header, buttons, WhatsApp (C2), call link, actions row, chips, Price (C1), PlaceholderChip (C7),
 * check lists, Notice (C12) and the section notice, the list bar, card shell + lift, product card, review
 * card, accordion (C9), the Online | Offline switch (C14) and the dialog.
 *
 * Start point: tools/ds-source/bundle.css; visual values from the boards; tokens only. Class names are
 * BEM-ish (ms-block__part, ms-block--variant); the brand grammar keeps its DS names (ms-gs, ms-link).
 */

/* ---------- Section header ---------- */
.ms-sechead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-12) var(--space-16);
	margin-bottom: var(--head-gap); /* 20/24/32 by breakpoint (D-113, board 09). */
}

.ms-sechead__text {
	display: flex;
	flex: 1 1 20rem;
	flex-direction: column;
	gap: var(--space-12);
	min-width: 0;
}

.ms-sechead__title {
	margin: 0;
	font-family: var(--type-h2-family);
	font-size: var(--type-h2-size);
	font-weight: var(--type-h2-weight);
	line-height: var(--type-h2-lh);
	letter-spacing: -0.015em;
	color: var(--text-primary);
	text-wrap: pretty;
}

/* A sub-group title (h3) takes the box-title size. */
h3.ms-sechead__title {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	line-height: var(--type-h4-lh);
	letter-spacing: normal;
}

.ms-sechead__intro {
	max-width: var(--measure-slot);
	margin: 0;
	font-size: var(--type-body-size);
	line-height: var(--type-body-lh);
	color: var(--text-body);
	text-wrap: pretty;
}

.ms-sechead__aside {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-16);
	max-width: 100%;
}

/* A seal or a C14 switch sits level with the title block; a lone link stays on the title's last line. */
.ms-sechead__aside:has(> .ms-seal, > .ms-mode) {
	align-self: center;
}

@media (max-width: 767px) {
	.ms-sechead__aside:has(> .ms-mode) {
		flex: 1 1 100%;
	}
}

.ms-sechead--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ms-sechead--center .ms-sechead__text {
	flex-basis: auto;
	align-self: stretch;
	align-items: center;
}

/* Full width, so the words' cap (typography.css) measures the head, not the shrunk eyebrow: one line (board 21). */
.ms-sechead--center .ms-eyebrow {
	align-self: stretch;
	justify-content: center;
}

.ms-sechead--center .ms-sechead__intro {
	margin-inline: auto;
}

/* ---------- Buttons (ghat-step shape from brand.css) ---------- */
.ms-btn {
	max-width: 100%;
	min-height: var(--control-md);
	padding: var(--space-10) var(--btn-pad-x);
	font-family: var(--type-button-md-family);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	line-height: var(--type-button-md-lh);
	text-align: center;
	user-select: none;
}

.ms-btn--primary {
	--gs-fill: var(--action-primary);
	--gs-ink: var(--text-on-primary);
	--gs-line: var(--gs-line-gold);
}

.ms-btn--secondary {
	--gs-fill: var(--action-secondary-bg);
	--gs-ink: var(--action-secondary);
	--gs-line: var(--action-secondary);
}

.ms-btn--quiet {
	--gs-fill: var(--surface-raised);
	--gs-ink: var(--text-primary);
	--gs-line: var(--border-control);
}

/* Quiet hover: the soft band, eased over 220ms by the ::before transition (D-005, D-115). */
.ms-btn--quiet:hover {
	--gs-fill: var(--surface-soft);
}

/* Secondary and quiet buttons draw their line as the outline. */
.ms-btn--secondary::after,
.ms-btn--quiet::after {
	--a: 0px;
	--b: var(--gs-edge-width);
}

/* Every size keeps the 24px sides of .ms-btn (D-115(3)); only height and words change. */
.ms-btn--sm {
	min-height: var(--control-sm);
	font-size: var(--type-button-sm-size);
}

.ms-btn--lg {
	min-height: var(--control-lg);
	font-size: var(--type-button-lg-size);
}

.ms-btn--block {
	display: flex;
	width: 100%;
}

/* Pressed and busy take the darker shade. .ms-gs doubles the class so this beats the hover filter in
   brand.css (.ms-gs:not(…):hover::before), which would otherwise hold the lighter hover shade. */
.ms-gs.ms-btn--primary:active::before,
.ms-gs.ms-btn--primary[aria-busy="true"]::before {
	filter: brightness(0.85);
}

.ms-btn:disabled,
.ms-btn[aria-disabled="true"],
.ms-btn-wa[aria-disabled="true"] {
	opacity: var(--opacity-disabled);
	pointer-events: none;
}

.ms-btn[aria-busy="true"] {
	pointer-events: none;
}

.ms-btn .ms-icon {
	flex-shrink: 0;
}

/* Icons follow the words (D-115): 20 beside 16px button words, 16 (stroke 2) beside 14px words. */
.ms-btn:not(.ms-btn--sm) > .ms-icon {
	width: var(--icon-sm);
	height: var(--icon-sm);
}

.ms-btn--sm .ms-icon,
.ms-link .ms-icon,
.ms-chip .ms-icon {
	width: var(--icon-xs);
	height: var(--icon-xs);
	stroke-width: var(--icon-stroke-fine);
}

/* The label span of a button (call button, WhatsApp button): a long label, or one long word, wraps inside
   the button instead of spilling out of both sides of a full-width button at 320px. */
.ms-btn > span:not(.ms-sr),
.ms-btn-wa > span:not(.ms-wa-dot, .ms-sr) {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Actions row: buttons and links side by side, wrapping. --stack puts each on its own full row on mobile. */
.ms-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-12);
}

/* In a content action row a short label never makes a stub (D-115(3)); bars and the header keep
   their own widths. */
.ms-actions > :is(.ms-btn, .ms-btn-wa) {
	min-width: min(var(--btn-min-w), 100%);
}

.ms-actions--center {
	justify-content: center;
}

.ms-actions--end {
	justify-content: flex-end;
}

@media (max-width: 767px) {
	.ms-actions--stack {
		flex-direction: column;
		align-items: stretch;
	}

	.ms-actions--stack > .ms-btn,
	.ms-actions--stack > .ms-btn-wa {
		display: flex;
		width: 100%;
	}

	/* A text link keeps its own width, centred: its thread runs under its words only (owner, 10 Nov 2026). */
	.ms-actions--stack > .ms-link {
		align-self: center;
		justify-content: center;
	}
}

/* Icon-only round button (dialog close, header controls). */
.ms-iconbtn {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--target-min);
	height: var(--target-min);
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	color: var(--icon-ui);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--duration-xs) var(--easing-standard);
}

.ms-iconbtn--ghost {
	background-color: transparent;
	color: inherit;
}

@media (hover: hover) {
	.ms-iconbtn:hover {
		background-color: var(--surface-sunken);
	}
}

/* ---------- WhatsApp (C2, D-115(1)): a cream fill one step off its ground, a tone-on-tone sand edge on
   the outline, ink words; green only in the glyph circle. Never maroon (D-006). The dot sits 16px from
   the edge (12 on small), the words end 24px from the right. ---------- */
.ms-btn-wa {
	--gs-fill: var(--wa-button-bg);
	--gs-ink: var(--wa-button-text);
	--gs-line: var(--wa-button-border);
	max-width: 100%;
	min-height: var(--control-md);
	padding: 0 var(--btn-pad-x) 0 var(--wa-inset);
	gap: var(--btn-gap);
	font-family: var(--type-button-md-family);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	line-height: var(--type-button-md-lh);
	text-align: left;
}

.ms-btn-wa--lg {
	min-height: var(--control-lg);
	font-size: var(--type-button-lg-size);
}

.ms-btn-wa--sm {
	min-height: var(--control-sm);
	padding: 0 var(--btn-pad-x) 0 var(--wa-inset-sm);
	font-size: var(--type-button-sm-size);
}

/* Full width: the content centres with even 16px sides. */
.ms-btn-wa--block {
	display: flex;
	width: 100%;
	justify-content: center;
	padding-inline: var(--wa-inset);
}

/* The edge is one 1px line ON the outline (no grey line inset from it, no halo). */
.ms-btn-wa::after {
	--a: 0px;
	--b: 1px;
}

/* Hover: the cream darkens one step (brand.css leaves the filter off WhatsApp). */
.ms-btn-wa:hover {
	--gs-fill: var(--wa-button-bg-hover);
}

/* Icon only: a round 48px button with a 1px control ring (DS accessibility: border-control). */
.ms-btn-wa--icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--control-md);
	height: var(--control-md);
	padding: 0;
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--wa-button-bg);
	text-decoration: none;
}

.ms-btn-wa--icon:hover {
	background-color: var(--wa-button-bg-hover);
}

.ms-wa-dot {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--wa-dot);
	height: var(--wa-dot);
	border-radius: var(--radius-pill);
	background-color: var(--whatsapp-500);
	color: var(--white);
}

.ms-wa-dot svg {
	width: var(--wa-glyph);
	height: var(--wa-glyph);
}

.ms-btn-wa--lg .ms-wa-dot,
.ms-btn-wa--icon .ms-wa-dot {
	width: var(--wa-dot-lg);
	height: var(--wa-dot-lg);
}

.ms-btn-wa--lg .ms-wa-dot svg,
.ms-btn-wa--icon .ms-wa-dot svg {
	width: var(--wa-glyph-lg);
	height: var(--wa-glyph-lg);
}

/* Phone bars: under 414px the labelled button becomes the icon-only disc, because a converted total
   beside it overflows at 390 (D-134 Q-4, board 13). The words stay as its accessible name. */
@media (max-width: 413px) {
	.ms-btn-wa--collapse {
		width: var(--control-md);
		min-width: var(--control-md);
		height: var(--control-md);
		padding: 0;
		border: 1px solid var(--border-control);
		border-radius: var(--radius-pill); /* ppn-allow: icon-only WhatsApp disc under 414px, D-134 Q-4 */
		background-color: var(--wa-button-bg);
	}

	.ms-btn-wa--collapse::before,
	.ms-btn-wa--collapse::after {
		display: none;
	}

	.ms-btn-wa--collapse:hover {
		background-color: var(--wa-button-bg-hover);
	}

	.ms-btn-wa--collapse .ms-wa-dot {
		width: var(--wa-dot-lg);
		height: var(--wa-dot-lg);
	}

	.ms-btn-wa--collapse .ms-wa-dot svg {
		width: var(--wa-glyph-lg);
		height: var(--wa-glyph-lg);
	}

	.ms-btn-wa--collapse > span:not(.ms-wa-dot) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* WhatsApp text link (ppn_seva_whatsapp_button() size "link"): a TextLink in ink with the same dot. */
.ms-wa-link {
	gap: var(--btn-gap);
	color: var(--text-primary);
}

/* Its glyph is drawn as in the buttons, 14px at the 1.75 stroke (D-182(6)), not the 16px / stroke 2
   of icons beside link words (.ms-link .ms-icon above). */
.ms-wa-link .ms-wa-dot .ms-icon {
	width: var(--wa-glyph);
	height: var(--wa-glyph);
	stroke-width: var(--icon-stroke);
}

.ms-reply {
	margin: 0;
	font-size: var(--type-caption-size);
	font-weight: var(--type-caption-weight);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

/* Call link: a standalone TextLink with the phone glyph. */
.ms-call .ms-icon {
	color: var(--icon-ritual);
}

/* ---------- Chips ---------- */

/* Fact chip: the one small ghat-step chip (with .ms-gs .ms-gs-chip): 26px, one 3px cut, 12/16 fact
   role in dark ink, 14px icon; never interactive (D-115(5), D-110(6)). */
.ms-meta {
	min-height: var(--chip-height);
	padding: 0 var(--chip-pad-x);
	gap: var(--space-4);
	font-family: var(--type-fact-family);
	font-size: var(--type-fact-size);
	font-weight: var(--type-fact-weight);
	line-height: var(--type-fact-lh);
	white-space: nowrap;
}

.ms-meta .ms-icon {
	width: var(--icon-2xs);
	height: var(--icon-2xs);
	stroke-width: var(--icon-stroke-fine);
	color: var(--icon-ritual);
}

/* Status chip: tone = colour + icon + words (never colour alone). */
.ms-status {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--space-6);
	max-width: 100%;
	min-height: var(--chip-height);
	padding: var(--space-4) var(--space-10);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-chip);
	background-color: var(--surface-soft);
	color: var(--text-primary);
	font-family: var(--type-chip-family);
	font-size: var(--type-chip-size);
	font-weight: var(--type-chip-weight);
	line-height: var(--type-chip-lh);
}

.ms-status .ms-icon {
	/* The icon carries the meaning (D-183(4): triangle = action needed, clock = waiting), so a wrapped
	   label never squeezes it (fix-list F-24). */
	flex-shrink: 0;
	width: var(--icon-2xs);
	height: var(--icon-2xs);
	margin-top: 1px;
	stroke-width: var(--icon-stroke-fine);
	color: var(--icon-ritual);
}

.ms-status--danger {
	border-color: var(--status-danger-border);
	background-color: var(--status-danger-bg);
	color: var(--status-danger-text);
}

.ms-status--danger .ms-icon {
	color: var(--status-danger-text);
}

.ms-status--attention {
	border-color: var(--status-attention-mark);
	background-color: var(--status-attention-bg);
	color: var(--status-attention-text);
}

.ms-status--attention .ms-icon {
	color: var(--status-attention-mark);
}

.ms-status--success {
	border-color: var(--status-success-border);
	background-color: var(--status-success-bg);
	color: var(--status-success-text);
}

.ms-status--success .ms-icon {
	color: var(--status-success-mark);
}

.ms-status--neutral {
	border-color: var(--status-neutral-border);
	background-color: var(--status-neutral-bg);
	color: var(--status-neutral-text);
}

.ms-status--neutral .ms-icon {
	color: var(--status-neutral-text);
}

/* Filter chip (44px pill; selected = aria-pressed, aria-expanded (a chip that opens a panel) or aria-current). */
.ms-chip {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--control-sm);
	padding: 0 var(--space-16);
	/* Controls keep a 3:1 edge (D-112, D-115). */
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font-family: var(--type-button-sm-family);
	font-size: var(--type-button-sm-size);
	font-weight: var(--type-button-sm-weight);
	line-height: var(--type-button-sm-lh);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--duration-sm) var(--easing-standard), color var(--duration-sm) var(--easing-standard), border-color var(--duration-sm) var(--easing-standard);
}

@media (hover: hover) {
	.ms-chip:hover {
		background-color: var(--surface-soft);
	}
}

.ms-chip[aria-pressed="true"],
.ms-chip[aria-expanded="true"],
.ms-chip[aria-current="page"] {
	border-color: var(--action-primary);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
}

/* Forced colours paint over that fill, so the pressed or current chip (jump-nav, review filters) takes
   the system highlight. Here, after the rule above, so it wins at the same specificity. The outline
   colour is the focus ring's, which the adjust-none would otherwise leave at its brand value. Blocks
   with the same fill-only selected state (guided-finder answers, reviews pages) do this in their file. */
@media (forced-colors: active) {
	.ms-chip[aria-pressed="true"],
	.ms-chip[aria-expanded="true"],
	.ms-chip[aria-current="page"] {
		border-color: Highlight;
		background-color: Highlight;
		color: HighlightText;
		outline-color: CanvasText;
		forced-color-adjust: none;
	}
}

/* Quiet chip (D-183(2), board 22): the city hub's edgeless jump links, plain words between hairlines.
   No edge and no fill at rest, 14/500, soft fill on hover. The selected state keeps the maroon fill
   above, so every rule here skips it. */
.ms-chip--quiet:not([aria-pressed="true"], [aria-expanded="true"], [aria-current="page"]) {
	padding-inline: var(--space-12);
	border-color: transparent; /* ppn-allow: the quiet chip itself (D-183(2)) */
	background-color: transparent; /* ppn-allow: the quiet chip itself (D-183(2)) */
	font-family: var(--type-body-sm-family);
	font-size: var(--type-body-sm-size);
	font-weight: 500;
}

@media (hover: hover) {
	.ms-chip--quiet:not([aria-pressed="true"], [aria-expanded="true"], [aria-current="page"]):hover {
		background-color: var(--surface-soft); /* ppn-allow: the quiet chip itself (D-183(2)) */
	}
}

/* ---------- Price (C1) ---------- */
.ms-price {
	font-family: var(--font-ui);
}

.ms-price__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-4) var(--space-10);
	margin: 0;
}

.ms-price__main {
	font-family: var(--type-price-md-family);
	font-size: var(--type-price-md-size);
	font-weight: var(--type-price-md-weight);
	line-height: var(--type-price-md-lh);
	color: var(--text-price);
	white-space: nowrap;
}

.ms-price__lead {
	font-size: var(--type-body-sm-size);
	font-weight: 500; /* One quiet "from" at every size: 500, body ink (D-185 Q-5). */
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
}

/* A crossed-out regular price is never printed by ppn_seva_price() (D-081). Kept only while the booking
   box (parts/product/booking.php, ledger 3d) and the finder script (guided-finder.js) still emit it. */
.ms-price__struck {
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: line-through;
	white-space: nowrap;
}

.ms-price__suffix,
.ms-price__line {
	font-size: var(--type-caption-size);
	font-weight: var(--type-caption-weight);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

.ms-price__line {
	margin: var(--space-6) 0 0;
}

.ms-price .woocommerce-Price-amount {
	white-space: nowrap;
}

.ms-price--lg .ms-price__main {
	font-size: var(--type-price-lg-size);
	line-height: var(--type-price-lg-lh);
}

.ms-price--lg :is(.ms-price__lead, .ms-price__struck) {
	font-size: var(--type-body-size);
}

.ms-price--sm .ms-price__main {
	font-size: var(--type-price-sm-size);
	line-height: var(--type-price-sm-lh);
}

.ms-price--sm :is(.ms-price__lead, .ms-price__struck) {
	font-size: var(--type-caption-size);
	font-weight: 500;
}

.ms-price--sm .ms-price__lead {
	line-height: var(--type-meta-lh);
}

/* The fourth size (board 5): 16/22 from 768, 14/20 on phones, where a compare column is 98px wide. */
.ms-price--xs .ms-price__main {
	font-size: var(--type-price-sm-size);
	line-height: var(--type-price-sm-lh);
	font-variant-numeric: tabular-nums lining-nums;
}

@media (max-width: 767px) {
	.ms-price--xs .ms-price__main {
		font-size: var(--type-body-sm-size);
		line-height: var(--card-desc-lh);
	}
}

/* Price on request: a neutral pill, never a typed figure. */
.ms-price__request {
	display: inline-flex;
	align-items: center;
	min-height: var(--chip-height);
	padding: 2px var(--space-10);
	border-radius: var(--radius-pill);
	background-color: var(--status-neutral-bg);
	color: var(--status-neutral-text);
	font-size: var(--type-chip-size);
	font-weight: var(--type-chip-weight);
	line-height: var(--type-chip-lh);
}

/* ---------- PlaceholderChip (C7): editor preview only; dashed gold on white (4.9:1) ---------- */
.ms-ph {
	display: inline-block;
	padding: 0 5px;
	border: 1.5px dashed var(--placeholder-border);
	border-radius: var(--radius-xs);
	background-color: var(--white);
	color: var(--placeholder-text);
	font-family: var(--type-chip-family);
	font-size: var(--type-chip-size);
	font-style: normal;
	font-weight: var(--type-chip-weight);
	line-height: var(--type-chip-lh);
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
}

.ms-ph--dark,
:is([data-theme="maroon"], .is-style-maroon) .ms-ph {
	border-width: 1px;
	background-color: transparent;
	color: var(--placeholder-text);
}

.ms-ph--dark {
	color: var(--gold-200);
}

/* ---------- Check lists and kusha facts ---------- */
.ms-checks {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-checks li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-primary);
}

/* flex-shrink: 0 keeps the 18px icon whole beside a line that wraps. */
.ms-checks__icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--status-success-mark);
}

.ms-checks__icon.ms-icon--close {
	color: var(--text-secondary);
}

.ms-checks__icon:is(.ms-icon--plus, .ms-icon--info, .ms-icon--alert) {
	color: var(--icon-ritual);
}

:is([data-theme="maroon"], .is-style-maroon) .ms-checks__icon.ms-icon--check {
	color: var(--text-accent);
}

.ms-facts {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-facts li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-10);
	font-size: var(--type-body-size);
	line-height: var(--type-body-lh);
	color: var(--text-body);
}

.ms-facts .ms-kusha {
	margin-top: 2px;
}

/* ---------- Notice (C12 service scope, info notes) ---------- */
.ms-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--space-10);
	padding: var(--space-14) var(--space-16);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-chip);
	background-color: var(--surface-soft);
	color: var(--text-body);
}

/* WooCommerce's notices (woocommerce/notices/*.php) keep its classes for its scripts; its stylesheet then
   draws a second icon (::before, its icon font) and a clearfix (::after) the house notice does not use. */
.ms-notice.ms-wc-notice::before,
.ms-notice.ms-wc-notice::after {
	content: none;
	display: none;
}

/* The room under a WooCommerce notice (the added-to-booking message and the rest), as board 15 has it:
   woocommerce.css gave 2em, and it no longer loads (D-159). The cart sets its own (cart.css). */
.ms-notice.ms-wc-notice {
	margin: 0 0 2em; /* ppn-allow: D-159 board 15 parity */
}

.ms-notice > .ms-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--icon-ritual);
}

.ms-notice__stack {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

.ms-notice__title {
	margin: 0;
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
	color: var(--text-primary);
}

.ms-notice__body {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	text-wrap: pretty;
}

.ms-notice__body > * {
	margin: 0;
}

.ms-notice__body > * + * {
	margin-top: var(--space-8);
}

.ms-notice--attention {
	border-color: var(--status-attention-mark);
	background-color: var(--status-attention-bg);
}

.ms-notice--attention > .ms-icon {
	color: var(--status-attention-mark);
}

.ms-notice--success {
	border-color: var(--status-success-border);
	background-color: var(--status-success-bg);
}

.ms-notice--success > .ms-icon,
.ms-notice--success .ms-notice__title {
	color: var(--status-success-text);
}

.ms-notice--error {
	border-color: var(--error-fill-border);
	background-color: var(--error-fill);
}

.ms-notice--error > .ms-icon,
.ms-notice--error .ms-notice__title {
	color: var(--error-text);
}

/* Danger and error tones do not flip (DS: never red or maroon text on deep maroon), so on a maroon
   ground they sit on a light fill: maroon-600 on white 9.1:1, red-700 on white 6.5:1. The success fill
   does not flip either, while the notice's text colour does: both keep the light-ground ink for the body. */
:is([data-theme="maroon"], .is-style-maroon) :is(.ms-status--danger, .ms-notice--error) {
	background-color: var(--white);
}

:is([data-theme="maroon"], .is-style-maroon) :is(.ms-notice--error, .ms-notice--success) .ms-notice__body {
	color: var(--ink-700);
}

/* Section notice (owner's mocks 12, 13 and 15, 10 Nov 2026): the one look of every note a section block
   prints with role=note (steps, packages, ritual tabs, included list, time slots, the feature-grid
   footer). The info icon (22px, whatever size the markup asks) sits centred beside the words, a hairline
   between them; the words at body size, an optional lead in bold. Markup: .ms-notice.ms-notice--section >
   svg.ms-icon + p.ms-notice__body > [strong] text. The plain notice (WooCommerce, cart, account, the
   ppn/notice block) is unchanged. Spacing around it belongs to the block. */
.ms-notice--section {
	align-items: center;
	gap: var(--space-12);
	padding: var(--space-12) var(--space-16);
	border-color: transparent;
	border-radius: var(--radius-md);
}

/* v2 (ledger 4c, board 11 [9]): the icon sits inline at 20 beside 16px words; no inner divider. */
.ms-notice--section > .ms-icon {
	flex-shrink: 0;
	width: var(--notice-icon);
	height: var(--notice-icon);
	margin-top: 0;
}

.ms-notice--section > .ms-notice__body {
	min-width: 0;
	color: var(--text-body);
	font-size: var(--type-body-size);
	font-weight: 400;
	line-height: var(--type-body-lh);
}

.ms-notice--section > .ms-notice__body strong {
	color: var(--text-primary);
	font-weight: 700;
}

@media (min-width: 768px) {
	.ms-notice--section {
		padding: var(--space-16) var(--space-20);
	}
}

/* Forced colours (board 11 [13]): the outline-free notices get a system edge back. */
@media (forced-colors: active) {
	.ms-notice--section,
	.ms-notice--scope {
		border-color: CanvasText;
	}
}

/* On a cream band the notice takes the card surface: cream on cream would lose its box. */
.is-style-cream .ms-notice--section {
	background-color: var(--surface-raised);
}

/* ---------- List bar (owner, 7 and 10 Nov 2026): a list's title and its soft count pill ----------
   The bar above a list of cards: the ritual overview's packages ("Pind Daan packages" + "3 packages",
   the guidance link and the switch after it) and the time slots (calendar icon, "Recommended ceremony
   windows", the zone pill). Markup: .ms-listbar > [.ms-listbar__icon] .ms-listbar__title
   [.ms-listbar__count]; the count may also sit inside the title. Spacing around the bar and anything
   pushed to its far end belong to the block. */
.ms-listbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-12);
}

.ms-listbar__icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--icon-ritual);
}

.ms-listbar__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-12);
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-h3-family);
	font-size: var(--type-h3-size);
	font-weight: var(--type-h3-weight);
	line-height: var(--type-h3-lh);
}

/* The packages count pill as it was (28px, line-height 1). A block whose pill can wrap onto two lines
   (a long time zone on a narrow phone) gives it a taller line in its own file. */
.ms-listbar__count {
	display: inline-flex;
	align-items: center;
	min-height: var(--chip-height);
	padding: 0 var(--space-12);
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	color: var(--text-primary);
	font-family: var(--type-chip-family);
	font-size: var(--type-chip-size);
	font-weight: var(--type-chip-weight);
	line-height: 1;
}

/* ---------- Card shell: one link (the title), stretched over the card ---------- */
.ms-card {
	--card-radius: var(--radius-xl);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	min-width: 0;
	padding: var(--card-pad);
	/* No card border (D-112): the edge is transparent on light grounds, white 14% on maroon. */
	border: 1px solid var(--border-surface);
	border-radius: var(--card-radius);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
	color: var(--text-body);
	text-decoration: none;
}

.ms-card--warm {
	box-shadow: var(--shadow-card-warm);
}

.ms-card__media {
	position: relative;
	aspect-ratio: var(--ratio-card);
	overflow: hidden;
	border-radius: var(--radius-md);
	background-color: var(--surface-sunken);
}

.ms-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The mode badge on the photo, 12 from its top left edge (ppn_seva_mode_badge(); owner, 5 Nov 2026;
   board 5). White, lifted off the photo by the one on-photo shadow (a filter: the stepped chip's cuts
   clip a box-shadow). The whole card is the link, so the badge lets the click through. */
.ms-card__badge {
	position: absolute;
	top: var(--space-12);
	left: var(--space-12);
	z-index: 1;
	display: flex;
	max-width: calc(100% - var(--space-24));
	pointer-events: none;
}

.ms-card__badge .ms-meta {
	--gs-fill: var(--surface-raised);
	filter: var(--filter-on-photo);
}

.ms-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-10);
	min-width: 0;
}

/* Icon and title side by side; a long title wraps beside the icon, never under it. */
.ms-card__title {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
	margin: 0;
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-card__title .ms-icon {
	flex-shrink: 0;
	margin-top: 0.1em;
	color: var(--icon-ritual);
}

.ms-card__link {
	color: inherit;
	text-decoration: none;
}

.ms-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--card-radius);
}

/* The focus ring goes round the whole card (the link's stretched area), not just the title text. */
.ms-card__link:focus-visible {
	outline: none;
}

.ms-card__link:focus-visible::after {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* A control drawn over a photo (the hero and video play discs). The photo, not the section ground, is
   behind its ring, so the ring does not follow the ground (white on a maroon section vanished over a
   light poster): the light-ground ring with a white band on both sides, which reads on light and dark
   photos alike. The class sits on the element that carries the ring: the focused control itself, or
   the disc inside it. The spread covers the offset gap and as much again outside the ring; the disc's
   own float shadow is kept under it. */
.ms-on-photo:focus-visible,
:focus-visible > .ms-on-photo {
	outline: var(--focus-width) solid var(--maroon-600);
	outline-offset: var(--focus-offset);
	box-shadow: 0 0 0 calc(var(--focus-offset) + var(--focus-width) * 2) var(--white), var(--shadow-toast);
}

/* Other controls inside a card stay clickable above the stretched link. */
.ms-card :is(a, button, input, select, textarea, summary):not(.ms-card__link) {
	position: relative;
	z-index: 2;
}

.ms-card__desc {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
}

.ms-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
	margin: 0;
}

.ms-card__foot {
	margin-top: auto;
}

/* Lift: clickable cards only, pointer devices only. The photo zooms 1.02 inside its frame (D-003, which
   reverses the 30 Oct "no zoom"; README Interaction states; motion-brief §3, 300ms). */
.ms-card--link,
a.ms-card {
	cursor: pointer;
}

@media (hover: hover) {
	.ms-card--link,
	a.ms-card {
		transition: transform var(--duration-lg) var(--easing-out), box-shadow var(--duration-lg) var(--easing-out);
	}

	.ms-card--link:hover,
	a.ms-card:hover {
		transform: translateY(-2px);
		box-shadow: var(--shadow-raised);
	}

	.ms-card--link .ms-card__media img,
	a.ms-card .ms-card__media img {
		transition: transform var(--duration-lg) var(--easing-out);
	}

	.ms-card--link:hover .ms-card__media img,
	a.ms-card:hover .ms-card__media img {
		transform: scale(1.02);
	}
}

/* ---------- Rating line and availability ---------- */
.ms-rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
	margin: 0;
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-body);
}

.ms-rating strong {
	font-weight: 600;
	color: var(--text-primary);
}

/* Star: the one shared rule (D-188(1)). One colour; a context sets only its size. Stars are graphics,
   3:1 on their ground (WCAG 1.4.11). The review form's stars are a control (review-form.css). */
.ms-star {
	color: var(--text-accent);
}

/* Score card (board 19, amended by D-188(1)): 24px, centred on the figure. */
.ms-rhead__figure .ms-star {
	align-self: center;
	font-size: var(--type-h3-size);
	line-height: 1;
}

.ms-avail {
	display: inline-flex;
	align-items: center;
	gap: var(--space-6);
	margin: 0;
	font-size: var(--type-caption-size);
	font-weight: 600;
	line-height: var(--type-caption-lh);
	color: var(--status-success-text);
}

.ms-avail::before {
	content: "";
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: var(--radius-pill);
	background-color: var(--status-success-mark);
}

.ms-avail--out {
	color: var(--status-neutral-text);
}

.ms-avail--out::before {
	background-color: var(--text-secondary);
}

:is([data-theme="maroon"], .is-style-maroon) .ms-avail {
	color: var(--text-primary);
}

/* ---------- Product card ---------- */

/* The product card title takes the card-title role, 16/22/600 (D-111), also where a script builds the
   card without the .ms-pkc parts (the finder's results). */
.ms-product-card__title {
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
}

.ms-product-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6);
	margin: 0;
}

.ms-product-card__place {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	margin: 0;
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

.ms-product-card__place .ms-icon {
	color: var(--icon-ritual);
}

.ms-product-card__notices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-product-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-12);
	margin-top: auto;
	padding-top: var(--space-4);
}

.ms-product-card__foot .ms-price {
	flex: 1 1 10rem;
	min-width: 0;
}

/* ---------- The card family's parts (v2 board 5, D-120; ledger 3a) ----------
   Package, ritual, city and article cards share one recipe: the photo flush at 4:3 (it overlaps the
   card's transparent 1px edge, so its corners equal the card's 18), the body padded 16, no border
   (D-112, D-113). Inside: kicker 12/18/600 and rating 12/18 on one line, title 16/22/600 on two
   balanced lines, difference line 12/18, fact chips 12/16, description 14/20, then a hairline and the
   foot (price 20/24/700 tabular, dark ink; button right). Four sizes a card: 12, 14, 16, 20. */
:is(.ms-pkc, .ms-city-card--photo):has(> .ms-card__media:first-child) {
	gap: 0;
	padding: 0;
}

:is(.ms-pkc, .ms-city-card--photo) > .ms-card__media:first-child {
	margin: -1px -1px 0;
	border-radius: var(--card-radius) var(--card-radius) 0 0;
}

:is(.ms-pkc, .ms-city-card--photo):has(> .ms-card__media:first-child) > .ms-card__body {
	padding: var(--card-body-pad, var(--card-pad));
}

.ms-pkc > .ms-card__body {
	gap: 0;
}

/* Lines the recipe does not name (place, mode and editor chips, low-stock label, notices) keep 8 below. */
.ms-pkc > .ms-card__body > :is(.ms-product-card__place, .ms-product-card__chips, .ms-card__meta, .ms-pkc__avail, .ms-product-card__notices) {
	margin: 0 0 var(--space-8);
}

/* 12 to the hairline from whatever sits last above the foot. */
.ms-pkc > .ms-card__body > :has(+ :is(.ms-pkc__foot, .ms-pkc__byline)) {
	margin-bottom: var(--space-12);
}

.ms-pkc__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-8);
	margin: 0 0 var(--space-4);
}

.ms-pkc__kicker {
	min-width: 0;
	margin: 0;
	font-family: var(--type-meta-family);
	font-size: var(--type-meta-size);
	font-weight: 600;
	line-height: var(--type-meta-lh);
	color: var(--text-accent);
}

.ms-pkc__rating {
	flex-shrink: 0;
	gap: var(--space-2);
	margin-left: auto;
	font-size: var(--type-meta-size);
	line-height: var(--type-meta-lh);
	white-space: nowrap;
}

.ms-pkc__count {
	color: var(--text-secondary);
}

.ms-card__title.ms-pkc__title {
	display: -webkit-box;
	margin: 0 0 var(--space-8);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--card-title-lines);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
	color: var(--text-primary);
	text-wrap: balance;
}

/* Shop rows: a card with no kicker and no rating keeps the top line's 18 + 4, so its title starts level
   with its neighbours (F-34). The packages block levels rows with shared tracks; the ritual rail in its sheet. */
@media (min-width: 768px) {
	.ms-shop__grid .ms-pkc > .ms-card__body > .ms-pkc__title:first-child {
		margin-top: calc(var(--type-meta-lh) + var(--space-4));
	}
}

.ms-pkc__title .ms-icon {
	margin-right: var(--space-4);
	vertical-align: -3px;
}

/* Article titles are full questions: up to four lines, never cut mid-thought. */
.ms-pkc__title--long {
	--card-title-lines: 4;
}

.ms-pkc__diff {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: 0 0 var(--space-4);
	font-family: var(--type-meta-family);
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-body);
}

.ms-pkc__avail {
	align-self: flex-start;
}

/* Fact chips: the one fact chip (D-115(5)) on the soft fill, its own hook. */
.ms-factchips {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: var(--factchips-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-factchip {
	--gs-fill: var(--surface-soft);
}

.ms-factchips__more {
	display: inline-flex;
	align-items: center;
	min-height: var(--chip-height);
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
	white-space: nowrap;
}

.ms-card__desc.ms-pkc__desc {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: var(--type-body-sm-size);
	line-height: var(--card-desc-lh);
	color: var(--text-secondary);
}

.ms-pkc--ritual .ms-pkc__desc {
	margin-bottom: var(--space-8);
}

/* Foot: hairline, then the price left and the button right, the figure centred on the 44px button.
   A lead ("from") is taken out of the flow at 12/16, over the figure. Where a card is too narrow for
   both (today's 3-across grids at 768-1179, until the grid builds by its own width, ledger 3b), the
   button wraps under the price, still on the right. */
.ms-pkc__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8) var(--space-12);
	margin-top: auto;
	padding-top: var(--space-12);
	border-top: 1px solid var(--border-subtle);
}

.ms-pkc__price {
	position: relative;
	flex: none;
	min-width: 0;
}

.ms-pkc__price .ms-price__main {
	font-size: var(--type-price-md-size);
	line-height: var(--type-price-md-lh);
	font-variant-numeric: tabular-nums lining-nums;
}

.ms-pkc__price .ms-price__lead {
	position: absolute;
	bottom: 100%;
	left: 0;
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-fact-lh);
	color: var(--text-body); /* The one quiet "from" (D-185 Q-5). */
	white-space: nowrap;
}

.ms-pkc__na {
	margin: 0;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	line-height: var(--card-desc-lh);
	color: var(--text-secondary);
}

.ms-pkc__cta {
	flex-shrink: 0;
	margin-left: auto;
}

/* Out of stock: the photo dims; "Not available" where the price sits; the button reads "View details". */
.ms-pkc--out .ms-card__media img {
	opacity: var(--opacity-disabled);
}

/* Article card: read time on the top line, byline under a hairline. */
.ms-pkc__read {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-4);
	margin: 0 0 0 auto;
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
}

.ms-pkc__read .ms-icon {
	color: var(--icon-ritual);
}

.ms-pkc__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-12);
	margin: auto 0 0;
	padding-top: var(--space-12);
	border-top: 1px solid var(--border-subtle);
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
}

/* A row's hairlines stay level when a long author name wraps the byline to two lines (D-184(6)):
   two lines are held from 768, where cards share a row. */
@media (min-width: 768px) {
	.ms-pkc__byline {
		min-height: calc(var(--type-meta-lh) * 2 + var(--space-12) + 1px);
		align-content: flex-start;
	}
}

/* Keyboard focus on a card fills its button, as pointer hover does; the ring goes round the card. */
.ms-card--link:not([data-theme="maroon"] *):has(.ms-card__link:focus-visible) :is(.ms-product-card__cta, .ms-ritual-card__cta) {
	--gs-fill: var(--action-primary);
	--gs-ink: var(--text-on-primary);
	--gs-line: var(--action-primary);
	color: var(--text-on-primary);
}

/* ---------- Review card (DS ReviewCard; no verified badge, D-055) ---------- */
.ms-review {
	gap: var(--space-12);
	margin: 0;
	padding: var(--space-20);
	box-shadow: var(--shadow-card-warm);
}

.ms-review__stars {
	margin: 0;
	font-size: var(--type-body-lg-size);
	line-height: 1;
	letter-spacing: 0.1em;
	color: var(--text-accent);
}

.ms-review__star--empty {
	color: var(--border-control);
}

.ms-review__quote {
	margin: 0;
	font-family: var(--type-quote-family);
	font-size: var(--type-quote-size);
	font-weight: var(--type-quote-weight);
	line-height: var(--type-quote-lh);
	color: var(--text-primary);
}

.ms-review__quote p {
	margin: 0;
}

.ms-review__quote p + p {
	margin-top: var(--space-8);
}

/* The name line (D-188(2)): the name alone, then the package on one line (cut with "…") and the year
   once after it (the helper leaves the year out where the package name carries one). */
.ms-review__by {
	display: grid;
	grid-template-columns: minmax(0, auto) auto;
	align-items: center;
	justify-content: start;
	gap: var(--space-4) var(--space-10);
	margin-top: auto;
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-body);
}

.ms-review__by strong {
	font-weight: 600;
	color: var(--text-primary);
}

.ms-review__by > .ms-review__name {
	grid-column: 1 / -1;
}

.ms-review__by > :is(.ms-review__pkg, .ms-review__year) {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* The package fact chip is a flex box, which cannot cut its words with "…". */
.ms-review__by > .ms-factchip {
	display: block;
}

/* ---------- Accordion (C9): diya trigger, grid-rows panel, kalava under an open answer on a bare list ----------
   Markup: [data-ppn-accordion] > .ms-acc-item > .ms-acc-h > button.ms-acc-trigger[aria-expanded][aria-controls]
   + .ms-acc-panel[id][data-closed] > div > .ms-acc-a. assets/js/accordion.js drives it. */
.ms-acc {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--border-default);
}

.ms-acc-item {
	position: relative;
	border-bottom: 1px solid var(--border-default);
}

/* An open answer keeps its 1px line plus a 24px kalava thread at its start (ledger 4b, board 11 [5]; image in brand.css). */
.ms-acc-item.is-open::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: var(--acc-open-thread);
	height: var(--kalava-width);
	border-radius: 2px;
	pointer-events: none;
}

/* Inside a card (FAQ cards, product questions, Know your ceremony) the card edge frames the list: no thread (D-187(3)). */
:is(.ms-faq__list, .ms-kyc__guide) > .ms-acc-item.is-open::after {
	content: none;
}

.ms-acc-h {
	margin: 0;
	font: inherit;
}

.ms-acc-trigger {
	display: flex;
	align-items: center;
	gap: var(--space-14);
	width: 100%;
	min-height: var(--control-lg);
	padding: var(--space-10) var(--space-4);
	border: 0;
	border-radius: var(--radius-sm);
	background-color: transparent;
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
	text-align: left;
	cursor: pointer;
	transition: background-color var(--duration-xs) var(--easing-standard);
}

@media (hover: hover) {
	.ms-acc-trigger:hover {
		background-color: var(--surface-soft);
	}
}

.ms-acc-trigger:focus-visible {
	outline-offset: var(--focus-offset);
}

.ms-acc-q {
	flex: 1;
	min-width: 0;
	text-wrap: wrap; /* Natural wrap: the heading's balance made three short lines on phones (board 18 [8]). */
}

/* The 20px chevron at the right of the row, beside the diya (D-118(4)); it turns 180deg with the panel's
   own 220ms (none under reduced motion, below). */
.ms-acc-chev {
	flex-shrink: 0;
	width: var(--icon-sm);
	height: var(--icon-sm);
	margin-inline-start: auto;
	color: var(--text-secondary);
	transition: transform var(--duration-md) var(--easing-standard);
}

[aria-expanded="true"] > .ms-acc-chev {
	transform: rotate(180deg);
}

.ms-acc-panel {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows var(--duration-md) var(--easing-standard);
}

.ms-acc-panel[data-closed] {
	grid-template-rows: 0fr;
}

.ms-acc-panel > div {
	min-height: 0;
	overflow: hidden;
}

/* Closed answers leave the tab order once the collapse has finished. */
.ms-acc-panel[data-closed] > div {
	visibility: hidden;
	transition: visibility 0s linear var(--duration-md);
}

.ms-acc-a {
	padding: 0 var(--space-4) var(--space-16) calc(30px + var(--space-14) + var(--space-4));
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
}

.ms-acc-a > * {
	margin: 0;
}

.ms-acc-a > * + * {
	margin-top: var(--space-8);
}

/* ---------- Online | Offline switch (C14) ----------
   Markup: .ms-mode[role=group][aria-label] > button.ms-mode-btn[data-mode=online|offline][aria-pressed][aria-controls],
   panels .ms-mode-panel[id] (+ .is-hidden) each opening with p.ms-mode-hint. Full width under the heading on
   mobile, beside it from 768px. Instant swap: no animation. assets/js/mode-switch.js drives it. */
.ms-mode-switch {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.ms-mode {
	display: flex;
	gap: var(--space-4);
	width: 100%;
	max-width: 100%;
	padding: var(--space-4);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
}

.ms-mode-btn {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: var(--space-8);
	min-width: 0;
	min-height: var(--control-sm);
	padding: 0 var(--space-16);
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background-color: transparent;
	color: var(--text-primary);
	font-family: var(--type-button-sm-family);
	font-size: var(--type-button-sm-size);
	font-weight: var(--type-button-sm-weight);
	line-height: var(--type-button-sm-lh);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--duration-sm) var(--easing-out), color var(--duration-sm) var(--easing-out), border-color var(--duration-sm) var(--easing-out);
}

.ms-mode-btn .ms-icon {
	flex-shrink: 0;
}

/* The count after the word, quieter (D-189(6), board 21 .ms-chooser__n); on the filled button it takes the white words. */
.ms-mode-btn__count {
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: var(--text-secondary);
}

.ms-mode-btn[aria-pressed="true"] .ms-mode-btn__count {
	color: inherit;
}

@media (hover: hover) {
	.ms-mode-btn:hover {
		background-color: var(--surface-raised);
	}
}

.ms-mode-btn[aria-pressed="true"],
.ms-mode-btn[aria-pressed="true"]:hover {
	border-color: var(--action-primary);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
}

@media (min-width: 768px) {
	.ms-mode {
		display: inline-flex;
		width: auto;
	}

	.ms-mode-btn {
		flex: 0 0 auto;
		padding-inline: var(--space-20);
	}

	.ms-mode--full {
		display: flex;
		width: 100%;
	}

	.ms-mode--full .ms-mode-btn {
		flex: 1 1 0;
	}
}

.ms-mode-panel {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.ms-mode-panel.is-hidden {
	display: none;
}

.ms-mode-hint {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
	text-wrap: pretty;
}

/* ---------- Dialog: native <dialog class="ms-dialog">, bottom sheet under 768px, centred modal above ---------- */
.ms-dialog {
	width: 100%;
	max-width: 100%;
	max-height: 90vh;
	margin: auto 0 0;
	padding: var(--space-8) var(--space-20) var(--space-20);
	overflow: auto;
	border: 0;
	border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-sheet);
	color: var(--text-body);
}

.ms-dialog::backdrop {
	background-color: var(--scrim);
}

.ms-dialog[open] {
	animation: ms-sheet-in var(--duration-lg) var(--easing-out) both;
}

.ms-dialog[open]::backdrop {
	animation: ms-fade var(--duration-lg) var(--easing-out) both;
}

/* Dialog head = sheet head: title left, the 44px close (.ms-iconbtn) right, 12px between. */
.ms-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-12);
	padding-bottom: var(--space-12);
}

.ms-dialog__title {
	margin: 0;
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-dialog__body {
	margin-top: var(--space-8);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-dialog__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-8);
	margin-top: var(--space-20);
}

body:has(.ms-dialog[open]) {
	overflow: hidden;
}

@media (min-width: 768px) {
	.ms-dialog {
		max-width: 520px;
		margin: auto;
		padding: var(--space-24);
		border-radius: var(--radius-2xl);
		box-shadow: var(--shadow-modal);
	}

	.ms-dialog[open] {
		animation-name: ms-modal-in;
	}
}

/* Leaving (assets/js/sheet.js sets [data-closing], then closes natively once the "-out-" animation ends):
   80% of the entry (240ms) on easing-in; phones slide the whole way down, from 768 the modal fades back
   to .98. Opening mid-exit removes the attribute, so the dialog stays (D-027). Search (.ms-srch) keeps its
   own 220/176ms (search.css, board 14). */
.ms-dialog[data-closing] {
	animation: ms-dialog-out-down calc(var(--duration-lg) * 0.8) var(--easing-in) forwards;
}

.ms-dialog[data-closing]::backdrop {
	animation: ms-sheet-out-fade calc(var(--duration-lg) * 0.8) var(--easing-in) forwards;
}

@media (min-width: 768px) {
	.ms-dialog[data-closing] {
		animation-name: ms-dialog-out-scale;
	}
}

@keyframes ms-dialog-out-down {
	to {
		transform: translateY(100%);
	}
}

@keyframes ms-dialog-out-scale {
	to {
		opacity: 0;
		transform: scale(0.98);
	}
}

/* Settled after being opened mid-exit (sheet.js plays the exit backwards, D-027): the entry must not replay.
   [open] lifts it over the reduced-motion rules (also !important); close() removes the attribute first. */
:is(.ms-dialog, .ms-viewer)[open][data-settled],
:is(.ms-dialog, .ms-viewer)[open][data-settled]::backdrop,
.ms-sidesheet[open][data-settled] .ms-sidesheet__panel,
.ms-sidesheet[open][data-settled]::backdrop {
	animation: none !important;
}

/* Phone foot (dialog and sheets, board 15 [15]): full-width buttons, stacked, the primary last (nearest
   the thumb), Need help under them. */
@media (max-width: 767px) {
	.ms-dialog__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.ms-dialog__foot > :is(.ms-btn, .ms-btn-wa) {
		width: 100%;
	}

	.ms-dialog__foot > :not(.ms-btn--primary) {
		order: 1;
	}

	.ms-dialog__foot > .ms-btn--primary {
		order: 2;
	}

	.ms-dialog__foot > .ms-needhelp {
		order: 3;
	}
}

@keyframes ms-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes ms-sheet-in {
	from {
		transform: translateY(100%);
	}
	to {
		transform: none;
	}
}

@keyframes ms-modal-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Reduced motion: no lift, no slide, no height animation; the switch was instant already. */
@media (prefers-reduced-motion: reduce) {
	.ms-card--link:hover,
	a.ms-card:hover,
	.ms-card--link:hover .ms-card__media img,
	a.ms-card:hover .ms-card__media img {
		transform: none !important;
	}

	.ms-acc-panel,
	.ms-acc-panel > div,
	.ms-acc-chev {
		transition: none !important;
	}

	/* 120ms fades in and out, no travel (README Motion). */
	.ms-dialog[open],
	.ms-dialog[open]::backdrop {
		animation: ms-fade var(--duration-xs) linear both !important;
	}

	.ms-dialog[data-closing],
	.ms-dialog[data-closing]::backdrop {
		animation: ms-sheet-out-fade var(--duration-xs) linear forwards !important;
	}
}

/* Every button eases into its hover and pressed states (owner, 6 Nov 2026). A component that sets its own
   transition keeps it (this rule has no specificity); the ghat-step shape eases in brand.css. */
:where(button, [role="button"], input:is([type="submit"], [type="button"], [type="reset"]), .ms-btn, .ms-btn-wa, .ms-iconbtn, .ms-chip) {
	transition-property: color, background-color, border-color, box-shadow, transform, filter;
	transition-duration: var(--duration-md);
	transition-timing-function: var(--easing-standard);
}

/* === Board alignment, 5 Nov 2026 === */
/* Owner, 5 Nov: secondary buttons fill with the accent maroon, white text, on hover. Not on a maroon
   ground, where the fill would disappear into the band. WhatsApp buttons never turn maroon (owner, 6 Nov
   2026): on every ground their cream darkens a little and the green dot moves (brand.css, motion.css). */
@media (hover: hover) {
	:is(a, button).ms-btn--secondary:not([data-theme="maroon"] *):hover,
	.ms-card--link:not([data-theme="maroon"] *):hover :is(.ms-product-card__cta, .ms-ritual-card__cta) {
		--gs-fill: var(--action-primary);
		--gs-ink: var(--text-on-primary);
		--gs-line: var(--action-primary);
		color: var(--text-on-primary);
	}

	/* The call button's phone glyph follows the white words on the maroon fill; the ritual colour
	   would vanish there (D-182(1), fix-list F-13). */
	:is(a, button).ms-btn--secondary.ms-call:not([data-theme="maroon"] *):hover .ms-icon {
		color: currentColor;
	}
}

/* The reply time is marked (strong) for the strip's emphasis; elsewhere it reads as plain text. */
.ms-reply strong {
	font-weight: inherit;
}

/* ---------- Section bar (parts/section-nav.php; owner, 6 Nov 2026; v2 board 14 [13], ledger 2c) ----------
   A white pill of links to the page's sections, centred; it sticks under the header bar while its
   sections scroll past (--sticky-top, header.css). The tab of the section being read is filled maroon
   (section-nav.js sets aria-current="location"). No hairline (D-112): the card shadow at rest, the
   float shadow while stuck; nothing moves but opacity. From 768 every tab fits; on a phone the pill
   scrolls sideways and fades on the side that has more. Only the pill takes clicks: the full-width
   strip around it lets them through. */
.ms-secnav {
	position: sticky;
	top: calc(var(--sticky-top) + var(--space-8));
	z-index: var(--z-sticky);
	display: flex;
	justify-content: center;
	padding-inline: var(--gutter);
	pointer-events: none;
	transition: opacity var(--duration-md) var(--easing-standard), visibility 0s linear var(--duration-md);
}

.ms-secnav:not(.is-past) {
	transition: opacity var(--duration-md) var(--easing-standard), visibility 0s;
}

.ms-secnav__list {
	display: flex;
	gap: var(--space-4);
	max-width: 100%;
	margin: 0;
	padding: var(--space-4);
	overflow-x: auto;
	border: 1px solid var(--border-surface);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
	list-style: none;
	scrollbar-width: none;
	pointer-events: auto;
	transition: box-shadow var(--duration-md) var(--easing-standard);
}

.ms-secnav__list::-webkit-scrollbar {
	display: none;
}

.ms-secnav.is-stuck .ms-secnav__list {
	box-shadow: var(--shadow-float);
}

/* Past the last section while stuck (section-nav.js; a landing page's banner and form follow its
   sections in the same wrapper): the bar steps aside. */
.ms-secnav.is-past {
	visibility: hidden;
	opacity: 0;
}

/* Edge fades over the pill, on the side that has more (section-nav.js sets data-more only while the
   list is wider than its box: phones, and a page with many tabs between 768 and 1180). */
.ms-secnav::before,
.ms-secnav::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: var(--space-40);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--duration-sm) var(--easing-standard);
}

.ms-secnav::before {
	left: var(--gutter);
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
	background-image: linear-gradient(to right, var(--surface-raised), transparent);
}

.ms-secnav::after {
	right: var(--gutter);
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
	background-image: linear-gradient(to left, var(--surface-raised), transparent);
}

.ms-secnav:has(.ms-secnav__list[data-more~="start"])::before,
.ms-secnav:has(.ms-secnav__list[data-more~="end"])::after {
	opacity: 1;
}

.ms-secnav__list > li {
	flex-shrink: 0;
}

.ms-secnav__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	padding: 0 var(--space-16);
	border-radius: var(--radius-pill);
	color: var(--text-primary);
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
	white-space: nowrap;
	text-decoration: none;
	scroll-margin-inline: var(--space-24); /* A focused tab scrolls clear of the edge fade on phones. */
	transition: background-color var(--duration-sm) var(--easing-standard), color var(--duration-sm) var(--easing-standard);
}

@media (hover: hover) {
	.ms-secnav__link:not([aria-current]):hover {
		background-color: var(--surface-soft);
		color: var(--action-primary);
		text-decoration: none;
	}
}

.ms-secnav__link:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: calc(var(--focus-width) * -1); /* ppn-allow: inset, the scrolling pill clips an outset ring (v2-craft-navigation §9, F-10b) */
}

/* On the filled current tab the ring takes the tab's words colour, so it shows on maroon (D-189 finding). */
.ms-secnav__link[aria-current="location"]:focus-visible {
	outline-color: currentColor;
}

.ms-secnav__link[aria-current="location"] {
	background-color: var(--action-primary);
	color: var(--text-on-primary);
}

/* From 768 every tab fits on one line: tab sides 12. */
@media (min-width: 768px) {
	.ms-secnav__link {
		padding-inline: var(--space-12);
		font-size: var(--type-body-size);
	}
}

@media (forced-colors: active) {
	.ms-secnav__link[aria-current="location"] {
		background-color: Highlight;
		color: HighlightText;
		forced-color-adjust: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-secnav,
	.ms-secnav:not(.is-past),
	.ms-secnav::before,
	.ms-secnav::after,
	.ms-secnav__list,
	.ms-secnav__link {
		transition: none;
	}
}

/* ---------- Fields: the one field family (v2 board 15 [1] and [4], D-126, D-130; ledger 5a) ----------
   Label 14/20/600 above; a 48px box, 16px words, radius 12, a 3:1 edge (--border-control); focus = maroon
   edge + the 2px ring. Hints 14/20. No stars: an optional field says "(optional)" in its label. The error
   line sits under the field, 14/20 with a 16px alert icon; the field takes the error edge and fill.
   Checkout's WooCommerce rows (checkout.css) and the enquiry form (blocks/form.css) use the same values. */
.ms-input {
	width: 100%;
	min-width: 0;
	min-height: var(--control-md);
	padding: 0 var(--space-16);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font-family: var(--font-ui);
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-lh);
	transition: border-color var(--duration-xs) var(--easing-standard), background-color var(--duration-xs) var(--easing-standard);
}

textarea.ms-input {
	min-height: calc(var(--control-md) * 2.5);
	padding-block: var(--space-12);
}

.ms-input::placeholder {
	color: var(--text-secondary);
	opacity: 1;
}

@media (hover: hover) {
	.ms-input:hover:not(:focus) {
		border-color: var(--text-secondary);
	}
}

.ms-input:focus {
	border-color: var(--action-primary);
}

.ms-input:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-input[aria-invalid="true"] {
	border-color: var(--error-border);
	background-color: var(--error-fill);
}

/* Autofill (fix-list F-35, B1.4): a browser that fills saved details paints its own pale blue. The ink stays
   ours and the fill change is held off for good, so the field keeps --surface-raised on the cream card.
   Checkout's rows carry .ms-input; the enquiry form's fields (blocks/form.css) are listed by name. */
.ms-input:-webkit-autofill,
.ms-form .ppn-enq-form .ppn-enq-form__field :is(input, select, textarea):-webkit-autofill {
	-webkit-text-fill-color: var(--text-primary);
	caret-color: var(--text-primary);
	transition: background-color 0s 600000s; /* ppn-allow: holds the browser's autofill fill off, not motion (F-35) */
}

.ms-input:autofill,
.ms-form .ppn-enq-form .ppn-enq-form__field :is(input, select, textarea):autofill {
	-webkit-text-fill-color: var(--text-primary);
	caret-color: var(--text-primary);
	transition: background-color 0s 600000s; /* ppn-allow: holds the browser's autofill fill off, not motion (F-35) */
}

/* Disabled (F-35, B1.4; patterns.md system states): soft fill and quieter words, edge unchanged so it still
   reads as a field. */
.ms-input:disabled {
	background-color: var(--surface-soft);
	color: var(--text-secondary);
	cursor: not-allowed;
}

/* The error line under a field: checkout's own lines (.ms-co-err), WooCommerce's inline message, the review
   and account forms (.ms-rf__error). Their words are written by three scripts (checkout.js, WooCommerce's
   checkout script, review-form.js / travel-help.js), so the icon is drawn here, once, as a mask in the
   text colour: no script has to insert it. The enquiry form prints its own icon (blocks/form.js). */
.ms-co-err,
.ms-rf__error,
.checkout-inline-error-message {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
	margin: 0;
	font-size: var(--type-label-size);
	font-weight: 500;
	line-height: var(--type-label-lh);
	color: var(--error-text);
}

.ms-co-err::before,
.ms-rf__error::before,
.checkout-inline-error-message::before {
	content: "";
	flex: none;
	width: var(--icon-xs);
	height: var(--icon-xs);
	margin-top: var(--space-2);
	background-color: currentColor;
	-webkit-mask: var(--ms-icon-alert) center / contain no-repeat;
	mask: var(--ms-icon-alert) center / contain no-repeat;
}

.ms-co-err[hidden],
.ms-rf__error[hidden],
.ms-co-err:empty,
.ms-rf__error:empty {
	display: none;
}

/* No stars: WooCommerce prints one in every required label and its address script (address-i18n.js) adds
   them again when the country changes, so it is hidden here rather than removed from the markup. The field
   keeps required / aria-required; optional fields say "(optional)". */
.form-row label .required {
	display: none;
}

:root {
	/* The theme's "alert" icon (inc/icons-data.php), for the error lines above. */
	--ms-icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 5.5L4.5 16.5C3.5 18 4.5 20 6 20H18C19.5 20 20.5 18 19.5 16.5L13.5 5.5C13 4 11 4 10.5 5.5ZM12 9.5V12.5M12 16V16.5'/%3E%3C/svg%3E");
}

/* ErrorSummary (board 15 [4]): the error Notice's look, unchanged; only its list is new. A refused step
   moves focus to it (checkout.js window.ppnErrorSummary), so it is NOT a live region: role=alert would
   announce it twice while focus already reads it. Each row links to its field. */
.ms-errsum {
	margin-bottom: var(--space-20);
}

.ms-errsum:focus:not(:focus-visible) {
	outline: none;
}

.ms-errsum:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-errsum__list {
	display: grid;
	gap: var(--space-4);
	margin: var(--space-4) 0 0;
	padding: 0;
	list-style: none;
}

.ms-errsum__list a {
	display: inline-flex;
	align-items: center;
	min-height: var(--space-24);
	color: var(--error-text);
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ms-errsum__list a:focus-visible {
	border-radius: var(--radius-xs);
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Error lines and the summary arrive with a 4px drop, never a shake (§9a inputs); reduced motion: a fade. */
.ms-co-err:not([hidden]),
.ms-rf__error:not([hidden]),
.checkout-inline-error-message,
.ms-errsum:not([hidden]) {
	animation: ms-err-in var(--duration-sm) var(--easing-out) both;
}

@media (prefers-reduced-motion: reduce) {
	.ms-co-err:not([hidden]),
	.ms-rf__error:not([hidden]),
	.checkout-inline-error-message,
	.ms-errsum:not([hidden]) {
		animation: ms-fade-only var(--duration-xs) linear both;
	}
}

/* ---------- Show password: one look for the sign-in "Show" (.ms-ac-pw__show, form-login.php) and
   WooCommerce's checkout button (.show-password-input, woocommerce.js), 12/18/600 at the field's end
   (F-37). WooCommerce's button is empty: the word comes from ::before, its aria-label stays the name. */
.ms-ac-pw__show,
.show-password-input {
	position: absolute;
	top: 50%;
	right: var(--space-4);
	min-height: var(--control-sm);
	padding: 0 var(--space-12);
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	font-family: var(--font-ui);
	font-size: var(--type-meta-size);
	line-height: var(--type-meta-lh);
	font-weight: 600;
	color: var(--action-primary);
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color var(--duration-xs) var(--easing-standard);
}

.show-password-input::before {
	content: "Show";
}

.show-password-input.display-password::before {
	content: "Hide";
}

@media (hover: hover) {
	:is(.ms-ac-pw__show, .show-password-input):hover {
		background-color: var(--surface-soft);
	}
}

.ms-ac-pw__show[hidden] {
	display: none;
}

:is(.ms-ac-pw__show, .show-password-input):focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	/* Inside the field, clear of its edge: a 3px outset ring would cross the field's own line (F-10h). */
	outline-offset: calc(-1 * var(--focus-width));
}

/* ---------- Booking journey (parts/journey.php): Cart · Checkout · Confirmed ---------- */
.ms-journey__list {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-journey__step {
	position: relative;
	display: flex;
	flex: 0 0 5.5rem;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	font-size: var(--type-caption-size);
	color: var(--text-secondary);
}

/* Equal steps with no gap; the thread runs between two numbers, 6px clear of each. */
.ms-journey__step + .ms-journey__step::before {
	content: "";
	position: absolute;
	top: 14px;
	right: calc(50% + 20px);
	width: calc(100% - 40px);
	height: 1px;
	background-color: var(--border-default);
}

.ms-journey__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid var(--border-default);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	font-weight: 700;
	color: var(--text-secondary);
}

.ms-journey__step.is-current {
	font-weight: 600;
	color: var(--text-primary);
}

.ms-journey__step.is-current .ms-journey__num {
	border-color: var(--action-primary);
	color: var(--action-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--action-primary) 12%, transparent);
}

.ms-journey__step.is-done .ms-journey__num {
	border-color: var(--action-primary);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
}

/* ---------- Stepper (quantity: the product page, the cart, the fly-cart) ---------- */
.ms-stepper {
	display: inline-flex;
	align-items: center;
	/* Controls keep a 3:1 edge (D-112, D-185 Q-2; amends boards 13, 18). */
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
}

.ms-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--target-min);
	height: var(--target-min);
	border: 0;
	border-radius: var(--radius-pill);
	background: none;
	color: var(--text-primary);
	cursor: pointer;
	transition: background-color var(--duration-sm) var(--easing-standard);
}

@media (hover: hover) {
	.ms-stepper__btn:not(:disabled):hover {
		background-color: var(--surface-soft);
	}
}

.ms-stepper__btn:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* At the minimum (or maximum) product.js sets `disabled` on the button: the button family's dimmed
   look, no hover, no pointer (fix-list F-26, V1 finding 18). */
.ms-stepper__btn:disabled {
	opacity: var(--opacity-disabled);
	cursor: default;
}

.ms-stepper__input {
	width: 3.5em;
	min-height: var(--target-min);
	border: 0;
	background: none;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

/* The number's ring moves to the pill, so it is round and whole (fix-list F-10c). */
.ms-stepper__input:focus-visible {
	outline: none;
}

.ms-stepper:has(.ms-stepper__input:focus-visible) {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-stepper__input::-webkit-inner-spin-button,
.ms-stepper__input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.ms-stepper:has([data-step]:not([hidden])) .ms-stepper__input {
	width: var(--target-min);
}

@media (prefers-reduced-motion: reduce) {
	.ms-stepper__btn {
		transition: none;
	}
}

/* ---------- Side sheet (the additions drawer, the fly-cart): a dialog from the right, a sheet from
   the bottom on phones ---------- */
.ms-sidesheet {
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-body);
}

.ms-sidesheet::backdrop {
	background-color: var(--scrim);
}

body:has(.ms-sidesheet[open]) {
	overflow: hidden;
}

.ms-sidesheet__panel {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	max-height: 92%;
	border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
	background-color: var(--surface-page);
	box-shadow: var(--shadow-sheet);
}

@media (min-width: 768px) {
	.ms-sidesheet__panel {
		inset: 0 0 0 auto;
		width: min(460px, 100%);
		max-height: none;
		border-radius: 0;
		box-shadow: var(--shadow-drawer);
	}
}

/*
 * The overlay family's motion (board 15, §9a #13, motion brief §2): in 300ms easing out, out at 80%
 * (240ms) easing in on [data-closing] (assets/js/sheet.js waits for the "-out-" animations, and opening
 * mid-exit cancels it, D-027); the scrim fades with the panel. Reduced motion: 120ms fades, no travel.
 */
@media (prefers-reduced-motion: no-preference) {
	.ms-sidesheet[open] .ms-sidesheet__panel {
		animation: ms-sidesheet-up var(--duration-lg) var(--easing-out);
	}

	.ms-sidesheet[open]::backdrop {
		animation: ms-sheet-in-fade var(--duration-lg) var(--easing-out);
	}

	.ms-sidesheet[data-closing] .ms-sidesheet__panel {
		animation: ms-sheet-out-down calc(var(--duration-lg) * 0.8) var(--easing-in) forwards;
	}

	.ms-sidesheet[data-closing]::backdrop {
		animation: ms-sheet-out-fade calc(var(--duration-lg) * 0.8) var(--easing-in) forwards;
	}

	@media (min-width: 768px) {
		.ms-sidesheet[open] .ms-sidesheet__panel {
			animation-name: ms-sidesheet-in;
		}

		.ms-sidesheet[data-closing] .ms-sidesheet__panel {
			animation-name: ms-sheet-out-right;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-sidesheet[open] .ms-sidesheet__panel,
	.ms-sidesheet[open]::backdrop {
		animation: ms-sheet-in-fade var(--duration-xs) linear;
	}

	.ms-sidesheet[data-closing] .ms-sidesheet__panel,
	.ms-sidesheet[data-closing]::backdrop {
		animation: ms-sheet-out-fade var(--duration-xs) linear forwards;
	}
}

/* Sheets travel their whole size (§9a #13, board 15 [11]): up from the bottom on phones, in from the right
   from 768. */
@keyframes ms-sidesheet-up {
	from {
		transform: translateY(100%);
	}
}

@keyframes ms-sidesheet-in {
	from {
		transform: translateX(100%);
	}
}

@keyframes ms-sheet-in-fade {
	from {
		opacity: 0;
	}
}

@keyframes ms-sheet-out-down {
	to {
		transform: translateY(100%);
	}
}

@keyframes ms-sheet-out-right {
	to {
		transform: translateX(100%);
	}
}

@keyframes ms-sheet-out-fade {
	to {
		opacity: 0;
	}
}

/* The phone grab handle of every sheet and the dialog, 36 x 4 (one value, board 15 [15]): a cue only;
   Close and Esc stay the ways out. Side sheets and the centred dialog from 768 have none. */
.ms-addons__handle,
.ms-flycart__handle,
.ms-dialog__handle {
	display: block;
	flex-shrink: 0;
	width: calc(var(--space-32) + var(--space-4));
	height: var(--space-4);
	margin: var(--space-8) auto 0;
	border-radius: var(--radius-pill);
	background-color: var(--border-control);
}

/* The dialog's own top padding already sits above it. */
.ms-dialog__handle {
	margin: 0 auto var(--space-8);
}

@media (min-width: 768px) {
	.ms-addons__handle,
	.ms-flycart__handle,
	.ms-dialog__handle {
		display: none;
	}
}

.ms-sidesheet__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-12);
	padding: var(--space-20) var(--space-20) var(--space-12);
}

.ms-sidesheet__head > div > * {
	margin: 0;
}

.ms-sidesheet__title {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-sidesheet__desc {
	margin-top: var(--space-4) !important;
	font-size: var(--type-body-sm-size);
	color: var(--text-secondary);
}

.ms-sidesheet__head,
.ms-sidesheet__foot {
	flex-shrink: 0;
}

.ms-sidesheet__body {
	flex: 1 1 auto;
	padding: var(--space-4) var(--space-20) var(--space-20);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ms-sidesheet__foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	padding: var(--space-14) var(--space-20) calc(var(--space-14) + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--border-subtle);
	background-color: var(--surface-raised);
}

/* Phone foot (board 15): full-width buttons stacked, the primary last (nearest the thumb), Need help under. */
@media (max-width: 767px) {
	.ms-sidesheet__foot > :is(.ms-btn, .ms-btn-wa) {
		width: 100%;
	}

	.ms-sidesheet__foot > :not(.ms-btn--primary) {
		order: 1;
	}

	.ms-sidesheet__foot > .ms-btn--primary {
		order: 2;
	}

	.ms-sidesheet__foot > .ms-needhelp {
		order: 3;
	}
}

/* ---------- Need help (D-124, board 15; ppn_seva_need_help()): call and WhatsApp on the technical
   number, one quiet line with 44px targets, no green button ---------- */
.ms-needhelp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-4) var(--space-12);
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-secondary);
}

.ms-needhelp__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-4);
	min-height: var(--target-min);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text-link);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	white-space: nowrap;
	transition: text-decoration-color var(--duration-sm) var(--easing-standard);
}

.ms-needhelp__link > svg {
	flex: none;
	width: var(--icon-xs);
	height: var(--icon-xs);
}

@media (hover: hover) {
	.ms-needhelp__link:hover {
		text-decoration-color: currentColor;
	}
}

.ms-needhelp__link:focus-visible {
	border-radius: var(--radius-xs);
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Under 400px: the question on its own line, both links together on the row under it. */
@media (max-width: 399px) {
	.ms-needhelp {
		column-gap: var(--space-8);
	}

	.ms-needhelp__q {
		flex: 0 0 100%;
		text-align: center;
	}
}

/* In the compact header (cart, checkout, account): right-aligned; on phones two 44px icon links, the
   words kept for screen readers. */
.ms-compact__help .ms-needhelp {
	flex-wrap: nowrap;
	justify-content: flex-end;
}

@media (max-width: 767px) {
	.ms-compact__help .ms-needhelp {
		gap: var(--space-4); /* F-41: the two icon links never touch */
	}

	.ms-compact__help .ms-needhelp__q,
	.ms-compact__help .ms-needhelp__link > span:not(.ms-sr) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.ms-compact__help .ms-needhelp__link {
		justify-content: center;
		min-width: var(--target-min);
	}

	.ms-compact__help .ms-needhelp__link > svg {
		width: var(--icon-sm);
		height: var(--icon-sm);
	}
}

/* ---------- Toast (a removal's Undo, the cart; board SevaCart, screens 08 and 09): the first thing
   under the header, in the page's flow; full width on phones, 440px at the right from 768px ---------- */
.ms-toast {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	padding: var(--space-6) var(--space-8) var(--space-6) var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--maroon-800);
	box-shadow: var(--shadow-toast);
	color: var(--white);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
}

.ms-toast__text {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding-block: var(--space-6);
}

.ms-toast__action {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	min-height: var(--target-min);
	padding: 0 var(--space-12);
	border-radius: var(--radius-sm);
	color: var(--apricot-300);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--duration-sm) var(--easing-standard), color var(--duration-sm) var(--easing-standard);
}

.ms-toast__action:hover {
	color: var(--white);
	text-decoration-color: currentColor;
}

.ms-toast__action:focus-visible {
	outline: var(--focus-width) solid var(--white);
	outline-offset: var(--focus-offset);
}

/* Close (owner, 7 Nov): white on the maroon; the toast also goes by itself after 8 seconds
   (assets/js/toast.js). */
.ms-toast__close {
	margin-left: calc(-1 * var(--space-8));
	color: var(--white);
}

/* The cross at 20px (D-115 sizes 14/16/20; F-10j batch): inc/cart.php asks for 18. */
.ms-toast__close > svg {
	width: var(--icon-sm);
	height: var(--icon-sm);
}

@media (hover: hover) {
	.ms-toast .ms-toast__close:hover {
		background-color: color-mix(in srgb, var(--white) 14%, transparent);
	}
}

.ms-toast__close:focus-visible {
	outline: var(--focus-width) solid var(--white);
	outline-offset: var(--focus-offset);
}

/* Motion (board 15 [12], ledger 5a): in 220ms on easing-out with an 8px travel; out 176ms (80%) on
   easing-in (assets/js/toast.js removes it after the same 176ms). Reduced motion: 120ms fades, no travel. */
.ms-toast.is-leaving {
	opacity: 0;
	transform: translateY(calc(-1 * var(--shift-sm)));
	transition: opacity calc(var(--duration-md) * 0.8) var(--easing-in), transform calc(var(--duration-md) * 0.8) var(--easing-in);
}

@media (min-width: 768px) {
	.ms-toast {
		width: min(27.5rem, 100%);
		margin-left: auto;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ms-toast {
		animation: ms-toast-in var(--duration-md) var(--easing-out);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-toast {
		animation: ms-fade-only var(--duration-xs) linear;
	}

	.ms-toast.is-leaving {
		transform: none;
		transition: opacity var(--duration-xs) linear;
	}
}

@keyframes ms-toast-in {
	from {
		transform: translateY(calc(-1 * var(--shift-sm)));
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-input {
		transition: none;
	}
}

/* ---------- System states (v2 board 17, ledger 5e; parts/state.php): the 80px soft mark with a 48px icon,
 * a 16/22/600 title, one 14/22 line, one action; the Need-help line only in booking and payment. The
 * mark is shared: the empty booking (accent), family, and every state. Errors tint the mark. ---------- */
.ms-empty__mark {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--space-80);
	height: var(--space-80);
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	color: var(--text-secondary);
}

.ms-empty__mark--accent {
	color: var(--action-primary);
}

.ms-state {
	display: grid;
	justify-items: center;
	gap: var(--space-8);
	max-width: 40ch;
	margin-inline: auto;
	text-align: center;
}

.ms-state--card {
	width: 100%;
	max-width: none;
	padding: var(--space-32) var(--card-pad);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-state > .ms-empty__mark {
	margin-bottom: var(--space-8);
}

.ms-state--error > .ms-empty__mark {
	background-color: var(--error-fill);
	color: var(--error-text);
}

.ms-state__title {
	max-width: 40ch;
	margin: 0;
	color: var(--text-primary);
	font-family: var(--font-ui);
	font-size: var(--type-card-title-size);
	font-weight: 600;
	line-height: var(--type-card-title-lh);
}

.ms-state__text {
	max-width: 40ch;
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-state__acts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-8) var(--space-16);
	margin-top: var(--space-8);
}

.ms-state > .ms-needhelp {
	margin-top: var(--space-8);
}

/* ---------- Entry row for sheets (v2 board 17, ledger 5e): a 44px disc, a title, a one-line state, and the
 * button that opens the sheet (the cart's additions, the account's travel help). ---------- */
.ms-entry {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-8) var(--space-12);
	align-items: center;
	padding: var(--space-12) var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

.ms-entry__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--target-min);
	height: var(--target-min);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-primary);
}

.ms-entry__text {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
}

.ms-entry__title {
	color: var(--text-primary);
	font-size: var(--type-label-size);
	font-weight: 600;
}

.ms-entry__act {
	grid-column: 1 / -1;
	justify-self: start;
}

@media (min-width: 480px) {
	.ms-entry {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.ms-entry__act {
		grid-column: auto;
	}
}

/* ---------- Card skeleton (v2 board 17 [4], ledger 5e): the card family's shape (4:3 photo, kicker, title,
 * fact line, price, button) in flat bars with the .ms-skeleton sweep (off under reduced motion, motion.css).
 * Markup: parts/skeleton-card.php. ---------- */
.ms-skelcard {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-skelcard__photo {
	aspect-ratio: var(--ratio-card);
	border-radius: 0;
}

.ms-skelcard__body {
	display: grid;
	gap: var(--space-8);
	padding: var(--card-pad);
}

.ms-skelcard__bar {
	height: var(--space-12);
}

.ms-skelcard__bar--kicker {
	width: 40%;
}

.ms-skelcard__bar--title {
	width: 85%;
	height: var(--space-20);
}

.ms-skelcard__bar--price {
	width: 40%;
	height: var(--space-20);
}

.ms-skelcard__bar--button {
	justify-self: end;
	width: 60%;
	height: var(--target-min);
	margin-top: var(--space-8);
}

/* ==== motion.css ==== */
/**
 * Modern Seva: motion. Port of the vault's motion.css (motion pilot, 5 Oct) to the token names
 * (--duration-*, --easing-*, --shift-*, --stagger). Character: a lamp being lit, soft and steady.
 * Only transform and opacity animate (plus height for accordions, through grid rows).
 *
 * The rule for anything that enters and leaves (v2 board 15 [11]-[13], ledger 5a): enter on --easing-out,
 * leave at 80% of the entry time on --easing-in (overlays 300 in / 240 out, toasts 220 / 176), transform
 * and opacity only, and every exit reversible mid-way (D-027: assets/js/sheet.js). Reduced motion: fades
 * of 120ms (--duration-xs), no travel. The overlay and toast rules live with them in components.css.
 *
 * Dropped from the vault file: the --ms-* duplicates, the retired --ms-focus ring, the .ms-reduce board
 * toggle, and the V3 rules for non-ghat-step buttons. Card lift lives with the card (components.css),
 * the diya and the aarti loader with the marks (brand.css).
 */

/* ---- Interaction states ---- */

/* Ghat-step buttons paint their fill on ::before, so the element itself never transitions a background
   (a <button> would fade in from the browser's grey). */
.ms-btn,
.ms-btn-wa {
	transition: transform var(--duration-xs) var(--easing-standard), opacity var(--duration-xs) linear, color var(--duration-md) var(--easing-standard);
}

.ms-btn:active,
.ms-btn-wa:active {
	transform: scale(0.98);
}

/* The round WhatsApp buttons (icon-only, and the phone-bar disc) are links that paint their own
   cream, so they ease it like the ghat-step fill: 220ms (D-005, D-006). */
.ms-btn-wa--icon,
.ms-btn-wa--collapse {
	transition: transform var(--duration-xs) var(--easing-standard), background-color var(--duration-md) var(--easing-standard);
}

/* The green dot grows a little on pointer hover, over the button's 220ms (D-006, D-115(1)). */
.ms-wa-dot {
	transition: transform var(--duration-md) var(--easing-standard);
}

@media (hover: hover) {
	.ms-btn-wa:hover .ms-wa-dot {
		transform: scale(var(--wa-dot-grow));
	}
}

/* Fields: the border turns maroon on focus; errors fade in with a 4px drop and never shake. */
.ms-field-input {
	transition: border-color var(--duration-xs) var(--easing-standard);
}

.ms-field-input:focus {
	border-color: var(--action-primary);
}

.ms-field-error {
	animation: ms-err-in var(--duration-sm) var(--easing-out) both;
}

/* Checkbox tick draws in. */
.ms-tick path {
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
	transition: stroke-dashoffset var(--duration-sm) var(--easing-out);
}

.ms-tick.is-on path,
input:checked + .ms-check-box .ms-tick path {
	stroke-dashoffset: 0;
}

/* ---- Behaviour helpers ---- */

/* Fade-up (scroll reveal on marketing pages, below the fold only): 12px rise, 300ms. A script sets
   --ms-i (0-5) on the first six items of a list for the 40ms stagger; the rest arrive together. */
.ms-fade-up {
	animation: ms-fade-up var(--duration-lg) var(--easing-out) both;
	animation-delay: calc(min(var(--ms-i, 0), 5) * var(--stagger));
}

/* Collapse: height through grid rows (the accordion uses its own .ms-acc-panel). */
.ms-collapse {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows var(--duration-md) var(--easing-standard);
}

.ms-collapse.is-closed {
	grid-template-rows: 0fr;
}

.ms-collapse > * {
	min-height: 0;
	overflow: hidden;
	visibility: visible;
	transition: visibility 0s;
}

.ms-collapse.is-closed > * {
	visibility: hidden;
	transition: visibility 0s linear var(--duration-md);
}

/* Skeleton shimmer while content loads. */
.ms-skeleton {
	display: block;
	border-radius: var(--radius-sm);
	background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-highlight) 50%, var(--skeleton-base) 100%);
	background-size: 200% 100%;
	animation: ms-shimmer 1.2s linear infinite;
}

@keyframes ms-fade-up {
	from {
		opacity: 0;
		transform: translateY(var(--shift-md));
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ms-err-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ms-fade-only {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes ms-shimmer {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

/* Reduced motion: opacity fades only (the global 120ms rule is in base.css). */
@media (prefers-reduced-motion: reduce) {
	.ms-btn:active,
	.ms-btn-wa:active,
	.ms-btn-wa:hover .ms-wa-dot {
		transform: none !important;
	}

	.ms-skeleton {
		animation: none !important;
	}

	.ms-fade-up,
	.ms-field-error {
		animation-name: ms-fade-only !important;
		animation-delay: 0s !important;
	}

	.ms-collapse,
	.ms-collapse > * {
		transition: none !important;
	}
}

/* ==== core-blocks.css ==== */
/**
 * Modern Seva: core block styles registered in inc/block-styles.php (block-library §2), and the
 * grounds (maroon, cream, white) of the ppn/* section blocks. tokens.css flips the colour tokens on
 * .is-style-maroon, so a maroon ground only needs its background here.
 *
 * Icons on core lists are CSS masks (the shape only; the colour is a token), because core list markup
 * has no room for the inline SVG the theme helpers print.
 */

/* ---------- Grounds of the ppn/* section blocks ---------- */
:is(.ms-block, [class*="wp-block-ppn-"]):is(.is-style-maroon, [data-theme="maroon"]) {
	background-color: var(--surface-page);
	color: var(--text-body);
}

:is(.ms-block, [class*="wp-block-ppn-"]).is-style-cream {
	background-color: var(--surface-soft);
	/* WhatsApp and the trust pill one step off this soft ground (D-115(1)). */
	--wa-button-bg: var(--wa-button-bg-on-soft);
	--wa-button-bg-hover: var(--wa-button-bg-on-soft-hover);
	--trustpill-bg: var(--trustpill-bg-on-soft);
}

:is(.ms-block, [class*="wp-block-ppn-"]).is-style-white {
	background-color: var(--surface-raised);
}

/* ---------- core/group: maroon, cream, white bands; card, panel (maroon edge), callout ---------- */
.wp-block-group:is(.is-style-maroon, .is-style-cream, .is-style-white, .is-style-card, .is-style-panel, .is-style-callout) {
	padding: var(--space-24) var(--space-20);
	border-radius: var(--radius-lg);
}

.wp-block-group.is-style-maroon {
	background-color: var(--surface-page);
	color: var(--text-body);
}

.wp-block-group.is-style-cream {
	background-color: var(--surface-soft);
	/* WhatsApp and the trust pill one step off this soft ground (D-115(1)). */
	--wa-button-bg: var(--wa-button-bg-on-soft);
	--wa-button-bg-hover: var(--wa-button-bg-on-soft-hover);
	--trustpill-bg: var(--trustpill-bg-on-soft);
}

.wp-block-group.is-style-white {
	background-color: var(--surface-raised);
}

.wp-block-group.is-style-card {
	border: 1px solid var(--border-subtle);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.wp-block-group.is-style-panel {
	border-left: var(--kalava-width) solid var(--action-primary);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
	background-color: var(--surface-soft);
}

.wp-block-group.is-style-callout {
	padding: var(--space-14) var(--space-16);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-chip);
	background-color: var(--surface-soft);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

/* A full-width band: no corners, section rhythm, content kept inside the container. */
.wp-block-group.alignfull:is(.is-style-maroon, .is-style-cream, .is-style-white) {
	padding: var(--section-y) max(var(--gutter), (100% - var(--container-max)) / 2);
	border-radius: 0;
}

.wp-block-group[class*="is-style-"] > * {
	margin-block: 0;
}

.wp-block-group[class*="is-style-"] > * + * {
	margin-top: var(--space-12);
}

/* ---------- core/paragraph: eyebrow, lead, meta ---------- */
p.is-style-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-6) var(--space-14);
	font-family: var(--type-eyebrow-family);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-lh);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
	color: var(--text-accent);
}

p.is-style-eyebrow::before {
	content: "";
	flex-shrink: 0;
	width: 32px;
	height: var(--kalava-width);
	border-radius: 2px;
}

p.is-style-lead {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-lh);
	color: var(--text-body);
}

p.is-style-meta {
	font-size: var(--type-caption-size);
	font-weight: var(--type-caption-weight);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

/* ---------- core/list: checks, excluded, conditional, facts (kusha), dots, steps, stats ---------- */
.wp-block-list:is(.is-style-checks, .is-style-excluded, .is-style-conditional, .is-style-facts, .is-style-dots, .is-style-steps, .is-style-stats) {
	padding-left: 0;
	list-style: none;
}

.wp-block-list:is(.is-style-checks, .is-style-excluded, .is-style-conditional, .is-style-facts, .is-style-dots) > li {
	position: relative;
	padding-left: calc(18px + var(--space-10));
}

.wp-block-list:is(.is-style-checks, .is-style-excluded, .is-style-conditional, .is-style-facts, .is-style-dots) > li + li {
	margin-top: var(--space-8);
}

.wp-block-list:is(.is-style-checks, .is-style-excluded, .is-style-conditional, .is-style-facts) > li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 18px;
	height: 18px;
	-webkit-mask: var(--ms-list-icon) center / contain no-repeat;
	mask: var(--ms-list-icon) center / contain no-repeat;
}

.wp-block-list.is-style-checks > li::before {
	--ms-list-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12L10 16.5L18.5 8'/%3E%3C/svg%3E");
	background-color: var(--status-success-mark);
}

.wp-block-list.is-style-excluded > li::before {
	--ms-list-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6L18 18M18 6L6 18'/%3E%3C/svg%3E");
	background-color: var(--text-secondary);
}

.wp-block-list.is-style-conditional > li::before {
	--ms-list-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5V19M5 12H19'/%3E%3C/svg%3E");
	background-color: var(--icon-ritual);
}

.wp-block-list.is-style-facts > li::before {
	--ms-list-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='11.6' r='6' stroke-width='2'/%3E%3Cpath d='M10 5.6C8.7 3.4 6.9 2.7 6.1 3.6c-.7.9 1.4 2 3.9 2zM10 5.6c1.3-2.2 3.1-2.9 3.9-2 .7.9-1.4 2-3.9 2z' stroke-width='1.3'/%3E%3C/svg%3E");
	background-color: var(--gold-700);
}

:is([data-theme="maroon"], .is-style-maroon) .wp-block-list:is(.is-style-checks, .is-style-facts) > li::before {
	background-color: var(--text-accent);
}

.wp-block-list.is-style-dots > li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 6px;
	width: 6px;
	height: 6px;
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
}

/* Steps: numbered discs in maroon (an ordered list). */
ol.wp-block-list.is-style-steps {
	counter-reset: ms-step;
}

.wp-block-list.is-style-steps > li {
	position: relative;
	min-height: 32px;
	padding-left: calc(32px + var(--space-12));
	counter-increment: ms-step;
}

.wp-block-list.is-style-steps > li + li {
	margin-top: var(--space-16);
}

.wp-block-list.is-style-steps > li::before {
	content: counter(ms-step);
	position: absolute;
	top: -0.15em;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	color: var(--text-price);
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	line-height: 1;
}

/* Stats: a value (strong) over its label, up to three a row. */
.wp-block-list.is-style-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
	gap: var(--space-16);
}

.wp-block-list.is-style-stats > li {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin: 0;
	padding: var(--space-16);
	border-radius: var(--radius-lg);
	background-color: var(--surface-soft);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-body);
}

/* The value wraps between words, never inside one (the body's overflow-wrap split "Automatic" at 390px). */
.wp-block-list.is-style-stats > li strong {
	font-family: var(--type-date-numeral-family);
	font-size: var(--type-date-numeral-size);
	font-weight: 400;
	line-height: var(--type-date-numeral-lh);
	color: var(--text-primary);
	overflow-wrap: normal;
}

/* A long word value (no figure; ppn_seva_mark_stat_values() marks the length of its longest word) steps
   down one type size in a box too narrow for that word at 30px: 8-9 letters (about 120-150px) under
   9.5rem, 10 letters or more (up to about 190px) under 12rem. Figures keep the numeral style. */
@container (max-width: 9.5rem) {
	.wp-block-list.is-style-stats > li strong.ms-stat--long {
		font-size: var(--type-h4-size);
		line-height: var(--type-h4-lh);
	}
}

@container (max-width: 12rem) {
	.wp-block-list.is-style-stats > li strong.ms-stat--longer {
		font-size: var(--type-h4-size);
		line-height: var(--type-h4-lh);
	}
}

@media (min-width: 768px) {
	.wp-block-list.is-style-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* A stat with an icon (list item class has-icon-{name}, ppn_seva_stat_item_icon()): the icon in a round
   tile, a divider, then the value over its label (owner, 6 Nov 2026: the Ritual hub's hero facts).
   Phones: one card a row; from 600px three a row. */
.wp-block-list.is-style-stats:has(> li > .ms-stat__icon) {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-12);
}

.wp-block-list.is-style-stats > li:has(> .ms-stat__icon) {
	flex-direction: row;
	align-items: center;
	gap: var(--space-12);
	padding: var(--space-12) var(--space-14);
	border: 1px solid var(--border-subtle);
}

.ms-stat__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--icon-ritual);
}

.ms-stat__text {
	container-type: inline-size;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
	padding-inline-start: var(--space-12);
	border-inline-start: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
	.wp-block-list.is-style-stats:has(> li > .ms-stat__icon) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* The value steps down as its column narrows (the hero's text column holds three cards of about 190px):
   a word value then fits beside the tile without breaking at its hyphen ("In-person"). */
@container (max-width: 8.5rem) {
	.wp-block-list.is-style-stats > li > .ms-stat__text > strong {
		font-size: var(--type-h3-size);
		line-height: var(--type-h3-lh);
	}
}

@container (max-width: 6.5rem) {
	.wp-block-list.is-style-stats > li > .ms-stat__text > strong {
		font-size: var(--type-h4-size);
		line-height: var(--type-h4-lh);
	}
}

/* ---------- core/table: data and compact; the figure scrolls sideways when a table cannot fit ---------- */
.wp-block-table:is(.is-style-data, .is-style-compact) {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table:is(.is-style-data, .is-style-compact) table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.wp-block-table:is(.is-style-data, .is-style-compact) :is(th, td) {
	padding: var(--space-12) var(--space-14);
	border: 0;
	border-bottom: 1px solid var(--border-default);
	text-align: left;
	vertical-align: top;
}

.wp-block-table:is(.is-style-data, .is-style-compact) thead :is(th, td) {
	border-bottom-color: var(--border-control);
	background-color: var(--surface-soft);
	color: var(--text-primary);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
}

.wp-block-table:is(.is-style-data, .is-style-compact) tbody th {
	font-weight: 600;
	color: var(--text-primary);
}

.wp-block-table:is(.is-style-data, .is-style-compact) :is(figcaption, caption) {
	margin-top: var(--space-8);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
	text-align: left;
}

.wp-block-table.is-style-compact :is(th, td) {
	padding: var(--space-8) var(--space-10);
	font-size: var(--type-caption-size);
}

/* ---------- core/table, default style: ritual-page guide tables ----------
   v2 (ledger 4d, board 11 [23], v2-changes "Ritual-page guide tables"): hairline rows, no cell boxes,
   14/22, a 14/20/600 heading row on a 3:1 rule; a wide table scrolls inside its own frame. Blog posts
   keep their own table (blog.css, owner 7 Nov), which loads later at the same weight (hence :where(thead)). */
.wp-block-table:not([class*="is-style-"]) {
	margin-inline: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table:not([class*="is-style-"]) table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	font-variant-numeric: var(--type-numeric);
}

.wp-block-table:not([class*="is-style-"]) :is(thead, tfoot) {
	border: 0;
}

.wp-block-table:not([class*="is-style-"]) :is(th, td) {
	padding: var(--space-8) var(--space-12) var(--space-8) 0;
	border: 0;
	border-bottom: 1px solid var(--border-subtle);
	text-align: start;
	vertical-align: top;
}

.wp-block-table:not([class*="is-style-"]) :where(thead) th {
	border-bottom-color: var(--border-control);
	color: var(--text-primary);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
}

/* ---------- core/quote: scripture ---------- */
.wp-block-quote.is-style-scripture {
	margin-inline: auto;
	padding: var(--space-24);
	border: 0;
	border-radius: var(--radius-lg);
	background-color: var(--surface-soft);
	text-align: center;
}

.wp-block-quote.is-style-scripture p {
	margin: 0;
	font-family: var(--type-quote-family);
	font-size: var(--type-quote-size);
	line-height: var(--type-quote-lh);
	color: var(--text-primary);
}

.wp-block-quote.is-style-scripture p + p {
	margin-top: var(--space-8);
}

.wp-block-quote.is-style-scripture cite {
	display: block;
	margin-top: var(--space-12);
	font-size: var(--type-caption-size);
	font-style: normal;
	font-weight: var(--type-caption-weight);
	color: var(--text-secondary);
}

/* ---------- core/button: primary, secondary (ghat-step from brand.css), text link ---------- */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-12);
}

.wp-block-button > .wp-block-button__link {
	max-width: 100%;
	min-height: var(--control-md);
	padding: var(--space-10) var(--space-24);
	font-family: var(--type-button-md-family);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	line-height: var(--type-button-md-lh);
	text-align: center;
	text-decoration: none;
}

.wp-block-button:is(.is-style-primary, .is-style-fill) > .wp-block-button__link {
	--gs-fill: var(--action-primary);
	--gs-ink: var(--text-on-primary);
	--gs-line: var(--gs-line-gold);
}

.wp-block-button:is(.is-style-secondary, .is-style-outline, :not([class*="is-style-"])) > .wp-block-button__link {
	--gs-fill: var(--action-secondary-bg);
	--gs-ink: var(--action-secondary);
	--gs-line: var(--action-secondary);
}

.wp-block-button.is-style-link > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: 0 calc(50% + 0.85em);
	background-size: 0 var(--kalava-width), 0 var(--kalava-width);
	color: var(--text-link);
	font-weight: 600;
	gap: var(--space-8);
	transition: background-size var(--duration-sm) var(--easing-out);
}

.wp-block-button.is-style-link > .wp-block-button__link:is(:hover, :focus-visible) {
	background-size: 100% var(--kalava-width), 100% var(--kalava-width);
}

/* ---------- core/image: arch and inner; core/media-text: arched media ---------- */
.wp-block-image.is-style-arch img,
.wp-block-media-text.is-style-arch-media .wp-block-media-text__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 50% 50% var(--radius-xl) var(--radius-xl) / 40% 40% var(--radius-xl) var(--radius-xl);
	box-shadow: var(--shadow-hero);
}

.wp-block-image.is-style-inner img {
	border-radius: var(--radius-md);
}

.wp-block-image figcaption,
.wp-block-media-text figcaption {
	margin-top: var(--space-8);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

/* Framed photo (style "frame"; owner, 6 Nov 2026, the Ritual hub's scriptural basis): the photo in a
   white card, the caption in the card's foot in the display face, italic. Beside a text column
   (ms-split-cols--media) it runs that column's height: see the Ritual hub section below. */
.wp-block-image.is-style-frame {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card-warm);
}

.wp-block-image.is-style-frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	object-fit: cover;
}

.wp-block-image.is-style-frame figcaption {
	margin: 0;
	padding: var(--space-14) var(--space-20) var(--space-16);
	font-family: var(--type-serif-caption-family);
	font-size: var(--type-serif-caption-size);
	font-style: italic;
	line-height: var(--type-serif-caption-lh);
	color: var(--text-secondary);
}

.wp-block-media-text.is-style-arch-media {
	gap: var(--space-24);
}

.wp-block-media-text.is-style-arch-media .wp-block-media-text__content {
	padding: var(--space-24) 0;
}

/* ---------- core/details: the accordion look (chevron; kalava under an open item) ---------- */
.wp-block-details.is-style-diya {
	position: relative;
	padding: 0;
	border-top: 1px solid var(--border-default);
	border-bottom: 1px solid var(--border-default);
}

.wp-block-details.is-style-diya + .wp-block-details.is-style-diya {
	margin-top: 0;
	border-top: 0;
}

.wp-block-details.is-style-diya[open] {
	border-bottom-color: transparent;
}

.wp-block-details.is-style-diya[open]::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: var(--kalava-width);
	border-radius: 2px;
	pointer-events: none;
}

.wp-block-details.is-style-diya > summary {
	display: flex;
	align-items: center;
	gap: var(--space-14);
	min-height: var(--control-lg);
	padding: var(--space-10) var(--space-4);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
	list-style: none;
	cursor: pointer;
}

.wp-block-details.is-style-diya > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-diya > summary::after {
	content: "";
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	margin-left: auto;
	margin-right: var(--space-6);
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform var(--duration-md) var(--easing-standard);
}

.wp-block-details.is-style-diya[open] > summary::after {
	transform: translateY(2px) rotate(-135deg);
}

@media (hover: hover) {
	.wp-block-details.is-style-diya > summary:hover {
		background-color: var(--surface-soft);
	}
}

.wp-block-details.is-style-diya > :not(summary) {
	margin: 0;
	padding: 0 var(--space-4) var(--space-16);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

/* ---------- core/search: the Seva search field (pill, --search-height 48, magnifier) ---------- */
/* Core's inline '.wp-block-search__label { width: 100% }' beat '.screen-reader-text', so a hidden label ran
   1470px wide from the hero edge and the 404 page scrolled sideways (final check, 10 Nov 2026). */
.wp-block-search__label.screen-reader-text {
	width: 1px;
}

.wp-block-search.is-style-seva .wp-block-search__label {
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	color: var(--text-primary);
}

.wp-block-search.is-style-seva .wp-block-search__inside-wrapper {
	position: relative;
	display: flex;
	gap: var(--space-8);
	padding: 0;
	border: 0;
}

.wp-block-search.is-style-seva .wp-block-search__inside-wrapper::before {
	content: "";
	position: absolute;
	top: 50%;
	left: var(--space-16);
	z-index: 1;
	width: var(--icon-sm);
	height: var(--icon-sm);
	background-color: var(--text-secondary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: translateY(-50%);
	pointer-events: none;
}

.wp-block-search.is-style-seva .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: var(--search-height);
	padding: 0 var(--space-20) 0 var(--space-48);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font-size: var(--type-body-lg-size); /* 16px, so iOS does not zoom the page on focus (F-35). */
	transition: border-color var(--duration-xs) var(--easing-out);
}

/* The browser's own blue clear cross; the search dialog hides it the same way. */
.wp-block-search.is-style-seva .wp-block-search__input::-webkit-search-cancel-button {
	display: none;
}

.wp-block-search.is-style-seva .wp-block-search__input:hover {
	border-color: var(--text-secondary);
}

.wp-block-search.is-style-seva .wp-block-search__input::placeholder {
	color: var(--text-secondary);
}

.wp-block-search.is-style-seva .wp-block-search__input:focus {
	border-color: var(--action-primary);
}

.wp-block-search.is-style-seva .wp-block-search__input:focus-visible {
	outline-offset: var(--focus-offset);
}

.wp-block-search.is-style-seva .wp-block-search__button {
	min-height: var(--search-height);
	margin: 0;
	padding: 0 var(--space-20);
	border: 0;
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	transition: background-color var(--duration-md) var(--easing-out);
}

.wp-block-search.is-style-seva .wp-block-search__button:hover {
	background-color: var(--action-primary-hover);
}

.wp-block-search.is-style-seva .wp-block-search__button:focus-visible {
	outline-offset: var(--focus-offset);
}

/* ---------- core/separator: the kalava thread ---------- */
.wp-block-separator.is-style-kalava {
	width: 64px;
	max-width: 100%;
	height: var(--kalava-width);
	margin-block: var(--space-32);
	border: 0;
	border-radius: 2px;
	background-color: transparent;
	opacity: 1;
}

/* ---------- core/gallery: captions under the photos, not over them ---------- */
.wp-block-gallery.is-style-captioned.has-nested-images figure.wp-block-image {
	flex-direction: column;
}

.wp-block-gallery.is-style-captioned.has-nested-images figure.wp-block-image img {
	border-radius: var(--radius-md);
}

.wp-block-gallery.is-style-captioned.has-nested-images figure.wp-block-image::before {
	display: none;
}

.wp-block-gallery.is-style-captioned.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin: 0;
	padding: var(--space-8) 0 0;
	overflow: visible;
	background: none;
	color: var(--text-secondary);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	text-align: left;
	text-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-details.is-style-diya > summary::after {
		transition: none !important;
	}
}

/* === Board alignment, 5 Nov 2026 === */
/* The heritage section of a city hub (SevaCityHub): prose on the left; where each rite is performed
   on the right, as numbered cards and a dashed note card. Built from core blocks, so editors keep the words. */
.ms-landing__body > .wp-block-group.ms-heritage:not(.is-style-card, .is-style-panel, .is-style-callout) > * {
	max-width: none;
	margin-inline: 0 !important;
}

.ms-landing__body > .wp-block-group.ms-heritage:not(.is-style-card, .is-style-panel, .is-style-callout) > * + * {
	margin-top: var(--space-12);
}

.ms-landing__body > .wp-block-group.ms-heritage:not(.is-style-card, .is-style-panel, .is-style-callout) > .ms-heritage__cols {
	margin-top: var(--space-24);
}

.ms-heritage > .ms-container,
.ms-heritage {
	box-sizing: border-box;
}

.ms-heritage__cols.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-32);
	margin-bottom: 0;
}

.ms-heritage__cols > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	min-width: 0;
	flex-basis: auto !important;
}

.ms-heritage__cols > .wp-block-column > * {
	margin-block: 0;
	max-width: 64ch;
}

.ms-heritage__cols > .wp-block-column:last-child > * {
	max-width: none;
}

.ms-heritage :is(h3.wp-block-heading) {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-heritage__cols > .wp-block-column > p + h3.wp-block-heading {
	margin-top: var(--space-14);
}

.ms-heritage__cols > .wp-block-column > h3.wp-block-heading + .wp-block-list {
	margin-top: var(--space-8);
}

.ms-heritage p:not(.ms-eyebrow) {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-lh);
	color: var(--text-body);
	text-wrap: pretty;
}

/* The lead takes the next step of the ramp (18/28): 17 left the system (D-111). */
.ms-heritage p.ms-heritage__lead {
	font-size: var(--type-quote-size);
	line-height: var(--type-quote-lh);
	color: var(--text-primary);
}

.ms-heritage :is(.is-style-place-steps, .is-style-place-note) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-place-steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	counter-reset: ms-place;
}

.ms-heritage :is(.is-style-place-steps, .is-style-place-note) > li {
	position: relative;
	margin: 0;
	padding: var(--space-16) var(--space-16) var(--space-16) 58px;
	border: 1px solid color-mix(in srgb, var(--ink-900) 9%, transparent);
	border-radius: var(--radius-lg);
	background-color: var(--white);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
	text-wrap: pretty;
}

.is-style-place-steps > li {
	counter-increment: ms-place;
}

.ms-heritage .is-style-place-steps > li::before {
	content: counter(ms-place);
	position: absolute;
	top: var(--space-16);
	left: var(--space-16);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: var(--radius-pill);
	background-color: var(--sand-200);
	font-size: var(--type-chip-size);
	font-weight: var(--type-chip-weight);
	line-height: var(--type-chip-lh);
	font-variant-numeric: var(--type-numeric);
	color: var(--text-primary);
}

.ms-heritage :is(.is-style-place-steps, .is-style-place-note) > li > strong {
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
	color: var(--text-primary);
}

.is-style-place-steps > li > strong {
	display: block;
	margin-bottom: var(--space-4);
}

.ms-heritage .is-style-place-steps a,
.ms-heritage .is-style-place-note a {
	font-weight: 600;
	color: var(--text-link);
}

.ms-heritage .is-style-place-note {
	margin-top: var(--space-12);
}

.ms-heritage .is-style-place-note > li {
	border: 1px dashed color-mix(in srgb, var(--ink-900) 22%, transparent);
}

.ms-heritage .is-style-place-note > li::before {
	content: "";
	position: absolute;
	top: var(--space-16);
	left: var(--space-16);
	width: 30px;
	height: 30px;
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239C4A10' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.ms-heritage .is-style-place-note .ms-meta {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	margin-left: var(--space-10);
	padding: 2px 10px;
	font-size: var(--type-chip-size);
	font-weight: var(--type-chip-weight);
	line-height: var(--type-chip-lh);
	color: var(--text-primary);
	vertical-align: middle;
}

.ms-heritage__reach {
	max-width: 700px !important;
	padding: 0 !important;
	background: none !important;
}

.ms-landing__body > .wp-block-group.ms-heritage > .ms-heritage__reach {
	margin-top: var(--space-24);
}

.ms-heritage__reach > * {
	max-width: none;
	margin-inline: 0 !important;
	margin-block: 0;
}

.ms-heritage__reach > p {
	font-size: var(--type-body-size);
	line-height: var(--type-body-lh);
}

.ms-heritage__reach > p + p {
	margin-top: var(--space-2);
}

.ms-heritage__reach > h3 + p {
	margin-top: var(--space-6);
}

@media (min-width: 1180px) {
	.ms-heritage__cols.wp-block-columns {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 56px;
		align-items: start;
	}
}

/* === Ritual in city board, 6 Nov 2026 === */
/* "See all vedis and sarovars in Gaya": core/details as a secondary ghat-step button with a chevron
   (the shape's line is brand.css; ::before is the chevron); the list opens under it. */
.ms-landing__body > .wp-block-group.ms-reveal:not(.is-style-card, .is-style-panel, .is-style-callout) {
	margin-top: calc(var(--section-y) * -1 + var(--section-y-tight));
}

.ms-landing__body > .wp-block-group.ms-reveal > * {
	max-width: none;
}

.wp-block-details.is-style-reveal {
	margin: 0;
}

.wp-block-details.is-style-reveal > summary {
	--gs-fill: transparent;
	--gs-ink: var(--action-secondary);
	--gs-line: var(--action-secondary);
	gap: var(--space-10);
	min-height: var(--control-sm);
	padding: var(--space-8) var(--space-20);
	font-family: var(--type-button-sm-family);
	font-size: var(--type-button-sm-size);
	font-weight: var(--type-button-sm-weight);
	line-height: var(--type-button-sm-lh);
	list-style: none;
	user-select: none;
}

.wp-block-details.is-style-reveal > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-reveal > summary::before {
	content: "";
	order: 2;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--duration-md) var(--easing-standard);
}

.wp-block-details.is-style-reveal[open] > summary::before {
	margin-top: 3px;
	transform: rotate(-135deg);
}

@media (hover: hover) {
	.wp-block-details.is-style-reveal > summary:hover {
		--gs-ink: var(--action-primary-hover, var(--action-primary));
		--gs-line: var(--action-primary-hover, var(--action-primary));
	}
}

.wp-block-details.is-style-reveal > summary:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.wp-block-details.is-style-reveal > :not(summary) {
	margin-block: 0;
}

.wp-block-details.is-style-reveal > summary + * {
	margin-top: var(--space-24);
}

.wp-block-details.is-style-reveal > * + :not(summary) {
	margin-top: var(--space-12);
}

.wp-block-details.is-style-reveal > h3 {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

/* Name and place, in columns (the vedi list). */
.wp-block-list.is-style-vedi-list {
	columns: 3 15rem;
	column-gap: var(--space-24);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-secondary);
}

.wp-block-list.is-style-vedi-list > li {
	break-inside: avoid;
	padding-block: var(--space-6);
	border-bottom: 1px solid var(--border-subtle);
}

.wp-block-list.is-style-vedi-list > li > strong {
	display: block;
	color: var(--text-primary);
	font-weight: 600;
}

/* A two-column note card under a section (the "Gaya and the other sacred cities" box under the gates):
   the main text left, a question and its links right, a divider between. */
.ms-landing__body > .wp-block-group.ms-note-split:not(.is-style-card, .is-style-panel, .is-style-callout) {
	margin-top: calc(var(--section-y) * -1 + var(--section-y-tight));
}

.ms-landing__body > .wp-block-group.ms-note-split > * {
	max-width: none;
}

.ms-note-split__cols.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-20);
	margin: 0;
	padding: var(--space-20);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-note-split__cols > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
	flex-basis: auto !important;
}

.ms-note-split__cols > .wp-block-column > * {
	margin-block: 0;
	max-width: none;
}

.ms-note-split__cols h3 {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-note-split__cols p {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
}

.ms-note-split__cols p:has(> .ms-link:only-child) {
	margin-top: var(--space-4);
}

@media (min-width: 1180px) {
	.ms-note-split__cols.wp-block-columns {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
		gap: var(--space-32);
		padding: var(--space-24) var(--space-28, 28px);
	}

	.ms-note-split__cols > .wp-block-column + .wp-block-column {
		padding-inline-start: var(--space-32);
		border-inline-start: 1px solid var(--border-subtle);
	}
}

/* === Ritual hub (previous hub design, 6 Nov 2026) === */
/* Two columns in a section: a wide core/columns with class ms-split-cols. Text beside a panel
   (1.2fr / 1fr), or with ms-split-cols--media a photo beside the text (2fr / 3fr, the photo first).
   Stacked below 1024px; each column is a flow of its blocks. */
.ms-split-cols.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-24) var(--space-48);
	margin-block: 0;
}

.ms-split-cols > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	min-width: 0;
	flex-basis: auto !important;
}

.ms-split-cols > .wp-block-column > * {
	max-width: 64ch;
	margin-block: 0;
}

.ms-split-cols > .wp-block-column > :is(.wp-block-image, .wp-block-group) {
	max-width: none;
}

.ms-split-cols > .wp-block-column > .is-style-eyebrow + :is(h2, h3) {
	margin-top: calc(var(--space-12) - var(--space-16));
}

.ms-split-cols .wp-block-image {
	margin: 0;
}

.ms-split-cols .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 1024px) {
	.ms-split-cols.wp-block-columns {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: start;
	}

	.ms-split-cols--media.wp-block-columns {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	.ms-split-cols.are-vertically-aligned-center {
		align-items: center;
	}

	/* A framed photo beside the text runs the text column's height (owner, 6 Nov 2026: the photo looked
	   small beside the words). The photo's own height does not count (flex-basis 0), so the words set
	   the row; the photo is cropped to fill what the caption leaves, never shorter than 22rem. */
	.ms-split-cols--media.wp-block-columns:has(> .wp-block-column > .wp-block-image.is-style-frame) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	}

	.ms-split-cols--media > .wp-block-column:has(> .wp-block-image.is-style-frame) {
		align-self: stretch;
	}

	.ms-split-cols--media .wp-block-image.is-style-frame {
		flex: 1 1 auto;
		min-height: 22rem;
	}

	.ms-split-cols--media .wp-block-image.is-style-frame img {
		flex: 1 1 0;
		min-height: 0;
		height: 0;
	}
}

/* === Yatra itinerary (board SevaYatra 01, 8 Nov 2026) === */
/* The day-by-day section of the Yatra page: the section's heading and intro, then one card per day
   (core/group is-style-card .ms-day, wide): its photo, when it has one, beside the body (a day chip,
   the H3, the paragraphs and lists). Below 768px the photo sits on top. Built from core blocks, so
   editors keep the words; pattern notes in tools/gen-patterns.php ("yatra"). */
.ms-landing__body > .wp-block-group.ms-itinerary:not(.is-style-card, .is-style-panel, .is-style-callout) > .ms-day {
	margin-top: var(--space-20);
}

.ms-landing__body > .wp-block-group.ms-itinerary:not(.is-style-card, .is-style-panel, .is-style-callout) > .ms-day + .ms-day {
	margin-top: var(--space-16);
}

/* The card clips its photo to its corners (the photo on top, under 768px). "clip", not "hidden": a
   hidden overflow makes the card the photo's scroll container, so the sticky photo (768px up) never
   stuck to the window and sat its sticky offset down inside the card instead (10 Nov 2026). "hidden"
   stays as the fallback. */
.wp-block-group.is-style-card.ms-day {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 0;
	overflow: hidden;
	overflow: clip;
	border-radius: var(--radius-xl);
}

.wp-block-group.is-style-card.ms-day > * + * {
	margin-top: 0;
}

.ms-day > .ms-day__photo {
	margin: 0;
	background-color: var(--surface-sunken);
}

.ms-day > .ms-day__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	/* Core gives sizes="auto" images a 3000 x 1500 placeholder size; one that fails to load kept it. */
	contain-intrinsic-size: none;
}

.wp-block-group.ms-day__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: var(--space-20);
}

.wp-block-group.ms-day__body > * {
	margin: 0;
}

.ms-day__body > h3 {
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-day__body > p,
.ms-day__body > ul {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
}

/* The day chip: the board's "Days 1–2 · Rameshwaram" pill. */
.ms-day__body > p.ms-day__chip {
	align-self: flex-start;
	padding: 2px var(--space-10);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill, 999px);
	background-color: var(--surface-soft);
	font-size: var(--type-chip-size);
	font-weight: var(--type-chip-weight);
	line-height: var(--type-chip-lh);
	color: var(--text-price);
}

@media (min-width: 768px) {
	.wp-block-group.is-style-card.ms-day:has(> .ms-day__photo) {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	/* The days carry long words: the photo keeps its shape at the top of its column and stays in view
	   while the words scroll past it, rather than stretching to the card's height. It sits inside the
	   card, inset by the body's own padding, with every corner rounded (an inner image's radius), so it
	   looks the same resting at the top of its card, stuck mid-card and stopped at the card's foot (10 Nov
	   2026: a radius on the outer corner only showed square top corners once the photo stuck). */
	.ms-day > .ms-day__photo {
		position: sticky;
		top: calc(var(--sticky-top, 0px) + var(--space-16));
		align-self: start;
		margin: var(--space-24) 0 var(--space-24) var(--space-24);
		background-color: transparent;
	}

	/* On a page with the section bar (parts/section-nav.php, stuck under the header: Yatra, owner 10 Nov
	   2026) the photo stops under the bar's pill, not behind it: the bar's offset (space-8), the pill
	   (a target-min tab inside 4px padding and a 1px border each side: space-10) and the same space-16.
	   Only where the card can clip without trapping the sticky photo (above). */
	@supports (overflow: clip) {
		.ms-landing__body:has(> .ms-secnav) .ms-day > .ms-day__photo {
			top: calc(var(--sticky-top, 0px) + var(--space-8) + var(--target-min) + var(--space-10) + var(--space-16));
		}
	}

	.ms-day > .ms-day__photo img {
		aspect-ratio: 4 / 3;
		border-radius: var(--radius-md);
	}

	.wp-block-group.ms-day__body {
		padding: var(--space-24);
	}
}

/* Links inside a table cell (the post tables, e.g. "Tarpan" in a list of rites): a 44px target that
   keeps the row's height. */
.wp-block-table :is(td, th) a {
	display: inline-block;
	padding-block: 12px;
	margin-block: -12px;
}

/* ==== header.css ==== */
/**
 * Modern Seva: site header, mega-menu, drawer, compact checkout/account header, season ribbon and
 * breadcrumbs (parts/header/*, parts/season-ribbon.php, parts/breadcrumbs.php; behaviour in
 * assets/js/header.js and ribbon.js).
 *
 * Mobile first. Under 768px: closed header = logo, search, cart, account, menu. 768-1179px: + maroon
 * utility bar, WhatsApp and Book; the menu opens a right-hand drawer. 1180px and up: the same menu
 * tree becomes the desktop navigation with full-width panels. One DOM serves both.
 * Tokens only; local measures are --hdr-utility-h (here) and --sticky-h (footer.css sets it); the bar
 * height is the token --hdr-bar-h (62 / 72 from 768 / 68 from 1180, board 14).
 */

/* ---------- Shell measures and anchor offsets (WCAG 2.4.11: a target never hides under the header) ---------- */
:root {
	--hdr-utility-h: 0px;
	--sticky-h: 0px;
}

@media (min-width: 768px) {
	:root {
		--hdr-utility-h: 44px;
	}
}

/* :root, not html: core's admin-bar.css sets html { scroll-padding-top } for logged-in users and must not
   win; its bar height is added instead. The utility height counts too: a jump upwards brings the utility
   bar back (header.js), and the target must still clear it. */
:root {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hdr-bar-h) + var(--hdr-utility-h) + var(--space-16));
	scroll-padding-bottom: var(--sticky-h);
}

/* Where a sticky part of a page sits: under the stuck header bar, lower by the utility bar while
   header.js has brought it back (is-revealed), so the header never covers it. The product page's
   gallery and section bar use it; a part that sticks adds its own gap and may transition "top" with
   the header's own duration. */
:root {
	--hdr-shift: 0px;
	--sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hdr-bar-h) + var(--hdr-shift));
}

:root:has(.ms-header.is-revealed:not(.is-drawer-open)) {
	--hdr-shift: var(--hdr-utility-h);
}

@media (max-width: 600px) {
	:root:has(body.admin-bar) {
		--sticky-top: calc(var(--hdr-bar-h) + var(--hdr-shift));
	}
}

/* Scroll lock while the drawer is open (header.js). */
html.ms-scroll-lock,
html.ms-scroll-lock body {
	overflow: hidden;
}

/* ---------- Header shell: sticky; the utility bar scrolls away and returns on scroll-up ---------- */
.ms-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--hdr-utility-h));
	z-index: var(--z-header);
	background-color: var(--surface-page);
	transition: transform var(--duration-md) var(--easing-out), box-shadow var(--duration-sm) var(--easing-standard);
}

/* Under 601px core's admin bar scrolls away with the page (position: absolute), so the stuck header
   goes to the top edge. */
@media (max-width: 600px) {
	.admin-bar .ms-header {
		top: calc(0px - var(--hdr-utility-h));
	}
}

/* Sticky bars float (D-112, board 14). */
.ms-header.is-condensed {
	box-shadow: var(--shadow-float);
}

.ms-header.is-revealed {
	transform: translateY(var(--hdr-utility-h));
}

/* A transformed ancestor would trap the fixed drawer: the header never moves while it is open. */
.ms-header.is-drawer-open {
	transform: none;
	transition: none;
}

/* Utility bar (deep maroon through data-theme). */
.ms-header__utility {
	display: none;
	background-color: var(--surface-page);
	color: var(--text-body);
}

@media (min-width: 768px) {
	.ms-header__utility {
		display: block;
	}
}

.ms-header__utility-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-16);
	min-height: var(--hdr-utility-h);
}

.ms-header__utility .ms-reply {
	color: var(--text-body);
	font-size: var(--type-caption-size);
	font-weight: var(--type-caption-weight);
}

/* The bar keeps one line (its height is the sticky offset): a long reply note is cut here and read in
   full in the drawer and the footer. */
.ms-header__utility .ms-reply {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Right end of the strip (board 14, D-123(2)(8)): currency (not on product pages, D-123(9)), a hairline,
   then the sales number with a WhatsApp and a call link, two 44px icon targets touching. */
.ms-header__utility-end {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-16);
}

.ms-header__utility-sep {
	width: 1px;
	height: var(--space-16);
	background-color: var(--border-subtle);
}

/* Where the plugin offers no other currency it hides its control: the hairline goes with it. */
.ms-header__utility-end:has(.ppn-currency-router[hidden]) .ms-header__utility-sep {
	display: none;
}

.ms-header__number {
	display: flex;
	align-items: center;
}

.ms-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	margin-right: var(--space-4);
	color: var(--text-link);
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
}

/* The ring sits inside the 44px target: the strip is the top edge of the screen and an outer ring would
   be cut off there. */
.ms-header__num-link {
	color: var(--text-link);
	background-color: transparent;
}

.ms-header__num-link:focus-visible {
	outline-offset: calc(-1 * var(--focus-width));
}

/* The last glyph lines up with the container edge; its 44px target overhangs into the gutter. */
.ms-header__number > :last-child {
	margin-right: calc((var(--icon-xs) - var(--target-min)) / 2);
}

.ms-header__phone-label {
	display: none;
}

@media (min-width: 1180px) {
	.ms-header__phone-label {
		display: inline;
	}
}

/* ---------- Bar: logo, navigation, tools ---------- */
.ms-header__bar {
	background-color: var(--surface-page);
}

.ms-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	height: var(--hdr-bar-h);
}

/* The link is at least 44px tall even when a narrow screen shrinks the image (320px: 96 x 39). */
.ms-logo {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	min-height: var(--target-min);
	line-height: 0;
	text-decoration: none;
}

.ms-logo__img {
	display: block;
	width: 100%;
	height: auto;
}

.ms-header__logo,
.ms-drawer__logo {
	width: min(var(--logo-mobile-w), 30vw);
}

@media (min-width: 768px) {
	.ms-header__logo {
		width: var(--logo-tablet-w);
	}
}

@media (min-width: 1180px) {
	.ms-header__logo {
		width: var(--logo-desktop-w);
	}
}

/* Search, booking and account sit as one quiet cluster of touching 44px targets: no disc at rest, the
   soft-band disc on hover and focus (board 14). WhatsApp and Book keep their own gap. */
.ms-header__tools {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	margin-left: auto;
}

.ms-header__tools > .ms-iconbtn,
.ms-drawer__icons > .ms-iconbtn {
	background-color: transparent;
	transition: background-color var(--duration-md) var(--easing-standard);
}

@media (hover: hover) {
	.ms-header__tools > .ms-iconbtn:hover,
	.ms-drawer__icons > .ms-iconbtn:hover {
		background-color: var(--surface-soft);
	}
}

.ms-header__tools > .ms-iconbtn:focus-visible,
.ms-drawer__icons > .ms-iconbtn:focus-visible {
	background-color: var(--surface-soft);
}

.ms-header__tools > .ms-header__wa {
	margin-left: var(--space-12);
}

.ms-header__tools > .ms-header__book {
	margin-left: var(--space-8);
}

/* The logo and the 44px icons fit a 320px screen only on a tighter edge. */
@media (max-width: 389px) {
	.ms-header__inner.ms-container {
		padding-inline: var(--space-12);
	}
}

.ms-header__wa,
.ms-header__book {
	display: none;
}

@media (min-width: 768px) {
	.ms-header__wa,
	.ms-header__book {
		display: inline-flex;
	}
}

/* Cart icon with the count badge (the count is the WooCommerce fragment span.ms-cart__state). */
.ms-cart {
	position: relative;
}

.ms-cart__count {
	position: absolute;
	top: 1px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 var(--space-4);
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
	font-family: var(--type-micro-family);
	font-size: var(--type-micro-size);
	font-weight: 700;
	line-height: var(--type-micro-lh);
	text-align: center;
}

/* Currency switcher (ppn-currency-router markup): the DS field corner and colours. */
/* The plugin hides its control while fewer than two currencies have a rate: the row goes with it. */
.ms-fx:has(> .ppn-currency-router[hidden]) {
	display: none;
}

.ms-fx .ppn-currency-router {
	width: auto;
	max-width: none;
	z-index: auto;
}

.ms-fx .ppn-currency-router__control {
	width: auto;
	min-width: 0;
	max-width: none;
	height: var(--target-min);
	gap: var(--space-4);
	padding: 0 var(--space-10) 0 var(--space-12);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
	color: var(--text-primary);
	box-shadow: none;
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	transition: background-color var(--duration-xs) var(--easing-standard);
}

.ms-fx .ppn-currency-router__symbol,
.ms-fx .ppn-currency-router__code {
	flex: none;
	width: auto;
	height: auto;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
}

.ms-fx .ppn-currency-router__chevron {
	margin: -3px 0 0 var(--space-6);
	border-color: currentColor;
}

@media (hover: hover) {
	.ms-fx .ppn-currency-router__control:hover {
		transform: none;
		border-color: var(--border-control);
		background-color: var(--surface-sunken);
		box-shadow: none;
	}

	.ms-fx .ppn-currency-router__control:hover .ppn-currency-router__symbol {
		border: 0;
		background: none;
	}
}

.ms-fx .ppn-currency-router__control:focus-within {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-color: var(--border-control);
	box-shadow: none;
}

/* In the utility strip the currency is a preference, not an action (board 14): a text control in the
   strip's ink, no field edge, the soft disc on hover; the native select stays the hit area. The ring sits
   inside, as on the number's links. */
.ms-fx--header {
	display: flex;
}

.ms-fx--header .ppn-currency-router__control {
	padding-inline: var(--space-8);
	border: 0;
	border-radius: var(--radius-sm);
	background-color: transparent;
	color: var(--text-body);
	line-height: var(--type-label-lh);
}

.ms-fx--header .ppn-currency-router__symbol,
.ms-fx--header .ppn-currency-router__code {
	color: var(--text-primary);
}

@media (hover: hover) {
	.ms-fx--header .ppn-currency-router__control:hover {
		background-color: var(--surface-soft);
	}
}

.ms-fx--header .ppn-currency-router__control:focus-within {
	background-color: var(--surface-soft);
	outline-offset: calc(-1 * var(--focus-width));
}

/* ---------- Navigation and panels, desktop (1180px and up) ---------- */
.ms-nav__list,
.ms-mega__cols,
.ms-mega__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-nav__btn {
	display: flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-primary);
	font-family: var(--type-button-md-family);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	line-height: var(--type-button-md-lh);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ms-nav__chev {
	flex-shrink: 0;
	color: var(--text-secondary);
	transition: transform var(--duration-md) var(--easing-standard);
}

.ms-nav__btn[aria-expanded="true"] .ms-nav__chev {
	transform: rotate(180deg);
}

.ms-mega__title {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
}

.ms-mega__title-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	color: inherit;
	background-position: 0 calc(50% + 0.85em);
}

.ms-mega__icon {
	flex-shrink: 0;
	color: var(--icon-ritual);
}

.ms-mega__sub {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	padding-bottom: 0;
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	background-position: 0 calc(50% + 0.85em);
}

.ms-mega__link {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-6);
	min-height: var(--target-min);
	color: var(--text-body);
	font-family: var(--type-body-sm-family);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-mega__link--em,
.ms-mega__link[aria-current="page"] {
	color: var(--text-link);
	font-weight: 600;
}

/* Season year and badge: small pills after a label, never a figure of their own. */
.ms-mega__year,
.ms-mega__badge {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 0 var(--space-6);
	border-radius: var(--radius-pill);
	font-family: var(--type-micro-family);
	font-size: var(--type-micro-size);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.ms-mega__year {
	border: 1px solid var(--border-default);
	color: var(--text-secondary);
}

.ms-mega__badge {
	background-color: var(--surface-soft);
	color: var(--text-accent);
}

.ms-mega__all {
	gap: var(--space-8);
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
}

@media (min-width: 1180px) {
	.ms-drawer {
		display: flex;
		align-items: center;
		min-width: 0;
		margin-left: var(--space-20);
	}

	.ms-drawer__head,
	.ms-drawer__foot,
	.ms-drawer__extras,
	.ms-drawer__search,
	.ms-header__menu,
	.ms-header__scrim {
		display: none;
	}

	.ms-drawer__body {
		display: flex;
		align-items: center;
	}

	/* Logo 48px tall, 10px clear of the 68px bar on each side (board 14). */
	.ms-header__logo {
		width: auto;
	}

	.ms-header__logo .ms-logo__img {
		width: auto;
		height: var(--space-48);
	}

	.ms-drawer__body,
	.ms-nav {
		min-width: 0;
	}

	/* Top labels never shrink or wrap (board 14): with the currency in the utility strip the row has room
	   at 1180 for the widest label set. Gap 16 to 1279px, 24 from 1280. */
	.ms-nav__list {
		display: flex;
		align-items: center;
		gap: var(--space-16);
		min-width: 0;
	}

	.ms-nav__item {
		flex: 0 0 auto;
	}

	.ms-nav__btn {
		position: relative;
		gap: var(--space-4);
		min-height: var(--target-min);
		white-space: nowrap;
		transition: color var(--duration-xs) var(--easing-standard);
	}

	.ms-nav__btn:hover,
	.ms-nav__btn[aria-expanded="true"],
	.ms-nav__item.is-current > .ms-nav__btn {
		color: var(--text-link);
	}

	/* Active underline: the open panel's button, else the current section while no panel is open. */
	.ms-nav__btn::after {
		content: "";
		position: absolute;
		left: 0;
		right: 18px;
		bottom: calc((var(--target-min) - var(--hdr-bar-h)) / 2 + var(--kalava-width) + var(--space-4));
		height: 3px;
		border-radius: 3px;
		background-color: var(--action-primary);
		opacity: 0;
		transition: opacity var(--duration-xs) var(--easing-standard);
	}

	.ms-nav__btn[aria-expanded="true"]::after,
	.ms-nav__list:not(:has([aria-expanded="true"])) .ms-nav__item.is-current > .ms-nav__btn::after {
		opacity: 1;
	}

	.ms-nav__link::after {
		display: none;
	}

	/* The panel spans the bar (its positioned ancestor) and stacks above every later section. */
	.ms-mega {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 2;
		background-color: var(--surface-page);
		box-shadow: var(--shadow-raised);
		opacity: 0;
		visibility: hidden;
		transform: translateY(calc(-1 * var(--shift-sm)));
		transition: opacity var(--duration-sm) var(--easing-in), transform var(--duration-sm) var(--easing-in), visibility 0s linear var(--duration-sm);
	}

	.ms-nav__item.is-open > .ms-mega,
	.ms-header:not([data-ready]) .ms-nav__item:is(:hover, :focus-within) > .ms-mega {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity var(--duration-md) var(--easing-out), transform var(--duration-md) var(--easing-out), visibility 0s;
	}

	/* A panel fading out (switched away from, or left by the pointer) takes no clicks or hover: the pointer
	   goes to the open panel or the page beneath it (header.js decides what is inside the open menu). */
	.ms-header[data-ready] .ms-nav__item:not(.is-open) > .ms-mega {
		pointer-events: none;
	}

	/* A panel taller than the screen scrolls inside itself. */
	.ms-mega__clip {
		max-height: calc(100vh - var(--hdr-bar-h) - var(--hdr-utility-h) - var(--space-16));
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ms-mega__inner {
		max-width: calc(var(--container-max) + var(--gutter) * 2);
		margin-inline: auto;
		padding: var(--space-24) var(--gutter);
	}

	/* Heads 44px tall so every panel starts level (board 14). */
	.ms-mega__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-16);
		min-height: var(--target-min);
		margin-bottom: var(--space-16);
	}

	.ms-mega__label {
		margin: 0;
		color: var(--text-primary);
		font-family: var(--type-h4-family);
		font-size: var(--type-h4-size);
		font-weight: var(--type-h4-weight);
		line-height: var(--type-h4-lh);
	}

	/* One row of equal columns, each starting at the same line: every panel reads left to right, with
	   nothing floating in the middle of a second row (owner, 5 Nov 2026). */
	.ms-mega__cols {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		column-gap: var(--space-24);
		align-items: start;
	}

	.ms-mega__col {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding-top: var(--space-12);
	}

	.ms-mega__col--highlight {
		padding: var(--space-8) var(--space-12) var(--space-12);
		border-radius: var(--radius-md);
		background-color: var(--surface-soft);
	}

	.ms-mega__colhead {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.ms-mega__links {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	/* "More …" columns (the walker adds ms-mega__col--more) sit in a soft-band well, radius 18; with 7+
	   links the well holds two link columns ("More poojas", D-123(3): the one exception to the 5 Nov
	   equal-columns rule). A panel with a well lays out as a flex row that stretches every column to the
	   same height, with the guide sub-link pinned to the column foot, so the panel ends level (board 14). */
	.ms-mega__cols:has(> .ms-mega__col--more) {
		display: flex;
		align-items: stretch;
		gap: var(--space-16);
	}

	.ms-mega__cols:has(> .ms-mega__col--more) > .ms-mega__col {
		flex: 1 1 auto;
		min-width: 0;
	}

	.ms-mega__col--more {
		flex-shrink: 0;
		padding: var(--space-12) var(--space-12) var(--space-8);
		border-radius: var(--radius-xl);
		background-color: var(--surface-soft);
	}

	.ms-mega__cols:has(> .ms-mega__col--more) > .ms-mega__col--more:has(.ms-mega__item:nth-child(7)) {
		flex: 0 0 var(--mega-well-w);
	}

	.ms-mega__col--more .ms-mega__link {
		white-space: nowrap;
	}

	.ms-mega__col--more:has(.ms-mega__item:nth-child(7)) .ms-mega__links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--space-16);
		align-items: start;
	}

	/* Two-column well links may wrap: a shorter row step, the 44px target kept. */
	.ms-mega__col--more:has(.ms-mega__item:nth-child(7)) .ms-mega__link {
		padding-block: var(--space-8);
		white-space: normal;
	}

	/* The guide sub-link sits at the column foot, on one line. */
	.ms-mega__cols:has(> .ms-mega__col--more) .ms-mega__sub {
		margin-top: auto;
		white-space: nowrap;
	}
}

/* From 1280px the menu breathes; the header WhatsApp keeps its word at every width from 768 (board 14). */
@media (min-width: 1280px) {
	.ms-nav__list {
		gap: var(--space-24);
	}

	.ms-mega__cols:has(> .ms-mega__col--more) {
		gap: var(--space-20);
	}

	.ms-drawer {
		margin-left: var(--space-32);
	}
}

/* ---------- Drawer and sheet (under 1180px) ---------- */
@media (max-width: 1179px) {
	.ms-drawer {
		position: fixed;
		top: var(--wp-admin--admin-bar--height, 0px);
		right: 0;
		bottom: 0;
		z-index: var(--z-dialog);
		display: flex;
		flex-direction: column;
		width: min(420px, 100%);
		background-color: var(--surface-page);
		box-shadow: var(--shadow-drawer);
		transform: translateX(100%);
		visibility: hidden;
		/* Enters 300ms easing-out; leaves on easing-in at 80% of that (240ms), the scrim too (board 14). */
		transition: transform calc(var(--duration-lg) * .8) var(--easing-in), visibility 0s linear calc(var(--duration-lg) * .8);
	}

	.ms-drawer.is-open {
		transform: none;
		visibility: visible;
		transition: transform var(--duration-lg) var(--easing-out), visibility 0s;
	}

	.ms-header__scrim {
		position: fixed;
		inset: 0;
		z-index: var(--z-scrim);
		background-color: var(--scrim);
		opacity: 0;
		transition: opacity calc(var(--duration-lg) * .8) var(--easing-in);
	}

	.ms-header__scrim.is-visible {
		opacity: 1;
		transition: opacity var(--duration-lg) var(--easing-out);
	}

	.ms-drawer__head {
		display: flex;
		flex-shrink: 0;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-8);
		min-height: 64px;
		padding: var(--space-8) var(--space-16) var(--space-8) var(--space-20);
		border-bottom: 1px solid var(--border-subtle);
	}

	.ms-drawer__icons {
		display: flex;
		gap: var(--space-6);
	}

	.ms-drawer__body {
		flex: 1 1 auto;
		min-height: 0;
		padding: var(--space-16) var(--space-20) var(--space-24);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ms-drawer__search {
		display: flex;
		align-items: center;
		gap: var(--space-8);
		min-height: var(--search-height);
		padding: 0 var(--space-16);
		border: 1px solid var(--border-control);
		border-radius: var(--radius-pill);
		background-color: var(--surface-raised);
		color: var(--text-secondary);
	}

	.ms-drawer__search:focus-within {
		outline: var(--focus-width) solid var(--focus-ring);
		outline-offset: var(--focus-offset);
	}

	.ms-drawer__search-input {
		flex: 1 1 auto;
		min-width: 0;
		height: calc(var(--search-height) - 2px);
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--text-primary);
		font-size: var(--type-body-size);
	}

	/* The visible focus ring is the field's (above); the bare input inside it draws none of its own. */
	.ms-drawer__search-input:focus-visible {
		outline: 0;
	}

	.ms-drawer__search-input::placeholder {
		color: var(--text-secondary);
		opacity: 1;
	}

	.ms-nav {
		margin-top: var(--space-8);
	}

	.ms-nav__item {
		border-bottom: 1px solid var(--border-subtle);
	}

	.ms-nav__btn {
		justify-content: space-between;
		gap: var(--space-12);
		width: 100%;
		min-height: 56px;
		color: var(--text-link);
	}

	.ms-nav__chev {
		color: var(--text-secondary);
	}

	/* Accordion: one open at a time (header.js); rows grow from 0fr to 1fr. */
	.ms-mega {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows var(--duration-md) var(--easing-standard);
	}

	.ms-nav__item.is-open > .ms-mega {
		grid-template-rows: 1fr;
	}

	.ms-mega__clip {
		min-height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: visibility 0s linear var(--duration-md);
	}

	.ms-nav__item.is-open > .ms-mega > .ms-mega__clip {
		visibility: visible;
		transition: visibility 0s;
	}

	.ms-mega__inner {
		padding-bottom: var(--space-12);
	}

	.ms-mega__main {
		display: flex;
		flex-direction: column;
	}

	/* The drawer's "All … →" link closes the section; its label repeats the button, so it goes. */
	.ms-mega__head {
		order: 2;
		padding-top: var(--space-4);
	}

	.ms-mega__label {
		display: none;
	}

	.ms-mega__col {
		padding: var(--space-8) 0 var(--space-12);
		border-top: 1px solid var(--border-subtle);
	}

	.ms-mega__col:first-child {
		border-top: 0;
		padding-top: 0;
	}

	.ms-mega__colhead {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0 var(--space-12);
	}

	/* Links become chips. */
	.ms-mega__links {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-8);
	}

	.ms-mega__link {
		padding: 0 var(--space-14);
		border-radius: var(--radius-pill);
		background-color: var(--surface-soft);
		background-image: none;
		color: var(--text-primary);
		font-family: var(--type-chip-family);
		font-size: var(--type-chip-size);
		font-weight: var(--type-chip-weight);
		line-height: var(--type-chip-lh);
		transition: background-color var(--duration-sm) var(--easing-standard);
	}

	.ms-mega__link:hover {
		background-color: var(--surface-sunken);
	}

	.ms-mega__link--em {
		color: var(--text-link);
	}

	.ms-mega__link[aria-current="page"] {
		background-color: var(--action-primary);
		color: var(--text-on-primary);
	}

	.ms-mega__link .ms-mega__badge {
		background-color: var(--surface-raised);
	}

	.ms-drawer__foot {
		display: flex;
		flex-shrink: 0;
		flex-direction: column;
		gap: var(--space-8);
		padding: var(--space-12) var(--space-20) calc(var(--space-16) + env(safe-area-inset-bottom));
		border-top: 1px solid var(--border-subtle);
		background-color: var(--surface-page);
	}

	.ms-drawer__ctas {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-8);
	}

	/* The word never breaks ("WhatsAp / p" at 320); under 360 the pair stacks (F-45). Board 14 draws it
	   side by side at 390. */
	.ms-drawer__ctas .ms-btn-wa {
		white-space: nowrap;
	}

	/* Currency, Call and the reply line close the scrolling menu (board 14); only WhatsApp and Book stay
	   pinned in the foot. */
	.ms-drawer__extras {
		display: grid;
		gap: var(--space-12);
		margin-top: var(--space-24);
	}

	.ms-drawer__call {
		justify-self: start;
		color: var(--text-primary);
	}

	.ms-drawer__extras .ms-reply {
		margin: 0;
		color: var(--text-secondary);
		font-size: var(--type-body-sm-size);
		line-height: var(--type-body-sm-lh);
	}

	.ms-fx--drawer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-12);
		min-height: var(--control-md);
	}

	.ms-fx__label {
		color: var(--text-primary);
		font-family: var(--type-button-sm-family);
		font-size: var(--type-button-sm-size);
		font-weight: var(--type-button-sm-weight);
	}
}

/* Under 768px the drawer is a full-height sheet. */
@media (max-width: 767px) {
	.ms-drawer {
		width: 100%;
		height: 100dvh;
	}
}

/* ---------- Compact header: cart, checkout and account pages ---------- */
.ms-header--compact {
	position: relative;
	top: auto;
}

.ms-compact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
	min-height: var(--hdr-bar-h);
	padding-block: var(--space-8);
}

.ms-compact__id {
	display: flex;
	align-items: center;
	gap: var(--space-14);
	min-width: 0;
}

.ms-compact__secure,
.ms-compact__account {
	display: inline-flex;
	align-items: center;
	gap: var(--space-6);
	min-width: 0;
	color: var(--text-primary);
	font-family: var(--type-label-family);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
}

.ms-compact__secure {
	white-space: nowrap;
}

.ms-compact__secure .ms-icon {
	color: var(--status-success-mark);
}

.ms-compact__account {
	min-height: var(--target-min);
	line-height: var(--type-label-lh);
	background-position: 0 calc(50% + 0.85em);
}

.ms-compact__account .ms-icon {
	flex-shrink: 0;
	color: var(--icon-ritual);
}

.ms-compact__help {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-12);
}

@media (min-width: 768px) {
	.ms-compact {
		padding-block: var(--space-14);
	}
}

/* Account control in the right corner (account pages). Signed in: the first name and a dropdown with every
   account tab and Sign out (a details element; header.js closes it on Escape, a press outside and focus
   leaving it). */
.ms-acdrop {
	position: relative;
}

.ms-acdrop__btn {
	padding: 0 var(--space-4);
	border-radius: var(--radius-md);
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.ms-acdrop__btn::-webkit-details-marker {
	display: none;
}

.ms-acdrop__btn::marker {
	content: "";
}

.ms-acdrop__btn:focus {
	outline: none;
}

.ms-acdrop__btn:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-acdrop__label {
	display: block;
	max-width: 260px;
	padding-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-acdrop__btn:hover .ms-acdrop__label,
.ms-acdrop__btn:focus-visible .ms-acdrop__label,
.ms-acdrop__item:hover .ms-k,
.ms-acdrop__item:focus-visible .ms-k {
	background-size: 100% var(--kalava-width), 100% var(--kalava-width);
}

.ms-acdrop__chev {
	flex-shrink: 0;
	color: var(--text-secondary);
	transition: transform var(--duration-sm) var(--easing-standard);
}

.ms-acdrop[open] .ms-acdrop__chev {
	transform: rotate(180deg);
}

/* Above the page below: the header is its own layer (z-index: var(--z-header)). */
.ms-acdrop__menu {
	position: absolute;
	top: calc(100% + var(--space-6));
	right: 0;
	z-index: 2;
	min-width: 200px;
	margin: 0;
	padding: var(--space-6);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-raised);
	list-style: none;
}

.ms-acdrop__item {
	display: flex;
	align-items: center;
	gap: var(--space-10);
	min-height: var(--target-min);
	padding: 0 var(--space-12);
	border-radius: var(--radius-md);
	color: var(--text-primary);
	font-family: var(--type-label-family);
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ms-acdrop__item .ms-icon {
	flex-shrink: 0;
	color: var(--icon-ritual);
}

.ms-acdrop__item .ms-k {
	padding-bottom: 2px;
}

.ms-acdrop__item[aria-current="page"] {
	color: var(--action-primary);
}

/* Sign out sits apart from the account pages. */
.ms-acdrop__last {
	margin-top: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border-subtle);
}

.ms-acdrop__item:focus {
	outline: none;
}

.ms-acdrop__item:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: calc(var(--focus-offset) * -1);
}

/* Phone: the account control keeps its glyph (and chevron); its words stay for screen readers. */
@media (max-width: 767px) {
	.ms-acdrop__label,
	.ms-compact__account-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.ms-compact__help .ms-compact__account {
		justify-content: center;
		min-width: var(--target-min);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-acdrop__chev {
		transition: none;
	}
}

/* ---------- Season ribbon (deep maroon; ribbon.js shows it in season) ---------- */
.ms-ribbon {
	overflow: hidden;
	background-color: var(--surface-page);
	color: var(--text-primary);
}

.ms-ribbon__inner {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--control-md);
	/* The 44px Dismiss target overhangs its 18px glyph: the glyph lines up with the container edge (board
	   padding 28 / 16 px at desktop / tablet). */
	padding-right: calc(var(--gutter) - var(--space-12));
}

.ms-ribbon__icon {
	flex-shrink: 0;
	color: var(--text-accent);
}

.ms-ribbon__text {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--space-12);
	min-width: 0;
	margin: 0;
	color: var(--text-primary);
	font-size: var(--type-body-sm-size);
	font-weight: 500;
	line-height: var(--type-body-sm-lh);
}

.ms-ribbon__wide {
	display: none;
}

.ms-ribbon__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	color: var(--text-link);
	font-weight: 600;
	white-space: nowrap;
	background-position: 0 calc(50% + 0.85em);
}

.ms-ribbon__close {
	color: var(--text-primary);
}

.ms-ribbon.is-entering {
	animation: ms-ribbon-in var(--duration-md) var(--easing-out);
}

.ms-ribbon.is-leaving {
	transition: height var(--duration-md) var(--easing-standard), opacity var(--duration-md) var(--easing-standard);
	opacity: 0;
}

@keyframes ms-ribbon-in {
	from {
		transform: translateY(-100%);
	}
}

@keyframes ms-ribbon-fade {
	from {
		opacity: 0;
	}
}

@media (min-width: 768px) {
	.ms-ribbon__inner {
		gap: var(--space-12);
	}

	.ms-ribbon__wide {
		display: inline;
	}

	.ms-ribbon__narrow {
		display: none;
	}
}

/* Under 360 the drawer's WhatsApp and Book stack (F-45), and the ribbon's sentence and link stack: the diya
   lines up with the sentence's first line, not the gap between the two rows (F-38). */
@media (max-width: 359px) {
	.ms-drawer__ctas {
		grid-template-columns: minmax(0, 1fr);
	}

	.ms-ribbon__inner {
		align-items: flex-start;
	}

	.ms-ribbon__text {
		align-items: flex-start;
	}

	.ms-ribbon__close {
		align-self: center;
	}
}

/* ---------- Breadcrumbs (DS C8; v2 board 14 [12], ledger 2c) ----------
   One position on every page type: its own line above the hero or title (parts/page/landing.php, the
   product page, archives). A quiet trail: parents in secondary ink, the page in primary ink at 500.
   D-189(7): one position everywhere, boards 21/22: the trail's line box sits 28px below the header at
   every width. The room under it belongs to what follows (24 to the content, 8 on phones). */
.ms-crumbs {
	position: relative;
	z-index: 1; /* F-10k: the keyboard ring paints over the hero or gallery that follows, never under it. */
	padding-top: calc(var(--space-24) + var(--space-4));
}

.ms-crumbs ol {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text-secondary);
	font-size: var(--type-label-size);
	line-height: var(--type-label-lh);
}

/* Inline items, so a long page title wraps after its parents instead of dropping to its own line. */
.ms-crumbs li {
	display: inline;
}

.ms-crumbs a,
.ms-crumbs--rm a {
	position: relative;
	color: var(--text-secondary);
	text-decoration: none;
}

/* A 44px hit area without a taller row: an overlay centred on the label, at least 44 x 44. */
.ms-crumbs a::before {
	content: "";
	position: absolute;
	inset-block: calc((100% - var(--target-min)) / 2);
	inset-inline: min(0px, calc((100% - var(--target-min)) / 2));
}

@media (hover: hover) {
	.ms-crumbs a:hover {
		color: var(--text-link);
	}
}

.ms-crumbs a:focus-visible {
	color: var(--text-link);
}

.ms-crumbs [aria-current="page"] {
	color: var(--text-primary);
	font-weight: 500;
}

.ms-crumbs a,
.ms-crumbs__sep {
	vertical-align: middle;
}

.ms-crumbs__sep {
	margin-inline: var(--space-8);
	color: var(--text-secondary);
}

/* D-189(2): a lone "Home" on phones reads as a way back, arrow first (parts/breadcrumbs.php). */
.ms-crumbs__back {
	display: none;
}

/* Under 768 the trail keeps one line: the page is read by screen readers only, and the parent before
   it (marked in parts/breadcrumbs.php) drops its separator, so the trail ends at that parent. */
@media (max-width: 767px) {
	.ms-crumbs [aria-current="page"] {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.ms-crumbs__parent > .ms-crumbs__sep {
		display: none;
	}

	/* One box for arrow and word, so the focus ring is a single rectangle. */
	.ms-crumbs__backlink {
		display: inline-flex;
		align-items: center;
		gap: var(--space-4);
	}

	.ms-crumbs__back {
		display: block;
		flex: none;
	}
}

.ms-crumbs--rm p {
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--type-caption-size);
}

/* header.js sets this for two frames when the layout crosses 1180px. */
.ms-header.ms-no-anim,
.ms-header.ms-no-anim * {
	transition: none !important;
}

/* ---------- Reduced motion: fades only, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
	.ms-header {
		transition: box-shadow var(--duration-xs) linear;
	}

	.ms-nav__chev {
		transition: none;
	}

	.ms-ribbon.is-entering {
		animation-name: ms-ribbon-fade;
		animation-timing-function: linear;
	}

	/* Dismiss: a fade; the height drops at once instead of sliding. */
	.ms-ribbon.is-leaving {
		transition: opacity var(--duration-xs) linear;
	}
}

@media (prefers-reduced-motion: reduce) and (min-width: 1180px) {
	.ms-mega,
	.ms-nav__item.is-open > .ms-mega {
		transform: none;
	}

	.ms-mega {
		transition: opacity var(--duration-xs) linear, visibility 0s linear var(--duration-xs);
	}

	.ms-nav__item.is-open > .ms-mega {
		transition: opacity var(--duration-xs) linear, visibility 0s;
	}
}

@media (prefers-reduced-motion: reduce) and (max-width: 1179px) {
	.ms-drawer,
	.ms-drawer.is-open {
		transform: none;
	}

	.ms-drawer {
		opacity: 0;
		transition: opacity var(--duration-xs) linear, visibility 0s linear var(--duration-xs);
	}

	.ms-drawer.is-open {
		opacity: 1;
		transition: opacity var(--duration-xs) linear, visibility 0s;
	}

	.ms-header__scrim,
	.ms-header__scrim.is-visible {
		transition: opacity var(--duration-xs) linear;
	}

	.ms-mega {
		transition: none;
	}
}

/* ribbon.js moves focus to <main> when the ribbon it held is dismissed: a landing spot, not a control. */
.ms-main[tabindex="-1"]:focus:not(:focus-visible) {
	outline: none;
}

/* ==== footer.css ==== */
/**
 * Modern Seva: site footer, the mobile sticky bar and the desktop booking bar (parts/footer/site.php,
 * parts/sticky-bar.php; behaviour in assets/js/header.js (footer accordions), sticky.js and product.js).
 *
 * Deep-maroon ground (data-theme="maroon" flips the colour tokens). Mobile first: brand, contact and
 * the dates card stack, the link columns fold into accordions (several may be open); 768px: brand
 * beside contact over a full-width dates card, columns in 3; 1180px: near-equal thirds (brand,
 * contact, dates; board 14 [14]), columns in 6.
 * Tokens only.
 */

.ms-footer {
	background-color: var(--surface-page);
	color: var(--text-body);
}

/* ---------- Top: brand, contact, "Save the dates" ---------- */
.ms-footer__top {
	display: grid;
	grid-template-areas:
		"brand"
		"contact"
		"optin";
	gap: var(--space-24);
	padding-block: var(--space-32) var(--space-24);
}

.ms-footer__brand {
	grid-area: brand;
}

.ms-footer__contact {
	grid-area: contact;
}

.ms-footer__optin {
	grid-area: optin;
}

.ms-footer__logo {
	width: 180px;
}

.ms-footer__tagline {
	max-width: 420px;
	margin: var(--space-14) 0 0;
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-lg-lh);
}

/* The seal's facts as a text line under the tagline (D-115(4)). */
.ms-footer__seal-line {
	margin: var(--space-12) 0 0;
	color: var(--text-secondary);
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	text-wrap: balance;
}

/* "Ask a pandit" and Call as an equal pair (D-115 pair rule). The contact column is too narrow for
   halves at every width (the Call label needs about 230px), so the pair stacks, both full width. */
.ms-footer__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-8);
}

.ms-footer__actions > * {
	width: 100%;
}

/* The call button's edge is the control line of the maroon ground, quieter than full white. */
.ms-footer__call {
	--gs-line: var(--border-control);
	white-space: nowrap;
}

.ms-footer__contact .ms-reply {
	margin-top: var(--space-12);
	color: var(--text-body);
}

.ms-footer__optin {
	padding: var(--space-20);
	border-radius: var(--radius-lg);
	background-color: var(--surface-raised);
}

.ms-footer__optin:focus:not(:focus-visible) {
	outline: none;
}

.ms-footer__optin:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-footer__optin-title {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: var(--type-h4-weight);
	line-height: var(--type-h4-lh);
}

.ms-footer__optin-title .ms-icon {
	flex-shrink: 0;
	color: var(--text-accent);
}

.ms-footer__optin-text {
	margin: var(--space-6) 0 0;
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-footer__optin-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-20);
	margin-top: var(--space-16);
}

.ms-footer__privacy {
	font-size: var(--type-caption-size);
}

/* Phones: "Send me the dates" full width, Privacy policy under it. */
@media (max-width: 767px) {
	.ms-footer__optin-actions > .ms-footer__optin-btn {
		flex: 1 1 100%;
	}
}

@media (min-width: 768px) {
	.ms-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"brand contact"
			"optin optin";
		align-items: start;
		gap: var(--space-24) var(--space-32);
		padding-block: var(--space-40) var(--space-32);
	}

	.ms-footer__optin {
		padding: var(--space-24);
	}
}

@media (min-width: 1180px) {
	/* Near-equal thirds; the dates card is a little wider so its button and Privacy link share a row. */
	.ms-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
		grid-template-areas: "brand contact optin";
		gap: var(--space-24) var(--space-40);
		padding-block: var(--space-48) var(--space-40);
	}

	.ms-footer__logo {
		width: 200px;
	}

	.ms-footer__optin-actions {
		flex-wrap: nowrap;
		gap: var(--space-12);
	}

	.ms-footer__privacy,
	.ms-footer__optin-actions > .ms-footer__optin-btn {
		white-space: nowrap;
	}
}

/* ---------- Link columns and the band by city ---------- */
.ms-footer__nav,
.ms-footer__cities {
	border-top: 1px solid var(--border-subtle);
}

.ms-fcols,
.ms-fcol__links,
.ms-footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-fcols {
	padding-block: var(--space-8);
}

.ms-fcol {
	border-bottom: 1px solid var(--border-subtle);
}

.ms-fcol:last-child {
	border-bottom: 0;
}

.ms-fcol__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
	min-height: 54px;
}

.ms-fcol__label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	color: var(--text-primary);
	font-family: var(--type-button-md-family);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	line-height: var(--type-button-md-lh);
}

.ms-fcol__label--link {
	min-height: var(--target-min);
	background-position: 0 calc(50% + 0.85em);
}

.ms-fcol__icon {
	flex-shrink: 0;
	color: var(--icon-ritual);
}

.ms-fcol__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
	min-height: 54px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-primary);
	font-family: var(--type-button-md-family);
	font-size: var(--type-button-md-size);
	font-weight: var(--type-button-md-weight);
	text-align: left;
	cursor: pointer;
}

.ms-fcol:not(.ms-fcol--linked) .ms-fcol__toggle {
	width: 100%;
}

/* The chevron sits on the right edge, in line with the plain titles' chevrons above. */
.ms-fcol--linked .ms-fcol__toggle {
	justify-content: flex-end;
	flex-shrink: 0;
	width: var(--target-min);
}

/* A plain title is the button itself under 768px. */
.ms-fcol:not(.ms-fcol--linked):has(.ms-fcol__toggle) > .ms-fcol__title > .ms-fcol__label {
	display: none;
}

.ms-fcol__chev {
	flex-shrink: 0;
	color: var(--text-secondary);
	transition: transform var(--duration-md) var(--easing-standard);
}

.ms-fcol__toggle[aria-expanded="true"] .ms-fcol__chev {
	transform: rotate(180deg);
}

.ms-fcol__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-bottom: var(--space-12);
}

.ms-fcol__a {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-6);
	min-width: var(--target-min);
	min-height: var(--target-min);
	padding-block: var(--space-4);
	color: var(--text-body);
	font-size: var(--type-label-size);
	line-height: var(--type-label-lh);
	background-position: 0 calc(50% + 0.85em);
}

.ms-fcol__a[aria-current="page"] {
	color: var(--text-primary);
	font-weight: 600;
}

.ms-fcol__year {
	font-size: var(--type-micro-size);
	font-weight: 600;
}

/* Folding: only once header.js is running (data-ready), so the links stay open without JavaScript. */
@media (max-width: 767px) {
	.ms-footer[data-ready] .ms-fcol__panel {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows var(--duration-md) var(--easing-standard);
	}

	.ms-footer[data-ready] .ms-fcol.is-open > .ms-fcol__panel {
		grid-template-rows: 1fr;
	}

	.ms-footer[data-ready] .ms-fcol__clip {
		min-height: 0;
		overflow: hidden;
	}

	.ms-footer[data-ready] .ms-fcol:not(.is-open) .ms-fcol__clip {
		visibility: hidden;
		transition: visibility 0s linear var(--duration-md);
	}
}

@media (min-width: 768px) {
	.ms-fcols {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-24);
		padding-block: var(--space-32);
	}

	.ms-fcols--cities {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ms-fcol {
		border-bottom: 0;
	}

	.ms-fcol__title {
		min-height: 0;
		margin-bottom: var(--space-4);
	}

	.ms-fcol__toggle {
		display: none;
	}

	.ms-fcol:not(.ms-fcol--linked):has(.ms-fcol__toggle) > .ms-fcol__title > .ms-fcol__label {
		display: inline-flex;
	}

	/* Column titles: small capitals in apricot (the board's footer headings). */
	.ms-fcol__label {
		color: var(--text-accent);
		font-family: var(--type-eyebrow-family);
		font-size: var(--type-eyebrow-size);
		font-weight: var(--type-eyebrow-weight);
		line-height: var(--type-eyebrow-lh);
		letter-spacing: var(--type-eyebrow-tracking);
		text-transform: uppercase;
	}

	.ms-fcol__label--link {
		min-height: var(--target-min);
	}

	/* City titles share one height, linked or not, one line or two, so the first links line up. */
	.ms-fcols--cities .ms-fcol__title {
		min-height: var(--target-min);
	}

	.ms-fcol__links {
		padding-bottom: 0;
	}

	.ms-fcol__a {
		font-size: var(--type-body-sm-size);
	}
}

@media (min-width: 1180px) {
	.ms-fcols {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: var(--space-24);
		padding-block: var(--space-32) var(--space-24);
	}

	.ms-fcols--cities {
		grid-template-columns: repeat(8, minmax(0, 1fr));
		gap: var(--space-20);
	}
}

/* ---------- Bottom: quick links, legal links and the identity row ---------- */
.ms-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding-block: var(--space-16) var(--space-32);
	border-top: 1px solid var(--border-subtle);
}

.ms-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-20);
}

.ms-footer__legal a {
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	color: var(--text-body);
	font-size: var(--type-caption-size);
	font-weight: 500;
	background-position: 0 calc(50% + 0.85em);
}

.ms-footer__identity {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	color: var(--text-body);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
}

.ms-footer__identity p {
	margin: 0;
}

.ms-footer__identity a {
	position: relative;
	color: inherit;
	font-weight: 600;
}

/* The email link keeps its caption line but gets a 44px hit area: an overlay centred on the text,
   at least 44 x 44 (the breadcrumb pattern, header.css .ms-crumbs a::before; fix-list F-29). */
.ms-footer__identity a::before {
	content: "";
	position: absolute;
	inset-block: calc((100% - var(--target-min)) / 2);
	inset-inline: min(0px, calc((100% - var(--target-min)) / 2));
}

@media (min-width: 1180px) {
	.ms-footer__identity {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: var(--space-6) var(--space-24);
	}
}

/* ---------- Mobile sticky bar (marketing): WhatsApp · Call · See price ---------- */
.ms-sticky {
	display: none;
}

@media (max-width: 767px) {
	:root:has(body.ms-has-sticky) {
		--sticky-h: calc(74px + env(safe-area-inset-bottom));
	}

	body.ms-has-sticky {
		padding-bottom: var(--sticky-h);
	}

	.ms-sticky {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: var(--z-sticky);
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr);
		gap: var(--space-8);
		padding: var(--space-10) var(--space-12) calc(var(--space-16) + env(safe-area-inset-bottom));
		border-top: 1px solid var(--border-subtle);
		background-color: var(--surface-raised);
		box-shadow: var(--shadow-sheet);
		transition: transform var(--duration-md) var(--easing-standard);
	}

	.ms-sticky--2 {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	}

	.ms-sticky--1 {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Hidden while the on-screen keyboard is open (sticky.js). */
	.ms-sticky.is-hidden {
		transform: translateY(100%);
		visibility: hidden;
		transition: transform var(--duration-md) var(--easing-standard), visibility 0s linear var(--duration-md);
	}

	.ms-sticky .ms-btn,
	.ms-sticky .ms-btn-wa {
		display: flex;
		justify-content: center;
		width: 100%;
		min-height: var(--control-md);
		/* The bar keeps compact 12px sides: three buttons share 320px (board 10 "Button box"). */
		padding-inline: var(--space-12);
		font-size: var(--type-button-sm-size);
		white-space: nowrap;
	}

	.ms-sticky .ms-call .ms-icon {
		color: currentColor;
	}

	/* Product page (board 13): the price on the left, WhatsApp (a disc under 414px), then Book. */
	.ms-sticky--product {
		grid-template-columns: minmax(0, 1fr) auto auto;
		align-items: center;
		padding: var(--space-12) var(--space-16) calc(var(--space-12) + env(safe-area-inset-bottom));
	}

	.ms-sticky__price {
		min-width: 0;
	}

	.ms-sticky--product .ms-btn-wa,
	.ms-sticky--product .ms-btn {
		width: auto;
	}

	/* Under 414px the WhatsApp button is the 48px disc (components.css .ms-btn-wa--collapse): the bar's
	   button sides above would widen it. */
	@media (max-width: 413px) {
		.ms-sticky .ms-btn-wa--collapse {
			width: var(--control-md);
			padding: 0;
		}
	}

	/* Marketing bar under 360px: "WhatsApp" ran past its button into Call at 320 (fix-list F-29). The
	   labelled buttons take the width their words need and Call gives way; sides drop to 8px. This bar
	   only: the shared 413px disc collapse above is untouched. */
	@media (max-width: 359px) {
		.ms-sticky--marketing.ms-sticky--3 {
			grid-template-columns: max-content minmax(0, 1fr) max-content;
		}

		.ms-sticky--marketing.ms-sticky--3 .ms-btn,
		.ms-sticky--marketing.ms-sticky--3 .ms-btn-wa {
			padding-inline: var(--space-8);
		}
	}

	/* Cart (board SevaCart): what is due today on the left, "Continue to checkout" on the right. */
	.ms-sticky--cart {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: var(--space-12);
	}

	.ms-sticky__due {
		display: flex;
		flex-direction: column;
		min-width: 0;
		margin: 0;
	}

	.ms-sticky__label {
		font-size: var(--type-micro-size);
		line-height: var(--type-micro-lh);
		color: var(--text-body);
	}

	.ms-sticky__amount {
		font-size: var(--type-price-sm-size);
		font-weight: var(--type-price-sm-weight);
		line-height: var(--type-price-sm-lh);
		color: var(--text-price); /* Prices in dark ink, never maroon (D-112(6)). */
		white-space: nowrap;
	}

	.ms-sticky--cart .ms-btn {
		width: auto;
		padding-inline: var(--space-16);
	}
}

/* ---------- The bars' price block (parts/sticky-bar.php; product.js swaps in the estimated total) ---------- */
.ms-barprice {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ms-barprice .ms-price__row {
	margin: 0;
}

.ms-barprice .ms-price__main,
.ms-barprice__total {
	font-size: var(--type-price-md-size);
	font-weight: var(--type-price-md-weight);
	line-height: var(--type-price-md-lh);
	font-variant-numeric: tabular-nums lining-nums;
	color: var(--text-price);
	white-space: nowrap;
}

.ms-barprice__label {
	overflow: hidden;
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* On the phone bar the unit sits under the figure. */
.ms-sticky__price .ms-barprice__label {
	order: 1;
}

.ms-barprice [hidden] {
	display: none;
}

@media (max-width: 359px) {
	.ms-sticky__price .ms-price__main,
	.ms-sticky__price .ms-barprice__total {
		font-size: var(--type-price-sm-size);
		line-height: var(--type-price-sm-lh);
	}
}

/* ---------- Desktop and tablet booking bar (board 13; D-116(6), D-121): from 768, 64px, no WhatsApp ----------
   It rises once the box's Book has left the screen and steps aside over the footer (product.js). In 300ms
   easing out, out at 80% easing in; hidden = not focusable (visibility). */
.ms-dbar {
	display: none;
}

@media (min-width: 768px) {
	.ms-dbar:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: var(--z-sticky);
		display: block;
		background-color: var(--surface-raised);
		box-shadow: var(--shadow-sheet);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform calc(var(--duration-lg) * 0.8) var(--easing-in), visibility 0s linear calc(var(--duration-lg) * 0.8);
	}

	.ms-dbar.is-shown {
		transform: none;
		visibility: visible;
		transition: transform var(--duration-lg) var(--easing-out), visibility 0s;
	}

	.ms-dbar__in {
		display: flex;
		align-items: center;
		gap: var(--space-16);
		/* The page edge (D-185 Q-8): the same box as .ms-container, 1200 of content inside the gutters. */
		max-width: calc(var(--container-max) + var(--gutter) * 2);
		min-height: calc(var(--space-48) + var(--space-16)); /* 64px (board 13) */
		margin-inline: auto;
		padding: var(--space-8) var(--gutter);
	}

	/* Two classes: WooCommerce's `.woocommerce img { height: auto }` must not win, or the bar grows
	   to the photo's natural height while it loads. A fixed 48px square either way. */
	.ms-dbar .ms-dbar__photo {
		flex-shrink: 0;
		width: var(--space-48);
		max-width: none;
		height: var(--space-48);
		aspect-ratio: 1;
		border-radius: var(--radius-sm);
		object-fit: cover;
	}

	.ms-dbar__what {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
		margin: 0;
	}

	.ms-dbar__title {
		overflow: hidden;
		font-size: var(--type-card-title-size);
		font-weight: 600;
		line-height: var(--type-card-title-lh);
		color: var(--text-primary);
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.ms-dbar__line {
		overflow: hidden;
		font-size: var(--type-body-sm-size);
		line-height: var(--type-label-lh);
		color: var(--text-secondary);
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.ms-dbar__sum {
		flex-shrink: 0;
		align-items: flex-end;
	}

	.ms-dbar__in > :is(a, button) {
		flex-shrink: 0;
	}

	/* Room for the bar only while it is up, so the page end never carries an empty 64px band. */
	body:has(.ms-dbar.is-shown) {
		padding-bottom: calc(var(--space-48) + var(--space-16));
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.ms-dbar .ms-dbar__photo,
	.ms-dbar__line {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-fcol__chev,
	.ms-footer[data-ready] .ms-fcol__panel {
		transition: none;
	}

	.ms-sticky,
	.ms-sticky.is-hidden {
		transition: opacity var(--duration-xs) linear, visibility 0s linear var(--duration-xs);
	}

	.ms-sticky.is-hidden {
		transform: none;
		opacity: 0;
	}

	.ms-dbar:not([hidden]) {
		transform: none;
		opacity: 0;
		transition: opacity var(--duration-xs) linear, visibility 0s linear var(--duration-xs);
	}

	.ms-dbar.is-shown {
		opacity: 1;
		transition: opacity var(--duration-xs) linear;
	}
}

.ms-fcol__toggle-text {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
}
