/* The Window Data — styles for team pages, rankings and directory.
   Colours are variables so the theme (or Customizer → Additional CSS) can override them. */
.tw {
  --tw-ink: #10221B;
  --tw-ink-2: #33433B;
  --tw-muted: #4A5A52;
  --tw-line: #DDE2DC;
  --tw-soft: #F1F2EF;
  --tw-card: #FFFFFF;
  --tw-green: #1B6B4A;
  --tw-green-soft: #E6EEE9;
  --tw-green-ink: #1B4D37;
  --tw-accent: #F08A4B;
  --tw-cta: #9CEE8C;
  --tw-lime: #9CEE8C;
  --tw-lime-ink: #3B7F2B;
  color: var(--tw-ink);
  line-height: 1.5;
}
.tw *, .tw *::before, .tw *::after { box-sizing: border-box; }
.tw a { color: var(--tw-green); }
.tw [hidden] { display: none !important; }
.tw-team-page .entry-title, .tw-team-page .wp-block-post-title { display: none; }

.tw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tw-muted { color: var(--tw-muted); }
.tw-strong { font-weight: 600; }
.tw-right { text-align: right; }
.tw-center { text-align: center; }
.tw-small { font-size: .9em; }
.tw-num { font-variant-numeric: tabular-nums; }
.tw-note { font-size: .875rem; color: var(--tw-muted); margin: .75rem 0 0; }
.tw-empty { color: var(--tw-muted); margin: .5rem 0; }
.tw-count { font-size: .75em; font-weight: 600; color: var(--tw-muted); margin-left: .25em; }
.tw-h { font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .75rem; }

.tw-card { background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: 10px; padding: 1.1rem 1.25rem; }
.tw-card--dark { background: var(--tw-ink); color: #F5F6F3; border-color: var(--tw-ink); }
.tw-card--dark .tw-note { color: #C9D3CC; }
.tw-scroll { overflow-x: auto; }

/* header: one dark band across the full page width — flag, name and rank on one line */
.tw-team__head { background: var(--tw-ink); color: #F5F6F3; border-radius: 12px; padding: 1.25rem clamp(1rem, 3vw, 2rem) 1.35rem; margin-bottom: 1.5rem; }
.tw-crumb { font-size: .85rem; color: var(--tw-muted); margin: 0 0 .25rem; }
.tw-team__head .tw-crumb { color: #A9B8AF; margin-bottom: .6rem; letter-spacing: .04em; }
.tw-team__title { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.1rem); flex-wrap: nowrap; min-width: 0; }
.tw-team__name { flex: 1 1 auto; min-width: 0; font-size: clamp(2rem, 5.5vw, 4rem); line-height: .95; margin: 0; text-transform: uppercase; letter-spacing: .01em; color: inherit; overflow-wrap: anywhere; }
.tw-team__rank { flex: none; margin: 0 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .5rem; text-align: right; }
.tw-team__ranklabel { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F08A4B; }
.tw-team__rankno { font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(2rem, 6vw, 4rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tw-team__head .tw-move { background: rgba(245, 246, 243, .12); color: #F5F6F3; }
.tw-team__head .tw-move--up { background: #DCEFE4; color: #155238; }
.tw-team__head .tw-move--down { background: #FBE3D6; color: #8A2E0A; }
.tw-team__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(245, 246, 243, .14); }
.tw-team__nick { font-style: italic; color: #C9D3CC; font-size: 1.05rem; margin: 0; }
.tw-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tw-chip { background: var(--tw-green-soft); color: var(--tw-green-ink); font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border-radius: 4px; }
.tw-chip--dark { background: var(--tw-ink); color: #F5F6F3; }
.tw-chip--line { background: var(--tw-soft); color: var(--tw-ink); border: 1px solid var(--tw-line); }
.tw-team__head .tw-chip { background: rgba(245, 246, 243, .1); color: #F5F6F3; }
.tw-team__head .tw-chip--line { background: transparent; border: 1px solid rgba(245, 246, 243, .3); }
.tw-synced { font-size: .8rem; color: var(--tw-muted); margin: .75rem 0 0; }
.tw-team__head .tw-synced { color: #A9B8AF; margin: 0 0 0 auto; }
@media (max-width: 640px) {
  .tw-team__ranklabel { font-size: .62rem; letter-spacing: .06em; }
  .tw-team__rank .tw-move { min-width: 0; font-size: .72rem; }
  .tw-team__head .tw-synced { margin-left: 0; width: 100%; }
}

/* layout */
.tw-team__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.tw-team__main { flex: 999 1 720px; min-width: 0; }
.tw-team__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }

/* roster */
.tw-roster { padding: 0; overflow: hidden; }
.tw-roster__bar { padding: 1rem 1.25rem; border-bottom: 1px solid var(--tw-line); }
.tw-tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; background: var(--tw-soft); padding: .25rem; border-radius: 8px; }
.tw-tab { font: inherit; font-size: .9rem; font-weight: 600; border: 0; border-radius: 6px; padding: .55rem 1rem; min-height: 40px; cursor: pointer; background: transparent; color: var(--tw-ink-2); }
.tw-tab.is-on { background: var(--tw-ink); color: #F5F6F3; }
.tw-tab.is-on .tw-count { color: #C9D3CC; }
.tw-tab:focus-visible, .tw-pill:focus-visible, .tw-btn:focus-visible { outline: 3px solid var(--tw-accent); outline-offset: 2px; }
.tw-panel { padding: 0 0 .5rem; }
.tw-panel > .tw-note { padding: 0 1.25rem; margin: .9rem 0 .5rem; }
.tw-pos { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-green); margin: 0; padding: .9rem 1.25rem .35rem; border-top: 1px solid var(--tw-soft); }
.tw-pos:first-child { border-top: 0; }
.tw-roster .tw-scroll + .tw-pos { margin-top: 1rem; }
.tw-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.tw-table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-muted); background: var(--tw-soft); font-weight: 600; padding: .6rem 1.25rem; border: 0; }
.tw-table td { padding: .65rem 1.25rem; border: 0; border-top: 1px solid var(--tw-soft); vertical-align: top; }
.tw-roster .tw-table { min-width: 460px; }
.tw-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: .2rem .5rem; border-radius: 4px; background: var(--tw-soft); color: var(--tw-ink-2); white-space: nowrap; }
.tw-badge--new { background: var(--tw-accent); color: var(--tw-ink); }

/* fixtures / results */
.tw-fx { border: 1px solid var(--tw-soft); border-radius: 8px; padding: .75rem .9rem; display: flex; flex-direction: column; gap: .45rem; margin-top: .75rem; }
.tw-fx:first-of-type { margin-top: 0; }
.tw-fx__meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--tw-muted); }
.tw-fx__teams { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 600; }
.tw-fx__teams a { color: var(--tw-ink); text-decoration: none; }
.tw-fx__teams small { color: var(--tw-muted); font-weight: 500; }
.tw-fx__pred { background: var(--tw-green-soft); color: var(--tw-green-ink); border-radius: 6px; padding: .45rem .6rem; font-size: .85rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tw-fx__venue { font-size: .78rem; color: var(--tw-muted); }
.tw-res { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--tw-soft); }
.tw-res:first-of-type { border-top: 0; }
.tw-res__body { flex: 1 1 auto; display: flex; flex-direction: column; font-size: .9rem; }
.tw-res__call { font-size: .78rem; color: var(--tw-muted); text-align: right; }
.tw-wdl { width: 2rem; height: 2rem; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: #E3E6E1; color: var(--tw-ink-2); flex: none; }
.tw-wdl--w { background: var(--tw-green); color: #fff; }
.tw-wdl--l { background: #8A2E0A; color: #fff; }

/* ranking card */
.tw-bigrank { font-size: 3.5rem; font-weight: 700; line-height: 1; margin: 0; display: flex; align-items: center; gap: .75rem; }
.tw-hist { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: .4rem; }
.tw-hist li { flex: 1 1 0; background: rgba(255,255,255,.08); border-radius: 4px; padding: .35rem .25rem; display: flex; flex-direction: column; align-items: center; font-size: .75rem; color: #C9D3CC; }
.tw-hist li:last-child { background: var(--tw-accent); color: var(--tw-ink); }
.tw-hist strong { font-size: .95rem; color: inherit; }
.tw-card--dark .tw-hist li:not(:last-child) strong { color: #F5F6F3; }

/* movement */
.tw-move { display: inline-block; min-width: 2.4rem; text-align: center; padding: .15rem .45rem; border-radius: 4px; font-size: .8rem; font-weight: 700; background: #EEF0EC; color: var(--tw-muted); }
.tw-move--up { background: #DCEFE4; color: #155238; }
.tw-move--down { background: #FBE3D6; color: #8A2E0A; }
.tw-move--new { background: var(--tw-soft); color: var(--tw-ink-2); }

/* locked */
.tw-locked { padding: 2rem 1.75rem; }
.tw-locked__title { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.05; margin: 0 0 .75rem; }
.tw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.25rem 0 0; }
.tw-btn { display: inline-block; background: var(--tw-cta); color: var(--tw-ink) !important; box-shadow: inset 0 0 0 1px rgba(16, 34, 27, .12); font-weight: 700; text-decoration: none; padding: .85rem 1.3rem; border-radius: 8px; border: 0; }
.tw-btn--small { padding: .5rem .9rem; }
.tw-link { font-weight: 600; }

/* related */
.tw-related { margin-top: 2rem; }
.tw-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tw-post { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--tw-ink) !important; }

/* rankings */
.tw-rankings__bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.tw-rankings__bar label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--tw-ink-2); gap: .3rem; }
.tw-rankings__bar select { font: inherit; padding: .55rem .7rem; min-height: 44px; border: 1px solid #C5CCC6; border-radius: 6px; background: #fff; }
.tw-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.tw-pill { font: inherit; font-size: .85rem; font-weight: 600; border: 1px solid #C5CCC6; background: #fff; color: var(--tw-ink); border-radius: 999px; padding: .45rem .9rem; min-height: 40px; cursor: pointer; }
.tw-pill.is-on { background: var(--tw-ink); color: #F5F6F3; border-color: var(--tw-ink); }
.tw-table--rank { min-width: 640px; }
.tw-table--rank td { vertical-align: middle; }
.tw-rankings .tw-card { padding: 0; }
.tw-rankno { font-size: 1.35rem; font-weight: 700; width: 4rem; }

/* directory */
.tw-search input { width: 100%; max-width: 520px; font: inherit; padding: .7rem .9rem; min-height: 44px; border: 1px solid #C5CCC6; border-radius: 8px; margin-bottom: 1.25rem; }
.tw-dir__group { margin-bottom: 2.5rem; }
.tw-dir__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .4rem 1rem; }
.tw-dir__list a { text-decoration: none; color: var(--tw-ink); display: block; padding: .35rem 0; }
.tw-code { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--tw-green-soft); color: var(--tw-green-ink); padding: .1rem .35rem; border-radius: 3px; margin-right: .35rem; }

/* width: use the theme's wide size, and work in classic themes that don't know .alignwide */
.tw.alignwide { width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); margin-left: auto; margin-right: auto; }
.tw-team { padding-top: 1rem; }
/* keep the club column lined up across the four position tables */
.tw-roster .tw-table { table-layout: fixed; }
.tw-roster .tw-panel:first-of-type .tw-table :is(td, th):first-child { width: 38%; }
.tw-roster .tw-panel:first-of-type .tw-table :is(td, th):last-child { width: 72px; }

/* win / draw / win bar */
.tw-fx__pred { display: block; background: transparent; padding: 0; }
.tw-prob { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--tw-soft); }
.tw-prob__seg--h { background: var(--tw-ink); }
.tw-prob__seg--d { background: #B9C2BC; }
.tw-prob__seg--a { background: var(--tw-lime); }
.tw-prob__labels { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; margin-top: .3rem; white-space: nowrap; }
.tw-prob__lab--h { color: var(--tw-ink); font-weight: 600; }
.tw-prob__lab--d { color: var(--tw-muted); }
.tw-prob__lab--a { color: var(--tw-lime-ink); font-weight: 600; text-align: right; }
/* rank history: fit up to 7 boxes in the narrow side column */
.tw-hist { gap: .25rem; }
.tw-hist li { min-width: 0; padding: .3rem .1rem; font-size: .68rem; line-height: 1.2; text-align: center; }
.tw-hist strong { font-size: .85rem; }

/* home page widgets */
.tw-rankings--compact .tw-card { padding: 0; }
.tw-rankings--compact .tw-table--rank { min-width: 0; }
.tw-rankings--compact .tw-table td, .tw-rankings--compact .tw-table th { padding: .5rem .75rem; }
.tw-rankings--compact .tw-rankno { font-size: 1.15rem; width: 3rem; }
.tw-upcoming { display: flex; flex-direction: column; gap: .75rem; }
.tw-upcoming .tw-fx { background: var(--tw-card); margin: 0; }

/* phones: drop the confederation column and code so rank, team, rating and movement fit */
@media (max-width: 640px) {
  .tw-col-conf, .tw-col-code { display: none; }
  .tw-rankings--compact .tw-table--rank { min-width: 0; }
  .tw-table--rank { min-width: 520px; }
  .tw-table td, .tw-table th { padding-left: .75rem; padding-right: .75rem; }
}

/* fixtures page */
.tw-fixtures__bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.tw-fixtures__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.tw-fixtures__filters select, .tw-fixtures__filters input { font: inherit; font-size: .95rem; padding: .55rem .7rem; min-height: 44px; border: 1px solid #C5CCC6; border-radius: 8px; background: #fff; color: var(--tw-ink); }
.tw-fxday { margin-top: 1.5rem; }
.tw-fxday__date { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .5rem; padding-bottom: .35rem; border-bottom: 2px solid var(--tw-ink); }
.tw-fxrow { background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: 10px; padding: .8rem 1rem; display: grid; grid-template-columns: minmax(110px, .55fr) minmax(0, 2fr) minmax(0, 1fr); gap: .35rem 1.25rem; align-items: center; margin-top: .5rem; }
.tw-fxrow__comp { font-size: .8rem; color: var(--tw-muted); }
.tw-fxrow__match { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 600; }
.tw-fxrow__match a { color: var(--tw-ink); text-decoration: none; }
.tw-fxrow__match small { color: var(--tw-muted); font-weight: 500; }
.tw-fxrow__team--away { text-align: right; }
.tw-fxrow__mid { color: var(--tw-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-fxrow__call { grid-column: 1 / -1; font-size: .8rem; color: var(--tw-muted); }
.tw-fxrow__call--right { color: var(--tw-green); font-weight: 600; }
.tw-fxrow__call--wrong { color: #8A2E0A; font-weight: 600; }
@media (max-width: 760px) { .tw-fxrow { grid-template-columns: 1fr; } }

/* socials (WordPress social icons) */
.tw-socials.wp-block-social-links { margin: 0; gap: .5rem; }
.tw-socials--labels.wp-block-social-links .wp-social-link { border-radius: 8px; }
.tw-socials--labels.wp-block-social-links .wp-block-social-link-anchor { padding: .55rem .9rem !important; font-weight: 600; }

/* podcast */
.tw-listen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.tw-listen__btn { display: inline-block; padding: .55rem 1rem; border: 1px solid #C5CCC6; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--tw-ink) !important; background: #fff; }
.tw-listen__btn:hover { border-color: var(--tw-ink); }
.tw-ep__kicker { font-size: .8rem; color: var(--tw-muted); margin: 0 0 .35rem; letter-spacing: .02em; }
.tw-ep__title { margin: 0 0 .6rem; text-transform: none; font-family: inherit; font-size: 1.15rem; line-height: 1.3; }
.tw-ep--latest .tw-ep__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tw-ep__audio { width: 100%; margin-top: .5rem; }
.tw-podcast__embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.tw-embed iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.tw-embed--youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.tw-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.tw-latest .tw-ep--home { background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: .75rem; }
.tw-podcast > .tw-h { margin-top: 2rem; }

/* flags */
.tw-flag { display: inline-block; vertical-align: -0.15em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 34, 27, .12); object-fit: cover; flex: none; }
.tw-flag--sm { width: 20px; height: 15px; margin-right: .45rem; }
.tw-flag--md { width: 28px; height: 21px; margin-right: .5rem; }
.tw-flag--lg { width: clamp(40px, 8vw, 72px); height: auto; aspect-ratio: 4 / 3; border-radius: 4px; }
.tw-teamcell { white-space: nowrap; }
.tw-dir__list .tw-flag { margin-right: .4rem; }

/* phones: rankings show rank, team, rating and movement; the next match lives on the Fixtures page */
@media (max-width: 640px) {
  .tw-col-next { display: none; }
  .tw-rankings .tw-table--rank { min-width: 0; }
  .tw-teamcell { white-space: normal; }
}

/* player search (Insider) */
.tw-players__intro { color: var(--tw-muted); max-width: 70ch; margin: 0 0 1rem; }
.tw-psearch { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.tw-psearch__q { flex: 1 1 320px; min-width: 0; }
.tw-psearch input, .tw-psearch select { width: 100%; font: inherit; height: 50px; padding: .65rem .9rem; border: 1px solid #C5CCC6; border-radius: 8px; background: #fff; color: var(--tw-ink); }
.tw-psearch input:focus-visible, .tw-psearch select:focus-visible { outline: 3px solid var(--tw-accent); outline-offset: 1px; border-color: var(--tw-ink); }
.tw-psearch__in { flex: 0 1 220px; }
.tw-psearch .tw-btn { height: 50px; padding-block: 0; cursor: pointer; font: inherit; font-weight: 700; }
.tw-players__browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.25rem; align-items: start; }
.tw-table--compact td, .tw-table--compact th { padding-top: .5rem; padding-bottom: .5rem; }
.tw-flagrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; vertical-align: middle; }
.tw-flagrow .tw-flag { margin: 0; }
.tw-players__browse td:first-child { white-space: nowrap; }
.tw-col-flags { min-width: 200px; }
.tw-players__browse .tw-flagrow { flex-wrap: nowrap; white-space: nowrap; }
.tw-flagtip { display: inline-flex; }
.tw-players__resulthead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.tw-players__title { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.05; margin: 0; text-transform: uppercase; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .6rem; }
.tw-players__title .tw-flag { margin: 0; }
.tw-players__title small { font-size: .55em; text-transform: none; font-weight: 600; }
.tw-suggest { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.tw-suggest__item { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .8rem; border: 1px solid var(--tw-line); border-radius: 999px; background: var(--tw-card); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tw-suggest__item .tw-flag { margin-right: .5rem; }
.tw-suggest__item:hover { border-color: var(--tw-green); }
.tw-players__summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0 0 .75rem; }
.tw-players__summary .tw-flagrow { margin-left: .5rem; }
.tw-players__table { padding: 0; overflow: hidden; }
.tw-players__table td, .tw-players__table th { padding-left: 1rem; }
.tw-cc { font-size: .75rem; font-weight: 700; color: var(--tw-muted) !important; text-decoration: none; margin-left: .25rem; border: 1px solid var(--tw-line); border-radius: 3px; padding: 0 .3rem; }
.tw-cc:hover { color: var(--tw-green) !important; border-color: var(--tw-green); }
.tw-clublink { color: inherit !important; text-decoration-color: var(--tw-line); text-underline-offset: 3px; }
.tw-clublink:hover { color: var(--tw-green) !important; text-decoration-color: currentColor; }
.tw-dir__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1.5rem; }
.tw-dir__cta p { margin: 0; }
@media (max-width: 640px) {
  .tw-col-pos, .tw-col-flags { display: none; }
  .tw-psearch__in { flex: 1 1 100%; }
  .tw-psearch .tw-btn { flex: 1 1 100%; }
}

/* team page: next fixtures, one line per team */
.tw-fx__teams--stack { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; font-size: 1rem; }
.tw-fx__side { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; line-height: 1.25; }
.tw-fx__name { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-fx__name a { overflow: hidden; text-overflow: ellipsis; }
.tw-fx__name .tw-flag { margin-right: .5rem; }
.tw-fx__side:not(.is-this) .tw-fx__name a { font-weight: 600; }
.tw-fx__side.is-this .tw-fx__name a { font-weight: 700; }
.tw-fx__rank { flex: none; font-variant-numeric: tabular-nums; }

/* player search: controls, new band, map */
.tw-psearch__new { flex: 1 1 100%; display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; cursor: pointer; }
.tw-psearch__new input { width: 18px; height: 18px; accent-color: var(--tw-green); }
.tw-newband { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; text-decoration: none; color: var(--tw-ink) !important; margin-bottom: 1.25rem; border-color: var(--tw-accent); }
.tw-newband .tw-link { margin-left: auto; }
.tw-newband:hover { background: #FFF7F1; }
.tw-players__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: 0 0 1rem; }
.tw-players__controls .tw-tab { display: inline-flex; align-items: center; text-decoration: none; }
.tw-players__controls .tw-tab.is-on { background: var(--tw-ink); color: #F5F6F3 !important; }
.tw-players__controls .tw-tab.is-on .tw-count { color: #C9D3CC; }
.tw-sortby { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; font-size: .9rem; }
.tw-sortby .tw-pill { text-decoration: none; }
.tw-sortlink { color: inherit !important; text-decoration: none; }
.tw-sortlink:hover, .tw-sortlink.is-on { color: var(--tw-green) !important; }
.tw-mapcard { margin-top: 1.5rem; position: relative; }
.tw-mapcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.tw-mapcard__head .tw-h { margin: 0; }
.tw-mapcard__head .tw-h .tw-small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tw-map { aspect-ratio: 1000 / 435; background: #EEF3F0; border-radius: 8px; overflow: hidden; }
.tw-map svg { display: block; width: 100%; height: auto; }
.tw-map .tw-map-land, .tw-map [data-c] { fill: #D9DFDA; stroke: #fff; stroke-width: .35; transition: fill .15s; }
.tw-map circle[data-c] { stroke-width: .8; }
.tw-map [data-c][class^="tw-m"] { cursor: pointer; }
.tw-map [data-c][class^="tw-m"]:hover { stroke: var(--tw-ink); stroke-width: 1; }
.tw-m1 { fill: #BFDCCB !important; background: #BFDCCB; }
.tw-m2 { fill: #86BFA0 !important; background: #86BFA0; }
.tw-m3 { fill: #4C9A72 !important; background: #4C9A72; }
.tw-m4 { fill: #1B6B4A !important; background: #1B6B4A; }
.tw-m5 { fill: #10221B !important; background: #10221B; }
.tw-map__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.tw-map__legend { display: inline-flex; align-items: center; gap: 3px; margin: .75rem 0 0; font-size: .78rem; color: var(--tw-muted); }
.tw-map__legend i { display: inline-block; width: 22px; height: 10px; border-radius: 2px; }
.tw-map__legend span:first-child { margin-right: .35rem; }
.tw-map__legend span:last-child { margin-left: .35rem; }
.tw-map__tip { position: absolute; z-index: 5; pointer-events: none; background: var(--tw-ink); color: #F5F6F3; font-size: .8rem; font-weight: 600; line-height: 1.45; padding: .4rem .6rem; border-radius: 6px; white-space: pre; max-width: 320px; box-shadow: 0 4px 14px rgba(16,34,27,.25); }
@media (max-width: 640px) { .tw-newband .tw-link { margin-left: 0; } }
.tw-sortby .tw-pill { padding: .3rem .75rem; font-size: .85rem; min-height: 0; }

/* team page: where the squad plays */
.tw-mapcard--team { margin-top: 1.5rem; }
.tw-mapcard--team .tw-map [data-c][class^="tw-m"] { cursor: default; }
.tw-maplist { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tw-maplist li { display: inline-flex; align-items: center; gap: .1rem; background: var(--tw-soft); border: 1px solid var(--tw-line); border-radius: 999px; padding: .25rem .65rem; font-size: .85rem; font-weight: 600; }
.tw-maplist .tw-count { margin-left: .35rem; color: var(--tw-green); font-size: .85em; }
.tw-maplist .tw-flag { margin-right: .4rem; }
.tw-mapcard--team .tw-map svg { transition: none; }
.tw-mapcard--team .tw-map [data-c], .tw-mapcard--team .tw-map .tw-map-land { vector-effect: non-scaling-stroke; stroke-width: .6; }

/* fixtures: competition and city only; a filtered competition shows its group or stage instead */
.tw-fxrow__comp { display: flex; flex-direction: column; gap: .1rem; line-height: 1.3; min-width: 0; }
.tw-fxrow__comp > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-fxrow__compname { color: var(--tw-ink-2); font-weight: 600; }
.tw-fxrow__stage { display: none; color: var(--tw-ink-2); font-weight: 600; }
.is-comp-filtered .tw-fxrow__compname.has-stage { display: none; }
.is-comp-filtered .tw-fxrow__stage { display: block; }
.tw-fxrow__city abbr { text-decoration: none; cursor: help; }
.tw-fxrow__team { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; }
.tw-fxrow__team a { overflow: hidden; text-overflow: ellipsis; }
.tw-fxrow__team small { margin-left: .3rem; flex: none; }
.tw-fxrow__team--away { justify-content: flex-end; }
.tw-fxrow__mid { flex: none; padding: 0 .25rem; }
@media (max-width: 760px) { .tw-fxrow__comp { flex-direction: row; flex-wrap: wrap; gap: .1rem .6rem; } .tw-fxrow__team { white-space: normal; } }
.tw-res__score a { color: inherit; text-decoration: underline; text-decoration-color: var(--tw-line); text-underline-offset: 3px; }
.tw-res__score a:hover { color: var(--tw-green); text-decoration-color: currentColor; }
.tw-fxrow--bare { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .tw-fxrow--bare { grid-template-columns: 1fr; } }

/* scoreboard alignment: home right-aligned, score (or "vs") in a fixed centre column, away left-aligned */
.tw-fxrow__match { display: grid; grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr); align-items: center; gap: .75rem; }
.tw-fxrow__team { justify-content: flex-end; text-align: right; }
.tw-fxrow__team--away { justify-content: flex-start; text-align: left; }
.tw-fxrow__mid { text-align: center; padding: 0; font-size: 1.05em; }
.tw-fxrow__mid--score { color: var(--tw-ink); font-weight: 700; }
@media (max-width: 760px) { .tw-fxrow__match { grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); gap: .4rem; } }
@media (max-width: 760px) { .tw-fxrow__team { white-space: normal; } .tw-fxrow__team a { overflow: visible; } }

/* team page: manager strip */
.tw-manager { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; padding: .8rem 1.1rem; margin-bottom: 1rem; }
.tw-manager__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tw-muted); }
.tw-manager__name { font-size: 1.05rem; }
.tw-manager__note { color: var(--tw-muted); font-size: .9rem; }
.tw-badge--vacant { background: #FBE3D6; color: #8A2E0A; }

/* team page: projections (Insider) */
.tw-proj__block + .tw-proj__block { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--tw-soft); }
.tw-proj__title { font-size: .95rem; margin: 0; text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 700; }
.tw-proj__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; margin: .1rem 0 .55rem; font-size: .8rem; color: var(--tw-muted); }
.tw-proj__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.tw-proj__list li { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 3rem; align-items: center; gap: .6rem; font-size: .88rem; }
.tw-proj__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-proj__bar { height: 8px; border-radius: 4px; background: var(--tw-soft); overflow: hidden; }
.tw-proj__bar i { display: block; height: 100%; background: var(--tw-ink); border-radius: 4px; }
.tw-proj__pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tw-proj__list li.is-zero { color: var(--tw-muted); }
.tw-proj__list li.is-zero .tw-proj__pct { font-weight: 500; }

/* ---------- Competitions ---------- */
.tw-comps__intro { color: var(--tw-ink-2); max-width: 62ch; margin: 0 0 1.25rem; }
.tw-comps__h { margin: 2rem 0 .75rem; }
.tw-comps__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.tw .tw-compcard { display: flex; flex-direction: column; gap: .55rem; text-decoration: none; color: var(--tw-ink); padding: 1.1rem 1.2rem; transition: border-color .15s, box-shadow .15s; }
.tw .tw-compcard:hover { border-color: var(--tw-green); box-shadow: 0 2px 10px rgba(16, 34, 27, .08); }
.tw-compcard__kicker { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-muted); }
.tw-compcard__name { font-size: 1.3rem; line-height: 1.15; }
.tw-compcard__stats { font-size: .85rem; color: var(--tw-muted); }
.tw-compcard .tw-badge { align-self: flex-start; }
.tw-compcard__flags { min-height: 15px; }

.tw-comp .tw-crumb a { color: var(--tw-muted); }
.tw-comp__stats { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: .25rem 0 1.25rem; padding: 0; }
.tw-comp__stats div { display: flex; flex-direction: column-reverse; }
.tw-comp__stats dt { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tw-muted); }
.tw-comp__stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tw-comp__nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.tw .tw-comp__nav .tw-chip { text-decoration: none; }
.tw .tw-comp__nav .tw-chip:hover { background: var(--tw-green); color: #fff; }


.tw-comp__stages { display: flex; flex-direction: column; gap: 1.25rem; }
.tw-stage { scroll-margin-top: 1rem; }
.tw-stage__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 1.75rem; }
.tw-stage__body:has(.tw-stage__side) { grid-template-columns: minmax(170px, .55fr) minmax(0, 3fr); }
.tw-stage__h { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-muted); margin: .5rem 0 .1rem; }
.tw-stage__teams { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 0; font-size: .95rem; }
.tw-stage__teams a { color: var(--tw-ink); font-weight: 600; text-decoration: none; }
.tw-stage__teams a:hover { text-decoration: underline; }
.tw-gtable th, .tw-gtable td { padding: .4rem .5rem; }
.tw-stage__main .tw-fxrow { grid-template-columns: 86px minmax(0, 2fr) minmax(0, 1fr); gap: .35rem 1rem; }
.tw-stage__main .tw-fxrow__match { font-size: .95rem; }
@media (max-width: 900px) { .tw-stage__body:has(.tw-stage__side) { grid-template-columns: minmax(0, 1fr); } .tw-stage__teams { flex-direction: row; flex-wrap: wrap; gap: .4rem 1rem; } }
@media (max-width: 760px) { .tw-stage__main .tw-fxrow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tw .tw-compcard { transition: none; } }
.tw-compcard__flags { flex-wrap: nowrap; }
.tw-fxrow__comp a, .tw-fx__meta a { color: inherit; text-decoration: none; }
.tw-fxrow__comp a:hover, .tw-fx__meta a:hover { text-decoration: underline; color: var(--tw-green); }
.tw-fxrow__leg { color: var(--tw-ink-2); }
.tw-stage__teams .tw-teamcell { white-space: normal; align-items: flex-start; }
.tw-stage__main .tw-fxrow { grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1fr); }
.tw-roster .tw-table--pool :is(td, th):nth-child(1) { width: 29%; }
.tw-roster .tw-table--pool :is(td, th):nth-child(2) { width: 33%; }
.tw-roster .tw-table--pool :is(td, th):nth-child(3) { width: 23%; }
.tw-roster .tw-table--pool td { padding-left: .9rem; padding-right: .6rem; }
.tw-roster .tw-table--pool td:first-child { padding-left: 1.25rem; }
/* Narrow screens: the table scrolls sideways rather than cutting names short */
.tw-roster .tw-table { min-width: 600px; }
.tw-roster .tw-table--pool { min-width: 900px; }
/* Rosters: every cell on one line; anything still too long ends in "…" (full text on hover) */
.tw-roster .tw-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-roster .tw-table { font-size: .93rem; }

/* ---------- Join page ---------- */
.tw-join__intro { color: var(--tw-ink-2); max-width: 62ch; }
.tw-join__tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin: 1.25rem 0; }
.tw-join__tier { padding: 1.25rem 1.4rem; }
.tw-join__tier--top { border: 2px solid var(--tw-ink); }
.tw-join__price { font-size: 2rem; font-weight: 700; margin: 0; }
.tw-join__price span { font-size: .9rem; font-weight: 500; color: var(--tw-muted); margin-left: .2rem; }
.tw-join__tier ul { margin: .5rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.tw-join__soon { padding: 1rem 1.25rem; } .tw-join__soon p { margin: 0 0 .75rem; }

/* Teams directory: a rule under each confederation heading (as on Fixtures), names on one line */
.tw-dir__group > .tw-h { padding-bottom: .35rem; border-bottom: 2px solid var(--tw-ink); margin-bottom: .75rem; }
.tw-dir__list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-roster .tw-table td:last-child { overflow: visible; }
.tw-roster .tw-table--pool td:last-child { white-space: nowrap; }
.tw-roster .tw-table--pool { font-size: .9rem; }

/* map zoom controls */
.tw-map-wrap { position: relative; }
.tw-map { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.tw-map:active { cursor: grabbing; }
.tw-map [data-c], .tw-map .tw-map-land { vector-effect: non-scaling-stroke; }
.tw-map__zoom { position: absolute; top: .5rem; right: .5rem; z-index: 4; display: flex; flex-direction: column; gap: 4px; }
.tw-map__zoom button { min-width: 32px; height: 32px; padding: 0 .55rem; border: 1px solid var(--tw-line); border-radius: 6px; background: #fff; color: var(--tw-ink); font: 600 1rem/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 1px 3px rgba(16,34,27,.12); }
.tw-map__zoom button[data-z="eu"], .tw-map__zoom button[data-z="home"] { font-size: .72rem; letter-spacing: .02em; }
.tw-map__zoom button:hover { background: var(--tw-soft); }
.tw-map__zoom button:focus-visible { outline: 2px solid var(--tw-green); outline-offset: 1px; }
@media (max-width: 640px) {
  .tw-map__zoom { flex-direction: row; top: auto; bottom: .4rem; right: .4rem; gap: 3px; }
  .tw-map__zoom button { min-width: 28px; height: 26px; padding: 0 .4rem; font-size: .9rem; }
  .tw-map__zoom button[data-z="eu"], .tw-map__zoom button[data-z="home"] { font-size: .66rem; }
}
