@import url('/stories/editorial.css');
/* No inline styles: the public CSP is style-src 'self'. Tables, chips, seeds,
   the ladder walk and the group boxes follow the group-stage story. */
.table-scroll{overflow-x:auto;margin:0 0 4px;-webkit-overflow-scrolling:touch}
.table-scroll:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
.gtable{width:100%;border-collapse:collapse;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
.gtable caption{text-align:left;font-size:11px;color:var(--muted);padding:0 0 10px}
.gtable th,.gtable td{padding:9px 10px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.gtable th:first-child,.gtable td:first-child,.gtable .name{text-align:left}
.gtable thead th{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--muted);border-bottom:2px solid var(--ink)}
.gtable tbody th{font-weight:650}
.gtable .out td,.gtable .out th{color:var(--muted)}
.gtable .tied td.key{background:#e9eee0;font-weight:700}
.gtable .dim{color:var(--muted)}
.gtable .name{white-space:normal}
.gtable small.note{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--coral);font-weight:700}
.tag{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:99px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:var(--ink);color:#d6e98d;white-space:nowrap}
.tag.miss{background:var(--coral);color:#fff}

/* Hero card. */
.hero .gtable{color:var(--paper);font-size:13px}
.hero .gtable caption{color:#d2dccb}
.hero .gtable thead th{color:#d2dccb;border-bottom-color:#ffffff60}
.hero .gtable th,.hero .gtable td{border-bottom-color:#ffffff30;padding:9px 6px}
.hero .gtable .key{color:#d6e98d;font-weight:700}

/* Line-up grid: one row per player, a dot per place filled. */
.grid th,.grid td{text-align:center}
.grid th:first-child{text-align:left}
.grid td.on{color:var(--coral);font-weight:700}
.grid td:last-child{font-weight:650}

/* Ranked list into positions, drawn like the group-stage rounds. */
.lineups{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:0}
.round{padding:14px;border:1px solid var(--line);border-radius:4px;background:#fff;min-width:0}
.round h3{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--coral);margin:0 0 10px}
.pair{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.pair:first-of-type{border-top:0}
.pair .who-l{font-weight:600}
.pair.rest .who-l{color:var(--muted);font-weight:400}
.slot-tag{margin-left:auto;padding:1px 8px;border-radius:99px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:var(--ink);color:#d6e98d}
.slot-tag.off{background:#e9eee0;color:var(--muted)}
.seed{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 5px;border-radius:99px;background:var(--ink);color:#d6e98d;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.seed.low{background:#e9eee0;color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* Orders of play. */
.seqs{display:grid;gap:12px;margin:8px 0 24px;padding:0;list-style:none}
.seqs li{padding:14px 16px;background:#fcfbf6;border:1px solid var(--line);border-radius:4px}
.seqs h3{font-size:13px;font-weight:650;margin:0 0 8px}
.chips{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:13px;font-variant-numeric:tabular-nums}
.chip-group{display:inline-flex;gap:14px;padding:4px 8px;border-radius:3px;background:#e9eee0;white-space:nowrap}
.chips-note{font-size:11px!important;color:var(--muted);margin:8px 0 0!important}

/* Results matrix. */
.matrix th,.matrix td{text-align:center}
.matrix th:first-child{text-align:left}
.matrix .self{background:repeating-linear-gradient(135deg,#ecebe1 0 5px,#f5f3eb 5px 10px)}
.matrix .w{font-weight:650}
.matrix .l{color:var(--muted)}
.matrix small{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase}

/* Steps on the group. */
.walk{list-style:none;margin:20px 0 28px;padding:0}
.walk li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:4px 14px;padding:14px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.7}
.walk li:last-child{border-bottom:1px solid var(--line)}
.walk b{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--coral);padding-top:5px}
.walk span{min-width:0}

/* Group draw placement. */
.groups4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0 0}
.groups4>div{padding:14px;border:1px solid var(--line);border-radius:4px;background:#fff;min-width:0}
.groups4 h3{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--coral);margin:0 0 10px}
.groups4 ol{list-style:none;margin:0;padding:0;display:grid;gap:6px;justify-items:start}

/* Relay set. */
.relay{display:block;width:100%;max-width:540px;height:auto;margin:0 auto}
.relay-table{display:none}

.chapter .figure-cap{font-size:11px!important;line-height:1.8;color:var(--muted);margin:10px 0 24px!important}
.diy-steps{padding-left:24px;font-size:15px}
.diy-steps li{padding:6px 0 12px 8px}
.sources{font-size:13px;line-height:1.7;padding-left:20px}
.sources li{margin-bottom:10px}
.rally-figure{margin:28px 0;padding:24px;background:#fcfbf6;border:1px solid var(--line);border-radius:4px}
.rally-figure>.eyebrow{color:var(--coral);margin:0 0 14px}
.rally-figure figcaption{font-size:11px;line-height:1.8;color:var(--muted);margin-top:16px;border-top:1px solid var(--line);padding-top:14px}

@media(max-width:700px){
  .gtable{font-size:11.5px}
  .gtable th,.gtable td{padding:8px 5px;white-space:normal}
  .gtable td,.gtable th[scope=row]{overflow-wrap:normal}
  .gtable thead th{letter-spacing:.04em}
  .hero .gtable th,.hero .gtable td{padding:8px 4px}
  .hero .gtable{font-size:12px}
  .tag{margin-left:0;margin-top:3px;display:table}
  .walk li{grid-template-columns:1fr}
  .walk b{padding-top:0}
  .groups4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .diy-steps{font-size:14px}
  .rally-figure{padding:18px}
  .relay{display:none}
  .relay-table{display:block}
}
