/* ============================================================
   PICE-EPSA 25th Anniversary — Enhanced Design System
   Inspired by ASCE ICTD's authoritative conference-site layout:
   full-bleed hero, segmented sections, card grids, dense footer.

   Brand colors are UNCHANGED from the original build:
     Navy #1B3A6B · Gold #A8B5C0 · White #FFFFFF
   Only usage, hierarchy, and spacing have been refined.

   Spacing rhythm: 8px base unit (--space-1 … --space-16)
   Typography scale: modular, Playfair Display (display) + Inter (body)
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand palette — unchanged */
  --navy:        #1B3A6B;
  --navy-light:  #2C5282;
  --navy-deep:   #0D2247;
  --gold:        #A8B5C0;
  --gold-deep:   #8A9BA8;
  --gold-dim:    rgba(168, 181, 192, 0.15);
  --gold-border: rgba(168, 181, 192, 0.35);
  --white:       #FFFFFF;
  --bg:          #FAF7F0;
  --bg-alt:      #F0EBE0;
  --text:        #2D3748;
  --text-muted:  #718096;
  --text-faint:  #A0AEC0;
  --border:      #E2D9C8;
  --success:     #1A7A3F;
  --warning:     #B8860B;
  --danger:      #C0392B;

  /* Radii */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  28px;

  /* Shadows — layered, ASCE-style soft elevation */
  --shadow-xs:  0 1px 3px rgba(27, 58, 107, 0.06);
  --shadow-sm:  0 4px 12px rgba(27, 58, 107, 0.07);
  --shadow:     0 8px 24px rgba(27, 58, 107, 0.09);
  --shadow-lg:  0 20px 48px rgba(27, 58, 107, 0.16);
  --shadow-gold: 0 8px 24px rgba(168, 181, 192, 0.25);

  /* 8px spacing rhythm */
  --space-1:  0.5rem;   /* 8px  */
  --space-2:  1rem;     /* 16px */
  --space-3:  1.5rem;   /* 24px */
  --space-4:  2rem;     /* 32px */
  --space-5:  2.5rem;   /* 40px */
  --space-6:  3rem;     /* 48px */
  --space-8:  4rem;     /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */

  /* Typography scale (modular, ~1.25 ratio) */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.375rem;
  --fs-xl:    1.75rem;
  --fs-2xl:   2.25rem;
  --fs-3xl:   2.875rem;
  --fs-4xl:   3.5rem;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.45s cubic-bezier(.4,0,.2,1);

  --container-max: 1240px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--gold-dim); color: var(--navy); }

/* Typography hierarchy — used across all sections */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.25; }
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-md);  font-weight: 700; }
h4 { font-size: var(--fs-base); font-weight: 600; }
p  { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Skip link — accessibility, ASCE-style */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. CONTAINER & SECTION RHYTHM ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

main { display: block; }

.section {
  padding: var(--space-10) 0;
  position: relative;
}

.section--alt { background: var(--white); }
.section--tight { padding: var(--space-6) 0; }

/* Divider used between major segments, ASCE-style hairline + gold tick */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 1px;
  background: var(--border);
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  width: 64px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
  display: block;
}

.section-header .eyebrow { margin-bottom: var(--space-2); display: inline-flex; }
.section-header h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-2);
  border-left: none;
  padding-left: 0;
}
.section-header .section-intro {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Left-aligned variant for data-dense sections (Leadership, Committees) */
.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.section-header--left .section-intro { margin-left: 0; }

/* ---------- 4. HEADER / NAVIGATION (ASCE-style sticky bar) ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.8rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  box-shadow: var(--shadow-gold);
}

.brand-text h1 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-text p {
  font-size: 0.7rem;
  color: #aab4d8;
  line-height: 1.3;
  max-width: 280px;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #cdd5ee;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(168, 181, 192, 0.12);
  color: var(--gold);
}

.site-nav a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  margin-left: var(--space-1);
}
.site-nav a.nav-cta:hover { background: var(--gold-deep); color: var(--navy); }

/* Dropdown groups (ASCE "About > Contact, Policies, ICTD..." pattern) —
   keeps the top-level bar to ~6 items so it never wraps on desktop. */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  color: #cdd5ee;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-caret { font-size: 0.65em; transition: transform var(--transition); }

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-dropdown.open .nav-dropdown-trigger {
  background: rgba(168, 181, 192, 0.12);
  color: var(--gold);
}

.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 0.4rem;
  min-width: 220px;
  background: var(--navy-deep);
  border: 1px solid rgba(168, 181, 192,0.18);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}

.nav-dropdown-menu::before {
  /* Invisible bridge over the trigger-to-menu gap so the mouse
     never crosses "dead" space that would otherwise fire
     mouseleave on the wrapper before reaching a submenu link. */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-3);
    gap: 0.1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    overflow-y: auto;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    font-size: var(--fs-base);
  }

  .site-nav a.nav-cta {
    margin: var(--space-2) 0 0;
    border-radius: var(--radius-sm);
    text-align: center;
  }

  /* On mobile, dropdowns just flatten into the stacked menu —
     no floating popover, no separate trigger interaction. */
  .nav-dropdown { width: 100%; }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    font-size: var(--fs-base);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(255,255,255,0.03);
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
  }

  .nav-dropdown-menu a {
    padding: 0.8rem 1rem 0.8rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: var(--fs-sm);
  }
}

/* ---------- 5. HERO (ASCE full-bleed image + headline pattern) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(6,15,36,0.55) 0%, rgba(27,58,107,0.85) 60%, var(--navy-deep) 100%),
    radial-gradient(ellipse at 75% 15%, rgba(168, 181, 192,0.16), transparent 50%),
    linear-gradient(180deg, #16305a 0%, #1B3A6B 55%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 0;
  padding: var(--space-12) 0 var(--space-10);
}

.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  /* Large ghost "25" numeral motif, ASCE-style oversized background type */
  content: '25';
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: min(34vw, 26rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-main { max-width: 640px; }

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, var(--fs-4xl));
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: #c7cfe9;
  margin-bottom: var(--space-3);
  font-weight: 400;
  line-height: 1.5;
}

.hero-description {
  font-size: var(--fs-base);
  color: #9aa8c8;
  margin-bottom: var(--space-3);
  max-width: 560px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: #dbe1f5;
  font-weight: 500;
}

.hero-meta-item .icon {
  color: var(--gold);
  font-size: 1rem;
}

.hero-cta-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* Hero side panel — ASCE-style highlight card floating on the hero */
.hero-side {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(168, 181, 192,0.22);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.hero-side h2 {
  font-size: var(--fs-md);
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.hero-side p {
  font-size: var(--fs-sm);
  color: #c0c8e0;
  line-height: 1.65;
}

.hero-side-badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0.5rem 1.1rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  width: auto;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }

/* Full-width primary used inside forms — preserves original behavior */
.form-card .btn-primary,
.checkin-card .btn-primary {
  width: 100%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.form-card .btn-primary:hover,
.checkin-card .btn-primary:hover { background: var(--navy-light); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Keep outline buttons legible on dark sections (hero + dark CTA bands) */
.hero .btn-outline,
.section--dark .btn-outline,
.sj-amsap .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hero .btn-outline:hover,
.section--dark .btn-outline:hover,
.sj-amsap .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-secondary:hover { background: var(--border); }

/* ---------- 7. STAT BAR (ASCE "important numbers" strip) ---------- */
.stat-bar {
  background: linear-gradient(135deg, var(--gold), #C3CED8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--space-8));
  max-width: calc(var(--container-max) - 2 * var(--space-3));
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  border-right: 1px solid rgba(27,58,107,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: var(--fs-xs);
  color: var(--navy-light);
  font-weight: 700;
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- 8. CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.card h3 { font-size: var(--fs-md); color: var(--navy); margin-bottom: var(--space-1); }
.card p  { font-size: var(--fs-sm); color: var(--text-muted); }

/* Icon chip used atop highlight cards */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-dim);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}

/* ---------- 9. PRESIDENT + LEADERSHIP ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.president-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-4);
  border-left: 5px solid var(--gold);
  position: relative;
}

.president-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--gold-dim);
  line-height: 1;
}

.president-card p#president-message {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.president-sig {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
}

.president-sig strong { color: var(--navy); font-size: var(--fs-md); display: block; }
.president-sig span { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin-top: 0.2rem; }

.list-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-3);
}

.list-panel h3 {
  font-size: var(--fs-md);
  color: var(--navy);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--gold-dim);
}

.list-item {
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
}
.list-item:last-child { border-bottom: none; }
.list-item strong { color: var(--navy); font-weight: 600; }

.list-item .role-badge {
  font-size: var(--fs-xs);
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- 9b. PEOPLE GRID (ASCE "co-chairs" / speaker pattern) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.people-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.people-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.people-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  border: 3px solid var(--gold-dim);
  object-fit: cover;
}

.people-card strong {
  display: block;
  font-size: var(--fs-md);
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.people-role {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- 10. GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition);
}

.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

.gallery-item .gallery-caption {
  padding: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- 10b. RECAP VIDEO (ASCE "missed us last year" pattern) ---------- */
.video-frame {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: #c7cfe9;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.video-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ---------- 11. IMPORTANT DATES TABLE (matches ASCE's real <table> pattern) ---------- */
.dates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.dates-table tr { border-bottom: 1px solid var(--bg-alt); }
.dates-table tr:last-child { border-bottom: none; }
.dates-table tr:nth-child(odd) { background: var(--bg); }

.dates-table td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-base);
  vertical-align: middle;
}

.dates-year {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  width: 110px;
  white-space: nowrap;
  border-right: 2px solid var(--gold-dim);
}

.dates-event { color: var(--text); }

@media (max-width: 560px) {
  .dates-table td { padding: var(--space-1) var(--space-2); font-size: var(--fs-sm); }
  .dates-year { width: 80px; }
}

/* ---------- 12. SPONSORS ---------- */
.sponsor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-3);
  text-align: center;
  border-top: 4px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}
.sponsor-card:hover { transform: translateY(-3px); }

.sponsor-card[data-tier="Platinum"] { border-top-color: #9aa3b5; }
.sponsor-card[data-tier="Gold"]     { border-top-color: var(--gold); }
.sponsor-card[data-tier="Silver"]   { border-top-color: #b0b0b0; }
.sponsor-card[data-tier="Bronze"]   { border-top-color: #cd7f32; }

.sponsor-tier {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--space-1);
}

.sponsor-tier-platinum { background: #f0f0f4; color: #6b7280; }
.sponsor-tier-gold     { background: #fff8dc; color: #92650a; }
.sponsor-tier-silver   { background: #f4f4f4; color: #555; }
.sponsor-tier-bronze   { background: #fff4ec; color: #92450a; }

.sponsor-name { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700; color: var(--navy); }

/* ---------- 13. FORMS (RSVP / Registration) ---------- */
.rsvp-section { }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: var(--space-4);
  max-width: 640px;
  margin: 0 auto;
}

.form-group { margin-bottom: var(--space-2); }

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.08);
}

.form-status {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 1.5em;
}

/* ---------- 14. CHECK-IN SCANNER ---------- */
.checkin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: var(--space-4);
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.checkin-mode-toggle {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-alt);
  padding: 0.3rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.checkin-mode-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.checkin-mode-btn.active { background: var(--navy); color: #fff; }
.checkin-mode-btn:not(.active):hover { background: var(--border); }

#checkin-reader {
  width: 100%;
  max-width: 320px;
  margin: var(--space-2) auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}

#checkin-reader:empty::before {
  content: 'Camera preview will appear here';
  display: block;
  padding: var(--space-5) var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.checkin-status {
  margin-top: var(--space-2);
  font-size: var(--fs-md);
  font-weight: 700;
  min-height: 1.6em;
}

.checkin-manual {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
  text-align: left;
}

.checkin-manual label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.checkin-manual-row { display: flex; gap: var(--space-1); }

.checkin-manual-row input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.checkin-toggle-btn { margin-top: 0.4rem; }

/* ---------- 15. DASHBOARD ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.dash-stat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-3);
  text-align: center;
  border-top: 4px solid var(--gold);
}

.dash-stat .dash-num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.dash-stat .dash-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.dash-chart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--space-3);
}

.dash-chart-card h3 { font-size: var(--fs-base); color: var(--navy); margin-bottom: var(--space-2); }

.dash-refresh-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: right;
  margin-top: var(--space-2);
}

/* ---------- 16. VENUE / CONTACT (new ASCE-style modules) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

.venue-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.venue-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(168, 181, 192,0.14), transparent 55%);
  pointer-events: none;
}

.venue-card h3 { color: var(--gold); font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.venue-card p { color: #c7cfe9; font-size: var(--fs-sm); margin-bottom: var(--space-1); }
.venue-card .venue-addr { color: #fff; font-weight: 600; font-size: var(--fs-base); margin-top: var(--space-2); }

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

.contact-card h3 { margin-bottom: var(--space-2); }

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
  color: var(--text);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { color: var(--gold-deep); width: 20px; text-align: center; }

/* ---------- 17. FOOTER (ASCE-style dense sitemap footer) ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #aab4d8;
  border-top: 3px solid var(--gold);
  padding: var(--space-8) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand-logo { margin-bottom: var(--space-2); }
.footer-brand p { color: #8c97bd; font-size: var(--fs-sm); max-width: 320px; margin-top: var(--space-2); }

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: #aab4d8;
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: var(--fs-xs);
  color: #7984a8;
}

.footer-bottom a { color: #aab4d8; text-decoration: none; margin-left: var(--space-2); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 18. SCROLL-REVEAL ANIMATIONS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="fade"] { transform: none; }

[data-reveal-group] > * { transition-delay: calc(var(--reveal-index, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 19. LOADING STATE ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #e8ecf4 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 20. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before { font-size: 40vw; opacity: 0.6; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-4); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(27,58,107,0.1); }
  .stat-item:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --fs-4xl: 2.4rem; --fs-3xl: 2rem; --fs-2xl: 1.7rem; }
  .section { padding: var(--space-6) 0; }
  .hero { padding: var(--space-8) 0 var(--space-6); }
  .hero-side { margin-top: var(--space-3); }
  .dash-charts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .timeline-entry { grid-template-columns: 64px 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-2); }
  .brand-text p { display: none; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
}

/* ── MULTI-PAGE ADDITIONS ──────────────────────────────────── */

/* Active nav link — set via aria-current="page" on the current page */
.site-nav a[aria-current="page"],
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--gold) !important;
  background: rgba(168, 181, 192,0.1);
  border-radius: var(--radius-sm);
}

/* Inner page banner — replaces the full hero on sub-pages */
.page-banner {
  background:
    linear-gradient(180deg, rgba(6,15,36,0.6) 0%, rgba(27,58,107,0.92) 100%),
    linear-gradient(180deg, #16305a 0%, var(--navy-deep) 100%);
  padding: var(--space-8) 0 var(--space-6);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: attr(data-title);
  position: absolute;
  right: -1vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: min(18vw, 11rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.page-banner .eyebrow { color: var(--gold); margin-bottom: var(--space-2); }

.page-banner h1 {
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}

.page-banner p {
  font-size: var(--fs-md);
  color: #c7cfe9;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: #8a95bb;
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: #aab4d8; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: #aab4d8; }

/* ── PHOTO UPLOAD ─────────────────────────────────── */
.photo-upload-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.photo-preview {
  width: 100px;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition);
}
.photo-preview:hover { border-color: var(--navy); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.photo-upload-info { flex: 1; }
.photo-upload-info label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.photo-upload-info p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
input[type="file"].photo-file-input { font-size: var(--fs-sm); }

/* ── DIRECTORY PAGE ───────────────────────────────── */
.dir-toolbar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.dir-toolbar input[type="search"] {
  flex: 1;
  min-width: 240px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-family: inherit;
}
.dir-toolbar input[type="search"]:focus {
  outline: none;
  border-color: var(--navy);
}

.dir-filter-btn {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.dir-filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.dir-stats {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.dir-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dir-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--fs-sm);
}

.dir-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.dir-table thead th:hover { background: var(--navy-light); }
.dir-table thead th.sort-asc::after { content: ' ↑'; }
.dir-table thead th.sort-desc::after { content: ' ↓'; }

.dir-table tbody tr {
  border-bottom: 1px solid var(--bg-alt);
  transition: background var(--transition);
}
.dir-table tbody tr:hover { background: var(--bg); }
.dir-table tbody tr.hidden { display: none; }

.dir-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  color: var(--text);
}

.dir-photo {
  width: 40px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: block;
}

.dir-avatar {
  width: 40px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-display);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.status-registered { background: #F0EBE0; color: #718096; }
.status-checkedin  { background: #d4edda; color: #1a7a3f; }
.status-checkedout { background: #fff3cd; color: #b8860b; }

.dir-empty {
  text-align: center;
  padding: var(--space-8) var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-md);
}

/* ── PEOPLE CARD PHOTO ENHANCEMENTS ──────────────────────── */
.people-avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  position: relative;
  overflow: hidden;
  border: 3px solid var(--gold-dim);
  flex-shrink: 0;
}

.people-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* avatar fallback sits behind the photo; shown only when photo errors */
.people-avatar-wrap .people-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  margin: 0;
}

.people-bio {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: var(--space-1);
  text-align: center;
}

/* ── SPONSOR CARD ENHANCEMENTS ───────────────────────────── */
.sponsor-card--enhanced {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-3);
}

.sponsor-logo-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0.25rem 0;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.sponsor-link {
  text-decoration: none;
  color: inherit;
}
.sponsor-link-disabled { display: block; }

.sponsor-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.sponsor-visit {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--space-1);
}
.sponsor-visit:hover { color: var(--gold-deep); }

/* ── ADMIN PAGE ───────────────────────────────────────────── */
.admin-login {
  max-width: 400px;
  margin: var(--space-8) auto;
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.admin-login h2 { margin-bottom: var(--space-2); }
.admin-login p { font-size: var(--fs-sm); margin-bottom: var(--space-3); }

.admin-content { display: none; }
.admin-content.visible { display: block; }

.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--fs-sm);
}

.admin-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--bg-alt);
  transition: background var(--transition);
}
.admin-table tbody tr:hover { background: var(--bg); }
.admin-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.admin-photo-thumb {
  width: 36px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}
.admin-avatar-thumb {
  width: 36px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-action-id   { background: #e8f0fe; color: #1a56db; }
.btn-action-cert { background: #fdf3dc; color: #92650a; }
.btn-action-id:hover   { background: #1a56db; color: #fff; }
.btn-action-cert:hover { background: #92650a; color: #fff; }
.btn-action:disabled   { opacity: 0.5; cursor: not-allowed; }

.action-feedback {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-left: 0.5rem;
  transition: opacity 0.5s;
}

.admin-search-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.admin-search-bar input {
  flex: 1;
  min-width: 220px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-family: inherit;
}
.admin-search-bar input:focus { outline: none; border-color: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   AWARDS SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* ── AWARD HERO ──────────────────────────────────────────── */
.awards-hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(6,15,36,0.72) 0%, rgba(27,58,107,0.94) 60%, var(--navy-deep) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 181, 192,0.22), transparent 55%),
    linear-gradient(180deg, #16305a 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
}

.awards-hero::before {
  content: '🏆';
  position: absolute;
  font-size: 28rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.awards-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.awards-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.awards-hero .eyebrow { margin-bottom: var(--space-2); }

.awards-hero p {
  font-size: var(--fs-lg);
  color: #c7cfe9;
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

.awards-hero-ctas {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.awards-countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.countdown-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(168, 181, 192,0.25);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  min-width: 72px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: var(--fs-xs);
  color: #8a95bb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── AWARD CATEGORIES ────────────────────────────────────── */
.award-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
}

.award-cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 5px solid var(--navy);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.award-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.award-cat-card.gold     { border-top-color: #D4AF37; }
.award-cat-card.silver-t { border-top-color: #A8A9AD; }
.award-cat-card.bronze-t { border-top-color: #CD7F32; }

.award-cat-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.award-cat-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.award-cat-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.award-cat-criteria {
  border-top: 1px dashed var(--border);
  padding-top: var(--space-2);
  margin-top: auto;
}

.award-cat-criteria h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.award-cat-criteria ul {
  list-style: none;
  padding: 0;
}

.award-cat-criteria ul li {
  font-size: var(--fs-xs);
  color: var(--text);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.award-cat-criteria ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.award-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}

/* ── NOMINEE CARDS ───────────────────────────────────────── */
.nominees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.nominee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nominee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nominee-card.is-winner {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.nominee-card-header {
  background: var(--navy);
  padding: var(--space-3) var(--space-3) var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.nominee-photo-wrap {
  width: 72px;
  height: 86px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(168, 181, 192,0.5);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-light);
}

.nominee-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.nominee-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.nominee-header-info { flex: 1; min-width: 0; }

.nominee-award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gold);
  background: rgba(168, 181, 192,0.12);
  border: 1px solid rgba(168, 181, 192,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.nominee-winner-crown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.nominee-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.nominee-role {
  font-size: var(--fs-xs);
  color: #8a95bb;
  line-height: 1.4;
}

.nominee-card-body {
  padding: var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nominee-bio {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.65;
}

.nominee-achievements {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  border-left: 3px solid var(--gold);
}

.nominee-achievements h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

.nominee-achievements p {
  font-size: var(--fs-xs);
  color: var(--text);
  line-height: 1.6;
}

/* ── NOMINATION FORM ─────────────────────────────────────── */
.nominate-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-5);
  align-items: start;
}

.nominate-sidebar {
  position: sticky;
  top: 88px;
}

.nominate-sidebar-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.nominate-sidebar-card h3 {
  color: var(--gold);
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

.nominate-sidebar-card p {
  font-size: var(--fs-sm);
  color: #c7cfe9;
  line-height: 1.65;
}

.nominate-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: var(--space-2);
}

.nominate-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: #c7cfe9;
}

.nominate-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--gold-dim);
  margin: var(--space-4) 0 var(--space-2);
}

.form-section-title:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

/* ── AWARD DATES TABLE ───────────────────────────────────── */
.award-dates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.award-dates-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.award-dates-table tbody td {
  padding: 0.85rem 1.25rem;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--bg-alt);
  vertical-align: middle;
}

.award-dates-table tbody tr:last-child td { border-bottom: none; }
.award-dates-table tbody tr:hover { background: var(--bg); }

.award-dates-table .date-col {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  width: 180px;
}

.award-date-upcoming {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* ── ADMIN AWARDS SECTION ────────────────────────────────── */
.btn-action-award { background: #f0fdf4; color: #166534; }
.btn-action-award:hover { background: #166534; color: #fff; }
.btn-action-winner { background: #fefce8; color: #713f12; }
.btn-action-winner:hover { background: #713f12; color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nominate-wrap { grid-template-columns: 1fr; }
  .nominate-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .nominees-grid { grid-template-columns: 1fr; }
  .awards-countdown { gap: var(--space-2); }
}

@media (max-width: 600px) {
  .award-category-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   SPEAKERS SYSTEM  (ASCE ICTD-inspired)
   ═══════════════════════════════════════════════════════════ */

/* ── SPEAKERS HERO ───────────────────────────────────────── */
.speakers-hero {
  background:
    linear-gradient(165deg, rgba(6,15,36,0.68) 0%, rgba(27,58,107,0.96) 65%, var(--navy-deep) 100%),
    radial-gradient(ellipse at 85% 10%, rgba(168, 181, 192,0.20), transparent 50%),
    linear-gradient(180deg, #22457c, var(--navy-deep));
  color: #fff;
  padding: var(--space-10) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.speakers-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(168, 181, 192,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(168, 181, 192,0.04) 0%, transparent 35%);
  pointer-events: none;
}

.speakers-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.speakers-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: var(--space-2);
  max-width: 700px;
}

.speakers-hero p {
  font-size: var(--fs-lg);
  color: #c7cfe9;
  max-width: 620px;
  margin-bottom: var(--space-4);
}

.speakers-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: var(--space-2);
}

.speakers-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: #c0c8e0;
}

.speakers-hero-stat strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
}

/* ── TYPE-FILTER TABS (ASCE-style top filter row) ────────── */
.speaker-type-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.speaker-tab {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.speaker-tab.active,
.speaker-tab:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.speaker-search-input {
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-family: inherit;
  flex: 1;
  min-width: 200px;
  transition: border-color var(--transition);
}
.speaker-search-input:focus { outline: none; border-color: var(--navy); }

/* ── FEATURED KEYNOTE STRIP (ASCE's prominent featured row) ─ */
.keynote-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: var(--space-8) 0;
}

.keynote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-4);
}

.keynote-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(168, 181, 192,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.keynote-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.keynote-photo-wrap {
  width: 90px;
  height: 108px;
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}

.keynote-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.keynote-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
}

.keynote-info { flex: 1; min-width: 0; }

.keynote-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gold);
  background: rgba(168, 181, 192,0.12);
  border: 1px solid rgba(168, 181, 192,0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.keynote-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.keynote-credentials {
  font-size: var(--fs-xs);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.keynote-title-org {
  font-size: var(--fs-sm);
  color: #aab4d8;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.keynote-talk {
  font-size: var(--fs-xs);
  color: #c7cfe9;
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: 0.6rem;
  margin-top: 0.4rem;
}

/* ── FULL SPEAKER GRID ───────────────────────────────────── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.speaker-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.speaker-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--bg-alt);
}

.speaker-card-placeholder {
  width: 100%;
  height: 210px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold);
}

.speaker-card-body {
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.speaker-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.pill-keynote  { background: #FEF3C7; color: #92650A; }
.pill-plenary  { background: #EDE9FE; color: #5B21B6; }
.pill-technical{ background: #DBEAFE; color: #1E40AF; }
.pill-guest    { background: #D1FAE5; color: #065F46; }

.speaker-card-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.speaker-card-creds {
  font-size: var(--fs-xs);
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.speaker-card-role {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.speaker-card-talk {
  margin-top: var(--space-2);
  padding-top: var(--space-1);
  border-top: 1px dashed var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.speaker-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
}

/* ── SESSIONS TABLE ──────────────────────────────────────── */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
}

.session-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition);
}

.session-card:hover { transform: translateY(-2px); }

.session-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
}

.session-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.session-room {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.session-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.session-speakers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
}

.session-speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-alt);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* ── SPEAKER DETAIL MODAL ────────────────────────────────── */
.speaker-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,15,36,0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.speaker-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.speaker-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  transform: translateY(20px);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.speaker-modal-backdrop.open .speaker-modal {
  transform: translateY(0);
}

.speaker-modal-aside {
  background: var(--navy);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.speaker-modal-photo {
  width: 140px;
  height: 168px;
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}

.speaker-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.speaker-modal-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
}

.speaker-modal-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0;
}

.speaker-modal-creds {
  font-size: var(--fs-xs);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.speaker-modal-title {
  font-size: var(--fs-sm);
  color: #aab4d8;
  line-height: 1.45;
}

.speaker-modal-session-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-top: auto;
}

.speaker-modal-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.modal-section-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}

.modal-bio {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.75;
}

.modal-talk-box {
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  padding: var(--space-2) var(--space-3);
}

.modal-talk-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.modal-talk-abstract {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-session-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.modal-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .keynote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .speaker-modal { grid-template-columns: 1fr; }
  .speaker-modal-aside { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

@media (max-width: 560px) {
  .speakers-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .speaker-card-img, .speaker-card-placeholder { height: 180px; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN DESIGN STUDIO
   ═══════════════════════════════════════════════════════════ */

.design-studio {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.design-studio-tabs {
  display: flex;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.design-studio-tab {
  padding: 0.85rem 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.design-studio-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  background: var(--white);
}

.design-studio-tab:hover:not(.active) {
  color: var(--navy);
  background: var(--bg);
}

.design-studio-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 520px;
}

.design-controls {
  padding: var(--space-3);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 600px;
}

.design-preview {
  padding: var(--space-3);
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 520px;
}

.design-panel { display: none; }
.design-panel.active { display: block; }

/* Control groups inside the design panel */
.design-group {
  margin-bottom: var(--space-3);
}

.design-group-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.design-field {
  margin-bottom: var(--space-1);
}

.design-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.design-field input[type="text"],
.design-field input[type="url"],
.design-field textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-family: inherit;
  resize: vertical;
  transition: border-color var(--transition);
}

.design-field input:focus,
.design-field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.design-field-row {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Background image upload zone */
.bg-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-1);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
}

.bg-upload-zone:hover {
  border-color: var(--navy);
  background: var(--bg);
}

.bg-upload-zone.has-image {
  border-style: solid;
  border-color: var(--gold);
}

.bg-upload-zone img {
  width: 100%;
  max-height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.bg-upload-zone .upload-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.bg-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.bg-clear-btn {
  font-size: var(--fs-xs);
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  text-decoration: underline;
}

/* Save settings button */
.design-save-row {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}

.design-save-status {
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: opacity 0.5s;
}

/* Preview: ID card in preview pane */
.preview-id-card {
  width: 380px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

.preview-card-header {
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-card-header .ph-org {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}

.preview-card-header .ph-sub {
  font-size: 10px;
  margin-top: 3px;
}

.preview-card-body {
  padding: 14px;
  display: flex;
  gap: 14px;
}

.preview-photo {
  width: 80px;
  height: 96px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.preview-card-info { flex: 1; }
.preview-cat { font-size: 8px; font-weight: bold; border-radius: 10px; padding: 2px 8px; display: inline-block; margin-bottom: 6px; text-transform: uppercase; }
.preview-name { font-size: 14px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; padding-bottom: 6px; }
.preview-row { font-size: 9px; color: #555; margin-top: 2px; }
.preview-row strong { font-size: 9px; }

.preview-card-footer {
  padding: 8px 14px;
  background: #FAF7F0;
  border-top: 1px solid #E2D9C8;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-barcode-lines {
  display: flex;
  gap: 1.5px;
  height: 36px;
  align-items: flex-end;
}

.preview-barcode-lines span {
  width: 2px;
  background: #111;
  display: block;
}

/* Preview: Certificate in preview pane */
.preview-cert {
  width: 520px;
  background: #fff;
  border-radius: 6px;
  padding: 32px 36px 28px;
  position: relative;
  text-align: center;
  font-family: Georgia, serif;
  overflow: hidden;
}

.preview-cert-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-style: solid;
}
.pc-tl { top: 12px; left: 12px;  border-width: 2px 0 0 2px; }
.pc-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.pc-bl { bottom: 12px; left: 12px;  border-width: 0 0 2px 2px; }
.pc-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.preview-cert-badge {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.preview-cert h3 { font-size: 11px; color: #777; margin-bottom: 2px; font-family: Arial; }
.preview-cert h2 { font-size: 20px; margin-bottom: 12px; }

.preview-cert-rule { width: 100px; height: 1.5px; margin: 0 auto 12px; }
.preview-cert p { font-size: 10px; color: #666; font-family: Arial; line-height: 1.5; }
.preview-cert-name { font-size: 20px; margin: 8px 0 2px; }
.preview-cert-role { font-size: 9px; color: #888; font-family: Arial; }
.preview-cert-sigs { display: flex; justify-content: space-around; margin-top: 20px; }
.preview-cert-sig { text-align: center; font-size: 9px; font-family: Arial; color: #666; }
.preview-cert-sig-line { border-top: 1px solid #bbb; width: 80px; margin: 0 auto 3px; padding-top: 4px; }

@media (max-width: 900px) {
  .design-studio-body { grid-template-columns: 1fr; }
  .design-controls { border-right: none; border-bottom: 1px solid var(--border); max-height: none; }
  .preview-id-card { width: 100%; }
  .preview-cert { width: 100%; }
}

/* ============================================================
   CE BATCH 2001 ADDITIONS — countdown inside .hero-side
   (additive only; uses existing design tokens)
   ============================================================ */
.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1); margin: var(--space-2) 0;
}
.countdown-unit {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) 2px; text-align: center;
}
.countdown-num {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-xl); font-weight: 700; color: var(--gold); line-height: 1.1;
}
.countdown-lbl {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.55);
}
.donor-wall { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.donor-pill {
  background: var(--white); border: 1px solid var(--gold-border);
  border-radius: 40px; padding: 8px 18px;
  font-size: var(--fs-sm); box-shadow: var(--shadow-xs);
}
.donor-pill .role-badge { margin-left: 6px; }
