/* =================================================
   MARATHON PAGE (/marathon/)
   Inspired by marathon.improvlore.com
   All Play No Work – 12-Hour Improv Festival
   ================================================= */

:root {
  --apnw-cyan: #19bdea;
  --apnw-cyan-soft: #53b8dd;
  --apnw-blue-dark: #0f7ca5;
  --apnw-navy: #084c6c;
  --apnw-navy-card: #0c435e;
  --apnw-navy-surface: #0a3a52;
  --apnw-navy-border: #1a6082;
  --apnw-red: #df5b62;
  --apnw-red-light: #ff757d;
  --apnw-yellow: #f1e388;
  --apnw-yellow-bright: #ffe642;
  --apnw-text-light: #f6fcff;
  --apnw-text-muted: #c9e8f6;
  --apnw-text-dim: #9dc5d9;
}

/* -------------------------------------------------
   HERO CONTAINER (Themed Banner Frame)
------------------------------------------------- */

.marathon-hero-wrap {
  position: relative;
  background: radial-gradient(circle at 20% 15%, #29bce7 0%, var(--apnw-blue-dark) 42%, var(--apnw-navy) 100%);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.25rem;
  color: var(--apnw-text-light);
  overflow: hidden;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .marathon-hero-wrap {
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
  }
}

/* Subtle background accent glow */
.marathon-hero-wrap::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(241, 227, 136, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.marathon-hero-content {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------
   HERO TOPBAR (Streamlined Tags + Live Countdown)
------------------------------------------------- */

.marathon-hero-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.marathon-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.marathon-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--apnw-navy-surface);
  color: var(--apnw-text-light);
  box-shadow: 2px 2px 0 var(--ink);
}

.marathon-tag--edition {
  background: var(--apnw-yellow);
  color: var(--ink);
}

.marathon-tag--venue {
  background: rgba(6, 40, 58, 0.7);
  color: var(--apnw-yellow);
  border-color: var(--apnw-cyan-soft);
}

.marathon-tag--highlight {
  background: var(--apnw-red);
  color: #fff;
}

.marathon-tag--time {
  background: #fff;
  color: var(--ink);
}

.marathon-tag--pending {
  background: var(--apnw-red);
  color: #fff;
}

/* -------------------------------------------------
   HERO 2-COLUMN LAYOUT & BRAND ROW
------------------------------------------------- */

.marathon-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .marathon-hero-split {
    grid-template-columns: 1fr 1.22fr;
    gap: 2.25rem;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .marathon-hero-split {
    grid-template-columns: 1fr 1.3fr;
    gap: 2.75rem;
  }
}

.marathon-hero-intro-col {
  display: flex;
  flex-direction: column;
}

.marathon-hero-brand-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

.marathon-hero-headings {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.marathon-poster-frame {
  position: relative;
  max-width: 120px;
  flex-shrink: 0;
  width: 100%;
}

@media (max-width: 600px) {
  .marathon-hero-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .marathon-poster-frame {
    max-width: 90px;
  }
}

/* -------------------------------------------------
   BOLD NON-LINEAR FESTIVAL COUNTDOWN CANVAS
------------------------------------------------- */

.marathon-nonlinear-timer {
  background: linear-gradient(150deg, #092c42 0%, #031622 55%, #010a10 100%);
  border: 3.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.15);
  padding: 1.1rem 1.15rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

/* Vibrant warm ambient burst */
.marathon-nonlinear-timer::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 230, 66, 0.22) 0%, rgba(32, 178, 226, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

/* -------------------------------------------------
   ASYMMETRICAL MOSAIC GRID
------------------------------------------------- */

.timer-mosaic-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.95fr 0.95fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.timer-block {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  box-sizing: border-box;
}

/* 1. DAYS BLOCK: Large Asymmetrical Hero */
.timer-block--days {
  grid-row: 1 / span 2;
  grid-column: 1;
  background: var(--apnw-yellow);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.1rem 1.15rem;
  transform: rotate(-1.5deg);
}

.timer-block--days:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.timer-block--days .timer-badge-pill {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--ink);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-block;
}

.timer-block--days .timer-num {
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 6.5vw, 6.8rem);
  font-weight: 900;
  line-height: 0.86;
  color: var(--ink);
  letter-spacing: -0.04em;
  display: block;
  margin: 0.35rem 0;
  font-variant-numeric: tabular-nums;
}

.timer-block--days .timer-block-foot {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(26, 26, 26, 0.82);
  text-transform: uppercase;
}

/* 2. HOURS BLOCK: Vivid Festival Cyan */
.timer-block--hours {
  grid-row: 1;
  grid-column: 2 / span 2;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.85rem 1.1rem;
  transform: rotate(1deg);
}

.timer-block--hours:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.timer-block--hours .timer-block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.timer-block--hours .timer-badge-pill {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: #fff;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  text-transform: uppercase;
}

.timer-mini-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-block--hours .timer-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.4vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
  color: #fff;
  text-shadow: 2.5px 2.5px 0 var(--ink);
  letter-spacing: -0.03em;
  display: block;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

/* 3. MINUTES BLOCK: Warm Clean Cream */
.timer-block--minutes {
  grid-row: 2;
  grid-column: 2;
  background: #fffbf2;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.75rem 0.95rem;
  transform: rotate(-1.2deg);
}

.timer-block--minutes:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.timer-block--minutes .timer-badge-pill {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.timer-block--minutes .timer-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.8vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: block;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

/* 4. SECONDS LIVE BLOCK: Electric Coral Red */
.timer-block--seconds {
  grid-row: 2;
  grid-column: 3;
  background: linear-gradient(135deg, #ff5757 0%, #e11d48 100%);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.75rem 0.95rem;
  transform: rotate(1.5deg);
}

.timer-block--seconds:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.timer-block--seconds .timer-badge-pill--live {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.timer-block--seconds .timer-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.8vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: #ffe642;
  text-shadow: 2px 2px 0 var(--ink);
  letter-spacing: -0.03em;
  display: block;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

/* Tablet Layout (768px - 959px) */
@media (min-width: 768px) and (max-width: 959px) {
  .marathon-hero-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .marathon-nonlinear-timer {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .timer-mosaic-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0.85rem;
  }
}

/* Mobile Layout (<768px) - Compact & Sleek */
@media (max-width: 767px) {
  .marathon-hero-split {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .marathon-nonlinear-timer {
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    border-width: 2.5px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .timer-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0.45rem;
  }

  /* Compact DAYS banner spanning all 3 columns */
  .timer-block--days {
    grid-column: 1 / span 3;
    grid-row: 1;
    padding: 0.5rem 0.85rem;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .timer-block--days:hover {
    transform: translateY(-2px);
  }

  .timer-block--days .timer-num {
    font-size: 2.85rem;
    margin: 0;
    line-height: 1;
  }

  .timer-block--days .timer-badge-pill {
    font-size: 0.68rem;
    padding: 0.18rem 0.55rem;
  }

  /* Compact 3-column row for HOURS, MINUTES, SECONDS */
  .timer-block--hours {
    grid-column: 1;
    grid-row: 2;
    padding: 0.45rem 0.35rem;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .timer-block--hours:hover {
    transform: translateY(-2px);
  }

  .timer-block--hours .timer-num {
    font-size: 1.95rem;
    margin-top: 0.1rem;
    line-height: 1;
  }

  .timer-block--hours .timer-badge-pill {
    font-size: 0.6rem;
    padding: 0.12rem 0.35rem;
  }

  .timer-block--minutes {
    grid-column: 2;
    grid-row: 2;
    padding: 0.45rem 0.35rem;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .timer-block--minutes:hover {
    transform: translateY(-2px);
  }

  .timer-block--minutes .timer-num {
    font-size: 1.95rem;
    margin-top: 0.1rem;
    line-height: 1;
  }

  .timer-block--minutes .timer-badge-pill {
    font-size: 0.6rem;
  }

  .timer-block--seconds {
    grid-column: 3;
    grid-row: 2;
    padding: 0.45rem 0.35rem;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .timer-block--seconds:hover {
    transform: translateY(-2px);
  }

  .timer-block--seconds .timer-num {
    font-size: 1.95rem;
    margin-top: 0.1rem;
    line-height: 1;
  }

  .timer-block--seconds .timer-badge-pill--live {
    font-size: 0.6rem;
  }
}

.marathon-poster-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.marathon-poster-frame:hover .marathon-poster-img {
  transform: scale(1.04) rotate(-1.5deg);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.marathon-hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.45rem;
  text-shadow: 2px 2px 0 var(--ink);
}

@media (min-width: 768px) {
  .marathon-hero-title {
    font-size: 2.35rem;
  }
}

@media (min-width: 1100px) {
  .marathon-hero-title {
    font-size: 2.65rem;
  }
}

.marathon-hero-timing {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apnw-text-light);
  background: rgba(6, 40, 58, 0.65);
  border: 2px solid var(--apnw-cyan-soft);
  border-radius: 10px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.75rem;
}

.timing-chip {
  white-space: nowrap;
}

.timing-chip--highlight {
  color: var(--apnw-yellow);
  font-weight: 800;
}

.marathon-hero-lede {
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--apnw-text-muted);
  max-width: 44rem;
  margin: 0 0 1.15rem;
}

.marathon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.marathon-hero-community {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--apnw-yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0.4rem 0.6rem;
  transition: color 0.15s ease;
}

.marathon-hero-community:hover {
  color: #fff;
}

@media (max-width: 560px) {
  .marathon-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .marathon-hero-actions .btn-apnw-primary,
  .marathon-hero-actions .btn-apnw-ghost {
    width: 100%;
    min-height: 48px;
    font-size: 1.02rem;
    text-align: center;
  }

  .marathon-hero-community {
    justify-content: center;
  }
}

/* Action buttons on hero */
.btn-apnw-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: 3px solid var(--ink);
  background: var(--apnw-yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-apnw-primary:hover {
  background: var(--apnw-yellow-bright);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
}

.btn-apnw-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: 2.5px solid var(--apnw-text-light);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-apnw-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translate(-1px, -1px);
}

/* -------------------------------------------------
   STATS GRID
------------------------------------------------- */

.marathon-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 2rem 0 3rem;
}

@media (min-width: 560px) {
  .marathon-stats-grid {
    gap: 1.25rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }
}

.marathon-stat-card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 0.85rem 0.4rem;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

@media (min-width: 560px) {
  .marathon-stat-card {
    padding: 1.25rem 1rem;
    box-shadow: 4px 4px 0 var(--ink);
  }
}

.marathon-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

@media (min-width: 560px) {
  .marathon-stat-num {
    font-size: 2.4rem;
    margin-bottom: 0.35rem;
  }
}

.marathon-stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

@media (min-width: 560px) {
  .marathon-stat-label {
    font-size: 0.88rem;
  }
}

.marathon-stat-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (min-width: 560px) {
  .marathon-stat-sub {
    font-size: 0.8rem;
    margin-top: 0.2rem;
  }
}

/* -------------------------------------------------
   FORMAT EXPLAINER (Show vs Jam vs Workshop)
------------------------------------------------- */

.marathon-formats-wrap {
  margin: 3rem 0;
}

.marathon-formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .marathon-formats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.marathon-format-card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
}

.marathon-format-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.marathon-format-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 2px solid var(--ink);
}

.pill-show {
  background: var(--yellow);
  color: var(--ink);
}

.pill-jam {
  background: var(--green);
  color: var(--ink);
}

.pill-workshop {
  background: var(--pink);
  color: #fff;
}

.pill-latenight {
  background: #18072b;
  color: #fdf4ff;
  border: 1.5px solid #d946ef;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.55), 2px 2px 0 var(--ink);
  text-shadow: 0 0 6px rgba(217, 70, 239, 0.8);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.marathon-format-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.marathon-format-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
  flex-grow: 1;
}

/* -------------------------------------------------
   SCHEDULE / TIMELINE (The 12-Hour Running Order)
------------------------------------------------- */

.marathon-timeline-wrap {
  margin: 1.5rem 0 3.5rem;
}

.marathon-schedule-intro {
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------
   LINEUP NOTICE (Act List Dropping Soon)
------------------------------------------------- */

.marathon-lineup-notice {
  background: radial-gradient(circle at 15% 50%, #2099c2 0%, var(--apnw-blue-dark) 50%, var(--apnw-navy) 100%);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.4rem;
  color: #fff;
  margin: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .marathon-lineup-notice {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 2rem;
    gap: 2rem;
  }
}

.marathon-lineup-notice-left {
  max-width: 32rem;
  flex: 1 1 auto;
}

.marathon-lineup-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--apnw-yellow);
  color: var(--ink);
  margin-bottom: 0.6rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.marathon-lineup-notice-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .marathon-lineup-notice-title {
    font-size: 1.65rem;
  }
}

.marathon-lineup-notice-desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--apnw-text-muted);
  margin: 0;
}

/* Lineup notice ticket preview */
.marathon-lineup-notice-ticket {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.marathon-ticket-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  cursor: pointer;
}

.marathon-ticket-preview-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transform: rotate(-2.5deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.marathon-ticket-preview-wrap:hover .marathon-ticket-preview-img {
  transform: rotate(0deg) scale(1.05);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.6));
}

.marathon-lineup-notice-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* -------------------------------------------------
   SCHEDULE LIST & TIMELINE CARDS
------------------------------------------------- */

.marathon-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0 3.5rem;
}

.marathon-schedule-card {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 860px) {
  .marathon-schedule-card {
    display: grid;
    grid-template-columns: 130px 280px 1fr 160px;
    gap: 1.5rem;
    padding: 1.6rem 1.75rem;
    align-items: center;
  }
}

@media (min-width: 1140px) {
  .marathon-schedule-card {
    grid-template-columns: 140px 340px 1fr 180px;
    gap: 1.75rem;
  }
}

.marathon-schedule-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.marathon-schedule-card--latenight {
  background: linear-gradient(135deg, #fdf8ff 0%, var(--surface) 100%);
  border-color: #a855f7;
  box-shadow: 6px 6px 0 var(--ink), 0 0 24px rgba(168, 85, 247, 0.2);
  position: relative;
}

.marathon-schedule-card--latenight:hover {
  box-shadow: 8px 8px 0 var(--ink), 0 0 32px rgba(168, 85, 247, 0.35);
}

.marathon-schedule-card--latenight .marathon-schedule-kicker {
  color: #c026d3;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-shadow: 0 0 10px rgba(217, 70, 239, 0.45);
}

.neon-text-afterdark {
  color: #9333ea;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.7), 0 0 20px rgba(168, 85, 247, 0.4);
  font-style: italic;
  font-weight: 900;
}

/* Time Column */
.marathon-schedule-time-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 2px dashed var(--border-soft);
  padding-bottom: 0.85rem;
}

@media (min-width: 860px) {
  .marathon-schedule-time-col {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    border-right: 2px dashed var(--border-soft);
    padding-bottom: 0;
    padding-right: 1rem;
    gap: 0.35rem;
  }
}

.marathon-schedule-time-main {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.marathon-schedule-time-end {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
}

.marathon-schedule-date-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #6b21a8;
  color: #fff;
  margin-top: 0.2rem;
}

.marathon-schedule-pill-wrap {
  margin-top: 0.25rem;
}

/* Poster Column - Large, Prominent, 16:9 Landscape */
/* Poster Column - Uncropped, High Visibility */
.marathon-schedule-poster-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.marathon-poster-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.marathon-poster-link picture,
.marathon-schedule-poster-col picture,
.marathon-poster-frame picture {
  display: contents;
}

.marathon-schedule-poster-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--surface-warm);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marathon-schedule-card:hover .marathon-schedule-poster-img {
  transform: scale(1.02);
  box-shadow: 6px 6px 0 var(--ink);
}

/* After Dark Interactive Poster Swap (1-second delay transition) */
.marathon-poster-after-dark-wrap {
  position: relative;
  width: 100%;
}

.marathon-after-dark-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: #0d0614;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.marathon-schedule-card:hover .marathon-after-dark-stage {
  transform: scale(1.02);
  box-shadow: 6px 6px 0 var(--ink);
}

.marathon-after-dark-stage picture {
  display: contents;
}

.marathon-after-dark-stage .marathon-schedule-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Day Poster (Default state) */
.marathon-after-dark-stage .poster-day {
  opacity: 1;
  z-index: 1;
}

/* Night Poster (After Dark state) */
.marathon-after-dark-stage .poster-night {
  opacity: 0;
  z-index: 2;
}

/* Active State: The Shift to After Dark */
.marathon-poster-after-dark-wrap.is-after-dark .marathon-after-dark-stage .poster-day {
  opacity: 0;
}

.marathon-poster-after-dark-wrap.is-after-dark .marathon-after-dark-stage .poster-night {
  opacity: 1;
}

/* ==========================================================================
   WHOLE WEBSITE INVERSION (AFTER DARK MODE)
   ========================================================================== */

body {
  transition: background-color 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body > *:not(.after-dark-sun-btn):not(#thumpn-ticket-modal):not(.thumpn-modal-backdrop):not(.razorpay-payment-form-container):not([class*="razorpay"]):not([id*="razorpay"]) {
  transition: filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

html.is-after-dark body {
  background-color: #0d0614 !important;
}

/* Invert all page content layers except the floating sun button, ticket modal, Razorpay embed/container, and page frost.
   Applying the filter here (and NOT on html or body) ensures the viewport remains
   the containing block for position: fixed, so the sun button and payment modals float reliably
   in the viewport without getting trapped or inverted. */
html.is-after-dark body > *:not(.after-dark-sun-btn):not(#thumpn-ticket-modal):not(.thumpn-modal-backdrop):not(.page-frost):not(.razorpay-payment-form-container):not([class*="razorpay"]):not([id*="razorpay"]) {
  filter: invert(1) hue-rotate(180deg);
}

/* Maintain dark obsidian frosted pane in After Dark mode */
html.is-after-dark .page-frost {
  filter: none !important;
  background: rgba(13, 6, 20, 0.5) !important;
}

/* Counter-invert imagery, posters, video and iframes so artwork retains natural colors */
html.is-after-dark main img,
html.is-after-dark main video,
html.is-after-dark main iframe {
  filter: invert(1) hue-rotate(180deg) !important;
}

/* Let the black header logo naturally invert into crisp white on dark header */
html.is-after-dark .hero-logo {
  filter: none !important;
}

/* Counter-invert any nested modals or overlays if triggered inside main */
html.is-after-dark .thumpn-modal-backdrop {
  filter: none;
}

/* Floating Sun Overlay Return Button (Where scroll-to-top sits, appears only in After Dark mode) */
.after-dark-sun-btn {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 2147483647 !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15072b;
  border: 2.5px solid #ffe642;
  box-shadow: 0 4px 20px rgba(255, 230, 66, 0.5), 3px 3px 0 #000000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.75);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background 0.25s ease;
  user-select: none;
}

.after-dark-sun-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.after-dark-sun-btn:hover {
  transform: translateY(-3px) scale(1.12);
  background: #240c42;
  box-shadow: 0 6px 28px rgba(255, 230, 66, 0.75), 4px 4px 0 #000000;
}

.after-dark-sun-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 2px 2px 0 #000000;
}

.after-dark-sun-btn .sun-icon {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 230, 66, 0.6));
  transition: transform 0.3s ease;
}

.after-dark-sun-btn:hover .sun-icon {
  transform: rotate(20deg) scale(1.08);
}

@media (max-width: 640px) {
  .after-dark-sun-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .after-dark-sun-btn .sun-icon {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marathon-after-dark-stage .marathon-schedule-poster-img {
    transition: none !important;
  }
  .after-dark-flash {
    display: none !important;
  }
}

/* Either / Or Jam specific poster stack */
.marathon-either-or-posters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.marathon-either-or-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--apnw-yellow);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  margin-bottom: 0.1rem;
}

.marathon-either-or-mini-or {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--apnw-red);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  margin: -0.35rem 0;
  z-index: 1;
}

.title-or-accent {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 900;
  color: var(--ink);
  background: var(--apnw-yellow);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  margin: 0 0.25rem;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  vertical-align: middle;
}

/* Either / Or Option Grid */
.marathon-either-or-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0.5rem 0;
}

@media (min-width: 680px) {
  .marathon-either-or-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.marathon-either-or-option {
  background: var(--surface-warm);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.marathon-either-or-option:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0 var(--ink);
}

.marathon-either-or-opt-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.marathon-either-or-chip {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: var(--green);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.marathon-either-or-opt-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.marathon-either-or-opt-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.marathon-either-or-opt-desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-body);
  margin: 0;
  flex-grow: 1;
}

.marathon-either-or-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.marathon-either-or-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.15s ease;
}

.marathon-either-or-btn:hover {
  background: var(--apnw-yellow);
  transform: translate(-1px, -1px);
}

.marathon-either-or-btn--book {
  background: var(--apnw-yellow);
  font-weight: 900;
}

.marathon-either-or-btn--book:hover {
  background: var(--apnw-yellow-bright);
}

/* Content Body */
.marathon-schedule-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.marathon-schedule-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apnw-blue-dark);
}

.marathon-schedule-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.marathon-schedule-title-text {
  display: inline;
}

.marathon-schedule-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.marathon-schedule-title a:hover {
  color: var(--apnw-blue-dark);
  border-bottom-color: var(--apnw-blue-dark);
}

.marathon-schedule-about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-warm);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  vertical-align: middle;
}

.marathon-schedule-about-icon:hover {
  background: var(--apnw-yellow);
  transform: translate(-1px, -1px);
  color: var(--ink);
}

.marathon-schedule-about-icon svg {
  display: block;
}

.marathon-schedule-blurb {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0.2rem 0 0;
}

.marathon-schedule-detail {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* Dual jam breakdown blocks */
.marathon-schedule-dual-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.4rem 0;
  background: var(--surface-warm);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

@media (min-width: 680px) {
  .marathon-schedule-dual-breakdown {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.razorpay-embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensures the container spans full width */
}

/* Razorpay Payment Modal Overlay Fix
   Ensures the dynamically injected Razorpay checkout iframe and container
   remain viewport-fixed, full-screen, and completely un-inverted in both
   Day mode and After Dark mode. */
.razorpay-payment-form-container,
body > .razorpay-payment-form-container,
.razorpay-container,
body > .razorpay-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2147483647 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

html.is-after-dark .razorpay-payment-form-container,
html.is-after-dark body > .razorpay-payment-form-container,
html.is-after-dark .razorpay-container,
html.is-after-dark body > .razorpay-container,
html.is-after-dark .razorpay-payment-form-frame,
html.is-after-dark iframe[src*="razorpay"] {
  filter: none !important;
  -webkit-filter: none !important;
}

.marathon-schedule-dual-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.marathon-schedule-dual-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.marathon-schedule-dual-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.marathon-schedule-dual-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* Slot actions */
.marathon-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.4rem;
}

.marathon-schedule-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--surface-warm);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  text-decoration: none;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}

.marathon-schedule-link:hover {
  background: var(--apnw-yellow);
  transform: translate(-1px, -1px);
}

.marathon-schedule-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--apnw-yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
  text-align: center;
}

.marathon-schedule-book-btn:hover {
  background: var(--apnw-yellow-bright);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.marathon-schedule-book-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Tickets Column */
.marathon-schedule-tickets-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 2px dashed var(--border-soft);
}

@media (min-width: 860px) {
  .marathon-schedule-tickets-col {
    padding-top: 0;
    border-top: none;
    border-left: 2px dashed var(--border-soft);
    padding-left: 1.25rem;
    height: 100%;
    align-items: center;
  }

  .marathon-schedule-tickets-col .marathon-schedule-book-btn {
    width: 100%;
    max-width: 170px;
  }
}

.marathon-schedule-either-or-tickets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 860px) {
  .marathon-schedule-either-or-tickets {
    align-items: center;
  }

  .marathon-schedule-either-or-tickets .marathon-schedule-book-btn {
    font-size: 0.76rem;
    padding: 0.48rem 0.7rem;
    text-align: center;
    line-height: 1.25;
  }
}

@media (max-width: 600px) {
  .marathon-schedule-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .marathon-schedule-book-btn,
  .marathon-schedule-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .marathon-either-or-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .marathon-either-or-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
  }
}

/* Marathon Schedule Dual Booking Buttons */
.marathon-schedule-dual-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

@media (min-width: 860px) {
  .marathon-schedule-dual-buttons .marathon-schedule-book-btn {
    width: 100%;
    max-width: 180px;
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
  }
}

.marathon-schedule-book-btn.btn-thumpn {
  background: #6d28d9;
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.marathon-schedule-book-btn.btn-thumpn:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.marathon-schedule-book-btn.btn-district {
  background: #dc2626;
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.marathon-schedule-book-btn.btn-district:hover {
  background: #ef4444;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.marathon-dual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.marathon-either-or-btn.btn-thumpn {
  background: #6d28d9;
  color: #ffffff;
  border: 1.5px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

.marathon-either-or-btn.btn-thumpn:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--ink);
}

.marathon-either-or-btn.btn-district {
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

.marathon-either-or-btn.btn-district:hover {
  background: #ef4444;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--ink);
}

/* -------------------------------------------------
   THUMPN TICKETS MODAL
------------------------------------------------- */

body.thumpn-modal-open {
  overflow: hidden;
}

body > .thumpn-modal-backdrop,
.thumpn-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  background: rgba(8, 76, 108, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn 0.2s ease-out;
}

body > .thumpn-modal-backdrop[hidden],
.thumpn-modal-backdrop[hidden] {
  display: none !important;
}

.thumpn-modal-dialog {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumpn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--ink);
  background: var(--surface-warm);
  flex-shrink: 0;
}

.thumpn-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.thumpn-modal-close {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.thumpn-modal-close:hover {
  background: var(--apnw-yellow);
  transform: translate(-1px, -1px);
}

.thumpn-modal-body {
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.thumpn-modal-body iframe {
  width: 100% !important;
  min-height: 600px !important;
  border: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}




/* -------------------------------------------------
   PASSES & TICKETS
------------------------------------------------- */

.marathon-passes-wrap {
  margin: 3.5rem 0;
}

.marathon-passes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 680px) and (max-width: 1023px) {
  .marathon-passes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .marathon-passes-grid > .marathon-pass-card:last-child:nth-child(odd) {
    grid-column: span 2;
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .marathon-passes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.marathon-pass-card {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
}

.marathon-pass-card .event-buttons {
  width: 100%;
  margin-top: auto;
}

.marathon-pass-card .event-buttons .btn-apnw-primary,
.marathon-pass-card .event-buttons a,
.marathon-pass-card .event-buttons button {
  width: 100%;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
}

@media (max-width: 600px) {
  .marathon-pass-card {
    padding: 1.5rem 1.2rem;
  }
}

.marathon-pass-card--featured {
  background: linear-gradient(to bottom, #fffdf2 0%, var(--surface) 100%);
  border-color: var(--ink);
}

.marathon-pass-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--apnw-red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.marathon-pass-card:not(.marathon-pass-card--featured) .marathon-pass-badge {
  background: var(--apnw-yellow-bright, #ffe642);
  color: var(--ink);
}

/* Pass card ticket embed */
.marathon-pass-card-ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(145deg, rgba(6, 40, 58, 0.05) 0%, rgba(6, 40, 58, 0.1) 100%);
  border: 2px dashed rgba(6, 40, 58, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.marathon-pass-ticket-graphic {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.marathon-pass-card:hover .marathon-pass-ticket-graphic {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

.marathon-pass-card-ticket--generic {
  min-height: 110px;
  box-sizing: border-box;
}

.marathon-single-stub-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

.stub-badge-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.stub-badge-label {
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stub-badge-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marathon-pass-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.marathon-pass-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 1.25rem;
}

.marathon-pass-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.marathon-pass-perks li {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.marathon-pass-perks li::before {
  content: "✓";
  font-weight: 900;
  color: var(--green);
}

/* -------------------------------------------------
   FIRST-TIMERS / FAQ SECTION
------------------------------------------------- */

.marathon-faq-wrap {
  margin: 3.5rem 0;
}

.marathon-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .marathon-faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.marathon-faq-card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.marathon-faq-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.marathon-faq-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* -------------------------------------------------
   SUPPORT YOUR LOCAL THEATRE (COMMUNITY CARD)
------------------------------------------------- */

.marathon-community-card {
  position: relative;
  background: radial-gradient(circle at 10% 20%, #15799f 0%, #0c4a68 50%, #062f44 100%);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  color: var(--apnw-text-light);
  box-shadow: 6px 6px 0 var(--ink);
  margin: 3.5rem 0;
  overflow: hidden;
}

@media (max-width: 600px) {
  .marathon-community-card {
    padding: 1.6rem 1.25rem;
    border-radius: 16px;
    margin: 2.5rem 0;
  }
}

.marathon-community-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--apnw-yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 0.85rem;
}

.marathon-community-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
}

@media (min-width: 768px) {
  .marathon-community-title {
    font-size: 2.2rem;
  }
}

.marathon-community-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--apnw-text-muted);
  max-width: 44rem;
  margin: 0 0 0.75rem;
}

.marathon-community-subcopy {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--apnw-text-dim);
  max-width: 44rem;
  margin: 0 0 1.6rem;
}

.marathon-community-card .event-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

@media (max-width: 560px) {
  .marathon-community-card .event-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .marathon-community-card .event-buttons a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    min-height: 48px;
  }
}

/* -------------------------------------------------
   VENUE & LOGISTICS
------------------------------------------------- */

.marathon-venue-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-shadow: 6px 6px 0 var(--ink);
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .marathon-venue-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.marathon-venue-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.marathon-venue-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
  max-width: 32rem;
}

@media (max-width: 600px) {
  .marathon-venue-card {
    padding: 1.4rem 1.2rem;
    margin: 2rem 0;
  }

  .marathon-venue-card .event-buttons,
  .marathon-venue-card .event-buttons a {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
  }
}

/* -------------------------------------------------
   HOMEPAGE MARATHON BANNER CALLOUT
------------------------------------------------- */

.home-marathon-banner {
  position: relative;
  display: block;
  text-decoration: none;
  background: radial-gradient(circle at 10% 20%, #22b6e1 0%, #0f7ca5 45%, #074665 100%);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.6rem 1.4rem;
  color: #fff;
  margin: 0 0 2.8rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .home-marathon-banner {
    padding: 2rem 2.2rem;
  }
}

.home-marathon-banner:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.home-marathon-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 720px) {
  .home-marathon-inner {
    grid-template-columns: 110px 1fr auto;
    gap: 1.75rem;
  }
}

.home-marathon-emblem {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--apnw-navy-card);
  display: block;
  object-fit: cover;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .home-marathon-emblem {
    margin: 0;
    width: 100px;
    height: 100px;
  }
}

.home-marathon-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-marathon-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.home-marathon-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--apnw-yellow);
  color: var(--ink);
}

.home-marathon-tag--time {
  background: #fff;
  color: var(--ink);
}

.home-marathon-tag--alert {
  background: var(--apnw-red);
  color: #fff;
}

.home-marathon-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0.2rem 0 0;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .home-marathon-heading {
    font-size: 1.8rem;
  }
}

.home-marathon-copy {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--apnw-text-muted);
  margin: 0;
  max-width: 36rem;
}

.home-marathon-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--apnw-yellow);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  align-self: flex-start;
}

@media (min-width: 720px) {
  .home-marathon-cta {
    align-self: center;
  }
}

/* -------------------------------------------------
   COMPACT HOMEPAGE MARATHON STRIP WITH MODULAR TIMER
   Elevated Impeccable Craft standards
------------------------------------------------- */

.home-marathon-compact-wrap {
  margin: 0 0 1.75rem;
}

.home-marathon-compact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: radial-gradient(130% 120% at 8% 50%, #158fb5 0%, #0c5778 50%, #06344d 100%);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.85rem 1.1rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.16s ease;
}

/* Subtle gloss highlight on top edge */
.home-marathon-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.home-marathon-compact:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.home-marathon-compact:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Left: Festival branding + titles */
.home-marathon-compact-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.home-marathon-compact-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-marathon-compact-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  border: 1.5px solid var(--ink);
  background: var(--apnw-yellow, #ffe642);
  color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  line-height: 1.2;
}

.home-marathon-compact-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c9e8f6;
  letter-spacing: 0.02em;
}

.home-marathon-compact-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-marathon-compact-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.home-marathon-compact-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5d8f0;
  letter-spacing: 0.01em;
}

/* Right: Countdown Pods + CTA */
.home-marathon-compact-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Countdown Block */
.home-marathon-countdown-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.home-marathon-timer-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apnw-yellow, #ffe642);
}

.timer-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apnw-yellow, #ffe642);
  box-shadow: 0 0 6px rgba(255, 230, 66, 0.75);
  animation: apnwPulse 1.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes apnwPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Modular Pods */
.home-marathon-timer-pods {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.timer-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(3, 24, 38, 0.78);
  border: 1.5px solid rgba(83, 184, 221, 0.35);
  border-radius: 7px;
  padding: 0.22rem 0.42rem;
  min-width: 2.85rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.timer-pod-num {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--apnw-yellow, #ffe642);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.timer-pod-unit {
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9dc5d9;
  line-height: 1;
  margin-top: 1px;
}

.timer-pod-sep {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(138, 230, 255, 0.55);
  line-height: 1;
  margin-bottom: 0.5rem;
  user-select: none;
}

.timer-live {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--apnw-yellow, #ffe642);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  background: rgba(3, 24, 38, 0.85);
  border: 1.5px solid var(--apnw-yellow);
  border-radius: 6px;
}

/* CTA Button */
.home-marathon-compact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.home-marathon-compact:hover .home-marathon-compact-cta {
  background: var(--apnw-yellow, #ffe642);
}

.home-marathon-cta-arrow {
  display: inline-block;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-marathon-compact:hover .home-marathon-cta-arrow {
  transform: translateX(3px);
}

/* Desktop layout (>= 860px) */
@media (min-width: 860px) {
  .home-marathon-compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.35rem;
    gap: 1.4rem;
  }

  .home-marathon-compact-right {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 1.25rem;
  }
}

/* Medium layout (600px - 859px) */
@media (min-width: 600px) and (max-width: 859px) {
  .home-marathon-compact-right {
    justify-content: space-between;
  }
}

/* Mobile layout (< 600px) */
@media (max-width: 599px) {
  .home-marathon-compact {
    padding: 0.8rem 0.9rem;
    gap: 0.8rem;
  }

  .home-marathon-compact-title {
    font-size: 1.1rem;
  }

  .home-marathon-compact-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .home-marathon-countdown-block {
    width: 100%;
  }

  .home-marathon-timer-pods {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .timer-pod {
    flex: 1;
    min-width: 0;
    padding: 0.25rem 0.2rem;
  }

  .timer-pod-num {
    font-size: 1.05rem;
  }

  .timer-pod-unit {
    font-size: 0.52rem;
  }

  .timer-pod-sep {
    font-size: 0.85rem;
    padding: 0 0.1rem;
  }

  .home-marathon-compact-cta {
    justify-content: center;
    width: 100%;
    padding: 0.55rem 1rem;
  }
}
