/* ==========================================================================
   LUWCC website styles
   Single-page scroll-snap layout. Mobile-first. Plain CSS, no framework.

   Typography pairing rule (explicit, keep consistent):
   - Sans-serif, bold/heavy: every heading, nav link, button, stat number,
     card title and badge/label. No exceptions.
   - Serif, regular weight: reserved only for the .lede intro paragraph and
     .pull-quote directly under a heading. Never on headings, nav, buttons
     or list content.
   ========================================================================== */

:root {
  --main-blue: #06387f;
  --accent-blue: #1511cd;
  --navy: #14206a;
  --white: #ffffff;
  --black: #101114;
  --grey-100: #ececef;
  --grey-300: #cfd2d9;
  --grey-500: #8a8f9c;
  --grey-700: #4a4e58;

  --bg-warm: #faf9f6;
  --bg-warm-alt: #f2ede2;

  --clubhq-mark-color: #1a1a1a;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;

  --container-width: 1100px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 32, 106, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 32, 106, 0.12);
  --header-height: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--bg-warm);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

/* Headings: always sans-serif, bold/heavy. See typography pairing rule above. */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.eyebrow--light {
  color: #c9d4ff;
}

/* Build placeholder badge: the ONE treatment for every internal
   placeholder (photo, copy, sample data, unconfirmed names). Always
   dashed border and muted grey, never a brand colour, so it never
   reads as genuine content. See PLACEHOLDER CONVENTION comment in
   index.html. */
.placeholder-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--grey-700);
  border: 1px dashed var(--grey-500);
}

/* Same placeholder treatment, legible on dark/colour-blocked bands. */
.placeholder-tag--light {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

.lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--grey-700);
  max-width: 65ch;
}

.lede--light {
  color: rgba(255, 255, 255, 0.9);
}

.about-copy .lede + .lede {
  margin-top: 1em;
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--navy);
  border-left: 4px solid var(--accent-blue);
  padding-left: 20px;
  margin: 28px 0;
  max-width: 60ch;
}

.pull-quote p {
  margin-bottom: 10px;
}

.pull-quote-attribution {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--grey-700);
}

.light-heading {
  color: var(--white);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---- Buttons and links ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover, .btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--main-blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--navy);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent-blue);
}

.arrow-link-icon {
  display: inline-block;
  transition: transform 0.15s ease;
}

.arrow-link:hover,
.arrow-link:focus {
  text-decoration: none;
}

.arrow-link:hover .arrow-link-icon,
.arrow-link:focus .arrow-link-icon {
  transform: translateX(4px);
}

.arrow-link--light {
  color: var(--white);
}

/* ==========================================================================
   Header / Navigation (fixed, persistent across the whole scroll experience)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--main-blue);
}

/* Header social handles: hidden below the desktop nav breakpoint, where the
   CTA button and nav toggle already fill the row and there's no room to add
   a second line without growing past --header-height. */
.header-socials {
  display: none;
}

.header-social-link {
  color: var(--grey-500);
  display: inline-flex;
}

.header-social-link .social-icon-svg {
  width: 18px;
  height: 18px;
}

.header-social-link:hover,
.header-social-link:focus {
  color: var(--accent-blue);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.primary-nav.is-open {
  max-height: 480px;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
}

.primary-nav li {
  border-bottom: 1px solid var(--grey-100);
}

.primary-nav li:last-child {
  border-bottom: none;
}

.primary-nav a {
  display: block;
  font-family: var(--font-body);
  padding: 14px 4px;
  color: var(--navy);
  font-weight: 600;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a[aria-current="page"] {
  color: var(--accent-blue);
  text-decoration: none;
}

/* Header ClubHQ badge: single instance, sits after the nav/CTA at every
   viewport width (nav is either collapsed behind the toggle on mobile or a
   static row on desktop, but the badge itself never duplicates). */
.clubhq-badge-header {
  flex-shrink: 0;
}

/* On the narrowest phones the CTA button, nav toggle and badge are
   competing for the same row, so drop the "Powered by" label and keep
   just the linked wordmark. */
@media (max-width: 479px) {
  .clubhq-badge-header .clubhq-label {
    display: none;
  }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .header-inner {
    gap: 24px;
    justify-content: space-between;
  }

  .header-brand { order: 1; }

  .header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .primary-nav {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border-bottom: none;
    background: transparent;
  }

  .header-actions {
    order: 3;
    margin-left: 0;
  }

  .clubhq-badge-header {
    order: 4;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
  }

  .primary-nav li {
    border-bottom: none;
  }

  .primary-nav a {
    padding: 8px 12px;
    border-radius: 6px;
  }
}

/* ==========================================================================
   ClubHQ attribution badge
   ========================================================================== */

.clubhq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.clubhq-badge:hover,
.clubhq-badge:focus {
  text-decoration: none;
  opacity: 0.8;
}

.clubhq-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
}

.clubhq-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clubhq-mark-color);
}

/* Footer wordmark/label follow the swappable --footer-clubhq-* variables
   set on .site-footer, so they stay legible whichever footer theme (light
   or dark) is active. */
.site-footer .clubhq-mark {
  color: var(--footer-clubhq-mark);
}

.site-footer .clubhq-label {
  color: var(--footer-clubhq-label);
}

/* ==========================================================================
   Scroll-snap sections
   ========================================================================== */

.snap-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: var(--bg-warm);
}

.snap-section--alt {
  background: var(--bg-warm-alt);
}

.snap-section--accent {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

/* Membership Enquiry: full-bleed photo background with a dark overlay so
   the form stays legible over whatever the photo's own brightness is. */
.membership-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.membership-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop toward the top of the photo so there is breathing room
     above the team's heads, and let the crop lose ground/legs at the
     bottom instead. */
  object-position: center 15%;
}

.membership-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 106, 0.6);
}

.snap-section--accent .section-inner {
  position: relative;
  z-index: 1;
}

/* Membership Enquiry content is centred (to sit above the centred form
   card), unlike every other section which stays left-aligned. */
.snap-section--accent .section-heading {
  text-align: center;
}

.snap-section--accent .lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-inner {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 0.3em;
}

/* ==========================================================================
   Scroll reveal animation (Intersection Observer driven)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Stat callouts (reused on Home and the Events schedule band)
   ========================================================================== */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--main-blue);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}

.stats-row--dark .stat-number {
  color: var(--white);
}

.stats-row--dark .stat-label {
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Home section: full-bleed hero band with photo overlay
   ========================================================================== */

.hero-band {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

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

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 32, 106, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}

.hero-content h1 {
  color: var(--white);
}

.hero-lede {
  font-size: 1.25rem;
  max-width: 46ch;
}

/* Two-panel layout: cutout image on the left, Events + Updates stacked on
   the right. Image bleeds toward the panel edge, no border or background
   behind it, since the PNG is a transparent cutout meant to sit directly
   on the section background. */
.events-updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}

.events-updates-image {
  display: flex;
  justify-content: center;
  order: -1;
}

.cutout-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
}

@media (min-width: 860px) {
  .events-updates-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
    gap: 24px;
  }

  .events-updates-image {
    order: 0;
    align-items: center;
    justify-content: flex-start;
    margin-left: -20px;
  }

  .cutout-img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }
}

.events-updates-content .events-teaser {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.events-teaser {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--grey-300);
}

.events-teaser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.events-teaser-head h2 {
  margin-bottom: 0;
}

.teaser-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .teaser-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teaser-card {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teaser-card h3 {
  margin-bottom: 0;
}

.card-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   What's new: thin-divided updates list
   ========================================================================== */

.updates-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--grey-300);
}

.updates-list {
  margin-top: 12px;
  border-top: 1px solid var(--grey-300);
}

.update-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--grey-300);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.update-date {
  flex-shrink: 0;
  width: 96px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}

.update-headline {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}

.update-expand {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}

.update-row[aria-expanded="true"] .update-expand {
  transform: rotate(45deg);
}

.update-body {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--grey-300);
  font-family: var(--font-body);
  color: var(--grey-700);
}

.update-body[hidden] {
  display: none;
}

.update-body p {
  margin-bottom: 12px;
}

.update-role-list {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
}

.update-photo {
  margin-top: 12px;
  max-width: 320px;
}

/* ==========================================================================
   Photo / image placeholders
   ========================================================================== */

.photo-placeholder {
  background: var(--grey-100);
  border: 2px dashed var(--grey-500);
  border-radius: var(--radius);
  color: var(--grey-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 200px;
}

.photo-placeholder--square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.photo-placeholder--circle {
  aspect-ratio: 1 / 1;
  min-height: 0;
  width: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  padding: 10px;
  font-size: 0.65rem;
}

.profile-photo {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
}

.profile-placeholder-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--grey-500);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   About section: pull-quote and asymmetric editorial photo layout
   ========================================================================== */

.about-block {
  margin-top: 32px;
}

.about-block:first-of-type {
  margin-top: 24px;
}

.about-image-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 28px 0;
}

.about-image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .about-image-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .about-image-grid .photo-placeholder,
  .about-image {
    min-height: 320px;
  }
}

/* ==========================================================================
   Events section: navy schedule band and colour-blocked banner cards
   ========================================================================== */

.schedule-band {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
  width: 100%;
}

.schedule-band h2 {
  color: var(--white);
}

/* auto-fit + minmax: cards wrap to however many fit per row and always
   fill each row completely, so an odd card count never leaves a gap. */
.event-banner-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}

.event-banner {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.event-banner-head {
  padding: 14px 22px;
  color: var(--white);
}

.event-banner-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-banner-body {
  padding: 22px;
}

.event-banner-body h3 {
  margin-bottom: 6px;
}

.event-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* ==========================================================================
   Key Contacts: profile card grid
   ========================================================================== */

.profile-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover,
.profile-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.profile-card h3 {
  margin-bottom: 2px;
}

.profile-role {
  font-family: var(--font-body);
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

.profile-contact {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.contact-email-banner {
  background: var(--main-blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 32px;
  text-align: center;
}

.contact-email-banner a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Match Results: two-panel layout, table content and supporting photo
   ========================================================================== */

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}

@media (min-width: 860px) {
  .results-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.results-image-img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.results-panel .table-wrap {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--white);
  font-family: var(--font-body);
}

.results-table caption {
  text-align: left;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 10px;
}

.results-table th,
.results-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.95rem;
}

.results-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.results-table tbody tr:nth-child(even) {
  background: var(--bg-warm-alt);
}

.result-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.result-win { background: #dcf5e3; color: #1c6b34; }
.result-loss { background: #fbdede; color: #9c2626; }
.result-draw { background: #eef0f4; color: var(--grey-700); }

.result-margin {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--grey-500);
}

.score-line {
  display: block;
  font-weight: 700;
  color: var(--navy);
}

.performer-line {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--grey-700);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  max-width: 640px;
  margin: 8px auto 0;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field .optional {
  font-weight: 400;
  color: var(--grey-500);
  font-size: 0.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(21, 17, 205, 0.15);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--grey-700);
  margin-top: 14px;
}

.form-confirmation {
  display: none;
  text-align: center;
  padding: 20px 4px;
}

.form-confirmation.is-visible {
  display: block;
}

.form-confirmation .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcf5e3;
  color: #1c6b34;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

/* ==========================================================================
   Footer (minimal: email, social icons, ClubHQ attribution)
   ========================================================================== */

.site-footer {
  /* Swappable footer theme: currently light (white bg, blue text/logo) so
     the current colour logo reads cleanly, until Charlie's white logo
     asset lands. To revert to the dark footer + white logo, swap these
     variables for the commented dark values and change .logo-mark's src
     back to the white logo asset. */
  --footer-bg: var(--white);
  --footer-text: var(--main-blue);
  --footer-link: var(--main-blue);
  --footer-social-bg: rgba(6, 56, 127, 0.08);
  --footer-social-icon: var(--main-blue);
  --footer-social-hover-icon: var(--white);
  --footer-clubhq-mark: var(--clubhq-mark-color);
  --footer-clubhq-label: var(--grey-500);
  /* Dark footer / white logo variant (swap in when the white logo lands):
     --footer-bg: var(--navy);
     --footer-text: rgba(255, 255, 255, 0.85);
     --footer-link: var(--white);
     --footer-social-bg: rgba(255, 255, 255, 0.12);
     --footer-social-icon: var(--white);
     --footer-social-hover-icon: var(--white);
     --footer-clubhq-mark: var(--white);
     --footer-clubhq-label: rgba(255, 255, 255, 0.65);
  */

  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 32px 0;
}

.footer-inner a {
  color: var(--footer-link);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-text--footer {
  color: var(--footer-text);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--footer-social-bg);
  color: var(--footer-social-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover,
.social-icon:focus {
  background: var(--accent-blue);
  color: var(--footer-social-hover-icon);
  text-decoration: none;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-end;
  }
}
