/* ==========================================================================
   Tallahassee Tamil Mandram — design system
   Palette derived from the TTM seal: deep maroon + temple gold on warm cream.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --maroon-900: #3E0D0A;
  --maroon-800: #5A1410;
  --maroon-700: #78201A;
  --maroon-600: #8F2A22;
  --maroon-500: #A8382E;

  --gold-700: #8A6508; /* text-safe gold: 4.99:1 on --cream */
  --gold-600: #B8860B; /* decorative gold: borders, rules, large glyphs */
  --gold-500: #DCA71C;
  --gold-400: #EFC63A;
  --gold-300: #F6DC7E;

  /* Neutrals */
  --cream:  #FCF7EE;
  --cream-2:#F5EDDF;
  --paper:  #FFFFFF;
  --ink:    #26140F;
  --ink-soft:#4C3A33;
  --muted:  #6E5A51;
  --line:   #E4D8C6;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-muted: var(--muted);
  --primary: var(--maroon-700);
  --primary-hover: var(--maroon-800);
  --on-primary: #FFF8E7;
  --accent: var(--gold-500);
  --border: var(--line);
  --ring: var(--gold-600);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-tamil: "Anek Tamil", "Noto Sans Tamil", var(--font-body);

  /* Spacing scale (8pt) */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-1: 0 1px 2px rgba(38,20,15,.06), 0 2px 8px rgba(38,20,15,.05);
  --shadow-2: 0 4px 12px rgba(38,20,15,.08), 0 12px 32px rgba(38,20,15,.08);
  --shadow-3: 0 12px 28px rgba(38,20,15,.14), 0 32px 64px rgba(38,20,15,.14);

  --container: 1200px;
  --measure: 68ch;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-underline-offset: 3px; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Utilities ---------- */
/* The hidden attribute must win over component display rules (e.g. .album { display:flex }) */
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--cream { background: var(--cream-2); }
.section--maroon { background: var(--maroon-800); color: var(--on-primary); }
.section--maroon h2, .section--maroon h3 { color: #fff; }
.section--maroon p { color: rgba(255,248,231,.82); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--maroon-800); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.tamil { font-family: var(--font-tamil); font-weight: 500; }

/* Eyebrow label with gold rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .6; }
.section--maroon .eyebrow { color: var(--gold-400); }

.section-head { max-width: var(--measure); margin-bottom: var(--s-7); }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.section-head p { margin-top: var(--s-4); color: var(--text-muted); font-size: 1.09rem; }
.section--maroon .section-head p { color: rgba(255,248,231,.78); }

.lead { font-size: 1.19rem; line-height: 1.6; color: var(--ink-soft); }

/* Kolam-inspired dot field */
.kolam {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: .1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-6);
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-2); }
.btn--gold { background: var(--gold-400); color: var(--maroon-900); box-shadow: var(--shadow-1); }
.btn--gold:hover { background: var(--gold-300); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); background: rgba(120,32,26,.05); }
.btn--on-dark { background: transparent; color: #FFF8E7; border-color: rgba(255,248,231,.4); }
.btn--on-dark:hover { background: rgba(255,248,231,.12); border-color: rgba(255,248,231,.75); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; text-decoration: none; color: var(--primary);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow:hover { border-color: var(--gold-500); gap: var(--s-3); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,247,238,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--text); }
.brand img { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.03rem; letter-spacing: -.01em; }
.brand__tamil { font-family: var(--font-tamil); font-size: .8rem; color: var(--maroon-600); font-weight: 500; }

.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--s-2) var(--s-3);
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 2px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The CTA lives inside .nav, so it must out-specify the plain nav-link rules above */
.nav a.btn { color: var(--on-primary); font-weight: 600; }
.nav a.btn::after { display: none; }
.nav a.btn--primary { color: var(--on-primary); }
.nav a.btn--primary:hover { color: var(--on-primary); }
.header-cta { margin-left: var(--s-3); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: var(--s-3) var(--s-5) var(--s-6);
    box-shadow: var(--shadow-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: var(--s-4) var(--s-2); font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { border-left: 3px solid var(--gold-500); padding-left: var(--s-4); }
  .header-cta { margin: var(--s-5) 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(62,13,10,.62) 0%, rgba(62,13,10,.52) 40%, rgba(62,13,10,.88) 100%),
    linear-gradient(90deg, rgba(62,13,10,.6) 0%, rgba(62,13,10,.1) 70%);
}
.hero__inner { padding-block: clamp(var(--s-9), 14vh, 11rem); max-width: 780px; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.4rem);
  color: #fff; text-wrap: balance;
}
.hero__tamil {
  font-family: var(--font-tamil); font-weight: 600;
  font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem);
  color: var(--gold-300); margin-bottom: var(--s-4);
}
.hero p.lead { color: rgba(255,248,231,.9); margin-top: var(--s-5); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7);
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,248,231,.22);
}
.hero__meta div strong {
  display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-300); line-height: 1;
}
.hero__meta div span { font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,248,231,.75); }

/* Page banner (interior pages) */
.page-hero { position: relative; isolation: isolate; background: var(--maroon-800); color: #fff; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(62,13,10,.78), rgba(62,13,10,.9));
}
.page-hero__inner { padding-block: var(--s-8) var(--s-8); max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); color: #fff; }
.page-hero p { margin-top: var(--s-4); color: rgba(255,248,231,.85); font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--gold-400); }

.breadcrumb { display: flex; gap: var(--s-2); font-size: .85rem; color: rgba(255,248,231,.7); margin-bottom: var(--s-4); }
.breadcrumb a { color: rgba(255,248,231,.9); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--events { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--events { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-400); }
.card h3 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: .99rem; }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-5);
  border-radius: 14px; background: linear-gradient(140deg, var(--maroon-700), var(--maroon-600));
  color: var(--gold-300);
}
.card__icon svg { width: 26px; height: 26px; }

/* Feature split */
.split { display: grid; gap: var(--s-8); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); } .split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); aspect-ratio: 4/3; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 58%; height: 58%;
  border: 2px solid var(--gold-400); border-radius: var(--radius-lg); z-index: -1;
}
.split__body h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); margin-bottom: var(--s-5); }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-6); }
.stats div { text-align: center; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem,1.6rem+2vw,3rem); color: var(--gold-400); line-height: 1; }
.stats span { display: block; margin-top: var(--s-2); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,248,231,.8); }

/* ---------- Event cards ---------- */
.event-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
/* When cards in a row stretch to equal height, give the extra space to the text, not the photo */
.event-card { grid-template-rows: auto 1fr; }
@media (min-width: 760px) { .event-card--wide { grid-template-columns: 44% 1fr; grid-template-rows: auto; } }
.event-card__media { position: relative; overflow: hidden; background: var(--cream-2); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform 500ms var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.04); }
.event-card__media--chess {
  display: grid; place-items: center; min-height: 220px; color: var(--gold-300);
  background-color: var(--maroon-800);
  background-image: repeating-conic-gradient(rgba(255,248,231,.07) 0 25%, transparent 0 50%);
  background-size: 56px 56px;
}
.event-card__media--chess svg { width: 120px; height: 120px; }
.event-card__body { padding: var(--s-6); display: flex; flex-direction: column; align-items: flex-start; }
/* Children of the flex column must not stretch to full width (badges especially) */
.event-card__body > * { max-width: 100%; }
.event-card__body > .badge { align-self: flex-start; }
.event-card__body > p, .event-card__body > .tamil { width: 100%; }
.event-card__body h3 { font-size: 1.35rem; margin-bottom: var(--s-2); }
.event-card__body .tamil { color: var(--maroon-600); font-size: .98rem; margin-bottom: var(--s-3); display: block; }
.event-card__body p { color: var(--text-muted); font-size: .98rem; }
.event-card__foot { margin-top: auto; padding-top: var(--s-4); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge--gold { background: rgba(220,167,28,.16); color: #7A5B05; }
.badge--maroon { background: rgba(120,32,26,.1); color: var(--maroon-700); }
.badge--green { background: rgba(30,110,70,.12); color: #1B5E43; }
.badge--orange { background: rgba(200,90,20,.12); color: #8A3B0A; }
.badge svg { width: 13px; height: 13px; }

.meta-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); font-size: .9rem; color: var(--text-muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 15px; height: 15px; color: var(--gold-700); flex: none; }

/* ---------- Timeline (annual calendar) ---------- */
.calendar { display: grid; gap: var(--s-4); }
.cal-item {
  display: grid; grid-template-columns: 92px 1fr; gap: var(--s-5); align-items: start;
  padding: var(--s-5) var(--s-6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 4px solid var(--gold-400);
  transition: border-left-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cal-item:hover { border-left-color: var(--maroon-700); box-shadow: var(--shadow-1); }
.cal-item__when {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--maroon-700); padding-top: 2px;
}
.cal-item h3 { font-size: 1.12rem; margin-bottom: var(--s-1); }
.cal-item p { margin: 0; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 620px) {
  .cal-item { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5); }
  .cal-item__when { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
}

/* ---------- Team ---------- */
.team-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5); }
.team-card__avatar {
  width: 92px; height: 92px; margin: 0 auto var(--s-4); border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--maroon-700), var(--maroon-500));
  color: var(--gold-300); font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
  border: 3px solid var(--gold-400);
}
img.team-card__avatar { display: block; object-fit: cover; background: var(--cream-2); }
.team-card h3 { font-size: 1.08rem; margin-bottom: 2px; text-wrap: balance; }
.team-card p { font-size: .87rem; color: var(--gold-700); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0; }

/* Term heading above a committee roster */
.term-label {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--maroon-800); margin: 0 0 var(--s-5);
}
.term-label span {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--maroon-700);
  padding: 4px 10px; border-radius: 999px; background: rgba(220,167,28,.22);
}
/* Keep short rows (e.g. two Directors) at the same card width as the five-across rows */
.team-grid--fill { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
/* Board of Directors follows the current EC row */
.team-grid + .term-label--board { margin-top: var(--s-7); }
/* Space successive terms apart in the past-committees block */
.past-terms .team-grid + .term-label { margin-top: var(--s-7); }

/* Constitution objectives (About page) */
.objectives {
  margin-top: var(--s-7); padding: var(--s-6) var(--s-6) var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold-400);
}
.objectives--flush { margin-top: 0; padding-top: var(--s-6); }
.objectives__head { font-size: 1.3rem; margin-bottom: var(--s-5); }
.objectives__head span {
  display: block; margin-top: 4px; font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700);
}
.objectives__list {
  margin: 0; padding: 0; list-style: none; counter-reset: obj;
  display: grid; gap: var(--s-4) var(--s-7); grid-template-columns: 1fr;
}
@media (min-width: 820px) { .objectives__list { grid-template-columns: 1fr 1fr; } }
.objectives__list li {
  counter-increment: obj; position: relative; padding-left: 44px; color: var(--ink-soft); font-size: .99rem;
}
.objectives__list li::before {
  content: counter(obj); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--maroon-700); color: var(--gold-300);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}

/* Past committees */
.past-terms { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--border); }
.governance-grid { grid-template-columns: 1fr; }
.governance-grid p { max-width: 72ch; }
.doc-link { margin: var(--s-6) 0 0; text-align: center; }
.doc-link__meta { font-size: .8rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.past-terms__head {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s-5);
}

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter-btn {
  min-height: 44px; padding: var(--s-2) var(--s-5);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
  font-size: .92rem; font-weight: 500; cursor: pointer; color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--primary); }
.filter-btn[aria-pressed="true"] { background: var(--maroon-700); border-color: var(--maroon-700); color: var(--on-primary); }

/* Albums: each card opens a Google Photos album */
.album-count { margin: calc(-1 * var(--s-3)) 0 var(--s-6); font-size: .92rem; color: var(--text-muted); }
.album-year + .album-year { margin-top: var(--s-8); }
.album-year__title {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--maroon-800); margin-bottom: var(--s-5);
}
.album-year__title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.album-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
@media (max-width: 480px) { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .album__body { padding: var(--s-4); } }

.album {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.album:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-400); }
.album__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.album:hover .album__cover img { transform: scale(1.05); }
/* Event label sitting on the photo; solid colours keep the text above 4.5:1 */
.album__chip {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #FFF8E7; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.album__chip svg { width: 15px; height: 15px; flex: none; }
.album--pongal    .album__chip { background: #8A4A08; }
.album--chithirai .album__chip { background: var(--maroon-700); }
.album--picnic    .album__chip { background: #2B6447; }
.album--sports    .album__chip { background: #1D4A68; }
.album--deepavali .album__chip { background: #4A1238; color: var(--gold-300); }


.album__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); }
.album__body h3 { font-size: 1.12rem; margin-bottom: 2px; }
.album__body .tamil { color: var(--maroon-600); font-size: .95rem; }
.album__cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-4);
  font-size: .92rem; font-weight: 600; color: var(--primary);
}
.album__cta svg, .album-feature .btn svg { width: 15px; height: 15px; }

/* Featured (latest) album */
.album-feature { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .album-feature { grid-template-columns: 1.1fr 1fr; } }
.album-feature__media { overflow: hidden; background: var(--cream-2); }
.album-feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 500ms var(--ease); }
.album-feature:hover .album-feature__media img { transform: scale(1.03); }
.album-feature__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--s-7) var(--s-6); }
.album-feature__body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: var(--s-3) 0 var(--s-1); }
.album-feature__body .tamil { color: var(--maroon-600); margin-bottom: var(--s-4); }
.album-feature__body p { color: var(--text-muted); }
.album-feature__body .btn { margin-top: var(--s-3); }

.gallery-note { margin-top: var(--s-8); text-align: center; color: var(--text-muted); font-size: .95rem; max-width: 62ch; margin-inline: auto; }

/* Visually hidden, still announced by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Sponsors (home page) ---------- */
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.sponsor-tier { text-align: center; }
.sponsor-tier + .sponsor-tier { margin-top: var(--s-7); }
.sponsor-tier__label {
  display: inline-block; margin-bottom: var(--s-4); padding: 6px 18px; border-radius: 6px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff;
}
.sponsor-tier__label--platinum   { background: #8A6508; }
.sponsor-tier__label--supporting { background: #1D3A68; }
.sponsor-tier__label--community  { background: #2B6447; }
.sponsor-tier__label--patron     { background: var(--maroon-700); }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5); }
.sponsor {
  margin: 0; width: min(100%, 250px); padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.sponsor--lg { width: min(100%, 380px); }
.sponsor__logo {
  display: grid; place-items: center; height: 120px; border-radius: var(--radius);
}
.sponsor--lg .sponsor__logo { height: 150px; }
.sponsor__logo img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.sponsor--lg .sponsor__logo img { max-height: 150px; }
.sponsor__img--boxed { border-radius: 6px; }
.sponsor-pair { display: grid; gap: var(--s-7) var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 820px) { .sponsor-pair { grid-template-columns: 1fr 1fr; } }
.sponsor-pair + .sponsor-tier { margin-top: var(--s-7); }
.sponsor-pair .sponsor-tier + .sponsor-tier { margin-top: 0; }
.sponsor figcaption { margin-top: var(--s-4); font-weight: 600; color: var(--ink); }
.patrons {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.patron {
  display: flex; align-items: center; gap: var(--s-3); text-align: left;
  padding: var(--s-3) var(--s-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.patron > svg { width: 20px; height: 20px; flex: none; color: var(--maroon-600); }
.patron strong { display: block; font-weight: 600; color: var(--ink); }
.patron small { display: block; margin-top: 2px; font-size: .8rem; color: var(--text-muted); line-height: 1.45; }
.sponsor-cta { margin: var(--s-7) 0 0; text-align: center; color: var(--text-muted); }
.sponsor-cta a { font-weight: 600; }
.sponsor-note { font-size: .93rem; padding: var(--s-3) var(--s-4); background: var(--cream-2); border-left: 3px solid var(--gold-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.sponsor-note a { font-weight: 600; white-space: nowrap; }

/* ---------- Sports winners (Events page) ---------- */
.results-year + .results-year { margin-top: var(--s-8); }
.results-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.results-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: var(--s-5) var(--s-5) var(--s-4);
}
.results-card__head { padding-bottom: var(--s-4); margin-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.results-card__head h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: var(--s-2) 0 2px; }
.results-card__fmt { font-size: .85rem; color: var(--text-muted); }
.result { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-3) 0; }
.result + .result { border-top: 1px dashed var(--border); }
.result__medal {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.result--gold   .result__medal { background: linear-gradient(140deg,#F6DC7E,#DCA71C); color: #4A3200; }
.result--silver .result__medal { background: linear-gradient(140deg,#EEF0F3,#B8BEC6); color: #2E3640; }
.result--bronze .result__medal { background: linear-gradient(140deg,#E8B48A,#B5703F); color: #3A1E0A; }
.result__label {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 2px;
}
.result--silver .result__label { color: #4F5A66; }
.result--bronze .result__label { color: #8A4A1F; }
.result__names { display: block; font-weight: 600; color: var(--ink); }
.results-grid--kids { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .results-grid--kids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .results-grid--kids { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cap {
  display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 5px; border-radius: 50%;
  background: var(--maroon-700); color: #FFF8E7; font-size: .75rem; font-weight: 700; vertical-align: 1px;
}
.cap--inline { margin: 0 3px 0 0; }
.roster-names li.is-captain { border-color: var(--maroon-600); }
.fixtures { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.fixture { padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--cream-2); }
.fixture--final { background: rgba(220,167,28,.16); border: 1px solid var(--gold-400); }
.fixture__stage { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.fixture__teams { display: block; margin-top: 2px; font-weight: 600; color: var(--ink); }
.fixture__teams em { font-style: normal; font-weight: 500; font-size: .85rem; color: var(--text-muted); margin: 0 4px; }
.results-pending { margin: var(--s-3) 0 var(--s-2); color: var(--text-muted); font-size: .95rem; }
.results-card--pending { border-style: dashed; }
.results-sub {
  margin: var(--s-8) 0 var(--s-4); font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kid-event { padding: var(--s-3) 0; }
.kid-event + .kid-event { border-top: 1px dashed var(--border); }
.kid-event h5 { margin: 0 0 var(--s-2); font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--maroon-700); }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.podium li { display: flex; align-items: center; gap: var(--s-3); font-size: .95rem; color: var(--ink); }
.podium__pos {
  flex: none; width: 40px; padding: 2px 0; border-radius: 6px; text-align: center;
  font-size: .78rem; font-weight: 700; color: #2E3640; background: #E7E9EC;
}
.podium__p1 .podium__pos { background: #F2D27A; color: #4A3200; }
.podium__p3 .podium__pos { background: #EBC6A6; color: #3A1E0A; }
.roster-names { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.roster-names li {
  padding: 3px 10px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--cream-2); border: 1px solid var(--border);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: var(--s-2); }
.field .req { color: var(--maroon-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--gold-500); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--maroon-600); box-shadow: 0 0 0 3px rgba(120,32,26,.14);
}
.field .help { display: block; margin-top: var(--s-2); font-size: .85rem; color: var(--text-muted); }
.field .error { display: none; margin-top: var(--s-2); font-size: .87rem; color: #A02218; font-weight: 500; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #A02218; }
.field[data-invalid="true"] .error { display: flex; align-items: center; gap: 6px; }
.field .error svg { width: 15px; height: 15px; flex: none; }

.form-status {
  display: none; margin-top: var(--s-5); padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-sm); font-weight: 500;
}
.form-status[data-show="true"] { display: flex; align-items: flex-start; gap: var(--s-3); }
.form-status--ok { background: rgba(30,110,70,.1); color: #14523A; border: 1px solid rgba(30,110,70,.25); }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* ---------- Contact details ---------- */
.contact-list { display: grid; gap: var(--s-5); list-style: none; }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-list__icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: rgba(120,32,26,.08); color: var(--maroon-700);
}
.contact-list__icon svg { width: 21px; height: 21px; }
.contact-list dt { font-weight: 600; font-size: .93rem; margin-bottom: 2px; }
.contact-list dd { margin: 0; color: var(--text-muted); font-size: .97rem; overflow-wrap: anywhere; }
.contact-list li > div { min-width: 0; }
.card--roomy { padding: var(--s-7); }
@media (max-width: 560px) { .card--roomy { padding: var(--s-5); } }
.contact-list dd a { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
}
.faq details[open] { border-color: var(--gold-400); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-weight: 600; cursor: pointer; list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--gold-700); border-bottom: 2px solid var(--gold-700);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { margin: var(--s-3) 0 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Prose ---------- */
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin: var(--s-8) 0 var(--s-4); }
.prose h3 { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-3); }
.prose > :first-child { margin-top: 0; }
.prose p { max-width: var(--measure); color: var(--ink-soft); }
.prose ul { padding-left: 0; list-style: none; max-width: var(--measure); }
.prose ul li { position: relative; padding-left: var(--s-6); margin-bottom: var(--s-3); color: var(--ink-soft); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-400); border: 1.5px solid var(--maroon-600);
}

blockquote {
  margin: var(--s-6) 0; padding: var(--s-5) var(--s-6);
  border-left: 4px solid var(--gold-400); background: var(--cream-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--maroon-800); margin: 0; }
blockquote cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: .87rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Gallery strip (home) ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.strip a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; box-shadow: var(--shadow-1); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.strip a:hover img { transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600)); color: #fff; }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); color: #fff; }
.cta-band p { max-width: 58ch; margin: var(--s-4) auto var(--s-6); color: rgba(255,248,231,.85); font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-900); color: rgba(255,248,231,.72); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-6); } }
.site-footer h3 { color: var(--gold-300); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s-4); font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: var(--s-3); }
.site-footer a { color: rgba(255,248,231,.78); text-decoration: none; font-size: .95rem; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-brand { display: flex; gap: var(--s-4); align-items: flex-start; }
.footer-brand img { width: 62px; height: 62px; flex: none; }
.footer-brand p { font-size: .93rem; margin: var(--s-3) 0 0; max-width: 38ch; }
.footer-brand strong { font-family: var(--font-display); color: #FFF8E7; font-size: 1.1rem; }
.footer-brand .tamil { display: block; color: var(--gold-300); font-size: .9rem; }
.social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255,248,231,.24); border-radius: 50%;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: rgba(255,248,231,.12); border-color: var(--gold-400); }
.social svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,248,231,.16);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: .87rem;
}

/* ---------- Scroll reveal ---------- */
/* Content is visible by default; the entrance animation is only applied when
   JavaScript is running, so a script failure can never leave the page blank. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal[data-visible="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
