/* ─── CSS Variables ─── */
:root {
  /* Surfaces */
  --color-bg:        #0d0d0e;
  --color-surface:   #161618;
  --color-surface-2: #1e1e21;
  --color-border:    #2a2a2e;

  /* Text */
  --color-text:      #f0ead8;
  --color-muted:     #9a9490;

  /* Accent */
  --color-accent:     #f5a623;
  --color-accent-dim: #c47f00;

  /* Tier colours — electric, not flat */
  --tier-1: #f5a623;
  --tier-2: #4f8ef7;
  --tier-3: #34d962;
  --tier-4: #b97dff;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
}

/* ─── Light theme ─── */
[data-theme="light"] {
  --color-bg:        #f8f6f1;
  --color-surface:   #ffffff;
  --color-surface-2: #edeae3;
  --color-border:    #d0ccc3;
  --color-text:      #1a1a1a;
  --color-muted:     #6b6560;
  --color-accent:     #8f5000;
  --color-accent-dim: #6e3d00;
  --tier-1: #8f5000;
  --tier-2: #1a5fc4;
  --tier-3: #1a8a3a;
  --tier-4: #7c3aed;
}

[data-theme="light"] body {
  background-image: none;
}

[data-theme="light"] .masthead {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .club-header {
  background: var(--color-surface);
}

/* ─── Accessibility (high contrast) theme ─── */
[data-theme="accessible"] {
  --color-bg:        #000000;
  --color-surface:   #0a0a0a;
  --color-surface-2: #1a1a1a;
  --color-border:    #ffffff;
  --color-text:      #ffffff;
  --color-muted:     #dddddd;
  --color-accent:     #ffdd00;
  --color-accent-dim: #ccaa00;
  --tier-1: #ffdd00;
  --tier-2: #66aaff;
  --tier-3: #44ee66;
  --tier-4: #dd88ff;
  --font-body: system-ui, sans-serif;
}

[data-theme="accessible"] body {
  font-size: 18px;
  background-image: none;
}

[data-theme="accessible"] .btn {
  border-width: 2px;
  font-size: 1rem;
}

[data-theme="accessible"] a:focus-visible,
[data-theme="accessible"] button:focus-visible {
  outline: 3px solid #ffdd00;
  outline-offset: 4px;
}

/* ─── Theme toggle button ─── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

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

/* ─── Focus styles (accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Masthead ─── */
.masthead {
  background: var(--color-bg);
  border-bottom: 1px solid rgba(245, 166, 35, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 60px;
}

.site-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-brand .brand-accent { color: var(--color-accent); }

.masthead-search {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  overflow: hidden;
  margin-left: auto;
  transition: border-color 0.15s;
}

.masthead-search:focus-within {
  border-color: rgba(245, 166, 35, 0.5);
}

.masthead-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  width: 200px;
}

.masthead-search input::placeholder { color: var(--color-muted); }

.masthead-search button {
  background: var(--color-accent);
  border: none;
  color: #0d0d0e;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0 100px 100px 0;
}

.masthead-search button:hover { background: var(--color-accent-dim); }

.subscribe-nav-btn {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}
.subscribe-nav-btn:hover {
  background: var(--color-accent);
  color: #0d0d0e;
}

/* ─── Hero ─── */
.hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero-headline {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}

.hero-headline:hover { color: var(--color-accent); }

.hero-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.hero-meta a { color: var(--color-muted); }
.hero-meta a:hover { color: var(--color-accent); }

.hero-sidebar {
  border-left: 2px solid var(--color-accent);
  padding-left: 1.5rem;
  align-self: stretch;
}

.hero-sidebar-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.hero-sidebar-list { list-style: none; }

.hero-sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.35;
}

.hero-sidebar-list li:last-child { border-bottom: none; }

.hero-sidebar-list a {
  display: block;
  color: inherit;
  transition: color 0.15s;
}

.hero-sidebar-list a:hover { color: var(--color-accent); }

.sidebar-item-meta {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* ─── Content wrap ─── */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ─── Tier sections ─── */
.tier-section { margin-bottom: 3rem; }
.tier-section > summary { list-style: none; cursor: pointer; }
.tier-section > summary::-webkit-details-marker { display: none; }
.tier-section > summary::marker { content: ''; }

.tier-toggle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-muted);
  margin-left: 12px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tier-header:hover .tier-toggle-arrow {
  background: var(--color-surface-2);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.tier-toggle-arrow svg {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier-section[open] .tier-toggle-arrow svg {
  transform: rotate(180deg);
}
.tier-body { overflow: hidden; }
.comp-body { overflow: hidden; padding-right: 3rem; }

.tier-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tier-pip {
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  flex-shrink: 0;
}

.tier-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.tier-rule {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.comp-rule {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ─── Competition sub-header (multi-comp tiers) ─── */
.comp-subheader {
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding-right: 3rem;
}

.comp-toggle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-muted);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.comp-subheader:hover .comp-toggle-arrow {
  background: var(--color-surface-2);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.comp-toggle-arrow svg {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.comp-section.comp-open .comp-toggle-arrow svg {
  transform: rotate(180deg);
}

.comp-subheader-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.comp-subheader-link:hover { color: var(--color-accent); }

.comp-mc-btn {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.comp-mc-btn:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ─── Content divider ─── */
.content-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2.5rem 0;
}

/* ─── Section title ─── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
  position: relative;
  top: -0.1em;
}

/* ─── Article list ─── */
.article-list { list-style: none; }

.article-item {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.article-item.article-dated {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 1.25rem;
  align-items: start;
}

.article-item:last-child { border-bottom: none; }

/* Date block — left column */
.article-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding-top: 0.15rem;
}

.article-date-day {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
}

.article-date-month {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.1rem;
}

.article-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  transition: color 0.15s;
}

.article-item:hover .article-title { color: var(--color-accent); }

.article-summary {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.article-club-tag {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.article-club-tag:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ─── Pagination ─── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
  min-height: 44px;
}

.btn-primary {
  background: var(--color-accent);
  color: #0d0d0e;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dim); border-color: var(--color-accent-dim); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface-2); border-color: #444; }

.btn-success {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn-success:hover { background: #15803d; border-color: #15803d; }

.btn-warning {
  background: #f59e0b;
  color: #fff;
  border-color: #b45309;
}
.btn-warning:hover { background: #d97706; border-color: #92400e; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-outline {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn-outline:hover { background: var(--color-surface); color: var(--color-text); border-color: #444; }

/* ─── Dark breadcrumb ─── */
.dark-breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.dark-breadcrumb li + li::before { content: '›'; color: var(--color-border); margin-right: 0.4rem; }
.dark-breadcrumb a { color: var(--color-muted); transition: color 0.15s; }
.dark-breadcrumb a:hover { color: var(--color-accent); }
.dark-breadcrumb .active { color: var(--color-text); }

/* ─── Club header band ─── */
.club-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
  padding: 2rem 0;
}

.club-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.club-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.club-competition-label {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-family: var(--font-body);
}

.club-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* ─── Club header identity ─── */
.club-header-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.25rem;
}

/* ─── Competition header band ─── */
.comp-header {
  background: var(--color-surface);
  padding: 2rem 0;
  border-bottom: 3px solid var(--color-border);
}

.comp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.comp-header-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Tier-specific border colours */
.comp-header.tier-1 { border-bottom-color: var(--tier-1); }
.comp-header.tier-2 { border-bottom-color: var(--tier-2); }
.comp-header.tier-3 { border-bottom-color: var(--tier-3); }
.comp-header.tier-4 { border-bottom-color: var(--tier-4); }

/* ─── Club grid ─── */
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.club-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  min-height: 44px;
  transition: transform 0.15s, box-shadow 0.15s, border-top-color 0.15s;
}

/* Tier-coloured top stripes on club cards */
.tier-section:nth-child(1) .club-card { border-top-color: var(--tier-1); }
.tier-section:nth-child(2) .club-card { border-top-color: var(--tier-2); }
.tier-section:nth-child(3) .club-card { border-top-color: var(--tier-3); }
.tier-section:nth-child(4) .club-card { border-top-color: var(--tier-4); }

.club-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--color-border);
}

/* Tier glow on hover */
.tier-section:nth-child(1) .club-card:hover { box-shadow: 0 6px 24px rgba(245, 166, 35, 0.18); }
.tier-section:nth-child(2) .club-card:hover { box-shadow: 0 6px 24px rgba(79, 142, 247, 0.18); }
.tier-section:nth-child(3) .club-card:hover { box-shadow: 0 6px 24px rgba(52, 217, 98, 0.18); }
.tier-section:nth-child(4) .club-card:hover { box-shadow: 0 6px 24px rgba(185, 125, 255, 0.18); }

/* ─── Match centre ─── */
.mc-section { margin-bottom: 3rem; }

.mc-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.mc-table-wrap { overflow-x: auto; }

.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.mc-table thead {
  background: var(--color-surface-2);
}

.mc-table th {
  padding: 0.6rem 0.75rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.mc-table th.team-col { text-align: left; }

.mc-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text);
}

.mc-table td.team-col { text-align: left; }
.mc-table td.pts-col { font-weight: 700; color: var(--color-accent); }
.mc-table td.pos-col { color: var(--color-muted); font-size: 0.8rem; }
.mc-table tbody tr:hover { background: var(--color-surface-2); }

.match-list { list-style: none; }

.match-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.match-item:last-child { border-bottom: none; }

.match-scoreline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.match-team {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.match-team.home { text-align: right; }

.match-score {
  background: var(--color-surface-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.match-info {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
  text-align: center;
}

.mc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.mc-attribution {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 3rem;
}

.mc-attribution a { color: var(--color-muted); text-decoration: underline; }
.mc-attribution a:hover { color: var(--color-accent); }

/* ─── Alert ─── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.alert-info { background: rgba(79, 142, 247, 0.08); border-color: rgba(79, 142, 247, 0.3); color: #93bbff; }

/* ─── Search ─── */
.search-page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.results-section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.club-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.club-tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-surface);
  transition: border-color 0.15s, color 0.15s;
  min-height: 44px;
}

.club-tag-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ─── Footer ─── */
footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(245, 166, 35, 0.2);
  color: var(--color-muted);
  font-size: 0.78rem;
  padding: 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

footer a { color: var(--color-muted); }
footer a:hover { color: var(--color-accent); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .hero-headline { font-size: 1.9rem; }
  .masthead-search input { width: 110px; }
  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .club-name { font-size: 1.8rem; }
  .comp-header-name { font-size: 1.5rem; }
  .mc-columns { grid-template-columns: 1fr; }
  .article-item.article-dated { grid-template-columns: 42px 1fr; }
}

@media (max-width: 480px) {
  .masthead-inner { gap: 1rem; }
  .content-wrap { padding: 1.5rem 1rem; }
  .club-header-inner,
  .comp-header-inner { padding: 0 1rem; }
  .article-item.article-dated { grid-template-columns: 1fr; }
  .article-item.article-dated .article-date { flex-direction: row; gap: 0.35rem; align-items: baseline; }
}

/* ─── Affiliate strip ─── */
.affiliate-strip {
  margin-bottom: 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-surface);
  border-radius: 6px;
  font-size: 0.9rem;
}
.affiliate-strip a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.affiliate-strip a:hover {
  text-decoration: underline;
}

/* ─── Club page two-column layout ─── */
.club-page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.club-fixtures-sidebar {
  position: sticky;
  top: 76px;
}

.club-fixtures-sidebar-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.fixture-list { list-style: none; }

.fixture-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
}

.fixture-item:last-child { border-bottom: none; }

.fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.3;
}

.fixture-teams .home { text-align: right; }

.fixture-vs {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
}

.fixture-meta {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .club-page-layout {
    grid-template-columns: 1fr;
  }
  .club-fixtures-sidebar {
    position: static;
    order: -1;
  }
}

/* ─── Reduced motion (accessibility) ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
