:root {
  /* Public theme: change these tokens, or remove this block for the classic palette. */
  --theme-accent: #806000;
  --theme-accent-dark: #604900;
  --theme-bright: #dfca60;
  --theme-secondary: #236b8e;
  --theme-secondary-soft: #e8f2f7;
  --theme-soft: #faf7e5;
  --theme-on-dark: #e6d580;
  --theme-hero: #e5d99b;
  --theme-hero-ink: #22252a;
  --theme-hero-muted: #514a32;
  --theme-contrast-band: #e0edf3;
  --theme-footer: #202326;
  --theme-footer-muted: #cbd0d3;
  --theme-paper: #f7f8fa;
  --theme-ink: #22252a;
  --theme-muted: #656b73;
  --theme-line: #dce0e6;
  --theme-charcoal: #24272c;
  --theme-header: rgba(247, 248, 250, .96);
  --theme-logo-filter: brightness(0) saturate(100%) invert(33%) sepia(35%) saturate(1050%) hue-rotate(155deg) brightness(95%) contrast(90%);
  --theme-title-font: "Trebuchet MS", "Segoe UI", ui-sans-serif, sans-serif;
}

:root[data-portal-theme="classic"] {
  --theme-hero: #202724;
  --theme-hero-ink: #ffffff;
  --theme-hero-muted: #c9d2ce;
  --theme-contrast-band: #f0c95e;
  --theme-footer: #202724;
  --theme-footer-muted: #abb7b2;
  --theme-accent: #087b63;
  --theme-accent-dark: #075a49;
  --theme-bright: #087b63;
  --theme-secondary: #245fbd;
  --theme-secondary-soft: #edf3fb;
  --theme-soft: #edf6f1;
  --theme-on-dark: #8dd9c8;
  --theme-paper: #f4f6f3;
  --theme-ink: #15201d;
  --theme-muted: #62706b;
  --theme-line: #d7ded9;
  --theme-charcoal: #202724;
  --theme-header: rgba(244, 246, 243, .96);
  --theme-logo-filter: none;
  --theme-title-font: Georgia, "Times New Roman", serif;
}

:root {
  --paper: var(--theme-paper, #f4f6f3);
  --surface: #ffffff;
  --ink: var(--theme-ink, #15201d);
  --muted: var(--theme-muted, #62706b);
  --line: var(--theme-line, #d7ded9);
  /* Compatibility aliases for the existing public components. */
  --green: var(--theme-accent, #087b63);
  --green-dark: var(--theme-accent-dark, #075a49);
  --positive: #087b63;
  --positive-dark: #075a49;
  --red: #c53b45;
  --yellow: #dfa525;
  --blue: var(--theme-secondary, #245fbd);
  --charcoal: var(--theme-charcoal, #202724);
  --shadow: 0 12px 34px rgba(27, 44, 38, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.portal-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 5px;
  background: var(--ink);
  color: white;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform .16s ease;
}
.portal-skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
button, input, select { font: inherit; letter-spacing: 0; }
a { color: inherit; }
img { max-width: 100%; }

.portal-shell {
  width: min(calc(100% - 32px), 1240px);
  margin: 0 auto;
}

.portal-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--theme-header, rgba(244, 246, 243, .96));
  backdrop-filter: blur(12px);
}

.portal-read-status {
  position: fixed;
  z-index: 45;
  right: 14px;
  bottom: 14px;
  max-width: min(28rem, calc(100vw - 28px));
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--yellow) 50%, var(--line));
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 94%, var(--yellow));
  color: var(--muted);
  box-shadow: 0 5px 16px rgba(27, 31, 35, .09);
  font-size: .72rem;
  font-style: italic;
}

.portal-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* The home navigation has its own palette; popovers retain the public theme. */
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) {
  background: #151515;
  border-bottom-color: #343434;
}
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .portal-brand {
  color: #fff;
}
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .portal-brand img {
  filter: brightness(0) invert(1);
}
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .portal-brand span,
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .portal-nav a {
  color: #d4d4d4;
}
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .portal-nav a:hover,
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .portal-nav a[aria-current="page"] {
  background: #303030;
  color: var(--theme-on-dark);
}
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) :is(.icon-button, .header-search-button, .language-select) {
  background: #252525;
  border-color: #505050;
  color: #fff;
  color-scheme: dark;
}
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) :is(.icon-button, .header-search-button, .language-select):is(:hover, :focus-visible),
.portal-header:has(.portal-nav a:first-child[aria-current="page"]) .header-search-shell[data-open="true"] .header-search-button {
  border-color: var(--theme-on-dark);
  color: var(--theme-on-dark);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.portal-brand img {
  filter: var(--theme-logo-filter, none);
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.portal-brand strong {
  font-size: 1.04rem;
  line-height: 1;
}

.portal-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.portal-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.portal-nav a:hover,
.portal-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.portal-powered-by {
  display: inline-flex;
  align-items: baseline;
  gap: .32em;
  padding: 8px 10px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .035em;
  white-space: nowrap;
}
.portal-powered-by a {
  padding: 0;
  border-radius: 0;
  color: var(--theme-accent-dark, #1a4d9c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .015em;
  text-decoration: none;
}
.portal-powered-by a:hover,
.portal-powered-by a:focus-visible { background: transparent; color: var(--theme-accent, #2563eb); text-decoration: underline; }

/* Tournament views share the home masthead palette, including on mobile. */
.portal-header.portal-header-aefm-tournament {
  --theme-charcoal:#292b2d;
  --theme-on-dark:#f6d64f;
  background:var(--theme-charcoal);
  border-bottom-color:#484a4b;
}
.portal-header.portal-header-aefm-tournament .portal-brand img { filter:none; }
.portal-header.portal-header-aefm-tournament .portal-brand { color:#fff; }
.portal-header.portal-header-aefm-tournament :is(.portal-brand span, .portal-nav a, .portal-powered-by) { color:#e0ded8; }
.portal-header.portal-header-aefm-tournament .portal-nav a:is(:hover, :focus-visible, [aria-current="page"]) {
  background:#303030;
  color:var(--theme-on-dark);
}
.portal-header.portal-header-aefm-tournament .portal-powered-by a { color:var(--theme-on-dark); }
.portal-header.portal-header-aefm-tournament .portal-powered-by a:is(:hover, :focus-visible) { background:transparent; color:#fff; }
.portal-header.portal-header-aefm-tournament :is(.icon-button, .header-search-button, .language-select) {
  background:#252525;
  border-color:#505050;
  color:#fff;
  color-scheme:dark;
}
.portal-header.portal-header-aefm-tournament :is(.icon-button, .header-search-button, .language-select):is(:hover, :focus-visible),
.portal-header.portal-header-aefm-tournament .header-search-shell[data-open="true"] .header-search-button {
  border-color:var(--theme-on-dark);
  color:var(--theme-on-dark);
}


.header-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-share-status {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 66px;
  padding: 8px 11px;
  border-radius: 4px;
  background: #17251f;
  color: white;
  box-shadow: 0 12px 30px rgba(13, 27, 22, .2);
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.header-share-status[hidden] { display: none; }

.header-search-shell {
  position: relative;
}
.header-search-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(13, 27, 22, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.header-search-shell[data-open="true"] .header-search-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}
.header-search-shell[data-open="true"] .header-search-button {
  border-color: var(--green);
  color: var(--green-dark);
}
.header-search-popover .global-search {
  width: 100%;
  max-width: none;
  margin: 0;
}
.header-search-popover .global-search input {
  height: 44px;
  border-color: var(--line);
}
.header-search-popover .global-search > svg {
  top: 13px;
}
.header-search-popover .search-results {
  top: calc(100% + 12px);
  left: -10px;
  right: -10px;
}

.language-select {
  width: 64px;
  flex: 0 0 64px;
  box-sizing: border-box;
  min-height: 34px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 7px 0 9px;
  font-size: .8rem;
}
.language-select:focus {
  border: 1px solid var(--green);
  background: var(--surface);
  outline: 2px solid rgba(8, 123, 99, .15);
}

.header-search-button,
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  font-size: inherit;
  cursor: pointer;
}

.header-search-button:hover,
.icon-button:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.header-search-button svg,
.icon-button svg { width: 18px; height: 18px; }

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  padding: .1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.sort-button::after {
  content: '↕';
  color: #94a3b8;
  font-size: .66rem;
}

.sort-button[data-direction="asc"]::after,
.sort-button[data-direction="ascending"]::after {
  content: '↑';
  color: var(--blue);
}

.sort-button[data-direction="desc"]::after,
.sort-button[data-direction="descending"]::after {
  content: '↓';
  color: var(--blue);
}

.portal-main { min-height: calc(100vh - 150px); }
body.portal-page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.portal-page-layout .portal-main {
  flex: 1 0 auto;
  min-height: 0;
}
body.portal-page-layout > [data-portal-footer] {
  flex: 0 0 auto;
  margin-top: auto;
}

.portal-masthead {
  position: relative;
  z-index: 2;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: #fff;
}

.masthead-grid {
  min-height: 450px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 54px;
  align-items: center;
  padding: 58px 0 46px;
}

.masthead-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: #8dd9c8;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-masthead h1 {
  max-width: 790px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  line-height: .96;
  letter-spacing: 0;
}

.masthead-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: #c9d2ce;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.season-switcher {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.season-switcher label {
  color: #aebbb6;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.season-switcher select {
  width: 204px;
  flex: 0 0 204px;
  min-height: 38px;
  border: 1px solid #53615c;
  border-radius: 6px;
  background: #2a3330;
  color: white;
  padding: 0 34px 0 12px;
}
.masthead-lab-link {
  margin-left: 8px;
  color: #8dd9c8;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none;
}
.masthead-lab-link:hover { text-decoration: underline; }

.masthead-scoreboard {
  border-top: 4px solid var(--yellow);
  background: #f9fbf9;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.scoreboard-title {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.scoreboard-row:last-child { border-bottom: 0; }
.scoreboard-row span { color: var(--muted); font-size: .86rem; font-weight: 750; }
.scoreboard-row strong { font-size: 2rem; line-height: 1; }
.scoreboard-update {
  margin: 0;
  padding: 11px 18px 13px;
  color: #7b8580;
  font-size: .72rem;
  font-style: italic;
  line-height: 1.35;
}

.global-search {
  position: relative;
  margin-top: 26px;
  max-width: 680px;
}
.global-search input {
  width: 100%;
  height: 52px;
  border: 1px solid #596660;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 52px 0 17px;
  outline: none;
}
.global-search input:focus { border-color: #8dd9c8; box-shadow: 0 0 0 3px rgba(141, 217, 200, .2); }
.global-search > svg {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: min(460px, 70vh);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(13, 27, 22, .18);
  color: var(--ink);
}
.search-results[hidden] { display: none; }
.search-group-title {
  padding: 10px 14px 6px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  text-decoration: none;
}
.search-result:hover { background: #eef3f0; }
.search-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dce5e0;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 900;
}
.search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-avatar-tournament {
  border-radius: 6px;
  background: #17251f;
  color: #f0c95e;
}
.search-avatar-tournament svg { width: 19px; height: 19px; }
.search-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.search-result small { color: var(--muted); font-size: .7rem; }
.search-result-tournament { grid-template-columns: 34px minmax(0, 1fr); }
.search-result-tournament-copy { display: grid; min-width: 0; gap: 2px; }
.search-result-tournament-copy strong { display: block; min-width: 0; }
.search-result-tournament-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: .6rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section { padding: 58px 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.section-dark { background: var(--charcoal); color: white; }
.section-yellow { background: var(--theme-contrast-band, #f0c95e); color: var(--ink); }

.methodology-hero {
  border-bottom: 1px solid #3b4742;
  background: var(--charcoal);
  color: white;
}
.methodology-hero-inner { max-width: 940px; padding: 68px 0 60px; }
.methodology-hero .section-kicker { color: #8dd9c8; }
.methodology-hero h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 750;
  line-height: .92;
  letter-spacing: 0;
}
.methodology-hero-inner > p:not(.section-kicker):not(.methodology-generated) {
  max-width: 760px;
  margin: 0;
  color: #c8d1cd;
  font-size: 1.04rem;
  line-height: 1.65;
}
.methodology-generated { margin: 28px 0 0; color: #82918a; font-size: .72rem; }
.methodology-coverage-band { min-height: 142px; background: #f0c95e; color: #211d13; }
.archive-loading.methodology-loading {
  position: static;
  inset: auto;
  width: 100%;
  min-height: 142px;
  box-sizing: border-box;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.archive-loading.methodology-loading.is-error > div {
  border-color: rgba(33,29,19,.28);
  background: rgba(255,255,255,.58);
  color: #352f20;
  box-shadow: none;
}
.methodology-metrics { display: grid; grid-template-columns: repeat(5, 1fr); }
.methodology-metrics > div { min-width: 0; padding: 27px 20px 24px; border-right: 1px solid rgba(33,29,19,.2); }
.methodology-metrics > div:first-child { padding-left: 0; }
.methodology-metrics > div:last-child { border-right: 0; }
.methodology-metrics strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1; }
.methodology-metrics span { display: block; margin-top: 7px; font-size: .72rem; font-weight: 800; }
.methodology-heading { max-width: 760px; margin-bottom: 34px; }
.methodology-world-cups .section-kicker { color: var(--muted); }
.methodology-heading h2,
.methodology-two-column h2 { margin: 5px 0 13px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1; }
.methodology-heading > p:last-child,
.methodology-ranking-band article > p:not(.section-kicker),
.methodology-two-column article > p:last-child { color: var(--muted); line-height: 1.65; }
.methodology-source-list { border-top: 1px solid var(--line); }
.methodology-source-row {
  display: grid;
  grid-template-columns: minmax(160px, .3fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.methodology-source-row > strong { color: var(--green-dark); font-family: var(--display); font-size: 2rem; }
.methodology-source-row > strong small { color: var(--muted); font-family: var(--sans); font-size: .66rem; font-weight: 750; }
.methodology-source-row h3 { margin: 0 0 5px; font-size: 1rem; }
.methodology-source-row p { max-width: 800px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.methodology-source-row.source-legacy > strong { color: #9a6412; }
.methodology-ranking-band { background: #e9efeb; }
.methodology-two-column { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(38px, 7vw, 100px); align-items: start; }
.methodology-ranking-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c6d0cb; background: var(--surface); }
.methodology-ranking-pair > a { min-width: 0; padding: 28px; color: var(--ink); text-decoration: none; }
.methodology-ranking-pair > a + a { border-left: 1px solid #c6d0cb; }
.methodology-ranking-pair > a:hover { background: #f8faf9; }
.methodology-ranking-pair span { color: var(--green); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.methodology-ranking-pair strong { display: block; margin: 8px 0 12px; font-size: 1.18rem; }
.methodology-ranking-pair p { min-height: 5.2em; margin: 0 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.methodology-ranking-pair small { color: #64736c; font-size: .67rem; line-height: 1.45; }
.methodology-principles { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.methodology-principles li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.methodology-principles li > span { color: var(--green); font-family: var(--display); font-size: .8rem; font-weight: 850; }
.methodology-principles strong { display: block; margin-bottom: 4px; font-size: .92rem; }
.methodology-principles p { max-width: 900px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.methodology-updates-band { background: #17251f; color: white; }
.methodology-updates-band .section-kicker { color: #8dd9c8; }
.methodology-updates-band article > p:last-child { color: #aebbb5; }
.methodology-updates { margin: 0; border-top: 1px solid #3d4b45; }
.methodology-updates > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 17px 0; border-bottom: 1px solid #3d4b45; }
.methodology-updates dt { color: #aebbb5; font-size: .78rem; }
.methodology-updates dd { margin: 0; color: #f0c95e; font-size: .78rem; font-weight: 800; text-align: right; }

.section-heading {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.04;
}
.section-heading p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.section-dark .section-heading p { color: #b8c4bf; }
.section-heading-aside { max-width: 530px; }
.section-heading-aside p { margin: 0; }
.section-heading-aside .text-link { margin-top: 10px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.section-dark .text-link { color: #8dd9c8; }

.latest-list { border-top: 1px solid var(--line); }
.home-latest-stage {
  position: relative;
  min-height: 352px;
}
.home-latest-loading {
  place-items: start center;
  padding-top: 92px;
}
.tournament-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(220px, 1.2fr) minmax(280px, 1fr) 34px;
  gap: 20px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, padding .16s ease;
}
.tournament-row:hover { background: rgba(255, 255, 255, .58); padding: 0 10px; }
.tournament-row-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}
.tournament-row-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.tournament-date { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.tournament-name { min-width: 0; }
.tournament-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tournament-name small { display: block; margin-top: 5px; color: var(--muted); }
.winner-list { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.winner-list > .winner { min-width: 0; font-size: .82rem; }
.winner-list > .winner b { color: var(--green-dark); }
.winner-list > .winner span { color: var(--muted); font-size: .72rem; }
.winner-list > .winner .winner-link {
  position: relative;
  z-index: 2;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 3px;
}
.winner-list > .winner .winner-link:hover,
.winner-list > .winner .winner-link:focus-visible { text-decoration: underline; }
.tournament-row .winner-list > .winner {
  display: grid;
  gap: 3px;
}
.tournament-row .winner-list > .winner b,
.tournament-row .winner-list > .winner .winner-link {
  font-size: .96rem;
  font-weight: 850;
  line-height: 1.12;
}
.tournament-row .winner-list > .winner span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.row-arrow { color: var(--muted); font-size: 1.2rem; }

.kind-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
}
.kind-major { border-color: #be8f20; color: #73520b; background: #fff5d5; }
.kind-world_cup { border-color: #be8f20; color: #73520b; background: #fff5d5; }
.kind-european_championship { border-color: #315f9f; color: #1d477f; background: #edf4ff; }
.kind-asian_championship { border-color: #a65d24; color: #713b14; background: #fff3e7; }
.kind-champions_league { border-color: #3974e8; color: #0052d4; background: #eff5ff; }
.kind-grand_prix { border-color: #2a8f79; color: #075a49; background: #e6f7f2; }
.kind-international_open { border-color: #6990ce; color: #254b88; background: #eaf1fb; }
.kind-satellite { border-color: #b86a72; color: #82323a; background: #fcecef; }
.kind-aefm { border-color: #80689f; color: #563b76; background: #f3eef9; }

.fistf-ranking-landscape-section {
  position: relative;
  overflow: hidden;
  background: #fffdf8;
}
.fistf-ranking-landscape-section .portal-shell { position: relative; }
.fistf-ranking-landscape-section .section-kicker { color: #31506b; }
.fistf-ranking-heading-aside { align-self: end; }
.fistf-ranking-heading-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.fistf-ranking-category-field {
  display: grid;
  gap: 5px;
  color: #62717d;
  font-size: .63rem;
  font-weight: 850;
  text-transform: uppercase;
}
.fistf-ranking-category-field select {
  width: 150px;
  min-height: 34px;
  border: 1px solid #b8c5ce;
  border-radius: 4px;
  background: #fff;
  color: #172b3a;
  font: inherit;
  font-size: .74rem;
  font-weight: 850;
  text-transform: none;
}
.home-fistf-ranking-stage {
  border-color: #c4cdd4;
  background: rgba(255,255,255,.62);
}
.home-fistf-ranking-visual { padding-bottom: 2px; }
.home-fistf-ranking-grid line {
  stroke: rgba(54,77,94,.14);
  stroke-dasharray: 3 6;
}
.home-fistf-ranking-grid text {
  fill: #667783;
  font-size: 9px;
  font-weight: 800;
}
.home-fistf-ranking-bin { fill: rgba(47,80,105,.09); }
.home-fistf-ranking-area { fill: rgba(42,91,126,.14); }
.home-fistf-ranking-line {
  fill: none;
  stroke: #234f70;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: home-rating-draw 1.4s cubic-bezier(.22,.75,.25,1) forwards;
}
.home-fistf-ranking-scale-note {
  margin: -6px 12px 12px 52px;
  color: #6d7a83;
  font-size: .61rem;
  font-style: italic;
  line-height: 1.45;
}
.home-fistf-ranking-story { border-color: #c4cdd4; }
.home-fistf-ranking-story .home-rating-primary strong { color: #234f70; }
.home-fistf-ranking-story dl div { border-color: #ccd4d9; }

.rating-landscape-section {
  position: relative;
  overflow: hidden;
  background: #eef3ef;
}
.rating-landscape-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(19,111,83,.055), transparent 42%, rgba(240,201,94,.09));
}
.rating-landscape-section .portal-shell { position: relative; }
.home-rating-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(215px, 285px);
  min-height: 390px;
  border-top: 1px solid #c8d3cc;
  border-bottom: 1px solid #c8d3cc;
  background: rgba(255,255,255,.45);
}
.home-rating-loading,
.home-rating-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
  font-size: .76rem;
}
.home-rating-visual {
  min-width: 0;
  padding: 20px 20px 10px 0;
}
.home-rating-visual svg { display: block; width: 100%; height: auto; }
.home-rating-zone rect { opacity: .72; }
.home-rating-zone-lower rect { fill: #dfe7e4; }
.home-rating-zone-middle rect { fill: #f2e5bb; }
.home-rating-zone-high rect { fill: #d5e9e1; }
.home-rating-zone-elite rect { fill: #bfe0d2; }
.home-rating-zone text {
  fill: #52605b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.home-rating-threshold line { stroke: rgba(37,55,48,.28); stroke-dasharray: 3 5; }
.home-rating-threshold text,
.home-rating-edge-label { fill: #68756f; font-size: 9px; font-weight: 800; }
.home-volume-axis line {
  stroke: rgba(50,69,61,.16);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.home-volume-axis text {
  fill: #718078;
  font-size: 8px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.home-rating-bin { fill: rgba(31,45,39,.08); }
.home-rating-area { fill: rgba(19,111,83,.15); }
.home-rating-line {
  fill: none;
  stroke: #075d46;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: home-rating-draw 1.4s cubic-bezier(.22,.75,.25,1) forwards;
}
.home-rating-mobile-legend { display: none; }
@keyframes home-rating-draw { to { stroke-dashoffset: 0; } }
.home-rating-story {
  display: grid;
  align-content: center;
  gap: 24px;
  border-left: 1px solid #c8d3cc;
  padding: 28px 0 28px 30px;
}
.home-rating-primary strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: .88;
  font-variant-numeric: tabular-nums;
}
.home-rating-primary span { display: block; max-width: 180px; margin-top: 10px; color: #4f5d57; font-size: .74rem; font-weight: 800; line-height: 1.4; }
.home-rating-story dl { display: grid; gap: 0; margin: 0; }
.home-rating-story dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #cbd5cf; }
.home-rating-story dt { color: var(--muted); font-size: .68rem; }
.home-rating-story dd { margin: 0; color: var(--ink); font-size: .76rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.home-rating-story dd > small { display: block; margin-top: 2px; color: var(--muted); font-size: .59rem; font-weight: 600; line-height: 1.3; }
.home-rating-leader { display: inline-flex; justify-content: flex-end; align-items: baseline; gap: 7px; max-width: 190px; min-width: 0; color: inherit; text-decoration: none; }
.home-rating-leader span { min-width: 0; overflow: hidden; color: var(--muted); font-size: .64rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-rating-leader:hover span { color: var(--green-dark); text-decoration: underline; }
.home-rating-story p { margin: 0; color: var(--muted); font-size: .65rem; font-style: italic; line-height: 1.55; }

@media (max-width: 800px) {
  .fistf-ranking-heading-actions { justify-content: flex-start; }
  .home-rating-stage { grid-template-columns: minmax(0, 1fr); }
  .home-rating-visual { padding: 12px 0 0; }
  .home-rating-story { grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); align-items: center; border-top: 1px solid #c8d3cc; border-left: 0; padding: 22px 0; }
  .home-rating-story > p { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .fistf-ranking-heading-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fistf-ranking-category-field select { width: 142px; }
  .home-fistf-ranking-scale-note { margin: -2px 10px 12px; }
  .home-rating-stage,
  .home-rating-loading,
  .home-rating-empty { min-height: 360px; }
  .home-rating-visual svg { min-height: 230px; }
  .home-rating-zone text { display: none; }
  .home-rating-mobile-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    padding: 0 10px 14px;
  }
  .home-rating-mobile-legend span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 5px; color: var(--muted); font-size: .6rem; }
  .home-rating-mobile-legend i { width: 7px; height: 7px; border: 1px solid rgba(32,39,36,.12); border-radius: 2px; }
  .home-rating-mobile-legend b { color: #44514b; font-size: .61rem; }
  .home-rating-mobile-legend small { font-size: .57rem; font-variant-numeric: tabular-nums; }
  .home-rating-legend-lower i { background: #dfe7e4; }
  .home-rating-legend-middle i { background: #f2e5bb; }
  .home-rating-legend-high i { background: #d5e9e1; }
  .home-rating-legend-elite i { background: #bfe0d2; }
  .home-rating-story { grid-template-columns: 1fr; gap: 16px; }
  .home-rating-story > p { grid-column: auto; }
  .home-rating-primary strong { font-size: 3.2rem; }
}

.palmares-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 36px;
  max-width: 100%;
}
.palmares-grid > * { min-width: 0; }
.palmares-grid .data-table-wrap {
  width: 100%;
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.team-palmares-table { font-size: .79rem; }
.team-palmares-table th,
.team-palmares-table td {
  padding-right: 6px;
  padding-left: 6px;
}

.profile-extreme-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.profile-extreme-result {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.profile-extreme-result:last-child { border-bottom: 0; }
.profile-extreme-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-extreme-heading strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.profile-extreme-result p {
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 750;
}
.profile-extreme-result p span {
  color: var(--muted);
  font-weight: 500;
}
.profile-extreme-result p .profile-opponent-name {
  color: var(--ink);
  font-weight: 750;
}
.profile-player-link,
.profile-unexpected-result p a {
  text-decoration: none;
}
.profile-player-link:hover,
.profile-player-link:focus-visible,
.profile-unexpected-result p a:hover,
.profile-unexpected-result p a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-extreme-result small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-extreme-result small a { color: inherit; }

.profile-unexpected-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.profile-unexpected-result {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.profile-unexpected-index {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
}
.profile-unexpected-result p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: .76rem;
  font-weight: 750;
}
.profile-unexpected-result p a {
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-unexpected-result p a:last-child { text-align: right; }
.profile-unexpected-result p strong {
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.profile-unexpected-tournament {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-unexpected-result > em {
  color: var(--green-dark);
  font-size: .86rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}
.profile-unexpected-result > em small { color: var(--muted); font-size: .55rem; }
.profile-unexpected-result > em i {
  display: block;
  max-width: 78px;
  margin-top: 2px;
  color: var(--muted);
  font-size: .51rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
}

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border-top: 3px solid var(--ink);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: .83rem;
}
.data-table th,
.data-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.data-table th {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
}
.data-table th:first-child,
.data-table td:first-child,
.data-table th:nth-child(2),
.data-table td:nth-child(2) { text-align: left; }
.data-table tbody tr:hover { background: rgba(255,255,255,.6); }

.data-table .contributor-rating {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rank-number { width: 28px; color: var(--muted); font-weight: 900; }
.athlete-link { font-weight: 800; text-decoration: none; }
.athlete-link:hover { color: var(--green-dark); text-decoration: underline; }
.title-total { color: var(--green-dark); font-size: 1rem; font-weight: 950; }

.category-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.category-tabs button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 850;
}
.category-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 1px;
  border: 1px solid #3c4743;
  background: #3c4743;
}
.insight {
  min-height: 235px;
  padding: 25px;
  background: var(--charcoal);
}
.insight-index {
  color: #8dd9c8;
  font-size: .68rem;
  font-weight: 900;
}
.insight h3 { margin: 30px 0 8px; color: white; font-size: 1rem; }
.insight h3 a { color: inherit; text-decoration-color: #66736e; text-underline-offset: 3px; }
.insight h3 a:hover { color: #8dd9c8; text-decoration-color: #8dd9c8; }
.insight-value { display: block; color: white; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1; }
.insight-value small {
  color: #aebbb5;
  font-size: .22em;
  font-weight: 750;
  text-transform: lowercase;
}
.insight-name {
  display: inline-block;
  margin-top: 15px;
  color: #8dd9c8;
  font-weight: 850;
  text-decoration: none;
}
.insight p { margin: 8px 0 0; color: #9fada7; font-size: .76rem; line-height: 1.5; }
.insight-more {
  display: inline-block;
  margin-top: 22px;
  color: #8dd9c8;
  font-size: .68rem;
  font-weight: 850;
  text-decoration: none;
}
.insight-more:hover { text-decoration: underline; }

.ranking-trend {
  margin-top: 34px;
  border: 1px solid #46524d;
  background:
    linear-gradient(135deg, rgba(103,213,189,.07), transparent 34%),
    #252d2a;
  padding: 28px;
}
.ranking-trend-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  align-items: start;
  gap: 28px;
  min-height: 102px;
  margin-bottom: 18px;
}
.ranking-trend-heading > div:first-child { min-width: 0; }
.ranking-trend-heading h3 { margin: 3px 0 7px; color: white; font-size: clamp(1.35rem, 2.5vw, 2.15rem); }
.ranking-trend-heading p { max-width: 660px; margin: 0; color: #aebbb5; }
.ranking-trend-controls {
  display: grid;
  width: 100%;
  min-height: 102px;
  min-width: 0;
  align-content: start;
  justify-items: stretch;
  gap: 10px;
}
.ranking-trend .ranking-trend-entity {
  width: auto;
  justify-self: end;
  box-sizing: border-box;
  border-color: #56625d;
  background: #1e2522;
  padding: 2px;
}
.ranking-trend .ranking-trend-entity button {
  min-width: 0;
  min-height: 28px;
  color: #aebbb5;
  padding: 0 10px;
  font-size: .64rem;
}
.ranking-trend .ranking-trend-entity button[aria-pressed="true"] { background: #f5c842; color: #202724; }
.ranking-trend-category {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 6px;
  color: #9facA7;
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}
.ranking-trend-category[hidden] { display: none; }
.ranking-trend-category select {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  border: 1px solid #56625d;
  border-radius: 4px;
  background: #1e2522;
  color: white;
  padding: 0 34px 0 11px;
  font: inherit;
  font-size: .76rem;
  text-transform: none;
}
.ranking-trend-stage { min-height: 300px; }
.ranking-trend-scroll {
  overflow-x: auto;
  border-top: 1px solid #3d4843;
  border-bottom: 1px solid #3d4843;
}
.ranking-trend-chart { display: block; width: 100%; min-width: 880px; height: auto; }
.ranking-trend-gridline line { stroke: #46514c; stroke-width: 1; stroke-dasharray: 2 6; }
.ranking-trend-gridline text {
  fill: #8f9c96;
  font-size: 11px;
  font-weight: 850;
  text-anchor: end;
}
.ranking-trend-month {
  fill: #8f9c96;
  font-size: 10px;
  font-weight: 750;
  text-anchor: middle;
}
.ranking-trend-series path {
  fill: none;
  stroke: var(--series-color);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  opacity: .9;
  animation: ranking-trend-draw 1.25s cubic-bezier(.22,.75,.25,1) forwards;
  animation-delay: var(--series-delay);
}
.ranking-trend-series circle {
  fill: #252d2a;
  stroke: var(--series-color);
  stroke-width: 2;
  opacity: 0;
  animation: ranking-trend-point .25s ease forwards;
  animation-delay: calc(var(--series-delay) + .75s);
}
.ranking-trend-series a { text-decoration: none; }
.ranking-trend-end-label {
  fill: var(--series-color);
  font-size: 10px;
  font-weight: 850;
}
.ranking-trend-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: #3d4843;
}
.ranking-trend-legend-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: #202724;
  color: #e3e9e6;
  padding: 7px 10px;
  font-size: .68rem;
  text-decoration: none;
}
.ranking-trend-legend-item:hover { background: #29332f; }
.ranking-trend-legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--series-color);
}
.ranking-trend-legend-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-trend-legend-item b { color: #92a099; font-size: .62rem; }
.ranking-trend-note { margin: 13px 0 0; color: #899690; font-size: .66rem; }
.ranking-trend-loading,
.ranking-trend-empty {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #aebbb5;
  font-size: .76rem;
}
.ranking-trend-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid #56625d;
  border-top-color: #67d5bd;
  border-radius: 50%;
  animation: portal-spin .75s linear infinite;
}
@keyframes ranking-trend-draw { to { stroke-dashoffset: 0; } }
@keyframes ranking-trend-point { to { opacity: 1; } }

@media (max-width: 900px) {
  .ranking-trend-heading { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .ranking-trend-controls { width: min(100%, 240px); }
}

@media (max-width: 760px) {
  .ranking-trend { padding: 20px 14px; }
  .ranking-trend-controls { width: 100%; max-width: 240px; }
  .ranking-trend .ranking-trend-entity { justify-self: start; }
  .ranking-trend-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Player evolution */
.profile-evolution-heading { margin-bottom: 4px; }
.profile-evolution-heading h2 { margin: 0; }
.player-evolution-section { padding-top: 46px; background: #f2f4f1; }
.evolution-page-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid #ccd4cf;
}
.evolution-page-heading h2 { max-width: 720px; margin: 5px 0 8px; font-size: clamp(1.8rem, 4vw, 3.45rem); line-height: .98; }
.evolution-page-heading > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }
.evolution-category-field { width: min(220px, 100%); flex: 0 0 auto; }
.evolution-coverage { width: fit-content; margin: 14px 0 0; }
.evolution-loading { min-height: 420px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.evolution-loading[hidden] { display: none; }
.evolution-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #ccd4cf; border-top: 3px solid var(--green-dark); margin: 28px 0; background: rgba(255,255,255,.84); }
.evolution-summary-grid article { min-width: 0; padding: 20px 22px; border-right: 1px solid #d8dfda; }
.evolution-summary-grid article:last-child { border-right: 0; }
.evolution-summary-grid span,.evolution-summary-grid small { display: block; color: var(--muted); }
.evolution-summary-grid span { font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.evolution-summary-grid strong { display: block; margin: 8px 0 4px; color: var(--ink); font-size: clamp(1.45rem,3vw,2.25rem); font-variant-numeric: tabular-nums; }
.evolution-summary-grid small { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.evolution-story-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,.65fr); gap: 20px; margin-bottom: 20px; }
.evolution-panel,.evolution-readout { min-width: 0; padding: clamp(20px,3vw,32px); border: 1px solid #d3dad5; background: rgba(255,255,255,.88); }
.evolution-panel + .evolution-panel { margin-top: 20px; }
.evolution-panel header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.evolution-panel h2,.evolution-readout h2 { margin: 4px 0 10px; font-size: clamp(1.25rem,2.4vw,1.8rem); }
.evolution-panel > p { max-width: 780px; margin: 0 0 22px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.evolution-legend { display: flex; gap: 14px; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.evolution-legend span::before { content:""; display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; }
.evolution-legend .is-points::before { background: var(--green-dark); }
.evolution-legend .is-wins::before { background: #9a7330; }
.evolution-line-chart { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.evolution-line-chart svg { display: block; width: 100%; min-height: 280px; }
.evolution-guides line { stroke: #dce2de; stroke-width: 1; }
.evolution-guides text,.evolution-line-chart g > text { fill: #6b7872; font-size: 10px; }
.evolution-points-line,.evolution-wins-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.evolution-points-line { stroke: var(--green-dark); stroke-width: 3; }
.evolution-wins-line { stroke: #9a7330; stroke-width: 2; stroke-dasharray: 5 5; }
.points-dot { fill: #fff; stroke: var(--green-dark); stroke-width: 3; }
.wins-dot { fill: #fff; stroke: #9a7330; stroke-width: 2; }
.evolution-readout { color: #f4f7f5; background: #202925; border-color: #202925; }
.evolution-readout .section-kicker { color: #9db2a8; }
.evolution-readout h2 { color: white; }
.evolution-readout > div { margin-top: 22px; border-top: 1px solid #44504b; }
.evolution-readout article { padding: 18px 0; border-bottom: 1px solid #44504b; }
.evolution-readout span,.evolution-readout small { display: block; color: #aebbb5; font-size: .68rem; }
.evolution-readout strong { display: block; margin: 5px 0; color: white; font-size: 1.25rem; }
.evolution-mix-list { display: grid; gap: 12px; }
.evolution-mix-list article { display: grid; grid-template-columns: 92px minmax(160px,1fr) auto; align-items: center; gap: 14px; }
.evolution-mix-list article > strong { font-size: .76rem; }
.evolution-mix-list article > strong small { display: block; margin-top: 3px; color: var(--muted); font-size: .6rem; font-weight: 600; }
.evolution-mix-list article > span { display: flex; gap: 8px; min-width: 110px; font-size: .64rem; }
.evolution-mix-track { height: 14px; border-radius: 2px; background: #e5e9e6; }
.evolution-mix-bar { display: flex; height: 14px; min-width: 2px; overflow: hidden; border-radius: 2px; }
.evolution-mix-bar i { display: block; min-width: 0; }
.mix-win { background: var(--positive); }.mix-draw { background: var(--yellow); }.mix-loss { background: var(--red); }
.evolution-participation-list { display: grid; gap: 18px; }
.evolution-participation-row { display: grid; grid-template-columns: 112px minmax(180px,1fr); gap: 8px 18px; align-items: center; }
.evolution-participation-season { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.evolution-participation-season strong { font-size: .76rem; }
.evolution-participation-season span { color: var(--green-dark); font-size: 1.15rem; font-weight: 900; }
.evolution-participation-track { display: flex; height: 24px; overflow: hidden; border-radius: 3px; background: #e3e8e4; }
.evolution-participation-track > a { display: grid; min-width: 3px; place-items: center; color: white; text-decoration: none; }
.evolution-participation-track > a:hover,
.evolution-participation-track > a:focus-visible { filter: brightness(1.12); outline: 2px solid white; outline-offset: -3px; }
.evolution-participation-track > a span { font-size: .62rem; font-weight: 900; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.evolution-participation-meta { grid-column: 2; display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.evolution-participation-meta > small { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.evolution-participation-meta > span { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.participation-key { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: .58rem; font-weight: 750; }
.participation-key { text-decoration: none; text-underline-offset: 3px; }
.participation-key strong { color: inherit; font-size: inherit; font-weight: 950; }
.participation-key:hover,
.participation-key:focus-visible { text-decoration: underline; }
.participation-key::before { content:""; width: 7px; height: 7px; border-radius: 1px; background: currentColor; }
.participation-major { background-color: #174f3f; }.participation-key.participation-major { color: #174f3f; background: transparent; }
.participation-world_cup { background-color: #a32935; }.participation-key.participation-world_cup { color: #8d202b; background: transparent; }
.participation-european_championship { background-color: #315f9f; }.participation-key.participation-european_championship { color: #315f9f; background: transparent; }
.participation-asian_championship { background-color: #a65d24; }.participation-key.participation-asian_championship { color: #8a481c; background: transparent; }
.participation-grand_prix { background-color: #287b5e; }.participation-key.participation-grand_prix { color: #287b5e; background: transparent; }
.participation-international_open { background-color: #4b9080; }.participation-key.participation-international_open { color: #35796a; background: transparent; }
.participation-satellite { background-color: #b58a32; }.participation-key.participation-satellite { color: #8b671f; background: transparent; }
.participation-aefm { background-color: #42678b; }.participation-key.participation-aefm { color: #42678b; background: transparent; }
.participation-other { background-color: #7c8581; }.participation-key.participation-other { color: #626b67; background: transparent; }
.evolution-strength-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 4px 0 24px; }
.evolution-strength-summary article { padding: 16px; border: 1px solid #d8dfda; background: #f5f7f4; }
.evolution-strength-summary span,.evolution-strength-summary small,.evolution-strength-summary em { display: block; }
.evolution-strength-summary span { color: var(--muted); font-size: .63rem; font-weight: 850; text-transform: uppercase; }
.evolution-strength-summary strong { display: block; margin: 7px 0 3px; color: var(--green-dark); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.evolution-strength-summary small { color: var(--ink); font-size: .68rem; }
.evolution-strength-summary em { margin-top: 6px; color: var(--muted); font-size: .62rem; font-style: normal; }
.evolution-strength-wrap { overflow-x: auto; }
.evolution-strength-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.evolution-strength-table th,.evolution-strength-table td { padding: 13px 14px; border-bottom: 1px solid #dce2de; text-align: left; }
.evolution-strength-table thead th { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.evolution-strength-table tbody th { font-size: .75rem; }
.evolution-strength-table td strong,.evolution-strength-table td small { display: block; }
.evolution-strength-table td strong { color: var(--green-dark); font-size: 1.05rem; }
.evolution-strength-table td small { margin-top: 2px; color: var(--muted); font-size: .62rem; }
.evolution-player-rating strong,.evolution-player-rating small { display: block; }
.evolution-player-rating strong { color: var(--ink) !important; font-size: 1rem !important; }
.evolution-player-rating small { max-width: 150px; line-height: 1.35; }
.strength-empty { color: #9ca7a2; }
.evolution-method-note { margin: 15px 0 0 !important; font-style: italic; }
.evolution-detail-table td:not(:first-child),.evolution-detail-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.evolution-delta { display: inline-block; margin-left: 4px; font-size: .61rem; font-weight: 800; }
.evolution-delta.is-up { color: var(--green-dark); }.evolution-delta.is-down { color: var(--red); }.evolution-delta.is-neutral { color: var(--muted); }

@media (max-width: 800px) {
  .evolution-page-heading { display: grid; align-items: stretch; }
  .evolution-category-field { width: 100%; }
  .evolution-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .evolution-summary-grid article:nth-child(2) { border-right: 0; }
  .evolution-summary-grid article:nth-child(-n+2) { border-bottom: 1px solid #d8dfda; }
  .evolution-story-grid { grid-template-columns: minmax(0,1fr); }
  .evolution-strength-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .evolution-line-chart svg { width: auto; }
}
@media (max-width: 520px) {
  .player-evolution-section { padding-top: 30px; }
  .evolution-summary-grid article { padding: 16px 14px; }
  .evolution-mix-list article { grid-template-columns: 72px minmax(120px,1fr); gap: 8px; }
  .evolution-mix-list article > span { grid-column: 2; }
  .evolution-participation-row { grid-template-columns: 1fr; gap: 8px; }
  .evolution-participation-meta { grid-column: 1; display: grid; }
  .evolution-participation-meta > span { justify-content: start; }
  .profile-evolution-heading { align-items: baseline; }
  .profile-evolution-heading .text-link { font-size: .67rem; white-space: nowrap; }
  .evolution-strength-summary { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-trend-series path { stroke-dashoffset: 0; animation: none; }
  .ranking-trend-series circle { opacity: 1; animation: none; }
}

.archive-hero,
.profile-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.archive-hero-inner { padding: 52px 0 38px; }
.archive-hero h1,
.profile-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}
.archive-hero p { max-width: 700px; color: var(--muted); line-height: 1.55; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(140px, .75fr));
  gap: 12px;
  align-items: end;
  margin-top: 28px;
}
.archive-filter-bar {
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(125px, .75fr));
}
.archive-filter-bar [hidden] { display: none; }
@media (max-width: 1250px) and (min-width: 761px) {
  .archive-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.field { display: grid; gap: 6px; }
.field span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}
.field input:focus,
.field select:focus { border-color: var(--green); outline: 2px solid rgba(8,123,99,.15); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.archive-results-stage {
  position: relative;
  min-height: 150px;
}

.archive-loading {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 46px;
  background: rgba(244,246,243,.88);
  backdrop-filter: blur(1px);
}

.archive-loading[hidden] {
  display: none;
}

.archive-loading > div {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border: 1px solid #46514c;
  border-radius: 7px;
  background: var(--charcoal);
  color: white;
  box-shadow: 0 14px 32px rgba(12,24,19,.2);
  font-size: .76rem;
}
.archive-card {
  --archive-accent: #718079;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-top: 4px solid var(--archive-accent);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.archive-card-major { --archive-accent: #be8f20; }
.archive-card-world_cup { --archive-accent: #a32935; }
.archive-card-european_championship { --archive-accent: #315f9f; }
.archive-card-asian_championship { --archive-accent: #a65d24; }
.archive-card-grand_prix { --archive-accent: #2a8f79; }
.archive-card-international_open { --archive-accent: #6990ce; }
.archive-card-satellite { --archive-accent: #b86a72; }
.archive-card-aefm { --archive-accent: #80689f; }
.archive-card:hover {
  transform: translateY(-3px);
  border-color: var(--archive-accent);
  box-shadow: var(--shadow);
}
.archive-card-body {
  flex: 1;
  position: relative;
  padding: 15px 42px 16px 16px;
}
.archive-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 25px;
}
.archive-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.archive-card-type {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid #cfd8d2;
  border-radius: 4px;
  background: #f3f6f4;
  color: #43524c;
  font-size: .65rem;
  font-weight: 850;
  text-transform: uppercase;
}
.archive-card-season {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  white-space: nowrap;
}
.archive-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}
.archive-card-title-row > div {
  min-width: 0;
}
.archive-card-body h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}
.archive-card-meta {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
}
.archive-card-thumbnail {
  width: 82px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f9f7;
  object-position: center;
}
.archive-card .winner-list { margin-top: 14px; }
.archive-card-open {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--archive-accent);
  font-size: 1.18rem;
  font-weight: 900;
  transition: transform .16s ease;
}
.archive-card:hover .archive-card-open {
  transform: translateX(3px);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.pagination button {
  min-width: 92px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination span { color: var(--muted); font-size: .8rem; }

.profile-hero-inner {
  min-height: 320px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 35px;
  align-items: center;
  padding: 42px 0;
}
.profile-photo {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #dfe7e2;
  color: var(--green-dark);
  font-size: 3.5rem;
  font-weight: 950;
}
.profile-photo.team { border-radius: 8px; background: transparent; border-color: transparent; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo.team img { width: 84%; height: 84%; object-fit: contain; }
.profile-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .82rem; }
.profile-meta b { color: var(--ink); }
.profile-compare-button {
  margin-top: 22px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 850;
  box-shadow: none;
  cursor: pointer;
}
.profile-compare-button:hover,
.profile-compare-button:focus-visible { color: var(--ink); border-bottom-color: var(--ink); outline: 0; }
.player-compare-dialog {
  width: min(650px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(8,18,14,.3);
}
.player-compare-dialog::backdrop { background: rgba(8,18,14,.68); backdrop-filter: blur(2px); }
.player-compare-dialog-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr); max-height: inherit; }
.player-compare-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--line);
}
.player-compare-dialog header .section-kicker { margin: 0 0 5px; }
.player-compare-dialog h2 { margin: 0; font-family: var(--display); font-size: 1.55rem; line-height: 1; }
.player-compare-dialog header p:last-child { max-width: 500px; margin: 10px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.player-compare-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.player-compare-search { display: grid; gap: 7px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.player-compare-search span,
.player-compare-results-label { color: var(--muted); font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.player-compare-search input {
  width: 100%;
  height: 43px;
  box-sizing: border-box;
  border: 1px solid #aeb9b4;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
}
.player-compare-search input:focus { border-color: var(--green); outline: 2px solid rgba(8,123,99,.14); }
.player-compare-results { min-height: 220px; overflow-y: auto; padding: 8px 26px 22px; }
.player-compare-results-label { margin: 12px 0 5px; }
.player-compare-option {
  width: 100%;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}
.player-compare-option:hover,
.player-compare-option:focus-visible { background: #edf4f1; outline: 0; }
.player-compare-option .search-avatar { width: 39px; height: 39px; }
.player-compare-option strong,
.player-compare-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-compare-option strong { font-size: .84rem; }
.player-compare-option small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.player-compare-option > b { color: var(--green-dark); font-size: 1rem; }
.player-compare-searching { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .75rem; }
.profile-side-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.profile-side-heading h2 { margin: 0; }
.profile-side-heading .text-link { flex: 0 0 auto; font-size: .7rem; }
.player-matches-hero .profile-hero-inner,
.team-matches-hero .profile-hero-inner {
  min-height: 260px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.player-matches-hero-copy,
.team-matches-hero-copy { min-width: 0; }
.player-matches-profile-link {
  display: inline-flex;
  align-items: center;
  margin-top: 21px;
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 3px;
}
.player-matches-profile-link:hover,
.player-matches-profile-link:focus-visible { text-decoration: underline; }
.player-matches-section { padding-top: 50px; }
.player-matches-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.player-matches-heading h2 { margin: 5px 0 8px; }
.player-matches-heading p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}
.player-matches-count {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--green);
  padding: 7px 0;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
}
.player-match-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, .7fr)) minmax(180px, 1.2fr);
  gap: 12px;
  align-items: end;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.player-match-filters .field {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.player-match-filters .field > span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.player-match-filters select,
.player-match-filters input {
  width: 100%;
  min-width: 0;
  height: 39px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: .76rem;
}
.player-match-filters select:focus,
.player-match-filters input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(18, 116, 81, .12);
}
.player-match-result-summary {
  min-height: 18px;
  margin: 15px 0 7px;
  color: var(--muted);
  font-size: .68rem;
  font-style: italic;
}
.player-match-table-stage {
  position: relative;
  min-height: 260px;
  max-width: 100%;
}
.player-match-loading {
  min-height: 250px;
  display: grid;
  place-items: center;
}
.player-match-loading > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .72rem;
}
.player-match-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.player-match-table { min-width: 1090px; }
.team-match-archive-table {
  table-layout: fixed;
  min-width: 1115px;
}
.team-match-archive-table th:nth-child(1) { width: 126px; }
.team-match-archive-table th:nth-child(2) { width: 245px; }
.team-match-archive-table th:nth-child(3) { width: 88px; }
.team-match-archive-table th:nth-child(4) { width: 118px; }
.team-match-archive-table th:nth-child(5) { width: 220px; }
.team-match-archive-table th:nth-child(6) { width: 76px; }
.team-match-archive-table th:nth-child(7) { width: 88px; }
.team-match-archive-table th:nth-child(8) { width: 118px; }
.player-match-table th {
  white-space: nowrap;
  font-size: .62rem;
}
.player-match-table td {
  max-width: 280px;
  vertical-align: middle;
  font-size: .75rem;
}
.player-match-table time { color: var(--muted); white-space: nowrap; }
.player-match-table a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}
.player-match-table a:hover,
.player-match-table a:focus-visible { color: var(--green-dark); text-decoration: underline; }
.player-match-tournament-cell > a,
.player-match-tournament-cell > small { display: block; }
.player-match-tournament-cell > small { margin-top: 3px; }
.player-match-team-context { display: grid; gap: 3px; }
.player-match-tournament-cell small,
.player-match-muted,
.player-match-team-context i {
  color: var(--muted);
  font-size: .64rem;
  font-style: normal;
  font-weight: 500;
}
.player-match-opponent-cell { line-height: 1.4; }
.team-match-archive-table .player-match-tournament-cell,
.team-match-archive-table .player-match-opponent-cell { overflow: hidden; }
.team-match-cell-ellipsis {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-match-separator { color: var(--muted); }
.player-match-phase {
  display: inline-block;
  color: #3d4943;
  font-size: .69rem;
  font-weight: 750;
  white-space: nowrap;
}
.player-match-result {
  display: inline-block;
  min-width: 46px;
  font-size: .82rem;
  font-weight: 950;
  white-space: nowrap;
}
.player-match-result.outcome-win,
.player-match-team-context .outcome-win { color: var(--green-dark); }
.player-match-result.outcome-draw,
.player-match-team-context .outcome-draw { color: #8a6700; }
.player-match-result.outcome-loss,
.player-match-team-context .outcome-loss { color: var(--red); }
.player-match-team-context > small {
  font-size: .68rem;
  font-weight: 900;
}
.player-match-sheet-button {
  width: max-content;
  min-height: 25px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--green-dark);
  padding: 3px 7px;
  font: inherit;
  font-size: .61rem;
  font-weight: 900;
  cursor: pointer;
}
.player-match-sheet-button:hover,
.player-match-sheet-button:focus-visible { border-color: var(--green); background: #edf4f1; }
.team-match-goals {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.team-match-archive-table td:last-child { white-space: nowrap; }
.team-match-sheet-action {
  display: inline-grid;
  grid-template-rows: 25px 12px;
  justify-items: center;
  align-items: start;
  gap: 2px;
  min-width: 96px;
  min-height: 39px;
  vertical-align: middle;
}
.team-match-sheet-button-placeholder { display: block; width: 1px; height: 25px; }
.team-match-partial-sheet {
  color: #7d7461;
  font-size: .58rem;
  font-style: italic;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.profile-team-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}
.profile-team-link:hover,
.profile-team-link:focus-visible { text-decoration: underline; }
.profile-sticky-identity {
  position: fixed;
  z-index: 25;
  top: var(--portal-header-height, 66px);
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(201, 211, 204, .9);
  background: rgba(249, 251, 249, .94);
  box-shadow: 0 10px 24px rgba(25, 38, 31, .08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-112%) scale(.975);
  transform-origin: top center;
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, .72, .25, 1);
  backdrop-filter: blur(14px);
}
.profile-sticky-identity.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.profile-sticky-identity-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.profile-sticky-photo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #dfe7e2;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 950;
}
.profile-sticky-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-sticky-photo.team { border-radius: 5px; background: transparent; border-color: transparent; }
.profile-sticky-photo.team img { width: 84%; height: 84%; object-fit: contain; }
.profile-sticky-copy { min-width: 0; display: grid; gap: 2px; }
.profile-sticky-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-sticky-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-sticky-copy span a { pointer-events: auto; }
.team-family-nav {
  display: flex;
  align-items: baseline;
  gap: 9px 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: .74rem;
}
.team-family-nav > strong {
  color: var(--ink);
  font-size: .62rem;
  font-weight: 950;
  text-transform: uppercase;
}
.team-family-nav > span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.team-family-nav small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}
.team-family-nav a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}
.team-family-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.team-family-nav b {
  color: var(--ink);
  font-weight: 850;
}

.profile-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: white;
}
.profile-stat {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid #3c4743;
}
.profile-stat:last-child { border-right: 0; }
.profile-stat span { display: block; color: #9fada7; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.profile-stat strong { display: block; margin-top: 10px; font-size: 1.8rem; line-height: 1; }
.profile-data-coverage-shell {
  min-height: 29px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.profile-data-coverage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px 12px;
  flex-wrap: wrap;
  margin: 5px 0 0;
  color: #74807b;
  font-size: .65rem;
  font-style: italic;
  line-height: 1.35;
}
.profile-data-coverage > span { white-space: nowrap; }
.profile-data-coverage > span + span::before {
  content: "·";
  margin-right: 12px;
  color: #b1bab6;
}
.profile-data-coverage-info {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #aeb8b3;
  border-radius: 50%;
  color: #66736d;
  font-size: .55rem;
  font-style: normal;
  font-weight: 850;
}
@media (max-width: 600px) {
  .profile-data-coverage-shell { justify-content: center; min-height: 54px; }
  .profile-data-coverage { justify-content: center; gap: 3px 10px; text-align: center; }
  .profile-data-coverage > span + span::before { display: none; }
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 34px;
}
.profile-grid > *,
.profile-block {
  min-width: 0;
  max-width: 100%;
}
.profile-block + .profile-block { margin-top: 40px; }
.team-contributors-block { margin-top: 44px; }
.profile-block h2 { margin: 0 0 16px; font-size: 1.35rem; }
.profile-inline-title {
  display: flex;
  gap: 9px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.profile-inline-title h2 { margin: 0; }
.profile-section-count {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.profile-block-intro { margin: -8px 0 16px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.profile-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.profile-table-heading h2 { margin: 0; }
.profile-table-heading .profile-inline-title { margin-bottom: 0; }
.profile-table-filter { width: min(270px, 45%); }
.profile-table-filter input { min-width: 0; }
.profile-table-expander-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}
.profile-table-expander-row[hidden] { display: none; }
.profile-table-expander {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 4px 1px;
  font: inherit;
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}
.profile-table-expander b { font-size: .78rem; transition: transform .15s ease; }
.profile-table-expander:hover span { text-decoration: underline; text-underline-offset: 3px; }
.profile-table-expander:hover b { transform: translateY(2px); }
.profile-table-expander[aria-expanded="true"]:hover b { transform: translateY(-2px); }
.profile-table-expander:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.opponent-record-player-link { text-decoration: none; }
.opponent-record-player-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.opponent-record-row { cursor: pointer; transition: background .15s ease; }
.opponent-record-row:hover,
.opponent-record-row:focus-visible {
  background: #edf4f1;
  outline: 2px solid transparent;
}
.opponent-record-action-column { width: 1%; }
.opponent-record-row td:last-child { text-align: right; }
.opponent-record-detail-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--green-dark);
  font-size: .68rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.opponent-record-detail-link b { font-size: .9rem; transition: transform .15s ease; }
.opponent-record-detail-link:hover,
.opponent-record-detail-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.opponent-record-detail-link:hover b,
.opponent-record-detail-link:focus-visible b { transform: translateX(2px); }
.profile-rank-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  background: var(--surface);
}
.profile-rank-summary > i { width: 1px; background: var(--line); }
.profile-rank-summary > a {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  color: var(--ink);
  text-decoration: none;
}
.profile-rank-summary > a:hover { background: #edf4f1; }
.profile-rank-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 850;
  text-transform: uppercase;
}
.profile-rank-summary span small {
  display: inline-block;
  margin-left: 0;
  color: var(--green-dark);
  font-size: .66rem;
  font-weight: 850;
  text-transform: none;
}
.profile-rank-summary strong {
  color: var(--green-dark);
  font-size: 1.18rem;
  white-space: nowrap;
}
.profile-rank-summary strong small {
  color: var(--muted);
  font-size: .55em;
  font-weight: 750;
}
.profile-rank-loading {
  grid-column: 1 / -1;
  min-height: 62px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .7rem;
}

.profile-best-rankings {
  padding: 0 12px 8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--surface);
}
.profile-best-rankings .data-table-wrap {
  border-top: 0;
}
.profile-best-rankings + .profile-block {
  margin-top: 40px;
}
.best-rankings-table th:nth-child(n+2),
.best-rankings-table td:nth-child(n+2) {
  text-align: right;
}
.best-rankings-table tbody tr {
  background: linear-gradient(90deg, rgba(20, 113, 82, .045), transparent 42%);
}
.best-rankings-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(20, 113, 82, .1), rgba(20, 113, 82, .025));
}
.profile-rating-distribution {
  padding: 26px;
  border: 1px solid #34423c;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
}
.profile-rating-distribution .profile-side-heading {
  align-items: end;
  margin-bottom: 10px;
}
.profile-rating-distribution .section-kicker { margin-bottom: 5px; color: #8dd9c8; }
.profile-rating-distribution h2 { margin-bottom: 0; }
.profile-rating-distribution .profile-block-intro { color: #bdc8c3; }
.rating-distribution-position {
  color: #8dd9c8;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}
.rating-distribution-chart {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}
.rating-distribution-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
}
.rating-zone rect { opacity: .5; }
.rating-zone-lower rect { fill: #e9eef0; }
.rating-zone-middle rect { fill: #f4e9c8; }
.rating-zone-high rect { fill: #dcece6; }
.rating-zone-elite rect { fill: #cde4d8; }
.rating-zone text {
  fill: #52605b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.rating-threshold line {
  stroke: rgba(54, 67, 62, .26);
  stroke-dasharray: 3 4;
}
.rating-threshold text,
.rating-edge-label {
  fill: #67736f;
  font-size: 9px;
  font-weight: 750;
}
.rating-distribution-bin { fill: rgba(32, 39, 36, .075); }
.rating-distribution-area { fill: rgba(19, 111, 83, .12); }
.rating-distribution-line {
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rating-player-marker line {
  stroke: #121916;
  stroke-width: 1.4;
}
.rating-player-marker path,
.rating-player-marker circle { fill: #121916; }
.rating-player-marker text {
  fill: #121916;
  font-size: 10px;
  font-weight: 900;
}
.rating-distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 11px;
  color: #bdc8c3;
  font-size: .68rem;
}
.rating-distribution-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rating-distribution-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid rgba(32,39,36,.12);
}
.rating-legend-lower i { background: #e9eef0; }
.rating-legend-middle i { background: #f4e9c8; }
.rating-legend-high i { background: #dcece6; }
.rating-legend-elite i { background: #cde4d8; }
.rating-distribution-note {
  margin: 8px 0 0;
  color: #aebbb5;
  font-size: .66rem;
  font-style: italic;
}
@media (max-width: 560px) {
  .profile-rating-distribution { padding: 18px 14px; }
  .profile-rating-distribution .profile-side-heading { align-items: start; }
  .rating-distribution-position { padding-top: 4px; font-size: .64rem; }
  .rating-distribution-chart svg { min-height: 190px; }
  .rating-zone text { font-size: 8px; }
  .rating-player-marker text { font-size: 8.5px; }
  .rating-distribution-legend { display: grid; grid-template-columns: 1fr 1fr; }
}
.best-ranking-position {
  color: var(--green-dark);
  font-size: 1.35rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.best-rankings-table time,
.best-ranking-points {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chart-frame {
  min-height: 260px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}
.bar-chart { height: 220px; display: flex; gap: 8px; align-items: end; }
.bar-group { min-width: 28px; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; }
.bar-stack { height: 170px; display: flex; align-items: end; justify-content: center; gap: 2px; }
.bar { width: 24%; min-width: 4px; border-radius: 2px 2px 0 0; transition: height .5s ease; }
.bar-win { background: var(--positive); }
.bar-draw { background: var(--yellow); }
.bar-loss { background: var(--red); }
.bar-label { margin-top: 8px; overflow: hidden; color: var(--muted); font-size: .6rem; text-align: center; text-overflow: ellipsis; }
.chart-legend { display: flex; gap: 16px; margin-top: 12px; color: var(--muted); font-size: .7rem; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; }

.honour-list { border-top: 1px solid var(--line); }
.honour-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.honour-row time { color: var(--muted); font-size: .7rem; }
.honour-row a { font-size: .84rem; font-weight: 800; text-decoration: none; }
.honour-row a:hover { color: var(--green-dark); text-decoration: underline; }
.recent-match-copy { display: grid; min-width: 0; gap: 3px; }
.recent-match-copy small { display: block; min-width: 0; }
.recent-match-opponent,
.recent-match-tournament {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-match-tournament {
  color: #62706b;
  font-size: .68rem !important;
  font-weight: 650 !important;
}
.recent-match-result {
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 3px 5px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.recent-match-result:hover,
.recent-match-result:focus-visible {
  background: #edf4f1;
  outline: 2px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-team-acta {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
}
.portal-team-acta::backdrop { background: rgba(15, 23, 42, .55); }
.portal-team-acta-shell {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 2rem);
  box-sizing: border-box;
  padding: 20px;
  overflow: hidden;
}
.portal-team-acta-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.portal-team-acta-heading h2 { margin: 0; font-size: 1.25rem; }
.portal-team-acta-code { color: var(--muted); font-size: .72rem; }
.portal-team-acta-tournament {
  display: inline-block;
  margin-top: 3px;
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}
.portal-team-acta-tournament:hover,
.portal-team-acta-tournament:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-team-acta-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 1.5rem;
  cursor: pointer;
}
.portal-team-acta-content { min-height: 80px; overflow: auto; }
.portal-team-acta-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.portal-team-acta-summary > :first-child { text-align: right; }
.portal-team-acta-summary .winner-name,
.portal-team-acta-table .winner-name { color: var(--green-dark); font-weight: 900; }
.portal-team-acta-score { text-align: center; }
.portal-team-acta-score strong { display: block; font-size: 1.7rem; }
.portal-team-acta-score small { color: var(--muted); white-space: nowrap; }
.portal-team-acta-table-wrap { overflow: auto; }
.portal-team-acta-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.portal-team-acta-table th,
.portal-team-acta-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}
.portal-team-acta-table th { background: var(--surface); color: var(--muted); }
.portal-team-acta-table th:first-child,
.portal-team-acta-table td:first-child,
.portal-team-acta-table th:nth-child(3),
.portal-team-acta-table td:nth-child(3) { text-align: center; }
.portal-team-acta-period {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-team-acta-second-row td { background: var(--surface); }
.contributor-player-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}
.affiliate-only-contributor {
  background: rgba(89, 101, 95, .055);
  color: #77807c;
}
.affiliate-only-contributor:hover { background: rgba(89, 101, 95, .1) !important; }
.affiliate-only-contributor .contributor-player-cell > span > .athlete-link {
  color: #59645f;
  font-style: italic;
}
.affiliate-contribution-note {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
  color: var(--muted);
  font-size: .64rem;
  font-style: italic;
  font-weight: 600;
}
.affiliate-contribution-note a {
  color: var(--green-dark);
  font-style: normal;
  text-decoration: none;
}
.affiliate-contribution-note a:hover { text-decoration: underline; }
.club-history-info {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1px solid #9aa7a1;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: 800 .68rem/1 Georgia, serif;
  cursor: pointer;
}
.club-history-info:hover,
.club-history-info:focus-visible {
  border-color: var(--green-dark);
  color: var(--green-dark);
  outline: 2px solid rgba(8, 123, 99, .14);
}
.club-history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #edf1ef;
  color: #46534e;
  padding: 2px 7px;
  font-size: .64rem;
  font-weight: 850;
  white-space: nowrap;
}
.club-history-badge.status-current { border-color: #84b9aa; background: #e5f3ee; color: #075a49; }
.club-history-badge.status-loan { border-color: #d9ad56; background: #fff5d8; color: #78530b; }
.club-history-badge.status-former { background: #f0f1f0; color: #606964; }
.club-history-period-column { color: var(--muted); font-size: .72rem; }
.contributor-mobile-history { display: none; }
.club-history-dialog { width: min(720px, calc(100vw - 2rem)); }
.club-history-dialog .section-kicker { margin: 0 0 3px; }
.club-history-content {
  display: grid;
  gap: 16px;
  min-height: 80px;
  overflow: auto;
}
.club-history-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.club-history-summary > strong { color: var(--ink); font-size: .9rem; }
.club-history-summary p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.club-history-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.club-history-period-grid section {
  border-top: 2px solid var(--ink);
  padding-top: 9px;
}
.club-history-content h3 {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.club-history-period-grid p { margin: 0; font-weight: 850; }
.club-history-period-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.4;
}
.club-history-evidence ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.club-history-evidence li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
}
.club-history-evidence li span { color: var(--muted); text-align: right; }
.club-history-source {
  display: inline-block;
  margin: 9px 12px 0 0;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .team-family-nav {
    display: grid;
    gap: 7px;
  }
  .club-history-status-column,
  .club-history-period-column { display: none; }
  .contributor-mobile-history {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 600;
  }
  .club-history-period-grid { grid-template-columns: 1fr; }
  .club-history-evidence li { display: grid; gap: 3px; }
  .club-history-evidence li span { text-align: left; }
}
.rivalry-score-link {
  min-width: 58px;
  color: var(--green-dark);
  font-size: .9rem !important;
  font-weight: 950 !important;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: rgba(7,90,73,.35);
  text-underline-offset: 3px;
}
.rivalry-score-link:hover { text-decoration-color: currentColor !important; }

.head-to-head-hero {
  border-bottom: 1px solid #39433f;
  background: var(--charcoal);
  color: white;
}
.head-to-head-hero-inner {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 46px 0;
}
.head-to-head-player {
  min-width: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  color: white;
  text-decoration: none;
}
.head-to-head-player.is-opponent {
  justify-content: flex-end;
  text-align: right;
}
.head-to-head-player > span:not(.head-to-head-photo) { min-width: 0; }
.head-to-head-player small,
.head-to-head-player em {
  display: block;
  color: #9fada7;
  font-size: .7rem;
  font-style: normal;
}
.head-to-head-player strong {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 2.6vw, 2.3rem);
  line-height: 1.06;
}
.head-to-head-player:hover strong { color: #8dd9c8; }
.head-to-head-photo {
  width: 118px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #53605a;
  border-radius: 50%;
  background: #dfe7e2;
  color: var(--green-dark);
  font-size: 2.2rem;
  font-weight: 950;
}
.head-to-head-photo img { width: 100%; height: 100%; object-fit: cover; }
.head-to-head-score { text-align: center; }
.head-to-head-score > span {
  display: block;
  color: #8dd9c8;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.head-to-head-score strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--yellow);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .9;
  white-space: nowrap;
}
.head-to-head-score small { color: #9fada7; font-size: .68rem; line-height: 1.5; }
.head-to-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr);
  gap: 40px;
}
.head-to-head-grid > * { min-width: 0; }
.head-to-head-sidebar { min-width: 0; }
.rivalry-trends-section {
  border-bottom: 1px solid #36423d;
  background: #202925;
  color: white;
}
.rivalry-trends-heading { align-items: end; }
.rivalry-trends-heading h2 { color: white; }
.rivalry-trends-heading > p { color: #aebbb5; }
.rivalry-trends-heading .section-kicker { color: #8dd9c8; }
.rivalry-trends-stage { min-height: 390px; }
.rivalry-trends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.rivalry-trend-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #46534d;
  border-top: 3px solid #6ed7bd;
  border-radius: 7px;
  background: #27322d;
  box-shadow: 0 16px 34px rgba(8, 16, 12, .16);
}
.rivalry-trend-card + .rivalry-trend-card { border-top-color: #f4c94d; }
.rivalry-trend-card > header {
  min-height: 94px;
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #3e4a45;
}
.rivalry-trend-card > header > div { min-width: 0; }
.rivalry-trend-card h3 { margin: 0; color: white; font-size: 1rem; }
.rivalry-trend-card header p { margin: 6px 0 0; color: #aebbb5; font-size: .67rem; line-height: 1.45; }
.rivalry-trend-category {
  flex: 0 0 122px;
  display: grid;
  gap: 5px;
  color: #9daba4;
  font-size: .55rem;
  font-weight: 900;
  text-transform: uppercase;
}
.rivalry-trend-category[hidden] { display: none; }
.rivalry-trend-category select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #59665f;
  border-radius: 5px;
  background: #1d2522;
  color: white;
  padding: 0 25px 0 9px;
  font: inherit;
  font-size: .68rem;
  text-transform: none;
}
.rivalry-trend-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.rivalry-trend-chart { display: block; width: 100%; min-width: 620px; height: auto; }
.rivalry-trend-gridline line { stroke: #46534d; stroke-width: 1; stroke-dasharray: 2 6; }
.rivalry-trend-gridline text,
.rivalry-trend-year {
  fill: #8f9e97;
  font-size: 10px;
  text-anchor: end;
}
.rivalry-trend-year { text-anchor: middle; }
.rivalry-trend-series path {
  fill: none;
  stroke: var(--series-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ranking-trend-draw 1.1s cubic-bezier(.22,.75,.25,1) var(--series-delay) forwards;
}
.rivalry-trend-series circle {
  fill: #27322d;
  stroke: var(--series-color);
  stroke-width: 2.5;
  opacity: 0;
  animation: ranking-trend-point .25s ease var(--series-delay) forwards;
}
.rivalry-trend-series circle.is-provisional { stroke-dasharray: 2 2; opacity: .72; }
.rivalry-trend-point-label {
  fill: var(--series-color);
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #27322d;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.rivalry-trend-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 18px;
}
.rivalry-trend-legend > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #46534d;
  border-radius: 5px;
  background: #222c27;
}
.rivalry-trend-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--series-color); }
.rivalry-trend-legend b { overflow: hidden; color: #eef3f0; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.rivalry-trend-legend small { color: #aebbb5; font-size: .61rem; font-weight: 800; }
.rivalry-trends-loading,
.rivalry-trends-empty {
  min-height: 390px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #aebbb5;
  font-size: .72rem;
  text-align: center;
}
.rivalry-trends-loading strong { color: inherit; font-size: inherit; }
.rivalry-trends-note { margin: 13px 0 0; color: #899690; font-size: .64rem; }
.comparison-panel { border-top: 3px solid var(--yellow); padding-top: 18px; }
.comparison-panel-heading { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.comparison-panel-heading .section-kicker { min-width: 0; }
.section-text-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: .62rem;
  font-weight: 900;
  text-decoration: none;
}
.section-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.comparison-panel .section-kicker { margin: 0 0 5px; color: var(--green-dark); }
.comparison-panel h2 { margin-bottom: 14px; }
.comparison-forecast-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 23px;
}
.comparison-forecast-head span { min-width: 0; }
.comparison-forecast-head span:nth-child(2) { text-align: center; }
.comparison-forecast-head span:last-child { text-align: right; }
.comparison-forecast-head strong { display: block; color: var(--ink); font-size: 1.45rem; line-height: 1; }
.comparison-forecast-head span:first-child strong { color: var(--green-dark); }
.comparison-forecast-head span:last-child strong { color: var(--red); }
.comparison-forecast-head small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-probability { height: 7px; display: flex; overflow: hidden; margin-top: 9px; background: #dce3df; }
.comparison-probability span { display: block; min-width: 0; }
.comparison-probability .is-player { background: var(--green); }
.comparison-probability .is-draw { background: var(--yellow); }
.comparison-probability .is-opponent { background: #d8665a; }
.comparison-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 21px;
}
.comparison-confidence > small { color: var(--muted); font-size: .58rem; text-align: right; }
.comparison-metrics { border-top: 1px solid var(--line); }
.comparison-metric-group-label {
  padding: 14px 0 7px;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
.comparison-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.comparison-metric-row > span { min-width: 0; }
.comparison-metric-row > span:last-child { text-align: right; }
.comparison-metric-row > b {
  color: var(--muted);
  font-size: .57rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.comparison-metric-row strong { display: block; color: var(--ink); font-size: .9rem; }
.comparison-metric-row small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.3;
  text-overflow: ellipsis;
}
.comparison-metric-row small.is-up { color: var(--green-dark); }
.comparison-metric-row small.is-down { color: var(--red); }
.comparison-method { margin: 15px 0 0; color: var(--muted); font-size: .6rem; line-height: 1.55; }

.rivalry-analysis-hero { overflow: hidden; background: var(--charcoal); color: white; }
.rivalry-analysis-hero-inner {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-top: 46px;
  padding-bottom: 46px;
}
.rivalry-analysis-person {
  min-width: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  color: white;
  text-decoration: none;
}
.rivalry-analysis-person.is-opponent { justify-content: flex-end; text-align: right; }
.rivalry-analysis-person > span:not(.head-to-head-photo) { min-width: 0; }
.rivalry-analysis-person small,
.rivalry-analysis-person em { display: block; color: #9fada7; font-size: .62rem; font-style: normal; }
.rivalry-analysis-person strong {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 2.25vw, 2rem);
  line-height: 1.08;
}
.rivalry-analysis-person:hover strong { color: #8dd9c8; }
.rivalry-analysis-title { text-align: center; }
.rivalry-analysis-title .section-kicker { margin: 0 0 9px; color: #8dd9c8; }
.rivalry-analysis-title h1 { margin: 0; color: white; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .96; }
.rivalry-analysis-title > p:not(.section-kicker) { margin: 14px auto; max-width: 420px; color: #bdc8c3; font-size: .78rem; line-height: 1.55; }
.light-text-link { color: var(--yellow); font-size: .65rem; font-weight: 900; text-decoration: none; }
.light-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rivalry-analysis-forecast { padding: 34px 0 30px; border-bottom: 1px solid var(--line); background: #eef3f0; }
.rivalry-analysis-loading { min-height: 118px; margin-top: 18px; background: transparent; }
.rivalry-forecast-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.rivalry-forecast-heading .section-kicker { margin: 0 0 4px; }
.rivalry-forecast-heading h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 2rem); }
.rivalry-analysis-probabilities,
.model-mini-forecast { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; }
.rivalry-analysis-probabilities { margin-top: 25px; }
.rivalry-analysis-probabilities span:nth-child(2), .model-mini-forecast span:nth-child(2) { text-align: center; }
.rivalry-analysis-probabilities span:last-child, .model-mini-forecast span:last-child { text-align: right; }
.rivalry-analysis-probabilities small,
.model-mini-forecast small { display: block; overflow: hidden; color: var(--muted); font-size: .62rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.rivalry-analysis-probabilities strong { display: block; margin-top: 4px; color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.4rem); }
.rivalry-analysis-probabilities span:first-child strong { color: var(--green-dark); }
.rivalry-analysis-probabilities span:last-child strong { color: var(--red); }
.comparison-probability.is-large { height: 10px; margin-top: 10px; }
.rivalry-analysis-asof { margin: 9px 0 0; color: var(--muted); font-size: .6rem; text-align: right; }
.rivalry-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rivalry-model-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: white; }
.rivalry-model-card.is-poisson { border-top-color: var(--yellow); }
.rivalry-model-card.is-direct { border-top-color: #d8665a; }
.rivalry-model-card > p:first-child { margin: 0 0 9px; color: var(--muted); font-size: .58rem; font-weight: 950; }
.rivalry-model-card h3 { margin: 0 0 20px; font-size: 1.05rem; }
.model-mini-forecast strong { display: block; margin-top: 3px; color: var(--ink); font-size: 1rem; }
.model-mini-forecast span:first-child strong { color: var(--green-dark); }
.model-mini-forecast span:last-child strong { color: var(--red); }
.rivalry-model-card > small { display: block; margin-top: 10px; color: var(--green-dark); font-size: .58rem; font-weight: 850; }
.rivalry-model-card .model-description { margin: 15px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.6; }
.rivalry-analysis-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f3f6f4; }
.rivalry-analysis-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; }
.expected-score { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 23px 0 18px; }
.expected-score span { padding: 14px; background: #eef3f0; }
.expected-score small { display: block; color: var(--muted); font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.expected-score strong { display: block; margin-top: 6px; color: var(--ink); font-size: 1.35rem; }
.scoreline-list { border-top: 1px solid var(--line); }
.scoreline-list > div { display: grid; grid-template-columns: 24px 62px minmax(70px, 1fr) 44px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scoreline-list span { color: var(--muted); font-size: .56rem; }
.scoreline-list strong { font-size: .92rem; }
.scoreline-list i { height: 5px; overflow: hidden; background: #e1e7e3; }
.scoreline-list i b { display: block; height: 100%; background: var(--green); }
.scoreline-list em { color: var(--muted); font-size: .62rem; font-style: normal; text-align: right; }
.evidence-list { margin-top: 22px; border-top: 1px solid var(--line); }
.evidence-list > div { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.evidence-list span { min-width: 0; }
.evidence-list strong, .evidence-list small { display: block; }
.evidence-list strong { color: var(--ink); font-size: .72rem; }
.evidence-list small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.evidence-list b { flex: 0 0 auto; color: var(--green-dark); font-size: 1.1rem; }
.rivalry-timeline-card { padding: 22px; border: 1px solid var(--line); background: white; }
.rivalry-timeline-card svg { width: 100%; height: auto; min-height: 230px; overflow: visible; }
.rivalry-timeline-card svg text { fill: var(--muted); font-size: 11px; }
.chart-grid { stroke: #dfe6e2; stroke-width: 1; }
.rivalry-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rivalry-line.is-actual { stroke: var(--green); }
.rivalry-line.is-expected { stroke: #9da9a3; stroke-width: 2; stroke-dasharray: 7 6; }
.rivalry-point { stroke: white; stroke-width: 2; fill: var(--yellow); }
.rivalry-point.outcome-win { fill: var(--green); }
.rivalry-point.outcome-loss { fill: var(--red); }
.rivalry-chart-legend { display: flex; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: .6rem; font-weight: 800; }
.rivalry-chart-legend span::before { content: ''; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--green); }
.rivalry-chart-legend .is-expected::before { height: 2px; background: #9da9a3; }
.rivalry-split-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rivalry-split-grid .profile-block { min-width: 0; }
.rivalry-split-grid h3 { margin: 0 0 14px; font-size: .95rem; }
.compact-data-table th, .compact-data-table td { padding-right: 8px; padding-left: 8px; font-size: .62rem; }
.methodology-note { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 44px; padding: 28px; border-left: 3px solid var(--yellow); background: var(--charcoal); color: white; }
.methodology-note .section-kicker { margin-top: 0; color: #8dd9c8; }
.methodology-note h2 { margin: 0; color: white; }
.methodology-columns { columns: 2; column-gap: 30px; color: #bdc8c3; font-size: .67rem; line-height: 1.65; }
.methodology-columns p { margin: 0 0 14px; break-inside: avoid; }
.methodology-columns strong { color: white; }

@media (max-width: 900px) {
  .rivalry-analysis-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(210px, .8fr) minmax(0, 1fr); gap: 18px; }
  .rivalry-analysis-person .head-to-head-photo { width: 82px; }
  .rivalry-model-grid, .rivalry-split-grid { grid-template-columns: 1fr; }
  .rivalry-analysis-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .rivalry-analysis-hero-inner { grid-template-columns: 1fr 1fr; min-height: 0; padding-top: 32px; padding-bottom: 34px; }
  .rivalry-analysis-title { grid-column: 1 / -1; grid-row: 1; }
  .rivalry-analysis-person { align-items: flex-start; }
  .rivalry-analysis-person.is-opponent { align-items: flex-end; }
  .rivalry-analysis-person .head-to-head-photo { width: 58px; }
  .rivalry-analysis-person strong { font-size: 1rem; }
  .rivalry-analysis-person small, .rivalry-analysis-person em { font-size: .55rem; }
  .rivalry-forecast-heading { align-items: start; }
  .rivalry-analysis-probabilities { gap: 7px; }
  .rivalry-analysis-probabilities strong { font-size: 1.35rem; }
  .methodology-note { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .methodology-columns { columns: 1; }
  .rivalry-timeline-card { padding: 14px 8px; overflow-x: auto; }
  .rivalry-timeline-card svg { min-width: 620px; }
}
.team-compare-hero { background: var(--ink); color: #fff; }
.team-compare-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 255px;
  padding-top: 45px;
  padding-bottom: 45px;
}
.team-compare-identity {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.team-compare-identity.is-opponent { justify-content: flex-end; text-align: right; }
.team-compare-identity > span:not(.team-compare-mark) { min-width: 0; }
.team-compare-identity small {
  display: block;
  margin-bottom: 6px;
  color: #9fada7;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}
.team-compare-identity strong {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1;
  text-overflow: ellipsis;
}
.team-compare-identity:hover strong { color: var(--yellow); }
.team-compare-mark {
  display: grid;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #5f6d67;
  border-radius: 50%;
  background: #dfe7e3;
  color: var(--green-dark);
  font-size: 1.7rem;
  font-weight: 950;
}
.team-compare-mark img { width: 100%; height: 100%; object-fit: contain; }
.team-compare-versus { text-align: center; }
.team-compare-versus span { display: block; color: #8dd9c8; font-size: .59rem; font-weight: 900; text-transform: uppercase; }
.team-compare-versus b { display: block; margin-top: 9px; color: var(--yellow); font-family: var(--display); font-size: 2.2rem; }
.team-compare-builder-section { padding-top: 62px; }
.team-compare-heading {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(320px, 1fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 30px;
}
.team-compare-heading h1,
.team-compare-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1; }
.team-compare-heading > p { max-width: 690px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.team-roster-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.team-roster-picker { min-width: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.team-roster-picker > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.team-roster-picker header .section-kicker { margin: 0 0 4px; color: var(--green-dark); font-size: .54rem; }
.team-roster-picker h2 { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.team-roster-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 11px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.team-roster-edit span { color: var(--green-dark); font-size: 1.05rem; line-height: 1; }
.team-roster-edit b { font-size: .61rem; font-weight: 900; }
.team-roster-edit:hover,
.team-roster-edit:focus-visible { border-color: var(--green-dark); background: #e8f2ee; outline: 0; }
.team-roster-edit:disabled { cursor: default; opacity: .4; }
.team-roster-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  min-height: 238px;
  align-content: start;
  padding: 7px 4px;
}
.team-selected-player {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}
.team-selected-player > span { color: #91a099; font-size: .55rem; font-weight: 900; }
.team-selected-player > div { min-width: 0; }
.team-selected-player a {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-selected-player a:hover { color: var(--green-dark); text-decoration: underline; }
.team-selected-player small { display: block; margin-top: 3px; color: var(--muted); font-size: .51rem; }
.team-selected-player > strong { color: var(--green-dark); font-size: .69rem; text-align: right; }
.team-selected-player > strong small { color: var(--muted); font-size: .49rem; font-weight: 500; }
.team-roster-picker > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 0 4px;
}
.team-roster-picker > footer small { color: var(--muted); font-size: .58rem; }
.team-roster-picker > footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: .56rem;
  font-weight: 900;
}
.team-roster-picker > footer span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}
.team-roster-picker > footer span.is-valid { color: var(--green-dark); }
.team-roster-dialog {
  width: min(880px, calc(100vw - 30px));
  max-width: none;
  max-height: min(820px, calc(100vh - 30px));
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f8faf8;
  box-shadow: 0 24px 80px rgba(9, 20, 15, .3);
}
.team-roster-dialog::backdrop { background: rgba(8,18,14,.72); backdrop-filter: blur(3px); }
.team-roster-dialog-shell { display: grid; grid-template-rows: auto auto minmax(180px, 1fr) auto; max-height: inherit; }
.team-roster-dialog-shell > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 27px 21px;
  background: var(--ink);
  color: #fff;
}
.team-roster-dialog header .section-kicker { margin: 0 0 6px; color: #8dd9c8; }
.team-roster-dialog h2 { margin: 0; font-family: var(--display); font-size: 1.65rem; line-height: 1; }
.team-roster-dialog header p:last-child { max-width: 560px; margin: 10px 0 0; color: #aebbb5; font-size: .69rem; line-height: 1.5; }
.team-roster-dialog .player-compare-close { border-color: #53615b; color: #fff; }
.team-roster-dialog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 17px 27px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.team-roster-dialog-tools label { display: grid; gap: 6px; color: var(--muted); font-size: .56rem; font-weight: 900; text-transform: uppercase; }
.team-roster-dialog-tools input {
  width: 100%;
  min-height: 39px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #f8faf8;
  color: var(--ink);
  font: inherit;
  font-size: .75rem;
}
.team-roster-dialog-tools input:focus { border-color: var(--green); outline: 2px solid rgba(8,123,99,.14); }
.team-roster-dialog-count { min-width: 130px; text-align: right; }
.team-roster-dialog-count strong,
.team-roster-dialog-count small { display: block; }
.team-roster-dialog-count strong { color: var(--ink); font-family: var(--display); font-size: 1.45rem; }
.team-roster-dialog-count small { margin-top: 4px; color: var(--red); font-size: .55rem; font-weight: 850; }
.team-roster-dialog-count small.is-valid { color: var(--green-dark); }
.team-roster-dialog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  overflow-y: auto;
  padding: 8px 27px 18px;
}
.team-roster-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, opacity .16s ease;
}
.team-roster-option:hover { background: #eef4f1; }
.team-roster-option:has(input:checked) { background: #e3f1eb; }
.team-roster-option:has(input:disabled) { cursor: not-allowed; opacity: .44; }
.team-roster-option input { position: absolute; opacity: 0; pointer-events: none; }
.team-roster-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #9eaaa5;
  color: transparent;
  font-size: .65rem;
  font-weight: 950;
}
.team-roster-option input:focus-visible + .team-roster-check { outline: 2px solid var(--yellow); outline-offset: 2px; }
.team-roster-option input:checked + .team-roster-check { border-color: var(--green); background: var(--green); color: #fff; }
.team-roster-player,
.team-roster-rating { min-width: 0; }
.team-roster-player strong,
.team-roster-player small,
.team-roster-rating b,
.team-roster-rating small { display: block; }
.team-roster-player strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.team-roster-player small,
.team-roster-rating small { margin-top: 3px; color: var(--muted); font-size: .56rem; }
.team-roster-rating { text-align: right; }
.team-roster-rating b { color: var(--green-dark); font-size: .78rem; }
.team-roster-dialog-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 12px 27px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.team-roster-dialog footer p { max-width: 500px; margin: 0; color: var(--muted); font-size: .58rem; line-height: 1.45; }
.team-roster-dialog footer > div { display: flex; gap: 8px; }
.portal-secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
  cursor: pointer;
}
.portal-secondary-button:hover { border-color: var(--ink); background: #f0f4f2; }
.team-compare-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.team-compare-action-bar p { margin: 0; color: var(--muted); font-size: .68rem; }
.portal-primary-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  background: var(--green-dark);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}
.portal-primary-button:hover:not(:disabled) { background: var(--ink); }
.portal-primary-button:disabled { border-color: #b9c1bd; background: #d7ddda; color: #7b8781; cursor: not-allowed; }
.team-scenario-section { border-top: 1px solid var(--line); background: #eef2ef; }
.team-compare-heading.is-results { margin-bottom: 35px; }
.team-scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.team-scenario { min-width: 0; padding: 25px; border-top: 4px solid var(--green); background: #fff; }
.team-scenario.is-demanding { border-top-color: #d8665a; }
.team-scenario header h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; }
.team-scenario header p { min-height: 42px; margin: 9px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.team-scenario-probabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.team-scenario-probabilities span:nth-child(2) { text-align: center; }
.team-scenario-probabilities span:last-child { text-align: right; }
.team-scenario-probabilities strong,
.team-scenario-probabilities small { display: block; }
.team-scenario-probabilities strong { font-size: 1.45rem; }
.team-scenario-probabilities span:first-child strong { color: var(--green-dark); }
.team-scenario-probabilities span:last-child strong { color: var(--red); }
.team-scenario-probabilities small { margin-top: 3px; color: var(--muted); font-size: .57rem; font-weight: 850; text-transform: uppercase; }
.team-scenario-expected { display: flex; justify-content: space-between; gap: 15px; margin: 18px 0 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.team-scenario-expected span { color: var(--muted); font-size: .65rem; }
.team-scenario-expected strong { font-size: .78rem; }
.team-scenario-boards { display: grid; }
.team-scenario-board {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 100px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}
.team-scenario-board > b { color: var(--muted); font-size: .57rem; text-transform: uppercase; }
.team-scenario-board > span { min-width: 0; }
.team-scenario-board > span.is-opponent { text-align: right; }
.team-scenario-board a { color: var(--ink); font-size: .7rem; font-weight: 850; text-decoration: none; }
.team-scenario-board a:hover { text-decoration: underline; }
.team-scenario-board span small { display: block; margin-top: 3px; color: var(--muted); font-size: .55rem; }
.team-scenario-board i { color: var(--muted); font-size: .55rem; font-style: normal; text-align: center; white-space: nowrap; }
.team-compare-method { max-width: 920px; margin: 26px auto 0; color: var(--muted); font-size: .62rem; line-height: 1.6; text-align: center; }
.team-meeting-section { border-top: 1px solid var(--line); background: #f3f6f4; }
.team-meeting-section .profile-block { min-width: 0; }
.team-meeting-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 24px;
  background: var(--line);
}
.team-meeting-summary:empty { display: none; }
.team-meeting-summary span { min-width: 0; padding: 15px 18px; background: #eef3f0; }
.team-meeting-summary strong,
.team-meeting-summary small { display: block; }
.team-meeting-summary strong { color: var(--ink); font-size: 1.05rem; }
.team-meeting-summary small { margin-top: 4px; color: var(--muted); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.head-to-head-table th:last-child,
.head-to-head-table td:last-child { text-align: right; }
.head-to-head-table {
  min-width: 560px;
  table-layout: fixed;
}
.head-to-head-table th:first-child { width: 138px; }
.head-to-head-table th:nth-child(3) { width: 150px; }
.head-to-head-table th:last-child { width: 68px; }
.head-to-head-table td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.head-to-head-table td:first-child time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.head-to-head-tournament-column { min-width: 0; }
.head-to-head-tournament-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-subline {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .66rem;
  white-space: normal;
}
.head-to-head-result { font-size: .95rem; }
.season-duel-list { border-top: 3px solid var(--ink); }
.season-duel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.season-duel-row span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .65rem;
}
.season-duel-row b { color: var(--green-dark); font-size: .9rem; }
.season-duel-row > i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  background: #dfe7e2;
}
.season-duel-row > i span { display: block; height: 100%; background: var(--green); }

.form-sequence { display: flex; gap: 5px; }
.form-result {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: white;
  font-size: .65rem;
  font-weight: 950;
}
.outcome-win { color: var(--positive-dark) !important; }
.outcome-draw { color: #8a6500 !important; }
.outcome-loss { color: var(--red) !important; }
.form-result.outcome-win { background: var(--positive); color: white !important; }
.form-result.outcome-draw { background: var(--yellow); color: #362600 !important; }
.form-result.outcome-loss { background: var(--red); color: white !important; }

.empty-state {
  padding: 42px 18px;
  border: 1px dashed #b8c2bd;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.portal-state {
  --state-accent: var(--green);
  width: min(100%, 780px);
  box-sizing: border-box;
  margin: 38px auto;
  padding: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px 22px;
  align-items: start;
  border-top: 3px solid var(--state-accent);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 93%, var(--state-accent));
}
.portal-state-not-found { --state-accent: #ba7a20; }
.portal-state-invalid { --state-accent: #b34d40; }
.portal-state-error { --state-accent: #b34d40; }
.portal-state-filtered { --state-accent: #3b7467; }
.portal-state-partial { --state-accent: #8a7440; }
.portal-state-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--state-accent);
  border: 1px solid color-mix(in srgb, var(--state-accent) 40%, transparent);
  border-radius: 50%;
}
.portal-state-icon svg { width: 24px; height: 24px; }
.portal-state-copy h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.portal-state-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}
.portal-state-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.portal-state-actions a,
.portal-state-actions button {
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.portal-state-actions .primary {
  border-color: var(--state-accent);
  background: var(--state-accent);
  color: #fff;
}
.portal-state-actions a:hover,
.portal-state-actions button:hover { border-color: var(--state-accent); }
.portal-state.is-compact {
  margin: 14px 0;
  padding: 22px;
  grid-template-columns: 38px minmax(0, 1fr);
}
.portal-state.is-compact .portal-state-icon { width: 36px; height: 36px; }
.portal-state.is-compact .portal-state-icon svg { width: 18px; height: 18px; }
.portal-state.is-compact .portal-state-copy h2 { font-size: 1.05rem; }
.portal-state.is-compact .portal-state-actions { margin-top: 5px; }
.archive-grid > .portal-state { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .portal-state { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 18px; gap: 9px 14px; }
  .portal-state-icon { width: 38px; height: 38px; }
  .portal-state-icon svg { width: 20px; height: 20px; }
  .portal-state-actions { grid-column: 1 / -1; }
  .portal-state-actions a,
  .portal-state-actions button { flex: 1 1 auto; }
}

.skeleton {
  min-height: 18px;
  border-radius: 4px;
  background: #e2e8e4;
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes skeleton-pulse { to { opacity: .45; } }

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-visible { animation: reveal-enter .45s ease both; }
@keyframes reveal-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.data-lab-hero { border-bottom: 1px solid #39433f; background: var(--charcoal); color: white; }
.data-lab-hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 70px;
  align-items: start;
  padding: 52px 0 54px;
}
.data-lab-hero h1 {
  max-width: 780px;
  margin: 0;
  color: white;
  font-size: clamp(2.6rem, 5.5vw, 5.6rem);
  line-height: .96;
}
.lab-index { border-top: 3px solid var(--yellow); }
.lab-index a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #46514c;
  color: #dce3e0;
  text-decoration: none;
}
.lab-index a:hover { color: #8dd9c8; }
.lab-index span { color: #85928d; font-size: .68rem; font-weight: 900; }
.lab-index strong { font-size: .9rem; }
.lab-control-band { border-bottom: 1px solid var(--line); background: #e9eeeb; }
.portal-data-loading {
  position: fixed;
  z-index: 60;
  inset: 66px 0 0;
  display: grid;
  place-items: center;
  background: rgba(244,246,243,.78);
  backdrop-filter: blur(2px);
}
.portal-data-loading > div {
  min-width: 235px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #46514c;
  border-radius: 7px;
  background: var(--charcoal);
  color: white;
  box-shadow: 0 16px 40px rgba(12,24,19,.24);
  padding: 15px 18px;
  font-size: .78rem;
}
.portal-data-loading[hidden] { display: none; }
.portal-data-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #67756f;
  border-top-color: #8dd9c8;
  border-radius: 50%;
  animation: portal-data-spin .75s linear infinite;
}
@keyframes portal-data-spin { to { transform: rotate(360deg); } }
.lab-controls {
  min-height: 68px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.lab-controls label { display: flex; gap: 11px; align-items: center; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.lab-controls select { min-height: 36px; border: 1px solid #aebbb5; border-radius: 5px; background: white; padding: 0 30px 0 10px; }
.lab-controls p { max-width: 760px; margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; text-align: right; }
.lab-dark-kicker { color: #614400; }
.timeline-toolbar,
.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #e9eeeb;
}
.timeline-toolbar { margin-bottom: 22px; }
.timeline-toolbar button,
.segmented-control button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
}
.timeline-toolbar button[aria-pressed="true"],
.segmented-control button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(20,35,29,.12); }
.history-chart {
  height: 300px;
  display: flex;
  gap: clamp(6px, 1.2vw, 15px);
  align-items: stretch;
  overflow-x: auto;
  padding: 8px 2px 4px;
}
.history-column {
  min-width: 42px;
  flex: 1 0 42px;
  display: grid;
  grid-template-rows: 25px minmax(0, 1fr) 32px;
  gap: 6px;
  text-align: center;
}
.history-column > strong { color: var(--muted); font-size: .67rem; }
.history-column > div { position: relative; border-bottom: 1px solid #aeb8b3; }
.history-column i {
  position: absolute;
  right: 14%;
  bottom: 0;
  left: 14%;
  min-height: 2px;
  background: var(--green);
  transition: height .45s ease;
}
.history-column > span { color: var(--ink); font-size: .7rem; font-weight: 900; }
.history-column > span small { color: var(--muted); font-size: .62rem; }
.leaderboard-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 38px; }
.metric-tabs { display: flex; flex-direction: column; align-items: stretch; border-top: 3px solid #614400; }
.metric-tabs button {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(97,68,0,.25);
  background: transparent;
  color: #614400;
  padding: 0 6px;
  text-align: left;
  font-size: .79rem;
  font-weight: 850;
  cursor: pointer;
}
.metric-tabs button[aria-selected="true"] { color: var(--ink); padding-left: 17px; box-shadow: inset 4px 0 var(--ink); }
.ranked-story-list { border-top: 3px solid currentColor; }
.ranked-story-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(170px, .72fr) minmax(100px, 1fr) 82px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(21,32,29,.22);
  text-decoration: none;
}
.ranked-story-row:hover .story-person strong { text-decoration: underline; }
.story-rank { color: var(--muted); font-size: .66rem; font-weight: 950; }
.story-person { min-width: 0; }
.story-person strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.story-person small { display: block; margin-top: 3px; color: #745d22; font-size: .65rem; }
.story-bar { height: 5px; overflow: hidden; background: rgba(97,68,0,.16); }
.story-bar i { display: block; height: 100%; background: var(--green-dark); }
.story-value { text-align: right; font-size: 1.15rem; }
.record-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: #46514c; border: 1px solid #46514c; }
.record-feature { min-height: 290px; display: flex; flex-direction: column; background: var(--charcoal); padding: 28px; }
.record-feature > span { color: #8dd9c8; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.record-feature > strong { margin-top: 26px; color: white; font-size: clamp(3.2rem,7vw,6.5rem); line-height: .8; }
.record-feature > small { margin-top: 10px; color: #9fada7; font-size: .72rem; }
.record-score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 15px; align-items: baseline; margin-top: 26px; }
.record-score a { overflow: hidden; color: white; font-size: .88rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.record-score a:last-child { text-align: right; }
.record-score a:hover { color: #8dd9c8; }
.record-score b { color: var(--yellow); font-size: 1.35rem; }
.record-tournament { margin-top: auto; padding-top: 18px; color: #9fada7; font-size: .68rem; text-decoration: none; }
.record-tournament:hover { color: #8dd9c8; }
.subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 52px 0 16px; }
.subsection-heading h3 { margin: 0; color: white; font-size: 1.35rem; }
.subsection-heading p { max-width: 620px; margin: 0; color: #9fada7; font-size: .76rem; line-height: 1.5; }
.rivalry-list { border-top: 1px solid #53605a; }
.rivalry-row { min-height: 70px; display: grid; grid-template-columns: 34px minmax(0,1fr) 88px minmax(0,1fr); gap: 15px; align-items: center; border-bottom: 1px solid #46514c; }
.rivalry-player { min-width: 0; display: flex; gap: 14px; align-items: baseline; }
.rivalry-player.left { justify-content: flex-end; }
.rivalry-player a { overflow: hidden; color: white; font-size: .83rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.rivalry-player a:hover { color: #8dd9c8; }
.rivalry-player strong { color: var(--yellow); font-size: 1.2rem; }
.rivalry-centre { text-align: center; }
.rivalry-centre b { display: block; color: white; font-size: 1rem; }
.rivalry-centre span,.rivalry-centre small { display: block; color: #88958f; font-size: .6rem; }
.rivalry-meetings-link {
  display: block;
  padding: 4px 2px;
  border-radius: 5px;
  text-decoration: none;
}
.rivalry-meetings-link:hover,
.rivalry-meetings-link:focus-visible {
  background: rgba(141,217,200,.1);
  outline: 1px solid rgba(141,217,200,.42);
}
.rivalry-meetings-link:hover b,
.rivalry-meetings-link:focus-visible b { color: #8dd9c8; }
.world-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.9fr) minmax(230px,.7fr); gap: 42px; }
.world-grid .profile-block + .profile-block { margin-top: 0; }
.world-grid .profile-block { align-self: start; }
.world-grid h3 { margin: 0 0 15px; font-size: 1.05rem; }
.ranked-story-list.compact .ranked-story-row { grid-template-columns: 28px minmax(130px,1fr) 76px 34px; gap: 9px; min-height: 48px; }
.place-bars,.format-wheel { border-top: 3px solid var(--ink); }
.place-row { min-height: 47px; display: grid; grid-template-columns: minmax(90px,1fr) minmax(60px,.7fr) 25px; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); font-size: .75rem; }
.place-row > span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.place-row,.format-row { color: inherit; text-decoration: none; }
.place-row:hover,.format-row:hover { background: rgba(8,123,99,.055); }
.place-row > i,.format-row > i { height: 4px; overflow: hidden; background: #dce4df; }
.place-row > i b,.format-row > i b { display: block; height: 100%; background: var(--green); }
.place-row > strong { text-align: right; }
.place-row > small { grid-column: 1 / -1; margin-top: -12px; color: var(--muted); font-size: .6rem; }
.format-row { min-height: 52px; display: grid; grid-template-columns: minmax(0,1fr) 30px; gap: 4px 10px; align-items: end; border-bottom: 1px solid var(--line); font-size: .75rem; }
.format-row span { font-weight: 800; }
.format-row strong { text-align: right; }
.format-row i { grid-column: 1 / -1; align-self: start; }
.lab-team-section { background: #dfe9e4; }
.team-rank-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: #bdcac4; border: 1px solid #bdcac4; }
.team-rank-card { min-height: 112px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 14px; align-items: center; background: #f7faf8; padding: 18px; text-decoration: none; }
.team-rank-card:hover { background: white; }
.team-rank-card h3 { margin: 0; font-size: .92rem; }
.team-rank-card p { margin: 6px 0 0; color: var(--muted); font-size: .68rem; }
.team-rank-card > strong { color: var(--green-dark); font-size: 1.8rem; }
.team-rank-card > strong small { font-size: .7rem; }
.team-rank-card > span:last-child { grid-column: 2 / -1; color: var(--muted); font-size: .65rem; }
.honours-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.lab-palmares-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 28px;
}
.lab-palmares-grid .data-table {
  font-size: .79rem;
}
.lab-palmares-grid .data-table th,
.lab-palmares-grid .data-table td {
  padding-right: 6px;
  padding-left: 6px;
}
.world-cup-chapter {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.world-cup-chapter-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.world-cup-chapter-heading h3 {
  margin: 3px 0 10px;
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.02;
}
.world-cup-chapter-heading .section-kicker { color: var(--muted); }
.world-cup-chapter-heading > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.7;
}
.world-cup-chapter-heading > a {
  color: var(--green-dark);
  font-size: .69rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.world-cup-chapter-heading > a:hover { text-decoration: underline; }
.world-cup-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .45fr);
  gap: 26px;
  margin-top: 28px;
}
.world-cup-power-panel {
  min-width: 0;
  padding: 22px;
  background: var(--charcoal);
  color: white;
}
.world-cup-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.world-cup-panel-heading h4,
.world-cup-editions-heading h4 { margin: 0; font-size: .94rem; }
.world-cup-panel-heading p,
.world-cup-editions-heading p { margin: 0; color: #aebbb5; font-size: .64rem; }
.world-cup-category-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin: 17px 0 20px;
  color: #cdd6d2;
  font-size: .59rem;
}
.world-cup-category-key span { display: inline-flex; align-items: center; gap: 5px; }
.world-cup-category-key i { width: 8px; height: 8px; border-radius: 50%; }
.world-cup-power-bars { display: grid; gap: 10px; }
.world-cup-power-row {
  display: grid;
  grid-template-columns: 24px minmax(92px, .42fr) minmax(120px, 1fr) 28px;
  gap: 9px;
  align-items: center;
  font-size: .66rem;
}
.world-cup-power-row > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-cup-power-row > b { color: white; text-align: right; font-size: .72rem; }
.world-cup-nation-rank { color: #788781; font-variant-numeric: tabular-nums; }
.world-cup-bar-track { height: 13px; overflow: hidden; background: #46514c; }
.world-cup-bar-fill { display: flex; min-width: 2px; height: 100%; overflow: hidden; }
.world-cup-bar-fill i { display: block; height: 100%; }
.world-cup-category-open { background: #f2c84b; }
.world-cup-category-women { background: #e66d8b; }
.world-cup-category-veterans { background: #66b6a0; }
.world-cup-category-u20 { background: #e08b4a; }
.world-cup-category-u16 { background: #6d99d4; }
.world-cup-category-u12 { background: #a784ca; }
.world-cup-signals { display: grid; gap: 1px; background: var(--line); align-content: stretch; }
.world-cup-signal {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: #edf2ef;
}
.world-cup-signal span {
  margin-bottom: auto;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.world-cup-signal strong { font-size: 1.12rem; line-height: 1.05; }
.world-cup-signal p { margin: 7px 0 0; color: var(--green-dark); font-size: .68rem; font-weight: 800; }
.world-cup-editions-heading { margin-top: 31px; }
.world-cup-editions-heading p { margin-top: 5px; color: var(--muted); }
.world-cup-editions-scroll { max-width: 100%; margin-top: 14px; overflow-x: auto; overscroll-behavior-inline: contain; }
.world-cup-editions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  min-width: max-content;
  border-top: 1px solid #aebbb5;
  border-bottom: 1px solid #aebbb5;
}
.world-cup-edition {
  width: 190px;
  min-height: 154px;
  padding: 16px 15px;
  border-right: 1px solid #d5dcd8;
  box-sizing: border-box;
}
.world-cup-edition header { min-height: 43px; display: flex; flex-direction: column; gap: 4px; }
.world-cup-edition header > a,
.world-cup-edition header > strong { width: fit-content; color: var(--ink); font-size: 1.12rem; font-weight: 900; text-decoration: none; }
.world-cup-edition header > a:hover { text-decoration: underline; }
.world-cup-edition header span {
  color: var(--green-dark);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
}
.world-cup-edition > div { display: grid; gap: 3px; margin-top: 10px; }
.world-cup-edition small { color: var(--muted); font-size: .54rem; text-transform: uppercase; }
.world-cup-edition > div a { overflow: hidden; color: var(--ink); font-size: .66rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.world-cup-edition > div a:hover { text-decoration: underline; }
.world-cup-edition-next { background: var(--green-dark); color: white; }
.world-cup-edition-next header > a,
.world-cup-edition-next header > strong,
.world-cup-edition-next small { color: white; }
.world-cup-edition-next header span { color: rgba(255, 255, 255, .8); }
.world-cup-edition-next .world-cup-next-link { display: inline-flex; gap: 10px; align-items: center; }
.world-cup-edition-next .world-cup-next-link > span {
  color: white;
  font-size: 1.12rem;
  font-weight: 900;
}
.world-cup-next-link b { font-size: .82rem; transition: transform .15s ease; }
.world-cup-next-link:hover b { transform: translateX(3px); }
.world-cup-edition-next > div b { margin-top: 7px; font-size: .68rem; }
.world-cup-coverage { margin: 12px 0 0; color: var(--muted); font-size: .58rem; font-style: italic; }

.lab-generation-section { background: #e4ede9; }
.generation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 22px;
}
.generation-panel {
  min-width: 0;
  border-top: 4px solid var(--green-dark);
  background: rgba(255,255,255,.65);
  padding: 22px;
}
.lab-panel-heading {
  min-height: 70px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid #bdcac4;
  padding-bottom: 16px;
}
.lab-panel-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.45;
}
.lab-panel-heading > div > p {
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: .61rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lab-panel-heading h3 { margin: 0; font-size: 1.08rem; }
.generation-total {
  max-width: 145px;
  color: var(--green-dark);
  font-size: .73rem;
  line-height: 1.3;
  text-align: right;
}
.youth-event-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(145px, 1fr) minmax(90px, .9fr) 32px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #ced9d4;
  color: inherit;
  text-decoration: none;
}
.youth-event-row:hover strong { text-decoration: underline; }
.youth-event-row > span:nth-child(2) { min-width: 0; }
.youth-event-row > span > strong {
  display: block;
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.youth-event-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .61rem; }
.youth-event-row > b { text-align: right; font-size: .95rem; }
.youth-stack { height: 7px; display: flex; overflow: hidden; background: #d6dfdb; }
.youth-segment { display: block; min-width: 2px; height: 100%; }
.youth-s12 { background: #d85b4b; }
.youth-s16 { background: #e0a629; }
.youth-s20 { background: #087b63; }
.pathway-row {
  min-height: 69px;
  display: grid;
  grid-template-columns: minmax(115px, .6fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #ced9d4;
  color: inherit;
  text-decoration: none;
}
.pathway-row > strong {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pathway-row:hover > strong { text-decoration: underline; }
.pathway-track { display: flex; min-width: 0; align-items: center; justify-content: flex-end; }
.pathway-track > i { width: 13px; height: 1px; flex: 0 1 13px; background: #92a49c; }
.pathway-track > b {
  min-width: 45px;
  border: 1px solid #9eafa7;
  border-radius: 4px;
  background: white;
  padding: 6px 5px;
  color: var(--ink);
  font-size: .65rem;
  text-align: center;
}
.pathway-track > b:last-child { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.pathway-track small { display: block; margin-top: 2px; color: #708078; font-size: .49rem; font-weight: 650; }
.pathway-track > b:last-child small { color: #c9ddd6; }
.generation-duel {
  min-height: 176px;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  border-left: 5px solid #d85b4b;
  background: var(--charcoal);
  color: white;
  padding: 20px 24px;
}
.generation-duel-copy p { margin: 0 0 8px; color: #8dd9c8; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.generation-duel-copy > strong { font-size: 1.65rem; }
.generation-duel-copy small { display: block; margin-top: 4px; color: #9fada7; font-size: .58rem; font-weight: 650; }
.generation-duel-results { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.generation-duel-match { min-width: 0; padding: 3px 18px; border-left: 1px solid #46514c; }
.generation-duel-match:first-child { border-left: 0; padding-left: 0; }
.generation-duel-match:last-child { padding-right: 0; }
.generation-duel-score {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 13px;
  align-items: center;
}
.generation-duel-score a { overflow: hidden; color: white; font-size: .82rem; font-weight: 850; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.generation-duel-score a:last-child { text-align: right; }
.generation-duel-score a:hover { color: #8dd9c8; }
.generation-duel-score small { display: block; margin-bottom: 4px; color: #99a8a2; font-size: .57rem; font-weight: 650; }
.generation-duel-score b { color: var(--yellow); font-size: 1.3rem; }
.generation-tournament-link {
  display: block;
  overflow: hidden;
  margin-top: 12px;
  color: #a9b6b0;
  font-size: .58rem;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generation-tournament-link:hover { color: #8dd9c8; }
.generation-balance { grid-column: 2; display: flex; gap: 18px; color: #9fada7; font-size: .62rem; }
.generation-balance b { color: white; }
.lab-surprise-section { border-top: 6px solid #d85b4b; }
.surprise-layout {
  display: grid;
  grid-template-columns: minmax(270px, .78fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: #46514c;
  border: 1px solid #46514c;
}
.surprise-feature,
.surprise-ranking { min-width: 0; background: var(--charcoal); padding: 24px; }
.surprise-feature { min-height: 360px; }
.surprise-feature > span { color: #f39a8e; font-size: .66rem; font-weight: 950; text-transform: uppercase; }
.unexpected-result-list { margin-top: 13px; border-top: 1px solid #46514c; }
.unexpected-result-row {
  min-height: 61px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 51px;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #46514c;
}
.unexpected-result-row > strong { color: #7f8d87; font-size: .57rem; }
.unexpected-result-row > div { min-width: 0; }
.unexpected-result-row > div > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
}
.unexpected-result-row a {
  overflow: hidden;
  color: white;
  font-size: .66rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unexpected-result-row a:hover { color: #8dd9c8; }
.unexpected-result-row > div > span a:last-child { text-align: right; }
.unexpected-result-row > div > span b { color: var(--yellow); font-size: .75rem; }
.unexpected-result-row > div > a {
  display: block;
  margin-top: 4px;
  color: #8f9d97;
  font-size: .53rem;
}
.unexpected-result-row > em {
  color: #f39a8e;
  font-size: .85rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}
.unexpected-result-row > em small { color: #7f8d87; font-size: .48rem; }
.unexpected-result-row > em i { display: block; margin-top: 2px; color: #b7c2bd; font-size: .5rem; font-style: normal; font-weight: 650; }
.surprise-ranking .lab-panel-heading { border-color: #46514c; }
.surprise-ranking .lab-panel-heading h3 { color: white; }
.surprise-ranking .lab-panel-heading > div > p { color: #f39a8e; }
.surprise-ranking .lab-panel-heading > p { color: #97a59f; }
.surprise-list-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 25px minmax(0,1fr) auto 39px;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #46514c;
  color: white;
  text-decoration: none;
}
.surprise-list-row:hover > strong a { color: #8dd9c8; }
.surprise-list-row > span { color: #7f8d87; font-size: .59rem; font-weight: 900; }
.surprise-list-row > strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.surprise-list-row > strong a { color: white; text-decoration: none; }
.surprise-list-row > small { color: #8f9d97; font-size: .56rem; }
.surprise-list-row > button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #a8b5af;
  padding: 4px 0;
  font: inherit;
  font-size: .56rem;
  cursor: pointer;
}
.surprise-list-row > button:hover,
.surprise-list-row > button:focus-visible { border-color: #8dd9c8; color: #8dd9c8; outline: 0; }
.surprise-list-row > b { color: var(--yellow); font-size: .82rem; text-align: right; }
.surprise-method { max-width: 850px; margin: 22px 0 0 auto; color: #8f9d97; font-size: .65rem; line-height: 1.5; text-align: right; }
.section-heading .surprise-index-link {
  color: #bce9de;
  font-weight: 800;
  text-decoration-color: rgba(188,233,222,.55);
  text-underline-offset: 3px;
}
.section-heading .surprise-index-link:hover { color: white; text-decoration-color: white; }
.surprise-dialog {
  width: min(880px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 38px));
  overflow: hidden;
  border: 1px solid #65736d;
  border-radius: 7px;
  background: var(--charcoal);
  color: white;
  padding: 0;
  box-shadow: 0 24px 70px rgba(4,12,9,.42);
}
.surprise-dialog::backdrop { background: rgba(8,18,14,.7); backdrop-filter: blur(2px); }
.surprise-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(760px, calc(100vh - 38px)); }
.surprise-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #46514c;
  padding: 22px 24px 18px;
}
.surprise-dialog header p { margin: 0 0 5px; color: #f39a8e; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.surprise-dialog h2 { margin: 0; color: white; font-size: 1.35rem; }
.surprise-dialog header button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #5b6963;
  border-radius: 5px;
  background: transparent;
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.surprise-dialog header button:hover { border-color: #8dd9c8; color: #8dd9c8; }
.surprise-dialog-list { min-height: 0; overflow-y: auto; padding: 0 24px 18px; }
.surprise-dialog-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 84px minmax(230px, .9fr) minmax(190px, 1fr) 58px;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #46514c;
}
.surprise-dialog-row time { color: #93a19b; font-size: .62rem; }
.surprise-dialog-score {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 7px;
  align-items: baseline;
}
.surprise-dialog-score a { overflow: hidden; color: white; font-size: .72rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.surprise-dialog-score a:last-child { text-align: right; }
.surprise-dialog-score a:hover { color: #8dd9c8; }
.surprise-dialog-score b { color: var(--yellow); font-size: .9rem; }
.surprise-dialog-context { min-width: 0; }
.surprise-dialog-context > a,
.surprise-dialog-context > span { display: block; overflow: hidden; color: #b6c1bc; font-size: .65rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.surprise-dialog-context > a:hover { color: #8dd9c8; }
.surprise-dialog-context small { display: block; margin-top: 4px; color: #7f8d87; font-size: .55rem; }
.surprise-dialog-row > strong { color: #f39a8e; font-size: 1rem; text-align: right; }
.surprise-dialog-row > strong small { color: #7f8d87; font-size: .48rem; }

.portal-footer {
  border-top: 1px solid #39433f;
  background: var(--charcoal);
  color: #abb7b2;
}
.footer-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: .76rem;
}
.footer-inner strong { color: white; }
.footer-inner a { color: #8dd9c8; }
.footer-source-link .external-link-mark { display:inline-block; margin-left:.15em; font-size:.72em; vertical-align:super; text-decoration:none; }
.footer-nav { display: flex; gap: 16px; align-items: center; }
.footer-nav a { font-weight: 800; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.portal-footer-aefm-tournament .footer-inner {
  min-height: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.rating-hero {
  border-bottom: 1px solid #39433f;
  background: var(--charcoal);
  color: white;
}
.official-ranking-hero .rating-hero-inner { min-height: 310px; }
.official-ranking-mark {
  align-self: center;
  border-left: 1px solid #57635e;
  padding: 28px 0 28px 42px;
}

a.fistf-reference { color:inherit; font:inherit; text-decoration:none; white-space:nowrap; }
.fistf-reference .external-link-mark {
  display:inline;
  margin-left:3px;
  color:inherit;
  font-size:.7em;
  font-weight:400;
  line-height:0;
  vertical-align:super;
  opacity:.65;
}
a.fistf-reference:hover,
a.fistf-reference:focus-visible { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.official-ranking-mark span,
.official-ranking-mark small { display: block; color: #96a49e; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.official-ranking-mark strong { display: block; margin: 7px 0; color: var(--yellow); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }

.official-ranking-rating-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(141, 217, 200, .45);
  color: #8dd9c8;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}
.official-ranking-rating-link:hover,
.official-ranking-rating-link:focus-visible {
  border-color: var(--yellow);
  color: #fff;
}
.official-ranking-controls {
  display: grid;
  grid-template-columns: auto minmax(150px,.5fr) minmax(150px,.5fr) minmax(240px,1fr);
  gap: 18px;
  align-items: end;
  padding-block: 20px;
}
.entity-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px;
  background: white;
}
.entity-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}
.entity-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.official-ranking-table .ranking-code { display: block; margin-top: 3px; color: var(--muted); font-size: .58rem; }

@media (max-width: 860px) {
  .official-ranking-controls { grid-template-columns: 1fr 1fr; }
  .official-ranking-controls .rating-search-field { grid-column: 1 / -1; }
  .official-ranking-mark { border-left: 0; border-top: 1px solid #57635e; padding: 22px 0 0; }
  .rating-controls { grid-template-columns: 1fr 1fr; }
  .rating-controls .rating-search-field { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .official-ranking-controls { grid-template-columns: 1fr; }
  .official-ranking-controls .rating-search-field { grid-column: auto; }
  .entity-switch { width: 100%; }
  .entity-switch button { flex: 1; }
  .rating-controls { grid-template-columns: 1fr; }
  .rating-controls .rating-search-field { grid-column: auto; }
}
.rating-hero-inner {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .7fr);
  gap: 70px;
  align-items: center;
  padding: 58px 0;
}
.rating-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: .96;
}
.rating-hero-inner > div > p:last-of-type {
  max-width: 680px;
  margin: 22px 0 0;
  color: #bdc8c3;
  font-size: 1rem;
  line-height: 1.65;
}
.rating-formula {
  border-top: 4px solid var(--yellow);
  border-bottom: 1px solid #53605a;
  padding: 22px 0 20px;
}
.rating-formula > span {
  display: block;
  color: #8dd9c8;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}
.rating-formula strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 20px;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(.84rem, 1.5vw, 1.12rem);
  font-weight: 700;
}
.rating-formula small {
  display: block;
  margin-top: 17px;
  color: #8f9d97;
  font-size: .68rem;
  line-height: 1.5;
}
.rating-formula-info {
  display: inline-block;
  margin-top: 9px;
  color: #8dd9c8;
  font-size: .62rem;
  font-weight: 800;
  text-decoration: none;
}
.rating-formula-info:hover,
.rating-formula-info:focus-visible {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rating-control-band { border-bottom: 1px solid var(--line); background: #e7ede9; }
.rating-controls {
  display: grid;
  grid-template-columns: auto minmax(160px, .62fr) minmax(160px, .62fr) minmax(230px, 1.15fr);
  gap: 14px;
  align-items: end;
  padding: 18px 0;
}
.rating-summary-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.rating-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rating-summary > span {
  min-height: 82px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-right: 1px solid var(--line);
  padding: 21px 24px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.rating-summary > span:first-child { border-left: 1px solid var(--line); }
.rating-summary strong { color: var(--ink); font-size: 1.7rem; line-height: 1; }
.rating-heading { align-items: end; }
.rating-table-stage { position: relative; min-height: 260px; }
.rating-table th:first-child,
.rating-table td:first-child { width: 52px; text-align: center; }
.rating-table th:nth-child(2),
.rating-table td:nth-child(2) { min-width: 220px; text-align: left; }
.fistf-rating-rank {
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.rating-player { color: var(--ink); font-size: .88rem; font-weight: 850; text-decoration: none; }
.rating-player:hover { color: var(--green-dark); text-decoration: underline; }
.rating-value { display: block; color: var(--ink); font-size: 1rem; font-weight: 950; }
.rating-value.is-secondary { color: var(--green-dark); }
.team-rating-sample {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .56rem;
  font-style: italic;
  font-weight: 650;
}
.team-rating-leader {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  min-width: 190px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
.team-rating-leader strong { color: var(--green-dark); font-size: .82rem; }
.team-rating-leader:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.rating-table:has(.team-rating-leader) { min-width: 980px; }
.rating-meter {
  width: 76px;
  height: 3px;
  display: block;
  overflow: hidden;
  margin: 4px 0 0 auto;
  background: #dce3df;
}
.rating-meter span { height: 100%; display: block; background: var(--green); }
.rating-change { font-weight: 900; }
.rating-change.is-up { color: var(--green-dark); }
.rating-change.is-down { color: var(--red); }
.rating-change.is-flat { color: var(--muted); }
.rating-confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6b26a;
  border-radius: 4px;
  background: #fff6df;
  color: #74530b;
  padding: 4px 7px;
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}
.rating-confidence.is-reliable {
  border-color: #8dc3b5;
  background: #e8f5f1;
  color: var(--green-dark);
}
.rating-confidence small { color: inherit; font-size: .54rem; opacity: .72; }
.rating-method {
  max-width: 900px;
  margin: 18px 0 0 auto;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.55;
  text-align: right;
}
.rating-method a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.rating-method a:hover,
.rating-method a:focus-visible { text-decoration: underline; }
.rating-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
}
.rating-pagination[hidden] { display: none; }
.rating-pagination button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.rating-pagination button:hover:not(:disabled) { border-color: var(--ink); }
.rating-pagination button:disabled { cursor: default; opacity: .38; }
.rating-pagination span { color: var(--muted); font-size: .68rem; font-weight: 800; }

@media (max-width: 900px) {
  .portal-nav { display: none; }
  .portal-nav:has(.portal-powered-by) { display: flex; min-width: 0; margin-left: auto; }
  .masthead-grid,
  .profile-grid { grid-template-columns: 1fr; }
  .palmares-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead-grid { gap: 34px; }
  .masthead-scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); }
  .scoreboard-title { grid-column: 1 / -1; }
  .scoreboard-update { grid-column: 1 / -1; }
  .scoreboard-row { display: block; }
  .scoreboard-row strong { display: block; margin-top: 8px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight { min-height: 190px; }
  .data-lab-hero-grid { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .lab-index { display: grid; grid-template-columns: repeat(3,1fr); }
  .lab-index a { padding-right: 12px; }
  .world-grid { grid-template-columns: 1fr 1fr; }
  .world-grid .profile-block:first-child { grid-column: 1 / -1; }
  .lab-palmares-grid { grid-template-columns: 1fr; }
  .world-cup-story-grid { grid-template-columns: 1fr; }
  .world-cup-signals { grid-template-columns: 1fr 1fr; }
  .world-cup-signal { min-height: 112px; }
  .generation-grid { grid-template-columns: 1fr; }
  .surprise-layout { grid-template-columns: 1fr 1fr; }
  .surprise-feature { grid-column: 1 / -1; min-height: 300px; }
  .profile-stat-strip { grid-template-columns: repeat(3, 1fr); }
  .head-to-head-hero-inner { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 18px; }
  .head-to-head-photo { width: 82px; }
  .head-to-head-grid { grid-template-columns: 1fr; }
  .head-to-head-sidebar { grid-row: 1; }
  .rivalry-trends-grid { grid-template-columns: minmax(0, 1fr); }
  .team-scenario-grid { grid-template-columns: 1fr; }
  .rating-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .player-match-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-stat:nth-child(3) { border-right: 0; }
  .profile-stat:nth-child(n+4) { border-top: 1px solid #3c4743; }
  .methodology-metrics { grid-template-columns: repeat(3, 1fr); }
  .methodology-metrics > div:nth-child(3) { border-right: 0; }
  .methodology-metrics > div:nth-child(n+4) { border-top: 1px solid rgba(33,29,19,.2); }
  .methodology-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .portal-shell { width: min(calc(100% - 22px), 1240px); }
  .portal-header-inner { min-height: 58px; gap: 10px; }
  .portal-header-inner:has(.portal-powered-by) { gap: 7px; }
  .portal-nav:has(.portal-powered-by) { flex: 0 1 auto; }
  .portal-powered-by { gap: .2em; padding: 4px 0; font-size: .59rem; letter-spacing: 0; }
  .portal-powered-by a { font-size: .77rem; }
  .header-tools { gap: 5px; }
  .header-search-button,
  .icon-button { width: 34px; height: 34px; }
  .portal-brand img { width: 31px; height: 31px; }
  .portal-brand strong { font-size: .92rem; }
  .portal-brand span { display: none; }
  .language-select { width: 58px; flex-basis: 58px; padding: 0 6px 0 7px; }
  .header-search-popover {
    position: fixed;
    top: 64px;
    right: 11px;
    left: 11px;
    width: auto;
    transform-origin: top center;
  }
  .methodology-hero-inner { padding: 42px 0 38px; }
  .methodology-hero h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  .methodology-metrics { grid-template-columns: repeat(2, 1fr); }
  .methodology-metrics > div,
  .methodology-metrics > div:first-child { padding: 20px 12px; border-top: 1px solid rgba(33,29,19,.2); border-right: 1px solid rgba(33,29,19,.2); }
  .methodology-metrics > div:nth-child(-n+2) { border-top: 0; }
  .methodology-metrics > div:nth-child(2n) { border-right: 0; }
  .methodology-source-row { grid-template-columns: 1fr; gap: 8px; }
  .methodology-ranking-pair { grid-template-columns: 1fr; }
  .methodology-ranking-pair > a + a { border-top: 1px solid #c6d0cb; border-left: 0; }
  .methodology-ranking-pair p { min-height: 0; }
  .methodology-principles li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .methodology-updates > div { grid-template-columns: 1fr; gap: 4px; }
  .methodology-updates dd { text-align: left; }
  .masthead-grid { min-height: 0; padding: 42px 0 34px; }
  .portal-masthead h1 { font-size: clamp(2.25rem, 14vw, 4.1rem); }
  .masthead-grid { gap: 24px; padding-top: 34px; padding-bottom: 28px; }
  .masthead-scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scoreboard-title { grid-column: 1 / -1; padding: 11px 12px; }
  .scoreboard-update {
    grid-column: 1 / -1;
    padding: 9px 12px 11px;
    border-top: 1px solid var(--line);
  }
  .scoreboard-row {
    display: block;
    min-width: 0;
    padding: 12px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }
  .scoreboard-row:last-child { border-right: 0; }
  .scoreboard-row span { display: block; overflow: hidden; font-size: .68rem; text-overflow: ellipsis; }
  .scoreboard-row strong { display: block; margin-top: 8px; font-size: 1.45rem; }
  .section-heading { display: block; }
  .section-heading p,
  .section-heading .text-link { margin-top: 12px; }
  .profile-table-heading { display: grid; align-items: stretch; }
  .profile-table-filter { width: 100%; }
  .data-lab-hero-grid { padding: 34px 0 32px; }
  .data-lab-hero h1 { font-size: clamp(2.3rem,13vw,4.2rem); }
  .lab-index { grid-template-columns: 1fr 1fr; }
  .lab-index a { min-height: 48px; }
  .lab-controls { display: block; padding: 15px 0; }
  .lab-controls p { margin-top: 10px; text-align: left; }
  .leaderboard-layout { grid-template-columns: 1fr; gap: 18px; }
  .metric-tabs { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid rgba(97,68,0,.25); }
  .metric-tabs button { min-width: max-content; padding: 0 10px; border-bottom: 0; }
  .metric-tabs button[aria-selected="true"] { padding-left: 10px; box-shadow: inset 0 -4px var(--ink); }
  .ranked-story-row { grid-template-columns: 28px minmax(130px,1fr) 62px; gap: 9px; }
  .ranked-story-row .story-bar { display: none; }
  .record-grid { grid-template-columns: 1fr; }
  .record-feature { min-height: 255px; padding: 22px; }
  .subsection-heading { display: block; }
  .subsection-heading p { margin-top: 8px; }
  .rivalry-row { grid-template-columns: 22px minmax(0,1fr) 54px minmax(0,1fr); gap: 7px; }
  .rivalry-player { display: grid; gap: 2px; }
  .rivalry-player.left { justify-content: stretch; text-align: right; }
  .rivalry-player.left strong { order: 2; }
  .world-grid { grid-template-columns: 1fr; }
  .world-grid .profile-block:first-child { grid-column: auto; }
  .team-rank-grid { grid-template-columns: 1fr; }
  .honours-controls { display: block; }
  .honours-controls .category-tabs { margin-top: 14px; }
  .world-cup-chapter { margin-top: 36px; padding-top: 27px; }
  .world-cup-chapter-heading { grid-template-columns: 1fr; gap: 13px; }
  .world-cup-chapter-heading > a { width: fit-content; }
  .world-cup-power-panel { padding: 17px 14px; }
  .world-cup-panel-heading { display: block; }
  .world-cup-panel-heading p { margin-top: 6px; }
  .world-cup-power-row { grid-template-columns: 20px minmax(74px, .55fr) minmax(90px, 1fr) 24px; gap: 6px; }
  .world-cup-signals { grid-template-columns: 1fr 1fr; }
  .world-cup-signal { min-height: 108px; padding: 15px; }
  .world-cup-signal strong { font-size: .92rem; }
  .world-cup-editions-scroll { margin-right: -11px; padding-right: 11px; }
  .world-cup-edition { width: 174px; }
  .generation-panel { padding: 17px; }
  .lab-panel-heading { display: block; }
  .lab-panel-heading > p { margin-top: 9px; }
  .generation-total { display: block; max-width: none; margin-top: 8px; text-align: left; }
  .youth-event-row { grid-template-columns: 23px minmax(120px, 1fr) 56px 25px; gap: 8px; }
  .pathway-row { grid-template-columns: 1fr; gap: 8px; padding: 11px 0; }
  .pathway-track { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .generation-duel { grid-template-columns: 1fr; gap: 16px; }
  .generation-duel-results { grid-template-columns: 1fr; }
  .generation-duel-match { padding: 14px 0; border-top: 1px solid #46514c; border-left: 0; }
  .generation-duel-match:first-child { border-top: 0; }
  .generation-balance { grid-column: auto; flex-wrap: wrap; }
  .surprise-layout { grid-template-columns: 1fr; }
  .surprise-feature { grid-column: auto; min-height: 285px; }
  .surprise-ranking { padding: 20px; }
  .surprise-method { text-align: left; }
  .surprise-dialog header { padding: 18px; }
  .surprise-dialog-list { padding: 0 18px 16px; }
  .surprise-dialog-row { grid-template-columns: 1fr 48px; gap: 8px 12px; padding: 13px 0; }
  .surprise-dialog-row time { grid-column: 1; }
  .surprise-dialog-score { grid-column: 1; }
  .surprise-dialog-context { grid-column: 1; }
  .surprise-dialog-row > strong { grid-column: 2; grid-row: 1 / span 3; }
  .tournament-row {
    grid-template-columns: 72px minmax(0, 1fr) 24px;
    gap: 11px;
    padding: 14px 0;
  }
  .tournament-row:hover { padding: 14px 5px; }
  .tournament-row .winner-list { grid-column: 2 / -1; }
  .archive-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .archive-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-filter-bar > :first-child { grid-column: 1 / -1; }
  .profile-hero-inner { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; min-height: 230px; }
  .player-matches-hero .profile-hero-inner,
  .team-matches-hero .profile-hero-inner { min-height: 205px; padding: 27px 0; }
  .player-matches-profile-link { margin-top: 14px; font-size: .68rem; }
  .player-matches-section { padding-top: 34px; }
  .player-matches-heading { display: grid; gap: 13px; }
  .player-matches-count { width: max-content; }
  .player-match-filters { grid-template-columns: 1fr 1fr; margin-top: 23px; padding: 15px 0; }
  .player-match-opponent-filter { grid-column: 1 / -1; }
  .team-match-search-filter { grid-column: 1 / -1; }
  .player-match-table { min-width: 1020px; }
  .profile-photo { width: 90px; font-size: 2rem; }
  .profile-hero h1 { font-size: clamp(1.8rem, 9vw, 3rem); }
  .profile-compare-button { margin-top: 15px; font-size: .68rem; }
  .team-compare-hero-inner {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 8px;
    min-height: 220px;
    padding: 32px 0;
  }
  .team-compare-identity { display: grid; gap: 8px; align-content: center; }
  .team-compare-identity.is-opponent { justify-items: end; }
  .team-compare-identity.is-opponent .team-compare-mark { order: -1; }
  .team-compare-mark { width: 55px; height: 55px; flex-basis: 55px; font-size: 1rem; }
  .team-compare-identity strong { font-size: .95rem; }
  .team-compare-identity small { font-size: .52rem; }
  .team-compare-versus span { display: none; }
  .team-compare-versus b { font-size: 1.35rem; }
  .team-compare-builder-section { padding-top: 38px; }
  .team-compare-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .team-compare-heading > p { font-size: .78rem; }
  .team-roster-picker-grid { grid-template-columns: 1fr; gap: 18px; }
  .team-roster-options { grid-template-columns: 1fr; min-height: 0; }
  .team-roster-picker > header { padding-right: 0; padding-left: 0; }
  .team-roster-picker > footer { padding-right: 0; padding-left: 0; }
  .team-roster-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); }
  .team-roster-dialog-shell > header { gap: 12px; padding: 20px 17px 17px; }
  .team-roster-dialog h2 { font-size: 1.3rem; }
  .team-roster-dialog-tools { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 17px; }
  .team-roster-dialog-count { min-width: 78px; }
  .team-roster-dialog-count small { max-width: 90px; margin-left: auto; }
  .team-roster-dialog-list { grid-template-columns: 1fr; padding: 6px 12px 14px; }
  .team-roster-option { padding-right: 6px; padding-left: 6px; }
  .team-roster-dialog-shell > footer { display: grid; gap: 10px; padding: 12px 17px 15px; }
  .team-roster-dialog footer > div { display: grid; grid-template-columns: 1fr 1.35fr; }
  .team-roster-dialog footer button { width: 100%; }
  .team-compare-action-bar { display: grid; }
  .team-compare-action-bar .portal-primary-button { width: 100%; }
  .team-scenario { padding: 19px 14px; }
  .team-meeting-summary span { padding: 12px 10px; }
  .team-meeting-summary strong { font-size: .88rem; }
  .team-scenario-board {
    grid-template-columns: 34px minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 6px;
    min-height: 68px;
  }
  .team-scenario-board > b,
  .team-scenario-board i { font-size: .49rem; }
  .team-scenario-board a { font-size: .63rem; }
  .player-compare-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .player-compare-dialog header { gap: 12px; padding: 19px 17px 16px; }
  .player-compare-dialog h2 { font-size: 1.3rem; }
  .player-compare-search { padding: 15px 17px; }
  .player-compare-results { padding: 7px 17px 18px; }
  .profile-sticky-identity-inner { min-height: 52px; padding: 6px 0; }
  .profile-sticky-photo { width: 36px; height: 36px; flex-basis: 36px; }
  .profile-sticky-copy strong { font-size: .92rem; }
  .profile-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .profile-stat:nth-child(odd) { border-right: 1px solid #3c4743; }
  .profile-stat:nth-child(even) { border-right: 0; }
  .profile-stat:nth-child(n+3) { border-top: 1px solid #3c4743; }
  .head-to-head-hero-inner {
    min-height: 330px;
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    gap: 10px;
    padding: 35px 0;
  }
  .head-to-head-player { display: grid; gap: 10px; justify-items: start; }
  .head-to-head-player.is-opponent { justify-items: end; }
  .head-to-head-player.is-opponent .head-to-head-photo { order: -1; }
  .head-to-head-photo { width: 68px; font-size: 1.2rem; }
  .head-to-head-player strong { font-size: .95rem; }
  .head-to-head-player small,
  .head-to-head-player em { font-size: .58rem; }
  .head-to-head-score strong { font-size: 2rem; }
  .head-to-head-score small { display: none; }
  .rivalry-trends-stage,
  .rivalry-trends-loading,
  .rivalry-trends-empty { min-height: 340px; }
  .rivalry-trend-card > header { min-height: 104px; padding: 16px 14px 13px; }
  .rivalry-trend-category { flex-basis: 108px; }
  .rivalry-trend-legend { padding: 0 14px 14px; }
  .rating-hero-inner { min-height: 0; padding: 42px 0 36px; }
  .rating-hero h1 { font-size: clamp(2.2rem, 12vw, 4rem); }
  .rating-controls { grid-template-columns: 1fr; }
  .rating-summary > span { min-height: 68px; display: grid; gap: 4px; padding: 16px 10px; }
  .rating-summary strong { font-size: 1.35rem; }
  .rating-method { text-align: left; }
  .footer-inner { min-height: 140px; display: block; padding: 30px 0; }
  .footer-inner > * + * { margin-top: 12px; }
  .footer-nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* Advanced team rivalry */
.team-rivalry-hero {
  padding: 42px 0 34px;
  color: white;
  background: #18201d;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.team-rivalry-hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 28px;
}
.team-rivalry-overview { padding: 34px 0 54px; background: #eef1ed; }
.team-rivalry-back { display: inline-block; margin-bottom: 30px; }
.team-rivalry-scoreboard {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 28px;
  border: 1px solid #ccd4cf;
  background: rgba(255,255,255,.72);
}
.team-rivalry-scoreboard span { padding: 22px 24px; border-right: 1px solid #d8dfda; }
.team-rivalry-scoreboard span:last-child { border-right: 0; }
.team-rivalry-scoreboard strong { display: block; color: var(--ink); font-size: clamp(1.45rem,3vw,2.35rem); line-height: 1; }
.team-rivalry-scoreboard small { display: block; margin-top: 8px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.team-rivalry-coverage { margin: 12px 0 0; color: #64716b; font-size: .72rem; }
.team-rivalry-coverage em { color: #7d6850; font-style: italic; }
.team-rivalry-band { padding: 66px 0; background: #f8faf7; }
.team-rivalry-band.is-light { background: #edf1ed; }
.team-rivalry-band.is-dark { color: white; background: #1d2522; }
.team-rivalry-band.is-dark .section-heading h2 { color: white; }
.team-rivalry-band.is-dark .section-heading > p { color: #aab5af; }
.team-rivalry-evolution {
  display: flex;
  align-items: end;
  gap: clamp(14px,3vw,36px);
  min-height: 230px;
  padding: 26px 12px 0;
  overflow-x: auto;
  border-bottom: 1px solid #aeb9b2;
}
.team-rivalry-season { display: grid; justify-items: center; min-width: 82px; gap: 5px; }
.team-rivalry-season-bar { display: flex; flex-direction: column; justify-content: end; width: 34px; overflow: hidden; background: #d8ded9; }
.team-rivalry-season-bar span { display: block; width: 100%; min-height: 2px; }
.team-rivalry-season-bar .is-win { background: #247452; }
.team-rivalry-season-bar .is-draw { background: #d4a92e; }
.team-rivalry-season-bar .is-loss { background: #9b4542; }
.team-rivalry-season strong { font-size: .76rem; white-space: nowrap; }
.team-rivalry-season small { color: var(--muted); font-size: .68rem; }
.team-rivalry-season em { color: #53625b; font-size: .64rem; font-style: normal; white-space: nowrap; }
.team-rivalry-split-grid,
.team-rivalry-pair-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.team-rivalry-table-card { min-width: 0; padding: 20px; border: 1px solid #d3dad5; background: rgba(255,255,255,.76); }
.team-rivalry-table-card h3 { margin: 0 0 14px; color: var(--ink); font-size: 1rem; }
.team-rivalry-table-card h3 a { color: inherit; text-decoration: none; }
.team-rivalry-table-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.team-rivalry-band.is-dark .team-rivalry-table-card { border-color: #3a4741; background: #252e2a; }
.team-rivalry-band.is-dark .team-rivalry-table-card h3 { color: white; }
.team-rivalry-band.is-dark .data-table { color: #eef3ef; }
.team-rivalry-band.is-dark .data-table th { color: #aeb9b3; border-color: #46524d; }
.team-rivalry-band.is-dark .data-table td { border-color: #35413c; }
.team-lineup-names { display: grid; gap: 3px; min-width: 180px; }
.team-lineup-names a { width: fit-content; color: inherit; font-size: .72rem; text-decoration: none; }
.team-lineup-names a:hover { text-decoration: underline; text-underline-offset: 2px; }
.team-rivalry-method { max-width: 820px; margin: 18px 0 0; color: #9eaaa4; font-size: .7rem; line-height: 1.55; }

@media (max-width: 760px) {
  .team-rivalry-hero { padding: 26px 0; }
  .team-rivalry-hero-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .team-rivalry-hero .team-compare-identity { min-width: 0; }
  .team-rivalry-hero .team-compare-identity strong { font-size: .86rem; overflow-wrap: anywhere; }
  .team-rivalry-hero .team-compare-mark { width: 42px; height: 42px; }
  .team-rivalry-scoreboard { grid-template-columns: repeat(2,1fr); }
  .team-rivalry-scoreboard span:nth-child(2) { border-right: 0; }
  .team-rivalry-scoreboard span:nth-child(-n+2) { border-bottom: 1px solid #d8dfda; }
  .team-rivalry-split-grid,
  .team-rivalry-pair-grid { grid-template-columns: minmax(0,1fr); }
  .team-rivalry-table-card { padding: 14px; }
}

/* Theme surfaces: only presentation changes; sporting scales keep their colours. */
.rating-landscape-section,
.methodology-ranking-band,
.player-evolution-section,
.rivalry-analysis-forecast,
.rivalry-analysis-band { background:var(--theme-soft, #eef3ef); }
.rating-landscape-section { background:#fffdf8; }
.rating-landscape-section::before { background:none; }
.fistf-ranking-landscape-section { background:#fffdf8; }
.section-dark .text-link,
.methodology-hero .section-kicker,
.profile-rating-distribution .section-kicker,
.wc-page .wc-archive,
.wc-page .wc-method a { color:var(--theme-on-dark, #8dd9c8); }
.portal-nav a[aria-current="page"] { color:var(--theme-accent-dark, var(--ink)); }
.search-result:hover,
.player-compare-option:hover,
.profile-rank-summary > a:hover { background:var(--theme-soft, #edf4f1); }
.portal-footer { background:var(--theme-footer, var(--charcoal)); color:var(--theme-footer-muted, #abb7b2); }
.portal-footer .footer-inner strong { color:#fff; }
.portal-footer .footer-inner a { color:var(--theme-on-dark, #8dd9c8); }
.portal-masthead { background:var(--theme-hero, var(--charcoal)); color:var(--theme-hero-ink, #fff); }
.portal-masthead h1 { color:var(--theme-hero-ink, #fff); }
.portal-masthead .masthead-copy,
.portal-masthead .season-switcher label { color:var(--theme-hero-muted, #c9d2ce); }
.portal-masthead .masthead-scoreboard { border-top-color:var(--theme-secondary, var(--yellow)); }
.portal-masthead .masthead-kicker,
.portal-masthead .masthead-lab-link { color:var(--theme-hero-ink, #8dd9c8); }
.public-tournament-page .winners-public {
  background:#eaf5f1;
  border-left-color:#087b63;
  color:#075a49;
}
.public-tournament-page .winners-public h2,
.public-tournament-page .winners-public a { color:#075a49; }
.public-tournament-page .winners-public a { border-color:#b9d9cf; }
.methodology-coverage-band { background:var(--theme-contrast-band, #f0c95e); color:var(--ink); }
.data-lab-hero .section-kicker,
.data-lab-hero .lab-index a:hover { color:var(--theme-on-dark, #8dd9c8); }
.category-tabs button[aria-pressed="true"],
.tournament-category-rail > button[aria-pressed="true"] {
  background:var(--theme-bright);
  color:var(--ink);
  border-color:var(--theme-accent);
}
.rivalry-freshness { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); font-size:.78rem; color:var(--muted); }
.rivalry-freshness > strong { color:var(--ink); }
.rivalry-freshness > small { display:block; margin:4px 0 10px; }
.rivalry-freshness > div { margin:10px 0; display:grid; gap:3px; }
.rivalry-freshness b { color:var(--ink); }
.rivalry-freshness em { color:var(--ink); }
.rivalry-freshness summary { cursor:pointer; color:var(--ink); margin-top:12px; }
.rivalry-freshness p { font-size:inherit; line-height:1.5; }

/* Shared unavailable-results notice across tournament public views. */
.public-tournament-main .card.public-results-unavailable {
  display: block;
  min-height: 0;
  text-align: left;
  color: var(--ink);
  padding: 28px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.public-tournament-main .public-results-unavailable[hidden] { display: none; }
.public-results-unavailable > .portal-state.is-compact {
  width: 100%;
  margin: 0;
  text-align: left;
}

/* Native disclosure: initial HTML stays accessible without JavaScript. */
.public-semantic-summary { margin-top: 16px; margin-bottom: 20px; }
.public-semantic-summary > summary { width: fit-content; cursor: pointer; color: var(--muted, #58635d); font-size: .85rem; line-height: 1.5; }
.public-semantic-summary > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.public-semantic-summary-icon { font-size: 1rem; }
.public-semantic-summary[open] > #publicSemanticSummaryContent { padding-top: 12px; }
.public-semantic-summary h2 { font-size: 1.2rem; }
.public-semantic-summary p, .public-semantic-summary li { line-height: 1.6; }
.public-semantic-summary ul { padding-left: 20px; }
.public-semantic-summary small { color: var(--muted, #58635d); }
