/* Matchday Insights - national team pages (2026-11). Self-contained: the
   shared page look comes from club-page.css. */
.pl{max-width:860px;margin:0 auto;padding:18px 16px 30px;font-family:'JetBrains Mono',Inter,system-ui,sans-serif;color:var(--text)}
.pl h1{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:clamp(30px,8vw,44px);line-height:1;margin:0 0 6px;text-transform:uppercase;color:var(--text)}
.pl h1 em{font-style:normal;color:var(--green)}
.pl h2{font-size:17px;font-weight:700;margin:26px 0 10px;color:var(--text)}
.pl h2 span{font-size:12px;font-weight:500;color:var(--muted);margin-left:6px}
.pl a{color:inherit}
.pl-f{font-size:12.5px;color:var(--text2);margin-top:4px}
.pl-lead{font-size:14.5px;line-height:1.55;color:var(--text2);margin:6px 0 4px}
.pl-lead a{color:var(--text);font-weight:600;text-decoration:none}
.pl-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.pl-s{background:var(--surface2);border:1px solid var(--border2);border-radius:10px;padding:10px 6px;text-align:center}
.pl-s b{display:block;font-size:21px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums}
.pl-s span{font-size:11px;color:var(--muted)}
.pl-t{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;margin-top:10px;table-layout:auto}
.pl-t th{font-size:11px;font-weight:600;color:var(--muted);text-align:center;padding:7px 5px;border-bottom:1px solid var(--border2);white-space:nowrap}
.pl-t td{padding:8px 5px;text-align:center;border-bottom:1px solid var(--border);color:var(--text2);white-space:nowrap}
.pl-t .l{text-align:left}
.pl-t td.l{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;max-width:0;width:40%}
.pl-t td.cl{font-weight:500;color:var(--text2);width:30%}
.pl-t td.cl img{width:16px;height:16px;object-fit:contain;vertical-align:-3px;margin-right:6px}
.pl-t td a{text-decoration:none}
.pl-t td.b{color:var(--text);font-weight:800}
.pl-t tr.sq-g td{text-align:left;font-weight:700;color:var(--green);background:var(--surface2);padding:6px 8px;font-size:12px}
.pl-t .fm i{display:inline-block;width:15px;height:15px;line-height:15px;border-radius:3px;font-style:normal;font-size:9px;color:#fff;margin:0 1px}
.pl-t .fm i.W{background:#1f9a46}.pl-t .fm i.D{background:#8a90a8}.pl-t .fm i.L{background:#d0364f}
.pl-sort th{cursor:pointer}.pl-sort th.on{color:var(--green)}
.pl-more,.pl-back{display:inline-block;margin:18px 0 4px;font-size:13px;font-weight:600;color:var(--green)!important;text-decoration:none}
.pl-back{margin:0 0 12px}
.pl-src{font-size:11.5px;color:var(--muted);margin-top:14px}

/* national team pages */
.nt-filter{margin:14px 0 4px}
.nt-filter select{background:var(--surface2);color:var(--text);border:1px solid var(--border2);border-radius:8px;padding:8px 10px;font:inherit;font-size:13px}
.nt .fi{width:1.35em;line-height:1em;margin-right:8px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12);vertical-align:-2px}
.nt-t td.l{width:auto}
.nt-t td.l small{display:block;font-size:10.5px;font-weight:500;color:var(--muted);margin:2px 0 0 calc(1.35em + 8px)}
.nt-t td.l a{display:block;overflow:hidden;text-overflow:ellipsis}
.nt-r{width:58px;font-weight:700;color:var(--text)!important;text-align:left!important}
.nt-mv{display:inline-block;min-width:22px;margin-left:5px;font-size:9.5px;font-weight:700;color:var(--muted)}
.nt-mv.up,.nt-c.up{color:#3dba5e}.nt-mv.dn,.nt-c.dn{color:#e5484d}
.nt-rt{width:96px;text-align:right!important}
.nt-rt b{color:var(--text);font-size:14px}
.nt-c{display:inline-block;min-width:38px;margin-left:6px;font-size:11px;font-weight:700;color:var(--muted);text-align:right}
.pl-s .nt-c{min-width:0;margin:0;font-size:21px;font-weight:800}
.nt-h{display:flex;gap:14px;align-items:center;margin:4px 0 12px}
.nt-h .fi{width:64px;height:48px;line-height:48px;flex:none;border-radius:4px;margin:0}
.nt-cards{grid-template-columns:repeat(3,1fr)!important}
.nt-res{display:inline-block;width:18px;height:18px;line-height:18px;border-radius:4px;color:#fff;font-size:10px;font-weight:700}
.nt-res.W{background:#1f9a46}.nt-res.D{background:#8a90a8}.nt-res.L{background:#d0364f}
.nt .pl-t td.l a{font-weight:600}
.nt-fx{background:var(--surface2);border:1px solid var(--border2);border-radius:10px;padding:10px 12px;margin:8px 0}
.nt-fx-m{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}
.nt-fx-t{display:flex;justify-content:space-between;gap:10px;margin:7px 0 6px;font-size:14px;font-weight:700}
.nt-fx-t a{text-decoration:none;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-fx-t a:last-child{text-align:right}
.nt-fx-t i{font-style:normal;font-weight:500;font-size:11px;color:var(--muted)}
.nt-odds{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:12px}
.nt-odds .bar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:var(--border)}
.nt-odds .bar i{display:block;height:100%}
.nt-odds .w{background:#3dba5e}.nt-odds .d{background:#8a90a8}.nt-odds .l{background:#e5484d}
.nt-odds small{grid-column:1/-1;text-align:center;color:var(--muted);font-size:11px;margin-top:-3px}
.nt-ch{position:relative;margin-top:8px;padding-bottom:18px}
.nt-ch svg{display:block;width:100%;height:180px;border-bottom:1px solid var(--border2)}
.nt-ch .g line{stroke:var(--border);stroke-width:1;vector-effect:non-scaling-stroke}
.nt-hi,.nt-lo{position:absolute;right:0;font-size:10.5px;color:var(--muted);background:var(--bg);padding:0 3px}
.nt-hi{top:0}.nt-lo{top:162px}
.nt-yr{position:relative;height:16px;font-size:10.5px;color:var(--muted)}
.nt-yr span{position:absolute;top:3px;transform:translateX(-50%)}
@media (max-width:640px){.nt-ch svg{height:140px}.nt-lo{top:122px}.nt-rt{width:84px}.nt-r{width:50px}}
.nt .pl-t td.dt,.nt .pl-t th.dt{text-align:left;width:1%;color:var(--text2)}
.nt .pl-t td.o{text-align:left;color:var(--muted);font-size:12px;max-width:0;overflow:hidden;text-overflow:ellipsis;width:28%}
.nt .pl-t th.o{text-align:left}
@media (max-width:640px){
  .nt .pl-t{font-size:12.5px}
  .nt .pl-t .o{display:none}
  .nt .pl-t td.dt{font-size:11.5px}
}
/* Live scores on the match cards (nt-live.js, Greg 2026-11). */
.nt-fx .nt-sc{flex:none;font-size:17px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.nt-fx.nt-on{border-color:#e5484d}
.nt-fx.nt-on .nt-when{color:#e5484d;font-weight:700}
.nt-fx.nt-ft .nt-when{color:var(--text2);font-weight:700}
.nt-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#e5484d;margin-right:5px;vertical-align:1px;animation:ntp 1.6s infinite}
@keyframes ntp{50%{opacity:.35}}
/* History, squads and the international prediction pages (Greg, 2026-11). */
.nt-hons{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.nt-hon{display:flex;gap:12px;align-items:center;background:var(--surface2);border:1px solid var(--border2);border-radius:10px;padding:10px 12px}
.nt-hon>b{font-size:22px;font-weight:800;color:var(--green);min-width:38px}
.nt-hon strong{display:block;font-size:13.5px;color:var(--text)}
.nt-hon span{display:block;font-size:11.5px;color:var(--muted);line-height:1.45;white-space:normal}
.nt-rec{grid-template-columns:repeat(5,1fr)!important}
.nt-rec .pl-s b{font-size:18px}
.nt-facts{list-style:none;margin:12px 0 0;padding:0;font-size:13px;color:var(--text2)}
.nt-facts li{padding:8px 0;border-bottom:1px solid var(--border);line-height:1.45}
.nt-facts li>span{display:block;font-size:11px;color:var(--muted);margin-bottom:1px}
.nt-facts a{text-decoration:none;font-weight:600;color:var(--text)}
.nt-yrs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.nt-yrs span{background:var(--surface2);border:1px solid var(--border2);border-radius:8px;padding:5px 8px;font-size:12px;color:var(--text2);white-space:nowrap}
.nt-yrs span b{color:var(--muted);font-weight:500;margin-right:6px}
.nt-yrs span.b{border-color:#3dba5e;color:var(--text);font-weight:700}
.nt-form i{display:inline-block;width:18px;height:18px;line-height:18px;border-radius:4px;font-style:normal;font-size:10px;font-weight:700;color:#fff;margin:0 1px;text-align:center}
.nt-form i.W{background:#1f9a46}.nt-form i.D{background:#8a90a8}.nt-form i.L{background:#d0364f}
.nt .pl-t td.fm{text-align:right}
.nt-big{margin:14px 0 6px;padding:14px 16px}
.nt-big .nt-fx-t{font-size:18px}
.nt-ft-line{background:var(--surface2);border:1px solid var(--border2);border-radius:10px;padding:10px 14px;margin:8px 0;font-size:14px}
.nt-ft-line b{display:block;color:var(--text)}
.nt-ft-line span{font-size:12px;color:var(--muted)}
.nt-sq td.l{width:auto}
@media (max-width:640px){
  .nt-rec{grid-template-columns:repeat(3,1fr)!important}
  .nt-hons{grid-template-columns:1fr}
}
/* Competition pages: tables, the knockout rounds, matches (generate_competition_pages.py, Greg 2026-11). */
.cp h1 em{font-style:normal;color:var(--muted);font-weight:600;margin-left:8px}
.cp-ts{display:grid;grid-template-columns:1fr;gap:14px}
.cp-ts.cp-many{grid-template-columns:repeat(auto-fill,minmax(330px,1fr))}
.cp-t h3{font-size:13px;letter-spacing:.06em;color:var(--muted);margin:4px 0 6px;text-transform:uppercase}
.cp .pl-t img.cr,.cp-br img.cr{width:18px;height:18px;object-fit:contain;vertical-align:-4px;margin-right:7px}
.cp .pl-t .cp-fl,.cp-ms .cp-fl{width:20px;height:15px;border-radius:2px;margin-right:7px;vertical-align:-2px;background-size:cover}
.cp .pl-t td.l a{text-decoration:none;font-weight:600;color:var(--text)}
.cp-our{font-style:normal;color:var(--muted);font-size:11px;margin-left:6px;font-weight:500}
/* Table names: flag centred, long names wrap, rank raised like an exponent, names not bold (Greg, 2026-11). */
.cp .pl-t td.l:has(.cp-tn){white-space:normal;overflow:visible;font-weight:500}
.cp-tn{display:flex;align-items:center;min-width:0;line-height:1.25}
.cp-tn>img.cr,.cp-tn>.cp-fl,.cp-tn>.cp-nofl{flex:none}
.cp-tn>.cp-nofl{width:20px;height:15px;margin-right:7px}
.cp .pl-t .cp-tn>.cp-fl,.cp .pl-t .cp-tn>img.cr{vertical-align:0}
.cp .pl-t .cp-tn a{font-weight:500}
sup.cp-our{font-size:9.5px;font-weight:600;margin-left:2px;vertical-align:super;line-height:0;white-space:nowrap}
.cp-br{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 10px}
.cp-rd{min-width:190px;flex:none;display:flex;flex-direction:column;justify-content:space-around;gap:8px}
.cp-rd h4{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-align:center;margin:0 0 4px}
.cp-tie{background:var(--surface2);border:1px solid var(--border2);border-radius:9px;padding:6px 9px;font-size:13px}
.cp-tie>div{display:flex;align-items:center;gap:2px;padding:3px 0;color:var(--text2)}
.cp-tie>div a{color:inherit;text-decoration:none;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cp-tie>div b{font-family:'JetBrains Mono',monospace;font-size:12px;margin-left:8px}
.cp-tie>div.w{color:var(--text);font-weight:600}
.cp-ms{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.cp-ms .nt-fx-t span{display:flex;align-items:center}
.cp-ms .nt-fx-t{gap:12px}
.cp-ms .nt-fx-t a{color:var(--text);text-decoration:none;font-weight:600}
.cp-ms .nt-fx-t i{font-style:normal;color:var(--muted);font-size:11px;margin-left:6px}
.cp-pv{color:var(--green);text-decoration:none;font-weight:600}
.cp-res td{padding:7px 6px}
.cp-res td.cp-h{text-align:right}
.cp-res td.cp-sc{text-align:center;white-space:nowrap;font-family:'JetBrains Mono',monospace}
.cp-res td.cp-sc i{display:block;font-style:normal;font-size:10px;color:var(--muted)}
.cp-res a{color:var(--text);text-decoration:none;font-weight:600}
.cp-res img.cr,.cp-res .cp-fl{margin:0 7px}
@media (max-width:640px){
  .cp-ts.cp-many{grid-template-columns:1fr}
  .cp-res td.dt{display:none}
}
/* "Who will win it?" under each competition table (comp_odds.py, Greg 2026-11). */
.cp-odds{margin-top:10px}
.cp-oh{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:2px 0 4px}
.cp-odds td.cp-hi{color:var(--green);font-weight:700}
.cp-odds td.cp-lo{color:var(--red);font-weight:700}
/* Group stage / Knockout tabs on competition pages (Greg, 2026-11) */
.cp-tabs{display:flex;gap:6px;margin:16px 0 4px;border-bottom:1px solid var(--border2)}
.cp-tb{appearance:none;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;
  padding:9px 14px;font:700 14px Inter,'Segoe UI',sans-serif;color:var(--muted);cursor:pointer}
.cp-tb.on{color:var(--text);border-bottom-color:var(--green)}
.cp-tb:hover{color:var(--text)}
.cp-pane[hidden]{display:none}
.cp-none{color:var(--muted);font-size:14px;padding:18px 2px}
.cp-pen{display:block;font-style:normal;font-size:11px;color:var(--muted);text-align:right;margin-top:2px}

/* ---- Tidier on phones (Greg, 2026-11: "clean this up") ----
   Odds: the three chances on one line - home left, draw middle, away right -
   over the bar, as on the Matches page; no "draw 21%" line underneath. */
.nt-odds{grid-template-columns:1fr auto 1fr;grid-template-areas:"h d a" "b b b";row-gap:5px;column-gap:8px}
.nt-odds>span:first-child{grid-area:h;text-align:left}
.nt-odds>span:nth-of-type(2){grid-area:a;text-align:right}
.nt-odds .bar{grid-area:b;height:6px}
.nt-odds small{grid-area:d;margin:0;font-size:12px;color:var(--text2)}
/* Latest results: both names get the same width and wrap to two lines
   instead of the away side being cut to "M..."; a team without a flag keeps
   the flag's space, so the scores stay in one column. */
.cp-res{table-layout:fixed}
.cp-res td.dt{width:54px;white-space:normal;font-size:11px;line-height:1.25;color:var(--muted);text-align:left}
.cp-res td.cp-sc{width:56px}
.cp-res td.cp-h,.cp-res td.cp-a{white-space:normal;max-width:none;overflow:visible;line-height:1.25;font-size:13px}
.cp-res td.cp-h a,.cp-res td.cp-a a{font-weight:600}
.cp-res td.cp-h{text-align:right}
.cp-res td.cp-a{text-align:left}
.cp-res .cp-nofl{display:inline-block;width:20px;height:15px;margin:0 7px;vertical-align:-2px}
@media (max-width:640px){
  .cp-res td{padding:7px 4px}
  .cp-res td.dt{width:40px;font-size:10.5px}
  .cp-res td.cp-sc{width:44px;font-size:13px}
  .cp-res td.cp-h,.cp-res td.cp-a{font-size:12.5px}
  .cp-res img.cr,.cp-res .cp-fl,.cp-res .cp-nofl{margin:0 5px;width:18px;height:13px}
  .cp-res img.cr{height:18px}
}
/* Next-match cards: long names wrap, the rank stays whole beside or under
   the name ("Domin... No. / 184" before). */
.cp-ms .nt-fx-t>span{display:grid!important;grid-template-columns:auto minmax(0,1fr);column-gap:0;align-items:center;min-width:0}
.cp-ms .nt-fx-t>span>a,.cp-ms .nt-fx-t>span>b{grid-column:2;white-space:normal;line-height:1.2}
.cp-ms .nt-fx-t>span>i{grid-column:2;margin-left:0!important;white-space:nowrap;line-height:1.3}
.cp-ms .nt-fx-t>span>.cp-fl,.cp-ms .nt-fx-t>span>.cp-nofl{grid-column:1;grid-row:1}
@media (max-width:640px){
  .cp-ms .nt-fx-t a{font-size:15px}
  .cp-ms .nt-fx{padding:10px 12px}
}
/* A result with a match page: the score opens it (Greg, 2026-11). */
.cp-res a.cp-ml{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:7px;background:var(--surface2);
  border:1px solid var(--border2);color:var(--text);text-decoration:none;font-family:inherit}
.cp-res a.cp-ml small{color:var(--green);font-size:14px;line-height:1;font-weight:700}
.cp-res a.cp-ml:hover{border-color:var(--green)}

/* National match pages: the group table, kept live by mt-live.js (Greg, 2026-11). */
.nt-mtw{overflow-x:auto;margin:6px 0 18px}
table.nt-mt{width:100%;min-width:0;border-collapse:collapse;font-size:13.5px}
table.nt-mt th{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--text2,#7880a0);font-weight:600;text-align:center;padding:6px 4px}
table.nt-mt td{padding:8px 4px;text-align:center;border-top:1px solid rgba(128,128,128,.16);white-space:nowrap}
table.nt-mt th.cl,table.nt-mt td.cl{text-align:left}
table.nt-mt td.cl .fi{margin-right:7px;border-radius:2px}
table.nt-mt td.cl a{color:inherit;text-decoration:none}
table.nt-mt td.pt{font-weight:800}
table.nt-mt tr.me td{background:rgba(61,186,94,.09)}
@media(max-width:640px){table.nt-mt .opt{display:none}}

/* Lighter type in results and the bracket (Greg, 2026-11: "too much use of
   bold text ... The winner should be in bold but maybe a less dramatic
   bold"): names regular, the winner semi-bold, scores not bold; each side's
   name and flag sit on one centred line, so two-line names still line up. */
.cp-res td.cp-h,.cp-res td.cp-a{vertical-align:middle}
.cp-res .cp-tm{display:flex;align-items:center;gap:7px}
.cp-res td.cp-h .cp-tm{justify-content:flex-end}
.cp-res .cp-tm img.cr,.cp-res .cp-tm .cp-fl,.cp-res .cp-tm .cp-nofl{margin:0;flex:none}
.cp-res td.cp-h a,.cp-res td.cp-a a,.cp-res td.cp-h,.cp-res td.cp-a{font-weight:400;color:var(--text)}
.cp-res td.w a,.cp-res td.w{font-weight:600}
.cp-res td.cp-sc,.cp-res td.cp-sc b{font-weight:500;vertical-align:middle}
.cp-tie>div b{font-weight:500}
@media (max-width:600px){.cp-res .cp-tm{gap:5px}}

/* The score link chip fits its column (it ran over the away flag - Greg,
   2026-11); every team in the bracket keeps a flag-sized space. */
.cp-res td.cp-sc{width:76px}
.cp-res a.cp-ml{padding:3px 6px;gap:2px}
@media (max-width:600px){.cp-res td.cp-sc{width:64px}.cp-res a.cp-ml{padding:2px 5px}}
.cp-tie>div .cp-fl,.cp-tie>div .cp-nofl{display:inline-block;flex:none;width:20px;height:15px;border-radius:2px;margin-right:8px;background-size:cover}
.cp-tie>div{gap:0}
/* The score always sits at the right edge, also for teams with no page
   (their name is plain text, not a stretching link - Greg, 2026-11:
   "Scores still misaligned"). */
.cp-tie>div b{margin-left:auto;padding-left:8px}

/* Bracket lined up (Greg, 2026-11: "Bracket isn't centered"): the round's
   name stays at the top and only the ties share out the height, so each
   tie sits halfway between the two it comes from. */
.cp-rd{justify-content:flex-start;gap:8px}
.cp-rd>h4{flex:none;margin:0 0 2px}
.cp-rd>.cp-tie{margin:auto 0}
/* Promotion / relegation play-offs under the bracket, apart from the road to
   the final (Greg, 2026-11: CONCACAF Nations League mixed them together). */
.cp-side{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:18px 0 6px}
