/* ============================================
   GEHS Alumni — Modern Theme
   Colors: Spartan Green + Vintage Gold
   ============================================ */

:root {
  --green-darkest: #003d1a;
  --green-dark:    #004d1f;
  --green:         #006400;
  --green-light:   #1a7a2e;
  --green-pale:    #e8f3e8;
  --gold-dark:     #8a6404;
  --gold:          #BE8B06;
  --gold-light:    #E5A82E;
  --gold-pale:     #FFF8DC;
  --gold-glow:     #FFB627;
  --white:         #FFFFFF;
  --cream:         #FAF8F1;
  --gray-50:       #F7F7F4;
  --gray-100:      #EFEEE8;
  --gray-200:      #DDDCD3;
  --gray-400:      #999285;
  --gray-600:      #5C5648;
  --gray-800:      #2D2A22;
  --black:         #1A1814;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,40,10,0.08);
  --shadow-lg: 0 12px 40px rgba(0,40,10,0.15);
  --shadow-xl: 0 20px 60px rgba(0,40,10,0.2);
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Bebas Neue', 'Libre Baskerville', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white) !important;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent;
  color: var(--gold-light) !important;
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--white) !important;
}
.btn-large { padding: 18px 42px; font-size: 1.05rem; }

/* === HEADER === */
.site-header {
  background: linear-gradient(180deg, var(--green-darkest) 0%, var(--green-dark) 100%);
  border-bottom: 4px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.site-titles { display: flex; flex-direction: column; line-height: 1.1; }
.site-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.site-tagline {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* === NAV === */
.primary-nav { flex: 1; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.menu-list > li { position: relative; }
.menu-list > li > a {
  display: block;
  padding: 12px 18px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.menu-list > li > a:hover,
.menu-list > li.active > a {
  background: rgba(255,255,255,0.1);
  color: var(--gold-light);
}

/* === YEAR DROPDOWN === */
.has-dropdown .year-dropdown {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  min-width: 420px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
}
.has-dropdown:hover .year-dropdown,
.has-dropdown.open .year-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.year-dropdown-inner {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.year-link {
  display: block;
  padding: 10px 4px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-600);
  background: var(--gray-50);
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.year-link:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green);
}
.year-link.has-events {
  background: var(--gold-pale);
  color: var(--gold-dark);
  position: relative;
}
.year-link.has-events::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* === USER ACTIONS === */
.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.user-greet { font-weight: 600; color: var(--gold-light); }
.user-link {
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.user-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.login-link { background: rgba(255,179,0,0.15); border-color: var(--gold); color: var(--gold-light) !important; }
.login-link:hover { background: var(--gold); color: var(--white) !important; }

/* === HOME HERO === */
.home-hero {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(135deg, var(--green-darkest) 0%, var(--green-dark) 60%, var(--green) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(190,139,6,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,179,0,0.15) 0%, transparent 50%);
}
.home-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 40px,
      rgba(255,179,0,0.04) 40px, rgba(255,179,0,0.04) 41px);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 30px;
  max-width: 800px;
}
.hero-spartan {
  width: 130px;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 32px rgba(255,179,0,0.4));
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-shadow: 3px 4px 16px rgba(0,0,0,0.5);
}
.hero-gold {
  color: var(--gold-glow);
  position: relative;
}
.hero-gold::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 10%; right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-sub {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === HOME LAYOUT === */
.home-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
}
.home-main { min-width: 0; }

/* === SECTIONS === */
.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: 4px 12px;
  background: var(--gold-pale);
  border-radius: 4px;
  margin-bottom: 16px;
}
.intro-section,
.choose-year-section,
.how-it-works {
  margin-bottom: 80px;
}
.intro-section h2,
.choose-year-section h2,
.how-it-works h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.lead {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 720px;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--gold);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.feature-card h3 {
  margin: 20px 24px 8px;
  color: var(--green-dark);
}
.feature-card p {
  margin: 0 24px 24px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* === CLASS GRID === */
.gehs-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.gehs-year-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}
.gehs-year-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gehs-year-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gehs-year-card:hover::before { opacity: 1; }
.gehs-year-card.has-events {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 100%);
  border-color: var(--gold);
}
.gehs-year-card.has-events::before { opacity: 1; }
.year-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.class-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.15em;
  margin-top: 6px;
  font-weight: 600;
}
.event-indicator {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 8px;
  padding: 3px 8px;
  background: var(--gold-pale);
  border-radius: 4px;
}
.gehs-year-card:not(.has-events) .event-indicator {
  background: var(--green-pale);
  color: var(--green-dark);
}

/* === HOW IT WORKS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--gray-200);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: var(--green);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,100,0,0.3);
}
.step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--green-dark);
}
.step p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}
.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* === SIDEBAR === */
.events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.events-card,
.subscribe-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 4px solid var(--gold);
}
.events-card-title {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white) !important;
  margin: 0;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.events-icon { font-size: 1.2rem; }
.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-item {
  border-bottom: 1px solid var(--gray-100);
}
.event-item:last-child { border-bottom: none; }
.event-item a {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--gray-800);
  transition: background 0.15s ease;
}
.event-item a:hover {
  background: var(--gold-pale);
}
.event-date {
  flex-shrink: 0;
  width: 50px;
  text-align: center;
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: 3px 0;
  background: var(--white);
}
.event-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-pale);
  padding: 2px 0;
}
.event-day {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-dark);
  line-height: 1;
  margin: 2px 0;
}
.event-yr {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-400);
  padding-bottom: 2px;
}
.event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-class {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}
.event-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-top: 2px;
}
.event-time {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 2px;
}
.no-events {
  padding: 20px;
  color: var(--gray-400);
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* === SUBSCRIBE CARD === */
.subscribe-card { padding: 20px; }
.subscribe-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.subscribe-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.quick-subscribe {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-subscribe input,
.quick-subscribe select {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.quick-subscribe input:focus,
.quick-subscribe select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}
.quick-subscribe button {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}
.quick-subscribe button:hover { background: var(--green-dark); }

/* === CLASS PAGE HERO === */
.class-hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--green-darkest) 0%, var(--green) 100%);
  padding: 60px 30px;
  border-bottom: 5px solid var(--gold);
  overflow: hidden;
}
.class-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(190,139,6,0.2), transparent 60%);
}
.class-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.class-hero-spartan {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(255,179,0,0.4));
}
.class-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 4px;
  font-weight: 600;
}
.class-hero-year {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 0.9;
  margin: 0;
  text-shadow: 3px 4px 16px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}
.class-hero-sub {
  font-family: var(--sans);
  color: var(--gold-light);
  font-size: 1.05rem;
  font-style: italic;
  margin: 8px 0 0;
}

/* === CLASS LAYOUT === */
.class-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
}
.class-main { min-width: 0; }

.class-stats {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--green-dark);
}

.class-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.section-title {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: 1.5rem;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-pale);
}

/* === EVENT DETAIL CARDS === */
.event-detail-card {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}
.event-detail-card:last-child { border-bottom: none; padding-bottom: 0; }
.event-detail-card:first-of-type { padding-top: 0; }

.event-detail-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}
.event-detail-date .m {
  display: block;
  background: var(--green);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 0;
}
.event-detail-date .d {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  padding: 8px 0 4px;
}
.event-detail-date .y {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  padding-bottom: 6px;
}
.event-detail-info { flex: 1; }
.event-detail-info h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 1.25rem;
}
.event-detail-info .meta {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 4px 0;
}

/* === EMPTY STATE === */
.empty-class-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray-600);
}
.empty-class-state h2 {
  color: var(--gray-600);
  margin: 16px 0 12px;
  font-size: 1.4rem;
}
.empty-class-state p {
  max-width: 500px;
  margin: 0 auto 16px;
}
.empty-or {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* === PAST EVENTS === */
.past-events-section {
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  padding: 24px 36px;
}
.past-events-toggle summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 600;
  color: var(--gray-600);
  list-style: none;
  user-select: none;
}
.past-events-toggle summary::-webkit-details-marker { display: none; }
.past-events-toggle summary::after {
  content: '▾';
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.past-events-toggle[open] summary::after { transform: rotate(180deg); }
.past-icon { font-size: 1.3rem; }
.past-events-content { padding-top: 20px; }
.past-intro {
  color: var(--gray-400);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.past-event-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 3px solid var(--gold);
}
.past-event-card h4 {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 1.05rem;
}
.past-date {
  color: var(--gray-400);
  font-weight: 400;
  font-style: italic;
  font-size: 0.9rem;
}
.past-meta {
  color: var(--gray-600);
  font-size: 0.88rem;
  margin: 4px 0;
}
.past-event-card p { margin: 6px 0 0; font-size: 0.95rem; color: var(--gray-600); }

/* === INLINE SUBSCRIBE CTA === */
.class-subscribe-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 36px;
  text-align: center;
}
.class-subscribe-cta h3 {
  color: var(--gold-light);
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.class-subscribe-cta p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.inline-subscribe {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.inline-subscribe input {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* === GENERIC PAGE === */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 60px 30px;
  text-align: center;
  border-bottom: 5px solid var(--gold);
}
.page-hero h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 2px 4px 12px rgba(0,0,0,0.3);
}
.page-hero-inner { max-width: 1000px; margin: 0 auto; }
.page-hero .hero-sub {
  color: var(--gold-light);
  margin-top: 8px;
  font-size: 1.1rem;
}
.page-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.page-main {
  background: var(--white);
  padding: 40px 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}

/* === APPLY FORM === */
.apply-intro { margin-bottom: 30px; }
.apply-form { max-width: 700px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}
.form-field small {
  display: block;
  margin-top: 4px;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.form-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* === ALERTS === */
.alert {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  border-left: 5px solid;
}
.alert h3 { margin: 0 0 8px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-darkest);
}
.alert-error {
  background: #fff1f0;
  border-color: #d63031;
  color: #c0392b;
}

/* === FOOTER === */
.site-footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.85);
  margin-top: 80px;
  border-top: 4px solid var(--gold);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-spartan {
  width: 50px;
  filter: drop-shadow(0 4px 12px rgba(255,179,0,0.3));
}
.footer-title {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.footer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 4px 0 0;
}
.footer-meta {
  text-align: right;
  font-size: 0.88rem;
}
.footer-meta p { margin: 0; }

/* === RESPONSIVE === */
@media (max-width: 1000px) {
  .home-layout,
  .class-layout {
    grid-template-columns: 1fr;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .nav-toggle { display: block; order: 3; margin-left: auto; }
  .menu-list {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 5;
    margin-top: 12px;
    background: var(--green-darkest);
    border-radius: var(--radius);
    padding: 12px;
  }
  .menu-list.open { display: flex; }
  .menu-list > li > a { padding: 14px; }
  .has-dropdown .year-dropdown {
    position: static;
    min-width: 0;
    margin-top: 4px;
    max-height: 280px;
  }
  .year-dropdown-inner { grid-template-columns: repeat(4, 1fr); }
  .user-actions { order: 4; }
  .user-greet { display: none; }
  .feature-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .page-main { padding: 24px; }
  .class-section { padding: 20px; }
  .event-detail-card { flex-direction: column; gap: 12px; }
  .event-detail-date { width: 70px; }
}

@media (max-width: 480px) {
  .gehs-class-grid { grid-template-columns: repeat(3, 1fr); }
  .year-dropdown-inner { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* === GALLERY === */
.gallery-hero { background: linear-gradient(135deg, var(--green-darkest), var(--green)); }

.gallery-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.gallery-main {
  background: var(--white);
  padding: 40px 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
}

.gallery-intro { margin-bottom: 30px; }

.upload-toggle summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
}
.upload-toggle summary::-webkit-details-marker { display: none; }
.upload-toggle[open] summary {
  background: var(--gray-600);
  border-color: var(--gray-600);
}
.upload-toggle[open] summary::after { content: ' (cancel)'; font-size: 0.85rem; opacity: 0.7; }

.gallery-upload-form {
  background: var(--gray-50);
  border: 2px dashed var(--gold);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 20px;
  max-width: 700px;
}

.gallery-login-prompt {
  background: var(--gold-pale);
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  color: var(--gray-600);
}
.gallery-login-prompt a {
  color: var(--green);
  font-weight: 600;
}

/* === FILTERS === */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-100);
}
.filter-pill {
  padding: 6px 14px;
  background: var(--gray-50);
  color: var(--gray-600);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  background: var(--gold-pale);
  color: var(--gold-dark);
}
.filter-pill.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green-dark);
}

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.gallery-tile {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--gray-100);
}
.gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--gray-100);
}
.gallery-tile figcaption { padding: 12px 16px 16px; }
.gallery-tile h4 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
}
.tile-year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  background: var(--gold-pale);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.tile-caption {
  margin: 6px 0;
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.4;
}
.tile-author {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-style: italic;
}

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

/* === LIGHTBOX === */
.gehs-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.gehs-lightbox.open {
  display: flex;
  animation: lightboxFade 0.2s ease;
}
@keyframes lightboxFade {
  from { opacity: 0; } to { opacity: 1; }
}
.gehs-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid var(--gold);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover {
  background: var(--gold);
}

@media (max-width: 768px) {
  .gallery-main { padding: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-tile figcaption { padding: 10px; }
  .gallery-tile h4 { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === LOGIN MODAL === */
.gehs-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.gehs-modal.open { display: flex; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,30,10,0.85);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border-top: 5px solid var(--gold);
  animation: modalSlide 0.25s ease;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--green-dark); }

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.modal-spartan {
  width: 64px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 12px rgba(0,100,0,0.2));
}
.modal-header h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--green-dark);
}
.modal-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.modal-error {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-left: 4px solid #ff4d4f;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.modal-form .form-field { margin-bottom: 18px; }
.modal-form .form-field label {
  display: block;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.modal-form input[type=text],
.modal-form input[type=password],
.modal-form input[type=email] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.modal-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,100,0,0.1);
}
.password-wrap {
  position: relative;
}
.toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-400);
  padding: 0;
}
.form-check {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.form-check label { cursor: pointer; }

.btn-full { width: 100%; text-align: center; }

.modal-footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.85rem;
}
.modal-footer-links a {
  color: var(--gold-dark);
}
.modal-footer-links a:hover { color: var(--green); }

/* === USER MENU (logged in) === */
.user-menu-wrap { position: relative; }

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.user-menu-trigger:hover { background: rgba(255,255,255,0.18); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { font-size: 0.7rem; opacity: 0.7; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.user-menu-wrap.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--green-pale);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--gray-100);
}
.user-dropdown-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.user-dropdown-header strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green-dark);
}
.user-dropdown-header small {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
}
.user-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.user-dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 0.9rem;
  color: var(--gray-800);
  text-decoration: none;
  transition: background 0.15s ease;
}
.user-dropdown-menu li a:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}
.user-dropdown-menu .separator {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 0;
}
.user-dropdown-menu .logout-link { color: #c0392b !important; }
.user-dropdown-menu .logout-link:hover { background: #fff1f0 !important; }

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(190,139,6,0.15);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.login-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* === ABOUT PAGE === */
.about-hero-strip { margin: -40px -50px 30px; overflow: hidden; max-height: 280px; }
.about-school-photo { width: 100%; height: 280px; object-fit: cover; object-position: center 40%; display: block; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.about-main h2 { color: var(--green-dark); margin-top: 30px; }
.about-main h2:first-child { margin-top: 0; }
.about-main h3 { color: var(--green); margin-top: 24px; font-size: 1.15rem; }
.about-main ul { padding-left: 20px; }
.about-main ul li { margin-bottom: 8px; }
.about-main p:last-child { margin-bottom: 0; }

.about-info-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--green);
  margin-bottom: 20px;
}
.about-info-card h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
}
.fact-list {
  list-style: none;
  padding: 0; margin: 0;
}
.fact-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list li span:first-child { flex-shrink: 0; font-size: 1rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-hero-strip { margin: -24px -24px 24px; }
  .about-school-photo { height: 180px; }
}

/* === SCROLLABLE YEAR CARDS (home page) === */
.gehs-class-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 20px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--gray-100);
}
.gehs-class-grid::-webkit-scrollbar { height: 6px; }
.gehs-class-grid::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 3px; }
.gehs-class-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.gehs-year-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gehs-year-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
.gehs-year-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.gehs-year-card:hover::before { opacity: 1; }
.gehs-year-card.has-events { background: linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 100%); border-color: var(--gold); }
.gehs-year-card.has-events::before { opacity: 1; }

/* Scroll hint fade on right edge */
.choose-year-section { position: relative; }
.year-scroll-wrap { position: relative; }
.year-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 24px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--cream));
  pointer-events: none;
}

/* === MOBILE NAV — class years in accordion === */
@media (max-width: 768px) {
  .has-dropdown .year-dropdown {
    position: static;
    min-width: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.15);
    transition: max-height 0.3s ease;
  }
  .has-dropdown.open .year-dropdown {
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .year-dropdown-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px;
  }
  .year-link {
    font-size: 0.82rem;
    padding: 8px 4px;
    color: var(--white);
    background: rgba(255,255,255,0.1);
  }
  .year-link:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
  }
  .year-link.has-events {
    background: rgba(190,139,6,0.35);
    color: var(--gold-light);
  }
}

/* === PAGE MAINTAINED BY === */
.maintainers-section { background: var(--green-pale); border-left: 4px solid var(--green); }
.maintainers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.maintainer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  min-width: 180px;
}
.maintainer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.maintainer-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green-dark);
}
.officer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-pale);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 3px;
}

/* === GALLERY ATTRIBUTION WITH AVATAR === */
.tile-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--gray-100);
}
.tile-uploader-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.tile-author {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.3;
}

/* === USER HEADER AVATAR === */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.user-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
/* === GALLERY TILE ATTRIBUTION FIX === */
/* Override any inherited img styles that cause the oval */
.tile-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
  overflow: hidden;
}
.tile-uploader-avatar {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid var(--gold) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.tile-author {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  background: var(--gold-pale);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
  border-color: var(--green);
}

/* === CONTRIBUTOR TUTORIAL BANNER === */
.contributor-help-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contributor-help-bar strong { color: var(--gold-light); }
.contributor-help-bar a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
}
.contributor-help-bar .help-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.contributor-help-bar .help-link {
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--white) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s ease;
}
.contributor-help-bar .help-link:hover {
  background: rgba(255,255,255,0.25);
}

/* === CHRONOLOGICAL YEAR GRID (reversed order) === */
/* Year cards now render 1974 first, 2026 last */
/* The scroll hint still applies */

/* === CLASS POSTS SECTION === */
.class-posts-section { margin-top: 30px; }
.class-post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--green);
  transition: box-shadow 0.2s ease;
}
.class-post-card:hover { box-shadow: var(--shadow); }
.class-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.class-post-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--green-dark);
}
.class-post-meta time {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
}
.class-post-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.class-post-card h3 a { color: var(--green-dark); }
.class-post-card h3 a:hover { color: var(--gold-dark); }
.class-post-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
