/* =========================================================
   North Canterbury Athletic Club
   Palette: bottle green / sunflower yellow / white
   ========================================================= */

:root {
  /* Brand */
  --green-900: #062A20;
  --green-800: #0B3B2E;   /* bottle green - primary */
  --green-700: #0F4C39;
  --green-600: #12684D;
  --green-100: #E7F1ED;
  --green-050: #F4F9F7;

  --yellow-500: #FFC629;  /* sunflower yellow - accent */
  --yellow-400: #FFD75E;
  --yellow-100: #FFF4D6;

  --white: #ffffff;

  --text: #14261F;
  --text-soft: #4B6157;
  --text-on-dark: rgba(255, 255, 255, .82);

  --line: rgba(11, 59, 46, .12);
  --line-strong: rgba(11, 59, 46, .22);

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Inter", "Segoe UI", system-ui, sans-serif;

  /* Space & shape */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(6, 42, 32, .06), 0 4px 12px rgba(6, 42, 32, .06);
  --shadow: 0 10px 30px rgba(6, 42, 32, .10);
  --shadow-lg: 0 24px 60px rgba(6, 42, 32, .18);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .25vw + .96rem, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--green-700); text-decoration-color: var(--yellow-500); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-800);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--green-050); }
.section--dark { background: var(--green-800); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lede { color: var(--text-on-dark); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--yellow-500);
  color: var(--green-900);
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--yellow-500);
}
.eyebrow--light { color: var(--yellow-400); }

.lede { font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem); color: var(--text-soft); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--wide { max-width: none; }   /* heading + lede run the full container */
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
}
.section-head--split .section-head__aside { justify-self: end; }
@media (max-width: 800px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .section-head--split .section-head__aside { justify-self: start; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--yellow-500); --btn-fg: var(--green-900); }
.btn--accent:hover { --btn-bg: var(--yellow-400); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--green-800); --btn-fg: var(--white); border-color: var(--green-800); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--green-800); border-color: var(--white); }

.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }

.btn__icon {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  color: var(--green-700);
}
.link-arrow span { transition: transform .18s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.site-header__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(.9rem, 2.2vw, 2.25rem);
  min-height: 78px;
}
.nav { flex: 0 1 auto; min-width: 0; }
.site-header__cta { flex: 0 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .75rem;
  text-decoration: none;
  color: var(--green-800);
  margin-right: auto;
}
.brand img { height: 46px; width: auto; }
.brand__name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.brand__tag {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  background: var(--green-800);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars i {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--yellow-500);
  border-radius: 2px;
}
.nav-toggle__bars::before { content: ""; top: 0; }
.nav-toggle__bars i { top: 4px; }
.nav-toggle__bars::after { content: ""; top: 8px; }

.nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(.55rem, 1.15vw, 1.4rem);
}
.nav a {
  position: relative;
  display: block;
  padding: .5rem .2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.86rem, .72vw + .38rem, .95rem);
  white-space: nowrap;
  color: var(--green-800);
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: .2rem; right: .2rem; bottom: .15rem;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }

.site-header__cta { display: flex; gap: .6rem; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { padding: .95rem .2rem; font-size: 1.05rem; }
  .nav__cta { display: block; border-top: 0 !important; margin-top: 1.15rem; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-800);
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at center, rgba(255, 198, 41, .28), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: var(--white); margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--yellow-500); display: block; }
.hero__text p { color: var(--text-on-dark); font-size: clamp(1.05rem, .6vw + 1rem, 1.3rem); max-width: 48ch; }
.hero .btn-row { margin-top: 2rem; }

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .95rem .4rem .5rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__pill b {
  background: var(--yellow-500);
  color: var(--green-900);
  border-radius: 999px;
  padding: .12rem .6rem;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__media { position: relative; padding-bottom: 2.5rem; }
.hero__media-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero__media-inset {
  position: absolute;
  left: -2rem; bottom: 0;
  width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 7px solid var(--green-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .hero__media-inset { left: 0; width: 38%; } }
@media (max-width: 560px) { .hero__media-inset { display: none; } }
.hero__badge {
  position: absolute;
  right: 1.25rem; top: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 16rem;
}
.hero__badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--green-800);
}
.hero__badge span { font-size: .82rem; line-height: 1.35; color: var(--text-soft); }
@media (max-width: 560px) { .hero__badge { right: .85rem; top: .85rem; padding: .8rem 1rem; } }

/* ---------- Stats ---------- */
.stats { background: var(--white); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow-sm);
}
.stat { background: var(--white); padding: clamp(1.4rem, 2.5vw, 2rem); margin: 0; }
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-800);
  letter-spacing: -.03em;
}
.stat dt sup { color: var(--yellow-500); font-size: .5em; }
.stat dd { margin: .6rem 0 0; font-size: .9rem; color: var(--text-soft); }
.stat dd b { display: block; color: var(--green-700); font-family: var(--font-display); font-size: 1rem; }

/* ---------- Feature ---------- */
.feature__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .feature__grid { grid-template-columns: 1fr; } }

.feature__media { position: relative; isolation: isolate; margin-bottom: 3rem; }
.feature__media-main {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.feature__media-inset {
  position: absolute;
  right: -1.5rem; bottom: -2.5rem;
  width: 58%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 7px solid var(--green-050);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature__media::after {
  content: "";
  position: absolute;
  left: -14px; top: -14px;
  width: 50%; height: 38%;
  border: 3px solid var(--yellow-500);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 900px) { .feature__media-inset { right: 0; width: 50%; } }
@media (max-width: 560px) { .feature__media-inset { display: none; } .feature__media { margin-bottom: 0; } }

.pillars { display: grid; gap: 1.4rem; margin-top: 2rem; }
.pillar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--yellow-100);
  border: 1px solid rgba(255, 198, 41, .55);
  color: var(--green-800);
}
.pillar__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-bottom: .3em; font-size: 1.1rem; }
.pillar p { color: var(--text-soft); font-size: .95rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:focus-within { box-shadow: var(--shadow); }

.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__tag {
  position: absolute;
  left: .85rem; top: .85rem;
  background: var(--yellow-500);
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.card__body h3 { margin: 0; }
.card__body p { color: var(--text-soft); font-size: .95rem; }
.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--green-700);
}
/* Stretched link: the heading link covers the whole card */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:hover { color: var(--green-600); }
.news-card__date {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* ---------- Banner photo ---------- */
.banner {
  position: relative;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}
.banner figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(6, 42, 32, .88), rgba(6, 42, 32, .45) 55%, transparent);
  color: rgba(255, 255, 255, .84);
  font-size: .93rem;
}
.banner figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--white);
  margin-bottom: .15rem;
}
@media (max-width: 640px) { .banner img { aspect-ratio: 4 / 3; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 1.2vw, 1rem);
}
.gallery__item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;      /* square tiles set the row height */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-700);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item--strip { grid-column: span 4; aspect-ratio: 32 / 9; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem .9rem .8rem;
  background: linear-gradient(to top, rgba(6, 42, 32, .85), transparent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide, .gallery__item--strip {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Schedule table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
table.schedule { width: 100%; border-collapse: collapse; min-width: 580px; }
table.schedule caption {
  text-align: left;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-800);
  border-bottom: 1px solid var(--line);
}
table.schedule th, table.schedule td { padding: .9rem 1.25rem; text-align: left; font-size: .94rem; }
table.schedule thead th {
  background: var(--green-050);
  font-family: var(--font-display);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
  border-bottom: 1px solid var(--line);
}
table.schedule tbody tr + tr th,
table.schedule tbody tr + tr td { border-top: 1px solid var(--line); }
table.schedule tbody th { font-weight: 700; color: var(--green-800); }
table.schedule tbody tr:not(.schedule__band):hover th,
table.schedule tbody tr:not(.schedule__band):hover td { background: var(--green-050); }

/* season groups */
table.schedule tbody + tbody > tr:first-child > th { border-top: 2px solid var(--line-strong); }
.schedule__band th {
  padding: .8rem 1.25rem;
  background: var(--green-100);
  box-shadow: inset 5px 0 0 var(--green-600);
}
.schedule__group--summer .schedule__band th {
  background: var(--yellow-100);
  box-shadow: inset 5px 0 0 var(--yellow-500);
}
.schedule__group--winter .schedule__band th {
  background: var(--green-050);
  box-shadow: inset 5px 0 0 var(--green-800);
}
.schedule__season {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-800);
}
.schedule__months {
  margin-left: .7rem;
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}

.note { margin-top: 1rem; font-size: .88rem; color: var(--text-soft); }

/* Schedule: stack into labelled cards instead of scrolling sideways */
@media (max-width: 700px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  table.schedule { display: block; min-width: 0; }
  table.schedule caption {
    display: block;
    padding: 0 0 1.1rem;
    border-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.25;
  }
  table.schedule thead {           /* column names move into each cell */
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  table.schedule tbody { display: block; }
  table.schedule tbody + tbody { margin-top: 1.6rem; }

  .schedule__band, .schedule__band th { display: block; }
  table.schedule tbody + tbody > tr.schedule__band > th { border-top: 0; }
  .schedule__band th {
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
  }
  .schedule__months { display: block; margin: .15rem 0 0; }

  table.schedule tbody > tr:not(.schedule__band) {
    display: block;
    margin-top: .7rem;
    padding: .95rem 1.1rem 1.05rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
  }
  table.schedule tbody > tr:not(.schedule__band) > th[scope="row"] {
    display: block;
    padding: 0 0 .55rem;
    border-top: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--green-800);
  }
  /* Block, not grid: a grid container would blockify inline children such as
     links into separate grid items, breaking them onto their own row. */
  table.schedule tbody > tr:not(.schedule__band) > td {
    display: block;
    position: relative;
    padding: .28rem 0 .28rem 5.4rem;
    border-top: 0;
  }
  table.schedule tbody > tr:not(.schedule__band) > td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: .28rem;
    width: 4.6rem;
    padding-top: .2rem;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-600);
  }
  table.schedule tbody > tr:not(.schedule__band):hover th,
  table.schedule tbody > tr:not(.schedule__band):hover td { background: transparent; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(6, 42, 32, .95) 18%, rgba(11, 59, 46, .72)),
    url("../img/join.jpg") center / cover no-repeat var(--green-800);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -10%; bottom: -40%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(255, 198, 41, .22), transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.cta-band__head {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* three registration steps + the extra costs */
.join-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* the two GameDay steps share one labelled parent block */
.join-group {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.3rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-lg);
}
.join-group__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem .85rem;
}
.join-group__label {
  margin: 0;
  padding: .28rem .8rem;
  background: var(--yellow-500);
  color: var(--green-900);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.join-group__note {
  margin: 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
}
.join-group__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.join-step--child { background: rgba(255, 255, 255, .09); }

@media (max-width: 1100px) {
  .join-steps { grid-template-columns: 1fr; }
  /* the 12-column spans would otherwise create implicit columns here
     and squeeze each block into a sliver */
  .join-steps > .join-step,
  .join-steps > .join-group { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .join-group__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.join-step {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.9rem 1.35rem 1.5rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
}
.join-step__num {
  position: absolute;
  top: -17px; left: 1.35rem;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 4px 12px rgba(6, 42, 32, .35);
}
/* Specific enough to beat `.join-step p` / `.cta-band p`, so every tag in the
   band renders identically whether it labels a card or the GameDay group. */
.cta-band .join-step__tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.join-step h3 { margin: 0; color: var(--white); font-size: 1.1rem; }
.join-step p,
.cta-band .join-group > p:not(.join-step__tag) {
  color: var(--text-on-dark);
  font-size: .93rem;
}
.join-step .link-arrow {
  margin-top: auto;
  padding-top: 1rem;
  /* color: var(--white); */
}
.join-step .link-arrow:hover { color: var(--yellow-500); }

.join-step--google {
  grid-column: span 3;
}
.join-step--costs {
  grid-column: span 4;
  background: rgba(255, 198, 41, .1);
  border-color: rgba(255, 198, 41, .34);
}
.join-step--costs .fee-list { margin-top: .4rem; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--text-on-dark); }
.cta-band .btn-row { margin-top: 1.75rem; }

.fee-list { display: grid; gap: .6rem; }
.fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 1.15rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.fee-list b { color: var(--yellow-500); font-family: var(--font-display); white-space: nowrap; }
.fee-list--compact li { padding: .6rem .85rem; font-size: .89rem; gap: .6rem; }
.fee-list--compact b { white-space: normal; text-align: right; }
.fee-list__note { font-size: .84rem; color: rgba(255, 255, 255, .6); margin-top: .35rem; }

/* ---------- Facebook feed ---------- */
.feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .feed__grid { grid-template-columns: 1fr; }
  .feed { justify-self: start; }
}

/* fallback: the two club page embeds side by side */
.feed__grid--pair {
  grid-template-columns: repeat(auto-fit, minmax(300px, 500px));
  justify-content: center;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.posts.is-fallback { display: block; }
.posts.is-fallback .posts__fallback { margin-bottom: 1.25rem; }

.feed {
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.feed__frame {
  display: block;
  width: 100%;
  height: 800px;
  border: 0;
  overflow: hidden;
}
@media (max-width: 560px) { .feed__frame { height: 640px; } }

/* ---------- Club posts (pre-rendered Facebook posts) ---------- */
.posts {
  /* three across or one full-width column - never an awkward two.
     auto-fit was giving two columns through the tablet range. */
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}
@media (min-width: 1040px) {
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.posts__status,
.posts__fallback {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-soft);
  font-size: .95rem;
}

.post {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.post .author a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--green-800);
  text-decoration: none;
}
.post .author a:hover { color: var(--green-600); }

.post .post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.post .time {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
}
.post .permalink {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.post .text {
  font-size: .96rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  /* long posts are trimmed; "View on Facebook" has the full text.
     Delete this clamp to show every post in full. */
  display: -webkit-box;
  -webkit-line-clamp: 14;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post .post-link a,
.post .shared-link a { font-size: .85rem; overflow-wrap: anywhere; }

.post .thumb {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--green-050);
}

/* a post that quotes another page's post */
.post .shared {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: auto;
  padding: .9rem 1rem;
  background: var(--green-050);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow-500);
  border-radius: var(--radius-sm);
}
.post .shared-meta {
  font-size: .8rem;
  color: var(--text-soft);
}
.post .shared-meta a {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  color: var(--green-700);
}
.post .shared-text {
  font-size: .89rem;
  line-height: 1.55;
  color: var(--text-soft);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post .shared .thumb { max-height: 220px; }

/* ---------- Sponsors ---------- */
.sponsors__row {
  /* flex rather than grid so a part-full last row centres
     instead of being left-aligned in its tracks */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

/* Caption on each supporter.
   Default = a plain static caption under the logo. The floating tooltip is
   layered on only for real hover pointers, so a long press on a touch screen
   cannot shift the caption around. */
.sponsor {
  position: relative;
  flex: 0 1 auto;
  min-width: 140px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sponsor__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.sponsors__row { align-items: flex-start; }

.sponsor__tip {
  margin-top: .6rem;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

@media (hover: hover) {
  .sponsors__row { align-items: center; }
  .sponsor { flex: 0 0 auto; min-width: 0; max-width: 100%; }

  .sponsor__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 5;
    width: max-content;
    max-width: 15rem;
    margin-top: 0;
    padding: .7rem .9rem;
    background: var(--green-800);
    color: var(--white);
    font-size: .82rem;
    text-align: left;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 5px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .sponsor__tip::after {          /* little pointer down to the logo */
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 7px solid transparent;
    border-top-color: var(--green-800);
    transform: translateX(-50%);
  }
  .sponsor:hover .sponsor__tip,
  .sponsor__link:focus-visible .sponsor__tip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  /* keep the tip inside the container at the ends of the row */
  .sponsor:first-child .sponsor__tip { left: 0; transform: translate(0, 5px); }
  .sponsor:first-child:hover .sponsor__tip,
  .sponsor:first-child .sponsor__link:focus-visible .sponsor__tip { transform: translate(0, 0); }
  .sponsor:first-child .sponsor__tip::after { left: 3rem; }

  .sponsor:last-child .sponsor__tip { left: auto; right: 0; transform: translate(0, 5px); }
  .sponsor:last-child:hover .sponsor__tip,
  .sponsor:last-child .sponsor__link:focus-visible .sponsor__tip { transform: translate(0, 0); }
  .sponsor:last-child .sponsor__tip::after { left: auto; right: 3rem; }
}

.sponsors__row img {
  /* one common height for every logo; width follows its own aspect ratio,
     so wide lockups and square marks read at the same optical weight */
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
  filter: grayscale(100%);
  opacity: .85;
  transition: filter .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease);
}
.sponsors__row a:hover img, .sponsors__row a:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

/* ---------- Contact ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; } }

.contact__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact__media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(6, 42, 32, .85), transparent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;   /* one card per row at every width */
  gap: clamp(1rem, 2vw, 1.25rem);
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow-500);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .45em; }
.contact-card p { font-size: .94rem; color: var(--text-soft); }
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .93rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h2, .site-footer h3 {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--yellow-500); }
.site-footer li + li { margin-top: .55rem; }

.footer-brand { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.footer-brand img {
  height: 44px; width: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 7px 10px;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.2;
}
.footer-brand span { font-size: .85rem; }

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .6rem;
  margin-top: 1.25rem;
}
.socials a {                       /* circular icon with its label centred beneath */
  display: inline-grid;
  justify-items: center;
  gap: .45rem;
  min-width: 72px;
  color: rgba(255, 255, 255, .8);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.socials svg {
  width: 44px; height: 44px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  fill: currentColor;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.socials a:hover { color: var(--yellow-500); }
.socials a:hover svg {
  background: var(--yellow-500);
  border-color: var(--yellow-500);
  color: var(--green-900);
}

.site-footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: .84rem;
}
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__base li + li { margin-top: 0; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .socials { display: none; }
  body { color: #000; background: #fff; }
  .hero, .cta-band, .site-footer { background: #fff; color: #000; }
}
