/* ---------- Header ---------- */

.stage__header {
  align-items: center;
  border-bottom: none;
  display: flex;
  flex: none;
  gap: 16px;
  justify-content: space-between;
  margin: 0;
  padding: 12px clamp(14px, 2vw, 28px) 4px;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.stage__header > * {
  pointer-events: auto;
}

/* The logo and the actions balance each other so the sport toggle sits in
   the exact middle. */
.stage__header > .stage__logo {
  flex: 1;
}

.stage__header > .web-header__actions {
  flex: 1;
  justify-content: flex-end;
}

/* reset.css underlines every nav link with a white ::after bar — the pitch
   chrome never wants it. */
.pitch-site nav a::after {
  content: none;
}

/* The sport toggle floats in the top middle; the logo and the CTA sit
   directly on the pitch. */
.stage__sport-toggle {
  backdrop-filter: blur(10px);
  background: var(--ps-chrome);
  border: 2px solid var(--ps-ink);
  border-radius: 100px;
  box-shadow: var(--ps-chrome-shadow);
  display: flex;
  gap: 4px;
  padding: 4px;
}

.stage__sport-pill {
  border-radius: 100px;
  color: var(--ps-cream-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  text-decoration: none;
}

.stage__sport-pill:hover {
  color: var(--ps-cream);
}

.stage__sport-pill.is-active {
  background: var(--ps-red);
  color: var(--ps-cream);
}

.pitch-site .stage__header .web-header__toggle {
  background: var(--ps-paper);
  border: 2px solid var(--ps-ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(6, 20, 11, 0.7);
  padding: 8px;
}

/* ---------- Bottom menu ---------- */

/* The menu floats on the pitch above the bottom touchline; the footer sits
   in the dark band below it. */
.stage__menu {
  display: flex;
  flex: none;
  justify-content: center;
  padding: 6px 16px 10px;
  position: relative;
  z-index: 2;
}

.stage__footer {
  align-items: center;
  background: transparent;
  border: none;
  color: rgba(245, 242, 234, 0.55);
  display: flex;
  flex: none;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  gap: 4px 18px;
  justify-content: center;
  letter-spacing: 0.04em;
  padding: 9px 16px 12px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.stage__footer a {
  color: inherit;
  text-decoration: none;
}

.stage__footer a:hover {
  color: var(--ps-cream);
}

.stage__footer-button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
}

.stage__footer-button:hover {
  color: var(--ps-cream);
}

.cookie-consent {
  align-items: center;
  backdrop-filter: blur(10px);
  background: var(--ps-chrome);
  border: 2px solid var(--ps-ink);
  border-radius: 14px;
  bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--ps-cream);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 50;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__body {
  font-size: 14px;
  margin: 0;
}

.cookie-consent__body a {
  color: inherit;
  text-decoration: underline;
}

.cookie-consent__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cookie-consent__preferences {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0 6px;
  text-decoration: underline;
}

.cookie-preferences {
  background: var(--ps-paper);
  border: 2px solid var(--ps-ink);
  border-radius: 16px;
  box-shadow: var(--ps-chrome-shadow);
  color: var(--ps-ink);
  margin: auto;
  max-width: 34rem;
  padding: 0;
  width: calc(100vw - 32px);
}

.cookie-preferences::backdrop {
  background: rgba(6, 20, 11, 0.6);
}

.cookie-preferences__body {
  max-height: min(80dvh, 44rem);
  overflow-y: auto;
  padding: 24px;
}

.cookie-preferences__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
}

.cookie-preferences__category {
  border-top: 1px solid var(--ps-paper-deep);
  padding-top: 14px;
}

.cookie-preferences__cookies summary {
  cursor: pointer;
  text-decoration: underline;
}

.cookie-preferences__cookies[open] summary {
  margin-bottom: 6px;
}

.cookie-preferences__switch {
  appearance: none;
  background: var(--ps-paper-deep);
  border: 2px solid var(--ps-ink);
  border-radius: 999px;
  cursor: pointer;
  flex: none;
  height: 24px;
  margin: 0;
  position: relative;
  transition: background 0.15s;
  width: 44px;
}

.cookie-preferences__switch::before {
  background: var(--ps-ink);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.15s;
  width: 14px;
}

.cookie-preferences__switch:checked {
  background: var(--ps-red);
}

.cookie-preferences__switch:checked::before {
  background: var(--ps-paper);
  transform: translateX(20px);
}

.cookie-preferences__switch:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cookie-preferences__switch:focus-visible {
  outline: 2px solid var(--ps-red);
  outline-offset: 2px;
}

/* On the no-scroll stage the bottom touchline sits 4.05% up (viewBox
   -3 -3 111 74); size the footer to that band so the menu lands a couple
   of pixels above the line. */
@media (min-width: 75rem) {
  .stage__menu {
    padding-bottom: 2px;
  }

  .stage__footer {
    box-sizing: border-box;
    height: 4.05dvh;
    margin: 0;
    min-height: 26px;
    overflow: hidden;
    padding-block: 0;
  }

  /* The rink's band below the boards is taller: 2/34 of its viewBox. */
  .pitch-site--hockey .stage__footer {
    height: 5.88dvh;
  }
}

.pitch-site .stage__menu .web-header__links {
  backdrop-filter: blur(10px);
  background: var(--ps-chrome);
  border: 2px solid var(--ps-ink);
  border-radius: 14px;
  box-shadow: var(--ps-chrome-shadow);
  padding: 6px;
}

.pitch-site .stage__menu .web-header__links .web-header__link {
  color: var(--ps-cream-soft);
  font-size: 13.5px;
}

.pitch-site .stage__menu .web-header__links .web-header__link:hover,
.pitch-site .stage__menu .web-header__links .web-header__link.is-active,
.pitch-site .stage__menu .web-nav:hover > .web-nav__trigger,
.pitch-site .stage__menu .web-nav:focus-within > .web-nav__trigger {
  background: rgba(245, 242, 234, 0.12);
  color: var(--ps-cream);
}

/* Menu dropdowns open upwards from the bottom bar. */
.pitch-site .stage__menu .web-nav__panel {
  inset-block-end: 100%;
  inset-block-start: auto;
  padding-block-end: var(--space-s);
  padding-block-start: 0;
}

.pitch-site .stage__menu .web-nav__card {
  background: var(--ps-paper-raised);
  border: 2px solid var(--ps-ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 rgba(6, 20, 11, 0.6);
}

.stage__logo {
  align-items: center;
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.stage__logo-mark {
  display: block;
  height: 30px;
  width: auto;
}

.stage__logo-brand {
  color: var(--ps-cream);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pitch-site .stage__header .web-header__actions > .web-header__link {
  color: var(--ps-cream-soft);
  font-size: 13.5px;
}

.pitch-site .stage__header .web-header__actions > .web-header__link:hover {
  background: rgba(245, 242, 234, 0.12);
  color: var(--ps-cream);
}

.pitch-site .stage__header .web-header__actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.pitch-site .stage__header .web-header__toggle {
  color: var(--ps-ink);
}

.pitch-site .stage__header .web-header__menu {
  background: var(--ps-paper-raised);
  border: 2px solid var(--ps-ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(6, 20, 11, 0.6);
}

.web-header__menu-ctas {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.web-header__menu-ctas .btn {
  flex: 1 1 0;
  min-width: 0;
}

.stage__cta {
  background: var(--ps-yellow);
  border: 2px solid var(--ps-ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ps-ink);
  color: var(--ps-ink);
  font-size: 13.5px;
  font-weight: 700;
  margin-left: 8px;
  padding: 9px 16px;
  text-decoration: none;
}

.stage__cta:hover {
  box-shadow: 1px 1px 0 var(--ps-ink);
  color: var(--ps-ink);
  translate: 2px 2px;
}

.stage__cta--ghost {
  background: transparent;
  border-color: rgb(255 251 240 / 0.55);
  box-shadow: 3px 3px 0 rgba(6, 20, 11, 0.55);
  color: var(--ps-cream);
}

.stage__cta--ghost:hover {
  box-shadow: 1px 1px 0 rgba(6, 20, 11, 0.55);
  color: var(--ps-yellow);
}

/* ---------- Small screens ---------- */

@media (max-width: 49.999rem) {
  .stage__header {
    gap: 10px;
    padding: 12px 16px 4px;
  }

  .stage__logo-brand {
    display: none;
  }
}
