/* =============================================================================
   Article embed cards (.aemb-*) — shared by the /p/{slug} reader, The Desk
   editor at /create, and its preview (design_handoff_create_editor). Light
   spec values only: every surface using these is si-themed light.
   Anatomy: outline card 0.38 radius 14, header row = context label + rule +
   LIVE · VIA SPORTS INDEX, kind-specific body.
   ============================================================================= */

.aemb {
  border: 1px solid rgba(16, 20, 24, 0.38);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 18px;
  color: #101418;
  background: transparent;
}
.aemb-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.aemb-ctx {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(16, 20, 24, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aemb-rule { flex: 1 1 auto; height: 1px; background: rgba(16, 20, 24, 0.25); min-width: 20px; }
.aemb-live {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: rgba(16, 20, 24, 0.45); white-space: nowrap;
}

/* ---- stat box ---- */
.aemb-stacks { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.aemb-stack { display: flex; flex-direction: column; gap: 2px; }
.aemb-stack b {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums; line-height: 1.15; color: #101418;
}
.aemb-stack b .aemb-suffix { font-size: 12px; font-weight: 700; letter-spacing: 0; margin-left: 6px; color: rgba(16, 20, 24, 0.65); }
.aemb-stack b .aemb-suffix.is-up { color: #16a34a; }
.aemb-stack b .aemb-suffix.is-down { color: #dc2626; }
.aemb-stack span {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: rgba(16, 20, 24, 0.65);
}

/* ---- matchup ---- */
.aemb-match { display: flex; align-items: center; gap: 14px; min-width: 0; }
.aemb-match img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.aemb-mteam { font-size: 19px; font-weight: 800; color: #101418; white-space: nowrap; }
.aemb-mat { font-size: 10px; font-weight: 800; color: rgba(16, 20, 24, 0.45); flex: none; }
.aemb-mwhen { margin-left: auto; font-size: 12px; font-weight: 600; color: rgba(16, 20, 24, 0.65); white-space: nowrap; }
@media (max-width: 560px) { .aemb-mteam { font-size: 15px; } .aemb-mwhen { display: none; } }

/* ---- news card ---- */
.aemb-news { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; min-width: 0; }
.aemb-news-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.aemb-news-src { font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: rgba(16, 20, 24, 0.55); }
.aemb-news-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; color: #101418; }
.aemb-news:hover .aemb-news-title { text-decoration: underline; text-underline-offset: 2px; }
.aemb-news-thumb { width: 108px; height: 72px; border-radius: 9px; object-fit: cover; flex: none; background: rgba(16, 20, 24, 0.06); }

/* ---- leaders / standings table ---- */
.aemb-rows { display: flex; flex-direction: column; }
.aemb-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid rgba(16, 20, 24, 0.12); text-decoration: none; color: inherit;
}
.aemb-row:last-child { border-bottom: none; padding-bottom: 2px; }
.aemb-row-rank { width: 18px; font-size: 11px; font-weight: 800; color: rgba(16, 20, 24, 0.45); font-variant-numeric: tabular-nums; flex: none; }
.aemb-row img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.aemb-row-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: #101418; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aemb-row:hover .aemb-row-name { text-decoration: underline; text-underline-offset: 2px; }
.aemb-row-val { font-size: 12px; font-weight: 700; color: rgba(16, 20, 24, 0.65); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- video ---- */
.aemb-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgba(16, 20, 24, 0.06); }
.aemb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* unresolved (ref stored, data unavailable) */
.aemb-unresolved { font-size: 12.5px; color: rgba(16, 20, 24, 0.55); }
