﻿/* Copied unchanged from the Contentful block 6mSlgx4MJUi4jXv0o6yUx7 on Nov 13 2026. Do not edit in place: upload a new version. */
/* ═══════════════════════════════════════════════════════════════
     TRACKERS EVENT PAGES — SHARED CSS 2 of 2: SLIDESHOW HERO
     Paste SECOND on every event page, after the universal block.
     Styles the .tc-event hero: quadrants, intro card, slideshow.
════════════════════════════════════════════════════════════════ */

/* ══ HERO with slideshow ══ */
.tc-event .hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 48px 0;
}
/* Four-quadrant background: real elements in a 2x2 grid.
   The 6px grid gap over the white hero background IS the cross line.
   Repaints reliably during window resize, unlike calc'd gradients. */
.tc-event .hero-quads {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  z-index: 0;
  pointer-events: none;
}
/* Quadrant colors match the homepage showcase: brown (Wilders)
   upper-left, red (Artisans) upper-right, green (Rangers) lower-left,
   blue (Mariners) lower-right. Spans run UL, UR, LL, LR. */
.tc-event .hero-quads span:nth-child(1) { background: var(--g-wilder); }
.tc-event .hero-quads span:nth-child(2) { background: var(--g-artisan); }
.tc-event .hero-quads span:nth-child(3) { background: var(--g-forest); }
.tc-event .hero-quads span:nth-child(4) { background: var(--g-mariner); }
.tc-event .hero-inner {
  position: relative;
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 34px;
  /* Flex-wrap layout: stacks by itself when there is no room for
     two columns. Does NOT depend on media queries firing. */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  z-index: 1;
}
.tc-event .hero-intro {
  position: relative; z-index: 2;
  flex: 1 1 440px;
  max-width: 660px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 34px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.tc-event .hero-media {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 22px;
}
.tc-event .hero-media-label {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: #7a7a7a; margin-right: 8px;
}
.tc-event .hero-media img {
  height: 56px; width: auto; opacity: 0.7;
  /* These Contentful assets are white logos (made for the old dark
     hero) — brightness(0) renders them as dark silhouettes on white */
  filter: brightness(0);
}
.tc-event .hero-intro p { margin-bottom: 22px; }
.tc-event .hero-title {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 36px; line-height: 1.08; font-weight: 900;
  letter-spacing: -0.8px; color: var(--ink); margin: 0 0 8px;
}
.tc-event .hero-subtitle {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 19px; line-height: 1.25; font-weight: 800;
  color: var(--green); margin: 0 0 12px;
}
.tc-event .hero-when {
  font-size: 14px; font-weight: 700; line-height: 1.6;
  color: var(--ink); margin: 0 0 16px;
}
.tc-event .hero-when .hero-when-icon { margin-right: 4px; }
.tc-event .slide-cap {
  position: absolute; right: 18px; bottom: 14px; z-index: 4;
  background: rgba(18,18,18,.58); color: #fff;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800; font-size: .85rem; letter-spacing: .02em;
  padding: .35rem .85rem; border-radius: 999px;
}
.tc-event .hero-lead {
  font-size: 16px; line-height: 1.5; font-weight: 700;
  color: var(--ink); margin: 0 0 10px;
}
.tc-event .hero-lead b { color: var(--green); }
.tc-event .hero-desc {
  font-size: 15px; line-height: 1.72; color: var(--mute); margin: 0 0 26px;
}
.tc-event .hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; background: var(--green); color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 4px 16px rgba(59,83,35,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.tc-event .hero-cta:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,83,35,0.34);
  color: #fff; text-decoration: none;
}
.tc-event .hero-cta svg { width: 16px; height: 16px; }
.tc-event .hero-slider {
  position: relative; z-index: 3;
  flex: 1.4 1 560px;
  min-width: 0;
  /* Matches the homepage showcase frame (912x520 at full width) */
  height: 500px; /* fallback for browsers without aspect-ratio */
  background: #fff; border-radius: 24px; padding: 6px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.15);
}
@supports (aspect-ratio: 1) {
  .tc-event .hero-slider {
    height: auto;
    aspect-ratio: 912 / 520;
    min-height: 300px;
    max-height: 620px;
  }
}
.tc-event .hero-slider-inner {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 18px; background: #ddd;
}
.tc-event .hero-slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0;
  transition: opacity 1s ease, transform 6s ease;
  transform: scale(1.035);
}
.tc-event .hero-slide.active { opacity: 1; transform: scale(1); }
.tc-event .hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tc-event .hero-dots {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: 7px;
}
.tc-event .hero-dot {
  width: 4px; height: 14px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all 0.25s ease; padding: 0;
}
.tc-event .hero-dot.active { height: 30px; background: rgba(255,255,255,0.95); }

/* ── Hero motion notes ───────────────────────────────────────── */
/* Slides: no layer promotion; the crossfade composites fine without it */
.tc-event .hero-slide { backface-visibility: hidden; }
.tc-event .hero-slider-inner { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) {
  .tc-event .hero-slide { transition: opacity .3s ease; transform: none; }
  .tc-event .hero-slide.active { transform: none; }
  .tc-event .hero-cta { transition: none; }
}
/* ── Hero responsive ─────────────────────────────────────────── */
/* The hero layout no longer depends on these: flex-wrap stacks it
   on its own. These queries are polish only, and the hero still
   works if they never fire. */
/* Desktop enhancement: card and slideshow connect. The photo overlaps
   a text-free white flap that extends off the card's right edge, so
   the card's own text zone is never underneath the photo. Below this
   width the safe 20px-gap wrap layout is the fallback. */
@media (min-width: 1120px) {
  .tc-event .hero-inner { gap: 0; container-type: inline-size; }
  .tc-event .hero-intro {
    /* Text column and photo keep homepage sizing (44% / 660px) */
    flex: 0 0 min(44%, 660px);
    max-width: none;
    border-radius: 20px 0 0 20px;
    padding-right: 50px;
  }
  .tc-event .hero-slider {
    /* flex-basis 0: the photo fills the remainder and can never
       force a wrap. Height flexes with a 440px floor in modern
       browsers; the cq declaration is simply dropped by older ones,
       which then use the base 912/520 aspect behavior. */
    flex: 1 1 0;
    min-width: 0;
    height: clamp(440px, 33cqw, 520px);
  }
  .tc-event .hero-intro::after {
    /* Excess white flap: stretches from the card's edge exactly to
       the quadrant centerline (64px static fallback). */
    content: ""; position: absolute;
    top: 0; bottom: 0; left: 100%;
    width: 64px;
    width: calc(50cqw - min(44cqw, 660px));
    background: #fff;
  }
}

/* Single stack threshold: below the desktop enhancement, the hero is
   always one column with the photo on top. No wrap band, no order
   swap mid-row, one clean transition at 1120px. */
@media (max-width: 1119px) {
  .tc-event .hero { padding: 28px 0; }
  .tc-event .hero-inner {
    display: flex; flex-direction: column;
    /* Tighter side padding on stacked layouts; the slider height
       calc below must match (16:9 of 100vw minus 32px padding). */
    padding: 0 16px; gap: 14px;
  }
  .tc-event .hero-slider {
    order: -1; width: 100%; border-radius: 16px;
    /* FLEX-BASIS RESET, REQUIRED: in this column layout the base
       flex: 1.4 1 560px makes 560px the VERTICAL basis, and flex
       sizing overrides the height property on the main axis even
       with !important. Without this line the slider renders as a
       tall portrait clamped at max-height. */
    flex: 0 0 auto;
    /* Stacked default: exact 16:9 of the slider's own width
       (100vw minus the 68px inner padding), computed with plain
       calc so it works in every browser with no at-rule tricks.
       min-height cleared so nothing can inflate the frame. */
    height: calc(56.25vw - 18px) !important;
    min-height: 0 !important;
    max-height: 540px;
    aspect-ratio: auto !important;
  }
  .tc-event .hero-intro  {
    width: 100%; border-radius: 16px; padding: 26px 24px; max-width: none;
    /* Same flex-basis reset: the base flex: 1 1 440px would give the
       intro card a 440px vertical basis in column mode, inflating it
       past its content on short cards. */
    flex: 0 0 auto;
  }
  .tc-event .hero-title { font-size: 30px; }
  .tc-event .hero-subtitle { font-size: 17px; }
  .tc-event .hero-dots { display: none; }
}
@media (max-width: 520px) {
  .tc-event .hero-title { font-size: 25px; }
  .tc-event .hero-desc { font-size: 14px; }
  .tc-event .hero-cta { width: 100%; justify-content: center; }
}
