/* ==========================================================================
   Custard MKE — Retro Cherry Diner & Classic Custard Stand Aesthetic
   ========================================================================== */

:root {
  --bg-page: #FAF5EE;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4ECE1;
  --bg-pill: #EFE6D8;

  --ink: #1F1818;
  --ink-secondary: #5C4B4B;
  --ink-muted: #8C7A7A;

  --border: #E5D9CA;
  --border-strong: #D1BFA9;

  /* Retro Cherry Red Palette */
  --retro-red: #C81D25;
  --retro-red-dark: #9E1219;
  --retro-red-deep: #7A0D13;
  --retro-red-tint: #FCEBEC;
  --retro-red-border: #F2C2C5;

  /* Wisconsin Butter Gold & Diner Accents (Matching Ads & Facebook Posts) */
  --wisconsin-gold: #F8D065;
  --wisconsin-gold-dark: #D97706;
  --wisconsin-gold-deep: #B45309;
  --wisconsin-gold-bg: #FEF3C7;
  --wisconsin-gold-border: #FDE68A;

  /* Classic Cream & Soda Fountain Accents */
  --cream: #FFFDF9;
  --culvers-blue: #005696;
  --culvers-tint: #EAF3FA;

  --green-ok: #15803D;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 3px 0 #E5D9CA, 0 4px 14px rgba(31, 24, 24, 0.05);
  --shadow-card-hover: 0 5px 0 #D1BFA9, 0 12px 26px rgba(200, 29, 37, 0.09);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: radial-gradient( rgba(200, 29, 37, 0.04) 1px, transparent 1px );
  background-size: 20px 20px;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Header (Retro Cherry Red Banner, High Z-Index above Leaflet)
   ========================================================================== */
.site-nav {
  background: linear-gradient(180deg, #D4262E 0%, #B3151D 60%, #7A0A10 100%);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 3000; /* Guaranteed to stay above Leaflet map panes (400-800) */
  border-bottom: 3.5px solid var(--wisconsin-gold);
  box-shadow: 0 4px 0 #7A0D13, 0 8px 24px rgba(122, 13, 19, 0.32);
}

.nav-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--wisconsin-gold);
  color: #2D1517;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid #E5A823;
  box-shadow: 0 1.5px 0 #B45309;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .nav-brand-pill {
    display: none;
  }
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link img {
  width: auto;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.brand-link:hover img {
  transform: scale(1.03);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 0 rgba(122, 13, 19, 0.45);
}

.brand-wordmark span {
  color: #FFE8EC;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-item {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  transition: all 0.15s ease;
}

.nav-item:hover, .nav-item.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFDF9;
  color: var(--retro-red-dark);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 0 var(--retro-red-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--retro-red-deep);
}

/* ==========================================================================
   Hero & Search Header
   ========================================================================== */
.hero-header {
  padding: 2.25rem 0 1.25rem;
}

.hero-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--retro-red-dark);
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--wisconsin-gold-bg);
  border: 1.5px solid var(--wisconsin-gold-border);
  color: #78350F;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 0 rgba(217, 119, 6, 0.15);
}

.hero-kicker-badge .kicker-star {
  color: #D97706;
  font-size: 0.85rem;
}

.hero-features-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream);
  border: 1.5px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 0 var(--border);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.hero-feature-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-feature-pill .pill-check {
  color: var(--retro-red);
  font-weight: 900;
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  margin-top: 0.3rem;
}

/* Location Status Pill */
.loc-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-card);
}

.loc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.loc-dot.active {
  background: var(--retro-red);
  box-shadow: 0 0 0 3px rgba(200, 29, 37, 0.2);
}

.loc-retry-btn {
  background: none;
  border: none;
  color: var(--retro-red);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 0.25rem;
}

/* Primary Control Deck */
.control-deck {
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.site-domain-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFDF9;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Statewide Wisconsin Region Filter Row */
.deck-row-regions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}

.region-bar-label {
  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(--retro-red-dark);
  flex-shrink: 0;
}

.region-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
}

.region-pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-pill {
  border: 1.5px solid var(--border);
  background: var(--cream);
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.14s ease;
}

.region-pill:hover {
  border-color: var(--retro-red);
  color: var(--ink);
  background: #FFFDF9;
}

.region-pill.active {
  background: var(--retro-red-dark);
  border-color: var(--retro-red-dark);
  color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(158, 18, 25, 0.22);
}

.region-count {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.04rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(31, 24, 24, 0.08);
  color: var(--ink-secondary);
}

.region-pill.active .region-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.deck-row-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Tactile Segmented Filter: All | Local | Culver's */
.segmented-filter {
  display: inline-flex;
  background: var(--bg-pill);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.active {
  background: var(--retro-red);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(200, 29, 37, 0.28);
}

.seg-count {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.65);
  padding: 0.08rem 0.45rem;
  border-radius: var(--radius-full);
}

.seg-btn.active .seg-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Search Box */
.search-box {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
  height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-box:focus-within {
  background: var(--bg-card);
  border-color: var(--retro-red);
}

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.search-box input::placeholder {
  color: var(--ink-muted);
  font-weight: 500;
}

.clear-btn {
  display: none;
  border: none;
  background: var(--border);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Distance Filter & Map Toggle */
.deck-controls-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.distance-select {
  height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}

.distance-select:hover {
  border-color: var(--retro-red);
}

.map-toggle-btn {
  height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--retro-red-border);
  background: var(--retro-red-tint);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--retro-red-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.map-toggle-btn:hover {
  border-color: var(--retro-red);
}

.map-toggle-btn.active {
  background: var(--retro-red);
  color: #fff;
  border-color: var(--retro-red);
}

/* Secondary Row: Day Scrubber Strip */
.deck-row-days {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.day-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: 100%;
}

.day-pill {
  border: 1.5px solid var(--border);
  background: var(--cream);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 var(--border);
}

.day-pill:hover {
  background: var(--retro-red-tint);
  color: var(--retro-red-dark);
  border-color: var(--retro-red-border);
  transform: translateY(-1px);
}

.day-pill.active {
  background: var(--retro-red);
  border-color: var(--retro-red-deep);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--retro-red-deep);
}

.day-pill.active span {
  color: #FEE2E2;
}

.day-pill span {
  opacity: 0.85;
  font-weight: 500;
  margin-left: 0.2rem;
}

.results-meta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* ==========================================================================
   Collapsible Interactive Map Drawer (Isolated Stacking Context)
   ========================================================================== */
.map-drawer {
  margin-top: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: none;
  position: relative;
  z-index: 1;
  isolation: isolate; /* Prevents Leaflet child panes from escaping above .site-nav */
}

.map-drawer.open {
  display: block;
}

#custard-map {
  width: 100%;
  height: 390px;
  position: relative;
  z-index: 1;
}

/* High-contrast, tactile Leaflet Popup & Persistent Close Button */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 12px 30px rgba(31, 24, 24, 0.24), 0 3px 0 var(--border-strong) !important;
  border: 1.5px solid var(--border-strong) !important;
  padding: 4px !important;
  background: #FFFDF9 !important;
}

.leaflet-popup-content {
  margin: 14px 16px 12px 16px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: #FFFDF9 !important;
  box-shadow: 0 4px 14px rgba(31, 24, 24, 0.18) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 24px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--ink-secondary) !important;
  background: var(--bg-pill) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  z-index: 20 !important;
  cursor: pointer !important;
}

.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
  background: var(--retro-red) !important;
  color: #FFFFFF !important;
  border-color: var(--retro-red-deep) !important;
  transform: scale(1.1) !important;
}

.map-footer-bar {
  padding: 0.6rem 1rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.map-legend-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

/* ==========================================================================
   Sponsored Posts & Ad Placements (Banner + In-Feed Native Ad Tile)
   ========================================================================== */
.top-ad-slot {
  margin-top: 1.25rem;
  background: linear-gradient(90deg, #FFFDF9 0%, #FCEBEC 100%);
  border: 1.5px solid var(--retro-red-border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  background: #EFE6D8;
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
}

.ad-badge.sponsored {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

.custard-card.sponsored-card {
  border-top: 4px solid #D97706;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 100%);
}

.custard-card.sponsored-card .flavor-showcase {
  background: #FEF9E7;
  border-color: #FDE68A;
}

/* ==========================================================================
   Stand Cards Grid (Location Top -> Flavors Center -> Actions Bottom)
   ========================================================================== */
.stands-section {
  padding: 1.5rem 0 4rem;
  flex: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.2rem;
}

.custard-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--retro-red);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  max-width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.custard-card.culvers-card {
  border-top-color: var(--culvers-blue);
}

.custard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
  border-top-color: var(--retro-red);
}

.custard-card.culvers-card:hover {
  border-top-color: var(--culvers-blue);
}

/* 1. TOP OF TILE: Stand Name, Location & Distance (Aligned Height across Row) */
.card-location-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border);
  min-height: 126px;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.stand-tag.local {
  background: var(--retro-red-tint);
  color: var(--retro-red-dark);
}

.stand-tag.culvers {
  background: var(--culvers-tint);
  color: var(--culvers-blue);
}

.distance-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--retro-red-dark);
  background: var(--retro-red-tint);
  border: 1px solid var(--retro-red-border);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
}

.stand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.22;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.44em; /* Reserves exact 2-line height so every flavor box aligns */
}

.stand-title a:hover {
  color: var(--retro-red);
  text-decoration: underline;
}

.stand-location {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. MIDDLE OF TILE: Today's Flavor of the Day Showcase (Stretches to Fill Row) */
.flavor-showcase {
  flex: 1;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.flavor-label-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--retro-red);
}

.flavor-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.flavor-row + .flavor-row {
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}

.scoop-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  background: var(--bg-page);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scoop-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--retro-red-tint);
  border: 1.5px solid var(--retro-red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--retro-red);
}

.scoop-fallback.nodata-icon {
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #6B7280;
}

.flavor-headline {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
}

.flavor-headline.nodata-headline {
  color: var(--ink-secondary);
  font-weight: 700;
  font-style: italic;
}

.flavor-summary {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-top: 0.18rem;
  line-height: 1.35;
  word-wrap: break-word;
}

/* 3. BOTTOM OF TILE: Actions & Inline Expandable Schedule */
.card-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
}

.hours-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.card-action-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  flex-wrap: wrap;
}

.action-pill {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.38rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.action-pill:hover {
  background: var(--retro-red-tint);
  border-color: var(--retro-red);
  color: var(--retro-red-dark);
}

.action-pill.primary {
  background: var(--retro-red);
  color: #FFFFFF;
  border-color: var(--retro-red-dark);
}

.action-pill.primary:hover {
  background: var(--retro-red-dark);
  color: #FFFFFF;
}

/* Inline Expandable 7-Day Forecast Drawer inside Card */
.inline-forecast {
  display: none;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-top: 0.65rem;
}

.inline-forecast.open {
  display: block;
}

.forecast-mini-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  font-size: 0.82rem;
}

.forecast-mini-row + .forecast-mini-row {
  border-top: 1px dashed var(--border);
}

.forecast-day-name {
  font-weight: 700;
  color: var(--retro-red-dark);
  min-width: 78px;
  flex-shrink: 0;
}

.forecast-flavor-val {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.forecast-flavor-val.forecast-closed-val {
  color: var(--retro-red);
  font-weight: 700;
}

.forecast-mini-row.forecast-closed-row {
  opacity: 0.85;
}

/* ==========================================================================
   Content Pages (Privacy & Contact)
   ========================================================================== */
.page-shell {
  padding: 3rem 0 5rem;
  flex: 1;
}

.page-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-top: 5px solid var(--retro-red);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.page-card h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--retro-red-dark);
  margin-bottom: 0.5rem;
}

.page-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}

.page-card p, .page-card li {
  color: var(--ink-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.page-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.form-input {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--retro-red);
  background: var(--bg-card);
}

/* ==========================================================================
   Mid-Century Retro Diner Facebook Community Callout (Matching Ad Aesthetic)
   ========================================================================== */
.fb-diner-banner-section {
  padding: 2.25rem 0 1.25rem;
}

.fb-diner-card {
  background: radial-gradient(ellipse 90% 80% at 75% 45%, #D4262E 0%, #B3151D 50%, #7A0A10 100%);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  color: #FFFDF9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 0 #5E080C, 0 16px 36px rgba(122, 13, 19, 0.28);
  border: 2px solid rgba(255, 245, 230, 0.35);
}

.fb-diner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 14px
  );
  pointer-events: none;
}

.fb-diner-card-inner {
  position: relative;
  z-index: 1;
}

.fb-diner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.fb-diner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wisconsin-gold);
  color: #2D1517;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #E5A823;
  box-shadow: 0 2px 0 #B45309;
}

.fb-diner-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #FEE2E2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
}

.fb-diner-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.fb-diner-content {
  flex: 1 1 480px;
}

.fb-diner-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFDF9;
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.fb-diner-desc {
  font-size: 0.95rem;
  color: #FCEBEC;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.fb-diner-features {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--wisconsin-gold);
}

.fb-diner-cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  flex-shrink: 0;
}

.fb-diner-gold-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--wisconsin-gold);
  border: 2px solid #E5A823;
  color: #2D1517;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 0.72rem 1.45rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 0 #B45309, 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.fb-diner-gold-btn:hover {
  background: #FCE185;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #B45309, 0 12px 24px rgba(0, 0, 0, 0.3);
}

.fb-diner-handle {
  font-size: 0.78rem;
  color: #FCA5A5;
  font-weight: 600;
  padding-left: 0.25rem;
}

/* ==========================================================================
   Footer (Retro Deep Crimson / Diner Footer with Gold Accent Border)
   ========================================================================== */
.site-footer {
  background: radial-gradient(ellipse 90% 80% at 50% 20%, #8A0F15 0%, #54080D 100%);
  color: #FCEBEC;
  padding: 3rem 0 2.25rem;
  margin-top: auto;
  border-top: 4px solid var(--wisconsin-gold);
  position: relative;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   Favorites Heart Button, Upcoming Flavor Alert Badge & Notification Center
   ========================================================================== */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-alerts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.46rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-alerts-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #FFFFFF;
}

.nav-alert-badge {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.06rem 0.45rem;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.nav-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: var(--wisconsin-gold);
  border: 1.5px solid #E5A823;
  color: #2D1517;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.46rem 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 2.5px 0 #B45309;
}

.nav-fb-btn svg {
  fill: #2D1517;
}

.nav-fb-btn:hover {
  background: #FCE185;
  color: #1A0809;
  border-color: #D97706;
  transform: translateY(-1px);
  box-shadow: 0 3.5px 0 #B45309;
}

@media (max-width: 640px) {
  .nav-fb-text {
    display: none;
  }
  .nav-fb-btn {
    padding: 0.46rem 0.55rem;
  }
}

/* ==========================================================================
   Facebook Community Hero Announcement Banner
   ========================================================================== */
.fb-community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #FFFDF8 0%, #EFF6FF 100%);
  border: 1.5px solid #BFDBFE;
  border-left: 5px solid #1877F2;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.08);
  animation: fadeIn 0.3s ease;
}

.fb-banner-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.fb-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #1877F2;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.fb-banner-copy {
  font-size: 0.92rem;
  color: var(--ink-primary);
  line-height: 1.4;
}

.fb-banner-copy strong {
  color: #1E3A8A;
}

.fb-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.fb-banner-action-btn {
  background: #1877F2 !important;
  color: #FFFFFF !important;
  border-color: #1877F2 !important;
  font-weight: 800 !important;
  padding: 0.45rem 0.95rem !important;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3) !important;
}

.fb-banner-action-btn:hover {
  background: #166fe5 !important;
}

.fb-banner-dismiss-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.fb-banner-dismiss-btn:hover {
  color: var(--retro-red);
}

@media (max-width: 768px) {
  .fb-community-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .fb-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .fb-banner-action-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

.signup-toast-fb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #1E3A8A;
}

.signup-toast-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1877F2;
  font-weight: 700;
  text-decoration: none;
}

.signup-toast-fb-link:hover {
  text-decoration: underline;
}

/* Favorite Stand Heart Toggle on Cards */
.card-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fav-heart-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--cream);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.fav-heart-btn:hover {
  border-color: var(--retro-red);
  color: var(--retro-red);
  transform: scale(1.06);
}

.fav-heart-btn.active {
  background: var(--retro-red-tint);
  border-color: var(--retro-red);
  color: var(--retro-red);
}

.fav-heart-btn.active svg {
  fill: var(--retro-red);
}

/* Upcoming Favorite Flavor Match Pill inside Card */
.flavor-alert-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.flavor-alert-banner strong {
  font-weight: 800;
  color: #78350F;
}

/* Notification Framework Modal */
.notif-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 24, 0.58);
  backdrop-filter: blur(4px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.notif-modal-backdrop.open {
  display: flex;
}

.notif-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-top: 6px solid var(--retro-red);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(31, 24, 24, 0.3);
  padding: 1.5rem 1.65rem;
  display: block;
  box-sizing: border-box;
}

.notif-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.notif-modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--retro-red-dark);
  line-height: 1.15;
}

.notif-close-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-close-btn:hover {
  border-color: var(--retro-red);
  color: var(--retro-red);
}

.notif-section-box {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.notif-section-box > * + * {
  margin-top: 0.7rem;
}

.notif-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notif-toggle-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.notif-toggle-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}

.notif-toggle-sub {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-top: 0.15rem;
}

.notif-push-btn {
  flex: 0 0 auto;
  padding: 0.42rem 0.8rem;
}

.notif-active-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.notif-controls-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.notif-email-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.notif-email-input {
  flex: 1 1 200px;
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  background: var(--bg-card);
  box-sizing: border-box;
}

.notif-email-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.notif-email-actions .action-pill {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 0.9rem;
}

.notif-verify-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notif-verify-input {
  flex: 1 1 120px;
  max-width: 160px;
  min-width: 0;
  height: 38px;
  padding: 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: #FFFFFF;
  box-sizing: border-box;
}

.notif-verify-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 0.9rem;
}

.notif-add-flavor-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.notif-flavor-input {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0 0.8rem;
  font-size: 0.85rem;
  background: var(--bg-card);
  box-sizing: border-box;
}

.notif-add-flavor-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 0.85rem;
}

.flavor-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.flavor-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--retro-red-tint);
  border: 1px solid var(--retro-red-border);
  color: var(--retro-red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.26rem 0.68rem;
  border-radius: var(--radius-full);
}

.flavor-tag-remove {
  border: none;
  background: transparent;
  color: var(--retro-red-dark);
  font-weight: 800;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
}

.notif-matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 210px;
  overflow-y: auto;
  width: 100%;
}

.notif-match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--retro-red);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  width: 100%;
  box-sizing: border-box;
}

.notif-match-info {
  flex: 1 1 0%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.notif-remove-btn {
  flex: 0 0 auto;
  padding: 0.24rem 0.55rem;
  font-size: 0.74rem;
}

.notif-match-day {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.notif-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.notif-modal-footer > .action-pill {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
}

.notif-modal-footer-right {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.notif-modal-footer-right .action-pill {
  flex: 0 0 auto;
  padding: 0.55rem 1.05rem;
}

/* ==========================================================================
   Live Open/Closed Status Pill, Share Button & 7-Day Search Match Banner
   ========================================================================== */
.open-now-toggle-btn {
  height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.open-now-toggle-btn:hover {
  border-color: var(--green-ok);
}

.open-now-toggle-btn.active {
  background: #DCFCE7;
  border-color: #16A34A;
  color: #14532D;
}

.hours-row-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.open-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.12rem 0.52rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.open-status-pill.open {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.open-status-pill.closing {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.open-status-pill.closed {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

.share-stand-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--cream);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.share-stand-btn:hover {
  border-color: var(--retro-red);
  color: var(--retro-red);
  transform: scale(1.06);
}

.share-stand-btn.copied {
  background: #DCFCE7;
  border-color: #16A34A;
  color: #15803D;
}

.search-schedule-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.search-schedule-banner strong {
  font-weight: 800;
  color: #1E3A8A;
}

.nav-hamburger-btn,
.nav-mobile-only-cta {
  display: none;
}

/* ==========================================================================
   Mobile & Phone Responsive Layout (Placed at End for Cascade Priority)
   ========================================================================== */
@media (max-width: 760px) {
  .container {
    padding: 0 0.9rem;
  }
  .nav-inner {
    height: auto;
    min-height: 54px;
    padding: 0.45rem 0.9rem;
    flex-wrap: wrap;
    row-gap: 0.45rem;
    column-gap: 0.45rem;
  }
  .brand-link {
    order: 1;
    gap: 0.45rem;
  }
  .brand-link img {
    width: auto;
    height: 38px;
  }
  .brand-wordmark {
    font-size: 1.15rem;
  }
  .nav-actions-right {
    order: 2;
    margin-left: auto;
    gap: 0.4rem;
  }
  .nav-alerts-btn {
    font-size: 0.78rem;
    padding: 0.38rem 0.7rem;
    gap: 0.32rem;
  }
  .nav-cta {
    display: none;
  }
  .nav-hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    cursor: pointer;
    padding: 0;
  }
  .nav-hamburger-btn:hover,
  .nav-hamburger-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.28);
    border-color: #FFFFFF;
  }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.45rem 0 0.2rem;
    gap: 0.25rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
  }
  .nav-mobile-only-cta {
    display: block;
    font-weight: 800;
    color: #FEF3C7;
  }
  .hero-header {
    padding: 1.15rem 0 0.9rem;
  }
  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
  }
  .control-deck {
    padding: 0.8rem;
    gap: 0.6rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .deck-row-regions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-bottom: 0.65rem;
  }
  .region-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    width: 100%;
    overflow: visible;
  }
  .region-pill {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 0.42rem 0.58rem;
    font-size: 0.74rem;
    gap: 0.25rem;
    box-sizing: border-box;
  }
  .region-count {
    font-size: 0.66rem;
    padding: 0.04rem 0.34rem;
    flex-shrink: 0;
  }
  .segmented-filter {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .segmented-filter::-webkit-scrollbar {
    display: none;
  }
  .seg-btn {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    padding: 0.42rem 0.28rem;
    font-size: 0.75rem;
    gap: 0.2rem;
  }
  .seg-count {
    font-size: 0.65rem;
    padding: 0.04rem 0.32rem;
  }
  .search-box {
    flex: 1 1 100%;
    height: 40px;
  }
  .deck-controls-right {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }
  .roulette-btn,
  .open-now-toggle-btn,
  .distance-select,
  .map-toggle-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    height: 40px;
    padding: 0 0.45rem;
    font-size: 0.78rem;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: center;
  }
  .roulette-btn {
    padding: 0 0.45rem;
    font-size: 0.78rem;
  }
  .distance-select {
    text-align-last: center;
  }
  @media (min-width: 560px) and (max-width: 760px) {
    .deck-controls-right {
      grid-template-columns: repeat(4, 1fr);
      gap: 0.4rem;
    }
    .roulette-btn,
    .open-now-toggle-btn,
    .distance-select,
    .map-toggle-btn {
      font-size: 0.74rem;
      padding: 0 0.35rem;
    }
  }
  .deck-row-days {
    gap: 0.5rem;
  }
  .day-strip {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .day-strip::-webkit-scrollbar {
    display: none;
  }
  .results-meta {
    width: 100%;
    text-align: center;
    font-size: 0.76rem;
  }
  #custard-map {
    height: 270px;
  }
  .map-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .custard-card {
    padding: 1.05rem 1rem;
    min-width: 0;
    max-width: 100%;
  }
  .page-card {
    padding: 1.25rem;
  }
  .notif-modal-backdrop {
    padding: 0.65rem;
    align-items: center;
  }
  .notif-modal-card {
    padding: 1.15rem 1rem;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }
  .notif-modal-title {
    font-size: 1.2rem;
  }
  .notif-section-box {
    padding: 0.85rem;
    margin-bottom: 0.85rem;
  }
  .notif-toggle-row {
    display: block;
  }
  .notif-toggle-copy {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .notif-push-btn {
    width: 100%;
    height: 36px;
    padding: 0 0.75rem;
  }
  .notif-controls-inline {
    width: 100%;
    justify-content: space-between;
  }
  .notif-email-row {
    display: block;
  }
  .notif-email-input {
    display: block;
    width: 100%;
    height: 38px;
    margin-bottom: 0.45rem;
  }
  .notif-email-actions {
    width: 100%;
    display: flex;
    gap: 0.45rem;
  }
  .notif-email-actions .action-pill {
    flex: 1;
    height: 38px;
    padding: 0 0.4rem;
    font-size: 0.78rem;
  }
  .notif-add-flavor-row {
    display: flex;
    gap: 0.4rem;
    width: 100%;
  }
  .notif-flavor-input {
    flex: 1 1 0%;
    min-width: 0;
    height: 38px;
    font-size: 0.82rem;
    padding: 0 0.65rem;
  }
  .notif-add-flavor-btn {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 0.7rem;
    font-size: 0.78rem;
  }
  .notif-match-item {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }
  .notif-modal-footer {
    display: block;
  }
  .notif-modal-footer > .action-pill {
    display: inline-flex;
    width: 100%;
    height: 38px;
    margin-bottom: 0.45rem;
  }
  .notif-modal-footer-right {
    width: 100%;
    display: flex;
    gap: 0.45rem;
  }
  .notif-modal-footer-right .action-pill {
    flex: 1;
    height: 38px;
    padding: 0 0.4rem;
    font-size: 0.78rem;
  }
}

/* Floating Toast Notification */
.cmke-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #1F1818;
  color: #FFFDF9;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1.5px solid #E5A93C;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cmke-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Stand Highlight Pulse (Deep-linking) */
@keyframes standHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 29, 37, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(200, 29, 37, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(200, 29, 37, 0); }
}

.stand-highlight-pulse {
  animation: standHighlightPulse 1.6s ease-in-out 2;
  border-color: var(--retro-red) !important;
}

/* Interactive Favorites Subscription Prompt Banner */
.cmke-fav-prompt {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  max-width: 560px;
  width: calc(100% - 32px);
  background: #1F1818;
  color: #FFFDF9;
  border: 1.5px solid #E5A93C;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 4px 12px rgba(229, 169, 60, 0.2);
  z-index: 99999;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.cmke-fav-prompt.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cmke-fav-prompt-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cmke-fav-prompt-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.cmke-fav-prompt-text {
  min-width: 0;
}

.cmke-fav-prompt-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFDF9;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmke-fav-prompt-sub {
  font-size: 0.78rem;
  color: #E2D7CE;
  line-height: 1.3;
  margin-top: 0.12rem;
}

.cmke-fav-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cmke-fav-prompt-btn {
  background: var(--retro-red);
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.52rem 0.92rem;
  border-radius: 99px;
  border: 1.5px solid #FF8086;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(200, 29, 37, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cmke-fav-prompt-btn:hover {
  background: #E02832;
  transform: translateY(-1px);
}

.cmke-fav-prompt-close {
  background: transparent;
  border: none;
  color: #A39691;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.cmke-fav-prompt-close:hover {
  color: #FFFDF9;
}

@media (max-width: 600px) {
  .cmke-fav-prompt {
    bottom: 16px;
    padding: 0.8rem 0.95rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .cmke-fav-prompt-title {
    white-space: normal;
  }
  .cmke-fav-prompt-actions {
    justify-content: flex-end;
  }
  .cmke-fav-prompt-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Favorites View Subscription Callout Card */
.favorites-view-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF4E5 100%);
  border: 1.5px solid #E5A93C;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.14);
  margin-bottom: 0.5rem;
}

.fav-banner-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.fav-banner-icon {
  width: 42px;
  height: 42px;
  background: var(--retro-red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(200, 29, 37, 0.22);
}

.fav-banner-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.2;
}

.fav-banner-sub {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.fav-banner-btn {
  background: var(--retro-red);
  color: #FFFFFF !important;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.58rem 1.15rem;
  border-radius: 99px;
  border: 1.5px solid var(--retro-red-dark);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200, 29, 37, 0.22);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fav-banner-btn:hover {
  background: var(--retro-red-dark);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .favorites-view-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.95rem;
    gap: 0.85rem;
  }
  .fav-banner-btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

/* City Directory & Filter Navigation Pills */
.city-pills-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.city-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 0.42rem 0.85rem !important;
  border-radius: var(--radius-full) !important;
  border: 1.5px solid var(--border-strong) !important;
  background: #FFFFFF !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  line-height: 1.3 !important;
}

.city-pill:hover {
  background: var(--retro-red-tint) !important;
  border-color: var(--retro-red) !important;
  color: var(--retro-red-dark) !important;
  transform: translateY(-1px) !important;
}

.city-pill.primary {
  background: var(--retro-red) !important;
  color: #FFFFFF !important;
  border-color: var(--retro-red-dark) !important;
}

.city-pill.primary:hover {
  background: var(--retro-red-dark) !important;
  color: #FFFFFF !important;
}

/* Custard Roulette / Surprise Me Button */
.roulette-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #FFF9F0 0%, #FFF0D6 100%);
  border: 1.5px solid var(--retro-gold);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--retro-red-dark);
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(229, 169, 60, 0.2);
}

.roulette-btn:hover {
  background: #FFE8BD;
  border-color: #D97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(229, 169, 60, 0.35);
}

.roulette-btn:active {
  transform: translateY(0);
}

.roulette-btn.spinning .roulette-icon {
  display: inline-block;
  animation: rouletteSpin 0.22s infinite linear;
}

@keyframes rouletteSpin {
  0% { transform: rotate(0deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1.25); }
  100% { transform: rotate(360deg) scale(1.1); }
}

/* Mobile PWA Add to Home Screen Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;
  z-index: 99990;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.pwa-install-card {
  background: #1F1818;
  color: #FFFDF9;
  border: 1.5px solid var(--retro-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(229, 169, 60, 0.2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--retro-gold);
  flex-shrink: 0;
}

.pwa-install-body {
  flex: 1;
  min-width: 0;
}

.pwa-install-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFDF9;
  line-height: 1.25;
}

.pwa-install-desc {
  font-size: 0.76rem;
  color: #E2D7CE;
  line-height: 1.3;
  margin-top: 0.12rem;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pwa-install-action-btn {
  background: var(--retro-red);
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.48rem 0.85rem;
  border-radius: 99px;
  border: 1.5px solid #FF8086;
  white-space: nowrap;
}

.pwa-install-action-btn:hover {
  background: #E02832;
}

.pwa-dismiss-btn {
  background: transparent;
  border: none;
  color: #A39691;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.pwa-dismiss-btn:hover {
  color: #FFFDF9;
}

/* ==========================================================================
   First-Time Visitor Signup Prompt Toast
   ========================================================================== */
.signup-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 32px);
  max-width: 380px;
  z-index: 99980;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.signup-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.signup-toast-card {
  position: relative;
  background: var(--bg-card, #FFFDF9);
  color: var(--ink-primary, #1F1818);
  border: 2px solid var(--retro-gold, #E5A93C);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 20px;
  box-shadow: 0 16px 36px -4px rgba(31, 24, 24, 0.22), 0 4px 12px rgba(200, 29, 37, 0.1);
}

.signup-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-secondary, #8C7A7A);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.signup-toast-close:hover {
  background: var(--bg-subtle, #F4ECE1);
  color: var(--ink-primary, #1F1818);
}

.signup-toast-header {
  margin-bottom: 6px;
}

.signup-toast-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--retro-red, #C81D25);
  background: #FFE8EC;
  padding: 3px 8px;
  border-radius: 99px;
}

.signup-toast-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-primary, #1F1818);
  line-height: 1.25;
  margin-bottom: 4px;
}

.signup-toast-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary, #5C4B4B);
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.signup-toast-form {
  display: flex;
  gap: 8px;
}

.signup-toast-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  font-size: 0.85rem;
  padding: 0 12px;
  border: 1.5px solid var(--border, #D1BFA9);
  border-radius: var(--radius-sm, 8px);
  background: #FFFFFF;
  color: #1F1818;
  font-family: inherit;
  box-sizing: border-box;
}

.signup-toast-input:focus {
  outline: none;
  border-color: var(--retro-red, #C81D25);
  box-shadow: 0 0 0 3px rgba(200, 29, 37, 0.12);
}

html[data-theme="dark"] .signup-toast-input {
  background: #2A2121;
  color: #FFFDF9;
  border-color: #4A3B3B;
}

.signup-toast-submit {
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--retro-red, #C81D25);
  color: #FFFFFF !important;
  border: none;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.signup-toast-submit:hover {
  background: var(--retro-red-dark, #A0151C);
}

.signup-toast-footer {
  margin-top: 8px;
  text-align: center;
}

.signup-toast-link {
  background: transparent;
  border: none;
  color: var(--retro-red, #C81D25);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.signup-toast-link:hover {
  color: var(--retro-red-dark, #A0151C);
}

.signup-toast-status {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
  text-align: center;
}

.signup-toast-status.success {
  color: #15803D;
}

.signup-toast-status.error {
  color: #B91C1C;
}

@media (max-width: 560px) {
  .signup-toast {
    right: auto;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.97);
    bottom: 16px;
    max-width: calc(100% - 24px);
  }

  .signup-toast.visible {
    transform: translate(-50%, 0) scale(1);
  }
}

/* View Mode Segmented Toggle (Cards vs Daily Board) (#3) */
.deck-days-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-toggle-group {
  display: inline-flex;
  background: #FAF5EE;
  border: 1.5px solid #DFCFC0;
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn:hover:not(.active) {
  color: var(--retro-red);
}

.view-toggle-btn.active {
  background: var(--retro-red);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(200, 29, 37, 0.25);
}

/* Compact Editorial Daily Board Sheet (#3) */
.daily-board-sheet {
  grid-column: 1 / -1;
  background: #FFFDF9;
  border: 2px solid #D8C9B8;
  border-top: 6px solid var(--retro-red);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(28, 22, 19, 0.06);
}

.daily-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: linear-gradient(135deg, #AF161E 0%, #C81D25 100%);
  color: #FFFFFF;
  padding: 1rem 1.35rem;
}

.daily-board-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.daily-board-date {
  background: #FEEEB9;
  color: #821419;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.daily-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.82rem 1.25rem;
  border-bottom: 1px solid #EAE0D2;
  border-right: 1px solid #EAE0D2;
  transition: background 0.14s ease;
}

.daily-board-row:nth-child(even) {
  border-right: none;
}

.daily-board-row:hover {
  background: #FAF5EE;
}

.daily-board-row-main {
  min-width: 0;
  flex: 1;
}

.daily-board-stand-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.daily-board-stand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--retro-red);
  text-decoration: none;
}

.daily-board-stand-name:hover {
  text-decoration: underline;
}

.daily-board-stand-city {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.daily-board-flavor {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.daily-board-flavor.is-closed {
  color: var(--ink-muted);
  font-style: italic;
}

.daily-board-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

@media (max-width: 780px) {
  .daily-board-grid {
    grid-template-columns: 1fr;
  }
  .daily-board-row {
    border-right: none;
    padding: 0.75rem 1rem;
  }
}

/* "Going Today" 1-Tap Vote Pill (#4) */
.vote-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #FAF5EE !important;
  border-color: #DFCFC0 !important;
  color: #5C4B4B !important;
  font-weight: 700 !important;
  transition: all 0.15s ease;
}

.vote-today-btn:hover {
  border-color: #E5A93C !important;
  background: #FEF3C7 !important;
  color: #92400E !important;
}

.vote-today-btn.voted {
  background: #FEF3C7 !important;
  border-color: #E5A93C !important;
  color: #92400E !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   Subtle Floating "Buy Me Custard" Support Pill
   ========================================================================== */
.floating-bmc-wrap {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99850;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #FFFDF9;
  border: 1.5px solid #E5A93C;
  border-radius: 999px;
  padding: 0.34rem 0.5rem 0.34rem 0.38rem;
  box-shadow: 0 8px 22px rgba(31, 24, 24, 0.14), 0 2px 6px rgba(200, 29, 37, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.floating-bmc-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 24, 24, 0.18), 0 3px 10px rgba(229, 169, 60, 0.24);
  border-color: #C81D25;
}

.floating-bmc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink, #1F1818);
  padding-right: 0.2rem;
}

.floating-bmc-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C81D25 0%, #AF161E 100%);
  color: #FFFDF9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.floating-bmc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.floating-bmc-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 0.86rem;
  font-weight: 800;
  color: #1F1818;
  white-space: nowrap;
}

.floating-bmc-sub {
  font-size: 0.69rem;
  font-weight: 600;
  color: #71645A;
  white-space: nowrap;
  margin-top: 1px;
}

.floating-bmc-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8C7A7A;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 0.1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.floating-bmc-close:hover {
  background: #F4ECE1;
  color: #C81D25;
}

@media (max-width: 640px) {
  .floating-bmc-wrap {
    bottom: 14px;
    left: 14px;
    padding: 0.28rem 0.42rem 0.28rem 0.32rem;
  }
  .floating-bmc-icon {
    width: 30px;
    height: 30px;
  }
  .floating-bmc-title {
    font-size: 0.8rem;
  }
  .floating-bmc-sub {
    display: none;
  }
}

html[data-theme="dark"] .floating-bmc-wrap {
  background: #231C1C;
  border-color: #E5A93C;
}

html[data-theme="dark"] .floating-bmc-title {
  color: #FFFDF9;
}

html[data-theme="dark"] .floating-bmc-sub {
  color: #C7B9AD;
}
