/*
Greenleaves Classic Tour — special event branding
---------------------------------------------------
Real brand colours and logo, from the club's own Greenleaves brand deck.
Everything here is scoped under .greenleaves-page so it can't leak into
the rest of the site. Header/footer chrome above and below this template
still use the main site's dark theme deliberately (so the club's own
identity still frames the page) — only the actual event content area
switches to this different visual language.

Wordmark font: 'Rajdhani' (bold), matching the rest of the site's own
display type — already loaded sitewide, no extra font request needed.
*/

.greenleaves-page{
  --gl-cream: #FCF7EB;    /* Floral White */
  --gl-cream-2: #F3ECD9;  /* slightly deeper cream, for cards sitting on the base cream background */
  --gl-pine: #076858;     /* Pine Green */
  --gl-midnight: #043335; /* Midnight Green */
  --gl-orange: #E58800;   /* Fulvous */
  --gl-text-muted: #4C6862;

  background: var(--gl-cream);
  color: var(--gl-midnight);
  font-family: 'Work Sans', sans-serif;
}

.greenleaves-page .gl-wordmark{
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.greenleaves-page h2, .greenleaves-page h3{
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--gl-pine);
}

/* ---------- HERO ---------- */
.gl-hero{
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: var(--gl-midnight);
  text-align: center;
  padding-top: 40px;
}
.gl-hero-media{ position: absolute; inset: 0; }
.gl-hero-media img{ width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.gl-hero::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,51,53,0.55) 0%, rgba(4,51,53,0.92) 100%);
}
.gl-hero-inner{ position: relative; z-index: 2; padding-bottom: 50px; }
.gl-kicker{
  font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px; color: var(--gl-cream); opacity: 0.75; margin-bottom: 22px;
}
.gl-badge-icon{ width: 180px; height: auto; margin: 0 auto 18px; display: block; }
.gl-hero .gl-wordmark{ font-size: clamp(38px, 7vw, 68px); color: var(--gl-cream); }
.gl-hero .gl-subtitle{
  font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gl-orange); font-size: clamp(14px, 2vw, 18px); margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.gl-subtitle::before, .gl-subtitle::after{ content: ""; width: 32px; height: 1px; background: var(--gl-orange); }
.gl-lede{ color: var(--gl-cream); opacity: 0.85; max-width: 48ch; margin: 26px auto 0; font-size: 16px; line-height: 1.6; }


/* ---------- EVENT DETAILS PLATE — bigger, more prominent than a plain
   meta line, since date/location/entry deadline are the most important
   practical facts on the page. Echoes the brand deck's rally-plate
   shape: a solid date block anchoring a clear info list. ---------- */
.gl-event-plate{
  display: flex; align-items: stretch; gap: 24px; flex-wrap: wrap;
  background: var(--gl-cream-2); border: 1px solid rgba(7,104,88,0.15);
  border-radius: 8px; padding: 26px 28px; margin-top: 30px;
}
.gl-plate-date{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 10px; border: 3px solid var(--gl-orange);
  background: var(--gl-pine); color: var(--gl-cream); flex: none;
}
.gl-plate-day{ font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 38px; line-height: 1; }
.gl-plate-month{ font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; color: var(--gl-orange); font-weight: 700; }
.gl-plate-info{ display: flex; flex-direction: column; justify-content: center; gap: 10px; flex: 1; min-width: 220px; }
.gl-plate-row{ display: flex; align-items: center; gap: 12px; color: var(--gl-text-muted); font-size: 15px; }
.gl-plate-row svg{ width: 19px; height: 19px; flex: none; color: var(--gl-pine); }
.gl-plate-row-primary{ font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 19px; color: var(--gl-midnight); text-transform: uppercase; letter-spacing: 0.01em; }
.gl-plate-row-primary svg{ color: var(--gl-orange); }
.gl-plate-row-deadline{ color: var(--gl-orange); font-weight: 600; }
.gl-plate-row-deadline svg{ color: var(--gl-orange); }

/* ---------- STATS STRIP ---------- */
.gl-stats-strip{
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--gl-pine); border-radius: 4px; overflow: hidden;
  margin: 28px 0 8px;
}
.gl-stat{
  flex: 1 1 160px; text-align: center; padding: 22px 16px;
  border-right: 1px solid rgba(252,247,235,0.15);
}
.gl-stat:last-child{ border-right: none; }
.gl-stat-value{
  display: block; font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 19px; color: var(--gl-cream);
}
.gl-stat-label{
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gl-orange); margin-top: 4px;
}

/* ---------- CONTENT (drop cap, pull-quotes, wide images) ---------- */
.gl-content{ padding: 40px 0; font-size: 16.5px; line-height: 1.75; color: var(--gl-midnight); max-width: 68ch; }
.gl-content p{ margin: 0 0 20px; }
.gl-content h2, .gl-content h3{ margin: 30px 0 14px; }
.gl-content a{ color: var(--gl-pine); text-decoration: underline; }
.gl-content > p:first-of-type::first-letter{
  font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--gl-pine);
  font-size: 64px; line-height: 0.8; float: left; margin: 6px 8px 0 0;
}
.gl-content blockquote{
  border-left: 4px solid var(--gl-orange); margin: 32px 0; padding: 4px 0 4px 22px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.4;
  color: var(--gl-pine); text-transform: none;
}
.gl-content img{ border-radius: 4px; margin: 20px 0; }
.gl-content .alignwide, .gl-content .alignfull{
  max-width: none; width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw; border-radius: 0;
}
.gl-content .alignwide{ width: 130%; margin-left: -15%; margin-right: -15%; }

/* ---------- PHOTO GRID ---------- */
.gl-photo-section{ margin: 10px 0 44px; }
.gl-photo-kicker{
  font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gl-orange); font-size: 13px; margin-bottom: 14px;
}
.gl-photo-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gl-photo-grid .m-item{ display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.gl-photo-grid .m-item img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.gl-photo-grid .m-item:hover img{ transform: scale(1.05); }
@media (max-width: 700px){ .gl-photo-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- RESULTS (reuses the shared results table, restyled) ---------- */
.gl-results .results-block{ margin: 20px 0 40px; }
.gl-results .num.mono{ color: var(--gl-orange) !important; font-family: 'Work Sans', sans-serif !important; }
.gl-results h2{ color: var(--gl-pine); }
.gl-results .results-section-label{ color: var(--gl-orange) !important; border-top-color: rgba(7,104,88,0.15) !important; }
.gl-results .results-table th{ color: var(--gl-text-muted) !important; border-bottom-color: rgba(7,104,88,0.15) !important; }
.gl-results .results-table td{ color: var(--gl-midnight) !important; border-bottom-color: rgba(7,104,88,0.15) !important; }
.gl-results .results-row.is-top3 .results-pos{ color: var(--gl-orange) !important; }
.gl-results .results-car, .gl-results .results-codriver{ color: var(--gl-text-muted) !important; }

/* ---------- BUTTONS ---------- */
.gl-cta-row{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 30px 0 50px; }
.gl-btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 13px 26px; border-radius: 3px; text-decoration: none; border: none; cursor: pointer;
}
.gl-btn-primary{ background: var(--gl-orange); color: var(--gl-midnight); }
.gl-btn-primary:hover{ background: #c97900; }
.gl-btn-outline{ background: transparent; border: 1px solid var(--gl-pine); color: var(--gl-pine); }
.gl-btn-outline:hover{ background: var(--gl-pine); color: var(--gl-cream); }

.gl-back-link{ padding-bottom: 60px; }
.gl-back-link a{ color: var(--gl-text-muted); font-size: 14px; text-decoration: underline; }
.gl-back-link a:hover{ color: var(--gl-pine); }

@media (max-width: 700px){
  .gl-hero{ min-height: 48vh; padding-top: 30px; }
  .gl-hero-inner{ padding-bottom: 34px; }
  .gl-badge-icon{ width: 130px; }
  .gl-event-plate{ padding: 20px; gap: 16px; }
  .gl-plate-date{ width: 80px; height: 80px; }
  .gl-plate-day{ font-size: 30px; }
}
