/* ==========================================================================
   Chinmaya Vidyalaya SLR, Rajapalayam — site stylesheet
   One stylesheet for every page. Sections:
   1. Tokens   2. Base   3. Layout   4. Header & navigation   5. Heroes
   6. Components   7. Content (prose)   8. Page-specific   9. Footer
   10. Utilities   11. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* Brand — taken from the school emblem (green) and wordmark (maroon),
     with Chinmaya saffron as the accent. */
  --primary-900: #091c3d;
  --primary-800: #0d254f;
  --primary-700: #102e63;
  --primary:     #143b7e;
  --primary-500: #1e4b9a;
  --primary-100: #dbe3f0;
  --primary-50:  #eff2f8;

  --secondary:     #8c1d2c;
  --secondary-700: #6e1622;
  --secondary-50:  #fbeef0;

  --accent:      #e8b61c;   /* saffron — fills, rules, icons */
  --accent-700:  #a88007;   /* saffron for text on light backgrounds (AA) */
  --accent-50:   #fdf7e6;

  --bg:          #faf9f4;
  --surface:     #ffffff;
  --surface-alt: #ebeef3;
  --text:        #1d2430;
  --text-muted:  #555e6c;
  --text-subtle: #7a8290;
  --border:      #d8dce3;
  --border-strong: #c1c7d0;

  --success: #113d84;
  --warning: #b48609;
  --danger:  #b91c1c;
  --info:    #1d4ed8;

  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.125rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --fs-h1: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-display: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow:    0 4px 10px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .22);

  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-900);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1.1em; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
a:hover { color: var(--primary-800); }

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

::selection { background: var(--primary-100); color: var(--primary-900); }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--primary-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #ffffff; }

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

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

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--alt { background: var(--surface-alt); }
.section--brand {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(232, 182, 28, .18), transparent 60%),
    linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: #e9edf3;
}
.section--brand h2, .section--brand h3 { color: #ffffff; }

.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); margin: 0; }
.section--brand .section-head p { color: #ced7e6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.section--brand .eyebrow { color: #f6d97f; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Inner-page layout: article + sticky section sidebar */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 88px);
}
.page-layout--full { grid-template-columns: minmax(0, 1fr); }

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* 4. Header & navigation ----------------------------------------------- */
.topbar {
  background: var(--primary-900);
  color: #ced7e6;
  font-size: var(--fs-xs);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar-info, .topbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar a { color: #e9edf3; text-decoration: none; }
.topbar a:hover { color: #ffffff; text-decoration: underline; }
.topbar-info li { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.topbar-links a { font-weight: 500; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(16, 24, 40, .25); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
  min-width: 0;
}
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .04em;
  color: var(--primary);
  text-transform: uppercase;
}
.brand-sub {
  font-size: .75rem;
  font-weight: 500;
  color: var(--secondary);
  margin-top: 3px;
}
.brand:hover .brand-name { color: var(--primary-800); }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 11px;
  border: 0;
  background: none;
  font: 500 .9375rem/1 var(--font-body);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-link:hover,
.nav-item:focus-within > .nav-link { background: var(--primary-50); color: var(--primary-800); }
.nav-item.is-current > .nav-link { color: var(--primary); }
.nav-item.is-current > .nav-link::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 10;
}
.dropdown::before { /* hover bridge */
  content: "";
  position: absolute;
  inset: -10px 0 auto 0;
  height: 10px;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-item:hover > .nav-link svg,
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--primary-50); color: var(--primary-800); }
.dropdown a[aria-current="page"] { color: var(--primary); font-weight: 600; background: var(--primary-50); }
.dropdown .sub-label {
  display: block;
  padding: 10px 12px 4px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.dropdown .divider { height: 1px; background: var(--border); margin: 6px 8px; }
.nav-item:last-child .dropdown, .nav-item.align-right .dropdown { left: auto; right: 0; }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-900);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* 5. Heroes ------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(460px, 72vh, 700px);
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  overflow: hidden;
  background: var(--primary-900);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 17, 35, .86) 0%, rgba(6, 17, 35, .55) 48%, rgba(6, 17, 35, .1) 100%),
    linear-gradient(0deg, rgba(6, 17, 35, .7) 0%, transparent 45%);
}
.hero-content {
  width: 100%;
  padding-block: clamp(56px, 9vw, 110px) clamp(84px, 9vw, 112px);
}
.hero-content > * { max-width: 640px; }
.hero h1 {
  color: #ffffff;
  font-size: var(--fs-display);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero h1 span { color: #f6d97f; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: #e1e7f0; margin-bottom: 30px; }
.hero .eyebrow { color: #f6d97f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-controls {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
}
.hero-controls .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #ffffff;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-caption svg { width: 16px; height: 16px; color: var(--accent); }
.hero-nav { display: flex; align-items: center; gap: 8px; }
.hero-dots { display: flex; gap: 6px; margin-right: 8px; }
.hero-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.hero-dot[aria-current="true"] { width: 26px; background: var(--accent); }
.hero-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .25); }
.hero-arrow svg { width: 18px; height: 18px; }

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #e9edf3;
  background:
    radial-gradient(900px 300px at 100% 0%, rgba(232, 182, 28, .22), transparent 60%),
    linear-gradient(120deg, var(--primary-900) 0%, var(--primary-700) 100%);
}
.page-hero::after { /* emblem watermark */
  content: "";
  position: absolute;
  right: max(2vw, calc((100vw - var(--container)) / 2));
  top: 50%;
  width: 150px;
  height: 330px;
  transform: translateY(-50%);
  background: url("../images/chinmaya_index_logo.png") center / contain no-repeat;
  opacity: .1;
  filter: grayscale(1) brightness(3);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(36px, 6vw, 64px); }
.page-hero h1 { color: #ffffff; margin-bottom: 8px; max-width: 820px; }
.page-hero-sub { margin: 0; font-size: var(--fs-lg); color: #ced7e6; max-width: 720px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #b4c1d7;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
}
.breadcrumb a { color: #e9edf3; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: #f6d97f; }

/* 6. Components --------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #ffffff;
  --btn-bd: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 .9375rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { --btn-bg: var(--primary-800); --btn-bd: var(--primary-800); color: #ffffff; box-shadow: var(--shadow); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #1d1807; }
.btn--accent:hover { --btn-bg: #d2a212; --btn-bd: #d2a212; color: #1d1807; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: var(--border-strong); }
.btn--outline:hover { --btn-bg: var(--primary-50); --btn-bd: var(--primary); color: var(--primary-800); box-shadow: none; }
.btn--light { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #ffffff; --btn-bd: rgba(255, 255, 255, .5); }
.btn--light:hover { --btn-bg: #ffffff; --btn-bd: #ffffff; color: var(--primary-900); }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--primary);
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.card-body { padding: clamp(20px, 2.4vw, 28px); flex: 1; display: flex; flex-direction: column; }
.card-body > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card-media { aspect-ratio: 4 / 3; background: var(--surface-alt); overflow: hidden; margin: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card--link:hover .card-media img { transform: scale(1.04); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 18px;
  flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--accent { background: var(--accent-50); color: var(--accent-700); }
.icon-badge--secondary { background: var(--secondary-50); color: var(--secondary); }

.pill {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-50);
  color: var(--primary-800);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.pill--muted { background: var(--surface-alt); color: var(--text-muted); }
.pill--accent { background: var(--accent-50); color: var(--accent-700); }

/* Callout / note panels */
.callout {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  margin: 0 0 1.6em;
  border-radius: var(--radius);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-900);
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout--accent { background: var(--accent-50); border-color: #f6e7b8; color: #4a3a06; }
.callout--accent svg { color: var(--accent-700); }

/* Quote */
.quote {
  position: relative;
  margin: 1.8em 0;
  padding: 22px 26px 22px 30px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-50);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 500;
  font-style: italic;
  color: #4a3a06;
}
.quote p:last-child { margin: 0; }

/* Data tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.8em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.table-wrap:focus-visible { outline-offset: -3px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-900);
  border-bottom: 1px solid var(--border);
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--primary-800);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .01em;
}
.data-table thead tr + tr th { background: var(--primary-700); }
.data-table tbody tr:nth-child(even) { background: #f8f9fa; }
.data-table tbody tr:hover { background: var(--primary-50); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: 600; color: var(--primary-900); }
.data-table .row-group > * {
  background: var(--surface-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-800);
}
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .center { text-align: center; }
.data-table img { border-radius: var(--radius-sm); width: 72px; height: 92px; max-width: none; object-fit: cover; }

/* Forms (shared styles for any future enquiry / login forms) */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.input, .select, .textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: 400 var(--fs-base)/1.4 var(--font-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--text-subtle); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 59, 126, .16);
}

/* Accordion (details/summary) */
.accordion { display: grid; gap: 12px; margin: 0 0 1.8em; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s var(--ease);
}
.accordion details[open] { box-shadow: var(--shadow); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-900);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
  flex: none;
}
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.accordion summary:hover { background: var(--primary-50); }
.accordion .accordion-body { padding: 4px 20px 20px; }
.accordion .table-wrap { margin-bottom: 0; }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-card h2 {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 12px;
}
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.side-nav a:hover { background: var(--primary-50); color: var(--primary-800); }
.side-nav a[aria-current="page"] {
  background: var(--primary);
  color: #ffffff;
}
.side-contact { background: linear-gradient(150deg, var(--primary-800), var(--primary-700)); color: #dbe3f0; border: 0; }
.side-contact h2 { color: #f6d97f; }
.side-contact p { font-size: var(--fs-sm); margin-bottom: 14px; }
.side-contact a:not(.btn) { color: #ffffff; }
.side-contact .contact-list { font-size: var(--fs-sm); margin-bottom: 18px; }
.side-contact .contact-list svg { color: var(--accent); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--primary); }

/* Gallery grid + figures */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery--portrait { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); max-width: 720px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-item > a, .gallery-item > .gallery-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gallery-item figure > img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface-alt);
}
.gallery--portrait .gallery-item > a,
.gallery--portrait .gallery-item > .gallery-frame,
.gallery--portrait .gallery-item figure > a,
.gallery--portrait .gallery-item figure > img { aspect-ratio: 3 / 4; }
.gallery-item figure > a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gallery-item figure > a:hover img { transform: scale(1.05); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item.is-document img { object-fit: contain; background: #ffffff; padding: 6px; }
.gallery-item > a::after, .gallery-item figure > a::after { /* zoom hint */
  content: "";
  position: absolute;
  right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d254f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.gallery-item > a:hover img { transform: scale(1.05); }
.gallery-item a:hover::after, .gallery-item a:focus-visible::after { opacity: 1; transform: none; }
.gallery-item figcaption {
  margin-top: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Album cards (Gallery index) */
.album-card .card-media { aspect-ratio: 7 / 5; }
.album-card .card-body { padding: 16px 18px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.album-card h3 { font-size: 1rem; margin: 0; }
.album-card a { text-decoration: none; }
.album-card .stretched::after { content: ""; position: absolute; inset: 0; }
.album-card.is-soon .card-media img { filter: grayscale(.6); opacity: .85; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 64px 72px 24px;
  background: rgba(8, 10, 14, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  background: #ffffff;
}
.lightbox-caption {
  color: #e7eaef;
  text-align: center;
  font-size: var(--fs-sm);
  padding-top: 14px;
  max-width: 760px;
}
.lightbox-count { color: #9fb3a8; margin-left: 8px; font-variant-numeric: tabular-nums; }
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }
body.no-scroll { overflow: hidden; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-800); }
.to-top svg { width: 20px; height: 20px; }

/* 7. Content (prose) ---------------------------------------------------- */
.prose { max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { color: #2c3441; }
.prose h2 {
  position: relative;
  margin-top: 2.2em;
  padding-top: 0;
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem);
}
.prose h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--accent);
}
.prose h3 { margin-top: 1.8em; color: var(--primary-800); }
.prose h4 {
  margin-top: 1.6em;
  font-size: 1rem;
  color: var(--secondary);
  letter-spacing: .01em;
}
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); }
.prose .gallery { padding-left: 0; }
.prose .gallery li { margin: 0; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a:not(.btn):not(.link-arrow) { font-weight: 500; }
.prose blockquote { margin: 1.6em 0; }
.prose .lead { font-size: var(--fs-lg); color: var(--text-muted); }

.check-list { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; margin: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143b7e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--primary-100);
}
.check-list--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* Floated media inside long-form text */
.media {
  margin: .35em 0 1.4em;
  max-width: 44%;
}
.media--left { float: left; margin-right: 28px; }
.media--right { float: right; margin-left: 28px; }
.media--center { margin-inline: auto; max-width: 100%; clear: both; }
.media--center img { margin-inline: auto; }
.media a, .media > img { display: block; }
.media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}
.media a { position: relative; border-radius: var(--radius); overflow: hidden; }
.media a img { transition: transform .5s var(--ease); }
.media a:hover img { transform: scale(1.03); }
.media figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--text-subtle); text-align: center; }
.clear { clear: both; }
.prose h2, .prose hr { clear: both; }

/* Two-up feature blocks (Labs, Uniform, ...) */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0 0 2em; }
.feature-grid .card h3 { margin-top: 0; font-size: 1.125rem; }
.feature-grid .card h3::after { display: none; }
.feature-grid .card p { font-size: var(--fs-sm); }
.feature-grid .card .check-list { font-size: var(--fs-sm); gap: 8px; margin-bottom: 0; }
.feature-grid .card-media a { display: block; height: 100%; }

/* 8. Page-specific ------------------------------------------------------ */
/* Home: welcome / trustee message */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.intro-media { position: relative; }
.intro-media .main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.intro-media .badge-card {
  position: absolute;
  left: -18px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 280px;
}
.intro-media .badge-card strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); line-height: 1.1; }
.intro-media .badge-card span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; display: block; }

.message-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.message-portrait { margin: 0; text-align: center; }
.message-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.message-portrait figcaption { margin-top: 12px; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; }
.message-portrait figcaption strong { display: block; color: var(--primary-900); font-size: var(--fs-sm); }
.message-body p { color: #2c3441; }

.pillar-card { text-align: left; }
.pillar-card .pillar-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--surface-alt);
}

.values-band .grid { align-items: stretch; }
.value-card {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.value-card .value-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f6d97f;
  margin-bottom: 12px;
}
.value-card .value-label img { width: 36px; height: 36px; border-radius: 50%; }
.value-card p { margin: 0; color: #e1e7f0; font-size: var(--fs-lg); line-height: 1.55; }
.value-card .sanskrit { display: block; font-family: var(--font-heading); font-style: italic; font-size: var(--fs-sm); color: #b4c1d7; margin-bottom: 6px; letter-spacing: .03em; }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.highlights svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 1px; }

.patrons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.patron { margin: 0; text-align: center; }
.patron .patron-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff, var(--surface-alt));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.patron img { width: 100%; height: 100%; object-fit: cover; }
.patron .patron-frame--round img { width: auto; height: 82%; object-fit: contain; }
.patron figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }
.patron figcaption strong { display: block; color: var(--primary-900); font-family: var(--font-heading); font-weight: 600; }

.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.quick-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-100); color: var(--primary-800); }
.quick-link .icon-badge { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.quick-link .icon-badge svg { width: 22px; height: 22px; }
.quick-link small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-xs); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(232, 182, 28, .3), transparent 70%),
    linear-gradient(120deg, var(--primary-900), var(--primary-700));
  color: #dbe3f0;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #ffffff; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .hero-actions { flex: none; }

/* Milestone timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 49px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary-100), var(--primary), var(--primary-100));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 28px;
}
.timeline-year {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  place-items: center;
  width: 100px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 5px var(--surface);
}
.timeline-item:nth-child(3n+2) .timeline-year { background: var(--accent); color: #1d1807; }
.timeline-item:nth-child(3n) .timeline-year { background: var(--secondary); }
.timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.timeline-card.has-media { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.timeline-card .gallery-item > a { aspect-ratio: 4 / 3; }
.timeline-card p:last-child, .timeline-card ul:last-child { margin-bottom: 0; }
.timeline-card ul { padding-left: 1.2em; margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: stretch; }
.contact-card .contact-list { gap: 18px; font-size: var(--fs-base); }
.contact-card .contact-list .label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.contact-card .contact-list svg { width: 20px; height: 20px; }
.contact-card .contact-list .icon-wrap {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary-50);
  flex: none;
}
.contact-card .contact-list .icon-wrap svg { margin: 0; }
.map-frame {
  position: relative;
  min-height: 380px;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-alt);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Coming soon / under construction */
.empty-state { text-align: center; max-width: 560px; margin-inline: auto; padding-block: 24px; }
.empty-state img { margin: 0 auto 24px; max-width: 320px; width: 100%; border-radius: var(--radius); }
.empty-state .icon-badge { margin-inline: auto; }

/* 9. Footer ------------------------------------------------------------- */
.site-footer {
  background: #09152b;
  color: #b8c1d0;
  font-size: var(--fs-sm);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}
.site-footer h2 {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f6d97f;
  margin-bottom: 18px;
}
.footer-brand .brand-name { color: #ffffff; }
.footer-brand .brand-sub { color: #e8a9b2; }
.footer-brand .brand img { filter: none; background: #ffffff; border-radius: 12px; padding: 6px 8px; height: 72px; }
.footer-brand p { margin: 18px 0 0; max-width: 340px; line-height: 1.65; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #dbe3f0; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .contact-list svg { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px;
  font-size: var(--fs-xs);
  color: #8e99ac;
}

/* 10. Utilities --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--text-muted); }
.stack-sm > * + * { margin-top: 8px; }

/* 11. Responsive -------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 8px; font-size: .9rem; }
  .header-cta { display: none; }
}

@media (max-width: 1060px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .site-header {
    /* a backdrop-filter would make the header the containing block of the fixed menu panel */
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav {
    position: fixed;
    top: var(--nav-top, var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--border);
    z-index: 99;
    margin: 0;
    padding: 12px var(--gutter) 40px;
    background: var(--surface);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-link:hover, .nav-item:focus-within > .nav-link { background: none; }
  .nav-item.is-current > .nav-link::after { display: none; }
  .nav-item:hover > .nav-link svg { transform: none; }
  .nav-item.is-open > .nav-link svg { transform: rotate(180deg); }
  .dropdown, .nav-item:last-child .dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 12px;
    padding: 4px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-alt);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .dropdown::before { display: none; }
  .nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { display: none; }
  .nav-item.is-open > .dropdown { display: block; }
  .dropdown a { padding: 12px 14px; }
  .mobile-only { display: block; }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1061px) {
  .mobile-only { display: none !important; }
}

@media (max-width: 860px) {
  .topbar-info .hide-md { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-media { margin-bottom: 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .map-frame { min-height: 320px; }
  .patrons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .timeline-card.has-media { grid-template-columns: minmax(0, 1fr); }
  .timeline-card.has-media .gallery-item { max-width: 360px; }
}

@media (max-width: 640px) {
  :root { --fs-base: 1rem; }
  .topbar .container { justify-content: center; }
  .topbar-links { display: none; }
  .topbar-info { justify-content: center; gap: 4px 16px; }
  .brand img { height: 46px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .6875rem; }
  .hero { min-height: 540px; }
  .hero-caption { display: none; }
  .hero-controls .container { justify-content: center; }
  .hero-content { padding-bottom: 96px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-band .hero-actions { flex: 1 1 100%; }
  .grid-2, .grid-3, .grid-4, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .message-card { grid-template-columns: minmax(0, 1fr); }
  .message-portrait { max-width: 200px; }
  .media, .media--left, .media--right {
    float: none;
    max-width: 100%;
    margin: .5em 0 1.4em;
  }
  .media img { width: 100%; }
  .media.is-small img { width: auto; max-width: 100%; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .patrons { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
  .quick-links { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 15px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-left: 38px; }
  .timeline-year { width: auto; justify-self: start; padding-inline: 16px; height: 34px; margin-left: -38px; }
  .intro-media .badge-card { left: 12px; bottom: -22px; }
  .lightbox { padding: 60px 12px 20px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

@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, .sidebar, .to-top, .hero-controls { display: none !important; }
  .page-hero { background: none; color: #000000; }
  .page-hero h1 { color: #000000; }
  .content-card { border: 0; box-shadow: none; padding: 0; }
  .page-layout { grid-template-columns: 1fr; }
}
