/* H2H matchup card — shared component.
   Extracted from h2h-index.css 1 Aug 2026 so the homepage rivalry band can use the
   same cards without pulling in pages-bespoke.css. Depends on base.css tokens only.
   Surface-chip colours live here too: .hc-surf .st and .keylegend .st share them. */
.st.clay{background:#c4683c}
.st.grass{background:#2e9b63}
.st.hard{background:#3b82c9}
.st.indoor{background:#6b5b9a}
/* ---- H2H matchup card ---- */
  .hcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;transition:transform .16s,box-shadow .16s,border-color .16s}
.hcard:hover{transform:translateY(-3px);box-shadow:0 16px 34px -22px rgba(12,45,32,.45);border-color:var(--green-600)}
.hc-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px 14px}
.hc-side{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;min-width:0}
.hc-side.right{flex-direction:column}
.hc-av{width:46px;height:46px;border-radius:50%;flex-shrink:0;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:900;font-size:15px;color:#fff;letter-spacing:-.5px;background:var(--green-800)}
.hc-nm{font-family:var(--display);font-weight:800;font-size:15px;line-height:1.1;letter-spacing:-.01em;color:var(--ink);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-nm small{display:block;font-weight:700;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);margin-top:3px}
.hc-score{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;padding:0 2px;min-width:58px}
.hc-score .nums{font-family:var(--display);font-weight:900;font-size:25px;letter-spacing:-.02em;line-height:.95;color:var(--muted-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.hc-score .nums i{font-style:normal;opacity:.4;margin:0 2px}
.hc-score .nums .ld{color:var(--green-700)}
.hc-score .nums .ld.clay{color:var(--clay)}
.hc-score .badge{font-family:var(--display);font-weight:800;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--green-700);background:#e7f1ea;border-radius:100px;padding:5px 10px;text-align:center;line-height:1.15;white-space:nowrap}
.hc-score .cap{font-family:var(--display);font-weight:700;font-size:8.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);margin-top:5px}
.hc-note{font-size:13px;line-height:1.5;color:#54605a;margin-top:14px;flex:1}
.hc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:13px;border-top:1px solid var(--line-2)}
.hc-surf{display:flex;gap:6px;align-items:center}
.hc-surf .st{width:11px;height:11px;border-radius:3px}
.hc-go{font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.03em;color:var(--green-700);white-space:nowrap}
.hcard:hover .hc-go{color:var(--orange-600)}
/* featured (big) variant */
  .hcard.big{padding:24px}
.hcard.big .hc-av{width:58px;height:58px;font-size:19px}
.hcard.big .hc-nm{font-size:18px}
.hcard.big .hc-score .nums{font-size:32px}
.hcard.big .hc-note{font-size:14px}
@media(max-width:680px){.hc-av{width:42px;height:42px;font-size:14px}.hc-nm{font-size:14px}.hc-score .nums{font-size:22px}}
/* player photo layered over the initials; initials remain the fallback when a player
   has no image, and onerror drops a broken file rather than leaving a blank disc */
.hc-av .hava-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;border-radius:50%}
