/* ═══════════════════════════════════════════════════════════
   MARKET MOVERS — rich card grid + drifters sidebar
   Rendered by news/partials/_market_movers_grid.html beneath the
   article body when article.market_movers.exists.
   Scoped under .wire-movers so it can't leak into other articles.
   ═══════════════════════════════════════════════════════════ */
.wire-movers {
  margin: 32px 0 24px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #11151F;

  --wm-emerald:   #1A7D4A;
  --wm-emerald-lt:#2DBD7A;
  --wm-rust:      #C0392B;
  --wm-gold:      #D4AF37;
  --wm-gold-ink:  #6B4F0C;
  --wm-paper:     #FAFAF7;
  --wm-paper-warm:#F7F5EE;
  --wm-ink:       #11151F;
  --wm-ink-70:    #41474F;
  --wm-ink-40:    #9CA3AF;
  --wm-rule:      #E7E5DD;
}

/* ── Steamer grid ─────────────────────────────────────────── */
.wire-movers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .wire-movers__grid { grid-template-columns: 1fr 1fr; }
}

.wire-mover {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-left: 6px solid var(--wm-emerald);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
              0 4px 12px -8px rgba(26, 125, 74, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wire-mover:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06),
              0 10px 24px -10px rgba(26, 125, 74, 0.25);
}

/* ── Card header — pills row ─────────────────────────────── */
.wire-mover__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.wire-mover__pct-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  background: var(--wm-emerald);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}
.wire-mover__pct-pill--drifter {
  background: var(--wm-rust);
}
.wire-mover__pct-pill-tag {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

.wire-mover__course-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wm-gold);
  color: var(--wm-ink);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wire-mover__course-time {
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.18);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── Horse name — big serif, links inherit ───────────────── */
.wire-mover__horse {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--wm-ink);
}
.wire-mover__horse-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.wire-mover__horse-link:hover {
  color: var(--wm-gold-ink);
  border-bottom-color: var(--wm-gold);
}

/* ── Price trail ─────────────────────────────────────────── */
.wire-mover__trail {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: rgba(26, 125, 74, 0.08);
  border: 1px solid rgba(26, 125, 74, 0.20);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.wire-mover__trail-open {
  font-size: 14px;
  font-weight: 700;
  color: var(--wm-ink-40);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}
.wire-mover__trail-arrow {
  font-size: 14px;
  color: var(--wm-emerald);
}
.wire-mover__trail-current {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--wm-emerald);
}

/* ── Prose paragraph ────────────────────────────────────── */
.wire-mover__prose {
  margin: 0 0 14px;
  font-family: 'Iowan Old Style', 'Charter', Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--wm-ink);
}
.wire-mover__intro {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 900;
  font-size: 16px;
  color: var(--wm-emerald);
  margin-right: 4px;
}

/* ── Connections row ─────────────────────────────────────── */
.wire-mover__connections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--wm-rule);
}
.wire-mover__conn {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--wm-paper-warm);
  border: 1px solid var(--wm-rule);
  font-size: 12px;
  color: var(--wm-ink);
}
.wire-mover__conn-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wm-ink-40);
}
.wire-mover__conn--book .wire-mover__conn-lbl {
  color: var(--wm-gold-ink);
}
.wire-mover__conn-link {
  color: var(--wm-ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--wm-rule);
  font-weight: 700;
}
.wire-mover__conn-link:hover {
  color: var(--wm-gold-ink);
  border-bottom-color: var(--wm-gold);
}


/* ═══════════════════════════════════════════════════════════
   DRIFTERS — sidebar block at the foot of the article
   ═══════════════════════════════════════════════════════════ */
.wire-movers__drifters {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: rgba(192, 57, 43, 0.04);
  border: 1px solid rgba(192, 57, 43, 0.20);
  border-radius: 12px;
}
.wire-movers__drifters-title {
  margin: 0 0 4px;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--wm-rust);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wire-movers__drifters-lede {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--wm-ink-70);
  font-style: italic;
}
.wire-movers__drifter {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(192, 57, 43, 0.15);
  border-radius: 8px;
}
.wire-movers__drifter:last-child { margin-bottom: 0; }
.wire-movers__drifter .wire-mover__pct-pill {
  font-size: 13px;
  padding: 3px 9px;
}
.wire-movers__drifter-horse {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--wm-ink);
}
.wire-movers__drifter-horse-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.wire-movers__drifter-horse-link:hover {
  border-bottom-color: var(--wm-rust);
}
.wire-movers__drifter-trail {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  color: var(--wm-ink-70);
}
.wire-movers__drifter-race {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wm-ink-40);
}
@media (max-width: 540px) {
  .wire-movers__drifter {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "pill horse"
      "trail race";
    gap: 6px 10px;
  }
  .wire-movers__drifter .wire-mover__pct-pill { grid-area: pill; }
  .wire-movers__drifter-horse { grid-area: horse; }
  .wire-movers__drifter-trail { grid-area: trail; }
  .wire-movers__drifter-race  { grid-area: race; text-align: right; }
}


/* ──────────────────────────────────────────────────────────
   RESULT CHIP — "did the steam pay off?"
   Sits between the price trail and the narrative on each
   steamer card. Hidden entirely when the race hasn't been
   settled yet (state == 'pending'). Tone palette tracks the
   outcome: gold for a winner, silver / bronze for placed,
   muted grey for unplaced, rust for DNF.
   ────────────────────────────────────────────────────────── */
.wire-mover__result {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}
.wire-mover__result-icon {
  font-size: 16px;
  line-height: 1;
}
.wire-mover__result-label {
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.wire-mover__result-sublabel {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* WON — gold + ink. The headline outcome — punter who
   followed the steam got paid. */
.wire-mover__result--won {
  background: linear-gradient(135deg, #FBE38C 0%, #D4AF37 100%);
  color: #1A2233;
  border: 1px solid rgba(122, 90, 15, 0.45);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.30);
}
.wire-mover__result--won .wire-mover__result-sublabel {
  color: #5A4208;
  opacity: 1;
}

/* PLACED — pewter palette for 2nd / 3rd. Punter got each-way. */
.wire-mover__result--placed {
  background: rgba(160, 160, 160, 0.18);
  color: #4A4A4A;
  border: 1px solid rgba(140, 140, 140, 0.45);
}

/* UNPLACED — muted, just the position. No celebration. */
.wire-mover__result--unplaced {
  background: rgba(0, 0, 0, 0.05);
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

/* DNF — rust to call out a non-completion. */
.wire-mover__result--dnf {
  background: rgba(192, 57, 43, 0.10);
  color: #C0392B;
  border: 1px solid rgba(192, 57, 43, 0.45);
}

/* Abandoned — neutral grey, race didn't run. */
.wire-mover__result--abandoned {
  background: rgba(0, 0, 0, 0.06);
  color: #888;
  border: 1px dashed rgba(0, 0, 0, 0.20);
  font-style: italic;
}


/* Drifter sidebar result chip — tighter, inline, sits at the
   end of the drifter row. Punter scan-reads "drifted out and
   lost" — confirmation that the warning was the right call. */
.wire-movers__drifter-result {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  margin-left: 8px;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.wire-movers__drifter-result--won {
  background: rgba(212, 175, 55, 0.20);
  color: #5A4208;
  border: 1px solid rgba(212, 175, 55, 0.55);
}
.wire-movers__drifter-result--placed {
  background: rgba(160, 160, 160, 0.16);
  color: #4A4A4A;
  border: 1px solid rgba(140, 140, 140, 0.35);
}
.wire-movers__drifter-result--unplaced {
  background: rgba(0, 0, 0, 0.05);
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.wire-movers__drifter-result--dnf {
  background: rgba(192, 57, 43, 0.12);
  color: #C0392B;
  border: 1px solid rgba(192, 57, 43, 0.40);
}
.wire-movers__drifter-result--abandoned {
  background: rgba(0, 0, 0, 0.06);
  color: #888;
  border: 1px dashed rgba(0, 0, 0, 0.20);
  font-style: italic;
}


/* ──────────────────────────────────────────────────────────
   FOOTER CTA — "View the live Steamers Board"
   Closes the article — punter has read the curated 40%+ moves;
   this points them at the live board for everything else
   (smaller moves, intraday updates). Sits below the drifter
   sidebar, full-width, visually distinct from the cards so it
   reads as a next-step action rather than another data row.
   ────────────────────────────────────────────────────────── */
.wire-movers__cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 28px 0 8px;
  padding: 18px 22px;
  background: linear-gradient(135deg,
                              rgba(212, 175, 55, 0.08) 0%,
                              rgba(26, 125, 74, 0.08) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  text-decoration: none;
  color: #11151F;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.wire-movers__cta:hover,
.wire-movers__cta:focus-visible {
  transform: translateY(-2px);
  border-color: #D4AF37;
  background: linear-gradient(135deg,
                              rgba(212, 175, 55, 0.18) 0%,
                              rgba(26, 125, 74, 0.14) 100%);
  box-shadow: 0 10px 24px -12px rgba(212, 175, 55, 0.45);
  outline: none;
}

.wire-movers__cta-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.25));
}

.wire-movers__cta-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.wire-movers__cta-label {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #11151F;
}
.wire-movers__cta-sub {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5A4208;
}

.wire-movers__cta-arrow {
  font-size: 22px;
  font-weight: 900;
  color: #D4AF37;
  line-height: 1;
  transition: transform 0.18s ease;
}
.wire-movers__cta:hover .wire-movers__cta-arrow {
  transform: translateX(5px);
}

@media (max-width: 540px) {
  .wire-movers__cta {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .wire-movers__cta-icon { font-size: 24px; }
  .wire-movers__cta-label { font-size: 16px; }
  .wire-movers__cta-sub { font-size: 11px; }
  .wire-movers__cta-arrow {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 18px;
  }
}
