/* Coventry City Scandinavia — aligned with ccfc.co.uk tokens
   Fonts: Montserrat / Montserrat SemiBold (CCFC primary/secondary)
   Colors: CCFC primary scale (primary-500 #62b5e5, primary-600 #299adc) */

:root {
  /* CCFC primary-* */
  --sky: #62b5e5; /* primary-500 */
  --sky-bright: #80c3ea; /* primary-400 */
  --sky-deep: #299adc; /* primary-600 */
  --sky-dark: #1c73a6; /* primary-700 */
  --sky-mist: #c2e2f5; /* primary-200 */
  --ink: #092739; /* primary-900 */
  --ink-soft: #134f72; /* primary-800 */
  --paper: #edf7fc; /* primary-50 */
  --white: #ffffff;
  --neutral: #242424; /* neutral-900 */
  --line: rgba(9, 39, 57, 0.12);
  --line-strong: rgba(9, 39, 57, 0.22);
  --muted: rgba(9, 39, 57, 0.62);

  /* CCFC: --primary-font MontserratSemiBold, --secondary-font Montserrat */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sky-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600; /* Montserrat SemiBold — CCFC font-heading */
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0;
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section__head {
  position: relative;
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
  padding: 0.1rem 0 1.4rem 1.3rem;
}

.section__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 1.4rem;
  width: 3px;
  background: linear-gradient(180deg, var(--sky-bright), var(--sky-deep));
  border-radius: 2px;
  transform-origin: top center;
  animation: head-rule 0.85s var(--ease) both;
}

.section__head::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent 90%);
}

.section__head .tag {
  margin-bottom: 0.7rem;
}

.section__head .tag::before {
  display: none;
}

.section__head h2 {
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.section__head > p:not(.tag) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}

@keyframes head-rule {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-mist);
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a[hidden],
[data-nav][hidden],
[data-section][hidden] {
  display: none !important;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.55rem 0.7rem;
  transition: color 0.25s var(--ease);
}

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

.nav a.nav__external::after {
  content: "↗";
  margin-left: 0.2em;
  font-size: 0.7em;
  opacity: 0.7;
  vertical-align: super;
  line-height: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 1rem;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.45rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--sky {
  background: var(--sky);
  color: var(--white);
}

.btn--sky:hover {
  background: var(--sky-deep);
  color: var(--white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero (full-bleed) ——
   Visual sits in normal flow (not absolute behind content) so the photos
   always keep reserved height on desktop/Safari — the solid copy band
   previously could cover the entire hero when viewport height was short
   or page zoom was elevated (common on Mac). */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__visual {
  position: relative;
  flex: 1 1 auto;
  /* Always reserve a visible photo plane above the copy band */
  min-height: clamp(16rem, 48vh, 36rem);
  min-height: clamp(16rem, 48svh, 36rem);
  background: var(--ink);
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background-color: var(--ink);
  opacity: 0;
  transform: scale(1.04);
  transform-origin: center top;
  transition:
    opacity 1.1s var(--ease),
    transform 8s var(--ease);
  /* Avoid will-change: Safari can fail to paint bg/img layers with it */
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Keep faces/heads visible — photos are framed tightly at the top */
  object-position: center top;
  display: block;
  pointer-events: none;
  /*
    Photos have almost no headroom; nudge + slight scale so heads sit
    clearly below the sticky header instead of flush against it.
  */
  -webkit-transform: translate3d(0, 10%, 0) scale(1.15);
  transform: translate3d(0, 10%, 0) scale(1.15);
  transform-origin: center top;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 18, 26, 0.15) 0%,
      rgba(4, 18, 26, 0.28) 45%,
      rgba(4, 18, 26, 0.45) 100%
    );
}

.hero__visual::after {
  content: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    clamp(2rem, 5vw, 3rem)
    max(1rem, calc((100% - var(--max)) / 2))
    clamp(2.25rem, 6vw, 3.5rem);
  background: #04121a;
  box-shadow: 0 -2.5rem 2.5rem 1.25rem rgba(4, 18, 26, 0.88);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 0.85rem;
  color: #ffffff;
  text-shadow: none;
  -webkit-text-stroke: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__brand span {
  display: block;
  color: #ffffff;
}

.hero__brand span:last-child {
  color: #ffffff;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 34rem;
  color: #ffffff;
  text-shadow: none;
  -webkit-text-stroke: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero .cta-row {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.hero .btn--solid {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
}

.hero .btn--solid:hover {
  background: var(--sky-mist);
  color: var(--ink);
  border-color: var(--sky-mist);
}

.hero .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.7s forwards;
}

.hero__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero__dot:hover,
.hero__dot:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  outline: none;
}

.hero__dot.is-active {
  background: var(--sky-mist);
  border-color: var(--sky-mist);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: opacity 0.01ms linear !important;
    transform: none !important;
  }

  .hero__brand,
  .hero__lead,
  .hero .cta-row,
  .hero__dots,
  .reveal,
  .tag::before,
  .section__head::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Page hero (inner pages) —— */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--sky-dark), var(--sky-deep) 45%, var(--sky));
  opacity: 0.92;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 18, 26, 0.55));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  max-width: 12ch;
  margin-bottom: 0.65rem;
}

.page-hero p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
}

/* —— Match list —— */
.match-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.match {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.match__when {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.match__when strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.match__teams {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.match__comp {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-top: 0.35rem;
}

.match__score {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 4.5rem;
  text-align: right;
}

.match__status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.match--result .match__score {
  color: var(--sky-deep);
}

.match-detail {
  grid-column: 1 / -1;
  display: none;
  padding: 0.25rem 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.match.is-open .match-detail {
  display: block;
}

.match__toggle {
  grid-column: 1 / -1;
  justify-self: start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-deep);
  cursor: pointer;
}

@media (max-width: 640px) {
  .match {
    grid-template-columns: 1fr auto;
  }

  .match__when {
    grid-column: 1 / -1;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* —— News —— */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.news-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease);
}

.news-item:hover {
  color: var(--sky-deep);
}

.news-item__date {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.news-item h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin-bottom: 0.4rem;
}

.news-item p {
  color: var(--muted);
  max-width: 40rem;
}

.news-item:hover p {
  color: var(--muted);
}

.news-item__image {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin-top: 0.85rem;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article {
  max-width: 40rem;
}

.article__meta {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(32rem, 70vh);
  object-fit: contain;
  margin: 0 0 1.5rem;
  background: transparent;
}

.article h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  margin-bottom: 1.25rem;
}

.article p + p {
  margin-top: 1rem;
}

/* —— Ryktebørsen —— */
.rumors-disclaimer {
  max-width: 40rem;
  margin: 0 0 2rem;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 3px solid var(--sky);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rumor-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.rumor-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.rumor-item__date {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.rumor-item__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--sky-deep);
}

.rumor-item__tag--bekreftet {
  color: #1a6b3c;
}

.rumor-item__tag--avvist {
  color: #8a3a2a;
}

.rumor-item h2,
.rumor-item__title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin: 0 0 0.45rem;
}

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

.rumor-item__title a:hover {
  color: var(--sky-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rumor-item__summary {
  color: var(--muted);
  margin: 0 0 0.85rem;
  max-width: 38rem;
  line-height: 1.55;
}

.rumor-item__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.rumor-item__meta a {
  color: var(--sky-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rumor-item__meta a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .rumor-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .rumor-item__date {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .news-item__date {
    padding-top: 0;
  }

  .news-item__image {
    max-width: none;
  }
}

/* —— About / split —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split__visual {
  min-height: 22rem;
  background:
    linear-gradient(160deg, rgba(9, 39, 57, 0.2), rgba(9, 39, 57, 0.55)),
    linear-gradient(135deg, var(--sky-dark), var(--sky-bright));
  position: relative;
  overflow: hidden;
}

.split__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pitch-grain.svg");
  background-size: cover;
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.split__copy h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

.split__copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__visual {
    min-height: 14rem;
    order: -1;
  }
}

/* —— Note strip —— */
.note {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.25rem 0;
  font-size: 0.9rem;
}

.note a {
  color: var(--sky-mist);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0;
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.footer-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  min-width: 0;
}

.footer-login {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-login:hover {
  color: var(--sky-mist);
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.site-footer p,
.footer-text {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  max-width: 36rem;
}

.site-footer p[hidden],
.footer-text[hidden] {
  display: none;
}

.footer-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 720px) {
  .site-footer {
    padding: 0.85rem 0;
  }

  .site-footer .wrap {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .footer-start {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .site-footer strong {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .footer-meta {
    flex-shrink: 1;
    min-width: 0;
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-footer p,
  .footer-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-meta {
    display: none;
  }
}

/* —— Utility —— */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.8s var(--ease) forwards;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.empty-state {
  padding: 2rem 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 0.75rem;
}

.tag::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--sky);
  flex-shrink: 0;
  transform-origin: left center;
  animation: tag-rule 0.7s var(--ease) 0.15s both;
}

@keyframes tag-rule {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* —— Season stats —— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  margin-bottom: 2.5rem;
}

.stat-cell {
  background: var(--paper);
  padding: 1.25rem 1rem;
}

.stat-cell__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-cell__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

.stat-cell__value--sky {
  color: var(--sky-deep);
}

.stat-cell__hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

@media (max-width: 700px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line-strong);
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.stat-table th,
.stat-table td {
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.stat-table th {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-table td:nth-child(n + 3),
.stat-table th:nth-child(n + 3) {
  text-align: right;
}

.stat-table .res-W {
  color: var(--sky-deep);
  font-weight: 800;
}

.stat-table .res-D {
  color: var(--muted);
  font-weight: 800;
}

.stat-table .res-L {
  color: #a33;
  font-weight: 800;
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.callout {
  border-left: 3px solid var(--sky);
  padding: 1rem 0 1rem 1.1rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

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

/* —— Medlemskap —— */
.page-hero--member {
  padding-bottom: clamp(3rem, 6vw, 4.25rem);
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.85rem;
}

.section--member {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(98, 181, 229, 0.14), transparent 55%),
    var(--paper);
}

.member-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .member-layout {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.member-intro h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.member-intro > p {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.member-points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.member-points li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.member-points__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.member-points__text {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.member-note {
  border-left: 3px solid var(--sky);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

.member-form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  box-shadow: 0 18px 40px -28px rgba(9, 39, 57, 0.45);
}

.member-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-dark), var(--sky), var(--sky-bright));
}

.member-form-card__head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.member-form-card__title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-bottom: 0.4rem;
}

.member-form-card__lead {
  color: var(--muted);
  font-size: 0.95rem;
}

.member-form {
  display: grid;
  gap: 1rem;
}

.member-form__row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .member-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.member-form__consents {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.member-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.member-form input,
.member-form select,
.member-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.member-form input:hover,
.member-form select:hover,
.member-form textarea:hover {
  border-color: color-mix(in srgb, var(--sky-deep) 45%, var(--line-strong));
}

.member-form input:focus,
.member-form select:focus,
.member-form textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  background: var(--white);
  border-color: var(--sky);
}

.member-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}

.member-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--sky-deep);
}

.member-check span {
  line-height: 1.45;
}

.member-lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

.member-msg {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.member-msg.is-error {
  color: #a33;
}

.member-msg.is-ok {
  color: var(--ink-soft);
}

.member-msg[hidden] {
  display: none !important;
}

.member-form-card .cta-row {
  margin-top: 0.25rem;
}

.member-form-card .btn {
  width: 100%;
}

@media (min-width: 520px) {
  .member-form-card .btn {
    width: auto;
    min-width: 12rem;
  }
}

.member-unsub {
  max-width: 28rem;
  margin-inline: auto;
}

.member-btn--ink {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.member-btn--ink:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink-soft);
}
