:root {
  --forest: #092b20;
  --forest-deep: #041d15;
  --paper: #f2f0e7;
  --paper-strong: #fffdf4;
  --acid: #d8ff4f;
  --orange: #ff6846;
  --ink: #11251e;
  --muted: #587067;
  --line: #b8c5bd;
  --display: "Bebas Neue", sans-serif;
  --body: "DM Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--body); scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.team-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.team-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 400 1.9rem var(--display);
  letter-spacing: .04em;
  text-decoration: none;
}

.team-header .team-brand img {
  display: block;
  padding: 4px;
  border-radius: 6px;
  background: var(--forest);
}

.team-header nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.team-header nav a {
  font: 600 .68rem var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}
.team-header nav a:hover, .team-header nav a:focus-visible { color: #b43d28; }

.team-language-menu { position: relative; margin-left: 1.25rem; font: 600 .66rem var(--mono); text-transform: uppercase; }
.team-language-menu summary { min-width: 108px; padding: .48rem .6rem; border: 1px solid var(--line); cursor: pointer; list-style: none; }
.team-language-menu summary::-webkit-details-marker { display: none; }
.team-language-menu summary::after { content: "↓"; float: right; margin-left: .65rem; }
.team-language-menu[open] summary::after { content: "↑"; }
.team-language-menu > div { position: absolute; z-index: 20; top: calc(100% + .35rem); right: 0; display: grid; width: max-content; min-width: 190px; border: 1px solid var(--forest); background: var(--paper-strong); box-shadow: 8px 8px 0 rgba(9,43,32,.12); }
.team-language-menu a { padding: .62rem .75rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.team-language-menu a:last-child { border-bottom: 0; }
.team-language-menu a:hover, .team-language-menu a:focus-visible, .team-language-menu a[aria-current="page"] { color: var(--forest); background: var(--acid); }

main { width: min(1240px, calc(100% - 2rem)); margin: auto; }
.breadcrumbs {
  display: flex;
  gap: .6rem;
  padding: 1rem 0;
  color: var(--muted);
  font: 600 .64rem var(--mono);
  text-transform: uppercase;
}
.breadcrumbs a:hover { color: var(--ink); }

.team-first-fold {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(540px, 1.18fr);
  min-height: calc(100svh - 112px);
  margin-bottom: 3.5rem;
  border: 1px solid var(--forest);
  background: var(--forest);
}

.team-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.75rem);
  color: var(--paper);
  overflow: hidden;
}

.team-intro::after {
  content: "20";
  position: absolute;
  right: -.05em;
  bottom: -.2em;
  color: rgba(216, 255, 79, .08);
  font: 400 clamp(15rem, 28vw, 30rem)/.75 var(--display);
  pointer-events: none;
}

.team-kicker, .section-index, .result-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--acid);
  font: 600 .68rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: .65rem 0 1rem;
  font: 400 clamp(4.2rem, 7vw, 7.5rem)/.82 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.team-intro h1 em { color: var(--orange); font-style: normal; }
.team-intro > p:not(.team-kicker) {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: rgba(242, 240, 231, .72);
  font-size: 1rem;
  line-height: 1.58;
}

.team-intro-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.team-intro-meta span {
  padding: .48rem .62rem;
  border: 1px solid rgba(242, 240, 231, .22);
  font: 600 .58rem var(--mono);
  text-transform: uppercase;
}

.team-quiz-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  background: var(--paper-strong);
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font: 600 .64rem var(--mono);
  text-transform: uppercase;
}
.quiz-progress-track { width: min(220px, 42%); height: 5px; background: #d8dfd9; }
.quiz-progress-track span { display: block; width: 11.111%; height: 100%; background: var(--orange); transition: width .18s ease; }

.team-quiz-panel h2 {
  max-width: 760px;
  margin: .4rem 0 1.2rem;
  font: 400 clamp(2.7rem, 4.4vw, 4.8rem)/.92 var(--display);
  text-transform: uppercase;
}

.team-answers { display: grid; gap: .65rem; }
.team-answer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .14s, background .14s, transform .14s;
}
.team-answer:hover { border-color: var(--forest); transform: translateX(4px); }
.team-answer:has(input:focus-visible) { outline: 3px solid var(--acid); outline-offset: 2px; }
.team-answer:has(input:checked) { border-color: var(--forest); background: var(--acid); }
.team-answer input { position: absolute; opacity: 0; pointer-events: none; }
.team-answer-marker {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: 1px solid var(--line);
  font: 700 .66rem var(--mono);
}
.team-answer strong { padding: .75rem .9rem; font-size: .88rem; line-height: 1.34; }

.team-quiz-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  margin-top: auto;
  padding-top: 1rem;
}
.team-quiz-controls button, .team-result-actions a, .team-result-actions button {
  min-height: 45px;
  padding: .75rem 1rem;
  border: 2px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font: 700 .66rem var(--mono);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.team-quiz-controls button:last-child, .team-result-actions .action-primary { background: var(--forest); color: white; }
.team-quiz-controls button:disabled { cursor: not-allowed; opacity: .36; }
.team-validation { min-height: 1.2rem; margin: .5rem 0 0; color: #a23824; font-size: .75rem; }

.team-result {
  --club-primary: var(--forest);
  --club-secondary: white;
  scroll-margin-top: 1rem;
  margin: 0 0 4rem;
  border: 1px solid var(--forest);
  background: var(--paper-strong);
  outline: none;
}
.team-result-stripe { height: 10px; background: linear-gradient(90deg, var(--club-primary) 0 70%, var(--club-secondary) 70%); }
.team-result-body { padding: clamp(1rem, 3vw, 2.4rem); }
.team-result-top {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}
.team-result-crest {
  display: grid;
  width: 140px;
  height: 140px;
  padding: 16px;
  place-items: center;
  border: 1px solid var(--line);
  background: #101d25;
}
.team-result-crest img { display: block; width: 100%; height: 100%; object-fit: contain; }
.team-result .result-label { color: #5d746a; }
.team-result h2 {
  margin: .28rem 0 .5rem;
  font: 400 clamp(3.4rem, 8vw, 7.8rem)/.84 var(--display);
  text-transform: uppercase;
}
.team-result-summary { grid-column: 2; max-width: 850px; margin: 0; color: var(--muted); line-height: 1.52; }
.team-result-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1px;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  background: var(--line);
}
.team-result-grid > div { padding: 1rem; background: var(--paper); }
.team-result-grid h3 { margin: 0 0 .55rem; font: 400 1.75rem var(--display); text-transform: uppercase; }
.team-result-grid ul { display: grid; gap: .34rem; margin: 0; padding-left: 1.1rem; }
.team-result-grid li, .team-result-grid p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.team-alternate { margin-top: .65rem !important; color: var(--ink) !important; }
.team-result-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: .65rem; margin-top: 1rem; }
.team-result-actions a:hover, .team-result-actions button:hover { background: var(--orange); color: var(--forest); }
.team-result-feedback { min-height: 1.1rem; margin: .6rem 0 0; color: var(--muted); font-size: .75rem; }
.team-result-related { margin: .4rem 0 0; font-size: .78rem; }
.team-result-related a { font-weight: 700; }

.league-match-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.league-match-switcher strong { margin-right: .25rem; font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.league-match-switcher a { padding: .45rem .65rem; color: var(--forest); background: var(--paper-strong); border: 1px solid var(--forest); font: 700 .6rem var(--mono); text-decoration: none; text-transform: uppercase; }
.league-match-switcher a:hover, .league-match-switcher a:focus-visible, .league-match-switcher a[aria-current="page"] { color: var(--forest); background: var(--acid); }

.team-longform { border-top: 1px solid var(--line); }
.content-section { display: grid; grid-template-columns: .35fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--line); }
.content-section h2 { margin: .3rem 0 0; font: 400 clamp(3rem, 6vw, 6rem)/.9 var(--display); text-transform: uppercase; }
.content-copy { max-width: 820px; }
.content-copy > p { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2rem; border: 1px solid var(--forest); background: var(--forest); }
.decision-grid article { padding: 1.35rem; background: var(--paper); }
.decision-grid h3 { margin: 0 0 .55rem; font: 400 2rem var(--display); text-transform: uppercase; }
.decision-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

.club-guide-section { display: block; }
.club-guide-head { display: grid; grid-template-columns: .35fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: 2rem; }
.club-guide-head h2 { margin: .3rem 0 0; font: 400 clamp(3rem, 6vw, 6rem)/.9 var(--display); text-transform: uppercase; }
.club-guide-head div:last-child p { max-width: 820px; margin: 0 0 .7rem; color: var(--muted); line-height: 1.7; }
.source-note { font: 600 .65rem var(--mono); text-transform: uppercase; }
.source-note a { text-decoration-color: var(--orange); }
.club-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--forest); background: var(--forest); }
.club-guide-grid article { position: relative; min-height: 210px; padding: 1.35rem 1.5rem; background: var(--paper); }
.club-guide-grid article::before { content: attr(data-index); position: absolute; top: 1.35rem; right: 1.5rem; color: #8aa097; font: 600 .62rem var(--mono); }
.club-guide-grid h3 { max-width: 78%; margin: 0 0 .8rem; font: 400 2.45rem var(--display); text-transform: uppercase; }
.club-guide-grid p { margin: 0 0 .55rem; color: var(--muted); line-height: 1.55; }
.club-guide-grid strong { color: var(--ink); }

.faq-list { display: grid; gap: .65rem; }
.faq-list details { border: 1px solid var(--line); background: var(--paper-strong); }
.faq-list summary { padding: 1rem 1.1rem; font-weight: 700; cursor: pointer; }
.faq-list details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--muted); line-height: 1.65; }
.unofficial-note { margin-top: 1.5rem !important; padding: 1rem; border-left: 4px solid var(--orange); background: #e7e8df; font-size: .88rem !important; }

.team-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1.4rem 3rem;
  margin-top: 5rem;
  padding: 3.5rem max(1rem, calc((100vw - 1240px) / 2));
  color: white;
  background: var(--forest);
}
.team-footer-brand { color: white; font-size: 2.7rem; }
.team-footer p { max-width: 560px; margin: 0; color: rgba(255,255,255,.65); justify-self: end; text-align: right; line-height: 1.55; }
.team-footer .team-footer-note { color: rgba(255,255,255,.4); justify-self: start; font: 600 .56rem/1.6 var(--mono); letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.team-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; }
.team-footer nav a { color: rgba(255,255,255,.78); font: 600 .68rem var(--mono); text-decoration: none; text-transform: uppercase; }
.team-footer nav a:hover { color: var(--acid); }
.team-footer > span { color: rgba(255,255,255,.4); font: 600 .56rem var(--mono); justify-self: end; }

@media (max-width: 900px) {
  .team-first-fold { grid-template-columns: .8fr 1.2fr; }
  .team-intro { padding: 1.6rem; }
  .team-intro h1 { font-size: clamp(3.3rem, 7.2vw, 5.8rem); }
  .team-quiz-panel { padding: 1.4rem; }
  .team-result-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .team-header { min-height: 54px; }
  .team-header nav a:first-child, .team-header nav a:last-child { display: none; }
  .team-header nav { gap: .8rem; }
  .team-header nav a { font-size: .58rem; }
  .team-language-menu { margin-left: .6rem; font-size: .58rem; }
  .team-language-menu summary { min-width: 78px; padding: .4rem .45rem; }
  .team-language-menu > div { position: fixed; top: 54px; right: .5rem; left: .5rem; grid-template-columns: repeat(2, 1fr); width: auto; }
  .team-brand { font-size: 1.65rem; }
  .breadcrumbs { display: none; }
  main { width: min(100% - 1rem, 1240px); }
  .team-first-fold { display: block; min-height: 0; margin: .5rem 0 2rem; }
  .team-intro { min-height: 0; padding: .9rem 1rem .75rem; }
  .team-intro::after { display: none; }
  .team-kicker { font-size: .56rem; }
  .team-intro h1 { max-width: 100%; margin: .35rem 0 .45rem; font-size: clamp(2.85rem, 14.8vw, 4.1rem); line-height: .83; }
  .team-intro > p:not(.team-kicker) { font-size: .78rem; line-height: 1.38; }
  .team-intro-meta { display: none; }
  .team-quiz-panel { padding: .8rem 1rem .9rem; }
  .quiz-progress-row { margin-bottom: .5rem; font-size: .54rem; }
  .team-quiz-panel h2 { margin: .2rem 0 .55rem; font-size: clamp(1.72rem, 8vw, 2.35rem); line-height: .95; }
  .team-answers { gap: .38rem; }
  .team-answer { grid-template-columns: 31px minmax(0, 1fr); min-height: 42px; }
  .team-answer-marker { font-size: .56rem; }
  .team-answer strong { padding: .48rem .62rem; font-size: .72rem; line-height: 1.25; }
  .team-quiz-controls { gap: .45rem; padding-top: .55rem; }
  .team-quiz-controls button { min-height: 37px; padding: .45rem .6rem; font-size: .56rem; }
  .team-validation { min-height: .9rem; margin-top: .28rem; font-size: .62rem; }

  .team-result { scroll-margin-top: .5rem; margin-bottom: 2rem; }
  .team-result-stripe { height: 7px; }
  .team-result-body { padding: .75rem; }
  .team-result-top { grid-template-columns: 78px minmax(0, 1fr); gap: .7rem; align-items: start; }
  .team-result-crest { width: 78px; height: 78px; padding: 8px; }
  .team-result .result-label { font-size: .5rem; }
  .team-result h2 { margin: .15rem 0 .3rem; font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .team-result-summary { grid-column: 1 / -1; margin-top: -.1rem; font-size: .7rem; line-height: 1.35; }
  .team-result-grid { grid-template-columns: 1fr 1fr; margin-top: .6rem; }
  .team-result-grid > div { padding: .55rem; }
  .team-result-grid h3 { margin-bottom: .28rem; font-size: 1.25rem; }
  .team-result-grid li, .team-result-grid p { font-size: .62rem; line-height: 1.27; }
  .team-result-grid ul { gap: .18rem; padding-left: .85rem; }
  .team-alternate { margin-top: .35rem !important; }
  .team-result-actions { grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .55rem; }
  .team-result-actions a, .team-result-actions button { min-height: 37px; padding: .4rem .45rem; font-size: .53rem; }
  .team-result-feedback { min-height: .8rem; margin-top: .3rem; font-size: .6rem; }
  .team-result-related { font-size: .64rem; }
  .league-match-switcher { gap: .3rem; margin-top: .6rem; padding-top: .55rem; }
  .league-match-switcher strong { flex-basis: 100%; font-size: .52rem; }
  .league-match-switcher a { padding: .35rem .45rem; font-size: .5rem; }

  .content-section, .club-guide-head { grid-template-columns: 1fr; gap: 1rem; }
  .content-section { padding: 3.2rem 0; }
  .content-section h2, .club-guide-head h2 { font-size: 3.4rem; }
  .decision-grid, .club-guide-grid { grid-template-columns: 1fr; }
  .club-guide-grid article { min-height: 0; }
  .team-footer { grid-template-columns: 1fr; margin-top: 3rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .team-footer p, .team-footer .team-footer-note, .team-footer > span { justify-self: start; text-align: left; }
}

@media (max-width: 340px) {
  .team-header nav a:last-child { display: none; }
  .team-intro { padding: .62rem .85rem .55rem; }
  .team-kicker { display: none; }
  .team-intro h1 { margin: .1rem 0; font-size: 2.2rem; }
  .team-intro > p:not(.team-kicker) { display: none; }
  .team-quiz-panel { padding: .62rem .85rem .68rem; }
  .quiz-progress-row { margin-bottom: .3rem; }
  .team-quiz-panel h2 { margin-bottom: .35rem; font-size: 1.42rem; }
  .team-answers { gap: .25rem; }
  .team-answer { min-height: 35px; }
  .team-answer strong { padding-top: .38rem; padding-bottom: .38rem; }
  .team-answer strong { font-size: .65rem; }
  .team-quiz-controls { padding-top: .35rem; }
  .team-result-grid { grid-template-columns: 1.15fr .85fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.manual-ad-slot { width: min(970px, 100%); min-height: 120px; margin: clamp(2.5rem, 6vw, 5rem) auto; padding: 1rem 0; border-block: 1px solid var(--line); text-align: center; }
.manual-ad-slot-label { display: block; margin-bottom: .65rem; color: var(--muted); font: 600 .62rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.manual-ad-slot .adsbygoogle { min-height: 90px; }
