/* CMM Charitable Trust: public site styles.
   Two themes (festive, elegant) are driven by CSS variables on <html data-theme>. The admin can override
   the main colours; the server writes them as --o-<theme>-primary / --o-<theme>-accent on <html style>. */

/* ---------- tokens ---------- */

:root,
[data-theme='festive'] {
  --primary: var(--o-festive-primary, #b74426);
  --accent: var(--o-festive-accent, #d49a25);
  --bg: #fff8ed;
  --surface: #ffffff;
  --surface-2: #fdf2e2;
  --text: #30231d;
  --muted: #6d584d;
  --line: #e8d8c3;
}

[data-theme='elegant'] {
  --primary: var(--o-elegant-primary, #1f4e5f);
  --accent: var(--o-elegant-accent, #a9c2d0);
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #e6eef1;
  --text: #14232b;
  --muted: #4c616b;
  --line: #cbd8de;
}

:root {
  --primary-dark: color-mix(in srgb, var(--primary) 68%, #000);
  --primary-deep: color-mix(in srgb, var(--primary) 42%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--surface));
  --on-primary: #ffffff;
  --on-accent: #231612;
  --ok: #1b7a43;
  --ok-text: var(--ok);
  --warn: #b25b00;
  --danger: #b3261e;

  /* Colours used for text and thin lines on the page surface. Dark mode lightens these; the brand
     colour itself (--primary, --accent) is never changed, so admin colour overrides keep working. */
  --link: var(--primary);
  --link-hover: var(--primary-dark);
  --heading: var(--primary-dark);
  --heading-deep: var(--primary-deep);
  --kicker: color-mix(in srgb, var(--accent) 60%, #000);
  color-scheme: light;

  --font-body: 'Poppins', 'Noto Sans Gujarati', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Playfair Display', 'Noto Sans Gujarati', 'Noto Sans Devanagari', Georgia, serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--primary-deep) 10%, transparent), 0 4px 14px color-mix(in srgb, var(--primary-deep) 7%, transparent);
  --shadow-lg: 0 8px 24px color-mix(in srgb, var(--primary-deep) 14%, transparent);
  --header-h: 68px;
  --util-h: 42px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

/* ---------- dark appearance ----------
   boot.js sets <html data-mode="dark"> from the visitor's choice (light, dark or follow the device).
   Only on screen: printed pages stay light. */

@media screen {
  html[data-mode='dark'] {
    color-scheme: dark;
    --link: color-mix(in srgb, var(--primary) 50%, #fff);
    --link-hover: color-mix(in srgb, var(--primary) 34%, #fff);
    --heading: color-mix(in srgb, var(--primary) 28%, #fff);
    --heading-deep: color-mix(in srgb, var(--primary) 16%, #fff);
    --kicker: var(--accent);
    --ok-text: #59c98a;
    --danger: #ff9187;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 8px 24px rgb(0 0 0 / 0.45);
  }

  html[data-mode='dark']:not([data-theme='elegant']) {
    --bg: #1c130f;
    --surface: #261b16;
    --surface-2: #33251e;
    --text: #fdf2eb;
    --muted: #d1bfb3;
    --line: #543d32;
  }

  html[data-mode='dark'][data-theme='elegant'] {
    --kicker: #8ec5d8;
    --bg: #0c171c;
    --surface: #13232a;
    --surface-2: #1b3139;
    --text: #eaf3f6;
    --muted: #b3c7cf;
    --line: #2f4a54;
  }

  html[data-mode='dark'] .alert-ok {
    background: #12301f;
    border-color: #2c6b47;
    color: #bfe8cf;
  }

  html[data-mode='dark'] .alert-err {
    background: #3a1613;
    border-color: #7a2f29;
    color: #ffd1cc;
  }

  html[data-mode='dark'] .badge-done {
    background: #5b4d46;
  }
}

/* ---------- base ---------- */

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

/* Component rules such as `.lb-btn { display: grid }` would otherwise beat the browser's own [hidden] rule. */
[hidden] {
  display: none !important;
}

/* Visitor text-size choice (set from the footer, applied before first paint by boot.js). Sizes are rem-based, so this scales the page. */
html[data-text='sm'] {
  font-size: 87.5%;
}

html[data-text='lg'] {
  font-size: 112.5%;
}

html[data-text='xl'] {
  font-size: 125%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.3s;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

/* Title Case: the first letter of every word of a heading, title, label, button, tab or menu entry is a capital.
   Gujarati and Hindi have no capitals, so only the English and Latin-script text changes. Running text keeps its own case. */
h1,
h2,
h3,
h4,
h5,
h6,
summary,
legend,
th,
.kicker,
.btn,
.chip,
.badge,
.announce-tag,
.cd-label,
.cd-caption,
.fact dt,
.contact-info strong,
.site-nav a,
.year-nav a,
.share-label,
.footer-links a,
.field:not(.field-check) > label {
  text-transform: capitalize;
}

.field:not(.field-check) > label small {
  text-transform: none;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.container {
  width: min(var(--maxw), 100% - 32px);
  margin-inline: auto;
}

.se-markers { display: none; }

/* The prebuilt reading edition is visible until the interactive shell loads. */
.seo-content {
  width: min(var(--maxw), 100% - 32px);
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
.seo-content .static-shell-header,
.seo-content .static-shell-footer {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.seo-content .static-shell-footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 3rem; }
.seo-content .static-shell-brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; }
.seo-content .static-shell-brand img { width: 3rem; height: 3rem; object-fit: contain; }
/* Language names must not download two extra script fonts before the app starts. */
.static-shell-header nav[aria-label='Language'] a,
.lang-options [data-lang-option] {
  font-family: system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', sans-serif;
}
.seo-content nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; margin: 1rem 0; padding: 0; }
.seo-content nav a { display: inline-block; padding: .35rem .2rem; }
.seo-content main { max-width: 75ch; }
.seo-content main h1 { line-height: 1.2; }
.seo-content main li { margin: .35rem 0; }

/* ---------- loading screen ---------- */

.splash {
  display: none;
}

.js .splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--surface);
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.splash-badge {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent), 0 16px 40px -8px color-mix(in srgb, var(--primary) 20%, transparent);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.splash-badge img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  border-radius: 50%;
}

.splash-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--heading);
  text-align: center;
  padding: 0 20px;
}

.splash-bar {
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
  overflow: hidden;
  position: relative;
}

.splash-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: splash-slide 1.2s ease-in-out infinite;
}

.app-ready .splash,
.app-failed .splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.js .seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-failed .seo-content {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
  padding: 24px;
}

@keyframes splash-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* Reduced motion: the bar stays put as a short fixed segment instead of sliding. */
@media (prefers-reduced-motion: reduce) {
  .splash-bar::after {
    animation: none;
    transform: translateX(75%);
  }
}

/* ---------- buttons, chips, badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--on-primary);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  border-color: currentColor;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--link-hover);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .btn-sm {
    min-height: 44px;
    padding: 8px 16px;
  }
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.chip {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 500 0.9rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

@media (max-width: 600px) {
  .chip {
    min-height: 44px;
    padding: 8px 16px;
  }
}

.chip:hover {
  border-color: var(--primary);
}

.chip[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--heading-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-live {
  background: var(--ok);
  color: #fff;
}

.badge-done {
  background: var(--muted);
  color: #fff;
}

/* ---------- announcements ---------- */

.announce {
  background: var(--primary-deep);
  color: #fff;
}

.announce-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
}

.announce-item + .announce-item {
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.announce-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.announce-text {
  flex: 1;
  min-width: 0;
}

.announce-text strong {
  margin-right: 6px;
}

.announce-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.announce-urgent .announce-tag {
  background: #ffd9d4;
  color: #7a1109;
}

.announce a {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.announce-close {
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.announce-close svg {
  width: 20px;
  height: 20px;
}

.announce-close:hover {
  background: rgb(255 255 255 / 0.16);
}

@media (max-width: 640px) {
  .announce-item {
    align-items: center;
  }
  .announce a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    white-space: normal;
  }
}

/* ---------- follow icons (left of the header utility row) ---------- */

.header-follow {
  min-width: 0;
}

.top-social-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--link);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.top-social-link svg {
  width: 20px;
  height: 20px;
}

.top-social-link:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--link-hover);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 20px -2px color-mix(in srgb, var(--primary-deep) 10%, transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-util {
  display: none;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.util-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--util-h);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--header-h);
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  min-width: 0;
}

.brand:hover {
  color: var(--heading-deep);
}

.logo-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.logo-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 6px 18px rgba(0,0,0,0.12);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font: 600 0.9rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--heading) 5%, transparent);
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--link);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--heading) 10%, transparent);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.nav-open .nav-toggle svg {
  transform: rotate(90deg);
}
}

.site-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 10px 0 16px;
}

.nav-open .site-nav {
  display: flex;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--primary-soft);
  color: var(--heading);
}

.site-nav a[aria-current='page'] {
  background: var(--primary);
  color: var(--on-primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.seg button {
  min-width: 40px;
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 0.85rem/1 var(--font-body);
  cursor: pointer;
}

/* The two script labels (ગુ, हि) use the device's own fonts. Naming the web fonts here would make the English page download
   both Gujarati and Devanagari files, about 150 KB, just to draw four letters in the switcher. */
.seg button[lang] {
  font-family: system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', 'Noto Sans', sans-serif;
}

.seg button[aria-pressed='true'] {
  background: var(--primary);
  color: var(--on-primary);
}

.theme-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 6px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.theme-dot-festive {
  background: linear-gradient(135deg, #b74426 50%, #d49a25 50%);
}

.theme-dot-elegant {
  background: linear-gradient(135deg, #1f4e5f 50%, #a9c2d0 50%);
}

.search-link,
.display-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.search-link:hover,
.display-toggle:hover,
.search-link[aria-expanded='true'],
.display-toggle[aria-expanded='true'] {
  background: var(--primary-soft);
  color: var(--heading-deep);
  border-color: var(--primary);
}

.search-link svg,
.display-toggle svg {
  width: 20px;
  height: 20px;
}

.display-menu {
  position: relative;
}

.header-util .seg {
  padding: 2px;
}

.header-util .seg button {
  min-width: 34px;
  min-height: 30px;
  padding: 3px 8px;
}

/* Display options: colour theme, light/dark appearance and text size in one small panel under the header button. */
.display-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 260;
  display: grid;
  gap: 14px;
  width: min(320px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.display-panel[hidden] {
  display: none;
}

.display-row {
  display: grid;
  gap: 6px;
}

.display-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.display-panel .seg {
  display: flex;
  width: 100%;
}

.display-panel .seg button {
  flex: 1;
  min-width: 0;
  min-height: 38px;
}

.display-panel .theme-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Four sizes: Small, Medium (the default), Large, Larger. The letter grows with the choice, so the row also reads without colour. */
.display-panel .size-sm {
  font-size: 0.75rem;
}

.display-panel .size-md {
  font-size: 0.9rem;
}

.display-panel .size-lg {
  font-size: 1.05rem;
}

.display-panel .size-xl {
  font-size: 1.22rem;
}

@media (max-width: 640px) {
  .display-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    z-index: 260;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0));
    animation: slideUp 0.25s var(--ease);
  }
}

.display-scrim {
  position: fixed;
  inset: 0;
  z-index: 259;
  background: color-mix(in srgb, var(--primary-deep, #1a0503) 65%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.display-scrim[hidden] {
  display: none;
}

body.appearance-open,
body.lang-modal-open {
  overflow: hidden;
}

/* ---------- search modal overlay ---------- */

body.search-dialog-open {
  overflow: hidden;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 8vh, 64px) 16px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-modal-overlay[hidden] {
  display: none;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--primary-deep, #1a0503) 65%, #000 35%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-modal-card {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - clamp(32px, 14vh, 96px));
  overflow: hidden;
  animation: fade-in 0.2s ease-out;
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.search-modal-search-icon {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.search-modal-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--heading);
  font: 500 1rem/1.3 var(--font-body);
  padding: 6px 0;
}

.search-modal-input::-webkit-search-cancel-button,
.search-modal-input::-webkit-search-decoration,
.search-modal-input::-webkit-search-results-button,
.search-modal-input::-webkit-search-results-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-modal-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.search-modal-clear {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-modal-clear:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--heading);
}

.search-modal-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  flex: none;
  margin-left: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-modal-close:hover {
  background: var(--primary-soft);
  color: var(--heading-deep);
}

.search-modal-body {
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
  padding: 8px;
}

.search-modal-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  justify-content: center;
}

.search-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.search-modal-empty p {
  margin: 0;
}

.search-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-modal-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-modal-item:hover,
.search-modal-item:focus-visible {
  background: var(--primary-soft);
  border-color: var(--line);
  outline: none;
}

.search-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.search-item-title {
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}

.search-item-badge {
  flex: none;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--heading-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

html[data-mode='dark'] .search-item-badge {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface-2));
  color: var(--kicker);
}

.search-item-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.search-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.85rem;
}

.search-modal-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.search-modal-all:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.search-modal-kbd {
  color: var(--muted);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-modal-kbd kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .nav-toggle {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
  }
  .nav-toggle span {
    display: none;
  }
}

@media (max-width: 359px) {
  .top-social-link,
  .search-link,
  .display-toggle,
  .nav-toggle {
    width: 30px;
    height: 30px;
  }
  .header-util .seg button {
    min-width: 30px;
    padding: 3px 5px;
  }
  .header-tools {
    gap: 4px;
  }
  .header-actions {
    gap: 4px;
  }
}

@media (min-width: 1180px) {
  .header-main {
    display: block;
  }
  .header-row {
    display: flex;
    align-items: center;
  }
  .brand {
    flex: 1;
  }
  .header-actions {
    margin-left: auto;
  }
}


/* ---------- sections ---------- */

main {
  display: block;
  min-height: 60vh;
  outline: none;
}

.section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-alt,
.section:nth-of-type(even) {
  background-color: var(--surface-2);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Sections below the first screen are not laid out or painted until they come near the viewport. Their lazy thumbnails then
   load on arrival instead of competing with the hero image. The remembered size keeps the scroll bar steady after a section has shown once. */
.home-below > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.section-head p {
  color: var(--muted);
}

.section-head .kicker,
.kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  /* Same shade as filter: brightness(0.6), written as a real colour so contrast tools can read it. */
  color: var(--kicker);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: capitalize;
  color: var(--kicker);
  margin-bottom: 12px;
}

.section-rule {
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-head.text-center .section-rule,
.text-center .section-rule {
  margin-inline: auto;
}

[data-reveal] {
  opacity: 1;
}

.page-hero {
  padding: clamp(28px, 5vw, 52px) 0 clamp(22px, 3.5vw, 36px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.3em;
  color: var(--heading);
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.page-hero .kicker {
  margin-bottom: 6px;
}

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose p {
  white-space: pre-line;
}

.policy-block {
  margin-bottom: 32px;
}

.policy-block li {
  margin-bottom: 0.5em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.empty,
.state-msg {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.state-msg .btn {
  margin-top: 12px;
}

/* ---------- grids and cards ---------- */

/* Card lists wrap into 1 to 4 equal columns and centre a short last row, so three videos or a lone fifth card never leave a hole.
   The column count follows the list's own width (container query), the same breakpoints the old auto-fill grid gave. */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  container-type: inline-size;
}

.grid > * {
  flex: 1 1 100%;
  min-width: 0;
}

@container (min-width: 542px) {
  .grid > * {
    flex: 0 0 calc((100% - 22px) / 2);
  }
}

@container (min-width: 824px) {
  .grid > * {
    flex: 0 0 calc((100% - 44px) / 3);
  }
}

@container (min-width: 1106px) {
  .grid > * {
    flex: 0 0 calc((100% - 66px) / 4);
  }
}

@supports not (container-type: inline-size) {
  .grid > * {
    flex: 1 1 260px;
    max-width: 100%;
  }
}

/* Two-up blocks on the About page keep a real grid: they hold wide text panels, not cards. */
.grid.grid-2 {
  display: grid;
  container-type: normal;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.card:hover .card-media img,
a.card:hover .card-media video,
.card:hover .card-media img,
.card:hover .card-media video {
  transform: scale(1.04);
}

.card-media .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

/* Live and completed badges keep their own colours on a card picture (the plain badge above is a pale chip). */
.card-media .badge-live {
  background: var(--ok);
  color: #fff;
}

.card-media .badge-done {
  background: var(--muted);
  color: #fff;
}

.card-media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--accent);
}

.card-media-placeholder svg {
  width: 56px;
  height: 56px;
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-body :is(h2, h3) {
  margin: 0;
  font-size: 1.1rem;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.card-text {
  margin: 4px 0 0;
  font-size: 0.93rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer of every card: pinned to the bottom, so a card without a summary still has a finished body. */
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--link);
  text-transform: capitalize;
}

.card-more svg {
  transition: transform 0.25s var(--ease);
}

a.card:hover .card-more svg,
a.card:focus-visible .card-more svg {
  transform: translateX(4px);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(transparent 40%, rgb(0 0 0 / 0.35));
}

.play-mark span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--link);
  transition: transform 0.3s var(--ease);
}

a.card:hover .play-mark span {
  transform: scale(1.06);
}

.play-mark svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  color: #fff;
  background: var(--primary-deep);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, color-mix(in srgb, var(--primary-deep) 92%, transparent) 8%, color-mix(in srgb, var(--primary-dark) 72%, transparent) 55%, color-mix(in srgb, var(--primary) 30%, transparent) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(36px, 7vw, 84px) 0 clamp(44px, 7vw, 90px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6.4vw, 4rem);
  margin-bottom: 0.25em;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 560px;
  color: rgb(255 255 255 / 0.9);
}

.hero .kicker {
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-cta .btn-ghost {
  color: #fff;
}

.hero-cta .btn-ghost:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

.hero-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary-deep) 80%, transparent);
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 4px;
}

.hero-card .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.9);
}

/* Hero panel when no event is on the calendar: a quiet note and a way to look back. */
.hero-card-quiet p {
  margin: 0 0 16px;
  color: rgb(255 255 255 / 0.9);
  line-height: 1.55;
}

.hero-card-quiet .btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.85);
}

.hero-card-quiet .btn-ghost:hover {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

/* Second and third main events, under the hero. One is shown wide, two side by side. */
.also-on {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.also-on > * {
  min-width: 0;
}

@media (min-width: 720px) {
  .also-on-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .also-on-2 .card-media {
    aspect-ratio: 16 / 10;
  }

  .also-on-1 {
    max-width: 900px;
    margin-inline: auto;
  }

  .also-on-1 > a.card {
    flex-direction: row;
  }

  .also-on-1 > a.card .card-media {
    flex: 0 0 44%;
    aspect-ratio: auto;
    min-height: 240px;
  }

  .also-on-1 > a.card .card-body {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.hero-poster {
  position: relative;
  display: none;
  justify-self: center;
  width: min(100%, 360px);
}

.hero-poster img {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid #fff;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
  }
  .hero-poster {
    display: block;
  }
  .hero-inner.no-poster {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* Hero video: a still with a play button; a click swaps in the player inside the same frame. */
.hero-video {
  position: relative;
  justify-self: center;
  width: min(100%, 280px);
}

.hero-video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  border: 4px solid #fff;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.hero-video-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.hero-video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.hero-video-play:hover img {
  transform: scale(1.02);
}

.hero-video-play:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -7px;
}

.hero-video-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--link);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}

.hero-video-play:hover .hero-video-mark {
  transform: scale(1.05);
}

.hero-video-mark svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.hero-video-title {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 16px 16px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.78));
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-play img {
    transition: none;
  }
}

@media (min-width: 960px) {
  .hero-video {
    width: min(100%, 320px);
  }
}

/* ---------- countdown ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

/* Days only: shown while the nightly start time is not announced. */
.countdown-days {
  grid-template-columns: minmax(0, 9rem);
  justify-content: start;
}

.cd-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-card .cd-light .cd-note {
  color: #fff;
}

.cd-cell {
  padding: 10px 4px 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--heading-deep);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.16);
}

.cd-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cd-num.tick {
  animation: tick 0.35s var(--ease);
}

.cd-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: var(--muted);
}

@keyframes tick {
  0% {
    transform: translateY(-30%);
    opacity: 0.2;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

.cd-caption {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--kicker);
}

.cd-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--heading-deep);
}

.cd-banner svg {
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.cd-banner strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.25;
}

.cd-banner span {
  font-size: 0.88rem;
  color: var(--muted);
}

.cd-banner-live strong {
  color: var(--ok-text);
}

.cd-light .cd-cell {
  background: var(--primary-soft);
  box-shadow: none;
  border: 1px solid var(--line);
}

.cd-light .cd-caption {
  color: var(--link);
}

/* The home hero card sits on the dark banner, so its caption must be light. */
.hero-card .cd-light .cd-caption {
  color: #fff;
}

.cd-light .cd-banner {
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

/* ---------- about / intro blocks ---------- */

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .split-wide {
    grid-template-columns: 1.4fr 1fr;
  }
}

.logo-feature {
  display: grid;
  place-items: center;
}

.logo-feature .logo-badge {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-width: 5px;
  box-shadow: 0 0 0 8px var(--accent-soft), var(--shadow-lg);
}

.logo-feature .logo-badge img {
  padding: 4%;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.contact-side .side-title {
  font-size: 1.2rem;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card p,
.value-list li {
  white-space: pre-line;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.value-list li {
  position: relative;
  padding-left: 30px;
}

.value-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.motto {
  columns: 2 280px;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.motto li {
  break-inside: avoid;
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.motto li::before {
  content: '❖';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
  top: 10px;
}

.quote-block {
  position: relative;
  padding: 26px 28px 22px 60px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border-left: 5px solid var(--accent);
}

.quote-block::before {
  content: '“';
  position: absolute;
  left: 16px;
  top: -6px;
  font-family: var(--font-head);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--accent);
}

.quote-block p {
  white-space: pre-line;
  font-style: italic;
}

/* ---------- people ---------- */

.people-group {
  margin-bottom: 36px;
}

.people-group > h3 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.person-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.person {
  text-align: center;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.person:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font: 700 1.9rem/1 var(--font-head);
  border: 3px solid var(--accent);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person h3,
.person h4 {
  margin: 0;
  font-size: 0.98rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.person p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Plain name lists for long rosters. */

.name-list {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  columns: 220px;
  column-gap: 28px;
}

.name-list li {
  break-inside: avoid;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.nl-name {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.nl-role {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.name-fold {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.name-fold summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  color: var(--link);
}

.name-fold summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.name-fold .name-list {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0 16px;
}

/* ---------- people pages and souvenir articles ---------- */

a.person {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.person:hover h3,
a.person:hover h4,
a.person:focus-visible h3,
a.person:focus-visible h4 {
  color: var(--link);
  text-decoration: underline;
}

a.person:focus-visible,
a.writing:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

a.nl-name {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.writing-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.writing {
  display: flex;
  gap: 14px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.writing:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.writing-thumb {
  flex: none;
  width: 84px;
  height: 112px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.writing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writing-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.writing-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
}

.writing-by {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.writing-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.writing-more {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--link);
}

/* ---------- awards and recognitions ---------- */

.recog-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.recog-thumb {
  width: 108px;
  height: 144px;
}

.recog-featured {
  border-inline-start: 4px solid var(--accent);
}

.writing-body .recog-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}

.recog-detail {
  display: grid;
  gap: 32px;
  align-items: start;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}

.recog-detail-solo {
  max-width: 760px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}

.recog-scans {
  display: grid;
  gap: 10px;
}

.recog-scans img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recog-scan-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.recog-text {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.recog-facts {
  margin: 0;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: auto minmax(0, 1fr);
}

.recog-facts dt {
  font-weight: 700;
  color: var(--muted);
}

.recog-facts dd {
  margin: 0;
}

@media (max-width: 820px) {
  .recog-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .recog-scans {
    max-width: 420px;
  }
}

.profile-head {
  display: grid;
  gap: 28px;
  align-items: start;
  grid-template-columns: 220px minmax(0, 1fr);
}

.profile-solo {
  grid-template-columns: minmax(0, 260px);
  justify-content: center;
}

.portrait {
  width: 220px;
  max-width: 100%;
}

.profile-solo .portrait {
  width: 100%;
}

.portrait .poster-btn img {
  width: 100%;
  height: auto;
  border: 4px solid var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avatar.avatar-lg {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  font-size: 3rem;
}

.profile-bio {
  margin: 0;
}

.profile-h {
  margin: 40px 0 16px;
  font-size: 1.35rem;
}

.article-body {
  margin-inline: auto;
}

.article-body h2 {
  margin: 1.6em 0 0.5em;
  font-size: 1.25rem;
}

.rich-list {
  margin: 0 0 1em;
  padding-inline-start: 1.3em;
}

.rich-list li {
  margin: 0.35em 0;
}

.article-credit {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 640px) {
  .profile-head {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .portrait {
    width: min(100%, 240px);
  }

  .profile-bio {
    justify-self: stretch;
  }
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--accent), var(--primary));
}

.tl-item {
  position: relative;
  padding: 0 0 34px 64px;
}

.tl-year {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 4px solid var(--accent);
  font: 700 0.8rem/1 var(--font-body);
  box-shadow: 0 0 0 5px var(--bg);
}

/* Jump-to-year chips above the timeline. */
.tl-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 28px;
}

.tl-jump > span {
  color: var(--muted);
  font-weight: 600;
}

.tl-item:target .tl-card {
  outline: 3px solid var(--accent);
}

/* FAQ accordion (native details/summary). */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 0 16px;
}

.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--link);
}

.faq details[open] summary {
  color: var(--link);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq details p {
  margin: 0 0 14px;
  white-space: pre-line;
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tl-card img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.tl-body {
  padding: 16px 20px 20px;
}

.tl-body h2 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.tl-body p {
  white-space: pre-line;
  margin-bottom: 10px;
}

/* Cards alternate either side of the centre line, one per row, so no card is ever stretched to match a neighbour and
   the order stays strictly oldest first. The empty half carries the year as a large faint numeral. */
@media (min-width: 860px) {
  .timeline::before {
    left: 50%;
    margin-left: -2px;
  }
  .tl-item {
    width: 50%;
    padding: 0 48px 40px 0;
  }
  .tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 40px 48px;
  }
  .tl-year {
    left: auto;
    right: -24px;
  }
  .tl-item:nth-child(even) .tl-year {
    right: auto;
    left: -24px;
  }
  .tl-item[id]::after {
    content: attr(data-year) / '';
    position: absolute;
    top: 0;
    left: 100%;
    padding-left: 48px;
    font: 700 3.6rem/1 var(--font-head);
    color: var(--primary-soft);
    opacity: 0.9;
    pointer-events: none;
  }
  .tl-item[id]:nth-child(even)::after {
    left: auto;
    right: 100%;
    padding: 0 48px 0 0;
  }
}

/* ---------- garba detail ---------- */

.facts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 0 0 28px;
}

.fact {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact svg {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.fact dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: capitalize;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-weight: 600;
}

.fact dd a {
  font-weight: 500;
}

.detail-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

/* The side column (poster or video, buttons, QR, share) is taller than a laptop screen, and a sticky column that is
   taller than the screen hides its lower part. It only sticks on screens tall enough to show it. */
@media (min-width: 960px) and (min-height: 1100px) {
  .detail-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

.detail-aside > * + * {
  margin-top: 20px;
}

.poster-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.poster-frame img {
  width: 100%;
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-lg);
}

.qr-card {
  text-align: center;
}

.qr-card img {
  width: 168px;
  height: 168px;
  margin: 0 auto 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qr-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule th,
.schedule td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.schedule th {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
}

.schedule tr:last-child td {
  border-bottom: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.contact-list li:last-child {
  border: 0;
  padding: 0;
}

.contact-list small {
  display: block;
  color: var(--muted);
}

.contact-person {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* the number, then two round buttons: call and WhatsApp (each at least 44px, the touch target size) */
.contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-number {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 6px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--heading);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contact-number:hover {
  text-decoration: underline;
}

.contact-act {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-act:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgb(0 0 0 / 14%);
}

.contact-call {
  background: var(--primary-soft);
  color: var(--heading);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
}

.contact-wa {
  background: color-mix(in srgb, #25d366 16%, var(--surface));
  color: #0b6b38;
  border-color: color-mix(in srgb, #25d366 40%, transparent);
}

@media (max-width: 420px) {
  .contact-list li {
    align-items: flex-start;
  }
}

@media print {
  .contact-act {
    display: none;
  }
}

/* contact page: details beside the map, the message form underneath */

.contact-section > .container {
  display: grid;
  gap: 28px;
}

.contact-top {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.contact-top-two {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.contact-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-side .map-directions {
  align-self: flex-start;
  margin-bottom: 24px;
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.map-card {
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.map-card .map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.map-directions {
  align-self: flex-start;
}

.contact-form-card {
  width: 100%;
}

/* two columns for the short fields once there is room; message, button and status take the full row */
@media (min-width: 760px) {
  .contact-form-card .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .contact-form-card .form > .field[data-field='body'],
  .contact-form-card .form > div:not(.field) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 859px) {
  .contact-top-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-card,
  .map-frame {
    min-height: 260px;
  }

  .map-directions {
    align-self: stretch;
    justify-content: center;
  }
}

.contact-info {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--link);
}

.contact-info strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--muted);
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--link);
  font-weight: 500;
}

.contact-info .phone-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: 500 0.95rem/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
  transition: color 0.15s ease;
}

.contact-info .phone-reveal-btn:hover {
  color: var(--link-hover);
}

.contact-side h3 {
  margin: 0 0 12px;
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: rule;
}

.rule-list li {
  position: relative;
  padding: 10px 14px 10px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  counter-increment: rule;
}

.rule-list li::before {
  content: counter(rule);
  position: absolute;
  left: 12px;
  top: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.block {
  margin-top: 40px;
}

.block > h2 {
  margin-bottom: 16px;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.year-nav a {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.year-nav a:hover,
.year-nav a[aria-current='page'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* ---------- gallery and lightbox ---------- */

.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.photo-btn {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  aspect-ratio: 1;
}

.photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
}

.photo-btn:hover img {
  transform: scale(1.08);
  filter: brightness(1.06);
}

/* Marks a stock photo from Wikimedia Commons so it is never mistaken for a picture of a CMM event. */
.photo-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.photo-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
}

.photo-strip .photo-btn {
  flex: none;
  width: clamp(170px, 26vw, 280px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}

/* A video among the photos opens its own page, not the lightbox. */
.photo-btn.video-tile {
  cursor: pointer;
  text-decoration: none;
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-tile .play-mark span {
  width: 44px;
  height: 44px;
}

.video-tile .play-mark svg {
  width: 20px;
  height: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 16px;
  background: rgb(10 6 6 / 0.94);
  animation: fade-in 0.25s;
}

.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  min-height: 0;
  flex: 1;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 6px;
  background: #111;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #eee;
  font-size: 0.9rem;
  text-align: center;
  max-width: 720px;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.lb-btn:hover {
  background: rgb(255 255 255 / 0.3);
}

.lb-btn svg {
  width: 24px;
  height: 24px;
}

.lb-close {
  top: 8px;
  right: 8px;
}

.lb-prev {
  left: 8px;
  top: 50%;
  margin-top: -24px;
}

.lb-next {
  right: 8px;
  top: 50%;
  margin-top: -24px;
}

.lb-count {
  position: absolute;
  top: 18px;
  left: 16px;
  color: #ddd;
  font-size: 0.9rem;
}

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

/* ---------- video and documents ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The page's own clip plays in the aside where the poster would sit. It is a phone-shaped (portrait) clip, so it is
   capped in height instead of being stretched to the column. */
.side-video {
  background: #000;
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.side-video video {
  display: block;
  width: 100%;
  max-height: min(78vh, 640px);
  background: #000;
  object-fit: contain;
}

/* An event's own video: a still with a play button; the player is created on a click. */
.event-video .video-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.event-video .video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

.event-video .video-play:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.event-video .video-play:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -7px;
}

.video-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--link);
  box-shadow: var(--shadow);
}

.video-play-mark svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.video-play-title {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.72));
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.video-fallback {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

/* Brochure and extra documents under an event. */
.doc-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.doc-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.doc-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.doc-link svg {
  flex: none;
  color: var(--link);
}

.doc-link span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.doc-open {
  flex: none;
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .event-video .video-play img,
  .doc-link {
    transition: none;
  }
}

/* Photos under the preparation video sit a little apart from it. */
.prep-photos {
  margin-top: 20px;
}

.doc-viewer {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* ---------- testimonials ---------- */

.t-card {
  position: relative;
  padding: 28px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.t-card::before {
  content: '“';
  position: absolute;
  top: 6px;
  left: 18px;
  font: 700 4rem/1 var(--font-head);
  color: var(--accent);
}

.t-card blockquote {
  margin: 14px 0 16px;
  white-space: pre-line;
}

.t-by {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-by .avatar {
  width: 48px;
  height: 48px;
  margin: 0;
  font-size: 1.1rem;
  border-width: 2px;
}

.t-by strong {
  display: block;
  line-height: 1.2;
}

.t-by span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- carousel ---------- */

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 6px 4px 18px;
  scroll-snap-align: center;
}

.carousel-slide .t-card {
  width: 100%;
  max-width: 760px;
  margin: 0;
}

.carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--link);
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--primary-soft);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* One-row card rail (home activities): about four cards show at once, the rest scroll sideways by swipe, button or arrow key.
   Each card is as wide as a card in the .grid at the same width, so a rail and a grid look alike. */
.rail {
  container-type: inline-size;
}

.rail-track {
  display: flex;
  gap: 22px;
  /* Room for the card shadow, which an overflow box would otherwise clip; the negative margin keeps the cards on the page grid. */
  padding: 10px 12px 28px;
  margin: -10px -12px -14px;
  scroll-padding-inline: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 min(86%, 340px);
  min-width: 0;
  scroll-snap-align: start;
}

.rail-item > .card {
  height: 100%;
}

@container (min-width: 542px) {
  .rail-item {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@container (min-width: 824px) {
  .rail-item {
    flex-basis: calc((100% - 44px) / 3);
  }
}

@container (min-width: 1106px) {
  .rail-item {
    flex-basis: calc((100% - 66px) / 4);
  }
}

.rail-controls {
  margin-top: 4px;
}

.rail-controls[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .rail-track {
    scroll-behavior: auto;
  }
}

.carousel-dots {
  display: flex;
  gap: 2px;
}

.carousel-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 45%, var(--surface));
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.carousel-dot[aria-current='true']::before {
  background: var(--primary);
  transform: scale(1.3);
}

.carousel-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.carousel-toggle:hover {
  background: var(--primary-soft);
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.92rem;
}

.field label small {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea,
.search-box input,
.select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.search-box input:focus,
.select:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-color: var(--primary);
}

.field-error input,
.field-error textarea {
  border-color: var(--danger);
}

.field-msg {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--danger);
}

.field-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.field-check input {
  flex: 0 0 auto;
  width: 24px;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.share-card {
  max-width: 720px;
  margin: 40px auto 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.alert-ok {
  background: #e6f5ec;
  border-color: #9fd3b4;
  color: #12532c;
}

.alert-err {
  background: #fdecea;
  border-color: #f0b3ad;
  color: #8a1b14;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.filter-label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.filter-bar .chip-row {
  margin: 0;
}

.venue-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-address {
  margin: 8px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--heading);
  font-weight: 500;
}

.select {
  width: auto;
  min-width: 130px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* round icon-only buttons (social links, share bar): the mark is the label, the name stays for screen readers */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease);
}

.icon-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary, #fff);
  transform: translateY(-2px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- search ---------- */

.search-box {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 26px;
}

.search-box input {
  flex: 1;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.result {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}

.result:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.result img,
.result .ph {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-2);
}

.result h3 {
  margin: 2px 0 2px;
  font-size: 1.02rem;
}

.result p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- share, toast ---------- */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 4px;
}

.share .icon-btn {
  width: 40px;
  height: 40px;
}

/* inside a narrow side card the label takes its own line so the six icons sit on one row */
.info-card .share-label {
  flex-basis: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3000;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Advertisement slots: flat and quiet, a bordered card that sits in the page like any other block. The admin chooses the page,
   position, dates and order; this only styles what arrives. */
.ad-slot {
  padding-block: clamp(20px, 3vw, 36px);
}

.ad-slot .container {
  display: grid;
  gap: 16px;
}

.ad-card {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ad-card.has-media {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.ad-visual {
  min-width: 0;
  background: var(--surface-2);
}

.ad-visual .ad-media,
.ad-visual .video-block {
  height: 100%;
}

.ad-visual .ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 420px;
  object-fit: cover;
}

.ad-visual .video-frame {
  height: 100%;
  min-height: 200px;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.ad-visual .video-fallback {
  margin: 0;
  padding: 8px 16px;
}

.ad-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
}

.ad-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ad-body h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ad-body p:not(.ad-tag) {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .ad-card.has-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-visual .ad-media img,
  .ad-visual .video-frame {
    min-height: 0;
    max-height: 300px;
    aspect-ratio: 16 / 9;
  }
}

/* Shown to an editor viewing an unpublished item, so a draft is never mistaken for the live page. */
.preview-banner {
  position: fixed;
  left: 16px;
  right: 76px;
  bottom: 16px;
  z-index: 2900;
  max-width: 520px;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  background: #3b2a00;
  color: #fff3c4;
  border: 2px solid #ffc83d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- footer ---------- */

/* The footer waits for the first page render so it does not jump down while the content loads. */
html:not(.app-ready):not(.app-failed) .site-footer {
  display: none;
}

.site-footer {
  margin-top: 40px;
  background: var(--primary-deep);
  color: rgb(255 255 255 / 0.88);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding: 36px 0 28px;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.4fr auto;
  }
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* Buttons keep their own colours; without :not(.btn) this rule turned the light social buttons white-on-white. */
.site-footer a:not(.btn) {
  color: rgb(255 255 255 / 0.9);
}

.site-footer a:not(.btn):hover {
  color: var(--accent);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand .logo-badge {
  width: 72px;
  height: 72px;
}

.footer-brand strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}

.footer-links li {
  margin-bottom: 2px;
}

/* Touch-sized targets: at least 44 px tall meeting WCAG AAA touch target standards. */
.footer-links a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.footer-bottom a {
  padding-inline: 4px;
}

/* Language row: the same choice as the header switch, shown with full names and a tick on the active one. */
.footer-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.footer-lang h2 {
  margin: 0;
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 0.92rem/1.2 system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', 'Noto Sans', var(--font-body);
  cursor: pointer;
}

.lang-switch button:hover {
  background: rgb(255 255 255 / 0.14);
}

/* Selected: filled, bold and ticked, so it is not shown by colour alone. */
.lang-switch button[aria-pressed='true'] {
  background: #fff;
  border-color: #fff;
  color: var(--primary-deep);
  font-weight: 800;
}

.lang-switch button svg {
  flex: none;
}

/* Contact details with icons, one tap target each. */
.footer-contact {
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.footer-contact h2 {
  margin-bottom: 8px;
}

.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}

.footer-contact-list li {
  min-width: 0;
}

.footer-contact-list a,
.footer-contact-text,
.footer-contact-list button.phone-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: 0.93rem;
  cursor: pointer;
}

.footer-contact-list button.phone-reveal-btn:hover {
  color: var(--accent, #ffd9d4);
  text-decoration: underline;
}

.footer-contact-list svg {
  flex: none;
}

.footer-copy {
  margin: 0;
  padding: 16px 0 4px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.88rem;
}

.footer-qr img {
  width: 108px;
  height: 108px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  padding: 0 0 14px;
  font-size: 0.85rem;
}

.footer-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  opacity: 0.9;
}

.footer-place svg {
  flex: none;
}

/* One-line studio credit under the legal row; the studio name is the only link. */
.footer-credit {
  margin: 0;
  padding: 0 0 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 2px;
  font-weight: 600;
}

/* ---------- quick-action bar (phones and small tablets) ---------- */

.quick-bar {
  display: none;
}

@media (max-width: 859.98px) {
  .quick-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 0.12);
  }
  .quick-bar a,
  .quick-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: 600 0.74rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
  }
  .quick-bar a[aria-current='page'] {
    color: var(--link);
    box-shadow: inset 0 3px 0 var(--primary);
  }
  .quick-bar svg {
    color: var(--link);
  }
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
  .to-top {
    bottom: calc(68px + env(safe-area-inset-bottom, 0));
  }
  .footer-credit {
    padding-bottom: 64px; /* keep the line clear of the floating back-to-top button */
  }
  .toast {
    bottom: calc(76px + env(safe-area-inset-bottom, 0));
  }
  .preview-banner {
    bottom: calc(68px + env(safe-area-inset-bottom, 0));
  }
}

/* ---------- visual layer ----------
   Loading skeletons, progress bar, empty and error states and the small interaction details that sit on top of the base
   components. It uses the theme tokens, so festive/elegant, light/dark and admin colour overrides all carry through. */

:root {
  --dur-1: 0.16s;
  --dur-2: 0.28s;
  --dur-3: 0.56s;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* ---------- empty, error and loading states ---------- */

.empty,
.state-msg {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 16px 48px;
}

.empty > *,
.state-msg > * {
  margin: 0;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--link);
}

.state-error .empty-icon {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
}

.empty-code {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--primary) 35%, var(--surface));
}

.empty p,
.state-msg p {
  max-width: 46ch;
}

.empty h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.state-msg .btn,
.empty .btn {
  margin-top: 8px;
}

.waypoints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

a.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.result-count {
  margin: 0 0 18px;
  text-align: center;
  color: var(--muted);
}

/* Spinner is still used inline by buttons; the page-level wait is a skeleton. */
.skel-grid {
  gap: 22px;
}

.skel,
.skel-media {
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 45%, var(--surface)) 50%, var(--surface-2) 70%) 0 0 / 240% 100%;
  animation: v-shimmer 1.5s linear infinite;
}

.skel-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skel-media {
  aspect-ratio: 16 / 10;
}

/* A picture that failed to load keeps its box and shows a quiet tint instead of a broken-image icon. */
img[data-failed] {
  min-height: 96px;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 16%, var(--surface-2)));
  color: transparent;
  font-size: 0;
}

.skel-line {
  height: 14px;
}

.skel-short {
  width: 55%;
}

.page-skeleton {
  min-height: 60vh;
}

@keyframes v-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

/* ---------- route progress bar ---------- */

html::after {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  z-index: 1300;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}

html.route-busy::after {
  animation: v-route 1.8s var(--ease) forwards;
}

@keyframes v-route {
  0% {
    transform: scaleX(0.04);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: scaleX(0.88);
    opacity: 1;
  }
}

/* ---------- Garba through the years (home) ----------
   One tile per year, in a row that wraps. */

.years-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.years-rail {
  flex: 1 1 320px;
  min-width: 0;
}

.year-tile {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 156px;
  padding: 20px 26px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.year-tile svg {
  color: var(--accent);
}

.year-num {
  font: 700 2.2rem/1.1 var(--font-head);
  color: var(--heading);
}

.year-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.year-tile:hover,
.year-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.year-tile-now {
  background: var(--primary);
  border-color: var(--accent);
}

.year-tile-now .year-num,
.year-tile-now .year-label {
  color: var(--on-primary);
}

.year-tile-now svg {
  color: var(--accent-soft, var(--accent));
}

/* ---------- garba years, photo tiles ---------- */

.year-tile[hidden] {
  display: none;
}

/* The years sit in one row that scrolls sideways (see cardRail): a fixed tile width, so every year keeps the same size. */
.rail-years .rail-track {
  gap: 14px;
}

.rail-years .rail-item {
  flex: 0 0 148px;
}

@container (min-width: 700px) {
  .rail-years .rail-item {
    flex-basis: 168px;
  }
}

.rail-years .year-tile {
  height: 100%;
}

@media (max-width: 600px) {
  .year-photo .year-num {
    font-size: 1.25rem;
  }

  .year-cap {
    flex-wrap: wrap;
    padding: 8px 10px 10px;
  }
}

.year-photo {
  position: relative;
  min-width: 0;
  padding: 0;
  gap: 0;
  justify-items: stretch;
  overflow: hidden;
}

.year-pic {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt, var(--line));
}

.year-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.year-photo:hover .year-pic img,
.year-photo:focus-visible .year-pic img {
  transform: scale(1.03);
}

.year-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
}

.year-photo .year-num {
  font-size: 1.5rem;
}

.year-flag {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 12, 8, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

.years-note {
  max-width: 62ch;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.years-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* A stand-in picture says so, on the card and beside the poster. */
.badge-sample,
.card-media .badge-sample {
  background: rgba(20, 12, 8, 0.72);
  color: #fff;
}

.stand-in-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pending-year h2 {
  margin-top: 0;
}

.pending-year p {
  max-width: 62ch;
  margin-bottom: 0;
}

/* ---------- interaction details ---------- */

.btn:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: 0.08s;
}

.icon {
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2), color var(--dur-2);
}

.btn:hover .icon-arrow,
.btn:focus-visible .icon-arrow,
a:hover > .icon-arrow {
  transform: translateX(4px);
}

a:hover > .icon-external {
  transform: translate(2px, -2px);
}

.btn:hover .icon-download {
  transform: translateY(2px);
}

.btn[disabled] .icon,
[aria-disabled='true'] .icon,
:disabled > .icon {
  opacity: 0.5;
  transform: none;
}

.chip {
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform var(--dur-1) var(--ease);
}

a.card .card-media img {
  transition: transform 0.3s var(--ease);
}

a.card:hover .card-media img {
  transform: scale(1.02);
}

/* Form success: the ring and tick draw themselves once. */
.alert-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.alert-mark p {
  margin: 0;
}

.success-mark {
  flex: none;
  width: 44px;
  height: 44px;
}

.success-mark circle,
.success-mark path {
  fill: none;
  stroke: var(--ok-text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.success-mark .sm-ring {
  stroke-width: 2.6;
  animation: v-draw 0.6s var(--ease) forwards;
}

.success-mark .sm-tick {
  stroke-width: 3.6;
  animation: v-draw 0.4s var(--ease) 0.45s forwards;
}

@keyframes v-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- visual layer: reduced motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  html.route-busy::after {
    animation: none;
    transform: scaleX(0.6);
    opacity: 1;
  }
  .skel,
  .skel-media {
    animation: none;
  }
}

@media print {
  .home-below > .section {
    content-visibility: visible;
  }
  html::after {
    display: none !important;
  }
  .section-alt {
    background: none !important;
  }
}

/* ---------- people explorer (About): year selector, richer cards, write-up dialog ---------- */

.team-years {
  justify-content: center;
  margin: -6px 0 30px;
}

.souvenir-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: -4px 0 34px;
}

.souvenir-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.souvenir-pill:hover {
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
}

.souvenir-pill.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 25%, transparent);
}

.souvenir-committees-section {
  border-top: 1px solid var(--line);
}

/* The committee swaps in place when another year is chosen. The animation ends on the visible state, so nothing can stay hidden. */
.team-body.is-swapping,
.souvenir-body.is-swapping {
  animation: team-swap 0.5s var(--ease) both;
}

@keyframes team-swap {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.person {
  position: relative;
  overflow: hidden;
}

.person::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.person:hover::before,
a.person:focus-visible::before {
  transform: scaleX(1);
}

.person .avatar {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.person-link:hover .avatar,
.person-link:focus-visible .avatar {
  transform: scale(1.06);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent), var(--shadow);
}

.person-link:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}

.person-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--link);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  transition: background 0.3s, color 0.3s, gap 0.3s var(--ease);
}

.person-link:hover .person-more,
.person-link:focus-visible .person-more {
  gap: 8px;
  color: var(--on-primary);
  background: var(--primary);
}

.person-more svg {
  flex: none;
}

/* The write-up dialog. It sits below the photo viewer (1500), so a portrait opened from it lands on top. */
.pd {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(10 6 6 / 0.72);
  backdrop-filter: blur(5px);
  animation: pd-fade 0.25s var(--ease) both;
}

.pd [hidden] {
  display: none !important;
}

.pd-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: min(90vh, 920px);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  animation: pd-rise 0.4s var(--ease) both;
}

.pd-panel::before {
  content: '';
  flex: none;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.pd-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 0 22px;
}

.pd-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pd-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--ease);
}

.pd-close:hover {
  background: var(--surface-2);
  transform: rotate(90deg);
}

.pd-close:focus-visible,
.pd-portrait:focus-visible,
.pd-name:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.pd-name:focus {
  outline: none;
}

.pd-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 28px 26px;
}

.pd-swap {
  animation: pd-in-up 0.45s var(--ease) both;
}

.pd-swap[data-dir='next'] {
  animation-name: pd-in-next;
}

.pd-swap[data-dir='prev'] {
  animation-name: pd-in-prev;
}

.pd-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pd-portrait {
  flex: none;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  padding: 0;
  overflow: hidden;
  border: 4px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font: 700 2.6rem/1 var(--font-head);
}

button.pd-portrait {
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}

button.pd-portrait:hover {
  transform: scale(1.04);
}

.pd-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-id {
  min-width: 0;
}

.pd-name {
  margin: 4px 0 6px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.pd-role {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--muted);
}

.pd-bio {
  padding-inline-start: 18px;
  border-inline-start: 4px solid var(--accent);
}

.pd-bio p {
  font-size: 1.04rem;
  line-height: 1.75;
}

.pd-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.pd-related {
  margin-top: 8px;
}

.pd-h {
  margin: 26px 0 12px;
  font-size: 1.05rem;
  color: var(--heading);
}

.pd-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.pd-foot .btn {
  gap: 6px;
  min-height: 44px;
}

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

@keyframes pd-rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pd-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pd-in-next {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pd-in-prev {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[dir='rtl'] .pd-swap[data-dir='next'],
[dir='rtl'] .pd-swap[data-dir='prev'] {
  animation-name: pd-in-up;
}

@media (max-width: 600px) {
  /* A sheet from the bottom edge on a phone. */
  .pd {
    align-items: end;
    padding: 0;
  }
  .pd-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0;
    border-bottom: 0;
  }
  .pd-scroll {
    padding: 4px 18px 22px;
  }
  .pd-hero {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .pd-portrait {
    width: 120px;
    height: 120px;
  }
  .pd-bio {
    padding-inline-start: 14px;
  }
  .pd-nav-text {
    display: none;
  }
  .pd-foot .btn {
    min-width: 48px;
    justify-content: center;
  }
}

@media print {
  .pd {
    display: none !important;
  }
}

/* ---------- visual lift: depth, glow and motion ---------- */
/* Layer on top of the base rules above. Everything here is decoration: content is visible without it, the animations only run
   when the visitor has not asked for reduced motion, and the print block at the end switches the lot off. Colours come from the
   theme tokens, so festive, elegant, dark mode and the admin colour overrides all follow. */

/* header: gradient edge line, depth, underline that slides in under the menu item */
.site-header {
  box-shadow: 0 2px 16px color-mix(in srgb, var(--primary-deep) 14%, transparent);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent) 50%, var(--primary));
  pointer-events: none;
}

.site-nav a {
  position: relative;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.25s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: left center;
  scale: 0 1;
  transition: scale 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  scale: 1 1;
}

.site-nav a[aria-current='page']::after {
  display: none;
}

.site-nav a[aria-current='page'] {
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}

.brand .logo-badge {
  transition: rotate 0.4s var(--ease-spring), scale 0.4s var(--ease-spring), box-shadow 0.3s;
}

.brand:hover .logo-badge {
  rotate: -6deg;
  scale: 1.06;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* the large crest on About: a soft glow behind it and a thin gold arc around it */
.logo-feature {
  position: relative;
  min-height: min(340px, 86vw);
  /* Rotating decoration must not extend the phone page's scrollable width. */
  overflow: clip;
}

.logo-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(380px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  pointer-events: none;
}

.logo-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(316px, 84%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 52%, var(--accent) 82%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  pointer-events: none;
}

.logo-feature .logo-badge {
  position: relative;
  z-index: 1;
}

/* home hero: glow, glass card, tilted poster */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 80% at 90% 14%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 62%),
    radial-gradient(44% 60% at 6% 100%, color-mix(in srgb, var(--primary) 42%, transparent), transparent 70%);
}

.hero h1 {
  text-shadow: 0 2px 26px rgb(0 0 0 / 0.38);
}

.hero .kicker,
.page-hero .kicker,
.section-head .kicker {
  padding: 4px 14px;
  border-radius: 999px;
}

.hero .kicker {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  backdrop-filter: blur(6px);
}

.hero-card {
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 18px 44px -18px rgb(0 0 0 / 0.55);
  backdrop-filter: blur(10px) saturate(1.2);
}

.hero-card::before {
  content: '';
  position: absolute;
  left: 22px;
  top: -1px;
  width: 46px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  rotate: 2deg;
  transition: rotate 0.45s var(--ease), scale 0.45s var(--ease);
}

.hero-poster::before {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: calc(var(--radius) + 12px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
  pointer-events: none;
}

.hero-poster:hover,
.hero-poster:focus-visible {
  rotate: 0deg;
  scale: 1.02;
}

/* inner page banner: deep colour, ripple rings, dot grid and a gold edge instead of a pale strip */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 84px) 0 clamp(34px, 5vw, 60px);
  color: #fff;
  background:
    linear-gradient(90deg, var(--accent), transparent 70%) 0 100% / 100% 3px no-repeat,
    radial-gradient(56% 130% at 92% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 66%),
    linear-gradient(120deg, var(--primary-deep), color-mix(in srgb, var(--primary-deep) 60%, var(--primary)));
  border-bottom: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 94% 30%, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(60% 120% at 94% 30%, #000, transparent 72%);
  mask-image: radial-gradient(60% 120% at 94% 30%, #000, transparent 72%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.14) 1.2px, transparent 1.7px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 95%);
  mask-image: linear-gradient(100deg, transparent 8%, #000 95%);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  text-shadow: 0 2px 22px rgb(0 0 0 / 0.3);
}

.page-hero p {
  color: rgb(255 255 255 / 0.9);
  font-size: 1.05rem;
}

.page-hero .kicker {
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--accent) 66%, #fff);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

/* section headings: tinted pill kicker and a short gradient bar under the title */
.section-head .kicker {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.section-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: center;
}

.section-alt {
  background-image:
    radial-gradient(60% 55% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%);
}

/* cards: lit edge, gold bar that draws in along the bottom, a bigger picture zoom */
.card {
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: left center;
  scale: 0 1;
  transition: scale 0.4s var(--ease);
  pointer-events: none;
}

a.card:hover,
a.card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--shadow-lg), 0 22px 44px -22px color-mix(in srgb, var(--primary) 55%, transparent);
}

a.card:hover::after,
a.card:focus-visible::after {
  scale: 1 1;
}

a.card:hover .card-media img,
a.card:hover .card-media video {
  transform: scale(1.07);
}

.card-media img,
.card-media video {
  transition: transform 0.6s var(--ease);
}

/* mission, vision and fact cards */
.info-card {
  position: relative;
  background-image: linear-gradient(90deg, var(--primary), var(--accent));
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: 0 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-card h3 svg {
  box-sizing: content-box;
  padding: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.quote-block {
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  box-shadow: var(--shadow);
}

.person:hover {
  box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--primary) 55%, transparent);
}

.value-list li::before,
.motto li::before {
  transition: rotate 0.5s var(--ease-spring);
}

.value-list li:hover::before {
  rotate: 144deg;
}

.motto li {
  transition: translate 0.25s var(--ease), color 0.2s;
}

.motto li:hover {
  translate: 6px 0;
}

/* filter chips */
button.chip,
a.chip {
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

button.chip:hover,
a.chip:hover {
  transform: translateY(-2px);
}

.chip[aria-pressed='true'] {
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

/* countdown tiles */
.cd-cell {
  border-top: 3px solid var(--accent);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--primary) 55%, transparent);
}

/* testimonials: a proper quotation card with a gradient mark, gold rule, ringed portrait and a pill for the active dot */
.t-card {
  position: relative;
  background-image: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 20px 40px -26px color-mix(in srgb, var(--primary) 50%, transparent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.t-card::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  pointer-events: none;
}

.t-card::before {
  top: 6px;
  left: 18px;
  font-size: 4.6rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.t-card blockquote {
  margin-top: 26px;
}

.t-by .avatar {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent);
}

.grid .t-card:hover,
.rail-item .t-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 24px 44px -24px color-mix(in srgb, var(--primary) 55%, transparent);
}

.carousel-dot::before {
  transition: width 0.3s var(--ease), background-color 0.2s, scale 0.2s;
}

.carousel-dot[aria-current='true']::before {
  width: 24px;
  border-radius: 6px;
  transform: none;
  scale: 1;
}

/* timeline on History */
.timeline::before {
  background: linear-gradient(180deg, var(--accent), var(--primary) 55%, color-mix(in srgb, var(--primary) 20%, transparent));
}

.tl-year {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent), 0 10px 22px -10px color-mix(in srgb, var(--primary) 60%, transparent);
  transition: scale 0.3s var(--ease-spring), box-shadow 0.3s;
}

.tl-item:hover .tl-year {
  scale: 1.08;
}

.tl-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.tl-item:hover .tl-card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.tl-card img {
  transition: scale 0.6s var(--ease);
}

.tl-item:hover .tl-card img {
  scale: 1.04;
}

/* garba years and photos */
.year-tile {
  position: relative;
  background-image: linear-gradient(90deg, var(--primary), var(--accent));
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

.year-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: var(--shadow-lg), 0 18px 36px -20px color-mix(in srgb, var(--primary) 55%, transparent);
}

.photo-btn {
  position: relative;
}

.photo-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--primary-deep) 55%, transparent));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.photo-btn:hover::before,
.photo-btn:focus-visible::before {
  opacity: 1;
}

/* footer: gold-to-red edge on top and soft glows */
.site-footer {
  position: relative;
  background-color: var(--primary-deep);
  background-image:
    radial-gradient(50% 70% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  pointer-events: none;
}

/* buttons: soft gloss, a light sweep across on hover and a coloured glow */
.btn:not(.btn-ghost) {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 55%);
}

.btn:not(.btn-ghost)::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / 0.32), transparent);
  translate: -140% 0;
  transition: translate 0.6s var(--ease);
  pointer-events: none;
}

.btn:not(.btn-ghost):hover::after {
  translate: 320% 0;
}

.btn[disabled]::after {
  display: none;
}

.btn:not(.btn-ghost):not([disabled]):hover {
  box-shadow: var(--shadow), 0 12px 24px -10px color-mix(in srgb, var(--primary) 75%, transparent);
}

::selection {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: inherit;
}

/* motion: only for visitors who have not asked for less */
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes vl-kenburns {
    from { scale: 1; translate: 0 0; }
    to { scale: 1.1; translate: -1.5% -1%; }
  }

  @keyframes vl-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
  }

  @keyframes vl-in {
    from { translate: 0 22px; }
    to { translate: 0 0; }
  }

  @keyframes vl-spin {
    to { rotate: 360deg; }
  }

  @keyframes vl-glow {
    0%, 100% { opacity: 0.75; scale: 1; }
    50% { opacity: 1; scale: 1.06; }
  }

  @keyframes vl-pulse {
    0%, 100% {
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent), 0 16px 40px -8px color-mix(in srgb, var(--primary) 20%, transparent);
    }
    50% {
      box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 8%, transparent), 0 20px 48px -4px color-mix(in srgb, var(--primary) 30%, transparent);
    }
  }

  .splash-badge {
    animation: vl-pulse 2.4s ease-in-out infinite;
  }

  .hero-bg img {
    transform-origin: 62% 40%;
    animation: vl-kenburns 32s ease-in-out infinite alternate;
  }

  .hero .kicker,
  .hero h1,
  .hero-text,
  .hero-cta {
    animation: vl-in 0.8s var(--ease) both;
  }

  .hero h1 { animation-delay: 0.08s; }
  .hero-text { animation-delay: 0.16s; }
  .hero-cta { animation-delay: 0.24s; }

  .hero-poster {
    animation: vl-float 8s ease-in-out infinite;
  }

  .hero-poster::before {
    animation: vl-glow 6s ease-in-out infinite;
  }

  .logo-feature::after {
    animation: vl-spin 18s linear infinite;
  }

  .logo-feature::before {
    animation: vl-glow 7s ease-in-out infinite;
  }

  .page-hero .container {
    animation: vl-in 0.7s var(--ease) both;
  }

  /* On browsers with scroll timelines, blocks rise into place as they enter the screen and a bar at the top tracks the page.
     Elsewhere nothing happens and everything is simply there. Both ends of the animation are fully visible. */
  @supports (animation-timeline: view()) {
    @keyframes vl-rise {
      from { translate: 0 34px; scale: 0.97; }
      to { translate: none; scale: none; }
    }

    @keyframes vl-grow {
      from { scale: 0 1; }
      to { scale: 1 1; }
    }

    @keyframes vl-progress {
      from { scale: 0 1; }
      to { scale: 1 1; }
    }

    .reveal {
      animation: vl-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    [data-reveal] {
      animation: vl-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    [data-reveal="stagger"] > :nth-child(1) { animation-range: entry 0% entry 48%; }
    [data-reveal="stagger"] > :nth-child(2) { animation-range: entry 4% entry 52%; }
    [data-reveal="stagger"] > :nth-child(3) { animation-range: entry 8% entry 56%; }
    [data-reveal="stagger"] > :nth-child(4) { animation-range: entry 12% entry 60%; }
    [data-reveal="stagger"] > :nth-child(5) { animation-range: entry 16% entry 64%; }
    [data-reveal="stagger"] > :nth-child(6) { animation-range: entry 20% entry 68%; }

    .reveal:nth-child(3n + 2) { animation-range: entry 6% entry 61%; }
    .reveal:nth-child(3n) { animation-range: entry 12% entry 67%; }

    .section-head h2::after {
      animation: vl-grow linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 80%;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0 0 auto;
      height: 3px;
      z-index: 1299;
      background: linear-gradient(90deg, var(--accent), var(--primary));
      transform-origin: left center;
      pointer-events: none;
      animation: vl-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@media print {
  .site-header::after,
  .site-footer::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after,
  .logo-feature::before,
  .logo-feature::after,
  .card::after,
  .t-card::after,
  .photo-btn::before,
  .btn::after,
  body::before {
    display: none !important;
  }

  .page-hero,
  .site-footer {
    background-image: none !important;
  }

  .page-hero h1,
  .page-hero p,
  .hero h1 {
    color: #000 !important;
    text-shadow: none !important;
  }

  .page-hero .kicker,
  .hero .kicker {
    color: #000 !important;
    background: none !important;
    border: 0 !important;
  }

  .t-card::before {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #000;
  }

  .hero-poster {
    rotate: none;
    animation: none;
  }
}

/* ---------- scroll reveal ---------- */

/* Sections are always visible. They used to start hidden and fade in once the browser reported them on screen, but that report
   can be missed (coming back to a page, a restored scroll position), which left a section blank. */
.js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */

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

/* ---------- print ---------- */

@media print {
  .site-header,
  .site-footer,
  .announce,
  .skip-link,
  .splash,
  .share,
  .action-row,
  .to-top,
  .toast,
  .no-print,
  .quick-bar,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .page-hero,
  .hero {
    background: none !important;
    color: #000;
    padding: 0 0 12pt;
  }
  .page-hero h1,
  .hero h1,
  .page-hero p,
  .hero-card h2 {
    color: #000 !important;
  }
  .hero-bg,
  .hero::before {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .card,
  .info-card,
  .fact,
  .schedule {
    box-shadow: none;
    break-inside: avoid;
  }
  .detail-layout {
    display: block;
  }
  .detail-aside {
    position: static;
  }
  .section {
    padding: 12pt 0;
  }
  a {
    color: #000 !important;
    text-decoration: none;
  }
  /* A live countdown and a video player mean nothing on paper. */
  .countdown,
  .cd-caption,
  video,
  iframe {
    display: none !important;
  }
  /* Keep a heading with its content, and short blocks (contacts, QR) on one page. */
  h2,
  h3 {
    break-after: avoid;
  }
  .block {
    break-inside: avoid;
  }
  .fab-stack {
    display: none !important;
  }
}

/* ---------- Section A2: Standard Shell Components (Controls, Modals, FAB Stack) ---------- */

.hdr-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  font: 500 0.85rem/1 var(--font-body);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hdr-ctrl-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.hdr-ctrl-btn-label {
  display: inline;
}

@media (max-width: 640px) {
  .hdr-ctrl-btn-label {
    display: none;
  }
  .hdr-ctrl-btn {
    padding: 6px;
    width: 38px;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
}

.modal-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--heading);
}

.modal-body {
  padding: 16px;
}

.modal-scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--primary-deep, #1a0503) 65%, #000 35%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Language modal */
.language-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.language-modal[hidden] {
  display: none;
}

.language-panel {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lang-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: 500 0.9rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pref-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.pref-btn[aria-pressed='true'] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--heading);
  font-weight: 700;
}

/* Search suggestions chips */
.search-suggestions {
  padding: 10px 14px 4px;
}

.search-suggestions-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-chip:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--heading);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Drawer enhancements */
.drawer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

.drawer-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.drawer-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.btn-wa-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #25D366;
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-wa-outline:hover {
  background: #25D366;
  color: #fff;
}

@media (max-width: 900px) {
  .drawer-header {
    display: flex;
  }
}

/* Floating Action Buttons */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

@media (max-width: 859.98px) {
  .fab-stack {
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    right: 16px;
    gap: 10px;
  }

  .fab {
    width: 44px;
    height: 44px;
  }
}

.nav-open .fab-stack,
body.search-dialog-open .fab-stack,
body.appearance-open .fab-stack,
body.lang-modal-open .fab-stack,
.language-modal:not([hidden]) ~ .fab-stack,
.search-modal-overlay:not([hidden]) ~ .fab-stack {
  display: none !important;
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  color: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
  border: 0;
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.08);
}

.fab-whatsapp {
  background: #25D366;
  color: #fff;
}

.fab-call {
  background: var(--primary);
  color: #fff;
}

.fab-top {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.fab-top.show,
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Footer social links block */
.footer-social-col {
  display: flex;
  flex-direction: column;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Keep one calm header layout at every width. All page links live in the menu drawer. */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 104;
  background: rgb(0 0 0 / 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
}

/* Mobile & Tablet Drawer (< 1180px) */
@media (max-width: 1179px) {
  .site-nav {
    display: none;
  }
  .nav-open .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    max-width: 100vw;
    height: 100dvh;
    background: var(--surface);
    z-index: 105;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--line);
    padding: 0;
  }
  .nav-open .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .nav-open .site-nav ul {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 12px 14px;
    gap: 4px;
  }
  .nav-open .site-nav a {
    font-size: 1rem;
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
  }
  .nav-open .drawer-footer {
    margin-top: auto;
    padding: 16px 14px;
    border-top: 1px solid var(--line);
    position: sticky;
    bottom: 0;
    background: var(--surface);
  }
}

/* Desktop Dropdown Menu (>= 1180px) */
@media (min-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }
  .site-nav {
    display: none;
  }
  .nav-open .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: max(16px, calc((100vw - var(--maxw)) / 2));
    display: flex;
    width: min(22rem, calc(100vw - 32px));
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 105;
  }
  .nav-open .site-nav ul {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0.5rem;
    gap: 2px;
  }
  .nav-open .site-nav a {
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .nav-open .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
  }
}


@media (min-width: 641px) {
  .header-actions .display-toggle,
  .header-actions .search-link {
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  .header-actions .lang-btn,
  .header-actions .nav-toggle { min-height: 44px; white-space: nowrap; }
}

/* Shared list controls: keep filters available without placing a full screen of chips before mobile content. */
.filter-panel { margin-bottom: 24px; }
.filter-panel > .filter-bar { margin-bottom: 0; }
.filter-toggle { display: none; }
.filter-reset {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--link);
  font: 600 0.85rem/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media screen and (max-width: 859.98px) {
  /* The fixed action bar already provides contact actions; retain only back-to-top above it. */
  .fab-stack .fab-whatsapp,
  .fab-stack .fab-call { display: none; }
  .fab-stack .fab-top { width: 44px; height: 44px; }
}

@media screen and (max-width: 640px) {
  .header-row { min-height: 72px; gap: 8px; }
  .brand { gap: 6px; flex: 1; }
  .brand .logo-badge { width: 44px; height: 44px; border-width: 1px; }
  .brand-name { font-size: 0.85rem; line-height: 1.2; }
  .brand-name small { display: none; }
  .header-actions { gap: 2px; }
  .header-actions .hdr-ctrl-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 8px;
  }
  .announce-item { align-items: flex-start; gap: 6px; font-size: 0.84rem; line-height: 1.5; }
  .announce-icon { display: none; }
  .announce-close svg { width: 20px; height: 20px; }
  .page-hero { padding: 28px 0 24px; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .page-hero p { font-size: 0.95rem; line-height: 1.55; }
  .section { padding-top: 28px; }
  .filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--heading);
    font: 600 0.9rem/1.4 var(--font-body);
    cursor: pointer;
  }
  .filter-summary { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
  .filter-toggle .icon-next { flex: none; transform: rotate(90deg); }
  .filter-panel.is-open .filter-toggle .icon-next { transform: rotate(-90deg); }
  .filter-panel:not(.is-open) > .filter-bar { display: none; }
  .filter-panel.is-open > .filter-bar {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
  html[data-text='xl'] .brand-name { display: none; }
}

@media screen and (max-width: 359px) {
  .brand-name { display: none; }
}

/* Special People tribute cards in profile articles (e.g. Udaan 2009 Vyakti Vishesh) */
.special-people-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0;
}

.special-person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
}

.special-person-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.special-person-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.special-person-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin: 0;
  border: 2.5px solid var(--accent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.special-person-info {
  flex: 1;
  min-width: 0;
}

.special-person-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.special-person-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark, #b8860b);
  background: rgba(218, 165, 32, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.special-person-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}

.special-person-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.special-person-name-link:hover,
.special-person-name-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.special-person-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.special-person-role {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(184, 41, 41, 0.07);
  padding: 2px 10px;
  border-radius: 4px;
}

.special-person-group {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt, rgba(0, 0, 0, 0.04));
  padding: 2px 8px;
  border-radius: 4px;
}

.special-person-tribute {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
  background: var(--reading-surface, rgba(0, 0, 0, 0.015));
  padding: 14px 18px;
  border-radius: var(--radius-sm, 6px);
  border-left: 3px solid var(--accent);
}

.special-person-tribute p {
  margin: 0;
}

.special-person-actions {
  display: flex;
  justify-content: flex-end;
}

.special-person-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.special-person-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.article-intro,
.article-outro {
  margin: 24px 0;
  padding: 18px 24px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-intro {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.06), rgba(184, 41, 41, 0.04));
  border-left: 4px solid var(--primary);
}

.article-outro {
  background: linear-gradient(135deg, rgba(184, 41, 41, 0.04), rgba(218, 165, 32, 0.06));
  border-left: 4px solid var(--accent);
  font-weight: 500;
}

@media (max-width: 640px) {
  .special-person-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .special-person-avatar {
    width: 60px;
    height: 60px;
  }
  .special-person-card {
    padding: 16px;
  }
  .special-person-tribute {
    padding: 12px 14px;
    font-size: 0.96rem;
  }
}
