/* Results page (results.html, results-empty.html). Loaded after site.css.
   Page-specific only; brand values come from tokens.css. Mobile first.
   Candidates for site.css are marked "shared?". */

/* ---------- Doubles, trebles and accumulators example (design review only; results.html) ---------- */
.multiples-example { margin-top: var(--space-7); }
.multiples-example__title { margin: 0; }
.multiples-example .latest__grid { margin-bottom: var(--space-4); }

/* ---------- Example-data banner (design review only) ---------- */
.example-banner {
  background: repeating-linear-gradient(-45deg, rgba(0, 230, 161, 0.12) 0 10px, rgba(0, 230, 161, 0.04) 10px 20px);
  border-bottom: 1px dashed rgba(0, 230, 161, 0.6);
}
.example-banner .wrap { display: flex; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-3); }
.example-banner .pill { flex: none; margin-top: 1px; }
.example-banner p { margin: 0; font-size: var(--type-small-size); line-height: var(--type-small-line); color: #CFD5D3; }
.example-banner strong { color: var(--color-white); }

/* ---------- Page hero (shared? every inner page needs one) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--space-7) var(--space-6); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 100% at 10% 0%, rgba(0, 230, 161, 0.16), transparent 70%);
}
/* Vector kit: floodlights + grid from the top right (img/vector/bg-floodlight.svg), fading out before the numbers */
.page-hero__fx {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9;
  background: url("../../img/vector/bg-floodlight.svg") right -72px / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
/* Wider screens: drop the scene a little so the left lamp is not cut in half by the top edge (as on ile-plus) */
@media (min-width: 768px) { .page-hero__fx { background-position: right -44px; } }
.page-hero h1 .line { display: block; }
.page-hero .label { margin-bottom: var(--space-4); }
/* Slanted signal bars in front of the "Results" label (white bars, the tallest one mint) */
.label__bars { width: 18px; height: 18px; color: var(--color-white); margin-top: -3px; }
.page-hero .lead { margin-top: var(--space-5); }
.page-hero__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin: var(--space-5) 0 0; }
.page-hero__aside { display: none; }
.page-hero__aside .label { margin-bottom: var(--space-4); }
.page-hero__aside .checklist { font-size: 15px; }

/* ---------- Filter bar ---------- */
.results-overview { padding-bottom: var(--space-8); }
.results-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-4); padding-top: var(--space-5); margin-bottom: var(--space-5); border-top: var(--border-line);
}
.results-bar__meta { margin: 0; font-size: var(--type-small-size); color: var(--color-text-muted); }
.results-bar__status { margin: 0; display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 700; color: var(--color-white); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-mint); box-shadow: 0 0 0 4px rgba(0, 230, 161, 0.2); }

.season-filter { display: flex; align-items: flex-end; gap: var(--space-3); }
/* Filter field: base .field is in site.css; here a smaller gap and a label-style caption */
.field { display: grid; gap: 6px; }
.field label {
  font-size: var(--type-label-size); font-weight: var(--type-label-weight); letter-spacing: var(--type-label-tracking);
  text-transform: uppercase; color: var(--color-text-muted);
}
.select {
  appearance: none; -webkit-appearance: none;
  min-height: 48px; min-width: 220px; padding: 0 44px 0 var(--space-4);
  border: 1px solid rgba(0, 230, 161, 0.45); border-radius: var(--radius-pill);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%2300E6A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
  color: var(--color-white); font: 600 16px/1.2 var(--font-body); cursor: pointer;
}
.select:hover { border-color: var(--color-mint); }
.select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.select option { background: var(--color-surface); color: var(--color-white); }
.season-filter .btn { min-height: 48px; }

/* ---------- Period total + tiles ---------- */
.results-summary { display: grid; gap: var(--space-3); }
.total-card { display: flex; flex-direction: column; gap: var(--space-2); position: relative; isolation: isolate; }
/* Kit grid tile (pattern-grid.svg) behind the period total, strongest in the top-right corner. Texture only. */
.total-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url("../../img/vector/pattern-grid.svg") right top / 48px 48px;
  -webkit-mask-image: radial-gradient(90% 90% at 100% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(90% 90% at 100% 0%, #000 0%, transparent 75%);
}
.total-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.total-card__top .label { margin: 0; }
.total-card__v {
  display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-2) 0 0;
  font-family: var(--font-display); font-size: 88px; line-height: 0.9; font-variant-numeric: tabular-nums;
}
.total-card__v small { font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--color-text-muted); }
.total-card__period { margin: 0; font-weight: 600; color: var(--color-white); }
.total-card__empty { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: 0.02em; }
.total-card--empty .total-card__period { font-weight: 400; color: var(--color-text-muted); max-width: 30rem; }
.record { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: var(--space-3) 0 0; padding: var(--space-3) 0 0; border-top: var(--border-line); font-size: var(--type-small-size); color: var(--color-text-muted); }
.record strong { color: var(--color-white); font-variant-numeric: tabular-nums; }

.tiles { margin: 0; }
.tiles dd { margin: 0; }
.tile { display: flex; flex-direction: column; }
.tile__s { margin-top: auto; padding-top: var(--space-1); font-size: 13px; line-height: 1.4; color: var(--color-text-muted); }
.tiles--empty .tile__v { color: var(--color-text-faint); }
/* Shared .tile__k uses text-faint: 4.1:1 on #111, below AA at 12px. Local override, reported for site.css. */
.results-summary .tile__k { color: var(--color-text-muted); }

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

/* ---------- Cumulative profit chart ---------- */
.pl-card { margin: var(--space-3) 0 0; padding: var(--space-5) var(--space-4) var(--space-4); }
.pl-card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-3); margin-bottom: var(--space-5); }
.pl-card__head h3 { margin: 0; }
.pl-card__sub { grid-column: 1 / -1; margin: 0; font-size: var(--type-small-size); color: var(--color-text-muted); }

.pl-chart { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 220px 30px; }
.pl-chart__y { position: relative; }
.pl-chart__y span {
  position: absolute; right: 8px; transform: translateY(-50%);
  font-size: 12px; line-height: 1; color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pl-chart__plot { position: relative; background: var(--color-surface); }
.pl-chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-chart__grid line { stroke: var(--color-line); stroke-width: 1; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.pl-chart__zero { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.pl-chart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-chart__line--up { stroke: var(--color-mint); }
.pl-chart__line--down { stroke: var(--color-loss); }
.pl-chart__area--up { fill: rgba(0, 230, 161, 0.1); }
.pl-chart__area--down { fill: rgba(255, 77, 94, 0.12); }
.pl-chart__dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--color-mint); box-shadow: 0 0 0 4px rgba(0, 230, 161, 0.22), 0 0 16px rgba(0, 230, 161, 0.6);
}
.pl-chart__end {
  position: absolute; transform: translate(calc(-100% + 8px), calc(-100% - 14px));
  padding: 4px 8px; border-radius: 6px; background: var(--color-mint); color: var(--color-mint-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pl-chart__end b { font-weight: 800; }
.pl-chart__x { position: relative; grid-column: 2; }
.pl-chart__x span {
  position: absolute; top: 10px; transform: translateX(-50%);
  font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted);
}
.pl-chart__x span.is-start { transform: none; }
.pl-chart__x span.is-end { transform: translateX(-100%); } /* last month near the right edge (app: chart.ts) */

.pl-card__cap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); font-size: 13px; color: var(--color-text-muted); }
.key { display: inline-flex; align-items: center; gap: var(--space-2); }
.key::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--color-mint); }
.key--down::before { background: var(--color-loss); }

.pl-empty { padding: 0; box-shadow: none; border: 0; border-radius: var(--radius-sm); }
.pl-empty .chart-empty { min-height: 240px; padding: var(--space-5); }
.pl-empty .chart-empty strong { font-size: 30px; }
/* Where the line will start: .chart-start (mint dot on the zero line) is in site.css, shared with the home teaser */

/* The required risk line under the numbers. Muted, not faint: text-faint fails AA on black at 13px. */
.results-disclaimer { margin: var(--space-4) 0 0; font-size: 13px; line-height: var(--type-legal-line); font-weight: 600; color: var(--color-text-muted); }
.results-disclaimer a { color: var(--color-mint); text-underline-offset: 3px; white-space: nowrap; }
.results-disclaimer a:hover { color: var(--color-mint-hi); }

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

/* ---------- History ---------- */
.history-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; font-size: var(--type-small-size); }
.legend li { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px var(--space-2); }
.legend__note { font-size: 13px; color: var(--color-text-muted); }

.history { width: 100%; border-collapse: collapse; font-size: var(--type-small-size); font-variant-numeric: tabular-nums; }
.history .unit { display: none; }
.history .note { display: block; font-size: 12px; color: var(--color-text-muted); }
.c-match { font-weight: 700; color: var(--color-white); }
.c-pl { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.c-pl .unit { font-family: var(--font-body); font-size: 0.55em; font-weight: 700; letter-spacing: 0; margin-left: 1px; }
.month__in { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.month__in > span:first-child { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em; font-weight: 400; color: var(--color-white); }
.month__pl { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; font-weight: 400; }
.month__pl .unit { display: inline; }

/* Mobile and tablet: each selection is a card */
@media (max-width: 959.98px) {
  .history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .history, .history tbody, .history tr, .history th, .history td { display: block; }
  .history .unit { display: inline; }
  .history tr.month th { padding: var(--space-5) 0 var(--space-3); text-align: left; }
  .history tbody:first-of-type tr.month th { padding-top: 0; }
  .history tr.sel {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-3);
    padding: var(--space-3) var(--space-4) 14px; margin-bottom: var(--space-2);
    background: var(--color-surface); border: var(--border-line); border-radius: var(--radius-md);
  }
  .history tr.sel > * { padding: 0; text-align: left; }
  .c-date { order: 1; flex: 1 1 auto; font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
  .c-res { order: 2; font-size: 14px; }
  .c-res .res svg { width: 18px; height: 18px; }
  .c-match { order: 3; flex: 1 1 calc(100% - 112px); min-width: 0; font-size: 16px; margin-top: 2px; }
  .history .c-pl { order: 4; font-size: 28px; text-align: right; margin-top: 2px; }
  .c-market { order: 5; flex: 0 0 100%; color: #CFD5D3; padding-bottom: 10px !important; margin-bottom: 6px; border-bottom: var(--border-line); }
  .c-ko { order: 6; } .c-rel { order: 7; } .c-price { order: 8; } .c-stake { order: 9; }
  .c-ko, .c-rel, .c-price, .c-stake { flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .c-ko::before, .c-rel::before, .c-price::before, .c-stake::before {
    content: attr(data-label); display: block; margin-bottom: 1px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted);
  }
}

/* Desktop: real table inside a card */
@media (min-width: 960px) and (max-width: 1199.98px) {
  .history th, .history td { padding-inline: 10px !important; }
}
@media (min-width: 960px) {
  .history-wrap { background: var(--color-surface); border: var(--border-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-glow); overflow: hidden; }
  .history th, .history td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: var(--border-line); }
  .history .num { text-align: right; }
  .history thead th {
    padding-block: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    line-height: 1.35; vertical-align: bottom; color: var(--color-text-muted); border-bottom: 1px solid rgba(0, 230, 161, 0.35);
  }
  .history tr.month th { background: var(--color-surface-2); padding-block: 10px; }
  .history tr.sel:hover { background: rgba(255, 255, 255, 0.02); }
  .history tbody:last-of-type tr:last-child > * { border-bottom: 0; }
  .c-date, .c-ko, .c-rel { white-space: nowrap; color: #CFD5D3; }
  .c-match, .history thead th.nw { white-space: nowrap; }
  .c-market { color: #CFD5D3; }
  .c-pl { text-align: right; }
}

/* ---- Doubles, trebles and accumulators in the history (added 2026-10-24) ----------------------
   A multiple is one selection: its own row (bet type, first kick-off, combined price, one result and
   one P/L), followed by one row per leg (match, market, kick-off, leg price, small leg badge).
   Phones/tablets: the legs continue the selection's card. Desktop: the legs sit under the bet's row. */
.res--leg { gap: 6px; font-size: 13px; font-weight: 600; }
.res--leg svg { width: 16px; height: 16px; }
.res--none { color: var(--color-text-muted); }
.history .leg__n { display: inline-block; min-width: 1.6em; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }

@media (max-width: 959.98px) {
  .history tr.sel--multi { margin-bottom: 0; border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; padding-bottom: var(--space-2); }
  /* No note: the empty market cell still breaks the line before kick-off, released, price, stake */
  .history tr.sel--multi .c-market:empty { padding-bottom: 4px !important; }
  /* "Combined" is a longer label than "Price"; the stake ("1u") needs less room */
  .history tr.sel--multi .c-price { flex-grow: 1.3; }
  .history tr.sel--multi .c-stake { flex-grow: 0.7; }
  .history tr.leg {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3);
    padding: var(--space-2) var(--space-4); background: var(--color-surface);
    border: var(--border-line); border-bottom: 0;
  }
  .history tr.leg--last { margin-bottom: var(--space-2); padding-bottom: 14px; border-bottom: var(--border-line); border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .history tr.leg > * { padding: 0; text-align: left; }
  .history tr.leg .c-date, .history tr.leg .c-rel, .history tr.leg .c-stake, .history tr.leg .c-pl { display: none; }
  .history tr.leg .c-match { order: 1; flex: 1 1 calc(100% - 96px); min-width: 0; margin: 0; font-size: 14px; font-weight: 600; }
  .history tr.leg .c-res { order: 2; }
  .history tr.leg .c-market { order: 3; flex: 0 0 100%; margin: 0; padding: 0 !important; border: 0; font-size: 13px; }
  .history tr.leg .c-ko { order: 4; } .history tr.leg .c-price { order: 5; }
  .history tr.leg .c-ko, .history tr.leg .c-price { flex: none; font-size: 13px; color: #CFD5D3; }
  .history tr.leg .c-ko::before, .history tr.leg .c-price::before { display: inline; margin: 0 6px 0 0; }
}
@media (min-width: 960px) {
  .history tr.sel--multi > * { border-bottom: 0; padding-bottom: 6px; }
  .history tr.leg > * { padding-block: 5px; border-bottom: 0; color: #CFD5D3; }
  .history tr.leg--last > * { padding-bottom: 12px; border-bottom: var(--border-line); }
  .history tr.leg .c-match { font-weight: 600; }
  .history tr.leg .leg__n { margin-left: var(--space-3); }
}
/* Narrow desktop: long leg matches wrap rather than squeezing the market column */
@media (min-width: 960px) and (max-width: 1199.98px) {
  .history tr.leg .c-match { white-space: normal; }
}

.history-empty {
  display: grid; justify-items: center; text-align: center; gap: var(--space-2);
  padding: var(--space-8) var(--space-5); border: 1px dashed rgba(0, 230, 161, 0.35); border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.history-empty .icon-badge { margin-bottom: var(--space-2); }
.history-empty h3 { margin: 0; }
.history-empty p { max-width: 36rem; margin: 0; }

/* ---------- Methodology ---------- */
.method { display: grid; gap: var(--space-6); }
.method__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.method__rules li { padding-left: var(--space-5); border-left: 2px solid rgba(0, 230, 161, 0.5); }
.method__rules h3 { margin: 0 0 var(--space-2); }
.method__rules p { margin: 0; color: var(--color-text-muted); }
.section-head .lead a, .method a { color: var(--color-mint); }
.method__calc { align-self: start; }
.method__calc h3 { margin-bottom: var(--space-4); }
.formulas { margin: 0; display: grid; }
.formulas > div { display: grid; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: var(--border-line); }
.formulas > div:first-child { padding-top: 0; }
.formulas dt { font-weight: 700; color: var(--color-white); }
.formulas dd { margin: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: #CFD5D3; }
.formulas .nw { white-space: nowrap; }
.worked { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-mint-tint); border: 1px dashed rgba(0, 230, 161, 0.4); }
.worked p { margin: 0; font-size: var(--type-small-size); }
.worked__k { font-size: 11px !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-mint); margin-bottom: var(--space-1) !important; }
.worked .worked__more { margin-top: var(--space-2); }

@media (min-width: 768px) {
  .page-hero { padding-block: var(--space-8) var(--space-7); }
  .tiles.tiles--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .total-card__v { font-size: 120px; }
  .pl-card { padding: var(--space-6) var(--space-6) var(--space-5); }
  .pl-chart { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 340px 34px; }
  .pl-chart__y span { right: 12px; font-size: 13px; }
  .pl-chart__end { font-size: 13px; padding: 5px 10px; }
  .formulas > div { grid-template-columns: 8.5rem 1fr; align-items: center; }
}
@media (min-width: 960px) {
  .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8); align-items: center; }
  .page-hero__aside { display: block; }
  .results-summary { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); }
  .pl-card { margin-top: var(--space-4); }
  .method { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-8); }
}

/* ---- Latest results cards (added 2026-10-09 after James's visual concept) ----------------------
   Team names as text only: no crests, kits or club colours. P/L in units, never money.
   Colour only from the result: mint = won, loss red = lost, grey = void / push.
   Re-usable as the home-page results teaser once real results exist (move these rules to site.css then). */
.latest__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-5); }
.latest__head h2 { font-size: 34px; margin-right: auto; }
.latest__head .pill { order: 3; }
.latest__grid { display: grid; gap: var(--space-3); }
.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-card--won { border-left-color: var(--color-mint); }
.result-card--lost { border-left-color: var(--color-loss); }
.result-card > p, .result-card > h3 { grid-column: 1; margin: 0; }
.result-card__date { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.result-card__match { font-size: 24px; line-height: 1.05; margin-top: var(--space-2) !important; color: var(--color-white); overflow-wrap: anywhere; }
.result-card__v { color: var(--color-text-faint); font-size: 0.8em; }
.result-card__market { margin-top: var(--space-1) !important; font-size: var(--type-small-size); color: var(--color-text); }
.result-card__meta { font-size: 13px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.result-card__meta .unit { color: var(--color-text-faint); }
.result-card__res { margin-top: var(--space-2) !important; font-size: var(--type-small-size); }
.result-card__res .res svg { width: 18px; height: 18px; }
.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-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-card__pl small { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.result-card__pl.pos { box-shadow: 0 0 18px rgba(0, 230, 161, 0.18); }
.latest .results-disclaimer { margin-top: var(--space-4); }
/* A double / treble / accumulator card (added 2026-10-24): bet type as the title, then the legs
   (match; market @ leg price and a small leg badge), the combined price, one result and one P/L. */
.result-card > ol { grid-column: 1; margin: 0; }
.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-card__legs li { display: grid; gap: 2px; padding-left: var(--space-3); border-left: 2px solid var(--color-line); }
.result-card__leg-match { font-weight: 700; color: var(--color-white); overflow-wrap: anywhere; }
.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-card__leg-price { color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-card--multi .result-card__meta { margin-top: var(--space-2) !important; }
.result-card__note { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
@media (min-width: 600px) {
  .latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .latest__head h2 { font-size: 44px; }
}
@media (min-width: 1100px) {
  .latest__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
