/* Ramayan Research Council – public theme (colours follow the logo: saffron #FA951F + red #DC453B)
   Palette tokens (--c-*) are injected from admin settings in the page head. */
:root {
  --c-primary: #DC453B; --c-accent: #FA951F; --c-gold: #E58A12;
  --c-deep: #7A1E16; --c-paper: #FFF8EE; --c-ink: #5B2412;
  --c-muted: color-mix(in srgb, var(--c-ink) 68%, var(--c-paper));
  --c-line: color-mix(in srgb, var(--c-accent) 30%, #fff);
  --c-tint: color-mix(in srgb, var(--c-accent) 13%, #fff);
  --c-tint-2: color-mix(in srgb, var(--c-primary) 7%, #fff);
  --grad: linear-gradient(100deg, var(--c-primary) 0%, color-mix(in srgb, var(--c-primary) 50%, var(--c-accent)) 55%, var(--c-accent) 100%);
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: var(--f-body);
  /* One type scale for the whole site */
  --fs-1: 14px;                          /* dates, labels, small print */
  --fs-2: 16px;                          /* menus, card text, secondary text */
  --fs-3: 17px;                          /* body text */
  --fs-4: 19px;                          /* card titles, intro lines */
  --fs-5: 22px;                          /* small headings */
  --fs-6: clamp(23px, 2.4vw, 28px);      /* sub-section headings */
  --fs-7: clamp(26px, 3vw, 34px);        /* section titles */
  --fs-8: clamp(30px, 4vw, 44px);        /* page titles */
  --wrap: 1240px;
  --gutter: clamp(16px, 3.5vw, 32px);
  --radius: 10px;
  --shadow: 0 14px 34px -16px rgba(122, 30, 22, .35);
  --header-h: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--c-paper); color: var(--c-ink); font: 400 var(--fs-3)/1.75 var(--f-body); overflow-x: hidden; }
body.lang-en { line-height: 1.65; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-gold); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.35; margin: 0 0 .5em; color: var(--c-primary); letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-primary); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip:focus { left: 8px; }
.staff-note { background: #fff3cd; color: #5c4400; text-align: center; font-size: var(--fs-1); padding: 6px 12px; }
.ornament { width: 120px; height: 40px; color: var(--c-accent); }
.ornament-line { color: var(--c-accent); margin: -6px 0 14px; line-height: 0; }
.ornament-line .ornament { width: 92px; height: 30px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 26px; border: 2px solid var(--c-primary); background: var(--c-primary); color: #fff; font: 600 var(--fs-3)/1.2 var(--f-body); text-decoration: none; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--c-primary) 80%, transparent); }
.btn:hover { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: #3a1a05; }
.btn--accent:hover { background: var(--c-gold); border-color: var(--c-gold); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); box-shadow: none; }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--c-primary); box-shadow: none; }
.btn--light:hover { background: var(--c-accent); border-color: var(--c-accent); color: #3a1a05; }
.btn--small { min-height: 38px; padding: 6px 18px; font-size: var(--fs-2); }
.link-more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--c-accent); padding-bottom: 2px; white-space: nowrap; }

/* ---------- Top bar (logo red) ---------- */
.topbar { background: var(--c-primary); color: #fff; font-size: var(--fs-2); }
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #ffe3bd; }
.topbar__contact { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact svg { width: 15px; height: 15px; fill: #ffd29a; }
.topbar__varta { display: inline-flex; align-items: center; gap: 8px; margin-inline: auto; padding: 3px 16px; background: var(--c-accent); border-radius: 999px; color: #3a1a05 !important; font-weight: 600; }
.topbar__varta:hover { background: #fff; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.topbar__end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social a:hover { background: rgba(255,255,255,.18); }
.langs { display: flex; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; }
.langs a { padding: 2px 12px; font-size: var(--fs-1); }
.langs a[aria-current] { background: #fff; color: var(--c-primary); font-weight: 600; }

/* ---------- Header (white, carries the logo) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--grad); }
.site-header.is-stuck { box-shadow: 0 10px 24px -16px rgba(70, 20, 10, .45); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand__logo { height: 60px; width: auto; transition: height .25s; }
.is-stuck .brand__logo { height: 50px; }
.site-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; background: none; border: 0; font: 600 var(--fs-3)/1.3 var(--f-body); color: var(--c-ink); text-decoration: none; cursor: pointer; border-radius: 6px; white-space: nowrap; }
.menu__link:hover, .menu__item.is-active > .menu__link { color: var(--c-primary); background: var(--c-tint); }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.menu__item--feature > .menu__link { background: var(--grad); color: #fff; border-radius: 999px; padding: 10px 20px; margin-left: 8px; box-shadow: 0 8px 18px -10px var(--c-primary); }
.menu__item--feature > .menu__link:hover, .menu__item--feature.is-active > .menu__link { background: var(--c-primary); color: #fff; }
.submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; list-style: none; margin: 0; padding: 8px; background: #fff; border-top: 4px solid var(--c-accent); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 20px 40px -18px rgba(122,30,22,.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.submenu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.submenu a { display: block; padding: 9px 14px; color: var(--c-ink); text-decoration: none; border-radius: 6px; font-size: var(--fs-2); line-height: 1.4; border-left: 3px solid transparent; }
.submenu a:hover, .submenu a[aria-current] { background: var(--c-tint); color: var(--c-primary); border-left-color: var(--c-accent); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
.site-nav__extra { display: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; margin-left: auto; padding: 8px 16px; background: var(--c-primary); border: 0; border-radius: 999px; font: 600 var(--fs-2) var(--f-body); color: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .menu__link { padding: 10px 9px; font-size: var(--fs-2); }
  .brand__logo { height: 52px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .brand__logo { height: 48px; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 80; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; padding: 84px 20px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: -20px 0 40px -20px rgba(70, 20, 10, .4); z-index: 70; margin: 0; border-top: 5px solid var(--c-accent); }
  .site-nav.is-open { transform: none; visibility: visible; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__item { border-bottom: 1px solid var(--c-line); }
  .menu__link { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: var(--fs-3); white-space: normal; text-align: left; border-radius: 0; }
  .menu__item--feature { border: 0; margin-top: 16px; }
  .menu__item--feature > .menu__link { justify-content: center; margin: 0; border-radius: 999px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; display: none; min-width: 0; background: transparent; }
  .has-sub.is-open > .submenu { display: block; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.is-open:hover > .submenu { display: block; }
  .has-sub:hover .chev { transform: none; }
  .has-sub.is-open .chev { transform: rotate(180deg); }
  .site-nav__extra { display: grid; gap: 14px; margin-top: 24px; }
  .site-nav__varta { display: block; text-align: center; padding: 10px; background: var(--c-accent); color: #3a1a05; border-radius: 999px; text-decoration: none; font-weight: 600; }
  .langs--drawer { border-color: var(--c-line); justify-content: center; }
  .langs--drawer a { flex: 1; text-align: center; padding: 8px; color: var(--c-ink); text-decoration: none; }
  .langs--drawer a[aria-current] { background: var(--c-primary); color: #fff; }
  .nav-open { overflow: hidden; }
  .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(58, 20, 10, .5); z-index: 40; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .topbar__in { flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding-block: 6px; }
  .topbar__contact { order: 1; }
  .topbar__varta { order: 3; margin: 0; font-size: var(--fs-1); }
  .topbar__end { order: 2; margin: 0; }
  .topbar .social { display: none; }
  .brand__logo { height: 40px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px 12px; }
}

/* ---------- Hero slider: full width, shaped like the slide images ---------- */
.hero { position: relative; background: var(--c-deep); color: #fff; isolation: isolate; overflow: hidden; margin-top: 4px; }
.hero__track { position: relative; width: 100%; aspect-ratio: var(--hero-ratio, 2.6); max-height: 82vh; min-height: 200px; }
.hero--tall .hero__track { aspect-ratio: auto; height: min(78vh, 760px); min-height: 360px; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__slide.is-active .hero__img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__link { position: absolute; inset: 0; z-index: 2; }
.hero__caption { position: absolute; inset: auto 0 clamp(40px, 7vw, 90px); z-index: 3; }
.hero--tall .hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60,15,8,.6), transparent 60%); }
.hero__panel { width: min(600px, calc(100% - 2 * var(--gutter))); margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding: 22px 28px; background: color-mix(in srgb, var(--c-primary) 90%, transparent); border-left: 6px solid var(--c-accent); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-7); line-height: 1.25; margin: 0 0 8px; }
.hero__sub { margin: 0 0 14px; color: #fff1df; font-size: var(--fs-3); }
.hero__arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--c-primary); cursor: pointer; box-shadow: 0 8px 22px -8px rgba(70, 20, 10, .5); transition: background .2s, color .2s; }
.hero__arrow:hover { background: var(--c-accent); color: #fff; }
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow--prev { left: clamp(10px, 2vw, 28px); }
.hero__arrow--next { right: clamp(10px, 2vw, 28px); }
.hero__controls { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: clamp(10px, 2vw, 22px); display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; background: rgba(40, 10, 5, .45); border-radius: 999px; backdrop-filter: blur(6px); }
.hero__pause { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.hero__pause:hover { background: rgba(255,255,255,.2); }
.hero__pause svg { width: 18px; height: 18px; }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; } .hero.is-paused .hero__pause .i-pause { display: none; }
.hero__dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hero__dots button { display: block; width: 34px; height: 22px; padding: 9px 0; background: none; border: 0; cursor: pointer; }
.hero__dots span { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); overflow: hidden; position: relative; }
.hero__dots span::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--c-accent); }
.hero__dots [aria-current] span::after { animation: progress var(--slide-ms, 6000ms) linear forwards; }
.hero.is-paused .hero__dots [aria-current] span::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.hero--plain { padding: clamp(60px, 10vw, 120px) 0; background: var(--grad); text-align: center; }
.hero__plain .ornament { color: #fff; width: 160px; height: 54px; }
.hero__plain-title { color: #fff; font-size: var(--fs-8); margin: 8px 0; }
.hero__plain-sub { color: #fff4e6; font-size: var(--fs-4); }
@media (max-width: 760px) {
  .hero__arrow { width: 36px; height: 36px; }
  .hero__arrow svg { width: 18px; height: 18px; }
  .hero__caption { inset: auto 0 44px; }
  .hero__panel { padding: 12px 16px; }
  .hero__sub { display: none; }
  .hero__dots button { width: 22px; }
  .hero--tall .hero__track { height: 62vh; }
}

/* ---------- Projects strip (directly under the slider) ---------- */
.projects { background: var(--grad); padding: 18px 0; box-shadow: inset 0 -1px 0 rgba(70, 20, 10, .08); }
.projects__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.project { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 10px 6px 12px; text-align: center; text-decoration: none; color: #fff; border-radius: var(--radius); transition: background .2s, transform .2s; }
.project:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.project__img { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: #fff; box-shadow: 0 8px 18px -8px rgba(70, 20, 10, .5); flex: 0 0 auto; }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project__name { font-weight: 600; font-size: var(--fs-2); line-height: 1.3; }
@media (max-width: 1000px) {
  .projects { padding: 12px 0; }
  .projects__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 104px; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; scrollbar-width: none; }
  .project__img { width: 62px; height: 62px; }
  .project__name { font-size: var(--fs-1); }
  .projects__list li { scroll-snap-align: start; }
}

/* ---------- Home feature sections ---------- */
.feature { padding: clamp(44px, 5.5vw, 76px) 0; }
.feature--t0 { background: #fff; }
.feature--t1 { background: var(--c-tint); }
.feature--t2 { background: var(--c-paper); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.feature--image-left .feature__media { order: -1; }
.no-image .feature__grid { grid-template-columns: minmax(0, 900px); justify-content: center; text-align: center; }
.no-image .ornament-line { display: flex; justify-content: center; }
.no-image .feature__body { margin-inline: auto; text-align: left; }
.feature__kicker { display: inline-block; color: var(--c-primary); background: var(--c-tint); border-radius: 999px; padding: 2px 14px; font-weight: 600; font-size: var(--fs-2); margin: 0 0 10px; }
.feature--t1 .feature__kicker { background: #fff; }
.feature__title { font-size: var(--fs-7); }
.feature__body { max-width: 64ch; }
.feature__body[data-clamp].is-long:not(.is-open) { max-height: 14.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.feature__body .img-grid, .feature__body figure { display: none; }
.clamp-toggle { display: inline-block; margin: 0 18px 0 0; padding: 0; background: none; border: 0; font: 600 var(--fs-2) var(--f-body); color: var(--c-primary); border-bottom: 2px solid var(--c-accent); cursor: pointer; }
.feature .btn { margin-top: 10px; }
.feature__media { margin: 0; position: relative; }
.feature__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--grad); border-radius: var(--radius); z-index: -1; opacity: .9; }
.feature--image-left .feature__media::before { inset: 18px 18px -18px -18px; }
.feature__img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; position: relative; }
.feature__media { isolation: isolate; }
.feature__media--portrait { max-width: 420px; justify-self: center; }
.feature__media--portrait .feature__img { border-radius: 210px 210px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-position: top; border: 6px solid #fff; }
.feature__media--portrait::before { border-radius: 210px 210px var(--radius) var(--radius); }
@media (max-width: 900px) {
  .feature__grid { grid-template-columns: 1fr; }
  .feature__media { order: -1; max-width: 680px; margin-right: 14px; }
  .feature__media::before { inset: 12px -12px -12px 12px !important; }
  .feature__media--portrait { max-width: 240px; }
}

/* Prose */
.prose { font-size: var(--fs-3); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--fs-6); margin-top: 1.3em; padding-bottom: 6px; border-bottom: 2px solid var(--c-tint); }
.prose h3 { font-size: var(--fs-5); margin-top: 1.2em; }
.prose h4 { font-size: var(--fs-4); color: var(--c-ink); font-family: var(--f-body); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--c-accent); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--c-tint); border-left: 5px solid var(--c-accent); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: var(--fs-4); }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; max-height: 560px; width: auto; }
.prose > img, .prose p > img { border-radius: var(--radius); margin: 1em auto; max-height: 560px; width: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: var(--fs-2); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { background: var(--c-tint); }
.prose iframe, .video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; height: 2px; background: var(--grad); margin: 2em 0; opacity: .5; }
.prose .btn { color: #fff; }
.img-grid { display: grid; gap: 10px; margin: 1.4em 0; }
.img-grid--2 { grid-template-columns: repeat(2, 1fr); }
.img-grid--3 { grid-template-columns: repeat(3, 1fr); }
.img-grid--4 { grid-template-columns: repeat(4, 1fr); }
.img-grid figure { margin: 0; }
.img-grid a { display: block; height: 100%; border-radius: 8px; overflow: hidden; }
.prose .img-grid img { width: 100%; height: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: none; transition: transform .4s; }
.img-grid a:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .img-grid--3, .img-grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* Section heads */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head__title { font-size: var(--fs-7); margin: 0; }
.section-head__sub { color: var(--c-muted); margin: 4px 0 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .ornament-line { margin: 2px 0 0; }

/* Updates rail */
.updates { padding: clamp(44px, 5.5vw, 72px) 0; background: var(--grad); color: #fff; }
.updates .section-head__title { color: #fff; }
.updates .section-head__sub { color: #fff2e0; }
.updates .link-more { color: #fff; border-color: #fff; }
.updates__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-color: #fff transparent; }
.update-card { scroll-snap-align: start; background: #fff; color: var(--c-ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 30px -18px rgba(70, 20, 10, .6); }
.update-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.update-card__media { aspect-ratio: 16 / 10; background: var(--c-tint); overflow: hidden; }
.update-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.update-card__link:hover img { transform: scale(1.05); }
.ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--grad); overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: -30%; background: repeating-radial-gradient(circle at 70% 30%, rgba(255,255,255,.10) 0 2px, transparent 2px 18px); }
.ph img { position: relative; width: 38%; max-width: 120px; height: auto; opacity: .95; filter: drop-shadow(0 6px 14px rgba(70, 20, 10, .25)); }
.ph--round img { width: 62%; }
.update-card__body { padding: 14px 18px 18px; border-top: 4px solid var(--c-accent); }
.update-card time { font-size: var(--fs-1); color: var(--c-primary); font-weight: 600; }
.update-card h2, .update-card h3 { font-size: var(--fs-4); font-weight: 600; margin: 4px 0 6px; line-height: 1.4; }
.update-card p { font-size: var(--fs-2); color: var(--c-muted); margin: 0; }
.updates--more { background: var(--c-tint); color: var(--c-ink); }
.updates--more .section-head__title { color: var(--c-primary); }
.updates--more .link-more { color: var(--c-primary); border-color: var(--c-accent); }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.update-card--list { border: 1px solid var(--c-line); }
.updates__rail--fit { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; }
.updates__rail--wide .update-card__link { flex-direction: row; }
.updates__rail--wide .update-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 220px; }
.updates__rail--wide .update-card__body { border-top: 0; border-left: 4px solid var(--c-accent); align-self: center; }
@media (max-width: 760px) { .updates__rail { grid-auto-columns: 78%; } .updates__rail--fit { grid-template-columns: 1fr; } .updates__rail--wide .update-card__link { flex-direction: column; } .updates__rail--wide .update-card__media { aspect-ratio: 16 / 10; min-height: 0; } }

/* Journey mosaic */
.journey { padding: clamp(44px, 6vw, 80px) 0; background: #fff; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 15vw, 200px); grid-auto-flow: dense; gap: 10px; margin-bottom: 28px; }
.mosaic__item { position: relative; overflow: hidden; border-radius: 8px; background: var(--c-tint); }
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(6) { grid-column: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__cap, .masonry__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; background: linear-gradient(transparent, rgba(80, 20, 10, .88)); color: #fff; font-size: var(--fs-1); line-height: 1.4; font-weight: 600; }
.mosaic__item:hover .mosaic__cap, .mosaic__item:focus .mosaic__cap, .masonry__item:hover .masonry__cap { opacity: 1; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic__item:nth-child(1) { grid-row: span 1; } .mosaic__item:nth-child(6) { grid-column: auto; } .mosaic__item:nth-child(8) { display: none; } }

/* CTA band */
.cta { background: var(--c-accent); color: #3a1a05; padding: clamp(32px, 5vw, 52px) 0; background-image: radial-gradient(circle at 100% 0, rgba(255,255,255,.35), transparent 45%), radial-gradient(circle at 0 100%, color-mix(in srgb, var(--c-primary) 35%, transparent), transparent 50%); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.cta__title { color: var(--c-deep); font-size: var(--fs-6); margin-bottom: 4px; }
.cta__text { color: #4a2508; margin: 0; max-width: 60ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--light { background: #fff; color: var(--c-primary); border-color: #fff; }
.cta .btn--light:hover { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }
.cta .btn--accent { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.cta .btn--accent:hover { background: var(--c-deep); border-color: var(--c-deep); }

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; color: #fff; padding: clamp(34px, 5vw, 60px) 0 clamp(34px, 5vw, 58px); overflow: hidden; isolation: isolate; margin-top: 4px; background: var(--grad); }
.page-hero::before { content: ""; position: absolute; right: -60px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.12) 0 2px, transparent 2px 22px); }
.page-hero--image { padding: clamp(60px, 9vw, 130px) 0 clamp(40px, 6vw, 70px); }
.page-hero--image::before { display: none; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(20deg, color-mix(in srgb, var(--c-primary) 82%, transparent) 30%, color-mix(in srgb, var(--c-accent) 35%, transparent) 55%, transparent 75%); }
.page-hero--image .page-hero__title, .page-hero--image .page-hero__sub { text-shadow: 0 2px 14px rgba(70, 20, 10, .55); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero__title { color: #fff; font-size: var(--fs-8); margin: 6px 0 4px; max-width: 24ch; text-shadow: 0 2px 12px rgba(70, 20, 10, .18); }
.page-hero__sub { color: #fff6ea; font-size: var(--fs-4); max-width: 62ch; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-2); color: #fff3e3; }
.crumbs li + li::before { content: "›"; margin: 0 8px 0 4px; opacity: .8; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.notice { margin: 20px 0 0; padding: 12px 16px; background: #fff; border-left: 5px solid var(--c-accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-2); box-shadow: var(--shadow); }
.page-body { padding-block: clamp(32px, 4.5vw, 56px); }

/* Two-column page with sidebar */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.page-main { min-width: 0; }
.page-main > .prose--page, .page-body > .prose--page { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 10px 30px -22px rgba(122,30,22,.35); border-top: 4px solid var(--c-accent); }
.page-body--wide .prose--page { margin-bottom: 28px; }
.page-cover { margin: 0 0 22px; }
.page-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px -22px rgba(122,30,22,.35); }
.side-card__h { display: block; font-family: var(--f-body); font-weight: 700; font-size: var(--fs-3); color: var(--c-primary); margin: 0 0 10px; }
.side-card--nav { border-top: 4px solid var(--c-primary); padding-bottom: 10px; }
.side-card--nav ul { list-style: none; margin: 0; padding: 0; }
.side-card--nav a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--c-ink); text-decoration: none; font-size: var(--fs-2); line-height: 1.4; border-left: 3px solid transparent; }
.side-card--nav a:hover { background: var(--c-tint); color: var(--c-primary); }
.side-card--nav a[aria-current] { background: var(--c-tint); color: var(--c-primary); font-weight: 600; border-left-color: var(--c-accent); }
.side-card--contact { background: var(--grad); color: #fff; }
.side-card--contact .side-card__h { color: #fff; }
.side-card--contact p { margin: 0 0 6px; font-size: var(--fs-2); }
.side-card--contact a { color: #fff; text-decoration: none; }
.side-card--contact .btn { margin-top: 8px; }
.side-card--contact .btn--light { color: var(--c-primary); }
.side-card--varta { display: block; text-decoration: none; background: var(--c-tint); border: 2px solid var(--c-accent); color: var(--c-ink); }
.side-card--varta span:last-child { font-size: var(--fs-2); color: var(--c-muted); }
.side-card--varta:hover { background: var(--c-accent); }
@media (max-width: 1000px) { .page-layout { grid-template-columns: 1fr; } .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* External website card (e.g. Ramayan Varta) */
.site-link-card { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin: 0 0 24px; padding: 22px 26px; background: var(--grad); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.site-link-card__label { margin: 0; font-weight: 700; font-family: var(--f-display); font-size: var(--fs-5); color: #fff; }
.site-link-card__url { margin: 0; color: #fff1df; font-size: var(--fs-2); }

/* Team / organisation members */
.team-intro { margin-bottom: 8px; }
.team-outro { margin-top: 36px; }
.team-group { margin-top: 36px; }
.team-group__title { display: flex; align-items: center; gap: 16px; font-size: var(--fs-6); text-align: center; margin: 0 0 22px; }
.team-group__title::before, .team-group__title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--c-accent)); }
.team-group__title::after { background: linear-gradient(90deg, var(--c-accent), transparent); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 236px)); justify-content: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.person { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px -20px rgba(122,30,22,.45); transition: transform .25s, box-shadow .25s; }
.person:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(122,30,22,.5); }
.person__photo { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--c-tint); overflow: hidden; }
.person__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.person:hover .person__photo img { transform: scale(1.04); }
.person__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 14px 14px 18px; text-align: center; }
.person__name { font-size: var(--fs-4); line-height: 1.35; margin: 0; color: var(--c-ink); }
.person__role { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--c-tint); color: var(--c-primary); font-weight: 600; font-size: var(--fs-2); line-height: 1.4; }
.person__bio { margin: 2px 0 0; font-size: var(--fs-2); color: var(--c-muted); line-height: 1.55; }
.person--photo .person__photo::after { height: 4px; }
@media (max-width: 560px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person__body { padding: 10px 8px 14px; }
  .person__name { font-size: var(--fs-3); }
  .person__role { font-size: var(--fs-1); padding: 2px 9px; }
}

/* Captions under photos inside page text */
.prose figcaption { margin-top: 8px; text-align: center; font-size: var(--fs-2); font-weight: 600; color: var(--c-ink); line-height: 1.45; }
.img-grid figure { display: flex; flex-direction: column; }
.img-grid figcaption { margin-top: 6px; font-size: var(--fs-1); }
.img-grid a { height: auto; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.chip { padding: 7px 18px; border: 2px solid var(--c-line); border-radius: 999px; background: #fff; font: 600 var(--fs-2) var(--f-body); color: var(--c-ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.masonry { columns: 4 240px; column-gap: 12px; }
.masonry__item { position: relative; display: block; margin: 0 0 12px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--c-tint); box-shadow: 0 8px 20px -14px rgba(70, 20, 10, .5); }
.masonry__item[hidden] { display: none; }
.masonry__item img { width: 100%; transition: transform .5s; }
.masonry__item:hover img { transform: scale(1.04); }

/* Year-wise photo gallery: caption always visible under each photo */
.gallery-year { margin-bottom: 40px; }
.gallery-year[hidden] { display: none; }
.gallery-year__title { display: flex; align-items: center; gap: 16px; font-size: var(--fs-6); margin: 0 0 18px; }
.gallery-year__title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--c-accent), transparent); }
.gallery-year__title span { padding: 4px 18px; border-radius: 999px; background: var(--grad); color: #fff; font-size: var(--fs-5); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.photo { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px -20px rgba(122,30,22,.5); }
.photo__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-tint); }
.photo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo:hover .photo__img img { transform: scale(1.05); }
.photo__cap { margin: 0; padding: 10px 12px 12px; font-size: var(--fs-2); line-height: 1.5; color: var(--c-ink); border-top: 3px solid var(--c-accent); }
@media (max-width: 560px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .photo__cap { font-size: var(--fs-1); padding: 8px; } }
.chip small { font-weight: 400; opacity: .75; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; list-style: none; margin: 0 0 28px; padding: 0; }
.video { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -22px rgba(122,30,22,.4); }
.video__play { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--c-deep); aspect-ratio: 16 / 9; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s, transform .4s; }
.video__play:hover img { opacity: 1; transform: scale(1.03); }
.video__icon { position: absolute; inset: 0; display: grid; place-items: center; }
.video__icon svg { width: 66px; height: 66px; padding: 18px; border-radius: 50%; background: var(--c-primary); fill: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.35); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video__title { margin: 0; padding: 12px 16px 14px; font-weight: 600; line-height: 1.45; }

/* Media coverage */
.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.press__item { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px -22px rgba(122,30,22,.4); }
.press__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-tint); }
.press__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.press__body { padding: 14px 18px 18px; border-top: 4px solid var(--c-accent); }
.press__meta { font-size: var(--fs-1); color: var(--c-primary); font-weight: 600; margin: 0 0 4px; }
.press__title { font-size: var(--fs-4); margin: 0 0 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact__info { background: var(--grad); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.contact__info .prose { color: #fff; }
.contact__info .contact__h { color: #fff; }
.contact__info a { color: #fff; }
.contact__h { font-size: var(--fs-6); }
.contact__list { margin: 0; display: grid; gap: 16px; }
.contact__list dt { font-weight: 700; color: #ffe2b8; }
.contact__list dd { margin: 0; }
.contact__form { background: #fff; border-top: 5px solid var(--c-accent); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; margin-bottom: 4px; font-size: var(--fs-2); }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--c-line); border-radius: 8px; font: var(--fs-3) var(--f-body); background: var(--c-paper); color: var(--c-ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: transparent; background: #fff; }
.hp { position: absolute; left: -5000px; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: var(--fs-2); }
.alert--ok { background: #e7f5ea; color: #1d5b2c; border-left: 4px solid #2e8540; }
.alert--err { background: #fdecea; color: #8a1f17; border-left: 4px solid #b3261e; }
.map { margin-top: 40px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) { .contact, .form__row { grid-template-columns: 1fr; } }

.post-cover { margin: 0 auto 26px; max-width: 900px; }
.post-cover img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; box-shadow: var(--shadow); }
.page-body > .prose--page { max-width: 900px; margin-inline: auto; }
.empty-state { padding: 90px 0; text-align: center; }
.empty-state .ornament { margin: 0 auto 12px; }

/* ---------- Footer (deep kumkum red) ---------- */
.site-footer { position: relative; background: var(--c-deep); color: #f6e3d5; font-size: var(--fs-2); padding-top: 56px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.25fr; gap: 32px; padding-bottom: 40px; }
.site-footer a { color: #fde9d6; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__logo img { height: 54px; width: auto; margin-bottom: 14px; }
.site-footer__h { color: var(--c-accent); font-family: var(--f-body); font-weight: 700; font-size: var(--fs-3); margin-bottom: 12px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer__contact { font-style: normal; }
.site-footer__contact p { margin: 0 0 7px; }
.site-footer__varta { display: inline-block; margin-top: 6px; padding: 6px 16px; background: var(--c-accent); color: #3a1a05 !important; border-radius: 999px; font-weight: 600; }
.site-footer__varta:hover { background: #fff; }
.social--footer a { width: 38px; height: 38px; background: rgba(255,255,255,.12); }
.social--footer a:hover { background: var(--c-accent); color: #3a1a05; }
.social--footer svg { width: 18px; height: 18px; }
.site-footer__bar { background: rgba(70, 20, 10, .18); font-size: var(--fs-1); }
.site-footer__bar-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px; }
.site-footer__bar p { margin: 0; }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; } .site-footer__grid > div:last-child { grid-column: 1 / -1; } }

.to-top, .wa-float { position: fixed; right: 18px; z-index: 30; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: var(--shadow); }
.to-top { bottom: 18px; background: var(--c-primary); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 22px; height: 22px; }
.wa-float { bottom: 76px; background: #25D366; color: #fff; }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; background: rgba(60, 14, 8, .96); padding: 56px 16px 16px; }
.lb[hidden] { display: none; }
.lb__img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; align-self: center; justify-self: center; }
.lb__cap { color: #fdecd9; text-align: center; padding: 10px; font-size: var(--fs-2); min-height: 2.4em; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: var(--fs-6); line-height: 1; }
.lb__btn:hover { background: var(--c-accent); }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .site-header, .site-footer, .hero__controls, .to-top, .wa-float, .cta, .sidebar { display: none !important; } }

/* ---------- Text colours: no black anywhere ---------- */
.person__name, .prose h4, .update-card h2 a, .update-card h3 a { color: var(--c-deep); }
.update-card h2 a, .update-card h3 a { text-decoration: none; }
.update-card h2 a:hover, .update-card h3 a:hover { color: var(--c-primary); }
.update-card h2, .update-card h3 { color: var(--c-deep); }

/* ---------- Long labels: clamped with a "read more" toggle so layouts stay even ---------- */
[data-expand].is-clamped:not(.is-open) { display: -webkit-box; -webkit-line-clamp: var(--clamp, 3); -webkit-box-orient: vertical; overflow: hidden; }
.expand-btn { display: inline-flex; align-items: center; gap: 4px; margin: 0 12px 10px; padding: 2px 0; background: none; border: 0; border-bottom: 1.5px solid var(--c-accent); color: var(--c-primary); font: 600 var(--fs-1) var(--f-body); cursor: pointer; align-self: flex-start; }
.update-card__body .expand-btn { margin: 6px 0 0; }
.person__role[data-expand] { --clamp: 4; white-space: normal; }
.update-card [data-expand] { --clamp: 4; }

/* ---------- Update cards with video ---------- */
.update-card { display: flex; flex-direction: column; }
.update-card__media .video__play { height: 100%; aspect-ratio: auto; border-radius: 0; }
.update-card__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.update-card__media > a { display: block; height: 100%; }
.update-card__body { flex: 1; }
.post-video { max-width: 900px; margin: 0 auto 26px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-deep); }
.post-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Gallery: year cards, highlights strip, album page ---------- */
.gallery-intro { margin-bottom: 28px; }
.strip { margin: 0 0 34px; }
.strip__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 14px; overflow-x: auto; list-style: none; margin: 0; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-color: var(--c-accent) transparent; }
.strip__item { scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px -20px rgba(122,30,22,.5); display: flex; flex-direction: column; }
.strip__item > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.album__link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--c-ink); box-shadow: 0 14px 32px -22px rgba(122,30,22,.55); transition: transform .25s, box-shadow .25s; }
.album__link:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -20px rgba(122,30,22,.6); }
.album__cover { position: relative; display: block; aspect-ratio: 866 / 1024; overflow: hidden; background: var(--c-tint); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album__link:hover .album__cover img { transform: scale(1.04); }
.album__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 20px; border-top: 5px solid var(--c-accent); }
.album__title { font-weight: 700; font-size: var(--fs-4); color: var(--c-primary); line-height: 1.35; }
.album__meta { font-size: var(--fs-1); color: var(--c-muted); }
.album__body .btn { margin-top: 6px; }
.album-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--c-line); }
.chip { text-decoration: none; }
.chip--on, a.chip:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.photo__cap { flex: 1; }

/* ---------- Accordions (expandable items from the old pages) ---------- */
.prose details.acc { margin: 0 0 10px; border: 1.5px solid var(--c-line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.prose details.acc > summary { list-style: none; cursor: pointer; padding: 12px 44px 12px 16px; position: relative; font-weight: 700; color: var(--c-primary); background: var(--c-tint); }
.prose details.acc > summary::-webkit-details-marker { display: none; }
.prose details.acc > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: #fff; font-weight: 700; line-height: 1; }
.prose details.acc[open] > summary::after { content: "–"; }
.prose details.acc > div { padding: 12px 16px 4px; }

/* ---------- Contact page: headings readable on the coloured panel ---------- */
.contact__info .prose, .contact__info .prose p, .contact__info .prose li { color: #fff; }
.contact__info .prose h2, .contact__info .prose h3, .contact__info .prose h4, .contact__info .prose strong { color: #fff; border-color: rgba(255,255,255,.35); }
.contact__info .prose a { color: #fff; }
.contact__form .contact__h { color: var(--c-primary); }

/* Member designation keeps its line breaks */
.person__role { white-space: pre-line; }
.person__role { display: block; background: none; padding: 0; border-radius: 0; color: var(--c-primary); font-weight: 600; font-size: var(--fs-2); line-height: 1.5; }
.person__body { align-items: stretch; }
.person__body .expand-btn { align-self: center; margin: 2px 0 0; }
.contact__info .prose + .contact__h{margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.35)}

/* Video pop-up */
.vpop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:clamp(12px,4vw,48px);background:rgba(58,14,8,.88);backdrop-filter:blur(4px);animation:vpopIn .25s ease}
.vpop[hidden]{display:none}
.vpop__inner{width:min(1100px,100%);}
.vpop__title{color:#FFE9D2;font-size:var(--fs-4,1.15rem);font-weight:600;margin:0 48px 12px 0;line-height:1.4}
.vpop__frame{position:relative;aspect-ratio:16/9;width:100%;border-radius:14px;overflow:hidden;background:#3A0E08;box-shadow:0 24px 60px rgba(70,20,10,.55);border:3px solid var(--c-accent,#FA951F)}
.vpop__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vpop__close{position:absolute;top:clamp(10px,2vw,24px);right:clamp(10px,2vw,24px);width:46px;height:46px;border-radius:50%;border:0;background:var(--c-accent,#FA951F);color:#fff;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 6px 18px rgba(70,20,10,.4)}
.vpop__close:hover{background:var(--c-primary,#DC453B)}
@keyframes vpopIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.vpop{animation:none}}
.update-card .video__play{cursor:pointer}
.update-card .video__play img{transition:transform .4s ease}
.update-card .video__play:hover img{transform:scale(1.05)}
