/* And counting — layout per size (shared look in ../lib/banner.css).
   Typographic: one group (the streak drawn big, its caption, the match, the market) centred between logo and button;
   the figure is the picture. Photo: the stadium sets the mood, the group stacks from the bottom up. */
.fig { font-size: 170px; line-height: .86; overflow: hidden; letter-spacing: -.02em; text-align: left; margin: 0 0 8px; --fig-mb: 8px; white-space: nowrap; text-shadow: var(--shadow); }
.sent { font: 800 20px/1.0 var(--f-head); letter-spacing: -.005em; text-transform: var(--caps); color: var(--text); text-shadow: var(--shadow); }
.match { margin-top: 26px; }
.market { margin-top: 12px; }
.cta { margin-top: 14px; }
[data-style="photo"] .group { justify-content: flex-end; }
[data-style="photo"] .tint { background: linear-gradient(180deg, rgba(var(--tint-rgb),.12) 0%, rgba(var(--tint-rgb),.06) 26%, rgba(var(--tint-rgb),.85) 45%, rgba(var(--tint-rgb),.9) 70%, rgba(var(--tint-rgb),.94) 100%); }

/* 300 × 600 */
[data-size="300x600"] .col { --slot-max: 250px; --max-lines: 2; }
[data-size="300x600"][data-style="photo"] .col { --slot-max: 170px; }
[data-size="300x600"][data-style="photo"] .fig { font-size: 110px; }
[data-size="300x600"][data-style="photo"] .sent { font-size: 19px; }

/* 160 × 600 — outcome left, price right; each price with its bar beneath it */
[data-size="160x600"] .col { --slot-max: 210px; --max-lines: 5; }
[data-size="160x600"] .fig { font-size: 104px; --fig-mb: 6px; }
[data-size="160x600"] .sent { font-size: 17px; }
[data-size="160x600"][data-style="photo"] .col { --slot-max: 160px; }
[data-size="160x600"][data-style="photo"] .fig { font-size: 80px; }
[data-size="160x600"][data-style="photo"] .sent { font-size: 15px; }
[data-size="160x600"] .match { margin-top: 18px; }
[data-size="160x600"] .market { margin-top: 10px; display: flex; flex-direction: column; }
[data-size="160x600"] .pills, [data-size="160x600"] .has-shares .pcts:not(.is-empty) { display: contents; }
[data-size="160x600"] .pill { flex: none; height: 31px; flex-direction: row-reverse; justify-content: space-between; padding: 0 13px 0 11px; gap: 6px; margin-top: 8px; }
[data-size="160x600"] .pill:first-child { margin-top: 0; }
[data-size="160x600"] .pill .price { font-size: 13px; line-height: 13px; flex: none; }
[data-size="160x600"] .pill .lbl { font-size: 7.4px; text-align: left; flex: 1 1 auto; min-width: 0; }
[data-size="160x600"] .pct { margin-top: 4px; }

/* 300 × 250 — the figure and its caption side by side */
[data-size="300x250"] .col { --slot-max: 66px; --max-lines: 2; }
[data-size="300x250"] .b1 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
[data-size="300x250"] .fig { font-size: 72px; --fig-mb: 0px; }
[data-size="300x250"] .sent { font-size: 15px; min-width: 0; }
[data-size="300x250"] .match { margin-top: 7px; font-size: 11.5px; line-height: 14px; }
[data-size="300x250"] .market { margin-top: 4px; }
[data-size="300x250"] .mlab { font-size: 7.4px; letter-spacing: .1em; margin-bottom: 4px; color: color-mix(in srgb, var(--text) 80%, transparent); }
[data-size="300x250"] .pill { height: 32px; }

/* 930 × 180 — brand · the figure and its caption · the match, its market and the button */
[data-size="930x180"] .col { grid-template-columns: 172px 1fr 312px; grid-template-rows: 1fr auto; --slot-max: 130px; --max-lines: 3; }
[data-size="930x180"] .group { display: contents; }
[data-size="930x180"] .slot { grid-column: 2; grid-row: 1 / -1; align-self: center; }
[data-size="930x180"] .b1 { display: grid; grid-template-columns: auto fit-content(250px); align-items: center; justify-content: center; column-gap: 18px; }
[data-size="930x180"] .fig { font-size: 128px; --fig-mb: 0px; }
[data-size="930x180"] .sent { font-size: 22px; min-width: 0; }
[data-size="930x180"] .bet { grid-column: 3; grid-row: 1; align-self: end; }
[data-size="930x180"] .match { margin: 0 0 6px; font-size: 14px; line-height: 17px; white-space: nowrap; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; }
[data-size="930x180"] .market { margin: 0; }
[data-size="930x180"] .mlab { font-size: 9px; margin-bottom: 5px; color: color-mix(in srgb, var(--text) 75%, transparent); }
[data-size="930x180"] .pill { height: 34px; gap: 2px; }
[data-size="930x180"] .pill .price { font-size: 13px; line-height: 13px; }
[data-size="930x180"] .pcts { margin-top: 4px; }
[data-size="930x180"][data-style="photo"] .tint { background: linear-gradient(90deg, rgba(var(--tint-rgb),.9) 0%, rgba(var(--tint-rgb),.8) 30%, rgba(var(--tint-rgb),.72) 58%, rgba(var(--tint-rgb),.84) 70%, rgba(var(--tint-rgb),.9) 100%); }
[data-size="930x180"] .cta { grid-column: 3; grid-row: 2; margin: 6px 0 0; height: 34px; }
[data-size="930x180"] .legal { grid-row: 1 / -1; }
[data-size="300x250"][data-style="photo"] .tint { background: linear-gradient(180deg, rgba(var(--tint-rgb),.62) 0%, rgba(var(--tint-rgb),.82) 30%, rgba(var(--tint-rgb),.92) 60%, rgba(var(--tint-rgb),.96) 100%); }

/* the figure clips its own box (so a tight line-height never counts as overflow) but keeps room above it for accents */
#ad .fig { padding-top: .25em; margin-top: calc(var(--ink-u, 0em) - .25em); padding-bottom: calc(var(--ink-d, 0em) + 2px); margin-bottom: calc(var(--fig-mb, 0px) - 2px); }   /* --ink-u / --ink-d: where the brand's typeface really reaches (banner.js inkRoom) */
