@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap');

:root {
  --ink: #050505;
  --muted: #4f5660;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #050505;
  --green: #244a9b;
  --green-dark: #050505;
  --gold: #244a9b;
  --red: #244a9b;
  --sky: #f4f7ff;
  --shadow: 10px 10px 0 rgba(36, 74, 155, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* ── Hero entrance ───────────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-content > *,
.page-hero > div > * {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1), .page-hero > div > *:nth-child(1) { animation-delay: 0.08s; }
.hero-content > *:nth-child(2), .page-hero > div > *:nth-child(2) { animation-delay: 0.20s; }
.hero-content > *:nth-child(3), .page-hero > div > *:nth-child(3) { animation-delay: 0.32s; }
.hero-content > *:nth-child(4), .page-hero > div > *:nth-child(4) { animation-delay: 0.44s; }

/* ── Team tab cross-fade ─────────────────────────────────────────────── */
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.tab-fade-in { animation: tabFadeIn 0.28s ease both; }

/* ── Stat bar slide-in ───────────────────────────────────────────────── */
.stat-bar-fill {
  height: 100%;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Stat card entry animation ───────────────────────────────────────── */
@keyframes statCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}

.team-stat-row.stats-animated article {
  animation: statCardIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 48ms);
}

/* ── Stats filter view cross-fade ────────────────────────────────────── */
[data-stats-view] {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

[data-stats-view].stats-view-entering {
  opacity: 0;
  transform: translateY(6px);
}

/* ── Scroll fade-in ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .page-hero > div > * { animation: none; }
  .tab-fade-in { animation: none; }
  .stat-bar-fill { transition: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .team-stat-row.stats-animated article { animation: none; }
  [data-stats-view] { transition: none; }
}

/* ── Display typeface ────────────────────────────────────────────────── */
h1, h2, h3, h4,
.eyebrow,
.section-kicker,
.button,
.brand strong,
.main-nav a,
.team-subnav a,
.team-subnav button,
.senior-team-tabs button,
.fixture time,
.result-badge,
.team-stat-row article strong,
.stat-card strong,
.form-dot {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
}

/* ── Skeleton loaders ────────────────────────────────────────────────── */
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel {
  background: linear-gradient(90deg, #1c1c1c 25%, #2e2e2e 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s infinite;
  border-radius: 2px;
}
.news-card--skeleton { pointer-events: none; }
.news-card--skeleton .skel-img  { aspect-ratio: 16/9; width: 100%; }
.news-card--skeleton .skel-label { height: 12px; width: 60px; margin: 14px 0 10px; }
.news-card--skeleton .skel-title { height: 20px; width: 85%; margin-bottom: 8px; }
.news-card--skeleton .skel-text  { height: 14px; width: 100%; }
.fixture--skeleton { pointer-events: none; opacity: 0.5; min-height: 130px; }
.fixture--skeleton .skel-teams { height: 12px; width: 60px; }
.fixture--skeleton .skel-score { height: 32px; width: 90px; border-radius: 4px; }

/* ── Form guide ──────────────────────────────────────────────────────── */
.form-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 4px;
}
.form-guide-label {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-dots { display: flex; gap: 5px; }
.form-dot {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.form-dot--win  { background: #1e7e34; }
.form-dot--draw { background: #666; }
.form-dot--loss { background: #9b2222; }

@keyframes formDotPop {
  from { transform: scale(0) rotate(-25deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.form-guide--animate .form-dot:nth-child(1) { animation: formDotPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both; }
.form-guide--animate .form-dot:nth-child(2) { animation: formDotPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.14s both; }
.form-guide--animate .form-dot:nth-child(3) { animation: formDotPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.23s both; }
.form-guide--animate .form-dot:nth-child(4) { animation: formDotPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.32s both; }
.form-guide--animate .form-dot:nth-child(5) { animation: formDotPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.41s both; }
@media (prefers-reduced-motion: reduce) {
  .form-guide--animate .form-dot { animation: none; }
}

/* ── Stats visualisation ─────────────────────────────────────────────── */
.stats-visual-block {
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.stat-bar-label {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.stat-bar-track {
  height: 7px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
}

.stat-bar-fill--win   { background: #1e7e34; }
.stat-bar-fill--goals { background: var(--green); }
.stat-bar-fill--conceded { background: #9b2222; }

.stat-bar-val {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--green-dark);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: #fff;
  background: rgba(5, 5, 5, 0.96);
  border-color: var(--green);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.78;
  font-size: 0.78rem;
}

.crest {
  width: auto;
  height: 54px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a {
  padding: 12px 10px;
  border: 1px solid transparent;
  opacity: 0.92;
}

.main-nav a:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 210px clamp(18px, 5vw, 72px) 56px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.1)),
    url("assets/home-hero.jpg") center 15% / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(36, 74, 155, 0.38) 58%, rgba(0, 0, 0, 0.10)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 10px;
  color: #fff;
  background: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.8rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  max-width: 850px;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 0;
  border: 2px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.ghost {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.button.dark {
  color: #fff;
  background: var(--green-dark);
}

.button.whatsapp {
  color: #fff;
  background: #25D366;
  gap: 8px;
}

.button.whatsapp svg {
  flex-shrink: 0;
}

.wa-note {
  font-size: 0.8rem;
  color: var(--muted, #888);
  margin-top: 10px;
}
.wa-note a { color: inherit; text-decoration: underline; }

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.match-card {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #050505;
  border-top: 10px solid var(--green);
  box-shadow: var(--shadow);
}

.match-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-card p {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #555;
}

.mc-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.mc-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
}

.mc-team span {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-team .mcr-crest,
.mc-team .mcr-crest--opp {
  width: 44px;
  height: 44px;
}

.mc-vs {
  font-size: 0.78rem;
  font-weight: 900;
  color: #aaa;
  flex-shrink: 0;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid #050505;
  border-bottom: 2px solid #050505;
  background: #050505;
  color: #fff;
}

.quick-links a {
  min-height: 128px;
  padding: 26px clamp(18px, 3vw, 36px);
  border-right: 2px solid #fff;
  transition: background 160ms ease, color 160ms ease;
}

.quick-links a:nth-child(even),
.quick-links a:hover {
  background: var(--green);
}

.quick-links span {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-links strong {
  display: block;
  margin-top: 12px;
  max-width: 240px;
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
  background: #fff;
  border-top: 2px solid #050505;
}

.band {
  background: var(--surface);
}

.intro-grid,
.split-section,
.hire-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.intro-grid p,
.split-section p,
.hire-section p,
.academy-content p {
  max-width: 680px;
  font-size: 1.06rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--line);
  background: var(--surface);
}

.stat-grid div {
  min-height: 150px;
  padding: 24px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.stat-grid strong {
  display: block;
  color: var(--green);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.stat-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

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

.text-link {
  color: var(--green);
  font-weight: 900;
  border-bottom: 2px solid var(--green);
}

.team-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-card,
.news-card,
.feature-panel {
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.team-card:hover,
.news-card:hover,
.feature-panel:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--green);
}

.team-card img {
  height: 280px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
  transition: filter 180ms ease;
}

.team-card:hover img,
.news-card:hover img,
.social-card:hover img {
  filter: saturate(1.1) contrast(1.12);
}

.team-card:first-child img {
  object-position: top center;
}

.team-card div,
.news-card,
.feature-panel {
  padding: 24px;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--line);
  background: #050505;
}

.gateway-card {
  display: grid;
  min-height: 460px;
  color: #fff;
  background: #050505;
  border-right: 2px solid #fff;
  overflow: hidden;
  transition: background 0.2s ease;
}

.gateway-card:last-child {
  border-right: 0;
}

.gateway-card img {
  height: 260px;
  object-fit: cover;
  border-bottom: 2px solid #fff;
  filter: saturate(0.92) contrast(1.08);
  transition: filter 0.25s ease, transform 0.35s ease;
}

.gateway-card img[src*="senior-football-home"] {
  object-position: center 35%;
}

.gateway-card div {
  display: grid;
  align-content: start;
  padding: 22px;
}

.gateway-card span,
.join-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-card h3 {
  color: #fff;
}

.gateway-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.gateway-card:hover {
  background: var(--green);
}

.gateway-card:hover img {
  filter: saturate(1.1) contrast(1.1);
  transform: scale(1.03);
}

.gateway-card:hover span,
.gateway-card:hover p {
  color: #fff;
}

.coaches-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coaches-resource-card {
  min-height: 260px;
}

.coach-portal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  background: #050505;
  border-top: 2px solid #fff;
}

.coach-sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  gap: 8px;
  min-height: calc(100vh - 78px);
  padding: 28px;
  color: #fff;
  background: #050505;
  border-right: 2px solid rgba(255, 255, 255, 0.18);
}

.coach-sidebar span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-sidebar a {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
  text-transform: uppercase;
}

.coach-sidebar a:hover {
  color: #fff;
}

.coach-main {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 42px);
}

.coach-panel {
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border: 2px solid #050505;
}

.coach-panel--blue {
  color: #fff;
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.28);
}

.coach-panel--dark {
  color: #fff;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.22);
}

.coach-panel--blue h2,
.coach-panel--blue h3,
.coach-panel--dark h2,
.coach-panel--dark h3 {
  color: #fff;
}

.coach-panel--blue p,
.coach-panel--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.coach-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.coach-panel-heading p {
  max-width: 460px;
  margin: 0;
}

.coach-status-grid,
.resource-grid,
.video-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coach-status-grid article,
.resource-card,
.video-card {
  display: block;
  min-height: 180px;
  padding: 20px;
  color: #fff;
  background: #050505;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.coach-status-grid article {
  min-height: 116px;
  background: rgba(255, 255, 255, 0.12);
}

.coach-status-grid strong,
.resource-card h3,
.video-card h3 {
  display: block;
  color: #fff;
}

.coach-status-grid span,
.resource-card span,
.video-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-status-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.resource-card p,
.video-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.resource-card--empty {
  background: rgba(36, 74, 155, 0.14);
  border-style: dashed;
}

.accessni-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px;
  color: #fff;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.accessni-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-document {
  min-height: 100vh;
  padding: 110px clamp(18px, 6vw, 80px) 60px;
  background: #fff;
}

.resource-document section {
  max-width: 900px;
  padding: 22px 0;
  border-top: 2px solid #050505;
}

.resource-document h1 {
  color: #050505;
  font-size: clamp(3rem, 8vw, 6rem);
}

.graphics-hero {
  --page-image: url("assets/coaches-hero.jpeg");
}

.graphics-studio {
  padding: clamp(24px, 5vw, 58px);
  color: #fff;
  background: #050505;
  border-top: 2px solid #fff;
}

.graphics-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.graphics-toolbar h2 {
  color: #fff;
  margin: 0;
}

.graphics-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: start;
}

.graphics-controls {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fff;
  color: #050505;
  border: 2px solid #fff;
}

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

.template-grid button {
  min-height: 48px;
  padding: 10px;
  color: #050505;
  background: #fff;
  border: 2px solid #050505;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.template-grid button.is-active,
.template-grid button:hover {
  color: #fff;
  background: var(--green);
}

.graphics-controls label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.graphics-controls label span {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graphics-controls input[type="text"],
.graphics-controls input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid #050505;
  border-radius: 0;
  color: #050505;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.graphics-controls input[type="color"] {
  width: 100%;
  height: 46px;
  padding: 3px;
  border: 2px solid #050505;
  background: #fff;
}

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

.graphics-preview-panel {
  position: sticky;
  top: 96px;
  padding: clamp(14px, 3vw, 28px);
  background: var(--green);
  border: 2px solid #fff;
}

.graphics-preview-frame {
  max-width: 720px;
  margin: 0 auto;
  background: #050505;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.graphics-preview-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}

.join-grid {
  display: grid;
  gap: 20px;
}

.join-grid a {
  min-height: 220px;
  padding: 24px;
  border: 2px solid var(--line);
  background: #fff;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  color: #fff;
  background: #050505;
}

.join-section h2,
.join-section .section-kicker {
  color: #fff;
}

.join-section p {
  color: rgba(255, 255, 255, 0.74);
}

.join-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-grid a {
  min-height: 180px;
  color: #fff;
  background: #050505;
  border-color: #fff;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.join-grid strong {
  display: block;
  font-size: clamp(1.22rem, 2vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.join-grid a:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(36,74,155,0.3);
}

.join-grid a:hover span {
  color: #fff;
}

.fixtures-section {
  background: var(--green);
  color: #fff;
}

.fixtures-section .section-kicker,
.fixtures-section h2 {
  color: #fff;
}

.segmented {
  display: inline-flex;
  position: relative;
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

.segmented button {
  position: relative;
  z-index: 1;
  min-width: 72px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: color 180ms ease;
}

.segmented button.is-active {
  background: #fff;
  color: var(--green);
}

.stats-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 320px);
  flex: 0 1 320px;
}

.stats-filter::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 8px) / 3);
  background: #fff;
  transform: translateX(calc(var(--active-index, 0) * 100%));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stats-filter button {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.stats-filter button.is-active {
  background: transparent;
}

.fixtures-section .text-link {
  color: #fff;
  border-color: #fff;
}

.fixture-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* Match result card */
.fixture {
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid var(--mc-accent, #ccc);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink, #111);
}

.fixture.is-hidden { display: none; }
[data-fixtures].is-hidden,
[data-fixture-list].is-hidden { display: none; }

.mcr--win        { --mc-accent: #1e7e34; }
.mcr--draw       { --mc-accent: #4f5660; }
.mcr--loss       { --mc-accent: #c0392b; }
.mcr--upcoming   { --mc-accent: #244a9b; }
.mcr--postponed  { --mc-accent: #4f5660; }

.mcr-comp {
  padding: 10px 14px 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.mcr-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px 10px;
}

.mcr-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.mcr-team span {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--ink, #111);
}

.mcr-crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
img.mcr-crest[src*="midulsterfootballleague"] {
  border-radius: 4px;
  background: #fff;
}

.mcr-crest--opp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.mcr-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 0 4px;
}

.mcr-num {
  font-family: Oswald, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink, #111);
  line-height: 1;
}

.mcr-sep {
  font-family: Oswald, sans-serif;
  font-size: 1.4rem;
  color: #aaa;
  line-height: 1;
  align-self: center;
  margin: 0 2px;
}

/* score row: put num–sep–num on one line */
.mcr-score > .mcr-num,
.mcr-score > .mcr-sep {
  display: inline;
}

.mcr-score {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.mcr-vs {
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.06em;
}

.mcr-pens {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  color: #888;
  margin-top: 2px;
}

.mcr-footer {
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 4px;
  font-size: 0.72rem;
  color: #888;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.result-badge.win        { background: var(--green); }
.result-badge.draw       { background: #4f5660; }
.result-badge.loss       { background: #c0392b; }
.result-badge.postponed  { background: #4f5660; font-size: 0.62rem; }

.league-table {
  overflow-x: auto;
}

.league-table.is-hidden {
  display: none;
}

.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  border: 2px solid #050505;
}

.standings th,
.standings td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ink);
}

.standings .col-club {
  text-align: left;
  min-width: 160px;
}

.standings .col-pos {
  color: var(--muted);
  font-size: 0.82rem;
  min-width: 32px;
}

.standings .col-pts {
  font-weight: 900;
  color: var(--green);
}

.standings thead th {
  background: #050505;
  color: #fff !important;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.standings .col-pts {
  color: var(--green) !important;
  font-weight: 900;
}

.standings tbody tr:last-child td {
  border-bottom: 0;
}

.standings tbody tr:hover td {
  background: rgba(36, 74, 155, 0.05);
}

.standings tr.is-us td {
  background: rgba(36, 74, 155, 0.08);
  border-left: 4px solid var(--green);
}

.fixtures-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fixtures-header .section-kicker {
  margin: 0;
}

.fixtures-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.season-select {
  padding: 6px 28px 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #050505 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 2px solid #fff;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

.season-select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.senior-team-tabs-row .season-select {
  margin-bottom: 24px;
  align-self: flex-end;
}

.academy-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  background: #050505;
  color: #fff;
}

.academy-section .section-kicker,
.hire-section .section-kicker {
  color: #fff;
}

.academy-section p {
  color: rgba(255, 255, 255, 0.78);
}

.academy-image {
  min-height: 520px;
  background:
    linear-gradient(rgba(5, 63, 50, 0.12), rgba(5, 63, 50, 0.12)),
    url("assets/team-trophy.jpg") center / cover;
  border: 2px solid #fff;
  box-shadow: 12px 12px 0 var(--green);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 62%, 39% 100%, 100% 18%, 82% 0, 36% 61%);
}

.news-card span {
  display: block;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: calc(100% + 48px);
  max-width: none;
  margin: -24px -24px 22px;
  border-bottom: 2px solid var(--line);
  filter: saturate(0.92) contrast(1.06);
}

.news-card h3 {
  margin-top: 14px;
}

.news-card p {
  margin-bottom: 0;
}

.news-date {
  display: block;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--muted, #888);
}

/* Article page */
.article-loading { min-height: 80vh; }

.article-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: #111 center/cover no-repeat;
}

.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding-top: 32px;
}

.article-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.article-header { margin-bottom: 32px; }
.article-header h1 { margin: 8px 0 10px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.article-meta { color: var(--muted, #888); font-size: 0.85rem; margin: 0; }

.article-body { line-height: 1.75; font-size: 1rem; padding-bottom: 60px; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-size: 1.3rem; margin: 2em 0 0.6em; }
.article-body h3 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body strong { font-weight: 700; }
.article-body a { color: var(--blue, #244a9b); text-decoration: underline; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 1.2em 0; }
.article-body blockquote {
  border-left: 3px solid var(--blue, #244a9b);
  margin: 1.5em 0;
  padding: 0.5em 1em;
  color: var(--muted, #555);
  font-style: italic;
}

.social-section {
  background: #050505;
  color: #fff;
  overflow: hidden;
}

.social-section .section-kicker {
  color: #fff;
}

.social-section h2 {
  color: #fff;
}

.reel-controls {
  display: inline-flex;
  gap: 8px;
}

.reel-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.reel-controls button:hover {
  background: var(--green);
  border-color: var(--green);
}

.social-reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 390px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--green) rgba(255, 255, 255, 0.12);
}

.social-card {
  scroll-snap-align: start;
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--green);
}

.social-card img {
  height: 260px;
  object-fit: cover;
}

.social-card div {
  padding: 22px;
}

.social-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-card p {
  margin-bottom: 18px;
}

.social-card a {
  color: var(--green);
  font-weight: 900;
  border-bottom: 2px solid var(--green);
}

.feature-panel {
  border-top: 12px solid var(--green);
}

.hire-section {
  background: var(--green-dark);
  color: #fff;
}

.hire-section p {
  color: rgba(255, 255, 255, 0.78);
}

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

.hire-list span {
  min-height: 86px;
  display: grid;
  align-items: center;
  padding: 18px;
  border: 2px solid #fff;
  background: var(--green);
  font-weight: 900;
}

.sponsors-section {
  text-align: center;
}

.sponsors-section h2 {
  margin-left: auto;
  margin-right: auto;
}

.sponsor-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.sponsor-row span {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 160px clamp(18px, 5vw, 72px) 72px;
  color: #fff;
  overflow: hidden;
  background: #050505;
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.page-hero::before {
  background: var(--page-image) center / cover;
  transform: scale(1.02);
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(36, 74, 155, 0.38) 58%, rgba(0, 0, 0, 0.10)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.senior-page {
  --page-image: url("assets/prayer.jpeg");
}

.senior-page.page-hero::before {
  background-position: center 65%;
}

.juniors-page {
  --page-image: url("assets/team-trophy.jpg");
}

.juniors-page.page-hero::before {
  background-position: center 30%;
}

.ladies-page {
  --page-image: url("assets/womens-action.jpg");
}

.ladies-page.page-hero::before {
  background-position: center 55%;
}

.about-page {
  --page-image: url("assets/hero-match-action.jpg");
}

.about-page.page-hero::before {
  background-position: center 45%;
}

.contact-page {
  --page-image: url("assets/senior-football-home.jpeg");
}

.contact-page.page-hero::before {
  background-position: center 30%;
}

.partners-page {
  --page-image: url("assets/first-team-hero.jpeg");
}

.partners-page.page-hero::before {
  background-position: center 60%;
}

.arena-page {
  --page-image: url("assets/arena.jpeg");
}

.arena-page.page-hero::before {
  background-position: center 35%;
}

.coaches-page {
  --page-image: url("assets/coaches-hero.jpeg");
}

.coaches-page.page-hero::before {
  background-position: center 48%;
}

.team-subnav {
  position: sticky;
  z-index: 12;
  top: 78px;
  display: flex;
  justify-content: flex-start;
  gap: clamp(20px, 4vw, 56px);
  overflow-x: auto;
  padding: 22px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--green);
  border-top: 2px solid #050505;
  border-bottom: 2px solid #050505;
  scrollbar-width: none;
}

.team-subnav::-webkit-scrollbar {
  display: none;
}

.team-subnav a,
.team-subnav button {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: clamp(1.05rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.team-subnav a::after,
.team-subnav button::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  content: "";
  background: transparent;
}

.team-subnav a:hover::after,
.team-subnav a[aria-current="page"]::after,
.team-subnav button:hover::after,
.team-subnav button[aria-current="page"]::after {
  background: #fff;
}

.team-roster-block {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #050505;
}

.senior-team-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.senior-team-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  border: 2px solid #fff;
  background: #fff;
  flex: 1 1 auto;
}

.senior-team-tabs button {
  min-height: 72px;
  padding: 14px;
  color: #fff;
  background: #050505;
  border: 0;
  border-right: 2px solid #fff;
  font: inherit;
  font-size: clamp(1.05rem, 2.3vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  cursor: pointer;
}

.senior-team-tabs button:last-child {
  border-right: 0;
}

.senior-team-tabs button.is-active,
.senior-team-tabs button:hover {
  background: var(--green);
}

.team-roster-block + .team-roster-block {
  margin-top: 46px;
}

.team-strip-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 54px 24px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #111;
}

.team-strip-hero::before,
.team-strip-hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.team-strip-hero::before {
  background: var(--strip-image) center / cover;
  transform: scale(1.03);
}

.team-strip-hero::after {
  background: rgba(0, 0, 0, 0.42);
}

.team-strip-hero span,
.team-strip-hero h2 {
  position: relative;
  z-index: 1;
}

.team-strip-hero span {
  color: var(--green);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-strip-hero h2 {
  margin: 36px 0 0;
  color: #fff;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.76;
}

.first-team-strip {
  --strip-image: url("assets/first-team-hero.jpeg");
}

.reserves-strip {
  --strip-image: url("assets/reserve-team-hero.webp");
}

.swifts-strip {
  --strip-image: url("assets/swifts-hero.jpeg");
}

.ladies-strip {
  --strip-image: url("assets/ladies-team.jpg");
  place-items: end center;
}

.ladies-strip::before {
  background-position: 65% 25%;
}

.ladies-strip h2 {
  margin-bottom: 20px;
}

.ladies-reserves-strip {
  --strip-image: url("assets/team-trophy.jpg");
}

.girls-strip {
  --strip-image: url("assets/team-trophy.jpg");
}

.team-subnav-local {
  position: relative;
  top: auto;
  z-index: 1;
  justify-content: center;
}

.team-subnav-local a,
.team-subnav-local button {
  cursor: pointer;
}

.team-detail-stack {
  display: grid;
  gap: 0;
}

.team-detail-panel {
  padding: clamp(34px, 5vw, 60px);
  color: var(--ink);
  background: #fff;
  border-top: 2px solid #050505;
}

.team-detail-panel .section-kicker {
  margin-bottom: 22px;
}

.team-fixtures-panel {
  color: #fff;
  background: var(--green);
}

.team-fixtures-panel .section-kicker {
  color: #fff;
}

.team-stats-panel {
  color: #fff;
  background: #050505;
}

.team-stats-panel .section-kicker {
  color: #fff;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.page-grid p {
  max-width: 720px;
  font-size: 1.06rem;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list article,
.detail-grid article {
  padding: 24px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.info-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-list strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
}

#honours .info-list article {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

#honours .info-list strong {
  color: #fff;
}

#honours .info-list span {
  color: rgba(255,255,255,0.55);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.detail-grid p {
  margin-bottom: 0;
}

.values-grid,
.conduct-grid {
  display: grid;
  gap: 20px;
}

/* Contact form */
#contact-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-field select option {
  background: #111;
  color: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  outline: none;
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: #e05252;
}

.form-error {
  color: #e05252;
  font-size: 0.82rem;
  min-height: 1em;
}

.form-note {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-top: 4px;
  text-align: center;
}

.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conduct-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.values-grid article,
.conduct-grid article {
  padding: 26px;
  background: #fff;
  color: #050505;
  border: 2px solid #050505;
}

.values-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.values-grid span,
.conduct-grid span {
  display: block;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.values-grid h3,
.conduct-grid h3 {
  margin: 14px 0 18px;
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.values-grid p,
.conduct-grid li {
  color: var(--muted);
}

.values-grid em {
  margin-top: auto;
  color: var(--green);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.conduct-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.1rem;
}

.coach-grid,
.junior-squad-grid,
.team-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.coach-grid article,
.junior-squad-grid article,
.team-stat-row article {
  padding: 24px;
  background: #fff;
  color: #050505;
  border: 2px solid #050505;
}

.coach-grid span,
.junior-squad-grid span,
.team-stat-row span {
  display: block;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-grid strong,
.junior-squad-grid strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.coach-grid p,
.junior-squad-grid p {
  margin: 14px 0 0;
}

.coach-phone {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.coach-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
}

.coach-phone:hover {
  color: var(--green);
}

.junior-squad-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.junior-squad-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.junior-squad-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Junior league squad wrapper */
.junior-league-squads {
  display: grid;
  gap: 40px;
}

.junior-squad-league-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.junior-squad-league-header strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Junior coach photo cards */
.junior-league-block {
  overflow: hidden;
  margin-bottom: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.junior-league-block:last-child {
  margin-bottom: 0;
}

.junior-league-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.junior-league-header strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.junior-coach-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.junior-coach-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.junior-coach-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-fixtures {
  background: var(--green);
  color: #fff;
}

.team-fixtures .section-kicker,
.team-fixtures h2 {
  color: #fff;
}

.stats-section {
  background: #050505;
  color: #fff;
}

.stats-section .section-kicker,
.stats-section h2 {
  color: #fff;
}

.team-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-stat-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.team-stat-row + .team-stat-row {
  margin-top: 10px;
}

.team-stat-row article {
  min-height: 100px;
  padding: 16px;
  display: grid;
  align-content: start;
  color: #fff;
  background: var(--green);
  border-color: #fff;
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.team-stat-row strong {
  display: block;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.team-stat-row span {
  margin-top: 6px;
  color: #fff;
}

/* ── Player stats table ───────────────────────────────────── */
.stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.stats-panel-header .section-kicker {
  margin-bottom: 0;
}

.player-stats-section {
  margin-top: 40px;
}

.player-stats-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.player-stats-header .section-kicker {
  margin: 0;
}

.stats-api-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.player-stats-wrap {
  overflow-x: auto;
}

.player-stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #fff;
}

.player-stats th,
.player-stats td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.player-stats .col-num {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  min-width: 36px;
}

.player-stats .col-name {
  text-align: left;
  min-width: 140px;
  font-weight: 700;
}

.player-stats .col-pos {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.player-stats thead th {
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.player-stats thead th::after {
  content: ' ⇅';
  opacity: 0.35;
  font-size: 0.8em;
}

.player-stats thead th[aria-sort="descending"]::after {
  content: ' ▼';
  opacity: 1;
}

.player-stats thead th[aria-sort="ascending"]::after {
  content: ' ▲';
  opacity: 1;
}

.player-stats tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.player-stats tbody tr:hover .col-name {
  background: #0d0d0d;
}

.player-stats tbody tr.is-sorted td {
  animation: sorted-row-flash 520ms ease both;
  animation-delay: var(--sort-delay, 0ms);
}

.player-stats tbody tr.is-sorted .col-name {
  animation: sorted-name-flash 520ms ease both;
  animation-delay: var(--sort-delay, 0ms);
}

@keyframes sorted-row-flash {
  0%   { background: rgba(255, 255, 255, 0.18); }
  100% { background: transparent; }
}

@keyframes sorted-name-flash {
  0%   { background: rgba(255, 255, 255, 0.18); }
  100% { background: #050505; }
}

@media (prefers-reduced-motion: reduce) {
  .stats-filter::before,
  .segmented button,
  .player-stats tbody tr.is-sorted td {
    animation: none;
    transition: none;
  }
}

.card-y {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;
  border-radius: 2px;
  background: #f1c40f;
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  vertical-align: middle;
}

.card-r {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;
  border-radius: 2px;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  vertical-align: middle;
}

.squad-section {
  background: #050505;
  color: #fff;
  padding-top: clamp(34px, 5vw, 70px);
}

.squad-section .section-kicker,
.squad-section h2,
.squad-section .text-link {
  color: #fff;
}

.squad-section .text-link {
  border-color: #fff;
}

.roster-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: -10px 0 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.roster-intro strong {
  color: var(--green);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.85;
}

.roster-intro p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.roster-groups {
  display: grid;
  gap: 14px;
}

.roster-group {
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.roster-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 20px 24px;
  pointer-events: none;
  list-style: none;
}

.roster-group summary::-webkit-details-marker {
  display: none;
}

.roster-group summary span {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.roster-group summary strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roster-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.roster-player {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  align-content: end;
  background: #111;
}

.roster-player img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.06);
}

.roster-player--badge img {
  object-fit: contain;
  object-position: center;
  padding: 28px;
  background: #111;
}

.roster-player::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08) 66%),
    linear-gradient(90deg, rgba(36, 74, 155, 0.24), transparent 60%);
}

.roster-player strong .flag {
  display: inline;
  position: static;
  font-size: 1em;
  vertical-align: middle;
  margin-right: 3px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.roster-player strong {
  position: relative;
  z-index: 1;
  display: block;
  padding-left: 14px;
  margin-right: 14px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.roster-player em {
  position: relative;
  z-index: 1;
  display: block;
  padding-left: 14px;
  margin-top: 5px;
  margin-bottom: 14px;
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roster-player em.pos-gk  { border-left: 3px solid #f59e0b; padding-left: 11px; }
.roster-player em.pos-def { border-left: 3px solid #3b82f6; padding-left: 11px; }
.roster-player em.pos-mid { border-left: 3px solid #22c55e; padding-left: 11px; }
.roster-player em.pos-fwd { border-left: 3px solid #ef4444; padding-left: 11px; }

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: grid;
  align-items: end;
  background: #111;
  box-shadow: none;
}

.player-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.95) contrast(1.08);
  transition: transform 220ms ease, filter 220ms ease;
}

.player-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.08) 62%),
    linear-gradient(90deg, rgba(36, 74, 155, 0.28), transparent 58%);
}

.player-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.1);
}

.player-card div {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.player-card strong {
  display: block;
  margin-bottom: 54px;
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.75;
}

.player-card span {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-card h3 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 44px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #050505;
  border-top: 8px solid var(--green);
}

.site-footer p,
.footer-contact span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: center;
  font-weight: 800;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.footer-social a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.footer-social a:hover {
  color: #fff;
}

.footer-sponsors {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.footer-sponsors-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.footer-sponsor-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-sponsor-logos img {
  height: 68px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-sponsor-logos img[src*="dr-angel"] {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-sponsor-logos img:hover {
  opacity: 1;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 32px;
  border: 2px solid var(--line);
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.partner-card:hover {
  border-color: var(--green);
}

.partner-card img {
  max-height: 120px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
}

.partner-card img[src*="killeen"] {
  background: #1a2744;
  padding: 14px 20px;
  border-radius: 6px;
}

.partner-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.board-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 780px;
}

.board-package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  border: 2px solid var(--line);
  background: #fff;
}

.board-package--featured {
  border-color: var(--green);
}

.board-package-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

.board-package-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.board-package-amount {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy, #244a9b);
}

.board-package-period {
  font-size: 0.9rem;
  color: var(--muted, #888);
}

.board-package h3 {
  font-size: 1.1rem;
  margin: 0;
}

.board-package ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.board-package ul li {
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
  color: var(--muted, #555);
  line-height: 1.4;
}

.board-package ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.board-package .button {
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 920px) {
  h1 {
    font-size: clamp(3.4rem, 11vw, 6rem);
  }

  .nav-toggle {
    display: inline-block;
    color: currentColor;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px;
    color: #fff;
    background: #050505;
    border: 2px solid #fff;
    box-shadow: 8px 8px 0 var(--green);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.18);
  }

  .graphics-toolbar,
  .graphics-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .graphics-preview-panel {
    position: static;
  }

  .quick-links,
  .gateway-grid,
  .coach-portal,
  .team-grid,
  .news-grid,
  .detail-grid,
  .coach-status-grid,
  .resource-grid,
  .resource-grid--compact,
  .video-resource-grid,
  .values-grid,
  .conduct-grid,
  .coach-grid,
  .junior-squad-grid,
  .junior-squad-grid--5,
  .junior-squad-grid--4,
  .squad-grid,
  .sponsor-row,
  .intro-grid,
  .page-grid,
  .split-section,
  .join-section,
  .join-grid,
  .hire-section,
  .academy-section {
    grid-template-columns: 1fr;
  }

  .junior-coach-grid--5,
  .junior-coach-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-stat-row--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-subnav {
    top: 78px;
  }

  .team-subnav-local {
    top: auto;
  }

  .stats-panel-header {
    display: block;
  }

  .stats-filter {
    width: 100%;
    max-width: 360px;
    margin-top: 14px;
  }

  .quick-links a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .gateway-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 2px solid #fff;
  }

  .gateway-card:last-child {
    border-bottom: 0;
  }

  .gateway-card img {
    height: 240px;
  }

  .coach-sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  }

  .coach-panel-heading,
  .accessni-panel {
    display: grid;
  }

  .join-grid a {
    min-height: auto;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .social-reel {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .team-detail-panel {
    padding: clamp(28px, 5vw, 44px) 18px;
  }

  .roster-intro {
    grid-template-columns: 1fr;
  }

  .roster-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fixture-list {
    grid-template-columns: 1fr;
  }

  .academy-image {
    min-height: 360px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .footer-contact {
    justify-items: start;
  }

  .site-footer > * {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .team-stat-row,
  .team-stat-row--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .team-stat-row--5 > article:nth-child(5) {
    grid-column: auto;
  }

  .team-detail-panel {
    padding: 20px 12px;
    overflow-x: hidden;
  }

  .team-stat-row article {
    min-height: 80px;
    padding: 12px;
  }

  .team-stat-row span {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .crest {
    width: auto;
    height: 46px;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 18px 170px;
  }

  .hero-media {
    transform: scale(1.15) translateY(-6%);
  }

  .page-hero {
    min-height: 72vh;
    padding: 118px 18px 58px;
  }

  h1 {
    font-size: clamp(2.75rem, 11vw, 4rem);
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3.6rem);
  }

  .hero-actions,
  .button-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 16px;
    text-align: center;
  }

  .graphics-studio {
    padding: 28px 12px;
  }

  .graphics-controls,
  .graphics-preview-panel {
    padding: 12px;
  }

  .template-grid,
  .graphics-two {
    grid-template-columns: 1fr;
  }

  .match-card {
    left: 18px;
    right: 18px;
    bottom: 20px;
    width: auto;
    padding: 14px 16px;
  }

  .mc-teams {
    margin: 8px 0 6px;
    gap: 6px;
  }

  .mc-team .mcr-crest,
  .mc-team .mcr-crest--opp {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .mc-team {
    font-size: 0.68rem;
    gap: 4px;
  }

  .mc-vs {
    font-size: 0.7rem;
  }

  .section {
    padding: 58px 18px;
  }

  .stat-grid,
  .hire-list {
    grid-template-columns: 1fr;
  }

  .team-card img {
    height: 220px;
  }

  .player-card img {
    height: 100%;
  }

  .roster-group summary {
    grid-template-columns: 1fr;
  }

  .roster-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-player {
    min-height: 220px;
  }

  .segmented {
    width: 100%;
  }

  /* Stats filter stays fixed-grid; fixture filter scrolls to avoid clipping */
  .segmented:not(.stats-filter) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .segmented:not(.stats-filter)::-webkit-scrollbar { display: none; }

  .segmented:not(.stats-filter) button {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .team-subnav:not(.team-subnav-local) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .team-subnav:not(.team-subnav-local) a,
  .team-subnav:not(.team-subnav-local) button {
    display: grid;
    place-items: center;
    min-height: 50px;
    padding: 9px 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.42);
    border-bottom: 2px solid rgba(255, 255, 255, 0.42);
    font-size: clamp(0.72rem, 3vw, 0.92rem);
    line-height: 1;
    text-align: center;
    white-space: normal;
  }

  .team-subnav:not(.team-subnav-local) a::after,
  .team-subnav:not(.team-subnav-local) button::after {
    display: none;
  }

  .team-subnav:not(.team-subnav-local) a[aria-current="page"],
  .team-subnav:not(.team-subnav-local) button[aria-current="page"] {
    color: var(--green);
    background: #fff;
  }

  .team-subnav-local {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding: 0;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  .team-subnav-local a,
  .team-subnav-local button {
    display: grid;
    place-items: center;
    min-height: 50px;
    padding: 9px 4px;
    border-right: 2px solid rgba(255, 255, 255, 0.42);
    border-bottom: 2px solid rgba(255, 255, 255, 0.42);
    font-size: clamp(0.68rem, 2.8vw, 0.86rem);
    line-height: 1;
    text-align: center;
  }

  .team-subnav-local a::after,
  .team-subnav-local button::after {
    display: none;
  }

  .team-subnav-local a[aria-current="page"],
  .team-subnav-local button[aria-current="page"] {
    color: var(--green);
    background: #fff;
  }

  .stats-panel-header {
    display: block;
  }

  .stats-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin-top: 14px;
    padding: 3px;
    overflow: hidden;
  }

  .stats-filter button {
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    font-size: 0.82rem;
    line-height: 1;
  }

  .player-stats-wrap {
    position: relative;
    width: 100%;
    max-width: calc(100vw - 36px);
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .player-stats {
    width: max-content;
    min-width: 840px;
    font-size: 0.82rem;
    table-layout: fixed;
  }

  .player-stats th,
  .player-stats td {
    padding: 10px 10px;
    min-width: 68px;
  }

  .player-stats .col-name {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 148px;
    background: #050505;
    max-width: 148px;
    background: #050505;
    box-shadow: 10px 0 0 #050505, 16px 0 18px rgba(0, 0, 0, 0.32);
    white-space: normal;
    line-height: 1.15;
  }

  .player-stats thead .col-name {
    z-index: 3;
    background: var(--green);
  }

  [data-swifts-league-table] {
    overflow-x: auto;
    max-width: calc(100vw - 36px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  [data-swifts-league-table] .standings {
    width: max-content;
    min-width: 360px;
    margin-right: 16px;
  }

  [data-swifts-league-table] .col-club {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.15);
  }

  [data-swifts-league-table] thead .col-club {
    background: #050505;
    z-index: 3;
  }

  [data-swifts-league-table] tr.is-us .col-club {
    background: #edf0f7;
  }

  .junior-coach-grid--5,
  .junior-coach-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Squad modal */
.squad-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.squad-modal[hidden] { display: none; }
.squad-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.squad-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #111;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.squad-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.squad-modal-photo {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.squad-modal-body {
  padding: 20px 20px 32px;
}
.squad-modal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #244a9b;
  margin: 0 0 4px;
}
.squad-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
}
.squad-modal-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 20px 0 8px;
}
.squad-modal-sessions,
.squad-modal-coaches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.squad-modal-session,
.squad-modal-coach {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.squad-modal-session-day {
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  min-width: 90px;
}
.squad-modal-session-detail {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.squad-modal-coach {
  justify-content: space-between;
}
.squad-modal-coach-info strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}
.squad-modal-coach-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.squad-modal-coach-phone {
  color: #244a9b;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.squad-card:hover img,
.squad-card:hover .squad-placeholder {
  opacity: 0.75;
}
.squad-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.squad-placeholder span {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.squad-placeholder em {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}

/* ── Live stream bar ─────────────────────────────────────────────────── */
.live-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  height: 44px;
  background: #d41e1e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-bar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 16px;
  height: 100%;
  width: 100%;
  justify-content: center;
}
.live-bar a:hover {
  background: rgba(0, 0, 0, 0.15);
}
.live-dot {
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}
.live-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  padding: 2px 5px;
}
.live-match {
  font-weight: 500;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.live-cta {
  font-size: 0.8rem;
  opacity: 0.8;
  flex-shrink: 0;
}
body.has-live-bar .site-header {
  top: 44px;
}

/* ── Install banner ──────────────────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #244a9b;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.35);
}
.install-banner img {
  flex-shrink: 0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}
.install-banner-text {
  flex: 1;
  min-width: 0;
}
.install-banner-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.install-banner-text span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-banner-dismiss {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── Install card (home page) ────────────────────────────────────────── */
.install-card {
  background: linear-gradient(135deg, #244a9b 0%, #1a3570 100%);
  border-radius: 12px;
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.install-card .section-kicker {
  color: rgba(255, 255, 255, 0.65);
}
.install-card h2 {
  color: #fff;
  margin: 0;
}
.install-card p {
  color: #fff;
  margin: 0;
  max-width: 560px;
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.install-step {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
}
.install-step strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 4px;
}
.install-step span {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ── Match report panel ────────────────────────────────────── */
.fixture-report {
  grid-column: 1 / -1;
  border-top: 1px solid #e8e8e8;
  padding-top: 10px;
  margin-top: 2px;
}

.rpt-toggle {
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  color: #555;
  font-family: inherit;
  transition: background 0.15s;
}

.rpt-toggle:hover {
  background: #f5f5f5;
}

.rpt-body {
  padding-top: 10px;
}

.rpt-row {
  font-size: 0.83rem;
  margin-bottom: 4px;
  color: #333;
}

.rpt-icon {
  margin-right: 6px;
}

.rpt-lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.rpt-player {
  display: inline-block;
  padding: 2px 9px;
  background: #f0f0f0;
  border-radius: 14px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.rpt-player.is-gk {
  background: #fef3c7;
  color: #78350f;
}

.rpt-subs {
  margin-top: 7px;
  font-size: 0.76rem;
  color: #777;
}

/* ── Birthday section ──────────────────────────────────────── */
.birthday-section {
  background: #0d1b2a;
  color: #fff;
}

.birthday-section .section-kicker {
  color: #f59e0b;
}

.birthday-section h2 {
  color: #fff;
}

.birthday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.bday-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 200px;
}

.bday-icon {
  font-size: 2rem;
  line-height: 1;
}

.bday-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.bday-info span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
