/* Rubik variable font, self-hosted under the SIL Open Font License 1.1. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --theme-color: #397d2b;
  --field: #143621;
  --field-soft: #214c31;
  --grass-light: #a3e66f;
  --grass-soft: #e5f3da;
  --paper: #eef5e9;
  --cream: #fbfdf8;
  --line: #c9d8c1;
  --muted: #5d6d60;
  --surface-strong: #dce9d5;
  --surface-hover: #e7f1e1;
  --hero-muted: #bed0c0;
  --black: var(--field);
  --black-soft: var(--field-soft);
  --green: var(--theme-color);
  --amber: #b86808;
  --red: #b83d36;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  direction: inherit;
  text-align: start;
  font-family: Rubik, Arial, sans-serif;
}

button,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.site-header {
  min-height: 76px;
  padding: 8px clamp(20px, 6vw, 92px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(251, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.catalog-header {
  grid-template-columns: 1fr auto;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.facebook-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--field);
  background: var(--field);
  color: var(--white);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.facebook-link svg {
  width: 19px;
  height: 19px;
  display: block;
}

.facebook-link:hover {
  border-color: var(--theme-color);
  background: var(--theme-color);
  transform: translateY(-1px);
}

.facebook-link:focus-visible {
  outline: 3px solid var(--grass-light);
  outline-offset: 3px;
}

.language-switch {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--field);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: var(--theme-color);
  background: var(--grass-soft);
  color: var(--theme-color);
}

.language-switch:focus-visible {
  outline: 3px solid var(--grass-light);
  outline-offset: 3px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
}

.brand-art {
  width: 148px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--theme-color);
  -webkit-mask: url("/assets/logos/roz.svg") center / contain no-repeat;
  mask: url("/assets/logos/roz.svg") center / contain no-repeat;
}

.brand-art img {
  width: 148px;
  height: 58px;
  display: block;
  border: 0;
  object-fit: contain;
  opacity: 0;
}

#view-nav {
  min-height: 72px;
  padding: 0 clamp(24px, 8vw, 126px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

#view-nav button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 3px;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

#view-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--grass-light);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

#view-nav button:hover,
#view-nav button.nav-active {
  color: var(--theme-color);
}

#view-nav button.nav-active::after {
  transform: scaleX(1);
}

#view-nav:not([hidden]) + .content {
  padding-top: 46px;
}

.season-pill {
  justify-self: end;
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.season-pill:hover {
  background: var(--theme-color);
  color: var(--white);
}

.header-context {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.eyebrow > span {
  width: 28px;
  height: 3px;
  display: block;
  background: currentColor;
}

.catalog-hero {
  min-height: 510px;
  padding: 86px clamp(24px, 8vw, 126px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--field);
  color: var(--white);
}

.catalog-hero::before {
  content: "26";
  position: absolute;
  left: clamp(-24px, 2vw, 30px);
  bottom: -72px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(163, 230, 111, 0.14);
  font-size: clamp(180px, 25vw, 360px);
  font-weight: 900;
  line-height: 0.8;
  direction: ltr;
}

.catalog-hero > * {
  max-width: 830px;
  position: relative;
  z-index: 1;
}

.catalog-hero .eyebrow,
.competition-hero .eyebrow {
  color: var(--grass-light);
}

.catalog-hero h1 {
  margin: 0;
  font-size: clamp(27px, 3.75vw, 54px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.catalog-hero h1 em {
  color: var(--grass-light);
  font-style: normal;
}

.catalog-hero > p:last-child {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--hero-muted);
  font-size: 17px;
  line-height: 1.8;
}

.catalog-content,
.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 34px 110px;
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--theme-color);
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.catalog-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.catalog-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sport-group {
  padding: 36px 0 58px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.sport-group:last-child {
  border-bottom: 0;
}

.sport-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.sport-symbol {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--theme-color);
  background: var(--grass-light);
  color: var(--field);
  font-size: 13px;
  font-weight: 850;
}

.sport-handball {
  background: var(--cream);
  color: var(--theme-color);
}

/* The sport and continent marks sit bare beside the name and take its colour. */
.competition-icon {
  flex: 0 0 auto;
  display: block;
}

.competition-icon-hero {
  width: clamp(40px, 5vw, 58px);
  height: clamp(40px, 5vw, 58px);
}

.competition-title {
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.8vw, 18px);
}

.competition-title h1 {
  min-width: 0;
}

.match-competition-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sport-basketball {
  background: #f0c96b;
  color: var(--field);
}

.sport-volleyball {
  background: #d8edf0;
  color: var(--field);
}

.sport-symbol-mark {
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: var(--theme-color);
}

.sport-heading h3 {
  margin: 3px 0 4px;
  font-size: 23px;
  line-height: 1.1;
  color: var(--theme-color);
}

.sport-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.competition-card {
  min-height: 235px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.competition-card:hover {
  border-color: var(--theme-color);
  box-shadow: 8px 8px 0 var(--grass-light);
  transform: translate(-3px, -3px);
}

.competition-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
}

.status-published {
  color: var(--green);
}

.status-planned {
  color: var(--amber);
}

.competition-card h4 {
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--field);
}

.competition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.competition-link {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.competition-link code {
  overflow: hidden;
  color: #77766f;
  font: 600 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-link > span {
  color: var(--theme-color);
  font-size: 20px;
}

.competition-hero {
  min-height: 430px;
  padding: 64px clamp(24px, 8vw, 126px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  background: var(--field);
  color: var(--white);
}

.competition-page-hero {
  grid-template-columns: minmax(0, 780px);
}

.competition-hero-copy {
  max-width: 780px;
}

.breadcrumbs {
  margin-bottom: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--hero-muted);
  font-size: 11px;
  font-weight: 700;
}

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

.competition-hero h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 41px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.competition-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--hero-muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-meta > span:first-child {
  padding: 7px 10px;
  background: var(--grass-light);
  color: var(--field);
  font-size: 11px;
  font-weight: 750;
}

.hero-meta .status-badge {
  color: var(--hero-muted);
}

.hero-meta .status-unannounced {
  color: var(--grass-light);
}

.hero-meta .phase-label {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.stats-card {
  min-height: 275px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  color: var(--black);
  box-shadow: 14px 14px 0 rgba(163, 230, 111, 0.16);
}

.stats-card > div {
  min-height: 135px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-card > div:first-child {
  grid-row: span 2;
  border-right: 0;
  border-bottom: 0;
}

.stats-card strong {
  font-size: 55px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--theme-color);
}

.stats-card > div:first-child strong {
  font-size: 88px;
}

.stats-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.team-filter {
  min-width: 300px;
  display: grid;
  gap: 7px;
}

.fixture-filters {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(118px, 0.55fr);
  align-items: end;
  gap: 14px;
}

.fixture-filters .team-filter {
  min-width: 0;
}

.round-filter {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.round-filter > span {
  font-size: 10px;
  font-weight: 800;
}

.team-filter > span {
  font-size: 10px;
  font-weight: 800;
}

.team-filter-menu {
  position: relative;
}

.team-filter-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 12px 7px 38px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--black);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

/* A long club name stays on one line; the list below still shows it in full. */
.team-filter-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-filter-button-logo,
.team-filter-option-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.team-filter-all-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--theme-color);
  color: var(--white);
  font-size: 8px;
  font-weight: 850;
}

.team-filter-chevron {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(-45deg);
}

.team-filter-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--theme-color);
  background: var(--cream);
  box-shadow: 8px 8px 0 rgba(20, 54, 33, 0.18);
}

.team-filter-options[hidden] {
  display: none;
}

.team-filter-option {
  width: 100%;
  min-height: 48px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--black);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.team-filter-option:hover,
.team-filter-option:focus-visible,
.team-filter-option-selected {
  background: var(--grass-soft);
}

.team-filter-option small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.club-filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.filter-control {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.filter-control > span {
  font-size: 10px;
  font-weight: 850;
}

.filter-control select,
.round-filter select {
  width: 100%;
  min-height: 50px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 15px 0 42px;
  background: var(--cream) linear-gradient(225deg, transparent 50%, var(--black) 50%) 17px 48%/6px 6px no-repeat;
  color: var(--black);
  font-weight: 750;
  cursor: pointer;
}

/* Matches the team button beside it, so the two labels line up. */
.round-filter select {
  min-height: 48px;
}

.filter-control select:focus-visible,
.round-filter select:focus-visible,
.team-filter-button:focus-visible,
.team-filter-option:focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: 2px;
}

.matchday-header {
  min-height: 112px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.matchday-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matchday-header > div span {
  writing-mode: vertical-rl;
  font-size: 9px;
  font-weight: 850;
}

.matchday-header > div b {
  font-size: 56px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--theme-color);
}

.matchday-header > div b.matchday-label {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.matchday-header p {
  margin: 0;
  padding-right: 26px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.matchday-phase {
  margin-bottom: 5px;
  display: block;
  color: var(--theme-color);
  font-size: 12px;
  font-weight: 850;
}

.recovery-badge {
  margin-right: auto;
  padding: 8px 10px;
  background: var(--theme-color);
  color: var(--white);
  font-size: 10px;
  font-weight: 850;
}

.matches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: 1px solid var(--line);
}

.matches-group-title {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 28px 12px;
  background: var(--surface-hover);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--theme-color);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.match-card {
  min-height: 116px;
  padding: 24px 28px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.match-card-enriched {
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
}

.match-card-detailed {
  min-height: 154px;
  padding: 26px 28px 18px;
  gap: 14px 8px;
}

.match-index {
  position: absolute;
  top: 10px;
  left: 12px;
  color: #b9b4ab;
  font: 800 9px/1 ui-monospace, monospace;
}

.team {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  text-align: left;
}

.team-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.team-away {
  flex-direction: row-reverse;
  text-align: right;
}

.team-name {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.team-code {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.team-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.team-logo-fallback {
  display: grid;
  place-items: center;
  background: var(--theme-color);
  color: var(--white);
  font-size: 8px;
  font-weight: 850;
}

.team-logo-slot {
  border: 2px dashed var(--line);
  border-radius: 50%;
}

.team-slot .team-name {
  font-weight: 850;
  letter-spacing: 0.04em;
}

.team-slot-note {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.team-link {
  border-radius: 1px;
  outline: 0;
}

.team-link .team-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.team-link:hover .team-name,
.team-link:focus-visible .team-name {
  color: var(--theme-color);
  text-decoration-color: currentColor;
}

.team-link:focus-visible {
  box-shadow: 0 0 0 3px var(--grass-light);
}

.team-current .team-logo {
  outline: 2px solid var(--theme-color);
  outline-offset: 4px;
}

.club-title {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
}

.club-title h1 {
  min-width: 0;
}

.club-logo-hero {
  width: clamp(82px, 10vw, 126px);
  height: clamp(82px, 10vw, 126px);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.match-summary {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.match-score i {
  color: #8b8d89;
  font-size: 14px;
  font-style: normal;
}

.match-time {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.match-penalties {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.match-state {
  padding: 4px 6px;
  border: 1px solid currentColor;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.state-live {
  background: var(--red);
  color: var(--white);
}

.state-finished {
  color: var(--green);
}

.state-postponed,
.state-cancelled {
  color: var(--amber);
}

.match-details {
  min-width: 0;
  padding-top: 12px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.match-details time {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.match-details time b {
  color: var(--theme-color);
  font-size: 11px;
}

.match-venue::before {
  content: "·";
  margin-left: 16px;
  color: #aaa59d;
}

.versus {
  color: #959792;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.recovery-note,
.source-warning,
.empty-state {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-right: 3px solid var(--theme-color);
  background: var(--grass-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.source-warning {
  border-color: var(--amber);
}

.club-section-heading {
  align-items: end;
}

.club-result-count {
  padding: 8px 11px;
  border: 1px solid var(--theme-color);
  background: var(--theme-color);
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
}

.club-fixtures-list {
  border: solid var(--line);
  border-width: 1px 1px 0;
}

.club-match-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.club-match-context {
  padding: 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.club-match-context > a {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.club-match-context > a:hover,
.club-match-context > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.club-match-context > span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.club-match-context time {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 750;
}

.club-match-context time b {
  padding: 3px 5px;
  background: var(--theme-color);
  color: var(--white);
  font-size: 10px;
}

.club-match-context > .club-match-venue {
  margin-top: 6px;
  font-size: 10px;
}

.club-match-context small {
  position: absolute;
  left: 13px;
  bottom: 12px;
  color: #aaa59d;
  font: 800 9px/1 ui-monospace, monospace;
}

.club-match-teams {
  padding: 22px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.club-match-teams-enriched {
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
}

.club-match-teams .team {
  min-height: 62px;
}

.club-empty-state {
  min-height: 230px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--cream);
  text-align: center;
}

.club-empty-state strong {
  font-size: 22px;
}

.club-empty-state span {
  color: var(--muted);
  font-size: 12px;
}

.club-not-found {
  min-height: calc(100vh - 76px);
}

.load-state {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.loading-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--theme-color);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-error {
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--cream);
}

.load-error strong {
  color: var(--black);
  font-size: 20px;
}

.planned-content {
  padding-top: 70px;
  padding-bottom: 90px;
}

.planned-state {
  max-width: 760px;
  min-height: 410px;
  padding: clamp(28px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 12px 12px 0 var(--grass-light);
}

.planned-state .sport-symbol {
  margin-bottom: 40px;
}

.planned-state .eyebrow {
  margin-bottom: 12px;
}

.planned-state h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.planned-state > p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.planned-state > a {
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--theme-color);
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 800;
}

.competition-fr {
  margin-top: 14px;
  display: block;
  color: var(--hero-muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.match-page-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--theme-color);
  font-size: 10px;
  font-weight: 850;
}

.match-page-link:hover,
.match-page-link:focus-visible {
  color: var(--field);
}

.match-card > .match-page-link,
.club-match-card > .match-page-link {
  margin-top: 2px;
  grid-column: 1 / -1;
  justify-self: center;
}

.club-match-card > .match-page-link {
  margin: 0;
  padding: 10px 18px;
  justify-self: stretch;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--grass-soft);
}

.match-page-content {
  padding-top: clamp(46px, 6vw, 82px);
}

.match-card-page {
  width: min(900px, 100%);
  min-height: 240px;
  margin-inline: auto;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 var(--grass-light);
}

.match-related-links {
  width: min(900px, 100%);
  height: auto;
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.match-related-links a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 800;
}

.seo-content {
  padding: clamp(48px, 7vw, 92px) clamp(24px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.seo-content > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.seo-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

.seo-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.seo-content-slim {
  padding-block: 26px;
}

.seo-content-slim .seo-source {
  margin-block: 0;
}

.seo-static-matches ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-static-matches li {
  min-height: 52px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
}

.seo-static-matches li:first-child {
  border-top: 0;
}

.seo-static-matches li small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.seo-static-matches {
  border: 1px solid var(--line);
  background: var(--cream);
}

.seo-related-links {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.seo-related-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  color: var(--theme-color);
  font-size: 12px;
  font-weight: 800;
}

.seo-source {
  margin-top: 22px;
  font-size: 11px !important;
}

.static-match-page {
  width: min(900px, 100%);
  margin-inline: auto;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--grass-light);
}

.static-match-teams {
  min-height: 170px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  text-align: center;
}

.static-match-teams span {
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 850;
}

.static-match-teams strong {
  min-width: 72px;
  color: var(--theme-color);
  font-size: clamp(22px, 4vw, 40px);
}

.static-match-page dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.static-match-page dl div {
  min-width: 0;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.static-match-page dl div:last-child {
  border-left: 0;
}

.static-match-page dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.static-match-page dd {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
}

.static-match-page a {
  color: var(--theme-color);
}

.consent-banner {
  width: min(920px, calc(100% - 28px));
  padding: 18px 20px;
  position: fixed;
  right: 50%;
  bottom: 14px;
  z-index: 50;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--grass-light);
  background: var(--field);
  color: var(--white);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.consent-banner strong {
  font-size: 14px;
}

.consent-banner p {
  max-width: 610px;
  margin: 5px 0 0;
  color: var(--hero-muted);
  font-size: 11px;
  line-height: 1.7;
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent-actions button {
  padding: 10px 12px;
  border: 1px solid var(--grass-light);
  background: var(--grass-light);
  color: var(--field);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.consent-actions button:last-child {
  background: transparent;
  color: var(--white);
}

footer {
  min-height: 160px;
  padding: 34px clamp(24px, 6vw, 92px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 550px) auto;
  align-items: center;
  gap: 40px;
  --theme-color: var(--grass-light);
  border-top: 4px solid var(--grass-light);
  background: var(--field);
  color: var(--white);
}

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

footer p {
  margin: 0;
  color: var(--hero-muted);
  font-size: 12px;
  line-height: 1.75;
}

.footer-copy-block {
  display: grid;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--white);
  font-size: 11px;
  font-weight: 750;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(163, 230, 111, 0.55);
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--grass-light);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--grass-light);
  outline-offset: 4px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-facebook-link {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.footer-facebook-link:hover {
  border-color: var(--white);
  background: var(--field-soft);
}

.footer-meta > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-hero {
  min-height: 360px;
  grid-template-columns: minmax(0, 820px);
}

.legal-content {
  max-width: 980px;
}

.legal-document {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--cream);
}

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--theme-color);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section a {
  color: var(--theme-color);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-details {
  margin: 24px 0 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-details > div {
  min-height: 58px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.legal-details dd {
  margin: 0;
  color: var(--field);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.privacy-reset {
  margin-top: 20px;
  padding: 11px 14px;
  border: 1px solid var(--theme-color);
  background: var(--theme-color);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.privacy-reset:hover,
.privacy-reset:focus-visible {
  background: var(--field);
  border-color: var(--field);
}

.privacy-reset:focus-visible {
  outline: 3px solid var(--grass-light);
  outline-offset: 3px;
}

.privacy-reset-status {
  min-height: 1.9em;
  margin-top: 8px !important;
  font-size: 11px !important;
}

.legal-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.consent-policy-link {
  color: var(--grass-light);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found {
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--field);
  color: var(--white);
  text-align: center;
}

.not-found > span {
  color: var(--grass-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.not-found h1 {
  margin: 18px 0 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1;
}

.not-found p {
  color: var(--hero-muted);
}

.not-found a {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--grass-light);
  color: var(--field);
  font-size: 12px;
  font-weight: 800;
}

.standings-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}

.standings-progress {
  min-height: 72px;
  padding: 16px 22px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.standings-progress strong {
  color: var(--theme-color);
  font-size: 30px;
  font-weight: 900;
}

.standings-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.standings-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.standings-scroll:focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: -3px;
}

.standings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.standings-table caption {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.standings-table th,
.standings-table td {
  height: 58px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.standings-table thead th {
  height: 44px;
  background: var(--field);
  color: var(--white);
  font-size: 10px;
  font-weight: 850;
}

.standings-table thead abbr {
  text-decoration: none;
}

.standings-table tbody tr:last-child > * {
  border-bottom: 0;
}

.standings-table tbody tr:hover > * {
  background: var(--grass-soft);
}

.standings-team-heading {
  min-width: 250px;
  text-align: right;
}

.standings-team {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--field);
  text-align: right;
}

html[dir="ltr"] .catalog-hero::before {
  right: clamp(-24px, 2vw, 30px);
  left: auto;
}

html[dir="ltr"] .team-filter-button,
html[dir="ltr"] .team-filter-option,
html[dir="ltr"] .standings-team-heading,
html[dir="ltr"] .standings-team {
  text-align: left;
}

html[dir="ltr"] .team-filter-button {
  padding: 7px 38px 7px 12px;
}

html[dir="ltr"] .team-filter-chevron {
  right: 16px;
  left: auto;
}

html[dir="ltr"] .filter-control select,
html[dir="ltr"] .round-filter select {
  padding: 0 42px 0 15px;
  background-position: calc(100% - 17px) 48%;
}

html[dir="ltr"] .matchday-header p {
  padding-right: 0;
  padding-left: 26px;
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="ltr"] .recovery-badge {
  margin-right: 0;
  margin-left: auto;
}

html[dir="ltr"] .recovery-note,
html[dir="ltr"] .source-warning,
html[dir="ltr"] .empty-state {
  border-right: 0;
  border-left: 3px solid var(--theme-color);
}

html[dir="ltr"] .source-warning {
  border-left-color: var(--amber);
}

.standings-team:hover span,
.standings-team:focus-visible span {
  color: var(--theme-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.standings-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.standings-rank strong {
  color: var(--theme-color);
  font-size: 16px;
  font-weight: 900;
}

.standings-points {
  background: var(--grass-soft);
  color: var(--field);
  font-size: 15px;
}

.standings-unplayed {
  color: var(--muted);
}

.standings-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.8;
}

.static-standings {
  margin-top: 58px;
}

/* A group stage stacks one table per group, each named above its table. */
.standings-groups {
  display: grid;
  gap: 34px;
}

/* A grid item otherwise grows to its table's width and pushes the page sideways on a
   phone; at zero the table scrolls inside its own box, as a single table does. */
.standings-group {
  min-width: 0;
}

.standings-group-title {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.1;
  color: var(--theme-color);
}

.seo-match-score {
  color: var(--theme-color);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .sport-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .competition-hero {
    grid-template-columns: 1fr 260px;
    gap: 42px;
  }

  .competition-page-hero {
    grid-template-columns: minmax(0, 780px);
    gap: 0;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .club-match-card {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.5fr);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 6px 16px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .catalog-header {
    grid-template-columns: 1fr auto;
  }

  .brand-art,
  .brand-art object {
    width: 104px;
    height: 48px;
  }

  .brand-fallback {
    font-size: 21px;
  }

  #view-nav {
    min-height: 54px;
    padding-inline: 16px;
    justify-content: center;
    gap: 13px;
  }

  #view-nav button {
    font-size: 12px;
  }

  #view-nav button::after {
    bottom: 0;
  }

  .header-context {
    display: none;
  }

  .season-pill {
    padding: 7px 8px;
    font-size: 9px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switch {
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  .header-facebook-link {
    width: 32px;
    height: 32px;
  }

  .header-facebook-link svg {
    width: 16px;
    height: 16px;
  }

  /* On a phone the hero is overhead before the calendars: let the copy set its
     height rather than a 440px floor that left two thirds of it empty, and drop
     the eyebrow, whose claim the paragraph beneath it already makes. */
  .catalog-hero {
    min-height: 0;
    padding: 38px 22px 42px;
  }

  .catalog-hero .eyebrow {
    display: none;
  }

  .catalog-hero::before {
    bottom: -44px;
    font-size: 150px;
  }

  .catalog-hero h1 {
    font-size: 28px;
  }

  .catalog-hero > p:last-child {
    margin-top: 16px;
    font-size: 14px;
  }

  .catalog-content,
  .content {
    padding: 62px 16px 78px;
  }

  #view-nav:not([hidden]) + .content {
    padding-top: 34px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-heading {
    flex-direction: row;
    align-items: end;
  }

  .competition-grid {
    grid-template-columns: 1fr;
  }

  .competition-card {
    min-height: 220px;
  }

  .competition-hero {
    min-height: auto;
    padding: 54px 22px 62px;
    grid-template-columns: 1fr;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .competition-hero h1 {
    font-size: 25px;
  }

  .stats-card {
    max-width: 320px;
    min-height: 230px;
  }

  .stats-card > div {
    min-height: 112px;
    padding: 18px;
  }

  .stats-card strong {
    font-size: 45px;
  }

  .stats-card > div:first-child strong {
    font-size: 67px;
  }

  .team-filter {
    min-width: 0;
  }

  .fixture-filters {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* The club list opens across the whole row, not just the half-width button. */
  .fixture-filters .team-filter-menu {
    position: static;
  }

  .team-filter-button {
    padding: 7px 10px 7px 30px;
    gap: 8px;
  }

  .team-filter-chevron {
    left: 12px;
  }

  .round-filter select {
    padding: 0 12px 0 32px;
    background-position: 13px 48%;
  }

  html[dir="ltr"] .team-filter-button {
    padding: 7px 30px 7px 10px;
  }

  html[dir="ltr"] .team-filter-chevron {
    right: 12px;
  }

  html[dir="ltr"] .round-filter select {
    padding: 0 32px 0 12px;
    background-position: calc(100% - 13px) 48%;
  }

  .club-filter-panel {
    margin-inline: -16px;
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .club-match-card {
    grid-template-columns: 1fr;
  }

  .club-match-context {
    padding: 18px 18px 20px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .club-match-context small {
    left: 14px;
    top: 18px;
    bottom: auto;
  }

  .club-match-teams {
    padding: 18px 13px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 4px;
  }

  .club-match-teams-enriched {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  }

  .club-fixtures-list {
    margin-inline: -16px;
    border-right: 0;
    border-left: 0;
  }

  .club-result-count {
    align-self: flex-start;
  }

  .matchday-header {
    margin-inline: -16px;
    padding: 18px 20px;
  }

  .matchday-header p {
    padding-right: 14px;
    font-size: 12px;
  }

  .matchday-phase {
    font-size: 11px;
  }

  .matches-group-title {
    padding: 12px 13px 10px;
    font-size: 14px;
  }

  html[dir="ltr"] .matchday-header p {
    padding-right: 0;
    padding-left: 14px;
  }

  .match-card {
    min-height: 105px;
    padding: 20px 13px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 4px;
  }

  .match-card-enriched {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  }

  .match-card-detailed {
    min-height: 142px;
    padding: 22px 13px 15px;
    gap: 12px 4px;
  }

  .match-score {
    font-size: 21px;
  }

  .match-time {
    font-size: 16px;
  }

  .match-state {
    padding: 3px 4px;
    font-size: 7px;
  }

  .match-details {
    padding-top: 10px;
    gap: 6px 10px;
    font-size: 9px;
  }

  .match-venue::before {
    margin-left: 10px;
  }

  .team {
    gap: 6px;
  }

  .team-name {
    font-size: 11px;
  }

  .team-code {
    font-size: 7px;
  }

  .team-slot-note {
    font-size: 8px;
  }

  .team-logo {
    width: 36px;
    height: 36px;
  }

  .club-title {
    align-items: flex-start;
  }

  .club-logo-hero {
    width: 72px;
    height: 72px;
  }

  .planned-state {
    min-height: 380px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .seo-content {
    padding: 52px 16px 64px;
  }

  .seo-content-slim {
    padding-block: 22px;
  }

  .seo-static-matches li {
    padding: 12px 14px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .seo-static-matches li .match-page-link {
    justify-self: start;
  }

  .match-card-page,
  .static-match-page {
    box-shadow: 6px 6px 0 var(--grass-light);
  }

  .static-match-teams {
    min-height: 140px;
    padding: 24px 14px;
    gap: 10px;
  }

  .static-match-page dl {
    grid-template-columns: 1fr 1fr;
  }

  .static-match-page dl div:nth-child(2) {
    border-left: 0;
  }

  .static-match-page dl div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  /* The table is read on a phone one row at a time: points and played sit beside
     the club so both are on screen, and the name column is sized by its longest
     entry rather than a 250px floor. The rest of the columns still scroll. */
  .standings-table {
    min-width: 0;
  }

  .standings-team-heading,
  .standings-team {
    min-width: 0;
  }

  .standings-team span {
    white-space: nowrap;
  }

  .standings-table th,
  .standings-table td {
    height: 52px;
    padding: 8px 7px;
  }

  .standings-logo {
    width: 26px;
    height: 26px;
  }

  .standings-team {
    gap: 8px;
  }

  .standings-progress {
    min-height: 62px;
    padding: 13px 16px;
  }

  .consent-banner {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .consent-actions button {
    flex: 1;
  }

  footer {
    padding: 34px 22px;
  }
}

@media (max-width: 380px) {
  .header-facebook-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
