/* ==========================================================================
   Madhya Pradesh Ball Badminton Association
   Global stylesheet
   Palette taken from the association seal: vermilion red on white.
   ========================================================================== */

:root {
  --red: #d81f26;
  --red-dark: #a80f1c;
  --red-darker: #7d0a14;
  --red-soft: #fdecec;
  --red-line: #f3c9cb;

  --ink: #191a1c;
  --ink-soft: #4a4d52;
  --ink-mute: #74787f;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;

  --gold: #c99700;

  --shadow-sm: 0 1px 2px rgba(16, 18, 22, .06), 0 2px 8px rgba(16, 18, 22, .05);
  --shadow-md: 0 4px 14px rgba(16, 18, 22, .09), 0 12px 32px rgba(16, 18, 22, .07);
  --shadow-red: 0 8px 24px rgba(216, 31, 38, .28);

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;

  --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* The mobile menu panel parks itself off the right edge. Without this it
   would add a horizontal scrollbar to every page. `clip` is used where it
   is supported because, unlike `hidden`, it does not turn the element into
   a scroll container and so leaves the sticky header working. */
html { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

.section { padding: 4.4rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding: 2.8rem 0; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--red-darker);
  color: #ffd9db;
  font-size: .84rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  align-items: center; justify-content: space-between;
  padding: .5rem 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; align-items: center; }
.topbar__contact span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 15px; height: 15px; flex: none; }

.social { display: flex; align-items: center; gap: .55rem; }
.social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  transition: background .18s ease, transform .18s ease;
}
.social a:hover { background: #fff; color: var(--red-darker); transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.brand__text strong {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.02rem; line-height: 1.22; color: var(--red-dark); letter-spacing: -.01em;
}
.brand__text span { display: block; font-size: .74rem; color: var(--ink-mute); letter-spacing: .09em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .55rem .78rem; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: .93rem;
  text-decoration: none; white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--red-soft); color: var(--red-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; background: var(--red-soft); }

.nav__cta {
  background: var(--red); color: #fff !important; font-weight: 600 !important;
  padding: .58rem 1.05rem !important; margin-left: .4rem;
  box-shadow: var(--shadow-red);
}
.nav__cta:hover { background: var(--red-dark) !important; color: #fff !important; }
/* the CTA keeps its solid red look even when it is the current page */
.nav a.nav__cta[aria-current="page"] { background: var(--red); color: #fff !important; }

.burger {
  display: none; width: 44px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; padding: 0;
  place-items: center; color: var(--red-dark);
}
.burger svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; font-family: var(--sans);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red-dark); background: #fff; }
.btn--outline:hover { background: var(--red-soft); color: var(--red-dark); }
.btn--sm { padding: .5rem 1rem; font-size: .86rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, var(--red-darker) 0%, var(--red-dark) 45%, var(--red) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 4.6rem 0 4.9rem;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28);
  padding: .35rem .95rem; border-radius: 999px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 1.15rem;
}
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero h1 em { font-style: normal; color: #ffd66b; }
.hero__lead { font-size: 1.08rem; color: rgba(255,255,255,.92); max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__seal { display: grid; place-items: center; }
.hero__seal img {
  width: min(330px, 78vw); border-radius: 50%;
  background: #fff; padding: 12px;
  box-shadow: 0 22px 60px rgba(0,0,0,.32);
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-top: -2.4rem; position: relative; z-index: 3; box-shadow: var(--shadow-md);
}
.stats div { background: #fff; padding: 1.5rem 1.1rem; text-align: center; }
.stats strong {
  display: block; font-family: var(--display); font-size: 1.85rem;
  color: var(--red); line-height: 1; margin-bottom: .35rem;
}
.stats span { font-size: .82rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Section headings ---------- */
.sec-head { max-width: 46rem; margin-bottom: 2.4rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--red); font-weight: 700;
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .55rem;
}
.sec-head p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red-line); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 1rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 600; font-size: .9rem; color: var(--red); }

/* ---------- Event cards ---------- */
.event {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.2rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm);
}
.event__date {
  background: var(--red-soft); border-radius: var(--radius-sm);
  text-align: center; padding: .7rem .4rem; align-self: start;
}
.event__date strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--red-dark); line-height: 1; }
.event__date span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 600; }
.event__body h3 { margin-bottom: .3rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .88rem; color: var(--ink-mute); margin-bottom: .6rem; }
.event__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.event__meta svg { width: 15px; height: 15px; }
.event__body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .7rem; }

.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge--open { background: #e7f6ec; color: #1a7f3c; }
.badge--soon { background: #fff4e0; color: #a56a00; }
.badge--closed { background: #f0f1f3; color: #6b6f76; }
.badge--new { background: var(--red); color: #fff; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: .48rem 1.05rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .89rem; font-weight: 500;
  transition: all .16s ease;
}
.filters button:hover { border-color: var(--red-line); color: var(--red-dark); }
.filters button.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-alt);
  cursor: pointer; aspect-ratio: 4 / 3; margin: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff; font-size: .88rem; font-weight: 500;
}
.shot figcaption small { display: block; font-weight: 400; opacity: .8; font-size: .78rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(12,12,14,.93); padding: 2rem;
  place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; object-fit: contain; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 1rem; font-size: .95rem; }

/* Gallery videos ---------------------------------------------------- */
.shot__blank { width: 100%; height: 100%; background: linear-gradient(135deg, #2a2a30, #14141a); }
.shot__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12, 12, 14, .62); color: #fff;
  border: 2px solid rgba(255, 255, 255, .85);
  transition: background .25s ease, transform .25s ease;
  pointer-events: none;
}
.shot__play svg { margin-left: 3px; }
.shot--video:hover .shot__play { background: var(--red); transform: translate(-50%, -50%) scale(1.08); }
.lightbox__video {
  width: min(92vw, 1000px); aspect-ratio: 16 / 9; max-height: 80vh;
  border: 0; border-radius: 8px; background: #000;
}
.lightbox [hidden] { display: none !important; }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 1.5rem; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 1.6rem; line-height: 1;
}
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ---------- Documents / circular list ---------- */
.doc-list { display: grid; gap: .85rem; }
.doc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.doc:hover { border-color: var(--red-line); box-shadow: var(--shadow-md); }
.doc__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); flex: none;
}
.doc__icon svg { width: 21px; height: 21px; }
.doc h3 { font-size: 1rem; margin-bottom: .2rem; }
.doc__meta { font-size: .84rem; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
.doc__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.doc__meta svg { width: 15px; height: 15px; flex: none; }

/* ---------- Heritage timeline (BBFI office bearers) ---------- */
.timeline { display: grid; gap: 1rem; }
.tl {
  display: grid; grid-template-columns: 46px 1fr; gap: 1.2rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tl:hover { border-color: var(--red-line); box-shadow: var(--shadow-md); }
.tl--current { border-left: 4px solid var(--red); }
.tl__num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red-dark);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.tl--current .tl__num { background: var(--red); color: #fff; }
.tl__body dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.tl__body dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); padding-top: .12rem;
}
.tl__body dd { margin: 0; font-weight: 600; color: var(--ink); }
.tl__body dd.is-unknown { font-weight: 500; color: var(--ink-mute); font-style: italic; }
.tl__note { margin: .7rem 0 0; font-size: .84rem; color: var(--ink-mute); }

/* The year, then the people who held office during it. */
.tl__year {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .7rem;
}
.tl__people { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.tl__person { display: flex; align-items: center; gap: .7rem; }
.tl__photo {
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex: none;
  object-fit: cover; display: grid; place-items: center;
}
.tl__photo--initials {
  background: linear-gradient(140deg, var(--red), var(--red-darker));
  color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem;
}
.tl__name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.tl__role {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red);
}

/* ---------- Fact strip (the sport at a glance) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
}
.fact strong { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--red-dark); line-height: 1.2; }
.fact span { display: block; margin-top: .25rem; font-size: .86rem; color: var(--ink-soft); }

/* ---------- Team ---------- */
.person {
  text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.person__avatar {
  /* A large square portrait. aspect-ratio keeps it square at any width, so
     the photograph stays uncropped by the layout as the card narrows. */
  width: min(230px, 100%); aspect-ratio: 1; border-radius: var(--radius-sm);
  margin: 0 auto 1.15rem;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, var(--red), var(--red-darker));
  color: #fff; font-family: var(--display); font-size: 3.4rem; font-weight: 700;
  box-shadow: var(--shadow-red);
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.person__role { color: var(--red); font-weight: 600; font-size: .87rem; text-transform: uppercase; letter-spacing: .06em; }
.person__place { color: var(--ink-mute); font-size: .88rem; margin: .3rem 0 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,31,38,.13);
}
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--ink-mute); font-size: .82rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.note {
  background: var(--red-soft); border: 1px solid var(--red-line);
  border-left: 4px solid var(--red); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft);
}
.note strong { color: var(--red-dark); }
.note > :last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); flex: none;
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item h3 { font-size: .95rem; margin-bottom: .15rem; }
.contact-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Page banner ---------- */
.page-head {
  background: linear-gradient(135deg, var(--red-darker), var(--red));
  color: #fff; padding: 3.1rem 0 3.3rem; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .55;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: rgba(255,255,255,.9); max-width: 46rem; margin: 0; }
.crumbs { font-size: .84rem; color: rgba(255,255,255,.78); margin-bottom: .9rem; }
.crumbs a { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff; border-radius: var(--radius); padding: 2.8rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.8rem; align-items: center;
  box-shadow: var(--shadow-red);
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: #131417; color: #b6b9bf; padding: 3.4rem 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer a { color: #b6b9bf; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.footer__brand strong { color: #fff; font-family: var(--display); display: block; line-height: 1.25; }
.footer__brand span { font-size: .78rem; color: #8b8f96; }
.footer .social a { background: rgba(255,255,255,.09); color: #fff; }
.footer .social a:hover { background: var(--red); }
.footer__bottom {
  border-top: 1px solid #26282d; padding: 1.3rem 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #80848b;
}

/* ---------- Utility ---------- */
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.hide { display: none !important; }

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(310px, 84vw);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 5.2rem 1.1rem 2rem; gap: .25rem;
    box-shadow: -12px 0 40px rgba(0,0,0,.16);
    transform: translateX(100%); transition: transform .26s ease;
    overflow-y: auto; z-index: 120;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: .8rem .9rem; font-size: 1rem; border-radius: 9px; }
  .nav__cta { margin: .6rem 0 0; justify-content: center; display: flex; }
  .burger { display: grid; z-index: 130; }
  .nav-backdrop {
    /* must stay below the header, whose stacking context holds the menu panel */
    position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 90;
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }

  /* backdrop-filter would make the header a containing block for the fixed
     menu panel, trapping it inside the header box — so it is dropped here. */
  .header { backdrop-filter: none; background: #fff; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 3.2rem 0 3.6rem; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__seal { order: -1; }
  .hero__seal img { width: min(220px, 60vw); }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 3rem 0; }
  .topbar__inner { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -1.6rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.4rem; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .event { grid-template-columns: 1fr; }
  .event__date { display: inline-flex; gap: .5rem; align-items: baseline; padding: .45rem .9rem; }
  .tl { grid-template-columns: 1fr; gap: .8rem; }
  .tl__body dl { grid-template-columns: 1fr; gap: .1rem; }
  .tl__body dd { margin-bottom: .5rem; }
  .doc { grid-template-columns: auto 1fr; }
  .doc .btn { grid-column: 1 / -1; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand img { width: 48px; height: 48px; }
  .brand__text strong { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .header, .footer, .btn, .filters { display: none !important; }
  body { font-size: 12pt; }
}


/* ==========================================================================
   Live forms — validation states, submission feedback, loading placeholders
   ========================================================================== */

/* Honeypot: invisible to people, tempting to simple bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form--wide { display: grid; gap: 1.15rem; }

.field__error { color: var(--red-dark); font-size: .84rem; font-weight: 500; }
.field__error:empty { display: none; }

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: var(--red);
  background: #fffafa;
}
.field--invalid > label { color: var(--red-dark); }

.field--check label {
  font-weight: 400; font-size: .92rem; line-height: 1.55;
  display: flex; gap: .65rem; align-items: flex-start; cursor: pointer;
}
.field--check input { width: auto; flex: none; margin-top: .3rem; accent-color: var(--red); }

input[type="file"] {
  padding: .55rem; background: #fff; cursor: pointer;
  font-size: .9rem;
}
input[type="file"]::file-selector-button {
  font: inherit; font-size: .86rem; font-weight: 600;
  margin-right: .8rem; padding: .45rem .9rem; cursor: pointer;
  border: 1px solid var(--red-line); border-radius: 7px;
  background: var(--red-soft); color: var(--red-dark);
}

.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__busy { color: var(--ink-mute); font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.note--error { background: #fff5f5; border-color: var(--red-line); border-left-color: var(--red); }
.note--big { padding: 1.7rem 1.8rem; }

/* Confirmation shown in place of a submitted form. */
.success-panel {
  background: #f3fbf6; border: 1px solid #c2e6d0; border-left: 4px solid #1a7f3c;
  border-radius: var(--radius); padding: 2.2rem 1.8rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.success-panel h3 { margin: 0 0 .3rem; color: #14682f; }
.success-panel__icon { width: 54px; height: 54px; margin: 0 auto 1rem; color: #1a7f3c; }
.success-panel__icon svg { width: 100%; height: 100%; }
.success-panel__ref {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: .05em;
  color: #14682f; background: #fff; border: 1px dashed #9ed3b2;
  border-radius: var(--radius-sm); padding: .7rem 1rem;
  margin: .2rem auto 1rem; display: inline-block;
}
.success-panel p { color: var(--ink-soft); }

/* Placeholder while the live content is still loading. */
body.is-loading [data-upcoming]:empty::after,
body.is-loading [data-circulars]:empty::after,
body.is-loading [data-gallery]:empty::after,
body.is-loading [data-team]:empty::after,
body.is-loading [data-reg-form]:empty::after {
  content: "Loading…";
  display: block; padding: 2rem; text-align: center;
  color: var(--ink-mute); font-size: .92rem;
}
