/* Drouin Hawks - Maroon & Gold theme */
:root {
  --maroon: #7A0B3C;
  --maroon-dark: #5F082F;
  --gold: #FECD08;
  --gold-light: #F4BF1C;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --gray: #555;
  --gray-light: #888;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  background: var(--white);
}

a {
  color: var(--maroon);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

/* Site header: mobile nav uses position:absolute; top:100% — must wrap bar + nav */
.site-header {
  position: relative;
}

/* One bar: logo + primary nav + Statsmapp */
.header-nav-bar {
  position: relative;
  z-index: 200;
  background: var(--maroon-dark);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
}

.header-nav-bar .nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0.35rem 0;
}

.header-nav-bar .nav-list {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
}

.header-nav-bar .nav-list a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.powered-by-statsmapp {
  margin-left: 0;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(254, 205, 8, 0.75);
  border-radius: 999px;
  background: rgba(95, 8, 47, 0.7);
  color: var(--gold);
  text-decoration: none;
  overflow: visible;
  box-shadow:
    0 0 10px rgba(254, 205, 8, 0.16),
    0 0 18px rgba(254, 205, 8, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.powered-by-statsmapp__fly {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--gold);
  box-shadow:
    0 0 5px 2px rgba(254, 205, 8, 0.98),
    0 0 10px 4px rgba(254, 205, 8, 0.55),
    0 0 18px 6px rgba(254, 205, 8, 0.2);
  /* path traces the outer border: outer ~155×52px, R=26, in padding-box coords */
  offset-path: path('M 25,-1 L 128,-1 A 26,26 0 0 1 154,25 A 26,26 0 0 1 128,51 L 25,51 A 26,26 0 0 1 -1,25 A 26,26 0 0 1 25,-1 Z');
  offset-distance: 0%;
  offset-rotate: auto;
  animation: statsmapp-fly 5s linear infinite;
  z-index: 10;
}

.powered-by-statsmapp__fly:last-child {
  animation-delay: -2.5s;
}

.powered-by-statsmapp:hover,
.powered-by-statsmapp:focus-visible {
  background: rgba(95, 8, 47, 0.92);
  color: var(--gold);
  box-shadow:
    0 0 12px rgba(254, 205, 8, 0.24),
    0 0 24px rgba(254, 205, 8, 0.14);
  outline: none;
}

.powered-by-statsmapp__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.powered-by-statsmapp__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

@keyframes statsmapp-fly {
  to { offset-distance: 100%; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.header-nav-bar .logo {
  flex-shrink: 0;
}

.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;
}

/* Nav toggle (mobile) — .active = open menu (X); no .active = collapsed (☰) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
}

/* Navigation (background when not inside unified header bar — e.g. editor preview) */
.nav {
  background: var(--maroon-dark);
  padding: 0.75rem 1.5rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-list a {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.nav-list a:hover {
  color: var(--gold);
}

/* Main content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Section headings */
.section-title {
  color: var(--maroon);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--gold-light);
}

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

.btn-secondary:hover {
  background: var(--maroon-dark);
}

/* Hero — full-bleed regardless of .main max-width */
.hero {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  margin-top: -2rem;
  margin-bottom: 2rem;
}

.hero-image {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(122, 11, 60, 0.72) 0%, rgba(95, 8, 47, 0.75) 100%),
    url("../images/hero-bg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  overflow: hidden;
}

/* Rotating photos from images/hero-bg/ (when present) */
.hero-image--has-slides {
  background: none;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.35s ease-in-out;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(122, 11, 60, 0.72) 0%, rgba(95, 8, 47, 0.78) 100%);
}

.hero-image--has-slides .hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-height: 320px;
  text-align: center;
  color: var(--white);
  width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
}

.hero-title {
  font-size: 2rem;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.25;
  font-weight: 600;
  color: var(--white);
}

/* Welcome */
.welcome h3 {
  color: var(--maroon);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.welcome-tagline {
  font-size: 1rem;
  color: var(--gray);
  margin: 0;
}

/* Home: club photos — carousel + full gallery dialog */
.club-photos-gallery-section {
  padding-top: 0;
}

.social-feeds-section + .club-photos-gallery-section {
  margin-top: 0.75rem;
}

.club-photos-gallery-section .section-title {
  margin-top: 0.75rem;
}

.club-photos-gallery-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.45;
}

.club-carousel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.club-carousel__btn {
  flex-shrink: 0;
  width: 2.5rem;
  min-height: 8rem;
  align-self: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--maroon);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.club-carousel__btn:hover,
.club-carousel__btn:focus-visible {
  background: var(--maroon);
  color: var(--white);
}

.club-carousel__viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #1a1a1a;
  -webkit-overflow-scrolling: touch;
}

.club-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.club-carousel__open-full {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.club-carousel__img {
  width: 100%;
  height: clamp(200px, 42vw, 360px);
  object-fit: cover;
  display: block;
}

.club-carousel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.club-carousel__counter {
  font-size: 0.9rem;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.club-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 0;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding: 0.25rem;
}

.club-photo-grid--dialog {
  margin-top: 0.5rem;
}

.club-photo-tile {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.club-photo-tile:hover,
.club-photo-tile:focus-visible {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.club-photo-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.club-photos-dialog {
  max-width: min(94vw, 920px);
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  background: var(--white);
}

.club-photos-dialog::backdrop {
  background: rgba(15, 5, 10, 0.55);
}

.club-photos-dialog__inner {
  padding: 1rem 1.1rem 1.25rem;
}

.club-photos-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.club-photos-dialog__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--maroon);
}

.club-photos-dialog__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--off-white);
  color: var(--maroon);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.club-photos-dialog__close:hover,
.club-photos-dialog__close:focus-visible {
  background: var(--maroon);
  color: var(--white);
}

@media (max-width: 600px) {
  .club-carousel__btn {
    width: 2rem;
    min-height: 7rem;
    font-size: 1.4rem;
  }

  .club-carousel__img {
    height: clamp(180px, 58vw, 300px);
  }
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.news-card {
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-image {
  height: 150px;
  background: var(--off-white);
}

.news-card h4 {
  margin: 1rem 1rem 0;
  color: var(--maroon);
}

.news-card p {
  margin: 0.5rem 1rem 1rem;
  font-size: 0.9rem;
}

/* Links grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  transition: background 0.2s;
}

.link-card:hover {
  background: var(--maroon-dark);
  color: var(--gold);
}

.link-icon {
  font-size: 1.5rem;
}

/* Social */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  padding: 0.75rem 1.5rem;
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s;
}

.social-btn:hover {
  background: var(--gold);
  color: var(--maroon-dark);
}

/* Sponsors teaser */
.sponsors-teaser p {
  margin: 0;
}

/* Home: full sponsor boards smaller than Sponsors page; link wraps each image */
.home-sponsor-boards-stack {
  display: grid;
  grid-template-columns: minmax(0, min(100%, 400px));
  justify-content: center;
  align-items: start;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.home-sponsor-boards__hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(95, 8, 47, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-sponsor-boards__hit:hover,
.home-sponsor-boards__hit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 8, 47, 0.12);
  outline: none;
}

.home-sponsor-board-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sponsors-teaser .home-sponsors-boards__more {
  margin-top: 1rem;
  text-align: center;
  line-height: 1.55;
}

.home-sponsors-boards__sep {
  color: var(--gray-light);
}

@media (min-width: 520px) {
  .home-sponsor-boards-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.75rem;
  }

  .home-sponsor-boards__hit {
    height: 240px;
  }

  .home-sponsor-board-img {
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}

/* Find Us + Fixtures two-column row */
.home-map-fixtures-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .home-map-fixtures-wrap {
    grid-template-columns: 1fr auto;
  }

  .home-fixtures-col {
    min-width: 220px;
    max-width: 300px;
  }
}

/* Force fixture links into a single column */
.links-grid--col {
  grid-template-columns: 1fr !important;
}

/* Page header (inner pages) */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  color: var(--maroon);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.page-intro {
  font-size: 1.1rem;
  color: var(--gray);
  margin: 0;
}

.sponsor-cta {
  margin: 2rem 0;
}

/* Sponsors grid */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.home-major-sponsors-grid {
  margin-bottom: 1.5rem;
}

.sponsor-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsor-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background: var(--white);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sponsor-logo a.sponsor-logo-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.sponsor-logo-fallback a.sponsor-logo-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sponsor-logo-fallback {
  border-style: solid;
  border-color: #ddd;
  background: #f1f1f1;
}

.sponsor-logo-fallback span {
  color: var(--maroon);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sponsor-card h3 {
  color: var(--maroon);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.sponsor-card h3 a {
  color: var(--maroon);
  font-size: 1rem;
  text-decoration: none;
}

.sponsor-card h3 a:hover,
.sponsor-card h3 a:focus-visible {
  text-decoration: underline;
}

.sponsor-card p {
  font-size: 0.875rem;
  color: var(--gray-light);
  margin: 0;
}

.sponsor-card p a.sponsor-tier-link {
  color: var(--gray-light);
  font-size: 0.875rem;
  text-decoration: none;
}

.sponsor-card p a.sponsor-tier-link:hover,
.sponsor-card p a.sponsor-tier-link:focus-visible {
  text-decoration: underline;
}

/* Sponsor boards (full-width composites) & tier lists */
.sponsors-boards-section {
  margin: 2.5rem 0;
}

.sponsors-boards-lead {
  color: var(--gray);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.sponsors-boards-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 520px) {
  .sponsors-boards-grid {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
  }

  .sponsors-board-figure {
    flex: 1 1 0;
    max-width: 360px;
    height: 300px;
  }
}

.sponsors-board-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.sponsors-board-figure {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--border-color);
  background: var(--white);
  line-height: 0;
  overflow: hidden;
}

.sponsor-tiers-section {
  margin: 2.5rem 0;
}

.sponsor-tiers-lead {
  color: var(--gray);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.sponsor-tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 720px) {
  .sponsor-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.sponsor-tier-block {
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border-color);
}

.sponsor-tier-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--maroon);
}

.sponsor-tier-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.45;
}

.sponsor-tier-list li + li {
  margin-top: 0.35rem;
}

/* Last-updated note on managed pages */
.dh-last-updated {
  font-size: 0.8rem;
  color: var(--gray-light);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 2.5rem;
  text-align: right;
}

/* Committee */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.committee-block h3 {
  color: var(--maroon);
  margin: 0 0 1rem;
}

.committee-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.committee-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Address */
.address-section p {
  margin: 0.5rem 0;
}

.map-placeholder {
  margin-top: 1rem;
  height: 200px;
  background: var(--off-white);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.9rem;
}

.dh-map-embed {
  margin-top: 1rem;
}

.dh-map-embed iframe {
  max-width: 100%;
}

.home-map-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.home-map-address {
  margin: 0.5rem 0 0.75rem;
}

/* Contact form */
.contact-form {
  max-width: 600px;
}

.contact-form label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 600;
  color: var(--maroon);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 1rem;
}

.contact-form-section > p {
  margin-bottom: 1rem;
  color: var(--gray);
}

/* About page */
.about-section {
  margin-bottom: 2rem;
}

.about-section ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.about-section li {
  margin-bottom: 0.25rem;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.facts-table th,
.facts-table td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.facts-table th[scope="row"] {
  background: var(--off-white);
  color: var(--maroon);
  font-weight: 600;
  width: 38%;
}

.facts-table thead th {
  background: var(--maroon);
  color: var(--white);
}

.history-content p {
  margin: 0 0 1rem;
}

.song-attribution {
  margin-bottom: 0.5rem;
}

.club-song {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--off-white);
  border: 1px solid #e0e0e0;
  padding: 1rem 1.25rem;
  margin: 0;
  white-space: pre-wrap;
}

.vision-list {
  margin: 0;
  padding-left: 1.25rem;
}

.vision-list li {
  margin-bottom: 0.5rem;
}

.honour-roll {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.honour-section {
  padding-bottom: 0.5rem;
}

.muted {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.source-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.875rem;
  color: var(--gray-light);
}

/* WordPress / news cards */
.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card-link:hover h4 {
  color: var(--gold);
}

.news-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.entry-content {
  max-width: 100%;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--gold);
}

/* Footer */
.footer {
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-meta {
  margin-top: 0.8rem;
}

.footer-address {
  margin: 0 0 0.35rem;
}

.footer-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contacts li {
  margin: 0.2rem 0;
  font-size: 0.875rem;
}

/* ========== Link card custom icons ========== */
.link-icon-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

/* Juniors: JFC round badge; slightly larger than the football pictogram */
.link-icon-img--jfc {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  display: block;
}

/* ========== Social Calendar ========== */
.social-calendar-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-calendar-img,
.entry-content .wp-block-image img[alt*="Social Calendar"],
.entry-content .wp-block-image img[src*="social-calendar"] {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.social-calendar-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.45;
}

.social-calendar-wrap--sidebar,
.social-calendar-wrap--rail {
  margin-top: 0.35rem;
  justify-content: flex-start;
}

.social-calendar-img--sidebar,
.social-calendar-img--rail {
  max-width: 100%;
  width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: contain;
}

.entry-content .wp-block-image.aligncenter {
  text-align: center;
}

/* ========== Facebook Feed ========== */
.fb-feed-placeholder {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #444;
}

.fb-feed-placeholder a {
  color: var(--color-primary);
}

/* Home: Facebook (left) | calendar + Instagram stacked (right); single column on narrow viewports */
.social-feeds-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.1rem;
}

.social-feeds-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  .social-feeds-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 1.25rem 1.5rem;
  }
}

.social-feed-col--rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.social-feed-rail__block {
  min-width: 0;
}

.social-feed-rail__block--instagram .social-feed-col--instagram {
  width: 100%;
  max-width: none;
}

.social-feed-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary, #5c0a1e);
  margin: 0 0 0.75rem;
}

.fb-feed-wrap--iframe,
.ig-feed-wrap {
  min-height: 120px;
  max-width: 100%;
  overflow: hidden;
}

.social-feed-col--facebook .fb-feed-wrap {
  flex: 1 1 auto;
}

.fb-feed-wrap--iframe .fb-page-iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

.social-feed-fallback-text {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.social-feed-col--facebook {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-feed-col--instagram {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-feed-col--instagram .social-feed-col-title {
  flex-shrink: 0;
}

/* Instagram column without embed: promo card aligned with Facebook column height */
.ig-promo-card {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26rem;
  padding: 1.75rem 1.35rem;
  background: linear-gradient(160deg, #fffdfb 0%, #faf5f8 42%, #f3eef6 100%);
  border: 1px solid rgba(122, 11, 60, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(95, 8, 47, 0.07);
}

.ig-promo-card--compact {
  min-height: auto;
  padding: 0.8rem 0.9rem 0.9rem;
  box-shadow: 0 4px 16px rgba(95, 8, 47, 0.06);
}

.ig-promo-card__inner {
  max-width: 20rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ig-promo-card--compact .ig-promo-card__inner {
  gap: 0.55rem;
  max-width: 17rem;
}

.ig-promo-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 14px rgba(188, 24, 136, 0.35);
}

.ig-promo-card--compact .ig-promo-card__badge {
  width: 3rem;
  height: 3rem;
  box-shadow: 0 2px 10px rgba(188, 24, 136, 0.28);
}

.ig-promo-card__svg {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
}

.ig-promo-card--compact .ig-promo-card__svg {
  width: 1.3rem;
  height: 1.3rem;
}

.ig-promo-card__lead {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.35;
}

.ig-promo-card--compact .ig-promo-card__lead {
  font-size: 0.95rem;
}

.ig-promo-card__text {
  margin: 0;
  color: var(--gray);
  font-size: 0.94rem;
  line-height: 1.55;
}

.ig-promo-card--compact .ig-promo-card__text {
  font-size: 0.82rem;
  line-height: 1.45;
}

.ig-promo-card__cta {
  margin-top: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ig-promo-card--compact .ig-promo-card__cta {
  margin-top: 0.15rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
}

.ig-feed-wrap--embed {
  flex: 1 1 auto;
  max-height: 560px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.35rem;
}

.ig-feed-wrap--compact {
  max-height: 360px;
}

.social-btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  color: #fff !important;
}

.social-btn--instagram:hover {
  filter: brightness(1.08);
}

.social-btn {
  display: inline-block;
  background: #1877f2;
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.social-btn:hover {
  background: #1558b0;
}

/* Legacy “Follow Us” + blue button row (old prototype / pasted HTML). Current home uses “Latest on social” only. */
.social-section {
  display: none !important;
}

/* ========== Shop page ========== */

/* CTA banner */
.shop-cta-banner {
  background: var(--maroon);
  margin: 2rem -1.5rem;
  padding: 2rem 1.5rem;
}

.shop-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.shop-cta-text h2 {
  color: var(--gold);
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shop-cta-text p {
  color: var(--white);
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.shop-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

/* What's available list */
.shop-categories-overview {
  margin: 2.5rem 0;
}

.shop-category-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.shop-category-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.95rem;
}

.shop-category-note {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin: 0.75rem 0 0;
}

/* Store info */
.shop-store-section {
  margin-top: 3rem;
}

.shop-store-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
}

.shop-store-icon {
  flex-shrink: 0;
  color: var(--maroon);
  display: flex;
  align-items: center;
}

.shop-store-card strong {
  display: block;
  color: var(--maroon);
  margin-bottom: 0.3rem;
}

.shop-store-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

/* Bottom CTA */
.shop-bottom-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gold);
  text-align: center;
}

.shop-bottom-cta .btn {
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 768px) {
  .header-nav-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.55rem 0.85rem;
  }

  .powered-by-statsmapp {
    margin-left: auto;
    gap: 0.45rem;
    padding: 0.28rem 0.48rem;
  }

  .powered-by-statsmapp__label {
    font-size: 0.62rem;
  }

  .powered-by-statsmapp__logo {
    width: 34px;
    height: 34px;
  }

  .powered-by-statsmapp__fly {
    /* mobile pill: outer ~120×43px, R=22 */
    offset-path: path('M 21,-1 L 98,-1 A 22,22 0 0 1 119,21 A 22,22 0 0 1 98,43 L 21,43 A 22,22 0 0 1 -1,21 A 22,22 0 0 1 21,-1 Z');
  }

  .nav-toggle {
    display: flex;
  }

  .header-nav-bar .nav {
    flex: 1 1 100%;
    order: 4;
    justify-content: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--maroon-dark);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transform-origin: top;
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.35s ease;
  }

  .nav.open {
    max-height: min(32rem, 85vh);
    padding: 0.75rem 1.5rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .nav,
    .nav.open {
      transition: none;
    }
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .hero {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

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

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

  .social-links {
    flex-direction: column;
  }

  .social-btn {
    text-align: center;
  }

  .ig-promo-card {
    min-height: auto;
    padding: 1.75rem 1.15rem;
  }

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

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

  .page-title {
    font-size: 1.5rem;
  }

  .shop-cta-banner {
    margin: 1.5rem -1rem;
    padding: 1.5rem 1rem;
  }

  .shop-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-cta-btn {
    width: 100%;
    text-align: center;
  }

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

  .shop-store-card {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (min-width: 769px) {
  .nav {
    display: block;
  }
}
