/* ============================================================================
   UEFA NATIONS LEAGUE 2026–27 — the few pieces the World Cup template doesn't have (V3 preview, 20 Nov 2026)
   Everything else is the World Cup's: games.css, game.css, the group module (.gmod/.stand) and the team tile.
   ========================================================================== */
:root{--nl-qf:#e7c66b;--nl-up:#22c55e;--nl-poup:#5eead4;--nl-podn:#fb923c;--nl-dn:#ff5a6a}

/* the table: a league's heading, its key, its groups (the World Cup's grid of group modules) */
.nl-lg{margin:34px 0 0;text-align:center}
.nl-lg:first-child{margin-top:4px}
.nl-lg h2{font-size:26px;font-weight:900;letter-spacing:-.4px;line-height:1.1;color:#fff}
.nl-lg h2 span{color:var(--gold,#e7c66b)}
.nl-lg p{margin-top:6px;font-size:13px;color:#9fb3d4;line-height:1.45}
.nl-key{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;margin:12px auto 0;max-width:620px}
.nl-key span{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#cfdcf0}
.nl-key i{width:10px;height:10px;border-radius:3px;display:inline-block}
.nl-key .nl-qf i{background:var(--nl-qf)}.nl-key .nl-up i{background:var(--nl-up)}.nl-key .nl-po-up i{background:var(--nl-poup)}
.nl-key .nl-po-down i{background:var(--nl-podn)}.nl-key .nl-down i{background:var(--nl-dn)}
.nl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:18px 0 0}
@media(max-width:560px){.nl-grid{grid-template-columns:1fr;gap:16px}}   /* as the World Cup's groups: one column on phones */
.stand tr[class^="nl-"] td.pos{box-shadow:inset 3px 0 0 var(--c);color:var(--c)}
.stand tr.nl-qf{--c:var(--nl-qf)}.stand tr.nl-up{--c:var(--nl-up)}.stand tr.nl-po-up{--c:var(--nl-poup)}
.stand tr.nl-po-down{--c:var(--nl-podn)}.stand tr.nl-down{--c:var(--nl-dn)}

/* the games page: the play-offs' two pots */
.nl-sub{margin:26px 0 2px;text-align:center;font-size:13px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#fff}
.nl-sub:first-of-type{margin-top:18px}

/* the knockout: tie cards (two legs), the finals, the play-offs */
.nl-ko{max-width:1100px;margin:0 auto}
.nl-sec{margin:30px 0 0;text-align:center}
.nl-sec:first-child{margin-top:4px}
.nl-sec h2{font-size:24px;font-weight:900;letter-spacing:-.3px;color:#fff}
.nl-sec p{margin-top:5px;font-size:13px;color:#9fb3d4}
.nl-ties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px;text-align:left}
@media(max-width:700px){.nl-ties{grid-template-columns:1fr;gap:12px}}
.nl-tie{background:var(--navy,#0b1f3f);border:1.5px solid rgba(255,255,255,.13);border-radius:16px;overflow:hidden}
.nl-tie-h{display:flex;justify-content:space-between;align-items:center;padding:11px 16px 9px;border-bottom:1px solid rgba(255,255,255,.08)}
.nl-tie-h b{font-size:11px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:#e7c66b}
.nl-tie-h span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9fb3d4}
.nl-tt{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 16px}
.nl-tt+.nl-tt{padding-top:0}
.nl-tt img,.nl-tt .nof{width:34px;height:24px;border-radius:4px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18);background:#15305a}
.nl-tt .nm{display:flex;flex-direction:column;min-width:0}
.nl-tt .nm b{font-size:15px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nl-tt .nm small{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#9fb3d4;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nl-tt.tbc .nm b{color:#cfdcf0;font-weight:700}
.nl-tt .agg{font-size:20px;font-weight:900;color:#e7c66b;min-width:20px;text-align:right}
.nl-legs{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid rgba(255,255,255,.08)}
.nl-legs a,.nl-legs span{display:flex;flex-direction:column;gap:2px;padding:10px 16px 11px;text-decoration:none;color:#fff}
.nl-legs a+a,.nl-legs span+span,.nl-legs a+span,.nl-legs span+a{border-left:1px solid rgba(255,255,255,.08)}
.nl-legs small{font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#e7c66b}
.nl-legs em{font-style:normal;font-size:12.5px;font-weight:700;color:#d5e0f2}
.nl-legs i{font-style:normal;font-size:11.5px;color:#9fb3d4}
@media(hover:hover){.nl-legs a:hover{background:rgba(231,198,107,.08)}}
.nl-legs.one{grid-template-columns:1fr}
.nl-feed{margin:10px 0 0;text-align:center;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6f86ab}
/* the finals as a ladder on a computer: semis → final, third place under */
.nl-fin{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px;text-align:left}
@media(min-width:701px){.nl-fin{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* the game page: who scored */
.nl-sc{margin:-2px 0 10px 40px;font-size:12px;color:#9fb3d4;line-height:1.5}

/* the group rows open the team page (20 Nov 2026): the name is a link, the World Cup's gold › after it */
.stand .teamcell a{font-size:12.5px;font-weight:800;color:inherit;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.stand tr.nl-me td{background:rgba(231,198,107,.12)}
.stand tr.nl-me .teamcell a{color:#e7c66b}

/* ── the team page (20 Nov 2026) ── */
.nl-team{max-width:720px;margin:0 auto;padding:0 16px}
.nl-team .gm-sec{margin-top:14px}
.nl-next{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.nl-next .nl-big{font-size:20px;font-weight:900;line-height:1.2;color:#fff;text-align:center}
.nl-next .nl-big span{color:#e7c66b}
.nl-next p{font-size:13px;color:#9fb3d4;text-align:center;line-height:1.45}
.nl-legrow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);text-decoration:none;color:#fff}
.nl-legrow small{font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#e7c66b}
.nl-legrow b{font-size:14px;font-weight:800}
.nl-legrow b i{font-style:normal;color:#9fb3d4;font-weight:700}
.nl-legrow em{font-style:normal;font-size:12px;color:#d5e0f2;text-align:right}
@media(hover:hover){a.nl-legrow:hover{border-color:#e7c66b}}
.nl-tgames{margin-top:6px}
.nl-sc-list{display:grid;grid-template-columns:1fr auto;gap:0;margin-top:4px}
.nl-sc-list span,.nl-sc-list b{padding:9px 2px;border-top:1px solid rgba(255,255,255,.08);font-size:14px}
.nl-sc-list span{color:#eaf1fb;font-weight:700}
.nl-sc-list b{color:#e7c66b;font-weight:900;text-align:right}
.nl-wc{display:flex;align-items:center;gap:12px;margin-top:14px;padding:14px 16px;border-radius:16px;border:1.5px solid rgba(231,198,107,.55);background:rgba(231,198,107,.07);text-decoration:none;color:#fff}
.nl-wc small{display:block;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#e7c66b}
.nl-wc b{display:block;font-size:15px;font-weight:800;margin-top:2px}
.nl-wc em{margin-left:auto;font-style:normal;font-size:22px;color:#e7c66b}
.nl-team .fg-sum{margin-top:14px}

/* the team page's group: the World Cup's group module (4-WC2026/groups.html), the same rules, scoped */

.nl-tgroup .gmod{background:rgba(255,255,255,.04);border:1px solid var(--line);
 border-radius:14px;overflow:hidden;}
.nl-tgroup .gmod-h{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
 color:var(--gold);text-align:center;padding:14px 12px 12px;
 border-bottom:1px solid var(--line);background:rgba(255,255,255,.03);}
.nl-tgroup .gmod-h b{color:#fff;}
.nl-tgroup /* standings table — compact variant for the grid */
.stand{width:100%;}
.nl-tgroup .stand table{width:100%;border-collapse:collapse;table-layout:fixed;}
.nl-tgroup .stand th:first-child{width:11%;}
.nl-tgroup .stand th.tm{width:50%;}
.nl-tgroup .stand th:not(.tm):not(:first-child){width:9.75%;}
.nl-tgroup .stand th{font-size:8.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
 color:var(--soft);padding:9px 3px;background:rgba(255,255,255,.04);}
.nl-tgroup .stand td{padding:10px 3px;font-size:12px;font-weight:800;text-align:center;
 border-top:1px solid var(--line);color:#eaf1fb;}
.nl-tgroup .stand th.tm, .nl-tgroup .stand td.tm{text-align:left;}
.nl-tgroup .stand th:first-child, .nl-tgroup .stand td:first-child{padding-left:12px;}
.nl-tgroup .stand th:last-child, .nl-tgroup .stand td:last-child{padding-right:12px;}
.nl-tgroup .stand .pos{color:var(--soft);font-size:10.5px;}
.nl-tgroup .stand .teamcell{display:flex;align-items:center;gap:7px;min-width:0;}
.nl-tgroup .stand .teamcell img{width:20px;height:14px;border-radius:2px;object-fit:cover;
 box-shadow:0 0 0 1px rgba(255,255,255,.14);flex:none;}
.nl-tgroup .stand .teamcell span{font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;
 text-overflow:ellipsis;}
.nl-tgroup .stand td.pts{color:var(--gold);}
.nl-tgroup .stand tr.eliminated{opacity:.45;}
.nl-tgroup .stand tr.qualified .pos{color:var(--gold);}
.nl-tgroup .stand tr.lnk{cursor:pointer;transition:.13s;}
.nl-tgroup .stand tr.lnk:hover td{background:rgba(255,255,255,.08);}
.nl-tgroup .stand .arw{color:var(--gold);font-weight:900;font-size:13px;margin-left:2px;}
.nl-thead{margin:26px 0 0;text-align:center;font-size:17px;font-weight:900;color:#fff}
.nl-thead small{display:block;margin-top:3px;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#9fb3d4}
.nl-team .nl-tgames .fg-card{margin-top:0}

/* ── a team's Squad tab (20 Nov 2026): the World Cup's flip cards (their styles come with the page), fed by /api/nl-squad ── */
main.nl-team.nl-wide{max-width:1180px;padding:0 22px}
.nl-sqgrid{margin-top:4px}
.nl-sqmsg{margin:34px auto 0;max-width:520px;text-align:center;font-size:14px;color:#9fb3d4;line-height:1.55}
.nl-spin{display:inline-block;width:14px;height:14px;margin:0 9px -2px 0;border-radius:50%;border:2px solid rgba(231,198,107,.3);border-top-color:#e7c66b;animation:nlspin .8s linear infinite}
@keyframes nlspin{to{transform:rotate(360deg)}}
.nl-sqnote{margin:0 auto 18px;text-align:center;font-size:12px;color:#7f93b5;line-height:1.5;max-width:620px}
.nl-sqgrid + .nl-sqnote{margin:30px auto 0}

/* ── a team's Shop tab (20 Nov 2026): the World Cup's kit cards (copied from 4-WC2026/<team>/shop.html), scoped here ── */
.nl-kitgrid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:30px auto 0;max-width:1000px}
.nl-kitgrid .kitcard{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.nl-kitgrid .kit-img{background:#fff;padding:26px;text-align:center}
.nl-kitgrid .kit-img a{display:block}
.nl-kitgrid .kit-body{padding:22px 26px 26px}
.nl-kitgrid .kit-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#fff;padding:4px 11px;border-radius:5px}
.nl-kitgrid .kit-tag.home{background:var(--navy2);border:1px solid var(--line)}
.nl-kitgrid .kit-tag.away{background:var(--red)}
.nl-kitgrid .kit-name{font-size:23px;font-weight:900;margin:12px 0 3px}
.nl-kitgrid .kit-price{font-size:19px;font-weight:900;color:var(--gold)}
.nl-kitgrid .kit-desc{font-size:13px;color:var(--mut);line-height:1.6;margin:11px 0 18px}
.nl-kitgrid .btnrow{display:flex;gap:11px;flex-wrap:wrap}
.nl-kitgrid .btn{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:800;letter-spacing:.03em;padding:12px 20px;border-radius:8px;cursor:pointer;border:1px solid var(--red);transition:.14s;text-decoration:none}
.nl-kitgrid .btn-pri{background:var(--red);color:#fff}
.nl-kitgrid .btn-pri:hover{background:#f32a40}
.nl-kitgrid .btn-sec{background:transparent;color:#fff;border-color:var(--line)}
.nl-kitgrid .btn-sec:hover{border-color:var(--gold);color:var(--gold)}
.nl-ext{width:13px;height:13px;flex:none}
/* the shirt: drawn in the kit's colours, or the store's photo on top of it (the drawing shows if the photo fails) */
.nl-kimg a,.nl-kimg{position:relative}
.nl-kimg .nl-ksvg{display:flex;justify-content:center;align-items:center;height:300px}
.nl-kimg .nl-ksvg svg{max-width:78%;height:auto}
.nl-kimg.hasimg .nl-ksvg{visibility:hidden}
.nl-kimg img{position:absolute;inset:0;margin:auto;max-height:300px;max-width:100%;width:auto;height:auto;object-fit:contain}
.nl-kimg.hasimg.cover{padding:0}
.nl-kimg.hasimg.cover .nl-ksvg{height:352px}
.nl-kimg.cover img{max-height:none;width:100%;height:100%;object-fit:cover}
.nl-noshop{margin:30px auto 0;max-width:560px;text-align:center;font-size:14px;color:var(--mut);line-height:1.55;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03)}
.nl-shopdisc.disc{font-size:11.5px;color:var(--soft);text-align:center;margin:24px auto 0;max-width:620px;line-height:1.6;white-space:normal;letter-spacing:0}
@media(max-width:760px){.nl-kitgrid{grid-template-columns:1fr}.nl-kimg .nl-ksvg{height:240px}.nl-kimg img{max-height:240px}.nl-kimg.hasimg.cover .nl-ksvg{height:300px}}
.nl-team .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* the player's club and captain on the back of the card (21 Nov 2026) */
.nl-sqgrid .nl-bclub{margin-top:3px;font-size:12px;font-weight:700;color:var(--gold)}
.nl-sqgrid .nl-bcap{flex:none;margin-left:8px;padding:4px 9px;border-radius:999px;background:rgba(231,198,107,.16);border:1px solid rgba(231,198,107,.5);color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.06em;white-space:nowrap}
/* the team's official store, top right of the team header, like the Premier League's (21 Nov 2026): the same gold pill */
header.pg .nl-tshop{position:absolute;top:18px;right:18px;z-index:5;display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:999px;background:#e7c66b;color:#0a1c38;font-size:13px;font-weight:900;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;line-height:1;box-shadow:0 6px 18px rgba(0,0,0,.3)}
header.pg .nl-tshop svg{width:16px;height:16px;flex:none}
@media (hover:hover){header.pg .nl-tshop:hover{background:#f0d88a}}

/* ── the Bracket tab, design round 21 Nov 2026 (three layouts; NLKO in nl-ko.js) ── */
.nl-ko .ft-col{flex-basis:270px}.nl-ko .ft-col.ft-r0{flex-basis:340px}
.nl-ko .ft-scroll{margin-top:14px}
.nl-po{margin-top:22px}.nl-poties{display:flex;flex-direction:column;gap:14px;margin-top:14px;text-align:left}
/* b: top to bottom — each pair of quarter-finals side by side, joined into its semi-final below; then the final */
.nl-down{margin-top:16px}
.nl-dround{text-align:center;margin:0 0 12px}.nl-dround b{display:block;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}.nl-dround span{display:block;margin-top:3px;font-size:11px;font-weight:700;color:var(--mut)}
.nl-dpair{display:grid;grid-template-columns:1fr 1fr;gap:18px;text-align:left}
.nl-djoin{position:relative;height:40px}
.nl-djoin::before{content:'';position:absolute;left:25%;right:25%;top:0;height:18px;border:2px solid var(--ft-line);border-top:0;border-radius:0 0 14px 14px}
.nl-djoin::after{content:'';position:absolute;left:50%;top:18px;bottom:0;border-left:2px solid var(--ft-line)}
.nl-dline{height:34px;width:0;margin:0 auto;border-left:2px dashed var(--ft-line)}
.nl-dsf{max-width:420px;margin:0 auto;text-align:left}
.nl-dfin{max-width:420px;margin:0 auto;display:flex;flex-direction:column;gap:14px;text-align:left}
@media (max-width:760px){.nl-dpair{grid-template-columns:1fr;gap:12px}.nl-djoin{height:28px}.nl-djoin::before{display:none}.nl-djoin::after{top:0}}
/* c: the small map, then every tie in full */
.nl-cties{display:flex;flex-direction:column;gap:14px;margin-top:14px;text-align:left}
.nl-cfin{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px;text-align:left}
@media (max-width:700px){.nl-cfin{grid-template-columns:1fr}}
.nl-ko .ft-mini{margin-top:14px}
/* a phone: the same bracket as desktop, shown at 68% (tighter, so more of the semi-finals shows) and swiped across, like the World Cup's (21 Nov 2026) */
@media (max-width:600px){.nl-ko .ft-bracket{zoom:.68}.nl-ko{--ft-gap:44px}.nl-ko .ft-scroll{padding-bottom:12px}
 .nl-ko .ft-scroll .ft-slimtie{padding:11px 12px 10px}.nl-ko .ft-scroll .ft-slim{padding:9px 11px 8px}.nl-ko .ft-scroll .ft-sl{gap:10px}.nl-ko .ft-scroll .ft-st b{font-size:13.5px}
 .nl-ko .ft-scroll .ft-sl .ft-st img{width:46px;height:32px}}

/* the slim bracket (21 Nov): play-offs and the phone's ties two to a row where there's room */
.nl-poties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){.nl-poties{grid-template-columns:1fr}}
.nl-poties > *{min-width:0}
@media (max-width:600px){.nl-ko .ft-slimtie{padding:9px 8px 8px}.nl-ko .ft-slim{padding:8px 9px 7px}.nl-ko .ft-sl{gap:7px}.nl-ko .ft-st{gap:6px}.nl-ko .ft-st b{font-size:13px}.nl-ko .ft-sl em{font-size:13px}}
.nl-ko .ft-col.ft-r0{flex-basis:380px}
