/* ============================================================
   GLOBAL EVENTS CTA — ultra-compact rail.

   Mini-rail design: title + clickable cards, nothing more.
   No eyebrow line, no intro paragraph. Tight type, tight spacing.
   The cream background + section break give this its identity —
   editorial framing isn't needed.

   Each card is a single <a> linking to the event's primary URL.
   ============================================================ */

/* Section wrapper — minimal vertical padding. */
.gec-section{
  padding:18px 0 22px;
  background:#F5F5F7;
}
@media (min-width:900px){
  .gec-section{ padding:22px 0 26px; }
}

.gec-section .gec-inner{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

/* === Header (title + small intro line) === */
.gec-header{
  margin-bottom:10px;
  max-width:680px;
}
.gec-title{
  font-size:15px; line-height:1.25;
  font-weight:700; letter-spacing:-0.005em;
  color:var(--text);
  margin:0 0 5px;
}
@media (min-width:900px){
  .gec-title{ font-size:16px; }
}
/* Subline — accent left-line treatment that mirrors the editorial
   callouts used throughout the picker and venue pages. The 3px
   pink line gives this small text the same on-brand framing as
   "Why we picked this" / "Best Move" without the background fill
   chunk (the section's light-grey band is doing that job already). */
.gec-intro{
  font-size:11px; line-height:1.45;
  color:var(--text-muted);
  margin:0;
  padding:1px 0 1px 9px;
  border-left:3px solid var(--accent);
}
/* Eyebrow class still defined in case you want to reintroduce it
   in the future, but the JS no longer renders it. */
.gec-eyebrow{ display:none; }

/* === Card scroller ===
   Always horizontal-scroll-capable. With 1-3 cards on desktop
   it just doesn't need to scroll. With more, scroll-snap kicks in. */
.gec-scroller{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  margin:0 -20px;                /* full-bleed on mobile */
  padding:2px 20px 8px;
}
.gec-scroller::-webkit-scrollbar{ height:5px; }
.gec-scroller::-webkit-scrollbar-track{ background:transparent; }
.gec-scroller::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,0.10);
  border-radius:3px;
}
@media (min-width:900px){
  .gec-scroller{
    margin:0;
    padding:2px 0 8px;
    gap:12px;
  }
}

/* === Individual card (rendered as <a>) === */
.gec-card{
  flex:0 0 auto;
  width:200px;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:transform .15s ease, box-shadow .15s ease;
  cursor:pointer;
}
.gec-card:hover,
.gec-card:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 2px 4px rgba(0,0,0,0.07), 0 4px 14px rgba(0,0,0,0.06);
}
.gec-card:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
@media (min-width:560px){
  .gec-card{ width:220px; }
}

/* Image block — letter-fallback if imageUrl missing. */
.gec-card-image{
  position:relative;
  aspect-ratio:16 / 10;
  background:linear-gradient(135deg, var(--accent) 0%, #d80f48 100%);
  overflow:hidden;
}
.gec-card-image img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.gec-card-image.gec-img-fallback::before{
  content:attr(data-letter);
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size:36px; font-weight:800;
  color:rgba(255,255,255,0.85);
  letter-spacing:-0.02em;
}
.gec-badge{
  position:absolute; top:6px; left:6px;
  background:rgba(0,0,0,0.78);
  color:#fff;
  font-size:9.5px; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase;
  padding:3px 7px;
  border-radius:999px;
}

/* Card body — just headline + date. Tight padding. */
.gec-card-body{
  padding:8px 10px 10px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.gec-card-headline{
  font-size:13px; line-height:1.25;
  font-weight:700; letter-spacing:-0.005em;
  color:var(--text);
  margin:0;
  /* Cap headline at 2 lines for predictable card height. */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.gec-card-date{
  font-size:11.5px; line-height:1.3;
  font-weight:500;
  color:var(--text-muted);
  margin:0;
}

/* === Fallback signup card (no active events) ===
   Slightly tighter than the previous version to match the new
   compact rhythm. */
.gec-fallback{
  background:#fff;
  border-radius:12px;
  padding:18px 18px;
  box-shadow:0 1px 2px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  max-width:520px;
}
@media (min-width:560px){
  .gec-fallback{ padding:20px 22px; }
}
.gec-fallback-headline{
  font-size:15px; line-height:1.3;
  font-weight:700; letter-spacing:-0.005em;
  color:var(--text);
  margin:0 0 4px;
}
.gec-fallback-sub{
  font-size:12.5px; line-height:1.45;
  color:var(--text-muted);
  margin:0 0 12px;
}
.gec-fallback-form{
  display:flex;
  flex-direction:column;
  gap:6px;
}
@media (min-width:560px){
  .gec-fallback-form{
    flex-direction:row;
    align-items:stretch;
  }
}
.gec-fallback-form input[type=email]{
  flex:1;
  padding:8px 12px;
  font:inherit;
  font-size:13.5px;
  border:1.5px solid var(--border-strong);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  min-height:36px;
}
.gec-fallback-form input[type=email]:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(248,24,81,.12);
}
.gec-fallback-form button{
  white-space:nowrap;
  padding:8px 14px;
  font:inherit;
  font-size:13.5px; font-weight:700;
  background:var(--accent);
  color:#fff;
  border:1.5px solid var(--accent);
  border-radius:8px;
  cursor:pointer;
  min-height:36px;
  transition:background .15s ease;
}
.gec-fallback-form button:hover,
.gec-fallback-form button:focus-visible{
  background:#d80f48;
}
.gec-fallback-privacy{
  margin:8px 0 0;
  font-size:11px; line-height:1.4;
  color:var(--text-muted);
}
.gec-fallback-success{
  padding:10px 12px;
  background:#F0FDF4;
  border:1.5px solid #BBF7D0;
  border-radius:8px;
  color:#166534;
  font-size:13px; font-weight:600;
}
