/* Generated by scripts/gen-wp-css.ts from the CSS of the h2h block. Do not edit: change src/blocks and run npm run gen:wp-css. */
/* src/blocks/H2h.css */
/* Head to head. The layout palettes (--c-*) come from article.css. */

.stx-widget .stx-h2h { border-radius: 12px; overflow: hidden; font-size: 13px; }
.stx-widget .stx-h2h .btitle { font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: lowercase; }
.stx-widget .stx-h2h .teams { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }
.stx-widget .stx-h2h .team { margin: 0; padding: 0; font-family: inherit; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stx-widget .stx-h2h .team .n { font-weight: 600; font-size: 14px; }
.stx-widget .stx-h2h .meet { font-size: 11px; color: var(--c-sub); text-align: center; flex: none; max-width: 30%; }
.stx-widget .stx-h2h .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.stx-widget .stx-h2h .bar i { display: block; height: 100%; }
.stx-widget .stx-h2h .legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--c-sub); }
.stx-widget .stx-h2h .legend b { font-size: 14px; color: var(--c-text); margin-right: 2px; }
.stx-widget .stx-h2h .legend .draw { text-align: center; }
.stx-widget .stx-h2h .legend .away { text-align: right; }
.stx-widget .stx-h2h .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stx-widget .stx-h2h .tiles.many { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.stx-widget .stx-h2h .tile { border-radius: 8px; padding: 8px; text-align: center; min-width: 0; }
.stx-widget .stx-h2h .tile b { display: block; font-size: 16px; font-weight: 600; }
.stx-widget .stx-h2h .tile span { display: block; font-size: 10px; margin-top: 2px; color: var(--c-sub); }
.stx-widget .stx-h2h .list { margin-top: 14px; }
.stx-widget .stx-h2h .lh { font-size: 10px; letter-spacing: .4px; text-transform: lowercase; color: var(--c-sub); margin-bottom: 4px; }
.stx-widget .stx-h2h ul { list-style: none; margin: 0; padding: 0; }
.stx-widget .stx-h2h li { padding: 8px 0; border-top: .5px solid var(--c-line); }
.stx-widget .stx-h2h .when { display: block; font-size: 10px; color: var(--c-sub); margin-bottom: 2px; }
.stx-widget .stx-h2h .match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.stx-widget .stx-h2h .match .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stx-widget .stx-h2h .match .t.h { text-align: right; }
.stx-widget .stx-h2h .match .t.won { font-weight: 600; }
.stx-widget .stx-h2h .match .sc { font-size: 14px; padding: 2px 10px; border-radius: 6px; background: var(--c-hl-bg); color: var(--c-hl-text); white-space: nowrap; }
.stx-widget .stx-h2h .foot { padding-top: 10px; font-size: 11px; font-style: italic; color: var(--c-sub); }

/* Editorial */
.stx-widget .stx-h2h.stx-layout--editorial { background: var(--ab-primary); color: #fff; padding: 20px; border: .5px solid var(--ab-border); --seg-home: var(--ab-accent); --seg-draw: rgba(255,255,255,.25); --seg-away: rgba(255,255,255,.85); }
.stx-widget .stx-h2h.stx-layout--editorial .btitle { color: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--editorial .bar .home { background: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--editorial .bar .draw { background: rgba(255,255,255,.25); }
.stx-widget .stx-h2h.stx-layout--editorial .bar .away { background: rgba(255,255,255,.85); }
.stx-widget .stx-h2h.stx-layout--editorial .tile { background: rgba(255,255,255,.06); }
.stx-widget .stx-h2h.stx-layout--editorial .tile b { color: var(--ab-accent); }

/* Fan */
.stx-widget .stx-h2h.stx-layout--fan { background: var(--ab-primary); color: #fff; padding: 16px; --seg-home: var(--ab-primary); --seg-draw: color-mix(in srgb, var(--ab-muted) 45%, var(--ab-surface)); --seg-away: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--fan .btitle { padding-bottom: 12px; }
.stx-widget .stx-h2h.stx-layout--fan .panel { background: var(--ab-surface); color: var(--ab-text); border-radius: 10px; padding: 4px 14px 14px; --c-sub: var(--ab-muted); --c-text: var(--ab-text); --c-line: var(--ab-border); --c-hl-bg: var(--ab-accent); --c-hl-text: var(--ab-on-accent); }
.stx-widget .stx-h2h.stx-layout--fan .bar .home { background: var(--ab-primary); }
.stx-widget .stx-h2h.stx-layout--fan .bar .draw { background: color-mix(in srgb, var(--ab-muted) 45%, var(--ab-surface)); }
.stx-widget .stx-h2h.stx-layout--fan .bar .away { background: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--fan .tile { background: color-mix(in srgb, var(--ab-text) 5%, var(--ab-surface)); }
.stx-widget .stx-h2h.stx-layout--fan .foot { color: rgba(255,255,255,.6); }

/* Comparator */
.stx-widget .stx-h2h.stx-layout--comparator { background: var(--ab-surface); border: .5px solid var(--ab-border); color: var(--ab-text); padding: 14px 20px 16px; --seg-home: var(--ab-positive); --seg-draw: color-mix(in srgb, var(--ab-muted) 45%, var(--ab-surface)); --seg-away: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--comparator .btitle { text-align: center; color: var(--ab-positive); padding-bottom: 12px; border-bottom: .5px solid var(--ab-border); margin: 0 -20px; }
.stx-widget .stx-h2h.stx-layout--comparator .team { flex-direction: row; justify-content: flex-start; text-align: left; }
.stx-widget .stx-h2h.stx-layout--comparator .team.away { flex-direction: row-reverse; text-align: right; }
.stx-widget .stx-h2h.stx-layout--comparator .team .n { font-size: 13px; }
.stx-widget .stx-h2h.stx-layout--comparator .bar .home { background: var(--ab-positive); }
.stx-widget .stx-h2h.stx-layout--comparator .bar .draw { background: color-mix(in srgb, var(--ab-muted) 45%, var(--ab-surface)); }
.stx-widget .stx-h2h.stx-layout--comparator .bar .away { background: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--comparator .tile { border: .5px solid var(--ab-border); }
.stx-widget .stx-h2h.stx-layout--comparator .tile b { color: var(--ab-positive); }

/* Original */
.stx-widget .stx-h2h.stx-layout--original { background: var(--ab-surface); border: .5px solid var(--ab-border); border-top: 3px solid var(--ab-accent); color: var(--ab-text); padding: 20px; --seg-home: var(--ab-accent); --seg-draw: color-mix(in srgb, var(--ab-muted) 45%, var(--ab-surface)); --seg-away: var(--ab-primary); }
.stx-widget .stx-h2h.stx-layout--original .btitle { color: var(--ab-primary); }
.stx-widget .stx-h2h.stx-layout--original .team .n { color: var(--ab-primary); }
.stx-widget .stx-h2h.stx-layout--original .bar .home { background: var(--ab-accent); }
.stx-widget .stx-h2h.stx-layout--original .bar .draw { background: color-mix(in srgb, var(--ab-muted) 45%, var(--ab-surface)); }
.stx-widget .stx-h2h.stx-layout--original .bar .away { background: var(--ab-primary); }
.stx-widget .stx-h2h.stx-layout--original .tile { background: color-mix(in srgb, var(--ab-text) 4%, var(--ab-surface)); }
.stx-widget .stx-h2h.stx-layout--original .tile b { color: var(--ab-primary); }

/* Summary variants: the wins as a ring or as two numbers. Segment colours follow the layout, like the bar's. */
.stx-widget .stx-h2h .donut-wrap { display: flex; align-items: center; justify-content: center; gap: 20px; }
.stx-widget .stx-h2h .donut { width: 120px; height: 120px; flex: none; }
.stx-widget .stx-h2h .donut circle { fill: none; stroke-width: 14; }
.stx-widget .stx-h2h .donut .track { stroke: var(--c-line); }
.stx-widget .stx-h2h .donut .home { stroke: var(--seg-home); }
.stx-widget .stx-h2h .donut .draw { stroke: var(--seg-draw); }
.stx-widget .stx-h2h .donut .away { stroke: var(--seg-away); }
.stx-widget .stx-h2h .donut text { font-size: 18px; font-weight: 700; fill: var(--c-text); }
.stx-widget .stx-h2h .legend.vert { flex-direction: column; gap: 6px; margin: 0; }
.stx-widget .stx-h2h .legend.vert .away, .stx-widget .stx-h2h .legend.vert .draw { text-align: left; }
.stx-widget .stx-h2h .split { display: flex; justify-content: center; gap: 36px; text-align: center; }
.stx-widget .stx-h2h .split b { display: block; font-size: 40px; line-height: 1.1; font-weight: 700; }
.stx-widget .stx-h2h .split span { display: block; font-size: 11px; color: var(--c-sub); }
.stx-widget .stx-h2h .split .home b { color: var(--seg-home); }
.stx-widget .stx-h2h .split .away b { color: var(--seg-away); }
.stx-widget .stx-h2h.stx-layout--editorial .split .away b { color: #fff; }
.stx-widget .stx-h2h .tile .detail { margin-top: 2px; color: var(--c-text); }
.stx-widget .stx-h2h .sub { font-size: 11px; color: var(--c-sub); margin: 2px 0 8px; }

/* The common card (the original layout): bars, ring and split. */
.stx-widget .stx-h2h-card { --h-home: var(--ab-home); --h-away: var(--ab-away); --h-home-ink: var(--ab-home-ink); --h-away-ink: var(--ab-away-ink); font-size: 13px; }
.stx-widget .stx-h2h-card .stx-card__head { padding: 14px 16px; }
.stx-widget .stx-h2h-card .stx-card__title { font-size: 16px; letter-spacing: 0; text-transform: none; }
.stx-widget .stx-h2h-card[data-sub="light"] .stx-card__sub { color: rgba(255,255,255,.85); }
.stx-widget .stx-h2h-card .body { padding: 16px; }
.stx-widget .stx-h2h-card .cap { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ab-note); }
.stx-widget .stx-h2h-card .sub { font-size: 12px; color: var(--ab-muted); margin: -6px 0 10px; }
.stx-widget .stx-h2h-card .body > .cap { margin-bottom: 12px; }
.stx-widget .stx-h2h-card .home { color: var(--h-home-ink); }
.stx-widget .stx-h2h-card .away { color: var(--h-away-ink); }
.stx-widget .stx-h2h-card .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stx-widget .stx-h2h-card .tiles.many { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.stx-widget .stx-h2h-card .tile { border-radius: 8px; padding: 10px 8px; text-align: center; min-width: 0; background: var(--ab-head-grey); border: 1px solid var(--ab-rule); }
.stx-widget .stx-h2h-card .tile b { display: block; font-size: 18px; font-weight: 700; color: var(--ab-primary); }
.stx-widget .stx-h2h-card .tile span { display: block; font-size: 10px; margin-top: 3px; color: var(--ab-note); text-transform: uppercase; letter-spacing: .03em; }
.stx-widget .stx-h2h-card .list { margin-top: 16px; }
.stx-widget .stx-h2h-card .lh { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ab-note); margin-bottom: 4px; }
.stx-widget .stx-h2h-card ul { list-style: none; margin: 0; padding: 0; }
.stx-widget .stx-h2h-card li { padding: 8px 0; border-top: 1px solid var(--ab-rule); }
.stx-widget .stx-h2h-card .when { display: block; font-size: 10px; color: var(--ab-note); margin-bottom: 2px; }
.stx-widget .stx-h2h-card .match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.stx-widget .stx-h2h-card .match .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stx-widget .stx-h2h-card .match .t.h { text-align: right; }
.stx-widget .stx-h2h-card .match .t.won { font-weight: 700; }
.stx-widget .stx-h2h-card .match .sc { font-size: 13px; padding: 2px 10px; border-radius: 6px; background: var(--ab-primary); color: #fff; white-space: nowrap; }

/* bars: a card per side, the leader on cream with the accent border */
.stx-widget .stx-h2h-card .tcard { border: 1px solid var(--ab-card-border); background: var(--ab-head-grey); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.stx-widget .stx-h2h-card .tcard.lead { border-color: var(--ab-accent); background: var(--ab-best-cream); }
.stx-widget .stx-h2h-card .trow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.stx-widget .stx-h2h-card .tn { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.stx-widget .stx-h2h-card .wins { color: var(--ab-card-ink); white-space: nowrap; }
.stx-widget .stx-h2h-card .wins .w { font-size: 22px; }
.stx-widget .stx-h2h-card .track { height: 6px; background: #e6e6e6; border-radius: 99px; margin: 10px 0; overflow: hidden; }
.stx-widget .stx-h2h-card .track i { display: block; height: 100%; border-radius: 99px; background: #9aa0a6; }
.stx-widget .stx-h2h-card .tcard.lead .track i { background: var(--ab-accent); }
.stx-widget .stx-h2h-card .stats { display: flex; gap: 28px; font-size: 12px; flex-wrap: wrap; }
.stx-widget .stx-h2h-card .stats .sl { display: block; color: var(--ab-note); letter-spacing: .04em; text-transform: uppercase; }
.stx-widget .stx-h2h-card .stats b { font-weight: 700; color: #1a1a1a; }

/* donut: the ring, the averages as centred rows, the two names */
.stx-widget .stx-h2h-card.v-donut { --h-home: var(--ab-primary); --h-away: var(--ab-accent); --h-home-ink: var(--ab-primary-ink); --h-away-ink: var(--ab-accent-ink); }
.stx-widget .stx-h2h-card .ring { display: flex; align-items: center; gap: 18px; padding: 16px; }
.stx-widget .stx-h2h-card .ring svg { width: 108px; height: 108px; flex: none; }
.stx-widget .stx-h2h-card .ring circle { fill: none; stroke-width: 22; }
.stx-widget .stx-h2h-card .ring .track { stroke: var(--ab-head-grey); }
.stx-widget .stx-h2h-card .ring circle.home { stroke: var(--h-home); }
.stx-widget .stx-h2h-card .ring circle.away { stroke: var(--h-away); }
.stx-widget .stx-h2h-card .ring circle.draw { stroke: var(--ab-loss); }
.stx-widget .stx-h2h-card .ring text { font-size: 22px; font-weight: 700; fill: #1a1a1a; }
.stx-widget .stx-h2h-card .legend { display: flex; flex-direction: column; gap: 8px; }
.stx-widget .stx-h2h-card .legend b { display: block; font-size: 14px; }
.stx-widget .stx-h2h-card .legend span { display: block; font-size: 12px; color: #6b7280; }
.stx-widget .stx-h2h-card .legend .w { display: inline; font-weight: 400; }
.stx-widget .stx-h2h-card .legend .draw b { color: var(--ab-muted); }
.stx-widget .stx-h2h-card .avgs { text-align: center; }
.stx-widget .stx-h2h-card.v-donut .avgs { border-top: 1px solid var(--ab-rule); padding: 12px 16px; }
.stx-widget .stx-h2h-card .avgs .cap { margin-bottom: 8px; }
.stx-widget .stx-h2h-card .arow { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-top: 10px; }
.stx-widget .stx-h2h-card .arow b { font-size: 22px; font-weight: 700; }
.stx-widget .stx-h2h-card .arow span { font-size: 11px; color: var(--ab-note); text-transform: uppercase; letter-spacing: .03em; }
.stx-widget .stx-h2h-card .names { display: flex; justify-content: space-between; padding: 8px 16px; font-weight: 700; }

/* split: the bar, a big share per side and a tile column per side */
.stx-widget .stx-h2h-card.v-split .body { padding: 22px 24px 8px; }
.stx-widget .stx-h2h-card .seg { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: var(--ab-head-grey); }
.stx-widget .stx-h2h-card .seg i { display: block; height: 100%; }
.stx-widget .stx-h2h-card .seg .home { background: var(--h-home); }
.stx-widget .stx-h2h-card .seg .away { background: var(--h-away); }
.stx-widget .stx-h2h-card .seg .draw { background: var(--ab-loss); }
.stx-widget .stx-h2h-card .who { display: flex; justify-content: space-between; margin-top: 12px; }
.stx-widget .stx-h2h-card .who .away { text-align: right; }
.stx-widget .stx-h2h-card .who .n { display: block; color: #4b5160; font-size: 13px; }
.stx-widget .stx-h2h-card .who .big { display: block; font-size: 26px; line-height: 1.2; font-weight: 700; }
.stx-widget .stx-h2h-card .who .wins { font-size: 12px; color: var(--ab-note); }
.stx-widget .stx-h2h-card .who .wins .w { font-size: 12px; font-weight: 400; }
.stx-widget .stx-h2h-card.v-split .avgs hr { border: 0; height: 1px; background: var(--ab-rule); margin: 20px 0; }
.stx-widget .stx-h2h-card.v-split .avgs .cap { margin-bottom: 14px; }
.stx-widget .stx-h2h-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.stx-widget .stx-h2h-card .cols .tn { font-size: 14px; text-align: center; }
.stx-widget .stx-h2h-card .col { display: grid; gap: 10px; align-content: start; }
.stx-widget .stx-h2h-card .col.home { grid-row: 2; grid-column: 1; }
.stx-widget .stx-h2h-card .col.away { grid-row: 2; grid-column: 2; }
.stx-widget .stx-h2h-card .stile { border: 1px solid var(--ab-card-border); border-radius: 8px; padding: 16px 8px; text-align: center; }
.stx-widget .stx-h2h-card .col.home .stile { background: color-mix(in srgb, var(--h-home) 7%, #fff); }
.stx-widget .stx-h2h-card .col.away .stile { background: color-mix(in srgb, var(--h-away) 7%, #fff); }
.stx-widget .stx-h2h-card .stile b { display: block; font-size: 22px; font-weight: 700; }
.stx-widget .stx-h2h-card .col.home .stile b { color: var(--h-home-ink); }
.stx-widget .stx-h2h-card .col.away .stile b { color: var(--h-away-ink); }
.stx-widget .stx-h2h-card .stile span { display: block; margin-top: 5px; font-size: 10px; color: var(--ab-note); text-transform: uppercase; letter-spacing: .03em; }
.stx-widget .stx-h2h-card .cols .tn.home { color: var(--h-home-ink); }
.stx-widget .stx-h2h-card .cols .tn.away { color: var(--h-away-ink); }
.stx-widget .stx-h2h-card li.home, .stx-widget .stx-h2h-card li.away, .stx-widget .stx-h2h-card li.draw { color: inherit; }
