/* ═══════════════════════════════════════════════════════════════════════════
   THE MATCHUP MAPS — what the matchup adds to the field maps' card.

   The card itself is field-maps.css (the app's ui/fieldMaps MapCard): the pill
   switch, the view's title, the dark slab and its key, the sentence, the sample
   line. This file is the app's ui/matchupMaps on top of it: who is on which side
   with one Swap button, the hitters he faces (baseball), the verdict bar, and how
   the card sits on a wide page. The web's house rules where they differ from the
   app: every control a pill in the body face (--font-button), never the
   typewriter face, and a 44px tap (the app's 36px hitter chip keeps a 44px touch
   area here too); Didot at weight 400 only; no text-shadow.
   ═══════════════════════════════════════════════════════════════════════════ */

.mm-host[hidden] { display: none; }
.mm {
  --mm-line-soft: #36293D;                 /* the app's lineSoft, dark */
  min-width: 0;
  container-type: inline-size;
}
html[data-theme="light"] .mm { --mm-line-soft: #DCCCE5; }

/* one column, the app's order, a phone's width: on a phone, in the baseball pop-up,
   and wherever the card is narrow */
.mm .mm-cols { max-width: 460px; }
/* a wide card: who is on which side and the switch on the left, the picture and its
   sentence on the right; read left then right, it is the app's order */
@container (min-width: 860px) {
  .mm .mm-cols {
    max-width: none; display: grid; align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 48px;
  }
}

/* ── who is on which side, and the one Swap button ─────────────────────── */
.mm-sides {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px;
}
.mm-sides-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.mm-sides-list li {
  display: flex; align-items: center; min-width: 0;
  font-family: var(--font-sans); font-size: 13px; line-height: 17px; color: var(--text-secondary);
}
.mm-sides-list .fm-dot { margin-right: 8px; }
.mm-sides-list li > span { min-width: 0; }
.mm-sides-list b { font-weight: 600; color: var(--text-primary); }
.mm-swap {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--text-primary); cursor: pointer;
  font-family: var(--font-button); font-weight: 600; font-size: 12.5px; line-height: 1;
}
.mm-swap:hover { background: var(--bg-inset); }

/* ── baseball: the hitters he faces, one row of pills ──────────────────── */
/* the hitter pills wrap to a second line everywhere (2026-10-31, the card-order board: they ran off
   the right edge with half a name showing on a phone) */
.mm-chips {
  display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 6px -2px 0; padding: 4px 2px;
}
.mm-chips::-webkit-scrollbar { display: none; }
.mm-chip {
  position: relative; flex: none; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--text-secondary); cursor: pointer; white-space: nowrap;
  font-family: var(--font-button); font-weight: 400; font-size: 13px; line-height: 16px;
}
/* the app's 36px pill with its 44px touch area */
.mm-chip::after { content: ""; position: absolute; inset: -4px 0; }
.mm-chip:hover:not(.on) { background: var(--bg-inset); }
.mm-chip.on { border-color: var(--text-primary); background: var(--text-primary); color: var(--bg-page); font-weight: 600; }
.mm-swap:focus-visible, .mm-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── the verdict: who has the edge ─────────────────────────────────────── */
.mm-verdict { display: grid; gap: 6px; margin-top: 14px; }
.mm-vnames {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px; line-height: 16px;
}
.mm-vnames span { min-width: 0; }
.mm-vnames .s { color: var(--warning-text); }
.mm-vnames .c { color: var(--gold); text-align: right; }
/* the bar: amber fading in from the left, green from the right, the middle clear */
.mm-tug { position: relative; height: 18px; }
.mm-tug::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4.5px; height: 9px; box-sizing: border-box;
  border: 1px solid var(--mm-line-soft); border-radius: 4.5px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--warning-text) 88%, transparent) 0%,
    color-mix(in srgb, var(--warning-text) 12%, transparent) 46%,
    transparent 46%, transparent 54%,
    color-mix(in srgb, var(--gold) 12%, transparent) 54%,
    color-mix(in srgb, var(--gold) 88%, transparent) 100%);
}
.mm-tug-mid {
  position: absolute; left: 50%; top: 1px; bottom: 1px; width: 1px; margin-left: -.5px;
  background: var(--text-primary); opacity: .45;
}
/* the logo's pearl at the edge */
.mm-bead {
  position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; box-sizing: border-box;
  border-radius: 50%; border: 1px solid rgba(40, 20, 50, 0.35);
  background: radial-gradient(circle 12.75px at 38% 32%, #FFFFFF 0, #F2EEF8 4.46px, #C9BFE0 10.2px, #9F96B8 12.75px);
}
.mm-ticks {
  display: flex; justify-content: space-between;
  font-family: var(--font-sans); font-size: 11px; line-height: 13px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.mm-vtext {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 15px; line-height: 21px; color: var(--text-secondary); margin: 4px 0 0;
}
.mm-vnum { font-style: normal; color: var(--text-primary); font-variant-numeric: lining-nums tabular-nums; }
