/* ==========================================================================
   NHHS & E.A. Laney High School Classes of 1977 — Combined 50th Reunion
   Design System: Balanced Dual-School Branding & Senior-Accessible Baseline (20px body)
   WCAG 2.1 AA/AAA High-Contrast Certified
   Wildcats: Orange (#EA580C) & Black (#111827)
   Buccaneers: Navy (#0B2341), Columbia Blue (#7BAFD4) & Athletic Gold (#FFC72C)
   50th Golden Jubilee: Metallic Gold (#D4AF37)
   ========================================================================== */

:root {
  /* Laney High School Tokens (Buccaneers) */
  --laney-navy: #0b2341;
  --laney-navy-dark: #07172c;
  --laney-navy-light: #163a66;
  --laney-blue: #003399;
  --laney-columbia: #7bafd4;
  --laney-columbia-tint: #f0f7fc;
  --laney-gold: #ffc72c;
  --laney-gold-deep: #b45309;
  --laney-text-accessible: #1e5f8a;

  /* New Hanover High School Tokens (Wildcats) */
  --nhhs-orange: #ea580c;
  --nhhs-orange-deep: #c84b00;
  --nhhs-orange-dark: #9a3412;
  --nhhs-orange-tint: #fff7ed;
  --nhhs-black: #111827;
  --nhhs-charcoal: #1f2937;

  /* 50th Golden Jubilee Shared Tokens */
  --gold-50th: #d4af37;
  --gold-50th-light: #fef08a;
  --gold-50th-tint: #fefce8;
  --gold-text-accessible: #854d0e;

  /* Neutral Canvas & Typography */
  --white: #ffffff;
  --cloud: #faf7f5;
  --surface-alt: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --success: #15803d;
  --warning-bg: #fffbeb;
  --warning-border: #d97706;

  /* Senior Accessibility Metrics */
  --font-base-size: 1.25rem; /* 20px */
  --font-line-height: 1.6;
  --min-touch-target: 48px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(11, 35, 65, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 35, 65, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-base-size);
  line-height: var(--font-line-height);
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--nhhs-orange);
  color: var(--white);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
  outline: 4px solid var(--gold-50th);
}

/* Committee Admin Bar & Preview Tools */
.placeholder-bar {
  display: none;
  background: var(--warning-bg);
  border-bottom: 2px solid var(--warning-border);
  color: var(--ink);
  font-size: 1rem;
  padding: 10px 20px;
}
body.admin-mode .placeholder-bar {
  display: block;
}
.placeholder-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.placeholder-badge {
  display: none;
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #d97706;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.02em;
}
body.show-placeholders .placeholder-badge {
  display: inline-block;
}
.admin-only-btn {
  display: none !important;
}
body.admin-mode .admin-only-btn {
  display: inline-flex !important;
}

/* Password Protection Gate Overlay (#passwordGate) */
body.gate-locked {
  overflow: hidden !important;
  height: 100vh !important;
}
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--laney-navy-dark);
  background-image:
    linear-gradient(180deg, rgba(7, 23, 44, 0.88) 0%, rgba(11, 35, 65, 0.96) 100%),
    url('images/nhhs-campus-backdrop.jpg');
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.password-gate.unlocked {
  display: none !important;
}
.password-gate-card {
  background: var(--white);
  border: 3px solid var(--gold-50th);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.gate-emblems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.gate-emblems img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
}
.gate-emblem-nhhs {
  border: 2px solid var(--nhhs-orange);
}
.gate-emblem-laney {
  border: 2px solid var(--laney-columbia);
}
.gate-gold-star {
  font-size: 1.6rem;
  color: var(--gold-50th);
}
.password-gate-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1.5px solid #dc2626;
  color: #991b1b;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
}

/* Layout Containers */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--laney-navy);
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: 2.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.kicker {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nhhs-orange-deep);
  margin-bottom: 8px;
}

.kicker.kicker-laney {
  color: var(--laney-text-accessible);
}

.kicker.kicker-gold {
  color: var(--gold-text-accessible);
}

.muted {
  color: var(--muted);
}

/* Sticky Navigation Header */
header.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--laney-navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-crests {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-crests img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-crests .nhhs-mini {
  border: 2px solid var(--nhhs-orange);
}

.brand-crests .laney-mini {
  border: 2px solid var(--laney-columbia);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--nhhs-orange-tint);
  color: var(--laney-navy);
}

.nav-links a.cta {
  background: linear-gradient(135deg, var(--nhhs-orange) 0%, #ff771a 100%);
  color: var(--white);
  font-weight: 700;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.nav-links a.cta:hover {
  background: var(--laney-navy);
  color: var(--gold-50th-light);
}

.menu-toggle {
  display: none;
  background: var(--laney-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section with Merged NHHS/Laney Watermark & Central Circular Hub
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--laney-navy-dark);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(7, 23, 44, 0.62) 0%, rgba(7, 23, 44, 0.22) 44%, rgba(7, 23, 44, 0.34) 100%),
    url('images/combined-nhhs-laney-backdrop.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 44px 0 48px;
  text-align: center;
  border-bottom: 5px solid var(--gold-50th);
}

.hero-merge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle-hub {
  width: 590px;
  min-height: 590px;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(7, 23, 44, 0.90) 0%, rgba(11, 35, 65, 0.96) 100%);
  border: 4px solid var(--gold-50th);
  box-shadow:
    0 0 0 7px rgba(7, 23, 44, 0.48),
    0 18px 46px rgba(0, 0, 0, 0.65);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.hero-crest-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.crest-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.crest-frame img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.crest-frame img:hover {
  transform: scale(1.06);
}

.crest-nhhs img {
  border: 3px solid var(--nhhs-orange);
  background: #000000;
}

.crest-laney img {
  border: 3px solid var(--laney-columbia);
  background: var(--laney-navy);
}

.crest-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crest-nhhs .crest-caption {
  color: #ffaa75;
}

.crest-laney .crest-caption {
  color: var(--laney-columbia);
}

/* Central 50th Golden Medallion */
.crest-jubilee {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1a8, #d4af37 65%, #854d0e 100%);
  border: 2.5px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 6px 14px rgba(0,0,0,0.5);
  color: #0b2341;
  padding: 4px;
  text-align: center;
}

.jubilee-year {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.jubilee-50 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  margin: 2px 0;
  color: #07172c;
}

.jubilee-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}

.hero .kicker {
  color: var(--gold-50th-light);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.05rem;
  line-height: 1.15;
  max-width: 460px;
  margin: 4px auto 10px;
}

.hero .lede {
  font-size: 1.02rem;
  line-height: 1.42;
  color: #e2e8f0;
  max-width: 440px;
  margin: 0 auto 14px;
}

.reunion-theme-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.18);
  border: 1.5px solid var(--gold-50th);
  color: var(--gold-50th-light);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  background: rgba(11, 35, 65, 0.82);
  border: 1.5px solid var(--gold-50th);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.date-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.date-pill-dot {
  color: var(--gold-50th);
  font-size: 1rem;
  user-select: none;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-height: 46px;
  padding: 10px 20px;
  font-size: 0.98rem;
}

/* ==========================================================================
   Friendly Turnout Challenge: Interactive Wildcats vs. Bucs Scale
   ========================================================================== */
.attendance-widget-card {
  background: var(--white);
  border: 3px solid var(--gold-50th);
  border-radius: var(--radius-md);
  padding: 36px 34px 28px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  max-width: 960px;
  box-shadow: var(--shadow-md);
}

.attendance-header {
  text-align: center;
  margin-bottom: 24px;
}

.turnout-subtitle {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--nhhs-orange-dark) 0%, var(--gold-text-accessible) 50%, var(--laney-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--laney-navy);
}

.turnout-scale-arena {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px 22px;
  margin-bottom: 24px;
}

.scale-contenders-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.scale-contender {
  background: var(--white);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  font-family: inherit;
}

.contender-nhhs {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.contender-laney {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.scale-contender:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.scale-contender.scale-heavy {
  transform: translateY(10px) scale(1.03);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28);
  border-color: var(--gold-50th);
}

.scale-contender.scale-light {
  transform: translateY(-8px) scale(0.97);
  opacity: 0.9;
}

.contender-pan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contender-pan img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.contender-nhhs .contender-pan img {
  border: 3px solid var(--nhhs-orange);
}

.contender-laney .contender-pan img {
  border: 3px solid var(--laney-blue);
}

.leader-crown {
  display: none;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-50th);
  color: var(--laney-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.scale-contender.is-winner .leader-crown {
  display: inline-block;
}

.contender-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 4px;
}

.contender-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Center Balance Beam & Fulcrum */
.scale-centerpiece {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.scale-beam-wrapper {
  position: relative;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scale-beam {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--nhhs-orange) 0%, var(--gold-50th) 50%, var(--laney-blue) 100%);
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.scale-beam.tilt-nhhs {
  transform: rotate(-11deg);
}

.scale-beam.tilt-laney {
  transform: rotate(11deg);
}

.beam-end {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.beam-left {
  background: var(--nhhs-orange);
}

.beam-right {
  background: var(--laney-blue);
}

.beam-pivot-cap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1a8, #d4af37 70%, #854d0e 100%);
  border: 2.5px solid #ffffff;
  color: var(--laney-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.scale-fulcrum {
  width: 0;
  height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 38px solid var(--laney-navy);
  margin-top: -4px;
}

.scale-base {
  width: 96px;
  height: 10px;
  background: var(--gold-50th);
  border-radius: 999px;
  border: 1.5px solid var(--laney-navy);
}

/* Interactive Tug-of-War Meter Track (No Numbers) */
.tug-meter-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.tug-meter-track {
  height: 22px;
  background: #e2e8f0;
  border-radius: 999px;
  display: flex;
  position: relative;
  overflow: visible;
  border: 2px solid var(--laney-navy);
}

.tug-fill-nhhs {
  height: 100%;
  background: linear-gradient(90deg, #c2410c, #ea580c);
  border-radius: 999px 0 0 999px;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.tug-fill-laney {
  height: 100%;
  background: linear-gradient(90deg, #003399, #7bafd4);
  border-radius: 0 999px 999px 0;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.tug-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-50th);
  border: 3px solid var(--laney-navy);
  color: var(--laney-navy);
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.tug-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  flex-wrap: wrap;
}

.tug-status-label {
  color: var(--laney-navy);
  background: var(--gold-50th-tint);
  border: 1px solid var(--gold-50th);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Mystery Lock / Winner Reveal Box */
.turnout-reveal-card {
  background: var(--surface-alt);
  border: 2px dashed var(--gold-50th);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
}

.turnout-reveal-card.is-revealed {
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
  border: 2.5px solid var(--gold-50th);
}

.mystery-lock-pill {
  display: inline-block;
  background: var(--laney-navy);
  color: var(--gold-50th-light);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
}

.mystery-lock-pill.unlocked {
  background: #15803d;
  color: #ffffff;
}

.turnout-footnote {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.nhhs-text {
  color: var(--nhhs-orange-dark);
}

.laney-text {
  color: var(--laney-navy);
}

/* Buttons (Senior Tap Targets: 52px-60px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 4px solid var(--nhhs-orange);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--nhhs-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d84e09;
  transform: translateY(-1px);
}

.btn-laney {
  background-color: var(--laney-navy);
  color: var(--gold-50th-light);
  border-color: var(--laney-columbia);
}

.btn-laney:hover {
  background-color: #07172c;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--laney-navy);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--nhhs-orange-deep);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

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

.btn-outline:hover {
  background-color: var(--nhhs-orange-tint);
  border-color: var(--nhhs-orange-deep);
  color: var(--nhhs-orange-deep);
}

/* Grid Systems */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Cards */
.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--nhhs-orange-tint);
  color: var(--nhhs-orange-deep);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card-icon.icon-laney {
  background: var(--laney-columbia-tint);
  color: var(--laney-navy);
}

.card-icon.icon-gold {
  background: var(--gold-50th-tint);
  color: var(--gold-text-accessible);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* Schedule Timeline */
.schedule-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-time {
  display: inline-block;
  background: var(--laney-navy);
  color: var(--gold-50th-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
}

/* Hotel Block Card */
.hotel-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #f0f7fc 0%, var(--white) 100%);
  border: 2px solid var(--laney-columbia);
  border-radius: var(--radius-md);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
}

.code-box {
  background: var(--white);
  border: 2px dashed var(--laney-blue);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.code-value {
  display: block;
  font-family: monospace;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--laney-navy);
  letter-spacing: 0.08em;
  margin: 6px 0 12px;
}

/* Activity List */
.activities-box {
  margin-top: 32px;
  background: var(--cloud);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 16px 0 0;
  padding-left: 22px;
}

/* Ticket Pricing Cards */
.ticket-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.ticket-card.featured {
  border-color: var(--gold-50th);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.ticket-badge-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-50th);
  color: #0b2341;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-hero {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--laney-navy);
  line-height: 1;
  margin: 16px 0 8px;
}

.price-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.ticket-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.ticket-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-features li::before {
  content: "✓";
  color: var(--nhhs-orange-deep);
  font-weight: 700;
}

/* Mail-in Check Box */
.mail-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--nhhs-orange-tint);
  border: 2px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 38px;
  text-align: center;
}

.address-pill {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 28px;
  margin: 18px 0 26px;
  font-weight: 600;
  text-align: left;
}

/* ==========================================================================
   Dual Yearbook Gallery Viewer (Tabs for NHHS & Laney)
   ========================================================================== */
.yearbook-mode-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 16px;
  padding: 8px 18px;
  background: var(--gold-50th-tint);
  border: 1.5px solid var(--gold-50th);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--laney-navy);
  text-align: center;
}

.yearbook-mode-banner.is-locked {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
}

.mode-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nhhs-orange);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

.yearbook-mode-banner.is-locked .mode-dot {
  background: var(--laney-navy);
  box-shadow: none;
  animation: none;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.yearbook-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.yearbook-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--laney-navy);
  cursor: pointer;
  transition: all 0.3s ease;
}

.yearbook-tab-btn.alternating-current {
  border-color: var(--gold-50th);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28);
  background: var(--gold-50th-tint);
}

.yearbook-tab-btn.active {
  background: var(--laney-navy);
  color: var(--white);
  border-color: var(--gold-50th);
}

.yearbook-tab-btn:hover:not(.active) {
  background: var(--nhhs-orange-tint);
  border-color: var(--nhhs-orange);
}

.viewer {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.viewer-stage {
  position: relative;
  background: #07172c;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  opacity: 1;
  transition: opacity 0.85s ease-in-out;
}

.viewer-stage img.fading-out {
  opacity: 0;
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 10px 14px;
}

#vCount {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--laney-navy);
  text-align: center;
}

.v-btn {
  min-height: 52px;
  padding: 10px 22px;
  background: var(--laney-navy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.v-btn:hover {
  background: var(--nhhs-orange);
  color: var(--white);
}

.thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 6px;
  margin-top: 14px;
}

.thumb-btn {
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: var(--laney-navy);
  cursor: pointer;
  flex: 0 0 110px;
  height: 72px;
  overflow: hidden;
}

.thumb-btn.active {
  border-color: var(--gold-50th);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section & Direct Contact Card */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-item:first-child {
  padding-top: 4px;
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--nhhs-orange-tint);
  color: var(--nhhs-orange-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-info-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-info-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--laney-navy);
  line-height: 1.4;
}

.contact-info-value a {
  color: var(--nhhs-orange-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Searchable 1977 Senior Class Roster Combobox */
.roster-combobox {
  position: relative;
}

.roster-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--laney-navy);
  border-radius: var(--radius-sm);
  max-height: 260px;
  overflow-y: auto;
  z-index: 2100;
  box-shadow: var(--shadow-md);
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.roster-dropdown.open {
  display: block;
}

.roster-option {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.roster-option:last-child {
  border-bottom: none;
}

.roster-option:hover,
.roster-option.active {
  background: var(--nhhs-orange-tint);
  color: var(--laney-navy);
}

.roster-status {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--muted);
  white-space: nowrap;
}

.roster-status.reserved {
  background: #dcfce7;
  color: #15803d;
}

.roster-status.nhhs-tag {
  background: #ffedd5;
  color: #c2410c;
}

.roster-status.laney-tag {
  background: #e0f2fe;
  color: #0369a1;
}

.roster-verified-banner {
  display: none;
  margin-top: 8px;
  padding: 10px 14px;
  background: #dcfce7;
  border: 1.5px solid #15803d;
  color: #14532d;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
}

/* Forms & Modals */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--laney-navy);
}

.form-control {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  font-size: 1.15rem;
  font-family: inherit;
  border: 2px solid #a1a1aa;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 23, 44, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  overflow-y: auto;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 740px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 3px solid var(--gold-50th);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.modal-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.choice-label {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  display: block;
  transition: all 0.15s ease;
}

.choice-label.selected {
  border-color: var(--nhhs-orange);
  background: var(--nhhs-orange-tint);
}

.choice-label.affiliation-laney.selected {
  border-color: var(--laney-blue);
  background: var(--laney-columbia-tint);
}

.choice-label input {
  margin-right: 6px;
  transform: scale(1.3);
}

.order-summary {
  background: var(--surface-alt);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 22px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  padding: 6px 0;
}

.summary-total {
  border-top: 2px solid var(--line);
  margin-top: 10px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--laney-navy);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 8px;
}

.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  max-width: 92vw;
}

/* Footer */
footer {
  background: var(--laney-navy-dark);
  color: #e2e8f0;
  text-align: center;
  padding: 56px 22px;
  border-top: 5px solid var(--gold-50th);
}

.footer-crests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-crests img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

footer a {
  color: var(--gold-50th-light);
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  header.nav nav {
    display: contents;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 18px;
    border-bottom: 3px solid var(--gold-50th);
    box-shadow: var(--shadow-md);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a,
  .nav-links a.cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}

@media (max-width: 880px) {
  .grid-3,
  .grid-2,
  .hotel-card,
  .contact-grid,
  .scale-contenders-row {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
  .activity-list {
    grid-template-columns: 1fr;
  }
  .choice-grid,
  .affiliation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-circle-hub {
    width: 100%;
    min-height: auto;
    border-radius: 38px;
    padding: 28px 18px;
  }
  .date-pill {
    flex-direction: column;
    border-radius: 18px;
    padding: 12px 16px;
    gap: 8px;
  }
  .date-pill-dot {
    display: none;
  }
  .hero-crest-cluster {
    gap: 10px;
  }
  .crest-frame img {
    width: 64px;
    height: 64px;
  }
  .crest-jubilee {
    width: 64px;
    height: 64px;
  }
  .jubilee-50 {
    font-size: 1.3rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1.125rem;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .section {
    padding: 54px 0;
  }
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #vCount {
    width: 100%;
    order: -1;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 14px;
  }
  .nav-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .brand {
    font-size: 0.85rem;
    gap: 8px;
    min-width: 0;
  }
  .brand-crest {
    width: 30px;
    height: 30px;
  }
  .menu-toggle {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .btn {
    padding: 12px 18px;
    font-size: 1rem;
    max-width: 100%;
  }
  .card,
  .ticket-card,
  .schedule-card,
  .hotel-card,
  .mail-card,
  .activities-box,
  .modal-dialog,
  .attendance-widget-card {
    padding: 20px 14px;
  }
  .address-pill {
    padding: 14px 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .viewer {
    padding: 16px 12px;
  }
  .lightbox {
    padding: 16px 10px;
  }
}
