/*
 * 21 Degrees AI World Cup Wall Chart — single stylesheet.
 * Hand-written reproduction of the signed-off Stitch design system
 * (project 4658662882166342024). No Tailwind, no Material Symbols, no third-party
 * requests. Tokens + components per .stitch/DESIGN.md. Mobile-first.
 */

/* Self-hosted Inter (see assets/fonts/fonts.css — imported by the plugin enqueue,
   but @import here keeps the harness standalone). */
@import url("../fonts/fonts.css");

:root {
  --wcp-bg: #141414;
  --wcp-surface: #1e1e1e;
  --wcp-overlay: #2a2a2a;
  --wcp-red: #f84550;
  --wcp-coral: #fc7956;
  --wcp-white: #ffffff;
  --wcp-grey: #c6c6c6;
  --wcp-green: #3bcc23;
  --wcp-out: #666666;
  --wcp-border: rgba(255, 255, 255, 0.08);
  --wcp-border-subtle: rgba(255, 255, 255, 0.04);
  --wcp-line: rgba(255, 255, 255, 0.18);
  --wcp-font: Inter, "Helvetica Neue", Arial, sans-serif;
  --wcp-r: 0.5rem;
  --wcp-r-lg: 1rem;
  --wcp-r-xl: 1.5rem;
  --wcp-maxw: 1120px;
  /* Spacing scale — every margin/padding in the predictor maps to one of these. */
  --wcp-s1: 0.5rem;
  --wcp-s2: 0.75rem;
  --wcp-s3: 1rem;
  --wcp-s4: 1.5rem;
  --wcp-s5: 2rem;
  --wcp-s6: 3rem;
}

/* Spacing utilities (the consistent scale the views use instead of ad-hoc inline styles). */
.wcp-mt-1 { margin-top: var(--wcp-s1); }
.wcp-mt-2 { margin-top: var(--wcp-s2); }
.wcp-mt-3 { margin-top: var(--wcp-s3); }
.wcp-mt-4 { margin-top: var(--wcp-s4); }
.wcp-mt-5 { margin-top: var(--wcp-s5); }
.wcp-mt-6 { margin-top: var(--wcp-s6); }

/* Scope everything under .wcp-root so the plugin never leaks styles into the
   surrounding WordPress/Elementor theme. */
.wcp-root *,
.wcp-root *::before,
.wcp-root *::after { box-sizing: border-box; }

.wcp-root {
  font-family: var(--wcp-font);
  color: var(--wcp-white);
  background-color: var(--wcp-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* clip, never hidden: overflow-x:hidden makes overflow-y compute to auto,
     which turns .wcp-root into a second vertical scroll container (the phantom
     right-hand scrollbar). clip clips the glow without creating a scroll context. */
  overflow-x: clip;
}

/* Ambient cinematic glow — never a flat black field. */
.wcp-root::before,
.wcp-root::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.wcp-root::before {
  top: -10%; left: -10%; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(248, 69, 80, 0.06) 0%, rgba(20, 20, 20, 0) 70%);
}
.wcp-root::after {
  bottom: -10%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(252, 121, 86, 0.05) 0%, rgba(20, 20, 20, 0) 70%);
}
.wcp-root > * { position: relative; z-index: 1; }

.wcp-container { width: 100%; max-width: var(--wcp-maxw); margin: 0 auto; padding: 0 1.25rem; }
/* The wall chart breathes wider than the copy columns. */
.wcp-container--wall { max-width: 1400px; }
/* Narrow content widths per view (replaces per-view inline max-widths). */
.wcp-container--xs { max-width: 44rem; }
.wcp-container--sm { max-width: 46rem; }
.wcp-container--md { max-width: 48rem; }
.wcp-container--lg { max-width: 56rem; }

/* Typography */
.wcp-h { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.wcp-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--wcp-grey);
}
.wcp-text-glow { text-shadow: 0 0 20px rgba(248, 69, 80, 0.3); }
.wcp-muted { color: var(--wcp-grey); }
.wcp-accent { color: var(--wcp-red); }
a { color: inherit; }

/* Links visually-hidden helper for a11y */
.wcp-vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Full-bleed + dark page background ----
   wcp-routed  = plugin-rendered router pages (group/team/track-record/...).
   wcp-embedded = normal pages embedding the widget/shortcode (the Elementor hub
   and England pages). Both get the dark body and the centre-out 100vw breakout,
   so the predictor renders edge to edge regardless of how the Elementor page
   template or container content-width happens to be configured. The breakout
   maths (50% of a centred parent minus 50vw) lands on the viewport edge from
   any nesting depth; overflow-x:clip on body guards the 100vw scrollbar width. */
body.wcp-routed, body.wcp-embedded { overflow-x: clip; background-color: var(--wcp-bg); }
body.wcp-routed .wcp-root, body.wcp-embedded .wcp-root { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---- Slim internal sub-nav (secondary to the 21D site header) ---- */
.wcp-subnav { border-bottom: 1px solid var(--wcp-border); }
.wcp-subnav__bar {
  display: flex; align-items: center; gap: 1rem; max-width: var(--wcp-maxw); margin: 0 auto;
  padding: 0.75rem 1.25rem;
}
.wcp-subnav__inner {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 0.5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.wcp-subnav__inner::-webkit-scrollbar { display: none; }
.wcp-subnav__home { flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; line-height: 0; }
.wcp-root .wcp-subnav__logo,
.wcp-subnav__logo { width: 34px !important; height: 34px !important; max-width: 34px !important; border: 0 !important; border-radius: 0 !important; display: block; }
.wcp-subnav__inner a {
  flex-shrink: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--wcp-grey); text-decoration: none; padding: 0.4rem 0.9rem;
  border-radius: 9999px; border: 1px solid var(--wcp-border); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.wcp-subnav__inner a:hover { color: var(--wcp-white); }
.wcp-subnav__inner a.is-active { color: #fff; background: var(--wcp-red); border-color: var(--wcp-red); }

/* ---- Slim predictor footer strip (above the 21D site footer) ----
   Centred and deliberately spaced — it closes every page, so it gets the same
   care as the rest. Both lines are compliance furniture and must stay. */
.wcp-disclaimer { border-top: 1px solid var(--wcp-border); margin-top: 3rem; padding: 2rem 0; text-align: center; }
.wcp-disclaimer .wcp-container { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.wcp-disclaimer__text { font-size: 0.85rem; color: var(--wcp-grey); margin: 0; max-width: 40rem; }
.wcp-disclaimer__credit { font-size: 0.75rem; color: var(--wcp-out); margin: 0; max-width: 40rem; }
.wcp-disclaimer__credit a { color: var(--wcp-out); text-decoration: underline; }
.wcp-disclaimer__credit a:hover { color: var(--wcp-coral); }

/* ---- Groups overview cards ---- */
.wcp-gcards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .wcp-gcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .wcp-gcards { grid-template-columns: 1fr 1fr 1fr; } }
.wcp-gcard {
  display: block; background: var(--wcp-surface); border: 1px solid var(--wcp-border);
  border-radius: var(--wcp-r-lg); padding: 1.1rem 1.25rem; text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.1s;
}
.wcp-gcard:hover { border-color: rgba(248, 69, 80, 0.4); transform: translateY(-2px); }
.wcp-gcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.wcp-gcard__letter { font-weight: 600; font-size: 1.1rem; }
.wcp-gcard__head svg { width: 18px; height: 18px; color: var(--wcp-red); }
.wcp-gcard__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0; }
.wcp-gcard__row + .wcp-gcard__row { border-top: 1px solid var(--wcp-border-subtle); }
.wcp-gcard__team { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.wcp-gcard__name { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcp-gcard__row .wcp-group__pos { font-size: 0.9rem; width: 1.1rem; }
.wcp-gcard .wcp-pill { font-size: 10px; padding: 3px 7px; }

/* ---- Group switcher dropdown (sits in the group head's tools cluster) ---- */
.wcp-group__tools { display: flex; align-items: center; gap: var(--wcp-s2); flex-wrap: wrap; }
.wcp-group-switcher {
  background: var(--wcp-surface); color: #fff; border: 1px solid var(--wcp-border);
  border-radius: 9999px; padding: 0.45rem 2.2rem 0.45rem 1rem; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c6c6c6'%3E%3Cpath d='M12 15.4 5.6 9 7 7.6l5 5 5-5L18.4 9 12 15.4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 14px;
}
.wcp-group-switcher:hover { border-color: rgba(255, 255, 255, 0.2); }

/* ---- Pills ---- */
.wcp-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 9999px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 10px; border: 1px solid transparent; white-space: nowrap;
}
.wcp-pill svg { width: 13px; height: 13px; }
.wcp-pill--qualifies { background: var(--wcp-red); color: #fff; }
.wcp-pill--best-third { border-color: var(--wcp-coral); color: var(--wcp-coral); }
.wcp-pill--out { border-color: var(--wcp-border); color: var(--wcp-out); }
.wcp-pill--dark-horse { border-color: rgba(252, 121, 86, 0.4); color: var(--wcp-coral); }
.wcp-pill--champion { background: var(--wcp-red); color: #fff; }
.wcp-pill--surface { background: var(--wcp-surface); border-color: var(--wcp-border); color: var(--wcp-grey); }

/* ---- Cards & buttons ---- */
.wcp-card { background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: var(--wcp-r-lg); padding: 1.5rem; }
.wcp-card--flush { padding: 0; }
.wcp-card__title { font-size: 1.25rem; margin: 0 0 var(--wcp-s4); }
.wcp-h-sub { font-size: 1.3rem; margin: var(--wcp-s4) 0 var(--wcp-s3); }
/* Right-hand action cluster in list rows (badge/pill + reveal toggle). */
.wcp-row-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.wcp-tie__toggle--bare { margin: 0; width: auto; }
.wcp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--wcp-red); color: #fff; font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.75rem; border-radius: 0.75rem; border: 0; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.1s;
}
.wcp-btn:hover { background: var(--wcp-coral); }
.wcp-btn:active { transform: scale(0.97); }
.wcp-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); }
.wcp-btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }
.wcp-btn svg { width: 18px; height: 18px; }

/* ---- Flags ---- */
.wcp-flag { width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid var(--wcp-border); object-fit: cover; flex-shrink: 0; background: var(--wcp-surface); }
.wcp-flag--sm { width: 1.5rem; height: 1.5rem; }
.wcp-flag--lg { width: 2.5rem; height: 2.5rem; }
.wcp-flag--out { opacity: 0.5; filter: grayscale(0.5); }

/* ---- Live stamp ---- */
.wcp-live { display: inline-flex; align-items: center; gap: 0.5rem; }
.wcp-live__dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--wcp-green); animation: wcp-pulse 2s infinite ease-in-out; }
@keyframes wcp-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .wcp-live__dot { animation: none; } }

/* ---- Confidence bar ---- */
.wcp-conf { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 9999px; overflow: hidden; }
.wcp-conf__fill { height: 100%; background: linear-gradient(90deg, var(--wcp-red), var(--wcp-coral)); border-radius: 9999px; }

/* ---- Tie / match card ---- */
.wcp-tie { background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: var(--wcp-r-lg); padding: 1rem; position: relative; }
.wcp-tie__round { margin-bottom: 0.6rem; }
.wcp-tie--england { border-left: 2px solid var(--wcp-red); background: linear-gradient(90deg, rgba(248, 69, 80, 0.05) 0%, var(--wcp-surface) 60%); }
.wcp-tie__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.wcp-tie__row + .wcp-tie__row { margin-top: 0.6rem; }
.wcp-tie__team { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.wcp-tie__name { font-weight: 700; color: var(--wcp-white); }
.wcp-tie__pct { font-weight: 700; font-size: 0.95rem; color: var(--wcp-red); }
.wcp-tie__row--loser { opacity: 0.5; }
.wcp-tie__row--loser .wcp-tie__name { font-weight: 400; color: var(--wcp-grey); }
.wcp-tie__row--loser .wcp-tie__pct { color: var(--wcp-grey); }
.wcp-tie__conf { margin-top: 0.85rem; }
/* Soft rounded pill, consistent with the card. */
.wcp-tie__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem;
  background: var(--wcp-overlay); border: 1px solid var(--wcp-border); color: var(--wcp-grey);
  font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; padding: 0.35rem 0.85rem; border-radius: 9999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.wcp-tie__toggle:hover { color: var(--wcp-white); border-color: rgba(255, 255, 255, 0.2); }
.wcp-tie__toggle svg { width: 15px; height: 15px; transition: transform 0.2s; }
.wcp-tie__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.wcp-reason { margin-top: 0.75rem; padding: 0.85rem 1rem; background: var(--wcp-overlay); border-radius: var(--wcp-r); color: var(--wcp-grey); font-size: 0.9rem; }
.wcp-reason[hidden] { display: none; }
.wcp-tie__result { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wcp-grey); }

/* ---- Hub hero ---- */
.wcp-hero { padding: var(--wcp-s6) 0 var(--wcp-s5); }
.wcp-hero__stamp { display: flex; align-items: center; gap: var(--wcp-s3); margin-bottom: var(--wcp-s4); }
.wcp-hero__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.wcp-hero__h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 1rem; }
.wcp-hero__sub { font-size: 1.15rem; color: var(--wcp-grey); max-width: 34rem; }
.wcp-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0; }
.wcp-hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wcp-chip { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: 9999px; padding: 0.45rem 0.8rem; }
.wcp-chip--dark-horse { border-color: rgba(252, 121, 86, 0.3); }
.wcp-chip__val { font-weight: 600; font-size: 0.9rem; }
@media (min-width: 1024px) {
  .wcp-hero__grid { grid-template-columns: 7fr 5fr; }
}

/* Champion card — the screenshot. One centred vertical stack: flag, pill, name,
   reason, win-probability. Cinematic glow, generous and even spacing. */
.wcp-champ { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--wcp-surface); border: 1px solid rgba(248, 69, 80, 0.25); border-radius: var(--wcp-r-xl); padding: var(--wcp-s6) var(--wcp-s5); box-shadow: 0 0 60px rgba(248, 69, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.wcp-champ::before { content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 130%; aspect-ratio: 1; border-radius: 9999px; background: radial-gradient(circle, rgba(248, 69, 80, 0.16) 0%, rgba(20, 20, 20, 0) 65%); pointer-events: none; }
.wcp-champ > * { position: relative; }
.wcp-champ__eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(248, 69, 80, 0.1); color: var(--wcp-red); border: 1px solid rgba(248, 69, 80, 0.2); padding: 0.35rem 0.9rem; border-radius: 9999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; box-shadow: 0 0 15px rgba(248, 69, 80, 0.3); }
.wcp-champ__eyebrow svg { width: 15px; height: 15px; }
.wcp-champ__flag { position: static; float: none; width: 7rem; height: 7rem; margin: 0 0 var(--wcp-s4); border: 3px solid rgba(255, 255, 255, 0.15); box-shadow: 0 0 45px rgba(248, 69, 80, 0.35); }
.wcp-champ__name { font-size: clamp(3rem, 4vw, 4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: var(--wcp-s3) 0 0; }
.wcp-champ__reason { color: var(--wcp-grey); font-size: 0.95rem; line-height: 1.6; max-width: 20rem; margin: var(--wcp-s3) 0 0; text-wrap: balance; }
.wcp-champ__prob { width: 100%; margin-top: var(--wcp-s5); }
.wcp-champ__meta { display: flex; justify-content: space-between; gap: var(--wcp-s3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wcp-grey); margin-top: var(--wcp-s3); }
.wcp-champ__meta strong { color: var(--wcp-white); font-size: 1rem; }

/* Section heading block */
.wcp-section { padding: 2.5rem 0; }
.wcp-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.wcp-page-h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; margin: 0.5rem 0; }

/* ---- Knockout wall chart (desktop) ----
   Mirrored printed-chart layout. Geometry is structural, not measured: every
   column's slots area has the same height; round r gives each tie a slot of
   height H/k, so a fed tie's slot exactly spans its two feeders and its centre
   is their midpoint. Connectors are pseudo-elements drawn in the 16px column
   gap: feeder cards emit a stub (card ::after), fed slots draw the joining
   vertical (slot ::after, 25%->75% = the feeder centres) plus their in-stub
   (slot ::before). The --mirror modifier flips all of it for the right half. */
.wcp-wall { overflow-x: auto; padding: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.wcp-wall__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(106px, 1fr)) minmax(190px, 1.4fr) repeat(4, minmax(106px, 1fr));
  column-gap: 16px; min-width: 1060px;
}
.wcp-wall__col { display: flex; flex-direction: column; min-width: 0; }
.wcp-wall__label { text-align: center; margin-bottom: 1.1rem; white-space: nowrap; }
.wcp-wall__slots { flex: 1; display: flex; flex-direction: column; min-height: 720px; }
.wcp-wall__slot { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; position: relative; }

/* Safety: when half-derivation fails, the chart renders with NO connectors —
   a false join must never be drawn. */
.wcp-wall--noconnect .wcp-wall__slot::before,
.wcp-wall--noconnect .wcp-wall__slot::after,
.wcp-wall--noconnect .wcp-mtie::after,
.wcp-wall--noconnect .wcp-wall__centre-body::before,
.wcp-wall--noconnect .wcp-wall__centre-body::after { content: none; }

/* Connector lines — thin, border-palette, never louder than the cards. */
.wcp-wall__col--out .wcp-mtie::after { content: ""; position: absolute; top: 50%; right: -9px; width: 9px; height: 1px; background: var(--wcp-line); }
.wcp-wall__col--feed .wcp-wall__slot::before { content: ""; position: absolute; top: 50%; left: -8px; width: 8px; height: 1px; background: var(--wcp-line); }
.wcp-wall__col--feed .wcp-wall__slot::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: -8px; width: 1px; background: var(--wcp-line); }
.wcp-wall__col--mirror.wcp-wall__col--out .wcp-mtie::after { right: auto; left: -9px; }
.wcp-wall__col--mirror.wcp-wall__col--feed .wcp-wall__slot::before { left: auto; right: -8px; }
.wcp-wall__col--mirror.wcp-wall__col--feed .wcp-wall__slot::after { left: auto; right: -8px; }

/* Centre column: champion panel above, the Final pinned to the exact vertical
   centre (1fr auto 1fr against a definite height) so the semi-final stubs meet
   it dead-on. The connector stubs anchor to the BODY's 50% line — the same line
   the SF slot stubs sit on — so they stay joined even if the card ever drifts. */
.wcp-wall__centre-body { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 1rem; min-height: 720px; position: relative; }
.wcp-wall__centre-top { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.wcp-wall__centre-mid { position: relative; }
.wcp-wall__centre-body::before,
.wcp-wall__centre-body::after { content: ""; position: absolute; top: 50%; width: 9px; height: 1px; background: var(--wcp-line); }
.wcp-wall__centre-body::before { left: -9px; }
.wcp-wall__centre-body::after { right: -9px; }

/* Compact tie card */
.wcp-mtie { position: relative; background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: 0.5rem; padding: 0.3rem 0.45rem 0.95rem; }
.wcp-mtie--england { border-left: 2px solid var(--wcp-red); background: linear-gradient(90deg, rgba(248, 69, 80, 0.08), var(--wcp-surface) 70%); }
.wcp-mtie__row { display: flex; align-items: center; gap: 0.35rem; min-width: 0; padding: 0.14rem 0; }
.wcp-flag--xs { width: 1rem; height: 1rem; }
.wcp-mtie__name { flex: 1 1 auto; min-width: 0; font-size: 11px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcp-mtie__row--loser .wcp-mtie__name { font-weight: 400; color: var(--wcp-grey); opacity: 0.65; }
.wcp-mtie__pct { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--wcp-red); }
.wcp-mtie__pct svg { width: 11px; height: 11px; color: var(--wcp-green); display: block; }
/* Reason popover: overlays, never reflows the chart. */
.wcp-mtie__pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 240px; font-size: 0.8rem; border: 1px solid var(--wcp-border); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }
.wcp-wall__col--mirror .wcp-mtie__pop, .wcp-wall__centre .wcp-mtie__pop { left: auto; right: 0; }
.wcp-mtie__pop[hidden] { display: none; }

.wcp-final-card { background: var(--wcp-overlay); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--wcp-r-xl); padding: 1.5rem; box-shadow: 0 10px 40px rgba(248, 69, 80, 0.1); }
.wcp-final-card__head { text-align: center; margin-bottom: var(--wcp-s3); }
.wcp-final-card__date { font-size: 0.85rem; }
/* Champion panel: one centred vertical flow — pill, flag, name, button — with
   scale gaps owning the rhythm (child margins zeroed below). */
.wcp-champ-panel { display: flex; flex-direction: column; align-items: center; gap: var(--wcp-s2); background: linear-gradient(135deg, rgba(248, 69, 80, 0.2), var(--wcp-bg)); border: 1px solid rgba(248, 69, 80, 0.4); border-radius: var(--wcp-r-xl); padding: 2rem; text-align: center; box-shadow: 0 0 30px rgba(248, 69, 80, 0.15); }
.wcp-champ-panel .wcp-champ__eyebrow { white-space: nowrap; }
.wcp-champ-panel__flag { width: 3.5rem; height: 3.5rem; margin: 0; }
.wcp-champ-panel__name { font-size: 1.75rem; margin: 0; }
.wcp-champ-panel .wcp-btn { margin-top: var(--wcp-s1); }
/* Slimmed for the wall chart's centre column. */
.wcp-wall__centre .wcp-champ-panel { padding: 1rem 0.7rem; }
.wcp-wall__centre .wcp-champ-panel__flag { width: 2.5rem; height: 2.5rem; }
.wcp-wall__centre .wcp-champ-panel__name { font-size: 1.3rem; }
.wcp-wall__centre .wcp-champ-panel .wcp-champ__eyebrow { font-size: 10px; padding: 0.3rem 0.7rem; }
.wcp-wall__centre .wcp-final-card { padding: 1rem 0.9rem; }
.wcp-wall__centre .wcp-final-card .wcp-flag--lg { width: 1.6rem; height: 1.6rem; }
.wcp-wall__centre .wcp-final-card .wcp-tie__name { font-size: 0.95rem !important; }
.wcp-wall__centre .wcp-final-card .wcp-tie__pct { font-size: 1rem !important; }

/* Custom scrollbar */
.wcp-wall::-webkit-scrollbar, .wcp-rounds__list::-webkit-scrollbar { height: 6px; }
.wcp-wall::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }

/* ---- Bracket (mobile round stepper) ---- */
.wcp-rounds { display: none; }
.wcp-rounds__pills { position: sticky; top: 0; z-index: 20; display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 0; background: var(--wcp-bg); }
.wcp-rounds__pill { flex-shrink: 0; background: var(--wcp-surface); border: 1px solid var(--wcp-border); color: var(--wcp-grey); border-radius: 9999px; padding: 0.45rem 1rem; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.wcp-rounds__pill[aria-selected="true"] { background: var(--wcp-red); color: #fff; border-color: var(--wcp-red); }
.wcp-rounds__list { display: flex; flex-direction: column; gap: 1rem; }
.wcp-rounds__panel[hidden] { display: none; }

/* On phones, show the stepper and hide the wall chart. */
@media (max-width: 767px) {
  .wcp-wall { display: none; }
  .wcp-rounds { display: block; }
  /* Sub-nav: on phones the five pills overflow the row, and the scroll strip
     has no visible affordance, so the last items (Track record, Methodology)
     sit off-screen and are the ONLY route to those pages. Wrap to as many
     rows as needed so every destination is visible and tappable — no swipe,
     nothing clipped. Pills get a little more height for a comfortable target. */
  .wcp-subnav__bar { align-items: flex-start; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .wcp-subnav__inner { flex-wrap: wrap; overflow-x: visible; gap: 0.45rem; }
  .wcp-subnav__inner a { padding: 0.5rem 0.85rem; }
  .wcp-subnav__home { align-self: center; }
}

/* ---- Group table ---- */
.wcp-group__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.wcp-group__flags { display: flex; }
.wcp-group__flags .wcp-flag { margin-left: -0.5rem; }
.wcp-group__row { display: flex; flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid var(--wcp-border-subtle); }
.wcp-group__row:last-child { border-bottom: 0; }
.wcp-group__main { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
/* The name cell flexes and truncates; the pill/toggle cluster never shrinks —
   so a long name (Saudi Arabia) can never collide with its qualify pill. */
.wcp-group__team { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; min-width: 0; }
.wcp-group__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcp-group__pos { font-weight: 700; font-size: 1.25rem; width: 1.5rem; flex-shrink: 0; text-align: center; }
.wcp-group__row--top .wcp-group__pos { color: var(--wcp-red); }
.wcp-group__row--out .wcp-group__pos { color: var(--wcp-out); }
.wcp-group__name { font-weight: 600; font-size: 1.05rem; }
.wcp-group__row--out .wcp-group__name { color: var(--wcp-grey); }
.wcp-group__reason { margin-top: 0.85rem; margin-left: 2.5rem; padding-left: 1rem; border-left: 2px solid var(--wcp-red); color: var(--wcp-grey); font-size: 0.9rem; }
.wcp-group__reason[hidden] { display: none; }
.wcp-group__legend { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }

/* ---- Group fixtures + Today/Yesterday matchday blocks ----
   Predictions are win/draw/win only — there is deliberately no scoreline
   anywhere except the real score of a played game. */
.wcp-fixtures { margin-top: var(--wcp-s5); }
.wcp-fixtures__day { margin-top: var(--wcp-s4); }
.wcp-fixtures__date { display: block; margin-bottom: var(--wcp-s1); }
.wcp-fixture { background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: var(--wcp-r); padding: 0.7rem 0.9rem; }
.wcp-fixture + .wcp-fixture { margin-top: var(--wcp-s1); }
.wcp-fixture__main { display: flex; align-items: center; justify-content: space-between; gap: var(--wcp-s2); flex-wrap: wrap; }
.wcp-fixture__teams { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; flex-wrap: wrap; }
.wcp-fixture__side { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; }
.wcp-fixture__side--lost { color: var(--wcp-grey); font-weight: 400; opacity: 0.7; }
.wcp-fixture__side--won { color: var(--wcp-white); }
.wcp-fixture__vs { font-size: 11px; font-weight: 700; color: var(--wcp-out); text-transform: uppercase; }
.wcp-fixture__score { font-size: 1rem; font-weight: 700; color: var(--wcp-white); background: var(--wcp-overlay); border-radius: 0.4rem; padding: 0.1rem 0.5rem; }
.wcp-fixture__drawnote { color: var(--wcp-coral); }
/* The 21D AI call chip */
.wcp-call { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--wcp-grey); background: var(--wcp-overlay); border: 1px solid var(--wcp-border); border-radius: 9999px; padding: 0.3rem 0.7rem; white-space: nowrap; }
.wcp-call strong { color: var(--wcp-white); }
.wcp-call__label { color: var(--wcp-out); }
.wcp-call__pct { color: var(--wcp-red); }
.wcp-call--hit { border-color: rgba(59, 204, 35, 0.35); color: var(--wcp-grey); }
.wcp-call--hit svg { width: 12px; height: 12px; color: var(--wcp-green); }
.wcp-call--miss { border-color: var(--wcp-border); color: var(--wcp-out); text-decoration: line-through; text-decoration-color: rgba(248, 69, 80, 0.5); }
.wcp-call--none { color: var(--wcp-out); border-style: dashed; }
/* Launch-build disclosure tag on the two pre-launch calls */
.wcp-call__tag { font-size: 8.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--wcp-coral); border: 1px solid rgba(252, 121, 86, 0.35); border-radius: 9999px; padding: 0.1rem 0.4rem; margin-left: 0.15rem; text-decoration: none; display: inline-block; }
.wcp-call--miss .wcp-call__tag { text-decoration: none; }
/* Hub matchday blocks */
.wcp-day__grid { display: grid; grid-template-columns: 1fr; gap: var(--wcp-s3); }
@media (min-width: 640px) { .wcp-day__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .wcp-day__grid { grid-template-columns: 1fr 1fr 1fr; } }
.wcp-day__card { background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: var(--wcp-r-lg); padding: 1.1rem 1.25rem; }
.wcp-day__card--played { border-color: rgba(255, 255, 255, 0.14); }
.wcp-day__context { margin-bottom: var(--wcp-s1); color: var(--wcp-out); }
/* Day cards are structurally identical regardless of name length: a rigid
   1fr/auto/1fr grid (side, score-or-v, side), one line each, short names. */
.wcp-day__card .wcp-fixture__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; width: 100%; min-height: 1.75rem; }
.wcp-day__card .wcp-fixture__side { min-width: 0; }
.wcp-day__card .wcp-fixture__side:first-child { justify-content: flex-end; text-align: right; }
.wcp-day__card .wcp-fixture__side a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wcp-day__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--wcp-s2); margin-top: var(--wcp-s2); flex-wrap: wrap; }
/* Projected stat line under a team name in the group table */
.wcp-group__id { display: flex; flex-direction: column; min-width: 0; }
.wcp-group__statline { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wcp-out); margin-top: 2px; white-space: nowrap; }
.wcp-group__statline strong { color: var(--wcp-grey); }

/* ---- England path timeline ---- */
.wcp-path { display: flex; flex-direction: column; gap: 0; }
.wcp-path__step { display: flex; flex-direction: column; padding: 1.1rem 0; border-bottom: 1px solid var(--wcp-border-subtle); }
.wcp-path__main { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.wcp-path__left { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.wcp-path__round { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wcp-grey); }
.wcp-path__opp { font-weight: 600; }
.wcp-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border-radius: 9999px; }
.wcp-badge--win { background: var(--wcp-red); color: #fff; }
.wcp-badge--loss { background: var(--wcp-overlay); color: var(--wcp-grey); }
.wcp-verdict { margin-top: 1.75rem; background: var(--wcp-surface); border: 1px solid rgba(252, 121, 86, 0.25); border-radius: var(--wcp-r-lg); padding: 1.5rem; box-shadow: 0 0 30px rgba(252, 121, 86, 0.08); }

/* ---- Track record ---- */
.wcp-track__head { text-align: center; margin-bottom: 3rem; }
.wcp-ring { position: relative; width: 12rem; height: 12rem; margin: 2rem auto 0; display: flex; align-items: center; justify-content: center; }
.wcp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.wcp-ring__num { font-size: 2.25rem; font-weight: 700; color: var(--wcp-red); letter-spacing: -0.02em; }
.wcp-ring__pct { font-size: 1.05rem; font-weight: 700; color: var(--wcp-coral); }
.wcp-ring__label { font-size: 0.8rem; font-weight: 600; color: var(--wcp-grey); }
/* Results ledger (track record) */
.wcp-ledger { margin-top: var(--wcp-s5); }
/* England share fallback panel */
.wcp-share-fallback { display: flex; gap: var(--wcp-s2); flex-wrap: wrap; margin-top: var(--wcp-s2); }
.wcp-share-fallback[hidden] { display: none; }
.wcp-track__cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .wcp-track__cols { grid-template-columns: 1fr 1fr; } }
.wcp-mark { display: flex; align-items: center; gap: 1rem; background: var(--wcp-overlay); border: 1px solid var(--wcp-border-subtle); border-radius: var(--wcp-r); padding: 1rem; }
.wcp-mark + .wcp-mark { margin-top: 1rem; }
.wcp-mark__text { flex-grow: 1; font-size: 0.9rem; }
.wcp-mark--miss .wcp-mark__text { color: var(--wcp-grey); }
.wcp-mark__icon { width: 1.5rem; height: 1.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wcp-mark__icon svg { width: 15px; height: 15px; }
.wcp-mark--hit .wcp-mark__icon { background: rgba(59, 204, 35, 0.1); color: var(--wcp-green); }
.wcp-mark--miss .wcp-mark__icon { background: rgba(255, 255, 255, 0.05); color: var(--wcp-grey); }
.wcp-empty { border: 1px dashed var(--wcp-border); border-radius: var(--wcp-r); padding: 3rem 1rem; text-align: center; color: var(--wcp-grey); }
.wcp-track__empty-line { font-size: 1.25rem; }
.wcp-track__foot { text-align: center; margin-top: var(--wcp-s5); }

/* ---- Headline change log ("What's changed, and why") ---- */
.wcp-change-log { margin-top: var(--wcp-s5); }
.wcp-change { background: var(--wcp-overlay); border: 1px solid var(--wcp-border-subtle); border-radius: var(--wcp-r); padding: 1rem 1.25rem; }
.wcp-change + .wcp-change { margin-top: 0.75rem; }
.wcp-change__head { font-size: 0.95rem; line-height: 1.4; }
.wcp-change__head strong { color: var(--wcp-red); font-weight: 700; }
.wcp-change__meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wcp-grey); margin-top: 0.2rem; }
.wcp-change__why { font-size: 0.9rem; color: var(--wcp-grey); margin-top: 0.5rem; }
.wcp-change__why--none { font-style: italic; opacity: 0.8; }

/* ---- Team verdict page ---- */
.wcp-team__head { display: flex; align-items: center; gap: var(--wcp-s3); margin: var(--wcp-s3) 0; }
.wcp-team__injuries { font-size: 0.9rem; margin: 0 0 var(--wcp-s4); }
.wcp-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .wcp-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.wcp-stat { background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: var(--wcp-r-lg); padding: 1.25rem; }
.wcp-stat__num { font-size: 1.75rem; font-weight: 700; }
.wcp-stat__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wcp-grey); margin-top: 0.25rem; }

/* ---- You vs 21D AI picker ---- */
.wcp-picker { background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: var(--wcp-r-xl); padding: 2rem; text-align: center; }
.wcp-picker__title { font-size: 1.75rem; margin: var(--wcp-s2) 0; }
.wcp-picker__select { width: 100%; max-width: 22rem; margin: 1rem auto; padding: 0.85rem 1rem; background: var(--wcp-overlay); border: 1px solid var(--wcp-border); border-radius: 0.75rem; color: #fff; font: inherit; font-size: 1rem; }
.wcp-picker__reveal[hidden] { display: none; }
.wcp-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.wcp-versus__side { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.wcp-versus__side .wcp-flag { width: 3rem; height: 3rem; }
.wcp-versus__name { font-size: 1.5rem; font-weight: 700; }
.wcp-versus__vs { font-size: 1.75rem; font-weight: 700; color: var(--wcp-red); text-shadow: 0 0 20px rgba(248, 69, 80, 0.5); }
.wcp-picker__line { font-size: 1.1rem; margin: 0.5rem 0 1.25rem; }
.wcp-share { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.wcp-canvas-wrap { margin: 1.5rem auto 0; max-width: 100%; }
.wcp-canvas-wrap canvas { max-width: 100%; height: auto; border-radius: var(--wcp-r-lg); border: 1px solid var(--wcp-border); }

/* ---- Footer ---- */
.wcp-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; }
.wcp-footer__inner { display: flex; flex-direction: column; gap: 1rem; max-width: var(--wcp-maxw); margin: 0 auto; padding: 3rem 1.25rem; }
.wcp-footer__disclaimer { font-size: 0.875rem; color: var(--wcp-grey); max-width: 40rem; }
.wcp-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wcp-footer__links a { font-size: 0.875rem; color: var(--wcp-out); text-decoration: none; transition: color 0.2s; }
.wcp-footer__links a:hover { color: var(--wcp-coral); }
.wcp-footer__credit { font-size: 0.8rem; color: var(--wcp-out); }
@media (min-width: 768px) {
  .wcp-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Last-updated stamp block */
.wcp-updated { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--wcp-surface); border: 1px solid var(--wcp-border); border-radius: 9999px; padding: 0.4rem 0.9rem; }
.wcp-updated .wcp-eyebrow { color: var(--wcp-grey); }

/* Breadcrumb */
.wcp-breadcrumb { font-size: 0.8rem; color: var(--wcp-grey); padding: 1rem 0 0; }
.wcp-breadcrumb a { color: var(--wcp-grey); text-decoration: none; }
.wcp-breadcrumb a:hover { color: var(--wcp-white); }

/* Utility */
.wcp-flow > * + * { margin-top: 1rem; }
.wcp-flow strong { color: var(--wcp-white); }
.wcp-grid-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .wcp-grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .wcp-grid-cards--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- Guard: the host theme's link colour must not bleed into the predictor.
   `.wcp-root .x` is specificity 0,2,x so it beats a theme `a {}` / `.elementor a`
   regardless of stylesheet load order. ---- */
/* Theme/Elementor global img rules strip border-radius from every flag (the
   square only shows where the flag's surface background sits on a non-surface
   backdrop, e.g. the champion panel gradient). Re-assert the circle at 0,2,0. */
.wcp-root .wcp-flag { border-radius: 9999px; }
.wcp-root a { color: inherit; text-decoration: none; }
.wcp-root .wcp-subnav__inner a { color: var(--wcp-grey); }
.wcp-root .wcp-subnav__inner a:hover { color: var(--wcp-white); }
.wcp-root .wcp-subnav__inner a.is-active { color: #fff; }
.wcp-root .wcp-tie__name { color: var(--wcp-white); }
.wcp-root .wcp-tie__row--loser .wcp-tie__name { color: var(--wcp-grey); }
.wcp-root .wcp-group__name { color: var(--wcp-white); }
.wcp-root .wcp-group__row--out .wcp-group__name { color: var(--wcp-grey); }
.wcp-root .wcp-gcard, .wcp-root .wcp-gcard__name { color: var(--wcp-white); }
.wcp-root .wcp-breadcrumb a { color: var(--wcp-grey); }
.wcp-root .wcp-breadcrumb a:hover { color: var(--wcp-white); }
.wcp-root .wcp-btn, .wcp-root .wcp-btn:hover { color: #fff; }
.wcp-root .wcp-disclaimer__credit a { color: var(--wcp-out); text-decoration: underline; }
.wcp-root .wcp-disclaimer__credit a:hover { color: var(--wcp-coral); }
.wcp-root .wcp-footer__links a { color: var(--wcp-out); }

/* ---- Guard: theme/Elementor Kit GLOBAL BUTTON styles must not bleed into the
   predictor. The live kit ships `.elementor-kit-N button { ... }` (specificity
   0,1,1) forcing a white background, Gotham, ~14px text and square corners onto
   every <button> — which turned the reasoning toggles into white boxes and made
   the picker button white-on-white. These 0,2,0 guards re-assert each button's
   full spec, the same pattern as the link guard above. ---- */
.wcp-root .wcp-tie__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem; width: auto;
  background: var(--wcp-overlay); border: 1px solid var(--wcp-border); color: var(--wcp-grey);
  font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.5;
  cursor: pointer; padding: 0.35rem 0.85rem; border-radius: 9999px;
}
.wcp-root .wcp-tie__toggle:hover,
.wcp-root .wcp-tie__toggle:focus { background: var(--wcp-overlay); color: var(--wcp-white); border-color: rgba(255, 255, 255, 0.2); border-radius: 9999px; }
.wcp-root .wcp-tie__toggle--bare { margin: 0; }
.wcp-root .wcp-rounds__pill {
  background: var(--wcp-surface); border: 1px solid var(--wcp-border); color: var(--wcp-grey);
  font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.5;
  border-radius: 9999px; padding: 0.45rem 1rem; cursor: pointer;
}
.wcp-root .wcp-rounds__pill:hover,
.wcp-root .wcp-rounds__pill:focus { background: var(--wcp-surface); color: var(--wcp-white); border-radius: 9999px; }
.wcp-root .wcp-rounds__pill[aria-selected="true"],
.wcp-root .wcp-rounds__pill[aria-selected="true"]:hover,
.wcp-root .wcp-rounds__pill[aria-selected="true"]:focus { background: var(--wcp-red); color: #fff; border-color: var(--wcp-red); border-radius: 9999px; }
.wcp-root .wcp-btn {
  background: var(--wcp-red); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: normal; line-height: 1.5;
  padding: 0.85rem 1.75rem; border-radius: 0.75rem; border: 0;
}
.wcp-root .wcp-btn:hover,
.wcp-root .wcp-btn:focus { background: var(--wcp-coral); color: #fff; border-radius: 0.75rem; }
.wcp-root .wcp-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); }
.wcp-root .wcp-btn--ghost:hover,
.wcp-root .wcp-btn--ghost:focus { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* Wall-chart button variants — AFTER the kit guards above so they refine them
   (same 0,2,0 specificity, later in source). Any new <button> in the predictor
   must live in this guarded zone or the Elementor kit will white-box it. */
.wcp-root .wcp-btn--sm { padding: 0.5rem 0.95rem; font-size: 0.8rem; border-radius: 0.55rem; }
.wcp-root .wcp-mtie__toggle {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 0.8rem;
  margin: 0; padding: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-top: 1px solid var(--wcp-border-subtle);
  border-radius: 0 0 0.5rem 0.5rem; color: var(--wcp-out); cursor: pointer;
}
.wcp-root .wcp-mtie__toggle svg { width: 10px; height: 10px; }
.wcp-root .wcp-mtie__toggle:hover,
.wcp-root .wcp-mtie__toggle:focus { background: var(--wcp-overlay); color: var(--wcp-grey); border-color: var(--wcp-border-subtle); border-radius: 0 0 0.5rem 0.5rem; border-top-width: 1px; border-top-style: solid; }

/* ---- Predicted-vs-current accountability notes (dormant until divergence) ---- */
.wcp-now { display: inline-block; margin-top: 0.4rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wcp-coral); }
.wcp-now strong { color: var(--wcp-white); }
.wcp-champ .wcp-now { margin-top: 0.85rem; }
.wcp-tie__missed { margin: 0.6rem 0 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wcp-out); }

/* ---- Publisher embed (chrome-less iframe body) ----
   The embed document owns its own <body>, so it does NOT get the wcp-routed /
   wcp-embedded 100vw breakout (which assumes the root is nested inside a
   constrained theme column). Here .wcp-root is the top-level block and simply
   fills the iframe, so there is no negative-margin breakout and no phantom
   horizontal scrollbar. Everything else is the shared design system. */
body.wcp-embed-body { margin: 0; background-color: var(--wcp-bg); overflow-x: clip; }
.wcp-embed { width: 100%; }
.wcp-embed__hero { padding: var(--wcp-s5) 0 var(--wcp-s4); }
.wcp-embed__stamp { margin-bottom: var(--wcp-s3); }
.wcp-embed__h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 var(--wcp-s5); max-width: 22ch; }
.wcp-embed__hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--wcp-s5); align-items: center; }
.wcp-embed__awards { display: flex; flex-direction: column; gap: var(--wcp-s3); }

/* ---- Embed responsive switch (iframe-width driven) ----
   All embed breakpoints key off the IFRAME's own width: the embed document is
   served with NO width=device-width meta, so @media width queries inside the
   frame resolve against the iframe element width, not the parent device (proven:
   the wall/stepper switch tracks the frame width exactly). Everything here is
   scoped to body.wcp-embed-body / .wcp-embed, so the main site's 768px wall
   breakpoint is untouched. Container queries would work too, but add a
   container-type wrapper for no gain once the viewport meta is gone.

   1220px is the wide threshold: the mirrored 9-column wall needs a MEASURED
   1206px to render without clipping (1166px grid min-content + 40px container
   padding); 1220 adds a small margin against subpixel clipping. A publisher
   article column is ~600-1100px, well under that, so the embed uses the stacked
   hero + round-stepper there and only shows the full wall + side-by-side hero
   once the frame genuinely fits it. */

/* Hero is stacked at EVERY embed width: champion panel (capped + centred), then
   the award chips as a centred row, then the matchday blocks. A side-by-side
   champion/chips split leaves obvious dead space at every width — the champion
   panel is far taller than three short chips — so even at full width the clean
   read is a single centred column flowing into the wall. No 2-col hero. */
.wcp-embed__hero-grid { max-width: 640px; margin-left: auto; margin-right: auto; }
.wcp-embed .wcp-champ { max-width: 460px; margin-left: auto; margin-right: auto; }
.wcp-embed__awards { align-items: center; text-align: center; }
.wcp-embed__awards .wcp-hero__chips { justify-content: center; }

/* The full wall only fits at >= 1220px; below that the embed shows the mobile
   round-stepper instead of a horizontally-clipped wall. (Base wcp.css already
   swaps them under 768px for everyone; this extends the swap up to 1220 for the
   embed only.) */
@media (max-width: 1219.98px) {
  body.wcp-embed-body .wcp-wall { display: none; }
  body.wcp-embed-body .wcp-rounds { display: block; }
}
.wcp-embed__footer { border-top: 1px solid var(--wcp-border); margin-top: var(--wcp-s6); padding: var(--wcp-s5) 0; }
.wcp-embed__footer .wcp-container { display: flex; flex-direction: column; align-items: center; gap: var(--wcp-s2); text-align: center; }
.wcp-embed__powered { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--wcp-white); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.wcp-embed__powered strong { color: var(--wcp-red); font-weight: 700; }
.wcp-embed__powered svg { width: 14px; height: 14px; transition: transform 0.2s; }
.wcp-embed__powered:hover svg { transform: translateX(3px); }
.wcp-embed__compliance { font-size: 0.75rem; color: var(--wcp-out); margin: 0; max-width: 40rem; }
