/* ============================================================
   TEXAS ACADEMIC DECATHLON — Global Stylesheet
   ============================================================ */

/* ---- Design Tokens ---- */
/* Deep ink-navy + burnished antique gold — a richer, more storied palette
   than the original bright navy/amber pairing (think old library, brass,
   and parchment rather than a modern SaaS blue/orange). */
:root {
  --navy:        #010C4A;
  --navy-dark:   #010C4A;
  --navy-mid:    #010C4A;
  --navy-light:  #010C4A;
  --gold:        #A97F1F;
  --gold-light:  #C9A544;
  --gold-dark:   #785B16;
  --gold-pale:   #F1E6C8;
  --red:         #8C1B2C;
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-300:    #D1D5DB;
  --gray-400:    #9CA3AF;
  --gray-500:    #6B7280;
  --gray-600:    #4B5563;
  --gray-700:    #374151;
  --gray-800:    #1F2937;
  --gray-900:    #111827;

  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container:   1200px;
  --nav-h:       70px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:    140ms;
  --dur-base:    240ms;
  --dur-slow:    380ms;

  --r-s:  8px;
  --r-m:  14px;
  --r-l:  20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Soft, brand-tinted shadows — replace flat black shadows so surfaces
     feel like they're glowing out of the background rather than cut from it */
  --sh-s:  0 2px 10px rgba(15,36,64,0.055);
  --sh-m:  0 10px 30px rgba(15,36,64,0.08);
  --sh-l:  0 20px 48px rgba(15,36,64,0.11);
  --sh-xl: 0 30px 70px rgba(15,36,64,0.16);

  /* Glass/soft-surface tokens used to blend cards into their section
     background instead of sitting on top of it as opaque rectangles */
  --surface: rgba(255,255,255,0.72);
  --surface-edge: rgba(255,255,255,0.9);
  --surface-navy: rgba(255,255,255,0.07);
  --surface-navy-edge: rgba(255,255,255,0.14);
  --hairline: rgba(15,36,64,0.08);
  --hairline-navy: rgba(255,255,255,0.12);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Continuous ambient wash behind the whole page — a fixed field of soft,
   brand-colored light that every section sits on top of. Sections use
   translucent tints (not flat opaque fills) so this glow reads through
   them, which is what stitches the page together instead of reading as a
   stack of independently-colored blocks. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 620px at 8% -4%,  rgba(169,127,31,0.10), transparent 62%),
    radial-gradient(ellipse 1000px 720px at 96% 22%, rgba(1,12,74,0.08), transparent 60%),
    radial-gradient(ellipse 800px 640px at 12% 70%,  rgba(191,10,48,0.045), transparent 58%),
    radial-gradient(ellipse 900px 700px at 90% 96%,  rgba(169,127,31,0.07), transparent 60%);
  pointer-events: none;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ---- Skip Link (accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0 0 var(--r-s) var(--r-s);
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 0; }

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; position: relative; }
.section--sm { padding: 3.5rem 0; }
/* Translucent tints rather than flat fills — the ambient body wash shows
   through so a "gray section" reads as a soft change in light, not a
   hard-edged colored panel dropped onto the page. */
.section--gray   {
  background:
    linear-gradient(180deg, rgba(249,250,251,0) 0, rgba(249,250,251,0.85) 4%, rgba(249,250,251,0.85) 96%, rgba(249,250,251,0) 100%);
}
.section--navy   { background: linear-gradient(180deg, var(--navy-dark), var(--navy) 45%, var(--navy-mid)); color: var(--white); }
.section--dark   { background: linear-gradient(180deg, var(--navy-dark), #010C4A); color: var(--white); }
.section--gold   { background: linear-gradient(180deg, rgba(241,230,200,0) 0, rgba(241,230,200,0.9) 4%, rgba(241,230,200,0.9) 96%, rgba(241,230,200,0) 100%); }

.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.section-label--white { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 620px;
  line-height: 1.72;
}
.section-subtitle--white { color: rgba(255,255,255,0.72); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-s);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 4px 20px rgba(169,127,31,0.38); transform: translateY(-1px); }

.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--gold-pale); border-color: var(--gold-pale); transform: translateY(-1px); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-1px); }

.btn-sm  { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
.btn-lg  { padding: 0.9rem 2.2rem; font-size: 0.95rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: 0 1px 0 var(--hairline);
  transition: box-shadow var(--dur-base) var(--ease);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(10,20,40,0.12); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
/* The nav uses the shared .container (max-width:1200px) which leaves it
   stranded in the middle of the bar on wide screens. Let it scale with
   the viewport instead so the brand and Home button track the actual
   screen edges. */
.navbar .container {
  max-width: none;
  width: 100%;
  padding: 0 clamp(1.25rem, 3vw, 3.5rem);
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-star { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-tx {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Nav list */
.nav-menu { display: flex; align-items: center; }
.nav-list  { display: flex; align-items: center; gap: 0.1rem; }
.nav-item  { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(1,12,74,0.72);
  border-radius: var(--r-s);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: rgba(1,12,74,0.07); }

.nav-chevron { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-base) var(--ease); flex-shrink: 0; }
.has-dropdown:hover .nav-chevron,
.has-dropdown.open  .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  /* Flush against the link (no gap) so the cursor never crosses a dead
     zone between the link and the menu while moving down into it — that
     gap was closing the menu before it could be reached. */
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: var(--sh-l);
  padding: 0.4rem;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  z-index: 200;
}
/* Invisible bridge covering the visual margin above, so hovering through
   that space keeps the dropdown's own hit area intact. */
.dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -6px;
  height: 6px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open  .dropdown-menu { opacity: 1; transform: translateY(0); pointer-events: all; }

.dropdown-menu a {
  display: block;
  padding: 0.56rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--r-s);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--navy); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 0.25rem 0.5rem; }

/* CTA button in nav */
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--r-s) !important;
  padding: 0.45rem 0.9rem !important;
  margin-left: 0.25rem;
}
.nav-cta:hover { background: #16215c !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-s);
  transition: background var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(1,12,74,0.07); }
.ham, .ham::before, .ham::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.ham { position: relative; }
.ham::before, .ham::after { content: ''; position: absolute; left: 0; }
.ham::before { top: -7px; }
.ham::after  { top:  7px; }
.nav-toggle.open .ham { background: transparent; }
.nav-toggle.open .ham::before { transform: rotate(45deg);  top: 0; }
.nav-toggle.open .ham::after  { transform: rotate(-45deg); top: 0; }

/* ---- Hero / Slider ---- */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  overflow: hidden;
  background: var(--navy-dark);
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(1,12,74,0.55) 0%, transparent 65%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  z-index: 0;
}
/* Subtle lone-star watermark */
.hero::after {
  content: '';
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,4 61.8,36.2 97.6,36.2 68.1,57.2 79.4,89.4 50,69 20.6,89.4 31.9,57.2 2.4,36.2 38.2,36.2' fill='none' stroke='rgba(169%2C127%2C31%2C0.08)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 3; }

/* ---- Hero photo carousel (state-champion team photos — swipe/scroll or auto-advance) ---- */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: saturate(0.92) contrast(1.02) brightness(0.92);
}
/* These two photos crop heads at the default center position — bias the
   crop toward the top of the frame so faces stay in view. */
.hero-carousel-slide:first-child img,
.hero-carousel-slide:last-child img {
  object-position: 50% 8%;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hero-carousel-arrow:hover { opacity: 1; }
.hero-carousel-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-carousel-arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.hero-carousel-arrow svg {
  width: 14px; height: 34px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.hero-carousel-arrow--prev { left: 1rem; }
.hero-carousel-arrow--next { right: 1rem; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Fades all the way to a flat, opaque navy-dark right at the bottom edge
     so the photo blends seamlessly into the wave separator below instead
     of cutting hard from "photo" to "flat color band". */
  background:
    linear-gradient(180deg, rgba(8,15,30,0.5) 0%, rgba(8,15,30,0.22) 45%, rgba(8,15,30,0.6) 82%, var(--navy-dark) 100%),
    linear-gradient(90deg, rgba(8,15,30,0.35), transparent 30%, transparent 70%, rgba(8,15,30,0.35));
}

.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 3rem 0; }
.hero-content--center { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-content--center .hero-desc { margin-left: auto; margin-right: auto; }
.hero-content--center .hero-actions { justify-content: center; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  line-height: 1.72;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ---- Quick-links Cards ---- */
.quick-links {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(248,249,250,0) 0, rgba(248,249,250,0.9) 8%, rgba(248,249,250,0.9) 92%, rgba(248,249,250,0) 100%);
}
.ql-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ql-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--r-l);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--sh-s);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.ql-card:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }
/* Gradients instead of flat fills so each tile has its own internal
   light-to-dark flow rather than reading as a single pasted color swatch */
.ql-card--coaches    { background: linear-gradient(150deg, var(--navy-mid), var(--navy) 70%); color: var(--white); }
.ql-card--students   { background: linear-gradient(150deg, var(--gold-light), var(--gold) 70%); color: var(--white); }
.ql-card--volunteers { background: linear-gradient(150deg, var(--navy-light), var(--navy-mid) 70%); color: var(--white); }
.ql-card--alumni     { background: linear-gradient(150deg, var(--gray-700), var(--gray-800) 70%); color: var(--white); }

.ql-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.ql-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.ql-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.ql-desc  { font-size: 0.825rem; opacity: 0.8; line-height: 1.55; margin-bottom: 1.25rem; }

.ql-arrow {
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.ql-card:hover .ql-arrow { background: rgba(255,255,255,0.28); transform: translateX(4px); }
.ql-arrow svg { width: 15px; height: 15px; stroke: var(--white); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- News / Announcements ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  border-radius: var(--r-l);
  padding: 1.75rem;
  box-shadow: var(--sh-s);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--sh-m); }

.news-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: var(--r-full);
  margin-bottom: 0.9rem;
  width: fit-content;
}
/* Muted, jewel-toned badges on warm parchment rather than bright SaaS
   pastels — keeps accent colors in the same "old library" family as the
   navy/gold brand instead of clashing candy tones. */
.badge--result   { background: #DEE7D6; color: #365B2E; }
.badge--announce { background: #DEE4EF; color: #1E3A6E; }
.badge--update   { background: var(--gold-pale); color: var(--gold-dark); }
.badge--deadline { background: #EFDEDD; color: var(--red); }

.news-date   { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 0.4rem; }
.news-title  { font-family: var(--font-display); font-size: 0.975rem; font-weight: 700; color: var(--gray-800); line-height: 1.4; margin-bottom: 0.65rem; }
.news-excerpt { font-size: 0.875rem; color: var(--gray-500); line-height: 1.62; margin-bottom: 1.25rem; flex-grow: 1; }

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
  transition: color var(--dur-fast) var(--ease);
}
.news-link:hover { color: var(--gold); }
.news-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease); }
.news-link:hover svg { transform: translateX(3px); }

/* ---- About Section ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-grid--medals { grid-template-columns: 1.35fr 1fr; }

.about-centered { max-width: 740px; margin: 0 auto; text-align: center; }
.about-torch { width: 92px; height: auto; margin: 0 auto 1.25rem; display: block; }
.about-centered .section-label { text-align: center; }
.about-centered .section-title { margin-bottom: 1.25rem; }

/* Medal cluster (podium arrangement: gold centered/raised, silver + bronze flanking) */
.medal-cluster { display: flex; align-items: flex-end; justify-content: flex-end; gap: 1.75rem; }
.medal-icon { width: 96px; height: 134px; filter: drop-shadow(0 10px 20px rgba(1,12,74,0.22)); }
.medal-cluster-item--gold .medal-icon { width: 132px; height: 185px; }
.medal-cluster-item--gold { margin-bottom: 18px; }

.medal-ribbon-a { fill: var(--navy); }
.medal-ribbon-b { fill: var(--red); }
.medal-disc-inner { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }

.medal-icon--gold .medal-disc { fill: var(--gold); stroke: var(--gold-dark); stroke-width: 2; }
.medal-icon--gold .medal-star { fill: var(--gold-pale); }

.medal-icon--silver .medal-disc { fill: #C7CBD3; stroke: #8B909A; stroke-width: 2; }
.medal-icon--silver .medal-star { fill: #EEF0F3; }

.medal-icon--bronze .medal-disc { fill: #BE7F45; stroke: #8A5A2A; stroke-width: 2; }
.medal-icon--bronze .medal-star { fill: #E9C6A0; }

.about-subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.subject-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.875rem;
  background: linear-gradient(90deg, rgba(169,127,31,0.08), rgba(169,127,31,0.02) 70%);
  border-radius: var(--r-s);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: inset 2px 0 0 var(--gold);
  transition: background var(--dur-fast) var(--ease);
}
.subject-item:hover { background: linear-gradient(90deg, rgba(169,127,31,0.16), rgba(169,127,31,0.04) 70%); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  border-radius: var(--r-l);
  padding: 1.75rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--sh-s);
}
.stat-card:nth-child(1) { background: linear-gradient(150deg, var(--navy-light), var(--navy) 75%); }
.stat-card:nth-child(2) { background: linear-gradient(150deg, var(--gold-light), var(--gold) 75%); margin-top: 1.5rem; }
.stat-card:nth-child(3) { background: linear-gradient(150deg, var(--navy-light), var(--navy-mid) 75%); margin-top: -1.5rem; }
.stat-card:nth-child(4) { background: linear-gradient(150deg, var(--gray-600), var(--gray-800) 75%); }

.stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 0.3rem; }
.stat-label  { font-size: 0.8rem; opacity: 0.85; font-weight: 500; }

/* ---- Welcome Messages ---- */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.welcome-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--sh-m);
  border: 1px solid var(--hairline);
}
.welcome-avatar {
  width: 68px; height: 68px;
  border-radius: var(--r-full);
  background: linear-gradient(150deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.1rem;
  overflow: hidden;
  box-shadow: var(--sh-s);
}
.welcome-quote {
  font-size: 0.975rem;
  color: var(--gray-600);
  line-height: 1.8;
  font-style: italic;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 1.25rem;
}
.welcome-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0.15em; bottom: 0.15em;
  width: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--gold), transparent);
}
.welcome-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--gray-800); }
.welcome-role { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.15rem; }

/* ---- Theme Banner ---- */
.theme-banner-wrap {
  position: relative;
  background: url('../mapbackground.png');
  background-size: cover;
  background-position: center;
  image-rendering: -webkit-optimize-contrast;
}
.theme-banner-wrap .wave-sep { background: transparent; }
.theme-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.theme-content { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.theme-content::before {
  content: '';
  position: absolute;
  inset: -3rem -4rem;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.12) 72%, transparent 88%);
  filter: blur(18px);
}
.theme-year { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-bottom: 0.65rem; }
.theme-headline { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.12; text-shadow: 0 2px 16px rgba(0,0,0,0.55); margin-bottom: 0.5rem; }
.theme-headline span { color: var(--gold-light); }
.theme-subtitle { font-family: var(--font-display); font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 600; font-style: italic; color: rgba(255,255,255,0.9); text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-bottom: 1.4rem; }
.theme-body { font-size: 1rem; color: rgba(255,255,255,0.9); text-shadow: 0 1px 8px rgba(0,0,0,0.5); line-height: 1.72; margin-bottom: 2rem; }

/* ---- Volunteer CTA Strip ---- */
.vol-cta {
  background: linear-gradient(180deg, rgba(249,250,251,0) 0, rgba(249,250,251,0.9) 12%, rgba(249,250,251,0.9));
  padding: 4rem 0;
}
.vol-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
  border-radius: var(--r-xl);
  padding: 2.5rem 3rem;
  box-shadow: var(--sh-m);
  border: 1px solid var(--hairline);
}
.vol-roles { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1rem; }
.role-chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, rgba(169,127,31,0.14), rgba(169,127,31,0.06));
  color: var(--gray-600);
  border-radius: var(--r-full);
}

/* ---- Page Header (inner pages) ---- */
.page-header {
  margin-top: var(--nav-h);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: max(1.5rem, calc((100% - var(--container)) / 2 + 3rem));
  top: 50%;
  transform: translateY(-50%);
  width: 280px; height: 280px;
  background-image: url("../img/txad-logo-icon-gold.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header-label { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.6rem; display: block; }
.page-header-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 800; color: var(--white); margin-bottom: 0.7rem; }
.page-header-desc  { font-size: 1rem; color: rgba(255,255,255,0.72); max-width: 580px; line-height: 1.68; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.48); margin-bottom: 1.4rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.bc-sep { opacity: 0.35; }

/* ---- Generic Card ---- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  border-radius: var(--r-l);
  padding: 2rem;
  box-shadow: var(--sh-s);
  border: 1px solid var(--hairline);
}
.card-header-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(150deg, var(--gold-pale), rgba(241,230,200,0.5));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-header-icon svg { width: 22px; height: 22px; stroke: var(--gold-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.card-body  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.68; }

/* Info list inside cards — divider fades at each end instead of a hard
   full-width rule, so rows blend into one another */
.info-list { margin-top: 1.25rem; }
.info-item {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0;
  font-size: 0.875rem; color: var(--gray-700);
  border-bottom: none;
  background: linear-gradient(90deg, transparent, var(--hairline) 15%, var(--hairline) 85%, transparent) bottom / 100% 1px no-repeat;
}
.info-item:last-child { background: none; }
.info-item svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.info-label { font-weight: 600; color: var(--gray-800); margin-right: 0.3rem; }

/* Download list */
.download-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.1rem;
  background: linear-gradient(135deg, rgba(249,250,251,0.9), rgba(243,244,246,0.6));
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.download-item:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--navy); }
.download-item svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }
.download-item .dl-name { flex-grow: 1; }
.download-item .dl-type { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); }

/* ---- Tabs ---- */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
  gap: 0.15rem;
}
.tab-btn {
  padding: 0.7rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  border-radius: var(--r-s) var(--r-s) 0 0;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.gpa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.75rem; }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Accordion (FAQ) ---- */
.accordion { border-top: 1px solid var(--hairline); }
.accordion-item { border-bottom: 1px solid var(--hairline); }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--gray-800);
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--dur-fast) var(--ease);
}
.accordion-trigger:hover { color: var(--navy); }
.acc-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--gray-400); fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-base) var(--ease), stroke var(--dur-base) var(--ease); }
.accordion-item.open .acc-icon { transform: rotate(45deg); stroke: var(--navy); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-content { padding: 0 0 1.4rem; font-size: 0.925rem; color: var(--gray-600); line-height: 1.72; }
.accordion-content a { color: var(--navy); text-decoration: underline; }

/* ---- Forms ---- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.375rem; letter-spacing: 0.01em; }
.form-label .req { color: var(--red); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-s);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(1,12,74,0.12);
}
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: ''; position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--gray-500); pointer-events: none; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.3rem; }

/* ---- Calendar / Event rows ---- */
.cal-section { padding: 5rem 0; }
.cal-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cal-filter {
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.cal-filter:hover, .cal-filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.event-list { display: flex; flex-direction: column; gap: 0.875rem; }
.event-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  border-radius: var(--r-m);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-s), inset 4px 0 0 0 var(--navy);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.event-row:hover { transform: translateX(3px); box-shadow: var(--sh-m), inset 4px 0 0 0 var(--navy); }
.event-row--gold  { box-shadow: var(--sh-s), inset 4px 0 0 0 var(--gold); }
.event-row--gold:hover  { box-shadow: var(--sh-m), inset 4px 0 0 0 var(--gold); }
.event-row--red   { box-shadow: var(--sh-s), inset 4px 0 0 0 var(--red); }
.event-row--red:hover   { box-shadow: var(--sh-m), inset 4px 0 0 0 var(--red); }
.event-row--green { box-shadow: var(--sh-s), inset 4px 0 0 0 #16A34A; }
.event-row--green:hover { box-shadow: var(--sh-m), inset 4px 0 0 0 #16A34A; }

.event-date-box { text-align: center; background: linear-gradient(150deg, var(--navy-light), var(--navy)); color: var(--white); border-radius: var(--r-s); padding: 0.45rem 0.5rem; }
.event-date-box--gold  { background: linear-gradient(150deg, var(--gold-light), var(--gold)); }
.event-date-box--red   { background: linear-gradient(150deg, #d6335b, var(--red)); }
.event-date-box--green { background: linear-gradient(150deg, #22c55e, #16A34A); }
.event-month { font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.event-day   { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.05; }
.event-name  { font-family: var(--font-display); font-size: 0.925rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.15rem; }
.event-loc   { font-size: 0.8rem; color: var(--gray-500); }
.event-tag {
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.tag--decathlon   { background: #DEE4EF; color: #1E3A6E; }
.tag--octathlon   { background: #DEE7D6; color: #365B2E; }
.tag--pentathlon  { background: #E7E0EC; color: #5B3A73; }
.tag--lsc         { background: #F1E2CE; color: #8A4B1F; }

/* ===== Events landing — program cards ===== */
.event-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1rem; }
.event-type-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--sh-s);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.event-type-card:hover { transform: translateY(-4px); box-shadow: var(--sh-l); }
.event-card-header { padding: 1.75rem; color: var(--white); }
.event-card-header--decathlon  { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.event-card-header--octathlon  { background: linear-gradient(135deg, #0F4C4C, #178080); }
.event-card-header--pentathlon { background: linear-gradient(135deg, #5C1A2E, #8C2F4B); }
.event-card-header--lsc        { background: linear-gradient(135deg, #7C3A1D, #B85C2E); }
.event-card-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.35rem; }
.event-card-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.event-card-subtitle { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.event-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.75rem 1.75rem; }
.event-card-desc { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.25rem; }
.event-card-meta { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.event-meta-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--gray-700); font-weight: 500; }
.event-meta-item svg { width: 18px; height: 18px; stroke: var(--gold-dark); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.event-card-body .btn { margin-top: auto; }
.tag--general     { background: var(--gray-100); color: var(--gray-600); }
.tag--deadline    { background: #EFDEDD; color: var(--red); }

/* ---- Sponsorship Tiers ---- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.tier-card {
  border-radius: var(--r-xl);
  padding: 2.25rem 2rem;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  box-shadow: var(--sh-s);
  position: relative;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--sh-l); }
.tier-card--featured {
  border-color: rgba(169,127,31,0.5);
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: var(--white);
}
.tier-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  font-family: var(--font-display); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.9rem; border-radius: var(--r-full);
  white-space: nowrap;
}
.tier-level { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.tier-card--featured .tier-level { color: var(--gold-light); }
.tier-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1.05; margin-bottom: 0.2rem; }
.tier-card--featured .tier-amount { color: var(--white); }
.tier-note { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.tier-card--featured .tier-note { color: rgba(255,255,255,0.6); }
.tier-features { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0; }
.tier-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--hairline);
}
.tier-feat:last-child { border-bottom: none; }
.tier-card--featured .tier-feat { color: rgba(255,255,255,0.82); border-bottom-color: rgba(255,255,255,0.1); }
.tier-check {
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.tier-check svg { width: 10px; height: 10px; stroke: var(--white); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Region & State Coordinators ---- */
.coordinator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.coordinator-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  border-radius: var(--r-l);
  padding: 1.5rem;
  box-shadow: var(--sh-s);
  border: 1px solid var(--hairline);
}
.coordinator-region {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.coordinator-region span { color: var(--gray-400); font-weight: 500; text-transform: none; letter-spacing: normal; }
.coordinator-name { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.15rem; }
.coordinator-org, .coordinator-address, .coordinator-contact { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
.coordinator-email { display: inline-block; font-size: 0.82rem; color: var(--navy); text-decoration: underline; margin-top: 0.25rem; word-break: break-word; }
.coordinator-card--tbd { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gray-400); font-style: italic; }

/* ---- Results (podium + full standings table) ---- */
.results-division { margin-bottom: 3rem; }
.results-division:last-child { margin-bottom: 0; }
.results-division-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.results-division-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.results-division-meta { font-size: 0.82rem; color: var(--gray-400); }

.podium-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; align-items: end; }
.podium-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  border-radius: var(--r-l);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--sh-s);
  border: 1px solid var(--hairline);
  text-align: center;
  position: relative;
}
.podium-card--1 { order: 1; padding-top: 2.1rem; box-shadow: var(--sh-m); }
.podium-card--2 { order: 2; }
.podium-card--3 { order: 3; }
.podium-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: var(--white);
  margin-bottom: 0.85rem;
}
.podium-card--1 .podium-rank { width: 42px; height: 42px; font-size: 1.1rem; background: linear-gradient(150deg, var(--gold-light), var(--gold)); box-shadow: 0 6px 16px rgba(169,127,31,0.35); }
.podium-card--2 .podium-rank { background: linear-gradient(150deg, #C7CBD3, #9AA0AB); }
.podium-card--3 .podium-rank { background: linear-gradient(150deg, #C79760, #9A6B37); }
.podium-school { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gray-800); line-height: 1.3; margin-bottom: 0.3rem; }
.podium-district { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 0.65rem; }
.podium-score { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.podium-score span { font-size: 0.7rem; font-weight: 500; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 0.3rem; }

.results-table-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--sh-s);
}
.results-table-scroll { max-height: 420px; overflow-y: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.results-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left; padding: 0.75rem 1rem;
}
.results-table th.results-col-num, .results-table td.results-col-num { text-align: center; width: 3.5rem; }
.results-table th.results-col-score, .results-table td.results-col-score { text-align: right; }
.results-table tbody td { padding: 0.6rem 1rem; color: var(--gray-600); border-top: 1px solid var(--gray-100); }
.results-table tbody tr:nth-child(even) { background: var(--gray-50); }
.results-table tbody tr.results-row--winner td { color: var(--gray-800); font-weight: 700; }
.results-table tbody td.results-col-score { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.results-badge-winner { display: inline-block; margin-left: 0.4rem; font-size: 0.68rem; font-weight: 700; color: var(--gold-dark); background: var(--gold-pale); border-radius: var(--r-s); padding: 0.1rem 0.4rem; vertical-align: middle; }

.results-download-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.results-download-note { font-size: 0.78rem; color: var(--gray-400); }

.results-individual-note {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: var(--r-m);
  padding: 1.1rem 1.25rem; color: var(--gray-500); font-size: 0.85rem; line-height: 1.55;
}
.results-individual-note svg { width: 20px; height: 20px; stroke: var(--gray-400); fill: none; stroke-width: 1.75; flex-shrink: 0; }

@media (max-width: 780px) {
  .podium-row { grid-template-columns: 1fr; }
  .podium-card--1, .podium-card--2, .podium-card--3 { order: 0; padding-top: 1.5rem; }
}

/* ---- Contact Page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-icon { width: 44px; height: 44px; border-radius: var(--r-full); background: linear-gradient(150deg, var(--gold-pale), rgba(241,230,200,0.5)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; stroke: var(--gold-dark); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-label { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.contact-info-value { font-size: 0.925rem; color: var(--gray-800); line-height: 1.55; }

/* ---- Footer ---- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.68); padding: 4.5rem 0 2.25rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-col .navbar-brand { margin-bottom: 1rem; display: inline-flex; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.5rem; }
.social-btn { width: 34px; height: 34px; border-radius: var(--r-s); background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease); }
.social-btn:hover { background: rgba(255,255,255,0.15); }
.social-btn svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.footer-col-heading { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.86rem; color: rgba(255,255,255,0.58); transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.6); transition: color var(--dur-fast) var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- Misc Utilities ---- */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.full-width { grid-column: 1 / -1; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gray-200) 20%, var(--gray-200) 80%, transparent); margin: 2rem 0; }

/* ---- Alumni Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.testimonial-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-l); padding: 1.75rem; box-shadow: var(--sh-s); }
.testimonial-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 1px solid var(--hairline); }
.testimonial-quote { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.testimonial-meta { font-size: 0.78rem; color: var(--gray-400); margin-top: 0.15rem; }
.testimonial-role { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.1rem; }
.testimonial-empty { text-align: center; color: var(--gray-500); font-size: 0.92rem; margin-top: 1rem; }
.testimonial-empty a { color: var(--navy); text-decoration: underline; }

/* ---- Brand Logo (real image) ---- */
/* Wide wordmark banner on a parchment plaque — evokes a house-crest
   nameplate rather than a plain app-icon sticker. */
.brand-logo {
  height: 42px;
  width: auto;
  border-radius: var(--r-s);
  background: #FFFFFF;
  padding: 5px 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(122,92,18,0.4);
}
.footer-brand-col .brand-logo {
  height: 52px;
  padding: 7px 14px;
  margin-bottom: 0.25rem;
}

/* ---- Wave Separators ---- */
.wave-sep {
  display: block;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: -1px;
}
.wave-sep svg { display: block; width: 100%; }
.wave-sep--navy     { background: var(--navy); }
.wave-sep--dark     { background: var(--navy-dark); }
.wave-sep--gray     { background: var(--gray-50); }
.wave-sep--off-white { background: var(--off-white); }
.wave-sep--white    { background: var(--white); }
/* Transitions out of a plain .section, which has no flat fill of its own
   (it shows the ambient body wash) — an opaque white block here reads as
   a visible seam against that faint tint, so stay transparent instead. */
.wave-sep--transparent { background: transparent; }

/* ---- Decorative gold rule under section headings (CSS-only, no HTML edits) ---- */
.section-header .section-title::after,
.page-header-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--r-full);
  margin-top: 0.55rem;
}
.section-header--center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Scroll Reveal (auto-applied via JS) ---- */
.reveal-auto {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-auto.reveal-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-auto { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Card refined hover ---- */
.card {
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.card:hover {
  box-shadow: var(--sh-l);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .nav-link { padding: 0.4rem 0.58rem; font-size: 0.74rem; }
  .ql-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid  { grid-template-columns: 1fr; }
  .welcome-grid  { grid-template-columns: 1fr; }
  .tier-grid     { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .news-grid     { grid-template-columns: 1fr 1fr; }
  .grid-3        { grid-template-columns: 1fr 1fr; }
  .grid-4        { grid-template-columns: 1fr 1fr; }
  .about-subjects { grid-template-columns: 1fr; }
  .coordinator-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease);
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 0.85rem 1rem; font-size: 0.9rem; justify-content: space-between; border-radius: var(--r-m); }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(1,12,74,0.04);
    margin: 0.2rem 0 0.4rem 0.75rem;
    border-radius: var(--r-m);
    opacity: 1;
    pointer-events: all;
    display: none;
    padding: 0.25rem;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(1,12,74,0.72); border-radius: var(--r-s); }
  .dropdown-menu a:hover { background: rgba(1,12,74,0.08); color: var(--navy); }
  .dropdown-divider { background: rgba(1,12,74,0.1); }
  .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; }

  .hero::after { display: none; }
  .hero { min-height: 480px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; max-width: 280px; }
  .hero-content--center .hero-actions .btn { margin-left: auto; margin-right: auto; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8,15,30,0.55) 0%, rgba(8,15,30,0.3) 45%, rgba(8,15,30,0.7) 80%, var(--navy-dark) 100%);
  }
  .hero-carousel-arrow { width: 28px; height: 44px; }
  .hero-carousel-arrow svg { width: 11px; height: 22px; }
  .hero-carousel-arrow--prev { left: 0.5rem; }
  .hero-carousel-arrow--next { right: 0.5rem; }

  .ql-grid   { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2), .stat-card:nth-child(3) { margin-top: 0; }

  .vol-cta-card { flex-direction: column; padding: 2rem 1.75rem; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .event-row { grid-template-columns: 60px 1fr; }
  .event-tag { display: none; }

  .tier-card--featured { order: -1; }
  .grid-2, .grid-3, .grid-4, .testimonial-grid, .event-type-grid { grid-template-columns: 1fr; }
  .coordinator-grid { grid-template-columns: 1fr; }

  .page-header::after { display: none; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card:nth-child(2), .stat-card:nth-child(3) { margin-top: 0; }
  .hero { min-height: 420px; }
  .hero-content { padding: 2rem 0; }
  .gpa-grid { grid-template-columns: 1fr 1fr; }
  .gpa-grid > div:last-child { grid-column: 1 / -1; }
  .tab-btn { padding: 0.6rem 0.8rem; font-size: 0.76rem; }
}
