/* Home page "Latest results" once real results exist (owner: results team; served at
   /static/results/home-teaser.css, loaded by views/results/_home-teaser.njk in its data state only).

   The result card is the prototype's "Latest results" card (design/prototype/css/pages/results.css,
   section "Latest results cards"), which the prototype marks as "re-usable as the home-page results
   teaser once real results exist (move these rules to site.css then)". Until the design moves them
   to site.css (requested in app/prisma/pending/results.md), the rules are copied here verbatim and
   scoped to .result-strip--data so nothing else on the home page changes. Layout: the launch-state
   strip of site.css (status card + three slots); only the phone/tablet columns differ, because a
   filled card needs more width than an empty slot. */

.result-strip--data .pos { color: var(--color-mint); }
.result-strip--data .neg { color: var(--color-loss); }
.result-strip--data .zero { color: var(--color-void); }

.result-strip--data .result-slot--status strong { font-variant-numeric: tabular-nums; }

/* Result badges (results.css) */
.result-strip--data .res { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; white-space: nowrap; }
.result-strip--data .res svg { width: 20px; height: 20px; flex: none; }
.result-strip--data .res--won svg { color: var(--color-mint); }
.result-strip--data .res--lost svg { color: var(--color-loss); }
.result-strip--data .res--void svg, .result-strip--data .res--push svg { color: var(--color-void); }
.result-strip--data .res--void, .result-strip--data .res--push { color: var(--color-text-muted); }

/* Result card (results.css "Latest results cards") */
.result-strip--data .result-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; align-content: start;
  padding: var(--space-4); border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--color-surface);
  border: var(--border-line); border-left: 3px solid var(--color-void);
}
.result-strip--data .result-card--won { border-left-color: var(--color-mint); }
.result-strip--data .result-card--lost { border-left-color: var(--color-loss); }
.result-strip--data .result-card > p, .result-strip--data .result-card > h3 { grid-column: 1; margin: 0; }
.result-strip--data .result-card__date { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.result-strip--data .result-card__match { font-size: 24px; line-height: 1.05; margin-top: var(--space-2) !important; color: var(--color-white); overflow-wrap: anywhere; }
.result-strip--data .result-card__v { color: var(--color-text-faint); font-size: 0.8em; }
.result-strip--data .result-card__market { margin-top: var(--space-1) !important; font-size: var(--type-small-size); color: var(--color-text); }
.result-strip--data .result-card__meta { font-size: 13px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.result-strip--data .result-card__meta .unit { color: var(--color-text-faint); }
.result-strip--data .result-card__res { margin-top: var(--space-2) !important; font-size: var(--type-small-size); }
.result-strip--data .result-card__res .res svg { width: 18px; height: 18px; }
.result-strip--data .result-card > .result-card__pl {
  grid-column: 2; grid-row: 1 / span 5; align-self: center;
  display: grid; justify-items: center; min-width: 72px; padding: var(--space-2) var(--space-3);
  border-radius: 10px; border: 1px solid currentColor; background: rgba(0, 0, 0, 0.35); text-align: center;
}
.result-strip--data .result-card__pl strong { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.result-strip--data .result-card__pl small { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.result-strip--data .result-card__pl.pos { box-shadow: 0 0 18px rgba(0, 230, 161, 0.18); }

/* Double / treble / accumulator card (results.css, added 2026-10-24): bet type as the title, then
   the legs with small leg badges, the combined price, one result and one P/L. */
.result-strip--data .res--leg { gap: 6px; font-size: 13px; font-weight: 600; }
.result-strip--data .res--leg svg { width: 16px; height: 16px; }
.result-strip--data .res--none { color: var(--color-text-muted); }
.result-strip--data .result-card > ol { grid-column: 1; margin: 0; }
.result-strip--data .result-card__legs { display: grid; gap: var(--space-2); list-style: none; margin-top: var(--space-2) !important; padding: 0; font-size: 13px; line-height: 1.35; }
.result-strip--data .result-card__legs li { display: grid; gap: 2px; padding-left: var(--space-3); border-left: 2px solid var(--color-line); }
.result-strip--data .result-card__leg-match { font-weight: 700; color: var(--color-white); overflow-wrap: anywhere; }
.result-strip--data .result-card__leg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); color: var(--color-text); overflow-wrap: anywhere; }
.result-strip--data .result-card__leg-price { color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-strip--data .result-card--multi .result-card__meta { margin-top: var(--space-2) !important; }
.result-strip--data .result-card__note { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--color-text-muted); }

/* Phones: one card per row (the launch strip has two narrow slots per row) */
@media (max-width: 767.98px) {
  .result-strip.result-strip--data { grid-template-columns: minmax(0, 1fr); }
}
/* Tablets: status card on its own row, the three cards below it */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .result-strip.result-strip--data { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-strip--data .result-card__match { font-size: 20px; }
}
