/* WorldStreaks: the look of a match sport's page on the shared tabs (/assets/matchui.js): the question as a sentence, the
 * runs, the team panel, facts lists, Head to head, and the World Cup's groups and bracket. Loaded after brand.css and
 * section.css, from /assets/match.css. GAA and the Premier League keep their own copies in their pages until they move
 * onto the shared engine and tabs. */
.mast { border-bottom: 3px solid var(--ink); padding-block: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.mast h1 { margin: 0; font: 700 clamp(46px, 10.5vw, 108px)/.84 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.mast p { margin: 0; max-width: 38ch; font-size: 15px; color: var(--muted); }
.panel { padding-block: 24px 40px; }
.panel.ask { padding-bottom: 0; }
main h2 { margin: 0 0 8px; font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h3.sec, aside h3, .groups h4, .bracket h4, .third h4 { margin: 22px 0 6px; font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* the question */
.sentence { margin: 0; font: 400 clamp(23px, 4vw, 38px)/1.35 var(--body); }
.sentence select { max-width: 100%; margin: 0; padding: 0 .04em; font: inherit; color: var(--accent); background: transparent; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
.sentence select:hover { background: var(--mark); }
.sentence select option { font-size: 16px; color: #17150F; background: #fff; }

/* the answer: one row a run */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 18px 30px; }
@media (min-width: 900px) { .grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; } }
.answer { margin: 0 0 16px; font: 400 18px/1.45 var(--body); }
#more { margin-top: 12px; }
.run { border-bottom: 1px solid var(--rule); }
.run > button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; padding: 12px 4px; cursor: pointer; }
.run > button:hover { background: var(--paper-2); }
.run > button:focus-visible, .run.focus > button { outline: 3px solid var(--accent); outline-offset: -3px; }
.run.focus > button { background: var(--mark); }
.who { min-width: 0; border-left: 6px solid var(--accent); padding-left: 10px; }
.who .name { font: 700 24px/1.05 var(--display); text-transform: uppercase; }
.len { text-align: right; font: 700 46px/.9 var(--display); font-variant-numeric: tabular-nums; }
.chain { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 3px; }
.chain i { display: block; width: 9px; height: 9px; background: var(--accent); outline: 1px solid var(--ink); outline-offset: -1px; }
.chain i.d { background: transparent; outline-width: 1.5px; }
.games { overflow-x: auto; padding: 4px 0 16px; }
.games table { min-width: 640px; }
main table { width: 100%; border-collapse: collapse; font-size: 14px; }
main th { padding: 6px 8px 6px 0; text-align: left; font: 700 12px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
main td, main tbody th { padding: 6px 8px 6px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
main tbody th { font: 600 15px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); }
main td:first-child { white-space: nowrap; }
main .n { text-align: right; font-variant-numeric: tabular-nums; }
td.wx, main th small, main td small { color: var(--muted); }
.empty { padding: 18px 0; color: var(--muted); }

/* the team panel and the lists of facts */
.pick select, .pickrow select { max-width: 100%; padding: 0 4px; font: 700 26px/1.1 var(--display); text-transform: uppercase; color: var(--ink); background: transparent; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; cursor: pointer; }
.pickrow .v { font: 600 22px/1 var(--display); color: var(--muted); text-transform: uppercase; }
aside ul, ol.facts { list-style: none; margin: 0 0 18px; padding: 0; border-top: 2px solid var(--ink); }
aside li, ol.facts > li { border-bottom: 1px solid var(--rule); }
aside li button, ol.facts > li > button, ol.facts > li > div.f { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 2.8em minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 2px; font-size: 16px; line-height: 1.35; cursor: pointer; }
ol.facts > li > div.f { cursor: default; }
aside li button:hover, ol.facts > li > button:hover { background: var(--paper-2); }
aside li button:focus-visible, ol.facts > li > button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
aside .n, ol.facts .big { text-align: right; font: 700 30px/.9 var(--display); font-variant-numeric: tabular-nums; }
ol.facts .big.yr { padding-top: 3px; font-size: 22px; }
.sub { display: block; font-size: 14px; color: var(--muted); }
.rec { margin: 0 0 10px; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 15px; }
.rec .titles { display: block; margin-bottom: 4px; font: 700 28px/.95 var(--display); text-transform: uppercase; }
.sgrid { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 4px; }
.sgrid span, .legend span { width: 18px; height: 18px; box-sizing: border-box; border: 1px dashed var(--rule); }
.sgrid .in, .legend .in { background: var(--paper-2); border: 1px solid var(--muted); }
.sgrid .top4, .legend .top4 { border: 3px solid var(--accent); }
.sgrid .champ, .legend .champ { background: var(--accent); border: 2px solid var(--ink); }
.legend { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-block; width: 13px; height: 13px; margin: 0 4px 0 8px; vertical-align: -2px; }

/* Head to head */
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.tally > div { padding: 12px 4px; }
.tally .a { border-top: 8px solid var(--accent); }
.tally .b { border-top: 8px solid var(--ink); }
.tally b { display: block; font: 700 52px/.9 var(--display); }
.tally span { font-size: 14px; color: var(--muted); }
.strip { margin: 0 0 18px; }
.strip-scroll { overflow-x: auto; padding: 4px 0; }
.strip rect { stroke: var(--ink); stroke-width: 1; }
.strip rect.w, .strip .key i.w { fill: var(--accent); background: var(--accent); }
.strip rect.l, .strip .key i.l { fill: var(--ink); background: var(--ink); }
.strip rect.d, .strip .key i.d { fill: var(--paper); background: var(--paper); }
.strip .tick { font: 600 11px var(--display); fill: var(--muted); }
.strip .key { margin-right: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.strip .key i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border: 1px solid var(--ink); vertical-align: -1px; }

/* one World Cup: the final, the bracket, the groups, the scorers */
.final { margin: 6px 0 8px; padding: 14px 16px; border: 2px solid var(--ink); border-left: 10px solid var(--accent); }
.final .kick { margin: 0; font: 700 14px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.final .fl { margin: 4px 0; font: 700 clamp(24px, 4vw, 34px)/1.1 var(--display); text-transform: uppercase; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 0 0 8px; }
.bracket .round { flex: 1 0 13em; display: flex; flex-direction: column; }
.bracket ol, .third ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 8px; }
.tie { padding: 6px 8px; border: 1px solid var(--rule); background: var(--paper); font-size: 15px; }
.tie:focus-visible { outline: 3px solid var(--accent); }
.third ol { max-width: 15em; }
.bt { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.bt.won { color: var(--ink); font-weight: 600; }
.bt b { font-variant-numeric: tabular-nums; }
.groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 36px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
.grp .tbl { overflow-x: auto; }
.grp table { min-width: 420px; }
.grp details { margin: 2px 0 10px; }
.grp summary, .rec summary { padding: 8px 2px; font: 700 14px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); cursor: pointer; }
ul.gl { list-style: none; margin: 0; padding: 0; font-size: 15px; }
ul.gl li { padding: 6px 2px; border-top: 1px solid var(--rule); }
#cup-scorers li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--rule); font-size: 16px; }
#cup-scorers .r { text-align: right; color: var(--muted); font: 600 16px/1.4 var(--display); }
#cup-scorers .v { text-align: right; font: 700 22px/1.1 var(--display); }
#cup-scorers small { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .len { font-size: 38px; } .who .name { font-size: 21px; } .tabs { gap: 2px 16px; } .tabs a { font-size: 16px; } }
