/* ==========================================================================
   Watt Ratanakpratib — design system
   "A bright, busy, loved community place": warm paper, saffron robes,
   real photos, a little flag-ribbon and bunting. Light theme only.
   --------------------------------------------------------------------------
    1. Tokens            8. Cards             15. Gallery & lightbox
    2. Reset             9. Section heads     16. Facades & embeds
    3. Typography       10. Badges & chips    17. Photos, hero, mosaic
    4. Layout           11. Timeline & today  18. CTA bands, 404
    5. Header & nav     12. Events & calendar 19. Utilities
    6. Footer           13. Accordion         20. Reveal & motion
    7. Buttons          14. Forms
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --paper: #fbf6ec;
  --paper-2: #f3e9d6;
  --white: #ffffff;
  --ink: #23170e;
  --ink-soft: #5b4a3b;
  --saffron: #de6f14;
  --saffron-btn: #c05809;       /* saffron, tuned so white text passes AA */
  --saffron-deep: #b2530a;
  --saffron-ink: #9a4708;       /* saffron-deep, darkened for small text on tinted bands */
  --tint: #fdecd6;              /* saffron-tinted band */
  --tint-2: #fbdcb6;
  --gold: #e2a91f;
  --green: #2e7d4f;
  --maroon: #7b2430;
  --line: rgba(35, 23, 14, 0.12);
  --line-2: rgba(35, 23, 14, 0.22);

  /* Buddhist flag colours: ribbon + bunting motif ONLY */
  --flag-blue: #2356a8;
  --flag-yellow: #f3c10e;
  --flag-red: #c8261c;
  --flag-white: #ffffff;
  --flag-orange: #ee7c1e;

  --ok: #1f6b3f;
  --err: #a8261c;
  --info: #1e4f9a;

  --cat-festival: #b2530a;      /* darker than --saffron so white calendar labels pass AA */
  --cat-holy-day: #7b2430;
  --cat-weekly: #2e7d4f;
  --cat-community: #9a6a00;

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-km: 'Kantumruy Pro', 'Inter', system-ui, sans-serif;
  --font-km-display: 'Moul', 'Kantumruy Pro', serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --shadow-sm: 0 1px 2px rgba(35, 23, 14, 0.06), 0 4px 12px -4px rgba(35, 23, 14, 0.12);
  --shadow: 0 1px 2px rgba(35, 23, 14, 0.06), 0 12px 30px -12px rgba(35, 23, 14, 0.24);
  --shadow-lg: 0 2px 4px rgba(35, 23, 14, 0.06), 0 26px 50px -20px rgba(35, 23, 14, 0.38);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--saffron-deep);
}
@media (min-width: 700px) { :root { --gutter: 24px; --header-h: 76px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* 2. RESET -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--saffron-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.btn:focus-visible, .nav-toggle:focus-visible, .social:focus-visible, .header__phone:focus-visible, .filter-chip:focus-visible, .seg__btn:focus-visible { border-radius: var(--r-pill); }
.card--link:focus-visible { border-radius: var(--r-lg); }
.tile:focus-visible { border-radius: 16px; }
::selection { background: var(--tint-2); color: var(--ink); }
table { border-collapse: collapse; }
address { font-style: normal; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 300; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* 3. TYPOGRAPHY --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
[lang="km"] { font-family: var(--font-km); letter-spacing: 0; line-height: 1.75; }
.km-display, .brand__km, .hero__km { font-family: var(--font-km-display); font-weight: 400; letter-spacing: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; line-height: 1.6; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.muted, .text-muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.text-center { text-align: center; }
.text-center .lead, .section-head--center .lead { margin-inline: auto; }

.eyebrow { margin: 0 0 0.6rem; font: 600 0.78rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron-ink); }
.km-sub { display: block; margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); }
.km { display: block; font-family: var(--font-km); font-size: 0.95rem; font-weight: 500; color: var(--saffron-ink); line-height: 1.6; }
.section-title em, h1 em, h2 em {
  font-style: normal; color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(226, 169, 31, 0.45) 62% 92%, transparent 92%);
  padding-inline: 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* 4. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: clamp(52px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--alt { background: var(--white); }
.section--tint { background: var(--tint); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
  .split--center { align-items: center; }
}
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.cluster--center { justify-content: center; }

/* ribbon: the 5-stripe Buddhist flag, as a thin divider/accent */
.ribbon {
  display: block; width: 132px; height: 7px; border-radius: 4px; margin: 0;
  background: linear-gradient(90deg, var(--flag-blue) 0 20%, var(--flag-yellow) 20% 40%, var(--flag-red) 40% 60%, var(--flag-white) 60% 80%, var(--flag-orange) 80% 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 23, 14, 0.14);
}
.ribbon--full { width: 100%; height: 6px; border-radius: 0; }
.ribbon--center { margin-inline: auto; }
.ribbon--lg { width: 180px; height: 9px; border-radius: 5px; }

/* 5. HEADER & NAV ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid transparent; transition: box-shadow 0.25s, border-color 0.25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -12px rgba(35, 23, 14, 0.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__km { font-size: 0.95rem; color: var(--saffron-ink); line-height: 1.5; white-space: nowrap; }
.brand__en { font: 700 1.05rem/1.1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__actions .header__donate { display: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--saffron-ink);
  transition: background 0.2s, transform 0.2s;
}
.header__phone:hover { background: var(--tint-2); color: var(--maroon); transform: translateY(-1px); }
.header__phone svg { width: 20px; height: 20px; flex: none; }
.header__phone span { display: none; }
@media (min-width: 640px) { .header__actions .header__donate { display: inline-flex; } }

.nav-toggle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; content: ""; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile: slide-in panel */
.nav {
  position: fixed; top: 0; right: 0; z-index: 120; height: 100vh; height: 100dvh; width: min(86vw, 360px);
  background: var(--paper); padding: calc(var(--header-h) + 8px) 24px 28px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  box-shadow: -24px 0 50px -20px rgba(35, 23, 14, 0.4);
}
.nav.is-open { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
.nav__list { list-style: none; display: grid; gap: 4px; }
.nav__link { display: block; padding: 12px 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); font: 600 1.15rem/1.2 var(--font-display); }
.nav__link:hover { background: var(--tint); color: var(--ink); }
.nav__link[aria-current="page"], .nav__link[aria-current="true"] { background: var(--tint); color: var(--saffron-ink); }
.nav__donate-item, .nav__phone-item { margin-top: 12px; }
.nav__donate-item .btn, .nav__phone-item .btn { width: 100%; }
.nav-toggle { position: relative; z-index: 130; }
.nav-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(35, 23, 14, 0.5); opacity: 0; transition: opacity 0.35s; }
.nav-overlay.is-open { opacity: 1; }
html.nav-open { overflow: hidden; }

@media (min-width: 1200px) {
  .nav-toggle, .nav-overlay, .nav__donate-item, .nav__phone-item { display: none !important; }
  .nav { position: static; transform: none; visibility: visible; width: auto; height: auto; padding: 0; background: none; box-shadow: none; overflow: visible; }
  .nav__list { display: flex; gap: 2px; }
  .nav__link { font: 600 0.95rem/1.2 var(--font-body); padding: 9px 12px; border-radius: var(--r-pill); }
  .nav__link[aria-current="page"], .nav__link[aria-current="true"] { background: var(--tint); }
  .header__actions .header__donate { display: inline-flex; }
  .header__phone { width: auto; height: auto; padding: 8px 14px 8px 12px; border-radius: var(--r-pill); }
  .header__phone span { display: inline; }
}

/* 6. FOOTER ------------------------------------------------------------- */
.site-footer { background: var(--paper-2); color: var(--ink-soft); margin-top: 0; }
.site-footer .ribbon--full { margin-bottom: clamp(36px, 5vw, 60px); }
.footer__grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr; } }
.footer__title { font: 700 0.8rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer__about { font-size: 0.95rem; margin: 14px 0 0; max-width: 34ch; }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__list a, .footer__contact a { color: var(--ink-soft); text-decoration: none; }
.footer__list a:hover, .footer__contact a:hover { color: var(--saffron-ink); text-decoration: underline; }
.footer__address { margin-bottom: 14px; line-height: 1.7; }
.footer__contact { display: grid; gap: 8px; }
.footer__phone { display: inline-flex; align-items: center; gap: 8px; padding-block: 4px; font: 700 1.2rem/1.2 var(--font-display); color: var(--ink) !important; }
.footer__phone svg { width: 20px; height: 20px; color: var(--saffron-ink); }
.socials { display: flex; gap: 10px; margin-bottom: 4px; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.2s, background 0.2s, color 0.2s; }
.social:hover { background: var(--saffron-btn); color: #fff; transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* 7. BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.8em 1.6em; border-radius: var(--r-pill);
  font: 600 0.975rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--saffron-btn); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px -6px rgba(178, 83, 10, 0.7); }
.btn--primary:hover { background: var(--saffron-deep); color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 22px -10px rgba(178, 83, 10, 0.8); }
.btn--ghost, .btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover, .btn--outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--maroon); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); }
.btn--light:hover { background: var(--tint); color: var(--maroon); transform: translateY(-2px); }
.btn--sm { padding: 0.55em 1.15em; font-size: 0.875rem; }
.btn--lg { padding: 0.95em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); border: 0; }
.btn--icon:hover { background: var(--tint); transform: translateY(-1px); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--saffron-ink); }
.btn-link svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.btn-link:hover { color: var(--maroon); }
.btn-link:hover svg { transform: translateX(4px); }

/* 8. CARDS -------------------------------------------------------------- */
.card { position: relative; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 30px); }
.section--alt .card { box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.card--flat { box-shadow: none; background: var(--paper); border: 1px solid var(--line); }
.section--alt .card--flat { background: var(--paper); box-shadow: none; }
.card--tint { background: var(--tint); box-shadow: none; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.card--link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: inherit; }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__media { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
.card__body { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.3rem; margin-bottom: 0.4em; }
.card__text { color: var(--ink-soft); margin-bottom: 0; }
.card__arrow { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--saffron-ink); }
.card__arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.card--link:hover .card__arrow svg { transform: translateX(5px); }

.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--saffron-ink); margin-bottom: 16px; flex: none; }
.icon-badge svg { width: 26px; height: 26px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.feature .icon-badge { margin-bottom: 0; }

.monk-card { text-align: center; }
.monk-card__avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--tint); color: var(--saffron); border: 3px solid var(--white); box-shadow: var(--shadow-sm); }
.monk-card__avatar svg { width: 42px; height: 42px; }
.monk-card__title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron-ink); font-weight: 600; margin: 0 0 4px; }
.monk-card__name { font-size: 1.3rem; margin-bottom: 4px; }
.monk-card__name.is-pending { color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; font-style: italic; }
.monk-card__role { color: var(--ink-soft); margin: 0; }

.list-lotus { list-style: none; display: grid; gap: 11px; }
.list-lotus li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.list-lotus li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; background: var(--saffron);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20C8 16 8 9 12 3c4 6 4 13 0 17zM5 17c-1-4 1-8 5-10 0 4-1 8-5 10zm14 0c1-4-1-8-5-10 0 4 1 8 5 10z'/%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'%3E%3Cpath d='M12 20C8 16 8 9 12 3c4 6 4 13 0 17zM5 17c-1-4 1-8 5-10 0 4-1 8-5 10zm14 0c1-4-1-8-5-10 0 4 1 8 5 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.list-lotus--dont li::before { background: var(--maroon); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.list-lotus strong { color: var(--ink); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; color: var(--ink-soft); min-height: 40px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-btn); color: #fff; font: 700 1.1rem/1 var(--font-display); }
.steps strong { color: var(--ink); }

.facts { display: grid; gap: 14px; margin: 0; }
.facts > div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font: 600 0.78rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-ink); margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ink); }
.facts a { font-weight: 600; }
.stat__num { font: 800 clamp(2rem, 4vw, 3rem)/1 var(--font-display); color: var(--saffron-ink); }
.stat__label { color: var(--ink-soft); font-size: 0.9rem; }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--tint); color: var(--ink); border: 1px solid var(--tint-2); }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--saffron-ink); }
.note p { margin: 0; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--saffron-ink); text-decoration: underline; }

/* 9. SECTION HEADS & PAGE HERO ------------------------------------------ */
.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 48px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-title { font-size: clamp(1.8rem, 3.8vw, 2.9rem); margin-bottom: 0.4em; }
.section-head .lead { margin-bottom: 0; }
.section-head--center .ribbon, .section-head .ribbon { margin-top: 18px; }
.section-head--center .ribbon { margin-inline: auto; }

.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); background: var(--paper); position: relative; }
.page-hero__grid { display: grid; gap: 34px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .page-hero__grid--photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lead { margin-bottom: 22px; }
.page-hero .ribbon { margin-top: 6px; }
.page-hero__photo { width: 100%; max-width: 480px; justify-self: center; }

/* 10. BADGES & CHIPS ---------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--r-pill); font: 600 0.74rem/1.5 var(--font-body); letter-spacing: 0.03em; background: var(--paper-2); color: var(--ink-soft); }
.badge--festival { background: #fde3c8; color: #8a3f05; }
.badge--holy-day { background: #f5dadd; color: var(--maroon); }
.badge--weekly { background: #d9eddf; color: #1b5a37; }
.badge--community { background: #faecc0; color: #7a5600; }
.badge--tbc { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.badge--live { background: var(--green); color: #fff; }
.badge--past { background: var(--paper-2); color: var(--ink-soft); }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 0.9rem; text-decoration: none; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform 0.2s var(--ease), box-shadow 0.2s; max-width: 100%; }
a.chip:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); flex: none; animation: pulse 2.2s ease-out infinite; }
.countdown__label { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.countdown__time { font-variant-numeric: tabular-nums; color: var(--saffron-ink); font-weight: 700; white-space: nowrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; margin-top: 7px; animation: pulse-green 2.2s ease-out infinite; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 16px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-weight: 600; font-size: 0.9rem; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background 0.2s, color 0.2s, transform 0.15s; display: inline-flex; gap: 8px; align-items: center; }
.filter-chip:hover { background: var(--tint); transform: translateY(-1px); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filter-chip__count { font-size: 0.75rem; opacity: 0.7; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--paper-2); }
.seg__btn { padding: 7px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.seg__btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* 11. TIMELINE & TODAY -------------------------------------------------- */
.timeline { list-style: none; position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; left: 49px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); border-radius: 2px; }
.timeline__item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 26px; padding: 12px 14px 12px 0; border-radius: var(--r); transition: background 0.3s; }
.timeline__item::before { content: ""; position: absolute; left: 43px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--saffron); z-index: 1; }
.timeline__time { font: 700 1.3rem/1.2 var(--font-display); color: var(--ink); text-align: right; padding-top: 2px; }
.timeline__time small { display: block; font: 600 0.7rem/1.2 var(--font-body); letter-spacing: 0.1em; color: var(--ink-soft); }
.timeline__body { padding-left: 4px; }
.timeline__body h3 { font-size: 1.1rem; margin-bottom: 0.1em; }
.timeline__body p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.timeline__item.is-now { background: var(--tint); }
.timeline__item.is-now::before { background: var(--saffron); box-shadow: 0 0 0 4px rgba(222, 111, 20, 0.25); }
.timeline__item--past { opacity: 0.72; }

.today { padding: 0; overflow: hidden; border-top: 6px solid var(--saffron); }
.today__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; }
.today__title { font-size: 1.3rem; margin: 0; }
.today__title small { display: block; font-family: var(--font-km); font-size: 0.9rem; font-weight: 500; color: var(--saffron-ink); letter-spacing: 0; margin-top: 2px; }
.today__clock { text-align: right; }
.today__time { font: 800 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.today__date { font-size: 0.8rem; color: var(--ink-soft); }
.today__status { display: flex; gap: 10px; align-items: flex-start; margin: 0 24px; padding: 12px 14px; border-radius: var(--r); background: var(--tint); font-size: 0.95rem; }
.today__status strong { color: var(--ink); }
.today__extra { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--saffron-ink); }
.today__list { list-style: none; padding: 10px 14px 4px; }
.today__row { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; font-size: 0.94rem; }
.today__row-time { font: 600 0.85rem/1.2 var(--font-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.today__row.is-now { background: var(--tint); font-weight: 600; }
.today__row.is-past { opacity: 0.72; }
.today__foot { margin: 0; padding: 12px 24px 20px; font-size: 0.8rem; color: var(--ink-soft); }

/* 12. EVENTS & CALENDAR ------------------------------------------------- */
.event-list { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 18px 20px; }
.event-card--compact { padding: 14px 16px; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border-radius: 16px; background: var(--saffron-btn); color: #fff; line-height: 1.1; }
.event-date__mon { font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.event-date__day { font: 800 1.85rem/1.1 var(--font-display); }
.event-date__sub { font-size: 0.72rem; margin-top: 2px; }
.event-date--tbc { background: var(--tint); color: var(--saffron-ink); box-shadow: inset 0 0 0 2px var(--saffron); }
.event-card--past .event-date { background: var(--paper-2); color: var(--ink-soft); box-shadow: none; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.event-card__title { font-size: 1.15rem; margin-bottom: 4px; }
.event-card__title .km { display: block; font-size: 0.9rem; margin-top: 2px; }
.event-card__when { margin: 0; font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.event-card__desc { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 64ch; }
.event-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.event-card__actions .btn { font-size: 0.82rem; }
@media (max-width: 479px) { .event-card { grid-template-columns: 62px 1fr; gap: 12px; padding: 14px; } .event-date__day { font-size: 1.5rem; } }

.cal { display: grid; gap: 20px; }
.cal__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cal__nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal__title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 6px; min-width: 9ch; text-align: center; }
.cal__grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.cal__grid th { padding: 10px 4px; font: 700 0.7rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron-ink); background: var(--tint); }
.cal__grid td { position: relative; height: 58px; padding: 0; vertical-align: top; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal__grid td:last-child { border-right: 0; }
.cal__cell { position: relative; display: block; width: 100%; height: 100%; padding: 6px 4px; text-align: left; font-size: 0.85rem; color: var(--ink); }
.cal__cell-btn { cursor: pointer; transition: background 0.2s; }
.cal__cell-btn:hover, .cal__cell-btn:focus-visible { background: var(--tint); }
.cal__cell-btn:focus-visible { box-shadow: inset 0 0 0 3px var(--saffron-deep); border-radius: 0; }
.cal__num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 50%; font-variant-numeric: tabular-nums; font-weight: 500; }
.is-out .cal__cell { opacity: 0.3; }
.is-today .cal__num { background: var(--ink); color: #fff; font-weight: 700; }
.is-selected .cal__cell { background: var(--tint); box-shadow: inset 0 0 0 2px var(--saffron); }
.cal__dots { display: flex; gap: 3px; padding: 2px 4px; flex-wrap: wrap; }
.cal__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--saffron)); }
.cal__evs { display: none; }
.cal__ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 5px; font-size: 0.7rem; line-height: 1.35; font-weight: 600; color: #fff; background: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__ev--cont { color: transparent; padding-block: 0; height: 6px; border-radius: 0; }
.cal__ev--tbc { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 4px, transparent 4px 8px); }
@media (min-width: 760px) {
  .cal__grid td { height: 112px; }
  .cal__cell { padding: 8px 6px; }
  .cal__dots { display: none; }
  .cal__evs { display: block; margin-top: 4px; }
}
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: 0.82rem; }
.cal__legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal__legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); }
.cal__agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cal__agenda-title { font-size: 1.4rem; margin: 0; }
.cal__empty { padding: 28px; text-align: center; color: var(--ink-soft); border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--white); }
.cal__month-label { font-size: 1.25rem; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }

.announce { display: grid; gap: 16px; }
.announce__item h3 { font-size: 1.2rem; margin: 8px 0 4px; }
.announce__item p { color: var(--ink-soft); margin-bottom: 10px; }
.announce__item .cluster { margin-bottom: 2px; }

/* 13. ACCORDION --------------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.accordion__item { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); overflow: hidden; }
.accordion__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font: 600 1.05rem/1.4 var(--font-display); position: relative; letter-spacing: -0.005em; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--saffron-ink); font: 700 1.3rem/1 var(--font-body); transition: transform 0.25s var(--ease), background 0.2s; }
.accordion__item[open] summary::after { content: "\2212"; background: var(--saffron-btn); color: #fff; }
.accordion__item summary:hover { background: var(--paper); }
.accordion__item summary:focus-visible { box-shadow: inset 0 0 0 3px var(--saffron-deep); border-radius: var(--r-lg); }
.accordion__body { padding: 0 22px 20px; color: var(--ink-soft); }
.accordion__body p { margin: 0; }

/* 14. FORMS ------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: grid; gap: 7px; }
.field label, .fieldset legend { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.req { color: var(--maroon); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.card .input, .card .select, .card .textarea { background: var(--paper); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--saffron-ink); background: #fff; box-shadow: 0 0 0 4px rgba(222, 111, 20, 0.2); }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4a3b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { margin-bottom: 10px; padding: 0; }
.check-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .check-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink-soft); font-size: 0.95rem; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__ui { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--paper); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; margin-top: 1px; }
.check__ui::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.2s var(--ease); }
.check input:checked + .check__ui { background: var(--saffron-btn); border-color: var(--saffron-btn); }
.check input:checked + .check__ui::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__ui { box-shadow: var(--focus); }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.form__fine { margin: 0; font-size: 0.82rem; color: var(--ink-soft); flex: 1 1 240px; }
.form__status { display: none; padding: 14px 16px; border-radius: var(--r); font-size: 0.95rem; }
.form__status.is-visible { display: block; }
.form__status[data-state="info"] { background: #e5eefb; color: #17335f; }
.form__status[data-state="success"] { background: #dcf0e3; color: #174a2d; }
.form__status[data-state="error"] { background: #fbe0dd; color: #7a1a12; }
.form__status a { color: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 15. GALLERY & LIGHTBOX ------------------------------------------------ */
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 700px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--tint-2); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
@media (min-width: 700px) { .tile { margin-bottom: 16px; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile:hover img { transform: scale(1.05); }
.tile.is-pending { display: none; }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: left; color: #fff; font-size: 0.8rem; font-weight: 600; background: linear-gradient(transparent, rgba(35, 23, 14, 0.7)); opacity: 0; transition: opacity 0.25s; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
.gallery-empty { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; border-radius: var(--r-xl); background: var(--tint); }
.gallery-empty h3 { margin-bottom: 8px; }
.gallery-empty p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(35, 23, 14, 0.95); padding: 56px 12px 28px; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox__stage img { max-width: 100%; max-height: 74vh; margin-inline: auto; border-radius: 10px; object-fit: contain; }
.lightbox__cap { margin-top: 14px; color: #f6eddc; font-size: 0.95rem; }
.lightbox__count { position: absolute; top: 20px; left: 20px; color: #f6eddc; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -22px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
html.lightbox-open { overflow: hidden; }

/* 16. FACADES & EMBEDS -------------------------------------------------- */
.facade { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--tint-2); box-shadow: var(--shadow); }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade__btn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; text-align: left; color: #fff; }
.facade__poster, .facade__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facade__poster { background: linear-gradient(145deg, #fce3c2, #f8d2a0 55%, #fbefd9); }
.facade__thumb { transition: transform 0.6s var(--ease); }
.facade__btn:hover .facade__thumb { transform: scale(1.04); }
.facade__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-btn); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55); transition: transform 0.25s var(--ease), background 0.2s; }
.facade__play svg { width: 28px; height: 28px; margin-left: 3px; }
.facade--map .facade__play svg { margin-left: 0; }
.facade__btn:hover .facade__play { transform: scale(1.1); background: var(--saffron-deep); }
.facade__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; font-size: 0.85rem; background: linear-gradient(transparent, rgba(35, 23, 14, 0.82)); }
.facade__label strong { display: block; font-size: 0.95rem; line-height: 1.4; margin-bottom: 2px; }
.facade--map { aspect-ratio: 4 / 3; }
.facade--map .facade__poster { background: repeating-linear-gradient(35deg, transparent 0 46px, rgba(255, 255, 255, 0.7) 46px 52px), repeating-linear-gradient(-55deg, transparent 0 70px, rgba(255, 255, 255, 0.55) 70px 75px), linear-gradient(135deg, #dce9cf, #eaf1d8 50%, #f3e9d6); }
.facade__fallback { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 6px 14px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 0.8rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.facade__fallback:hover { background: var(--tint); color: var(--ink); }
.facade.is-loaded .facade__fallback { display: none; }

.follow-card { text-align: center; padding: clamp(24px, 4vw, 40px); }
.follow-card .icon-badge { margin-inline: auto; }
.follow-card h3 { font-size: 1.4rem; }
.follow-card p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.follow-banner { display: grid; background: var(--white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.follow-banner__media { min-height: 220px; border-radius: 0; }
.follow-banner__body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
.follow-banner__body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.follow-banner__body p { color: var(--ink-soft); max-width: 46ch; }
.follow-banner .icon-badge { background: #e5eefb; color: #1e4f9a; }
@media (min-width: 800px) { .follow-banner { grid-template-columns: 0.9fr 1.1fr; } .follow-banner__media { min-height: 100%; } }

.talk-grid { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .talk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .talk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.talk-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.talk-card .facade { border-radius: 0; box-shadow: none; }
.talk-card .facade__label { display: none; }
.talk-card__body { padding: 16px 20px 20px; }
.talk-card__body h3 { font-size: 1.1rem; line-height: 1.55; margin-bottom: 4px; font-family: var(--font-km); font-weight: 600; letter-spacing: 0; }
.talk-card__gloss { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.talk-card__meta { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.talk-card--featured .talk-card__body h3 { font-size: 1.3rem; }

/* 17. PHOTOS, HERO, MOSAIC ---------------------------------------------- */
/* .ph = photo wrapper. Warm placeholder + lotus mark is the background; the <img> covers it
   when the file exists, and removes itself (onerror) when it does not. */
.ph {
  position: relative; display: block; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(145deg, #fde6c8 0%, #f8d3a2 48%, #fbeed7 100%);
  isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23de6f14'%3E%3Cpath d='M12 20C8 16 8 9 12 3c4 6 4 13 0 17zM5 17c-1-4 1-8 5-10 0 4-1 8-5 10zm14 0c1-4-1-8-5-10 0 4 1 8 5 10z'/%3E%3Cpath d='M3 20.5q9 3 18 0' fill='none' stroke='%23de6f14' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / clamp(36px, 22%, 72px) no-repeat;
}
.ph img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ph__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 14px 12px; color: #fff; font: 600 0.82rem/1.3 var(--font-body); background: linear-gradient(transparent, rgba(35, 23, 14, 0.72)); }
.ph--r { aspect-ratio: 4 / 3; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--sq { aspect-ratio: 1; }
.ph--tall { aspect-ratio: 3 / 4; }
.polaroid { border-radius: 8px; border: 7px solid #fff; box-shadow: var(--shadow); transform: rotate(var(--rot, -2deg)); }
.polaroid::before { opacity: 0.5; }
.card--photo > .ph, .follow-banner > .ph { border-radius: 0; }
.kb img { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: var(--kb-origin, 50% 50%); will-change: transform; }

.collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.collage .ph:nth-child(1) { grid-column: 1 / 5; --rot: -2deg; }
.collage .ph:nth-child(2) { grid-column: 3 / 7; margin-top: -26px; --rot: 2.2deg; z-index: 1; }
.collage .ph:nth-child(3) { grid-column: 1 / 4; margin-top: -26px; --rot: -1deg; }

/* HOME HERO */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(40px, 6vw, 90px); background: linear-gradient(to bottom, var(--paper) 0, var(--paper) calc(100% - 140px), var(--white) calc(100% - 140px)); }
.garland { display: block; width: 100%; height: 76px; }
@media (min-width: 700px) { .garland { height: 100px; } }
@media (min-width: 1440px) { .garland { height: auto; aspect-ratio: 1440 / 100; } }
.garland .bulb { animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--td, 0s); }
.garland .halo { animation: twinkle-halo 3.4s ease-in-out infinite; animation-delay: var(--td, 0s); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(26px, 4vw, 46px); align-items: end; }
@media (min-width: 960px) { .hero__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } }
.hero__eyebrow { margin-bottom: 14px; }
.hero__title { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hero__km { font-size: clamp(2.1rem, 6.6vw, 4.8rem); color: var(--saffron-deep); line-height: 1.35; font-weight: 400; }
.hero__en { font: 800 clamp(1.7rem, 3.8vw, 2.7rem)/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 44ch; margin-bottom: 16px; line-height: 1.55; }
.hero__chip { margin-bottom: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
@media (max-width: 479px) { .hero__cta .btn { flex: 1 1 100%; } }
.hero__title, .hero__eyebrow, .hero__side > * { animation: rise 0.8s var(--ease) both; }
.hero__title { animation-delay: 0.08s; }
.hero__side > :nth-child(1) { animation-delay: 0.18s; }
.hero__side > :nth-child(2) { animation-delay: 0.26s; }
.hero__side > :nth-child(3) { animation-delay: 0.34s; }
.hero__side { display: flex; flex-direction: column; align-items: flex-start; }

.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.5vw, 20px); align-items: start; padding-bottom: 54px; }
.mosaic__item { height: clamp(300px, 33vw, 440px); border-radius: 24px; box-shadow: var(--shadow-lg); animation: rise 0.9s var(--ease) both; }
.mosaic__item:nth-child(1) { animation-delay: 0.25s; }
.mosaic__item:nth-child(2) { margin-top: 36px; animation-delay: 0.33s; --kb-origin: 30% 40%; }
.mosaic__item:nth-child(3) { margin-top: 10px; animation-delay: 0.41s; --kb-origin: 70% 60%; }
.mosaic__item:nth-child(4) { margin-top: 48px; animation-delay: 0.49s; --kb-origin: 40% 70%; }
.mosaic__item:nth-child(5) { margin-top: 22px; animation-delay: 0.57s; --kb-origin: 60% 30%; }
.mosaic__item:nth-child(even) img { animation-direction: alternate-reverse; animation-duration: 28s; }
@media (max-width: 899px) {
  .hero { background: linear-gradient(to bottom, var(--paper) 0, var(--paper) calc(100% - 100px), var(--white) calc(100% - 100px)); }
  .mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 var(--gutter) 22px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic__item { flex: 0 0 66%; max-width: 290px; height: 340px; scroll-snap-align: center; margin-top: 0 !important; }
  .mosaic__item:first-child { margin-left: 0; }
}

/* horizontal scroll-snap strip on small screens (festival cards) */
@media (max-width: 959px) {
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .strip::-webkit-scrollbar { display: none; }
  .strip > * { flex: 0 0 78%; max-width: 340px; scroll-snap-align: start; }
}

/* 18. CTA BANDS, 404 ---------------------------------------------------- */
.cta-band { position: relative; text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: var(--r-xl); background: var(--tint); overflow: hidden; }
.cta-band .ribbon { margin: 0 auto 22px; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band .lead { margin: 0 auto 26px; }
.cta-band__fine { margin: 20px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.cta-band--maroon { background: var(--maroon); color: #fff; }
.cta-band--maroon h2 { color: #fff; }
.cta-band--maroon .lead, .cta-band--maroon .km-sub { color: #f7dfe2; }
.cta-band--maroon .cta-band__fine { color: #e9c4c9; }
.cta-band--maroon a:not(.btn) { color: #fff; }
.section--maroon { background: var(--maroon); color: #fff; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.error-page__num { font: 800 clamp(6rem, 22vw, 12rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--saffron); margin: 6px 0 10px; }
.error-page .ribbon { margin: 18px auto 22px; }
.error-page .lead { margin: 0 auto 28px; }

/* 19. UTILITIES --------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; } .mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; } .mb-4 { margin-bottom: 44px; }
.mx-auto { margin-inline: auto; } .w-full { width: 100%; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 16px; }
.hide-mobile { display: none; } @media (min-width: 700px) { .hide-mobile { display: initial; } }
.no-js-only { display: block; } .js .no-js-only { display: none; }
.only-js { display: none; } .js .only-js { display: block; }
.big-phone { display: inline-flex; align-items: center; gap: 12px; font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.big-phone svg { width: 1em; height: 1em; color: var(--saffron-ink); flex: none; }
.big-phone:hover { color: var(--saffron-ink); }
.channel-embed { max-width: 760px; margin-inline: auto; }

/* 20. REVEAL & MOTION --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.js .reveal--left { transform: translateX(-24px); }
.js .reveal--right { transform: translateX(24px); }
.js .reveal--scale { transform: scale(0.97); }
@media (max-width: 899px) { .js .reveal--left, .js .reveal--right { transform: translateY(22px); } }
.js .reveal.is-visible, .no-reveal .reveal { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1.2%); } }
@keyframes twinkle { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes twinkle-halo { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.5; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(222, 111, 20, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(222, 111, 20, 0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(46, 125, 79, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .garland .bulb { opacity: 0.9; }
  .garland .halo { opacity: 0.25; }
}

/* 99. OFFICIAL LOGO, NAMES, PHONES, PARKING ----------------------------- */
.brand__logo { display: block; flex: none; line-height: 0; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: none; }
@media (min-width: 640px) { .brand__mark { width: 48px; height: 48px; } }
.brand__en { font: 700 0.84rem/1.2 var(--font-display); letter-spacing: -0.005em; white-space: nowrap; }
.brand__en-short { display: none; }
@media (max-width: 639px) {
  .brand { gap: 8px; }
  .brand__km { font-size: 0.9rem; line-height: 1.35; }
  .brand__en { font-size: 0.7rem; line-height: 1.15; white-space: normal; }
  .brand__en-full { display: none; }
  .brand__en-short { display: inline; }
}
.footer__brand .brand { align-items: center; gap: 14px; }
.footer__brand .brand__mark { width: 64px; height: 64px; }
.footer__brand .brand__km { font-size: 1.05rem; }
.footer__brand .brand__en { font-size: 0.95rem; white-space: normal; }
.footer__brand .brand__en-full { display: inline; }
.footer__brand .brand__en-short { display: none; }
.footer__contact .footer__phone + .footer__phone { margin-top: -4px; }

.hero__brand { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.hero__emblem { flex: none; display: block; line-height: 0; width: clamp(84px, 12vw, 132px); filter: drop-shadow(0 10px 18px rgba(20, 30, 70, 0.28)); animation: rise 0.8s var(--ease) both; animation-delay: 0.12s; }
.hero__emblem img { width: 100%; height: auto; display: block; }
.hero__en { font: 800 clamp(1.25rem, 2.6vw, 1.95rem)/1.12 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.hero__roman { font: 600 clamp(0.9rem, 1.4vw, 1.05rem)/1.2 var(--font-body); letter-spacing: 0.04em; color: var(--ink-soft); }
@media (max-width: 479px) { .hero__brand { align-items: flex-start; } .hero__emblem { width: 76px; margin-top: 6px; } }

.phone-stack { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.phone-stack .big-phone { font-size: clamp(1.45rem, 3.4vw, 2rem); }

.crest { display: flex; justify-content: center; margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.crest img { width: 128px; height: 128px; filter: drop-shadow(0 10px 18px rgba(20, 30, 70, 0.28)); }

.parking__photo { margin: 0 0 16px; border-radius: var(--r); }
.hero__brand .hero__km { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.4; white-space: nowrap; }
.brand__en { font-size: 0.9rem; }
@media (max-width: 639px) { .brand__en { font-size: 0.7rem; } }
.brand__en-short { text-wrap: balance; }
@media (min-width: 1200px) and (max-width: 1359px) { .brand__en { font-size: 0.82rem; } .brand__km { font-size: 0.9rem; } }
.header__phone, .nav__link { white-space: nowrap; }

/* ---- SEO pass: festival guides, event links, date tables ---- */
.event-card__more { margin: 10px 0 0; font-size: 0.92rem; }
.table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.table .km { margin-left: 6px; font-size: 0.9em; }
.festival-facts { display: grid; gap: 10px; margin: 0; }
.festival-facts div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.festival-facts dt { font-weight: 600; color: var(--ink-soft); }
.festival-facts dd { margin: 0; }
@media (max-width: 520px) { .festival-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.km-line { font-family: var(--font-km); color: var(--ink-soft); margin: 0 0 1rem; }
