/* ─────────────────────────────────────────────────────────────
   Tropesmith hero — animated Map carousel
   Replaces the static .mapdoc-stack on the right of the hero.
   ───────────────────────────────────────────────────────────── */

.hero-map-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Fix: ensure both grid items can shrink below their content min-width.
   Without this, the unclassed left <div> (headline column) overflows its
   1.15fr track and pushes the Map below it. */
.hero-grid > * {
  min-width: 0;
}

.hero-map-card {
  background: var(--ts-ink, #10122F);
  color: var(--ts-cream, #FFF9F3);
  border-radius: 10px;
  padding: 20px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 12px;
  box-shadow: 0 30px 80px -20px rgba(16,18,47,0.4), 0 0 0 1px rgba(255,107,122,0.08);
  min-height: 340px;
  width: 100%;
  box-sizing: border-box;
  transition: opacity 0.4s ease;
}

.hero-map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,249,243,0.5);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: 'Inter', system-ui, sans-serif;
}

.hero-map-head .hero-map-genre {
  color: var(--ts-coral, #FF6B7A);
  transition: opacity 0.3s ease;
}

.hero-map-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  font-family: 'Fraunces', serif;
  color: var(--ts-cream, #FFF9F3);
}

.hero-map-sub {
  font-size: 12px;
  color: rgba(255,249,243,0.55);
  margin: 0 0 16px;
  font-style: italic;
  font-family: 'Fraunces', serif;
}

.hero-map-stack-label {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ts-coral, #FF6B7A);
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  justify-content: space-between;
}

.hero-map-stack-label .hero-map-counter {
  color: rgba(255,249,243,0.4);
  font-weight: 500;
}

.hero-map-tropes {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 11.5px;
  min-height: 200px;
}

.hero-map-trope {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,249,243,0.08);
}

.hero-map-trope:last-child { border-bottom: none; }

.hero-map-trope.is-shown {
  display: flex;
  animation: heroMapTropeIn 0.25s ease-out;
}

@keyframes heroMapTropeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-map-trope .hero-map-rank {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 9.5px;
  color: var(--ts-coral, #FF6B7A);
  font-weight: 600;
}

.hero-map-trope .hero-map-trope-name {
  flex: 1;
  font-family: 'Fraunces', serif;
  color: var(--ts-cream, #FFF9F3);
}

.hero-map-trope .hero-map-trope-name b { font-weight: 600; }

.hero-map-trope .hero-map-lane {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
}

.hero-map-lane.hero-map-lane-hot {
  background: rgba(255,107,122,0.15);
  color: var(--ts-coral, #FF6B7A);
}

.hero-map-lane.hero-map-lane-warm {
  background: rgba(184,134,11,0.18);
  color: #FAC775;
}

.hero-map-verdict {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31,158,117,0.18);
  color: #9FE1CB;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  width: fit-content;
}

.hero-map-verdict.is-shown {
  display: inline-flex;
  animation: heroMapTropeIn 0.4s ease-out;
}

.hero-map-verdict-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5DCAA5;
}

/* Mobile: disable animation, show single static Map */
@media (max-width: 760px) {
  .hero-map-carousel .hero-map-trope { display: flex; }
  .hero-map-carousel .hero-map-verdict { display: inline-flex; }
  .hero-map-carousel .hero-map-counter { display: none; }
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-map-carousel .hero-map-trope { display: flex; animation: none; }
  .hero-map-carousel .hero-map-verdict { display: inline-flex; animation: none; }
  .hero-map-card { transition: none; }
}

/* Scoped headline polish — only affects the hero h1 */
.hero .h-display {
  font-weight: 700;
}
