/* ==========================================================================
   Chemnitz Crusaders – link page
   Naming: BEM (block__element--modifier)
   ========================================================================== */

/* Design tokens
   ========================================================================== */

:root {
  /* Brand */
  --color-red: #e01f3b;
  --color-red-dark: #a41a2e;
  --color-red-tint: #fdf3f4;

  /* Info accent (e.g. winter training times) – same saturation/lightness as the red */
  --color-blue: #1c74cf;
  --color-blue-tint: #f2f7fd;

  /* Green info accent (explanations, "Anmeldung freiwillig") */
  --color-green: #178a4c;
  --color-green-tint: #eef8f2;

  /* Flag football accent (tackle uses the brand red) */
  --color-amber: #f2a900;

  /* Text */
  --color-ink: #2a2b2d;
  --color-muted: #5b6266;
  --color-label: #7f9399;
  --color-on-dark-muted: #b6c3c7;

  /* Surfaces */
  --color-white: #fff;
  --color-page: #f6f8f8;
  --color-backdrop: #ecefef;
  --color-chip: #e3eeee;
  --color-line: #dde4e5;

  /* Typography */
  --font-family-base: Montserrat, system-ui, sans-serif;
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

/* Page layout
   ========================================================================== */

.page {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--color-page);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* On larger screens show the page as a phone-sized card */
@media (min-width: 520px) {
  body {
    background: var(--color-backdrop);
    padding: 40px 16px;
  }

  .page {
    max-width: 390px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 30px 24px 22px;
  overflow: hidden;
}

.hero__stripes {
  position: absolute;
  right: -40px;
  top: 46px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: rotate(-6deg);
  opacity: 0.9;
}

.hero__stripe {
  display: block;
  height: 9px;
}

.hero__stripe:nth-child(1) {
  background: linear-gradient(90deg, var(--color-red) 30%, var(--color-ink) 30%);
}

.hero__stripe:nth-child(2) {
  background: linear-gradient(90deg, var(--color-red) 45%, var(--color-ink) 45%);
}

.hero__stripe:nth-child(3) {
  background: linear-gradient(90deg, var(--color-red) 60%, var(--color-ink) 60%);
}

.hero__logo {
  position: relative;
  display: block;
  width: 150px;
  height: auto;
  mix-blend-mode: multiply;
}

.hero__title {
  position: relative;
  margin: 18px 0 0;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 10.3vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero__highlight {
  font-style: inherit;
  color: var(--color-red);
}

.hero__tagline {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
}

/* Link list
   ========================================================================== */

.links {
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links__label {
  margin: 0;
  padding: 12px 8px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-label);
}

.links__label:first-of-type {
  padding-top: 8px;
}

/* Promo card (Gewinnspiel) – the most prominent link
   ========================================================================== */

.promo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2.5px solid var(--color-red);
  padding: 22px 20px 20px;
  transition: transform 0.2s, background-color 0.2s;
}

.promo:hover {
  transform: translateY(-2px);
  background: var(--color-red-tint);
}

.promo:active {
  transform: translateY(1px);
}

.promo__stripes {
  position: absolute;
  right: -16px;
  top: 14px;
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: rotate(-6deg);
  pointer-events: none;
}

.promo__stripe {
  display: block;
  height: 7px;
  background: var(--color-red);
  transform-origin: right;
  animation: promo-stripe-pulse 4s ease-in-out infinite;
}

.promo__stripe:nth-child(2) {
  animation-delay: 0.25s;
}

.promo__stripe:nth-child(3) {
  animation-delay: 0.5s;
}

.promo__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 230px;
}

.promo__kicker {
  padding-bottom: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
}

.promo__title {
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.promo__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-muted);
  text-wrap: pretty;
}

.promo__cta {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CTAs are real links in the Tryout card */
a.promo__cta {
  transition: transform 0.15s, background-color 0.15s, color 0.15s;
}

a.promo__cta:hover {
  transform: translateY(-1px);
}

a.promo__cta:active {
  transform: translateY(1px);
}

/* Two CTAs side by side */
.promo__actions {
  position: relative;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.promo__actions .promo__cta {
  margin-top: 0;
  padding: 14px 12px;
  font-size: 13px;
}

/* Outlined secondary CTA */
.promo__cta--secondary {
  justify-content: center;
  background: transparent;
  border: 2px solid currentColor;
  padding: 12px 10px;
}

.promo__actions .promo__cta--secondary {
  padding: 12px 10px;
}

/* Red variant (Tryout) – filled card, white content.
   It holds two links, so the card itself does not move on hover. */
.promo--red {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.promo--red:hover {
  transform: none;
  background: var(--color-red);
}

.promo--red:active {
  transform: none;
}

/* Thrown football (replaces the stripes on the red card)
   The ball keeps its angle; its seams and laces roll around the long axis
   to fake a 3D spiral. One seam pass = half a turn across the visible side. */
.promo__ball {
  --spin: 0.9s;
  position: absolute;
  top: 18px;
  right: 16px;
  width: 80px;
  height: 80px;
  pointer-events: none;
  animation: ball-flight 2.4s ease-in-out infinite;
}

.promo__ball svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.promo__ball-body {
  fill: url(#ball-shade);
}

.promo__ball-seam,
.promo__ball-band,
.promo__ball-laces,
.promo__ball-trail {
  fill: none;
  stroke-linecap: round;
}

.promo__ball-seam {
  stroke: var(--color-red);
  stroke-width: 1.2;
  opacity: 0;
  transform-origin: 50px 50px;
  animation: ball-seam var(--spin) linear infinite;
}

.promo__ball-seam:nth-child(2) {
  animation-delay: calc(var(--spin) * -0.25);
}

.promo__ball-seam:nth-child(3) {
  animation-delay: calc(var(--spin) * -0.5);
}

.promo__ball-seam:nth-child(4) {
  animation-delay: calc(var(--spin) * -0.75);
}

.promo__ball-band {
  stroke: var(--color-red);
  stroke-width: 3.5;
}

.promo__ball-laces {
  stroke: var(--color-red);
  stroke-width: 3;
  transform-origin: 50px 50px;
  animation: ball-laces var(--spin) linear infinite;
}

.promo__ball-trail {
  stroke: var(--color-white);
  stroke-width: 2.5;
}

.promo__ball-trail path {
  animation: ball-trail 0.8s linear infinite;
}

.promo__ball-trail path:nth-child(2) {
  animation-delay: -0.3s;
}

.promo__ball-trail path:nth-child(3) {
  animation-delay: -0.55s;
}

/* Gentle bob, like the ball riding through the air */
@keyframes ball-flight {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-3px, -5px) rotate(-3deg);
  }
}

/* A seam travels from the top edge (scaleY 1) across the middle (0) to the
   bottom edge (-1) on the visible side, then is hidden while it goes round the back.
   Steps follow sin() so the motion speeds up in the middle like a real rotation. */
@keyframes ball-seam {
  0% { transform: scaleY(1); opacity: 1; }
  8.33% { transform: scaleY(0.866); }
  16.67% { transform: scaleY(0.5); }
  25% { transform: scaleY(0); }
  33.33% { transform: scaleY(-0.5); }
  41.67% { transform: scaleY(-0.866); }
  49.99% { transform: scaleY(-1); opacity: 1; }
  50% { opacity: 0; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Laces follow the first seam (offset = seam bulge of 24 units) and
   foreshorten (scaleY = cos) towards the edges */
@keyframes ball-laces {
  0% { transform: translateY(-24px) scaleY(0); opacity: 1; }
  8.33% { transform: translateY(-20.8px) scaleY(0.5); }
  16.67% { transform: translateY(-12px) scaleY(0.866); }
  25% { transform: translateY(0) scaleY(1); }
  33.33% { transform: translateY(12px) scaleY(0.866); }
  41.67% { transform: translateY(20.8px) scaleY(0.5); }
  49.99% { transform: translateY(24px) scaleY(0); opacity: 1; }
  50% { opacity: 0; }
  100% { transform: translateY(-24px) scaleY(0); opacity: 0; }
}

/* Speed lines drift backwards and fade */
@keyframes ball-trail {
  0% { transform: translateX(4px); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translateX(-10px); opacity: 0; }
}

.promo--red .promo__kicker {
  color: var(--color-white);
  opacity: 0.85;
}

.promo--red .promo__text {
  color: var(--color-white);
  opacity: 0.9;
}

.promo__note {
  position: relative;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
}

/* Inline map link in the card text */
.promo__link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.promo__link i {
  margin-right: 6px;
}

.promo__link:hover {
  text-decoration-thickness: 2px;
}

.promo--red .promo__cta {
  background: var(--color-white);
  color: var(--color-red);
}

.promo--red .promo__cta--secondary {
  background: transparent;
  color: var(--color-white);
}

.promo--red a.promo__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.promo--red a:focus-visible {
  outline-color: var(--color-white);
}

@keyframes promo-stripe-pulse {
  0% {
    transform: scaleX(0.35);
  }

  50% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0.35);
  }
}

/* Link row
   ========================================================================== */

.row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  transition: transform 0.15s;
}

.row:hover {
  transform: scale(1.02);
}

.row__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-chip);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.row__icon--accent {
  color: var(--color-red);
}

.row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row__title {
  font-weight: 800;
  font-size: 16px;
}

.row__subtitle {
  font-size: 12px;
  color: var(--color-muted);
}

/* Smaller trailing icon for external page links (chevron) */
.row__trail--small {
  font-size: 12px;
}

/* Dark variant */
.row--dark {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.row--dark .row__icon {
  background: var(--color-red);
  color: var(--color-white);
}

.row--dark .row__subtitle {
  color: var(--color-on-dark-muted);
}

/* Social tiles
   ========================================================================== */

.social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.social__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
}

.social__link:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.social__icon {
  font-size: 24px;
}

/* Footer
   ========================================================================== */

.footer {
  padding: 20px 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-muted);
}

.footer__link {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-ink);
  font-weight: 700;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--color-red);
}

/* Secondary footer link (location) – keeps the muted look of plain text */
.footer__link--muted {
  color: var(--color-muted);
  font-weight: 500;
}

/* Subpage (e.g. tryout.html)
   ========================================================================== */

.back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  transition: color 0.15s;
}

.back:hover {
  color: var(--color-red);
}

/* Narrower stripes so they stay clear of the shorter subpage title */
.hero--sub .hero__stripes {
  width: 190px;
  right: -60px;
}

.hero__kicker {
  position: relative;
  display: block;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
}

.hero__kicker + .hero__title {
  margin-top: 8px;
}

.intro {
  padding: 0 8px 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-muted);
  text-wrap: pretty;
}

.intro p {
  margin: 0 0 10px;
}

.intro strong {
  color: var(--color-ink);
}

.intro__lead {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-ink);
}

/* Highlighted note (registration is optional) */
.notice {
  margin-top: 4px;
  padding: 18px;
  border-radius: 16px;
  background: var(--color-red-tint);
  border: 2px solid var(--color-red);
}

.notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice__title {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.notice__text {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted);
  text-wrap: pretty;
}

.notice__text strong {
  color: var(--color-ink);
}

/* Blue info variant */
.notice--info {
  background: var(--color-blue-tint);
  border-color: var(--color-blue);
}

.notice--info .notice__badge {
  background: var(--color-blue);
}

/* Green variant (friendly info, e.g. registration is optional) */
.notice--green {
  background: var(--color-green-tint);
  border-color: var(--color-green);
}

.notice--green .notice__badge {
  background: var(--color-green);
}

.notice--green .notice__cta {
  border-color: var(--color-green);
  color: var(--color-green);
}

.notice--green .notice__cta:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.notice__cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-red);
  color: var(--color-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.15s, color 0.15s;
}

.notice__cta:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* Fact rows: same look as .row, but not links */
.fact {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.fact__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-label);
}

.fact__value {
  display: block;
  margin-top: 2px;
  font-weight: 800;
  font-size: 16px;
}

.fact__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-muted);
}

/* Timeline inside a fact row */
.schedule {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  font-size: 14px;
  font-weight: 500;
}

.schedule__time {
  font-weight: 800;
}

/* Generic white card with a heading */
.card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.card__title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.card__title i {
  color: var(--color-ink);
}

/* Team / age group list */
.teams {
  margin: 0;
  padding: 0;
  list-style: none;
}

.teams__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}

.teams__name {
  font-weight: 700;
}

.teams__age {
  color: var(--color-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Checklist with red tick marks */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist__item {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

.checklist__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--color-green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.fact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red);
}

.fact__link:hover {
  text-decoration: underline;
}

/* Discipline heading (Tackle / Flag) with a coloured bar */
.discipline {
  --accent: var(--color-red);
  margin: 0;
  padding: 22px 4px 6px;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.discipline::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 10px;
  background: var(--accent);
  transform: skewX(-20deg);
}

.discipline--tackle {
  --accent: var(--color-red);
}

.discipline--flag {
  --accent: var(--color-amber);
}

/* Expandable explanation next to a discipline heading (<details>) */
.discipline-info__toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.discipline-info__toggle::-webkit-details-marker {
  display: none;
}

.discipline-info__toggle:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Round "i" button, vertically centred on the heading text */
.discipline-info__button {
  flex-shrink: 0;
  margin-top: 21px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-muted);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.discipline-info__toggle:hover .discipline-info__button {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.discipline-info[open] .discipline-info__button {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

.discipline-info__text {
  margin: 4px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-green-tint);
  border: 2px solid var(--color-green);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
  text-wrap: pretty;
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Training session card (training.html) */
.session {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.session__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.session__team {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.session__age {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-chip);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
}

.session__line {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.session__venue {
  text-decoration: underline;
  text-decoration-color: var(--color-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.session__venue:hover {
  color: var(--color-red);
  text-decoration-color: var(--color-red);
}

/* Big full-width call to action */
.cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 16px;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.15s, background-color 0.15s;
}

.cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(1px);
}

.cta__note {
  margin: 0;
  padding: 2px 8px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
}

/* Dark theme (opt-in per page: <body class="theme-dark">)
   Re-maps the text/surface tokens; brand red and blue stay the same.
   ========================================================================== */

.theme-dark {
  --color-ink: #f2f4f5;
  --color-muted: #a7b2b6;
  --color-label: #82969c;
  --color-page: #1b1c1e;
  --color-backdrop: #0e0f10;
  --color-chip: #2f3337;
  --color-line: #34383c;
  --color-surface: #25272a;

  color-scheme: dark;
}

/* Cards use the raised dark surface instead of white */
.theme-dark .card,
.theme-dark .fact,
.theme-dark .row {
  background: var(--color-surface);
}

/* Team cards stay white on the dark page: re-map the tokens back to light inside them */
.theme-dark .session {
  --color-ink: #2a2b2d;
  --color-muted: #5b6266;
  --color-chip: #e3eeee;
  --color-line: #dde4e5;

  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink);
}

/* Coloured border per discipline (matches the heading bar) */
.theme-dark .session--tackle {
  border: 3px solid var(--color-red);
}

.theme-dark .session--flag {
  border: 3px solid var(--color-amber);
}

.theme-dark .page {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.theme-dark .notice {
  background: rgba(224, 31, 59, 0.12);
}

.theme-dark .notice--info {
  background: rgba(28, 116, 207, 0.14);
}

.theme-dark .notice--green,
.theme-dark .discipline-info__text {
  background: rgba(23, 138, 76, 0.16);
}

/* Slightly lighter green so outlines and text stay readable on dark */
.theme-dark .notice--green .notice__cta {
  color: #3fbf7a;
}

/* Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .promo__ball-seam,
  .promo__ball-trail {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
