/* Fonts served from this site (static/fonts, SIL Open Font License: see OFL-*.txt there).
   Latin subset, which covers English and French. */
@font-face{ font-family:'Bebas Neue'; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/bebas-neue-latin-400-normal.5853435d21b1.woff2") format('woff2'); }
@font-face{ font-family:'Syne'; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/syne-latin-400-normal.6769cdbfd193.woff2") format('woff2'); }
@font-face{ font-family:'Syne'; font-style:normal; font-weight:500; font-display:swap;
  src:url("fonts/syne-latin-500-normal.7d6fdfe75eb7.woff2") format('woff2'); }
@font-face{ font-family:'Syne'; font-style:normal; font-weight:600; font-display:swap;
  src:url("fonts/syne-latin-600-normal.da65aa970644.woff2") format('woff2'); }
@font-face{ font-family:'Syne'; font-style:normal; font-weight:700; font-display:swap;
  src:url("fonts/syne-latin-700-normal.0d42317c9298.woff2") format('woff2'); }
@font-face{ font-family:'Syne'; font-style:normal; font-weight:800; font-display:swap;
  src:url("fonts/syne-latin-800-normal.a0c6d2520639.woff2") format('woff2'); }

/* Grassfield United FC - CSS Template */

:root{
  --pitch: #01612D;
  --pitch-dark: #013D1C;
  --chalk: #FFFFFF;
  --amber: #E8C701;
  --bronze: #BD8A0D;
  --ink: #12130F;
  --sage: #8BB6A2;

  /* Accessible tints/shades of the core palette (WCAG AA, text <18px).
     --bronze-deep on white 5.5:1 | --sage-deep on white 6.1:1 |
     --ink-soft on white 8:1 | --sage-tint on --pitch 5.2:1 */
  --bronze-deep: #8A6200;
  --sage-deep: #3F6B58;
  --sage-tint: #CFE3DA;
  --ink-soft: #4A4C45;
  --mist: #F3F6F4;           /* very light pitch tint for alternate sections */
  --crest-red: var(--bronze-deep);  /* legacy name, now the AA-safe bronze */
  --line: rgba(255,255,255,0.14);
  --tap: 44px;               /* minimum touch target */
  --ease-card: 220ms cubic-bezier(.2,.7,.2,1);   /* shared hover/focus motion for clickable cards */
  --lift-shadow: 0 10px 24px rgba(0,0,0,0.14);
  --lift-shadow-dark: 0 12px 28px rgba(0,0,0,0.5);
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Syne', sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-size:17px;   /* slightly larger than the browser default for readability */
  background:var(--chalk);
  color:var(--ink);
  font-family:var(--font-ui);
  line-height:1.5;
  overflow-x:hidden;
}
@media (min-width:1024px){ body{ font-size:18px; } }
a{ color:inherit; }
img{ max-width:100%; display:block; }
/* Browsers that support it avoid a last line with only one or two words */
p{ text-wrap:pretty; }
.display{ font-family:var(--font-display); text-transform:uppercase; letter-spacing:0.5px; }
.mono{ font-family:var(--font-ui); }

/* ==========================================================================
   Base Card component — every card type below extends this
   ========================================================================== */
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:4px;
  overflow:hidden;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,0.1);
}
.card-body{ padding:14px; }

/* Text sizes: phones and tablets use the sizes written in each rule; screens 1024px and
   wider get one step larger, set by the small "@media (min-width:1024px)" line after a rule. */

/* Header (sticky, one row, crest shrinks on scroll) */
.site-header-wrapper{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.site-header-wrapper .crest-mark,
.site-header-wrapper .crest-text{
  transition:all 0.25s ease;
}
.site-header-wrapper.scrolled .crest-mark{ width:52px; height:52px; }
.site-header-wrapper.scrolled .crest-name{ font-size:20px; }
.site-header-wrapper.scrolled .crest-short{ font-size:15px; }
@media (min-width:1024px){ .site-header-wrapper.scrolled .crest-short{ font-size:16px; } }

/* ---- Social links (inside .nav-extras: header row on desktop, drawer on tablet/phone) ---- */
.social-handles{ display:flex; gap:0; align-items:center; }
.social-handles a{ color:var(--chalk); text-decoration:none; transition:color 0.2s; display:flex; align-items:center; justify-content:center; min-width:var(--tap); min-height:var(--tap); }
.social-handles a:hover{ color:var(--amber); }

/* ---- Header: crest | nav links ... social + language (one row on desktop) ---- */
header{ background:var(--pitch); padding:0 24px; display:flex; align-items:center; gap:16px; }
.header-top{ flex:none; padding:6px 0; }
.crest{ display:flex; align-items:center; gap:12px; text-decoration:none; }
/* The crest fills most of the header height (nav links are ~75px tall) */
.crest-mark{
  width:64px; height:64px;
  border:2px solid var(--amber);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--amber);
  font-family:var(--font-display);
  font-size:17px;
  overflow:hidden;
  flex-shrink:0;
}
@media (min-width:1024px){ .crest-mark{ font-size:18px; } }
.crest-mark img{ width:100%; height:100%; border-radius:50%; object-fit:contain; }
/* Club name on two lines: "Grassfield United FC" / "GUFC" */
.crest-text{
  color:var(--chalk);
  font-family:var(--font-display);
  letter-spacing:0.03em;
  line-height:1;
  display:flex; flex-direction:column; gap:3px;
}
.crest-name, .crest-short{ display:block; white-space:nowrap; transition:font-size 0.25s ease; }
.crest-name{ font-size:24px; }
.crest-short{ font-size:17px; color:var(--amber); letter-spacing:0.18em; }
@media (min-width:1024px){ .crest-short{ font-size:18px; } }
/* Amber button (used on the sponsorship page; no longer in the header) */
.cta-join{
  background:var(--amber);
  color:var(--ink);
  font-family:var(--font-ui);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.06em;
  padding:10px 18px;
  border-radius:2px;
  text-transform:uppercase;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--tap);
  transition:background 0.2s;
}
@media (min-width:1024px){ .cta-join{ font-size:14px; } }
.cta-join:hover{ background:var(--chalk); }
.mobile-menu-toggle{ display:none; }

/* Nav + dropdowns (desktop: hover; tablet/phone: drawer) */
nav{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  position:relative;
}
nav > a, .nav-dropdown{ flex:0 0 auto; }
nav a{
  display:block;
  color:var(--chalk);
  font-family:var(--font-ui);
  text-decoration:none;
  text-transform:uppercase;
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  padding:26px 11px;
  border-bottom:3px solid transparent;
  transition:all .25s;
  white-space:nowrap;
}
nav a:hover, nav a.active{
  color:var(--amber);
  /* Darken (not lighten) the pitch green so amber text keeps >= 4.5:1 */
  background:rgba(0,0,0,0.22);
  border-bottom-color:var(--amber);
}
.nav-dropdown{ position:relative; }
.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:var(--pitch-dark);
  border:1px solid rgba(255,255,255,.08);
  border-top:3px solid var(--amber);
  box-shadow:0 14px 30px rgba(0,0,0,.35);
  visibility:hidden;
  opacity:0;
  transform:translateY(10px);
  transition:all 0.3s ease;
  z-index:9999;
  display:flex;
  flex-direction:column;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu{
  visibility:visible;
  opacity:1;
  transform:translateY(0);
}
.dropdown-menu a{
  padding:14px 18px;
  font-family:var(--font-ui);
  border-bottom:1px solid rgba(255,255,255,.05);
  font-size:13px;
  font-weight:500;
  border-left:3px solid transparent;
}
@media (min-width:1024px){ .dropdown-menu a{ font-size:14px; } }
.dropdown-menu a:last-child{ border-bottom:none; }
.dropdown-menu a:hover{
  background:var(--pitch);
  color:var(--amber);
  border-left-color:var(--amber);
}

/* Social links + language switch: right end of the desktop row (>=1280px), foot of the drawer below */
.nav-extras{ flex:none; margin-left:auto; padding-left:12px; display:flex; align-items:center; gap:4px; }
#mainNav .social-handles a{ width:auto; padding:0; border:0; border-radius:4px; background:none; }
#mainNav .social-handles a:hover{ border:0; background:rgba(255,255,255,0.08); color:var(--amber); }

@media (min-width:1440px){
  nav a{ font-size:13px; padding:26px 11px; }
@media (min-width:1024px){ nav a{ font-size:14px; } }
}
/* One-row desktop header: keep the larger crest, club name and the five social icons on
   one line (icons are mouse targets here; the drawer keeps 44px touch targets) */
@media (min-width:1280px){
  header{ gap:12px; }
  .nav-extras .social-handles a{ min-width:32px; }
}
@media (min-width:1280px) and (max-width:1439px){
  nav a{ padding:26px 8px; }
  .crest-mark{ width:58px; height:58px; }
  .crest-name{ font-size:21px; }
  .crest-short{ font-size:15px; }
@media (min-width:1024px){ .crest-short{ font-size:16px; } }
}
/* French labels are longest: a little tighter still on the narrowest desktop widths */
@media (min-width:1280px) and (max-width:1359px){
  html[lang="fr"] nav a{ padding:26px 4px; letter-spacing:0; font-size:12px; }
  html[lang="fr"] .crest-name{ font-size:19px; }
}
/* French labels are longer: tighten the one-row header until there is room (1536px) */
@media (min-width:1280px) and (max-width:1535px){
  html[lang="fr"] nav a{ padding:26px 6px; letter-spacing:.02em; }
}
/* Rightmost desktop dropdown (the one before .nav-extras) opens leftwards so it is not clipped */
@media (min-width:1280px){
  .nav-dropdown:nth-last-child(2) .dropdown-menu{ left:auto; right:0; }
}

@media (max-width:1279px){
  .mobile-menu-toggle {
    display: block;
    background: transparent;
    color: var(--chalk);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 10px;
    min-width: var(--tap);
    min-height: var(--tap);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
  }
 .mobile-menu-toggle:hover,
  body.nav-locked .mobile-menu-toggle {
    border-color: var(--amber);
    color: var(--amber);
  }

/* Slide-down drawer (Height fits content up to a sensible maximum) */
  #mainNav {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(85vh - 60px); 
    background: var(--pitch-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 0 16px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px); 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                visibility 0.3s ease;
    z-index: 999;
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  }
  #mainNav.nav-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  #mainNav > a, 
  #mainNav .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #mainNav a {
    padding: 14px 24px;
    border-bottom: none;
    width: 100%;
  }

  #mainNav a:hover, 
  #mainNav a.active {
    border-bottom: none;
    border-left: 4px solid var(--amber);
    background: rgba(255, 255, 255, 0.04);
  }
  .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    visibility: visible;
    opacity: 1;
    transform: none;
    display: none;
  }

  /* Submenus fold open and shut (one open at a time, set by the script in base.html).
     A folded submenu is hidden from screen readers and the keyboard as well. */
  #mainNav .dropdown-menu {
    display: flex;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.28s ease, visibility 0s linear 0.28s;
  }
  #mainNav .nav-dropdown.mobile-open .dropdown-menu {
    max-height: 640px;
    visibility: visible;
    transition: max-height 0.32s ease, visibility 0s;
  }
  /* Open parent: amber label, highlighted row, chevron turned up */
  #mainNav .nav-dropdown > a .caret {
    display: inline-block;
    transition: transform 0.25s ease;
  }
  #mainNav .nav-dropdown.mobile-open > a {
    color: var(--amber);
    background: rgba(255, 255, 255, 0.04);
  }
  #mainNav .nav-dropdown.mobile-open > a .caret { transform: rotate(180deg); }

  .dropdown-menu a {
    padding: 14px 24px 14px 40px;
    font-size:13px;
  }
@media (min-width:1024px){ .dropdown-menu a{ font-size:14px; } }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 990;
  }

  .nav-overlay.active {
    display: block;
  }

  body.nav-locked {
    overflow: hidden;
  }
  /* Compact header row: crest left, menu toggle right */
  header { padding: 0 16px; }
  .header-top { padding: 8px 0; margin-right: auto; }
  /* Social links + language switch at the foot of the drawer */
  #mainNav .nav-extras {
    width: 100%;
    margin: 0;
    padding: 12px 24px 4px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
  }
  .crest-mark, .site-header-wrapper.scrolled .crest-mark { width: 50px; height: 50px; }
  .crest-name, .site-header-wrapper.scrolled .crest-name { font-size: 20px; }
  .crest-short, .site-header-wrapper.scrolled .crest-short { font-size:15px; }
@media (min-width:1024px){ .crest-short, .site-header-wrapper.scrolled .crest-short{ font-size:16px; } }
}

/* Hero (homepage scoreboard) */
.hero{
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px),
    linear-gradient(180deg, var(--pitch) 0%, var(--pitch-dark) 100%);
  padding:40px 24px 32px;
  color:var(--chalk);
}
.eyebrow{
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.2em;
  color:var(--amber);
  text-transform:uppercase;
  margin-bottom:10px;
}
@media (min-width:1024px){ .eyebrow{ font-size:14px; } }
.scoreboard{
  background:var(--ink);
  border:1px solid var(--line);
  border-radius:4px;
  padding:20px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  margin-top:14px;
}
.team-block{ text-align:center; }
.team-block .badge{
  width:52px; height:52px;
  border-radius:50%;
  background:var(--pitch);
  border:2px solid var(--sage);
  margin:0 auto 8px;
  overflow:hidden;
}
.team-block .name{ font-family:var(--font-display); font-size:18px; letter-spacing:0.03em; }
.vs-block{ text-align:center; }
.vs-block .clock{ font-family:var(--font-display); font-size:30px; color:var(--amber); letter-spacing:0.05em; }
.vs-block .sub{ font-family:var(--font-ui); font-size:13px; font-weight:600; color:var(--sage-tint); text-transform:uppercase; letter-spacing:0.1em; margin-top:4px; }
@media (min-width:1024px){ .vs-block .sub{ font-size:14px; } }
.hero-headline{ font-family:var(--font-display); font-size:clamp(28px,5vw,44px); line-height:1.1; margin-top:20px; text-transform:uppercase; max-width:640px; }
.hero-sub{ color:var(--sage-tint); font-size:15px; margin-top:10px; font-family:var(--font-ui); }
@media (min-width:1024px){ .hero-sub{ font-size:16px; } }
.hero-cta-row{ display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.hero-cta-row a{
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  padding:11px 18px;
  text-decoration:none;
  border-radius:2px;
}
@media (min-width:1024px){ .hero-cta-row a{ font-size:14px; } }
.hero-cta-row a.primary{ background:var(--amber); color:var(--ink); }
.hero-cta-row a.secondary{ background:transparent; color:var(--chalk); border:1px solid rgba(255,255,255,0.3); }

/* Consolidated mobile overrides */
@media (max-width: 820px) {
  .hero{ padding:28px 20px 24px; }
  section{ padding:32px 20px; }
  .section-head{ margin-bottom:18px; }
  .news-card h3{ font-size:17px; }

  .scoreboard{ text-align:center; padding:16px 8px; gap:8px; }
  .team-block .badge{ width:42px; height:42px; margin-bottom:4px; }
  .team-block .name{ font-size:15px; }
  .vs-block .clock{ font-size:24px; }

  .news-grid, .news-list{ grid-template-columns:1fr; }
  .squad-grid{ grid-template-columns:repeat(3,1fr); }
  .roster-grid{ grid-template-columns:repeat(2,1fr); }
  .staff-grid{ grid-template-columns:repeat(2,1fr); }
  .shop-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .video-grid{ grid-template-columns:1fr; }
}

@media (max-width: 480px) {
  .squad-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ---- Page hero (interior pages) ---- */
.page-hero{
  /* Title band of the inner pages: the squad lined up on the pitch, under a club-green shade
     (darker on the left, where the text sits) so the title and intro stay readable */
  /* --page-hero-img / --page-hero-pos: a banner chosen in the admin (Hero pictures & page banners)
     replaces the built-in photo; base.html sets them only when one is chosen */
  background:
    linear-gradient(90deg, rgba(1,61,28,0.92) 0%, rgba(1,61,28,0.80) 55%, rgba(1,61,28,0.62) 100%),
    var(--page-hero-best, var(--page-hero-img, url("img/page-hero-squad.c119421d842c.jpg"))) var(--page-hero-pos, center 40%) / cover no-repeat,   /* heads and shoulders in view */
    var(--pitch-dark);
  padding:36px 24px;
  color:var(--chalk);
}
.page-hero .eyebrow{ margin-bottom:8px; }
.page-hero--community{
  /* Community page: the orphanage visit group photo, same club-green shade as the other pages */
  background:
    linear-gradient(90deg, rgba(1,61,28,0.92) 0%, rgba(1,61,28,0.78) 55%, rgba(1,61,28,0.55) 100%),
    var(--community-hero-best, var(--community-hero-img, url("img/community-orphanage-visit.d4532cfe2cb3.jpg"))) var(--community-hero-pos, center 38%) / cover no-repeat,
    var(--pitch-dark);
}
.page-hero h1{ font-family:var(--font-display); font-size:clamp(30px,4.4vw,44px); letter-spacing:0.02em; text-transform:uppercase; }
.page-hero p{ color:var(--sage-tint); margin-top:8px; font-size:15px; font-family:var(--font-ui); }
@media (min-width:1024px){ .page-hero p{ font-size:16px; } }

/* ---- Quick nav strip ---- */
.quick-strip{ display:flex; overflow-x:auto; border-bottom:1px solid rgba(0,0,0,0.08); background:var(--chalk); }
.quick-strip a{
  flex:0 0 auto;
  padding:14px 20px;
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--ink);
  text-decoration:none;
  border-right:1px solid rgba(0,0,0,0.06);
}
@media (min-width:1024px){ .quick-strip a{ font-size:14px; } }
.quick-strip a:hover, .quick-strip a.active{ background:var(--pitch); color:var(--chalk); }

/* Content sections */
section{ padding:44px 24px; max-width:1100px; margin:0 auto; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:22px; border-bottom:2px solid var(--ink); padding-bottom:10px;
  flex-wrap:wrap; gap:12px;
}
.section-head h2{ font-family:var(--font-display); font-size:28px; letter-spacing:0.02em; text-transform:uppercase; }
.section-head .tag{ font-family:var(--font-ui); font-size:13px; font-weight:700; color:var(--sage-deep); letter-spacing:0.1em; text-decoration:none; text-transform:uppercase; display:inline-flex; align-items:center; min-height:var(--tap); }
@media (min-width:1024px){ .section-head .tag{ font-size:14px; } }
.section-head .tag:hover{ text-decoration:underline; }
.lede{ font-size:17px; color:#333; margin-bottom:8px; font-family:var(--font-ui); }
@media (min-width:1024px){ .lede{ font-size:18px; } }

/* ---- News ---- */
/* Equal columns, so every photo in a row has the same size (all photos are 16:10) */
.news-grid, .news-list{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.news-card{ display:flex; flex-direction:column; }
/* Smaller screens: the rule above comes after the old mobile override, so it must be repeated here.
   Tablets: two articles per row. Phones: one per row; long headlines stop after three lines (full
   headline on the article page). */
@media (max-width:1023px){ .news-grid, .news-list{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){
  .news-grid, .news-list{ grid-template-columns:minmax(0,1fr); gap:16px; }
  .news-card h3{ font-size:18px; line-height:1.3; overflow-wrap:anywhere;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
}
.news-card .img{ aspect-ratio:16/10; background:var(--pitch); overflow:hidden; }
.news-card .img img{ width:100%; height:100%; object-fit:cover; }
.news-card.feature .img{ aspect-ratio:16/9; }
.news-card .body{ padding:14px; display:flex; flex-direction:column; flex-grow:1; }
.news-card .cat{ font-family:var(--font-ui); font-size:13px; font-weight:700; color:var(--crest-red); letter-spacing:0.1em; text-transform:uppercase; }
@media (min-width:1024px){ .news-card .cat{ font-size:14px; } }
.news-card h3{ font-family:var(--font-ui); font-weight:700; font-size:17px; margin-top:6px; line-height:1.3; }
@media (min-width:1024px){ .news-card h3{ font-size:18px; } }
.news-card.feature h3{ font-size:20px; }
.news-card .meta{ font-size:13px; color:var(--ink-soft); margin-top:auto; padding-top:8px; font-family:var(--font-ui); }
@media (min-width:1024px){ .news-card .meta{ font-size:14px; } }
.filter-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.filter-row a{
  font-family:var(--font-ui); font-size:13px; text-transform:uppercase; letter-spacing:0.06em;
  padding:8px 14px; border:1px solid rgba(0,0,0,0.15); text-decoration:none; color:var(--ink); border-radius:22px;
  display:inline-flex; align-items:center; min-height:var(--tap);
}
@media (min-width:1024px){ .filter-row a{ font-size:14px; } }
.filter-row a.active, .filter-row a:hover{ background:var(--pitch); color:var(--chalk); border-color:var(--pitch); }
.pagination{ display:flex; justify-content:center; gap:8px; margin-top:32px; font-family:var(--font-ui); font-size:13px; }
@media (min-width:1024px){ .pagination{ font-size:14px; } }
.pagination a{ min-width:var(--tap); min-height:var(--tap); padding:0 6px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(0,0,0,0.15); text-decoration:none; color:var(--ink); }
.pagination a.active{ background:var(--pitch); color:var(--chalk); border-color:var(--pitch); }

/* ---- League table ---- */
.table-wrap{ background:var(--ink); color:var(--chalk); padding:0; }
.table-wrap .section-head{ border-bottom:2px solid rgba(255,255,255,0.15); }
.table-wrap .section-head h2{ color:var(--chalk); }
.table-wrap.light{ background:#fff; color:var(--ink); }
.table-wrap.light .section-head{ border-bottom:2px solid var(--ink); }
.table-wrap.light .section-head h2{ color:var(--ink); }
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table{ width:100%; border-collapse:collapse; font-family:var(--font-ui); font-size:14px; }
@media (min-width:1024px){ table{ font-size:17px; } }
th{ text-align:left; padding:10px 8px; color:var(--sage); text-transform:uppercase; font-size:14px; letter-spacing:0.08em; border-bottom:1px solid rgba(255,255,255,0.15); white-space:nowrap; }
@media (min-width:1024px){ th{ font-size:15px; } }
td{ padding:10px 8px; border-bottom:1px solid rgba(255,255,255,0.06); white-space:nowrap; }
tr.highlight td{ background:rgba(1,97,45,0.85); color:var(--chalk); font-weight:700; }

/* ---- Squad grid (homepage teaser) ---- */
.squad-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.player{ background:var(--pitch); aspect-ratio:3/4; border-radius:2px; display:flex; align-items:flex-end; padding:10px; color:var(--chalk); position:relative; overflow:hidden; }
.player .num{ font-family:var(--font-display); font-size:20px; color:var(--amber); position:relative; z-index:1; }
.player img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* ---- Full roster grid ---- */
.roster-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
/* .roster-card base styling now comes from .card */
.roster-card .photo{ aspect-ratio:3/4; background:var(--pitch); position:relative; overflow:hidden; }
.roster-card .photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.roster-card .photo .num{ position:absolute; top:8px; right:8px; font-family:var(--font-display); font-size:26px; line-height:1; color:var(--amber); z-index:1; background:rgba(1,61,28,0.88); padding:3px 7px 1px; border-radius:4px; box-shadow:0 2px 6px rgba(0,0,0,0.25); }   /* squad number: top right, on a club-green badge so it reads on any photo */
.roster-card .info{ padding:12px; }
.roster-card .pos{ font-family:var(--font-ui); font-size:13px; font-weight:700; color:var(--crest-red); text-transform:uppercase; letter-spacing:0.08em; }
@media (min-width:1024px){ .roster-card .pos{ font-size:14px; } }
.roster-card h4, .roster-card .roster-name{ font-family:var(--font-ui); font-weight:700; font-size:15px; margin-top:4px; text-transform:uppercase; }
@media (min-width:1024px){ .roster-card h4, .roster-card .roster-name{ font-size:16px; } }
.roster-card .roster-meta{ margin-top:4px; font-family:var(--font-ui); font-size:13px; color:var(--ink-soft); }
@media (min-width:1024px){ .roster-card .roster-meta{ font-size:14px; } }

/* ---- Coaching staff ---- */
.staff-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.staff-card{ text-align:center; }
.staff-card .photo{ aspect-ratio:1/1; background:var(--pitch); border-radius:50%; margin-bottom:10px; overflow:hidden; }
.staff-card .photo img{ width:100%; height:100%; object-fit:cover; }
.staff-card h4{ font-family:var(--font-ui); font-weight:700; font-size:15px; }
@media (min-width:1024px){ .staff-card h4{ font-size:16px; } }
.staff-card .role{ font-family:var(--font-ui); font-size:13px; color:var(--sage); text-transform:uppercase; margin-top:2px; }
@media (min-width:1024px){ .staff-card .role{ font-size:14px; } }

/* ---- Fixtures / Results list ---- */
.fixture-list{ display:flex; flex-direction:column; gap:1px; background:rgba(0,0,0,0.08); }
.fixture-row{
  background:#fff; color:var(--ink); display:grid;
  grid-template-columns:90px 1fr auto 1fr 150px; align-items:center; gap:12px; padding:16px; font-size:15px;
}
@media (min-width:1024px){ .fixture-row{ font-size:16px; } }
.fixture-row .date{ font-family:var(--font-ui); font-size:13px; color:var(--ink-soft); }
@media (min-width:1024px){ .fixture-row .date{ font-size:14px; } }
.fixture-row .team{ font-family:var(--font-ui); font-weight:700; font-size:15px; text-align:right; text-transform:uppercase; }
@media (min-width:1024px){ .fixture-row .team{ font-size:16px; } }
.fixture-row .team.away-side{ text-align:left; }
.fixture-row .score{
  font-family:var(--font-display); background:var(--ink); color:var(--amber);
  padding:6px 12px; border-radius:2px; text-align:center; min-width:64px; font-size:17px;
}
@media (min-width:1024px){ .fixture-row .score{ font-size:18px; } }
.fixture-row .venue{ font-family:var(--font-ui); font-size:13px; color:var(--ink-soft); text-align:right; white-space:normal; }
@media (min-width:1024px){ .fixture-row .venue{ font-size:14px; } }
.fixture-row.result .score{ background:var(--pitch); }

@media (max-width: 820px) {
  .fixture-row {
    grid-template-columns: 1fr auto 1fr; 
    gap: 8px 10px; 
    padding: 16px 12px;
  }
  .fixture-row .date {
    grid-column: 1 / -1; 
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 6px;
    margin-bottom: 4px;
  }
  .fixture-row .team { text-align: right; font-size:13px; }
  .fixture-row .team.away-side { text-align: left; }
  .fixture-row .venue {
    grid-column: 1 / -1;
    text-align: center;
    white-space: normal; 
    margin-top: 4px;
  }
}

/* ---- Contact page ---- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.contact-info-item{ margin-bottom:22px; }
.contact-info-item .label{ font-family:var(--font-ui); font-size:13px; letter-spacing:0.1em; color:var(--crest-red); text-transform:uppercase; }
@media (min-width:1024px){ .contact-info-item .label{ font-size:14px; } }
.contact-info-item p{ font-size:17px; margin-top:4px; font-family:var(--font-ui); }
@media (min-width:1024px){ .contact-info-item p{ font-size:18px; } }
.form-group{ margin-bottom:16px; }
.form-group label{ display:block; font-family:var(--font-ui); font-size:13px; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:6px; color:#555; }
@media (min-width:1024px){ .form-group label{ font-size:14px; } }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding:11px; border:1px solid rgba(0,0,0,0.15); font-family:var(--font-ui); font-size:15px; background:#fff;
}
@media (min-width:1024px){ .form-group input, .form-group textarea, .form-group select{ font-size:16px; } }
.form-group textarea{ min-height:120px; resize:vertical; }
.submit-btn{
  background:var(--pitch); color:var(--chalk); border:none; padding:13px 28px;
  font-weight:700; text-transform:uppercase; font-size:15px; letter-spacing:0.05em; cursor:pointer;
  font-family:var(--font-ui);
}
@media (min-width:1024px){ .submit-btn{ font-size:16px; } }
.form-success{ background:rgba(1,97,45,0.1); border:1px solid var(--pitch); color:var(--pitch); padding:14px 16px; margin-bottom:20px; font-size:15px; font-family:var(--font-ui); }
@media (min-width:1024px){ .form-success{ font-size:16px; } }
.form-errors{ background:rgba(189,138,13,0.1); border:1px solid var(--crest-red); color:var(--ink); padding:12px 16px; margin-bottom:16px; font-size:15px; font-family:var(--font-ui); }
@media (min-width:1024px){ .form-errors{ font-size:16px; } }

/* ---- Club page: About / Values / Board / History ---- */
.two-col{ display:grid; grid-template-columns:1.2fr 1fr; gap:36px; align-items:start; }
.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:20px; }
.stat-box{ background:var(--ink); color:var(--chalk); padding:16px; text-align:center; }
.stat-box .num{ font-family:var(--font-display); font-size:30px; color:var(--amber); }
.stat-box .label{ font-family:var(--font-ui); font-size:13px; letter-spacing:0.08em; color:var(--sage); text-transform:uppercase; margin-top:4px; }
@media (min-width:1024px){ .stat-box .label{ font-size:14px; } }
.values-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.value-card{ background:var(--ink); color:var(--chalk); padding:18px 14px; text-align:center; }
.value-card h4{ font-family:var(--font-ui); font-weight:700; font-size:15px; color:var(--amber); margin-bottom:8px; }
@media (min-width:1024px){ .value-card h4{ font-size:16px; } }
.value-card p{ font-size:13px; color:var(--sage); line-height:1.5; font-family:var(--font-ui); }
@media (min-width:1024px){ .value-card p{ font-size:14px; } }
.board-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.board-card{ padding:18px; }
.board-card .photo{ width:64px; height:64px; border-radius:50%; background:var(--pitch); margin-bottom:12px; overflow:hidden; }
.board-card .photo img{ width:100%; height:100%; object-fit:cover; }
/* No photo yet: the person's initials on the club-green circle */
.staff-card .photo, .board-card .photo{ display:flex; align-items:center; justify-content:center; position:relative; }
.staff-card .photo img, .board-card .photo img{ position:absolute; inset:0; }
.person-initials{
  font-family:var(--font-display); color:var(--amber); letter-spacing:0.04em; line-height:1;
}
.staff-card .person-initials{ font-size:clamp(36px, 9vw, 64px); }
.board-card .person-initials{ font-size:26px; }
.board-card h4{ font-family:var(--font-ui); font-weight:700; font-size:15px; }
@media (min-width:1024px){ .board-card h4{ font-size:16px; } }
.board-card .role{ font-family:var(--font-ui); font-size:13px; color:var(--crest-red); text-transform:uppercase; letter-spacing:0.06em; margin:4px 0 8px; }
@media (min-width:1024px){ .board-card .role{ font-size:14px; } }
.board-card p{ font-size:15px; color:#555; font-family:var(--font-ui); }
@media (min-width:1024px){ .board-card p{ font-size:16px; } }
.timeline{ border-left:2px solid var(--pitch); padding-left:24px; }
.timeline-item{ margin-bottom:28px; position:relative; }
.timeline-item::before{ content:''; position:absolute; left:-30px; top:4px; width:12px; height:12px; border-radius:50%; background:var(--amber); border:2px solid var(--pitch); }
.timeline-item .year{ font-family:var(--font-display); font-size:17px; color:var(--crest-red); }
@media (min-width:1024px){ .timeline-item .year{ font-size:18px; } }
.timeline-item h4{ font-family:var(--font-ui); font-weight:700; font-size:17px; margin-top:2px; }
@media (min-width:1024px){ .timeline-item h4{ font-size:18px; } }
.timeline-item p{ font-size:15px; color:#555; margin-top:4px; font-family:var(--font-ui); }
@media (min-width:1024px){ .timeline-item p{ font-size:16px; } }

/* ---- Sponsorship packages page ---- */
.sponsor-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.sponsor-card{ padding:22px; }
.sponsor-card h4{ font-family:var(--font-ui); font-weight:700; font-size:17px; color:var(--pitch); }
@media (min-width:1024px){ .sponsor-card h4{ font-size:18px; } }
.sponsor-card .price{ font-family:var(--font-ui); font-size:13px; color:var(--crest-red); margin:8px 0 12px; text-transform:uppercase; letter-spacing:0.04em; }
@media (min-width:1024px){ .sponsor-card .price{ font-size:14px; } }
.sponsor-card p{ font-size:15px; color:#555; line-height:1.6; font-family:var(--font-ui); }
@media (min-width:1024px){ .sponsor-card p{ font-size:16px; } }
.sponsor-cta{ text-align:center; padding:40px 24px; background:var(--pitch); color:var(--chalk); }
.sponsor-cta h2{ font-family:var(--font-display); font-size:30px; margin-bottom:10px; }
.sponsor-cta p{ color:var(--sage); max-width:500px; margin:0 auto 20px; font-family:var(--font-ui); }

/* ---- Community: Membership tiles & tier cards ---- */
.membership-tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.membership-tile{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--pitch); text-decoration:none; display:block; }
.membership-tile img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.membership-tile .label{
  position:absolute; bottom:0; left:0; background:var(--amber); color:var(--ink); font-family:var(--font-ui); font-weight:700; font-size:15px;
  padding:12px 16px; clip-path:polygon(0 0, 85% 0, 100% 100%, 0% 100%); padding-right:40px;
}
@media (min-width:1024px){ .membership-tile .label{ font-size:16px; } }
.membership-tile:hover .label{ background:var(--pitch); color:var(--chalk); }
.membership-tile.featured .label::after{ content:' \2605'; }
.tier-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tier-card{ padding:24px; text-align:center; }
.tier-card.featured{ border:2px solid var(--amber); position:relative; }
.tier-card.featured::before{
  content:'MOST POPULAR'; position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background:var(--amber); color:var(--ink); font-family:var(--font-ui); font-size:13px; letter-spacing:0.08em; padding:3px 10px;
}
@media (min-width:1024px){ .tier-card.featured::before{ font-size:14px; } }
.tier-card h4{ font-family:var(--font-ui); font-weight:700; font-size:18px; text-transform:uppercase; }
.tier-card .price{ font-family:var(--font-display); font-size:36px; color:var(--pitch); margin:10px 0; }
.tier-card .price span{ font-family:var(--font-ui); font-size:13px; color:var(--ink-soft); }
@media (min-width:1024px){ .tier-card .price span{ font-size:14px; } }
.tier-card ul{ list-style:none; text-align:left; margin:16px 0; font-size:15px; font-family:var(--font-ui); }
@media (min-width:1024px){ .tier-card ul{ font-size:16px; } }
.tier-card li{ padding:6px 0; border-bottom:1px solid rgba(0,0,0,0.06); }
.tier-card .btn{
  display:block; background:var(--pitch); color:var(--chalk); text-decoration:none; padding:10px;
  font-family:var(--font-ui); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:0.05em; margin-top:12px;
}
@media (min-width:1024px){ .tier-card .btn{ font-size:14px; } }
.tier-card.featured .btn{ background:var(--amber); color:var(--ink); }
.event-list{ display:flex; flex-direction:column; gap:12px; }
.event-row{ display:grid; grid-template-columns:70px 1fr auto; gap:16px; align-items:center; padding:14px; }
.event-row .date-box{ background:var(--pitch); color:var(--chalk); text-align:center; padding:8px 4px; }
.event-row .date-box .d{ font-family:var(--font-display); font-size:24px; }
.event-row .date-box .m{ font-family:var(--font-ui); font-size:13px; letter-spacing:0.1em; }
@media (min-width:1024px){ .event-row .date-box .m{ font-size:14px; } }
.event-row h4{ font-family:var(--font-ui); font-weight:700; font-size:15px; }
@media (min-width:1024px){ .event-row h4{ font-size:16px; } }
.event-row .meta{ font-family:var(--font-ui); font-size:13px; color:var(--ink-soft); margin-top:2px; }
@media (min-width:1024px){ .event-row .meta{ font-size:14px; } }

.membership-detail-hero{ aspect-ratio:21/9; overflow:hidden; }
.membership-detail-hero img{ width:100%; height:100%; object-fit:cover; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-cta { padding: 32px 16px; }
  .membership-tiles { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; gap: 24px; }
  .event-row { 
    grid-template-columns: 1fr; 
    text-align: center; 
    justify-items: center; 
    gap: 12px; 
  }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .membership-tiles { grid-template-columns: 1fr; }
}

/* ---- Shop ---- */
.shop-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
/* .product-card base styling now comes from .card */
.product-card .img{ aspect-ratio:1/1; background:var(--pitch); position:relative; overflow:hidden; }
.product-card .img img{ width:100%; height:100%; object-fit:cover; }
.product-card .body{ padding:14px; }
.product-card h4{ font-family:var(--font-ui); font-weight:700; font-size:17px; }
@media (min-width:1024px){ .product-card h4{ font-size:18px; } }
.product-card .price{ font-family:var(--font-ui); color:var(--crest-red); margin-top:6px; font-size:15px; }
@media (min-width:1024px){ .product-card .price{ font-size:16px; } }
.product-card.sold-out{ opacity:0.5; }

/* ---- Media: Gallery & Videos ---- */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
/* Every gallery tile the same size (4:3), whatever the photo, so the rows stay even */
.gallery-item{ aspect-ratio:4/3; background:var(--pitch); position:relative; overflow:hidden; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; }
.video-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

/* Phone layouts for the card grids. These must come after the base grid rules above:
   the copies in the "Consolidated mobile overrides" block earlier in this file are
   overridden by the base rules. minmax(0,1fr) keeps columns equal whatever the text. */
@media (max-width: 820px){
  .squad-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .roster-grid, .staff-grid, .shop-grid, .gallery-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px){
  .squad-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
/* .video-card base styling now comes from .card */
.video-card .thumb{ aspect-ratio:16/9; background:var(--ink); position:relative; }
.video-card .thumb iframe{ width:100%; height:100%; border:none; display:block; }
.video-card .body{ padding:12px; }
.video-card h4{ font-family:var(--font-ui); font-weight:700; font-size:15px; }
@media (min-width:1024px){ .video-card h4{ font-size:16px; } }

/* ---- Footer ---- */
footer{ background:var(--ink); color:var(--chalk); padding:40px 24px 24px; }
.footer-grid{ max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.5fr 1fr 1fr 1.3fr; gap:32px; }
footer h4,
.footer-title{ font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.12em; color:var(--sage); text-transform:uppercase; margin-bottom:14px; }
@media (min-width:1024px){ footer h4,
.footer-title{ font-size:14px; } }
.footer-blurb{ font-size:15px; opacity:0.85; max-width:240px; }
@media (min-width:1024px){ .footer-blurb{ font-size:16px; } }
.footer-brand .footer-crest{ display:block; width:64px; height:64px; margin-bottom:14px; }
/* Set by the script in base.html when an image file cannot be loaded */
img.img-missing{ visibility:hidden; }
.footer-icon{ vertical-align:middle; margin-left:3px; }
footer li a, .footer-bottom a{ display:inline-flex; align-items:center; min-height:var(--tap); }
.newsletter input::placeholder{ color:rgba(255,255,255,0.7); }
.newsletter input, .newsletter button{ min-height:var(--tap); }
footer ul{ list-style:none; }
footer li{ margin-bottom:8px; font-size:15px; font-family:var(--font-ui); }
@media (min-width:1024px){ footer li{ font-size:16px; } }
footer a{ color:var(--chalk); text-decoration:none; opacity:0.85; }
footer a:hover{ opacity:1; color:var(--amber); }
.newsletter input{ width:100%; padding:10px; background:transparent; border:1px solid rgba(255,255,255,0.25); color:var(--chalk); font-size:15px; margin-bottom:8px; font-family:var(--font-ui); }
@media (min-width:1024px){ .newsletter input{ font-size:16px; } }
.newsletter button{ width:100%; padding:10px; background:var(--amber); border:none; font-weight:700; text-transform:uppercase; font-size:13px; letter-spacing:0.06em; cursor:pointer; font-family:var(--font-ui); }
@media (min-width:1024px){ .newsletter button{ font-size:14px; } }
.footer-bottom{
  max-width:1100px; margin:32px auto 0; padding-top:20px; border-top:1px solid rgba(255,255,255,0.1);
  font-family:var(--font-ui); font-size:13px; color:var(--sage); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
}
@media (min-width:1024px){ .footer-bottom{ font-size:14px; } }

@media (max-width: 820px) {
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 32px 24px; 
  }
}

@media (max-width: 480px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 28px; 
  }
  
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
}

/* ---- Partners (above the footer, on the page background: no panel, border or shadow) ----
   The global `section` rule supplies the 1100px container; only the padding is set here. */
.partners{ padding:40px 24px 48px; }
.partners-head{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:4px 16px; margin-bottom:20px;
}
.partners-title{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:400; font-size:34px; line-height:1;
  letter-spacing:0.02em; text-transform:uppercase; color:var(--ink);
}
.partners-all{
  display:inline-flex; align-items:center; min-height:var(--tap);
  font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; text-decoration:none; color:var(--sage-deep);
}
@media (min-width:1024px){ .partners-all{ font-size:14px; } }
.partners-all:hover{ text-decoration:underline; }
.partner-logos{ width:100%; }
.partner-track{
  --partner-gap:32px;
  --partner-h:88px;
  list-style:none; display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-evenly; gap:20px var(--partner-gap);
}
.partner-item{ flex:none; display:flex; align-items:center; justify-content:center; height:var(--partner-h); }
.partner-item a{ display:flex; align-items:center; height:100%; text-decoration:none; }
/* Natural colours, never cropped or stretched: fixed box height, width follows the logo up to a cap */
.partner-item img{ height:100%; width:auto; max-width:190px; object-fit:contain; }
@media (prefers-reduced-motion: no-preference){
  .partner-item a{ transition:transform var(--ease-card); }
  @media (hover:hover){ .partner-item a:hover{ transform:translateY(-2px); } }
  .partner-item a:focus-visible{ transform:translateY(-2px); }
}
/* Overflow only (class added by JS, never under reduced motion): continuous marquee.
   The track holds the logos twice, so -50% loops seamlessly (the padding equals the gap). */
.partner-logos.is-marquee{ overflow:hidden; padding:6px 0; }
.partner-logos.is-marquee .partner-track{
  flex-wrap:nowrap;
  justify-content:flex-start;
  width:max-content;
  padding-right:var(--partner-gap);
  animation:partner-scroll 30s linear infinite;
}
.partner-logos.is-marquee:hover .partner-track,
.partner-logos.is-marquee:focus-within .partner-track{ animation-play-state:paused; }
@keyframes partner-scroll{ to{ transform:translateX(-50%); } }
@media (max-width:1023px){
  .partner-track{ --partner-h:64px; }
}
@media (max-width:599px){
  .partners{ padding:32px 20px 40px; }
  .partners-title{ font-size:30px; }
  .partner-track{ --partner-h:52px; --partner-gap:24px; }
}

.cta-sponsor{
    display:inline-block;
    background:var(--pitch);
    color:var(--amber);  
    text-decoration:none;
    text-transform:uppercase;
    font-family:var(--font-ui);
    font-size:13px;
    font-weight:700;
    letter-spacing:.18em;
    padding:9px 35px;
    border:1px solid var(--pitch);
    transition:all .25s ease;
}
@media (min-width:1024px){ .cta-sponsor{ font-size:14px; } }

.cta-sponsor:hover{
    background:#fff; 
    color:var(--pitch);  
    border-color:var(--pitch);
}

/* ---- Player Profile page ---- */
.player-profile-hero{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:32px;
  padding:40px 24px;
  max-width:1100px;
  margin:0 auto;
}
.player-profile-photo{
  aspect-ratio:3/4;
  background:var(--pitch);
  border-radius:4px;
  overflow:hidden;
  position:relative;
}
.player-profile-photo img{ width:100%; height:100%; object-fit:cover; }
.player-profile-photo .num{
  position:absolute; bottom:12px; left:12px;
  font-family:var(--font-display);
  font-size:40px;
  color:var(--amber);
}
.player-profile-info .pos{
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:700;
  color:var(--crest-red);
  text-transform:uppercase;
  letter-spacing:0.08em;
}
@media (min-width:1024px){ .player-profile-info .pos{ font-size:14px; } }
.player-profile-info h1{
  font-family:var(--font-display);
  font-size:clamp(32px,5vw,52px);
  text-transform:uppercase;
  margin-top:6px;
}
.player-profile-facts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:24px;
}
.player-profile-facts .fact{ background:var(--ink); color:var(--chalk); padding:14px; text-align:center; }
.player-profile-facts .fact .val{ font-family:var(--font-display); font-size:22px; color:var(--amber); }
.player-profile-facts .fact .lbl{ font-family:var(--font-ui); font-size:13px; letter-spacing:0.08em; color:var(--sage); text-transform:uppercase; margin-top:4px; }
@media (min-width:1024px){ .player-profile-facts .fact .lbl{ font-size:14px; } }
.player-bio{ font-family:var(--font-ui); font-size:17px; line-height:1.7; margin-top:24px; color:#333; }
@media (min-width:1024px){ .player-bio{ font-size:18px; } }

.career-list{ list-style:none; }
.career-list li{ padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.08); font-family:var(--font-ui); font-size:15px; }
@media (min-width:1024px){ .career-list li{ font-size:16px; } }

@media(max-width:768px){
  .player-profile-hero{ grid-template-columns:1fr; padding:28px 20px; }
  .player-profile-photo{ max-width:240px; margin:0 auto; }
  .player-profile-facts{ grid-template-columns:repeat(2,1fr); }
}


/* ---- Product Detail page ---- */
.product-detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  padding:40px 24px;
  max-width:1100px;
  margin:0 auto;
}
.product-detail-gallery .main-img{
  aspect-ratio:1/1;
  background:var(--pitch);
  overflow:hidden;
  margin-bottom:10px;
}
.product-detail-gallery .main-img img{ width:100%; height:100%; object-fit:cover; }
.product-detail-thumbs{ display:flex; gap:8px; flex-wrap:wrap; }
.product-detail-thumbs img{ width:64px; height:64px; object-fit:cover; border:1px solid rgba(0,0,0,0.1); }
.product-detail-info h1{ font-family:var(--font-display); font-size:clamp(28px,4vw,40px); text-transform:uppercase; }
.product-detail-info .price{ font-family:var(--font-ui); font-size:18px; color:var(--crest-red); margin-top:8px; }
.product-detail-info .desc{ font-family:var(--font-ui); font-size:15px; line-height:1.7; color:#333; margin-top:16px; }
@media (min-width:1024px){ .product-detail-info .desc{ font-size:16px; } }
.product-detail-specs{ list-style:none; margin-top:16px; }
.product-detail-specs li{ font-family:var(--font-ui); font-size:15px; padding:6px 0; border-bottom:1px solid rgba(0,0,0,0.06); }
@media (min-width:1024px){ .product-detail-specs li{ font-size:16px; } }
.enquiry-form{ margin-top:28px; padding-top:24px; border-top:2px solid var(--ink); }
.enquiry-form h2,
.enquiry-form h3{ font-family:var(--font-display); font-size:22px; text-transform:uppercase; margin-bottom:14px; }

@media(max-width:768px){
  .product-detail{ grid-template-columns:1fr; padding:28px 20px; }
}


/* 1. The hidden fullscreen overlay */
.css-lightbox {
  display: none; /* This ensures they are completely hidden on load */
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
}
/* 2. When targeted by the URL, show it */
.css-lightbox:target {
  display: block; 
}

/* 3. The invisible background link to close on click */
.lightbox-close-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  cursor: zoom-out;
  display: block;
  z-index: 1;
}

/* 4. Dedicated close button (Great for mobile!) */
.lightbox-close-btn {
  position: fixed;
  top: 15px; right: 20px;
  color: white;
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: bold;
  z-index: 10;
  line-height: 1;
}

/* 5. The image container */
.lightbox-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; 
  z-index: 2;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* 6. Responsive floating arrows */
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  text-decoration: none;
  font-weight: bold;
  background: rgba(255,255,255,0.1);
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
}

/* Pin arrows to the extreme left and right */
.lightbox-arrow.prev { left: 15px; }
.lightbox-arrow.next { right: 15px; }

/* 7. Mobile Adjustments */
@media (max-width: 768px) {
  .lightbox-arrow {
    font-size: 1.2rem;
    padding: 10px 15px;
  }
  .lightbox-arrow.prev { left: 5px; }
  .lightbox-arrow.next { right: 5px; }
  .lightbox-close-btn { top: 10px; right: 15px; font-size: 2rem; }
}

/* 1. Mobile-First Grid (1 column on phones) */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Desktop Grid (Adapts to 2 or 3 columns automatically) */
@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* 2. Responsive 16:9 Video Container */
.video-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Modern way to lock it to video shape */
  background: #000; /* Keeps a clean black background while iframe loads */
  overflow: hidden;
}
/* 3. Force the iframe to fill the container perfectly */
.video-card .thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ==========================================================================
   Accessibility utilities (global)
   ========================================================================== */
.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%);
  white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:12px; top:-120px; z-index:2000;
  background:var(--amber); color:var(--ink);
  font-family:var(--font-ui); font-weight:700; font-size:15px;
  padding:12px 18px; border-radius:2px; text-decoration:none;
}
@media (min-width:1024px){ .skip-link{ font-size:16px; } }
.skip-link:focus{ top:12px; }
main:focus{ outline:none; }  /* programmatic focus target only */

/* Visible keyboard focus: pitch on light surfaces, amber on dark ones */
:focus-visible{ outline:3px solid var(--pitch); outline-offset:2px; }
header :focus-visible,
footer :focus-visible,
.page-hero :focus-visible,
.hero :focus-visible,
.home-hero :focus-visible,
.table-wrap:not(.light) :focus-visible,
.skip-link:focus-visible,
.mobile-menu-toggle:focus-visible{ outline-color:var(--amber); }
nav a:focus-visible{ outline-offset:-3px; }

/* Honeypot wrapper: off-screen, not display:none (keeps bots filling it) */
.hp-wrap{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

/* Small shared helpers replacing former inline styles */
.caret{ font-size:0.8em; }
footer li{ margin-bottom:0; }
.cta-sponsor{ min-height:var(--tap); display:inline-flex; align-items:center; justify-content:center; font-size:13px; }
@media (min-width:1024px){ .cta-sponsor{ font-size:14px; } }
.form-row-2{ display:grid; grid-template-columns:1fr; gap:0 16px; }
.enquiry-section{ max-width:800px; padding-top:0; }
.back-link{ display:inline-flex; align-items:center; min-height:var(--tap); color:var(--pitch); font-weight:700; text-decoration:none; }
.back-link:hover{ text-decoration:underline; }
@media (min-width:560px){ .form-row-2{ grid-template-columns:1fr 1fr; } }

/* Error pages (404 / 500) */
.error-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.error-btn{
  display:inline-flex; align-items:center; min-height:var(--tap); padding:0 22px;
  border:2px solid var(--pitch); color:var(--pitch); background:transparent;
  font-family:var(--font-ui); font-weight:700; font-size:13px; letter-spacing:0.05em;
  text-transform:uppercase; text-decoration:none; border-radius:2px;
}
@media (min-width:1024px){ .error-btn{ font-size:14px; } }
.error-btn.primary, .error-btn:hover{ background:var(--pitch); color:var(--chalk); }
body.error-page{ background:var(--chalk); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
  .card:hover{ transform:none; }
}


/* ==========================================================================
   Homepage redesign (scoped to .page-home / .home-*)
   Mobile first. Breakpoints: 768px (tablet), 1024px (desktop).
   Interior pages are unaffected: nothing below targets bare elements.
   ========================================================================== */
.page-home .home-wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }
.page-home .home-section{ max-width:none; margin:0; padding:40px 0; }
.page-home .home-section .section-head{ margin-bottom:20px; }

/* ---- Buttons ---- */
.home-btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:var(--tap); padding:0 22px; border-radius:2px;
  font-family:var(--font-ui); font-size:13px; font-weight:700;
  letter-spacing:0.06em; text-transform:uppercase; text-decoration:none;
  border:2px solid transparent; transition:background 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width:1024px){ .home-btn{ font-size:14px; } }
.home-btn-primary{ background:var(--amber); color:var(--ink); }
.home-btn-primary:hover{ background:var(--chalk); }
.home-btn-outline{ background:transparent; color:var(--chalk); border-color:rgba(255,255,255,0.55); }
.home-btn-outline:hover{ background:var(--chalk); color:var(--pitch-dark); border-color:var(--chalk); }

/* ---- Hero ---- */
.home-hero{
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px),
    linear-gradient(180deg, var(--pitch) 0%, var(--pitch-dark) 100%);
  color:var(--chalk);
  padding:32px 0 40px;
}
.home-hero-grid{ display:grid; grid-template-columns:1fr; gap:28px; align-items:center; }
.home-title{
  font-family:var(--font-display); font-weight:400; text-transform:uppercase;
  font-size:clamp(46px, 12vw, 88px); line-height:0.95; letter-spacing:0.01em;
}
.home-motto{
  font-family:var(--font-display); font-size:20px; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--amber); margin-top:10px;
}
.home-hero-about{ color:var(--sage-tint); font-size:17px; max-width:520px; margin-top:14px; }
@media (min-width:1024px){ .home-hero-about{ font-size:18px; } }
.home-cta-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }

/* Next-match card */
.home-next{
  background:var(--ink); border:1px solid var(--line); border-top:4px solid var(--amber);
  border-radius:4px; padding:20px;
}
.home-next-title{
  font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.2em;
  text-transform:uppercase; color:var(--amber); margin-bottom:16px;
}
@media (min-width:1024px){ .home-next-title{ font-size:14px; } }
.home-next-teams{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; }
.home-team-block{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; min-width:0; }
/* Team crests: see .team-crest (shared component, partials/team_crest.html) */
.home-team-name{ font-family:var(--font-display); font-size:18px; letter-spacing:0.03em; text-transform:uppercase; line-height:1.1; overflow-wrap:anywhere; }
.home-next-when{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.home-clock{ font-family:var(--font-display); font-size:34px; line-height:1; color:var(--amber); letter-spacing:0.05em; }
.home-next-sub{ font-size:13px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--sage-tint); margin-top:4px; }
@media (min-width:1024px){ .home-next-sub{ font-size:14px; } }
.home-next-venue{ text-align:center; font-size:15px; color:var(--sage-tint); margin-top:14px; }
@media (min-width:1024px){ .home-next-venue{ font-size:16px; } }
.home-next-link{
  display:inline-flex; align-items:center; min-height:var(--tap); margin-top:10px;
  font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--amber); text-decoration:none;
}
@media (min-width:1024px){ .home-next-link{ font-size:14px; } }
.home-next-link:hover{ text-decoration:underline; }
.home-next-empty{ text-align:center; padding:8px 0; }
.home-next-crest{
  width:64px; height:64px; margin:0 auto 12px; border-radius:50%;
  border:2px solid var(--amber); background:var(--chalk); object-fit:cover;
}
.home-next-empty-title{ font-family:var(--font-display); font-size:26px; letter-spacing:0.03em; text-transform:uppercase; line-height:1.1; }
.home-next-empty-text{ font-size:15px; color:var(--sage-tint); margin-top:6px; }
@media (min-width:1024px){ .home-next-empty-text{ font-size:16px; } }

/* ---- Match centre strip ---- */
.page-home .home-centre{ background:var(--ink); color:var(--chalk); }
.home-centre .section-head{ border-bottom-color:rgba(255,255,255,0.18); }
.home-centre .section-head h2{ color:var(--chalk); }
.home-centre .section-head .tag{ color:var(--amber); }
.home-centre-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
.home-panel{ background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:4px; padding:18px; min-width:0; }
.home-panel h3{ font-family:var(--font-display); font-weight:400; font-size:22px; letter-spacing:0.04em; text-transform:uppercase; margin-bottom:10px; }
.home-match-list{ list-style:none; }
.home-match-list li{ padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.1); }
.home-match-date{ display:block; font-size:13px; color:var(--sage-tint); margin-bottom:6px; }
@media (min-width:1024px){ .home-match-date{ font-size:14px; } }
.home-match-line{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; }
.home-match-team{ font-size:15px; font-weight:700; text-transform:uppercase; overflow-wrap:anywhere; line-height:1.2; }
@media (min-width:1024px){ .home-match-team{ font-size:16px; } }
.home-match-team:first-child{ text-align:right; }
.home-match-score{ font-family:var(--font-display); font-size:20px; background:var(--pitch); color:var(--chalk); padding:2px 10px; border-radius:2px; white-space:nowrap; }
.home-match-vs{ font-size:13px; color:var(--sage-tint); text-transform:uppercase; }
@media (min-width:1024px){ .home-match-vs{ font-size:14px; } }
.home-empty-dark{ font-size:15px; color:var(--sage-tint); padding:8px 0; }
@media (min-width:1024px){ .home-empty-dark{ font-size:16px; } }
.home-panel-link{
  display:inline-flex; align-items:center; min-height:var(--tap); margin-top:6px;
  font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--amber); text-decoration:none;
}
@media (min-width:1024px){ .home-panel-link{ font-size:14px; } }
.home-panel-link:hover{ text-decoration:underline; }
.home-mini-table{ font-size:16px; }
@media (min-width:1024px){ .home-mini-table{ font-size:18px; } }
.home-mini-table th, .home-mini-table td{ padding:10px 8px; }
.home-mini-table td:nth-child(n+3), .home-mini-table th:nth-child(n+3){ text-align:center; }

/* ---- News ---- */
.home-news-grid{ display:grid; grid-template-columns:1fr; gap:18px; }
.home-news-card{ text-decoration:none; color:inherit; }
.home-news-card:hover h3{ color:var(--pitch); }
.home-news-card .img{ aspect-ratio:16/9; }
.home-news-card .meta{ display:block; }
.home-news-summary{
  font-size:15px; color:var(--ink-soft); margin-top:8px; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
@media (min-width:1024px){ .home-news-summary{ font-size:16px; } }
.home-empty{
  padding:24px; border:1px dashed rgba(0,0,0,0.3); border-radius:4px;
  color:var(--ink-soft); background:var(--chalk); font-size:17px;
}
@media (min-width:1024px){ .home-empty{ font-size:18px; } }

/* ---- Squad ---- */
.page-home .home-squad{ background:var(--mist); }
.home-squad-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:14px; }
.home-player{
  display:block; background:var(--chalk); color:var(--ink); text-decoration:none;
  border:1px solid rgba(0,0,0,0.08); border-radius:4px; overflow:hidden;
}
.home-player-photo{ display:block; position:relative; aspect-ratio:3/4; background:var(--pitch); overflow:hidden; }
.home-player-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.home-player-photo::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65) 100%); }
.home-player-num{ position:absolute; z-index:1; top:8px; right:8px; font-family:var(--font-display); font-size:26px; line-height:1; color:var(--amber); background:rgba(1,61,28,0.88); padding:3px 7px 1px; border-radius:4px; box-shadow:0 2px 6px rgba(0,0,0,0.25); }   /* top right, on a badge */
.home-player-info{ display:block; padding:10px 12px 12px; }
.home-player-pos{ display:block; font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--bronze-deep); }
@media (min-width:1024px){ .home-player-pos{ font-size:14px; } }
.home-player-name{ display:block; margin-top:2px; font-size:17px; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
@media (min-width:1024px){ .home-player-name{ font-size:18px; } }
.home-player-meta{ display:block; margin-top:4px; font-size:13px; color:var(--ink-soft); }
@media (min-width:1024px){ .home-player-meta{ font-size:14px; } }

/* ---- Gallery / video teaser ---- */
.home-media-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
.home-video{
  position:relative; display:flex; flex-direction:column; justify-content:flex-end;
  min-height:240px; padding:20px; border-radius:4px; overflow:hidden;
  background:linear-gradient(160deg, var(--pitch) 0%, var(--pitch-dark) 100%);
  color:var(--chalk); text-decoration:none;
}
.home-video-play{ position:absolute; top:42%; left:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%; background:var(--amber); }
.home-video-play::after{ content:''; position:absolute; left:26px; top:19px; border-left:20px solid var(--ink); border-top:13px solid transparent; border-bottom:13px solid transparent; }
.home-video-label{ font-size:13px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--amber); }
@media (min-width:1024px){ .home-video-label{ font-size:14px; } }
.home-video h3{ font-family:var(--font-display); font-weight:400; font-size:26px; line-height:1.1; letter-spacing:0.03em; text-transform:uppercase; margin-top:4px; overflow-wrap:anywhere; }

/* ---- Membership / shop band ---- */
.page-home .home-join{ background:var(--pitch-dark); color:var(--chalk); }
.home-join-title{ font-family:var(--font-display); font-weight:400; font-size:34px; letter-spacing:0.03em; text-transform:uppercase; margin-bottom:20px; }
.home-join-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
.home-join-panel{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; background:rgba(255,255,255,0.06); border:1px solid var(--line); border-radius:4px; padding:22px; }
.home-join-panel h3{ font-family:var(--font-display); font-weight:400; font-size:26px; letter-spacing:0.04em; text-transform:uppercase; color:var(--amber); }
.home-join-panel p{ color:var(--sage-tint); font-size:17px; }
@media (min-width:1024px){ .home-join-panel p{ font-size:18px; } }
.home-join-list{ list-style:none; width:100%; }
.home-join-list a{
  display:flex; align-items:center; gap:12px; min-height:var(--tap); padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.12); color:var(--chalk); text-decoration:none;
}
.home-join-list a:hover .home-join-name{ text-decoration:underline; }
.home-join-name{ flex:1; font-size:15px; font-weight:700; min-width:0; overflow-wrap:anywhere; }
@media (min-width:1024px){ .home-join-name{ font-size:16px; } }
.home-join-price{ font-family:var(--font-display); font-size:18px; letter-spacing:0.04em; color:var(--amber); text-align:right; }
.home-join-flag{ display:inline-block; margin-left:6px; padding:2px 8px; background:var(--amber); color:var(--ink); font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; vertical-align:middle; }
@media (min-width:1024px){ .home-join-flag{ font-size:14px; } }
.home-join-thumb{ display:block; width:48px; height:48px; border-radius:2px; overflow:hidden; flex-shrink:0; }
.home-join-thumb img{ width:100%; height:100%; object-fit:cover; }
.home-join-panel .home-btn{ margin-top:auto; }

/* ---- Tablet (>= 768px) ---- */
@media (min-width:768px){
  .page-home .home-wrap{ padding:0 24px; }
  .page-home .home-section{ padding:56px 0; }
  .home-hero{ padding:48px 0 56px; }
  .home-centre-grid{ grid-template-columns:repeat(2, 1fr); }
  .home-panel-table{ grid-column:1 / -1; }
  .home-news-grid{ grid-template-columns:1.4fr 1fr; }
  .home-news-grid > :first-child:nth-last-child(3){ grid-row:span 2; }
  .home-news-grid > :only-child{ grid-column:1 / -1; }
  .home-news-card.feature h3{ font-size:22px; }
  .home-media-grid.has-both{ grid-template-columns:1.6fr 1fr; }
  .home-join-grid{ grid-template-columns:repeat(2, 1fr); }
}

/* ---- Desktop (>= 1024px) ---- */
@media (min-width:1024px){
  .home-hero-grid{ grid-template-columns:1.15fr 0.85fr; gap:48px; }
  .home-centre-grid{ grid-template-columns:1fr 1fr 1.25fr; }
  .home-panel-table{ grid-column:auto; }
  .home-squad-grid{ grid-template-columns:repeat(6, 1fr); }
}

/* ===== Hero image (optional) =====
   Only applies when home.html renders .home-hero--image (an admin-supplied hero_image).
   Without it the hero keeps its gradient and pitch stripes, untouched.
   Overlay floor: effective opacity never drops below 0.75 of --pitch-dark.
   Worst case is a pure white photo pixel: at 0.75 it blends to about rgb(65,110,85),
   giving white text ~5.8:1 (AA needs 4.5:1) and amber ~3.5:1 (AA large text needs 3:1,
   the amber motto is display type at 20px+). At 0.65 white text falls to ~4.4:1, so 0.75 is the floor.
   Ceiling 0.95 keeps the photo faintly visible. */
.home-hero--image{ position:relative; isolation:isolate; overflow:hidden; min-height:460px; display:flex; align-items:center; }
.home-hero--image > .home-hero-grid{ position:relative; z-index:2; width:100%; }
.home-hero-media{
  position:absolute; inset:0; z-index:0; width:100%; height:100%;
  object-fit:cover; object-position:var(--focal-x, 50%) var(--focal-y, 50%);
}
.home-hero-overlay{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, var(--pitch-dark) 0%, var(--ink) 100%);
  opacity:clamp(0.75, calc(var(--overlay, 60) / 100), 0.95);
}
@media (min-width:768px){
  .home-hero--image{ min-height:520px; }
}
@media (min-width:1024px){
  .home-hero--image{ min-height:560px; }
}

/* ==========================================================================
   Homepage v2 (mockup layout)
   Story hero + carousels, match centre cards, top stories, category columns,
   team/about panels, community banner, life tiles.
   Mobile first; breakpoints 768px and 1024px. Only the hero carousel autoplays (pausable, off under reduced motion).
   Dark overlays stay at or above 0.75 opacity so white text keeps AA contrast.
   ========================================================================== */
.home-stage :focus-visible,
.home-moment :focus-visible,
.home-community :focus-visible,
.home-feature :focus-visible,
.home-join :focus-visible,
.image-dialog :focus-visible,
.home-centre :focus-visible{ outline-color:var(--amber); }

.home-kicker{
  font-size:13px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--amber); margin-bottom:10px;
}
@media (min-width:1024px){ .home-kicker{ font-size:14px; } }
.home-cat{
  display:block; font-size:13px; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--bronze-deep); margin-bottom:4px;
}
@media (min-width:1024px){ .home-cat{ font-size:14px; } }
.home-date{ display:block; font-size:13px; color:var(--ink-soft); margin-top:6px; }
@media (min-width:1024px){ .home-date{ font-size:14px; } }
.home-more{
  display:inline-block; margin-top:10px; font-size:13px; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--pitch);
}
@media (min-width:1024px){ .home-more{ font-size:14px; } }

/* ---- Carousel (shared) ---- */
.home-carousel{ position:relative; }
.home-slides{ display:grid; }
.home-slide{
  grid-area:1 / 1; position:relative; isolation:isolate; overflow:hidden;
  min-height:480px; display:flex; align-items:flex-end; background:var(--pitch-dark);
  color:var(--chalk);
}
/* No JS: show the first slide only. */
.home-carousel:not(.is-ready) .home-slide:not(:first-child){ display:none; }
/* JS, gallery carousel: stack all slides, cross-fade the active one. */
.home-carousel--moment.is-ready .home-slide{ visibility:hidden; opacity:0; }
.home-carousel--moment.is-ready .home-slide.is-active{ visibility:visible; opacity:1; }
@media (prefers-reduced-motion: no-preference){
  .home-carousel--moment.is-ready .home-slide{ transition:opacity 0.5s ease, visibility 0s linear 0.5s; }
  .home-carousel--moment.is-ready .home-slide.is-active{ transition:opacity 0.5s ease, visibility 0s; }
}
/* JS, hero carousel: slides share one grid cell and slide horizontally (transform only).
   Parked slides wait off-screen right; .is-before is the left-hand park / exit position;
   .is-moving keeps both the entering and leaving slide visible during the move. */
.home-carousel--hero.is-ready{ overflow:hidden; }
.home-carousel--hero.is-ready .home-slide{ transform:translateX(100%); }
.home-carousel--hero.is-ready .home-slide.is-before{ transform:translateX(-100%); }
.home-carousel--hero.is-ready .home-slide.is-active{ transform:none; }
.home-carousel--hero.is-ready .home-slide:not(.is-active):not(.is-moving){ visibility:hidden; }
@media (prefers-reduced-motion: no-preference){
  .home-carousel--hero.is-ready .home-slide{ transition:transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
  .home-carousel--hero.is-ready.no-anim .home-slide{ transition:none; }
}
.home-slide-media{
  position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover;
  object-position:var(--focal-x, 50%) var(--focal-y, 50%);
}
/* --overlay (55-100) comes from the admin's hero image; 100 is the standard club-green shade */
.home-slide-shade{
  position:absolute; inset:0; z-index:-1;
  background:linear-gradient(0deg, rgba(1,61,28,0.92) 0%, rgba(1,61,28,0.8) 60%, rgba(18,19,15,0.75) 100%);
  opacity:clamp(0.55, calc(var(--overlay, 100) / 100), 1);
}
.home-slide-inner{ width:100%; padding-top:40px; padding-bottom:96px; }
.home-slide-copy{ max-width:600px; }
.home-slide-title{
  font-family:var(--font-display); font-weight:400; text-transform:uppercase;
  font-size:clamp(38px, 9vw, 72px); line-height:0.98; letter-spacing:0.01em;
  overflow-wrap:anywhere;
}
.home-slide-summary{
  color:var(--sage-tint); font-size:17px; line-height:1.6; margin:14px 0 20px; max-width:520px;
  /* Left-aligned, no hyphens; the last line always keeps at least three words (see no_orphan) */
  text-wrap:pretty;
}
@media (min-width:1024px){ .home-slide-summary{ font-size:18px; } }

.home-carousel-controls{
  position:absolute; left:0; right:0; bottom:20px; z-index:3;
  display:flex; align-items:center; gap:10px;
}
.home-carousel:not(.is-ready) .home-carousel-controls{ display:none; }
.home-carousel-controls.home-wrap{ margin:0 auto; }
.home-carousel-btn{
  appearance:none; cursor:pointer; flex:none;
  width:var(--tap); height:var(--tap); border-radius:2px;
  background:rgba(18,19,15,0.85); color:var(--chalk);
  border:2px solid rgba(255,255,255,0.7);
  font-size:20px; line-height:1; font-family:var(--font-ui);
  display:inline-flex; align-items:center; justify-content:center;
  transition:background 0.2s, color 0.2s;
}
.home-carousel-btn:hover{ background:var(--amber); color:var(--ink); border-color:var(--amber); }
.home-dots{ display:flex; gap:0; }
.home-dot{
  appearance:none; cursor:pointer; background:none; border:0;
  width:var(--tap); height:var(--tap); display:inline-flex; align-items:center; justify-content:center;
}
.home-dot::before{
  content:''; width:12px; height:12px; border-radius:50%;
  border:2px solid var(--chalk); background:transparent;
}
.home-dot[aria-current="true"]::before{ background:var(--amber); border-color:var(--amber); }
.home-carousel-count{
  font-family:var(--font-display); font-size:20px; letter-spacing:0.08em;
  color:var(--chalk); min-width:56px; text-align:center;
}
.home-carousel-controls--end{ justify-content:flex-end; padding:0 16px; }

/* ---- Hero stage: slider + next-match card ---- */
.home-stage{ position:relative; background:var(--pitch-dark); color:var(--chalk); }
.home-stage-aside-inner{ padding-top:20px; padding-bottom:24px; }
.home-stage .home-next{ max-width:none; }

/* ---- Match centre (v2) ---- */
.home-centre-grid{ grid-template-columns:1fr; }
.home-mc-teams{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; margin:14px 0 10px; }
.home-mc-score{
  font-family:var(--font-display); font-size:34px; line-height:1; letter-spacing:0.05em;
  background:var(--pitch); color:var(--chalk); padding:6px 12px; border-radius:2px; white-space:nowrap;
}
.home-mc-time{ background:transparent; color:var(--amber); padding:0; }
.home-mc-meta{ text-align:center; font-size:15px; color:var(--sage-tint); margin-bottom:14px; }
@media (min-width:1024px){ .home-mc-meta{ font-size:16px; } }
.home-mc-actions{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px 18px; }
.home-mc-card .home-panel-link{ display:inline-flex; align-items:center; min-height:var(--tap); margin-top:0; }
.home-mc-card > .home-panel-link{ margin-top:8px; }
.home-fx{
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
}
.home-fx-date{ font-size:13px; color:var(--sage-tint); text-transform:uppercase; letter-spacing:0.04em; }
@media (min-width:1024px){ .home-fx-date{ font-size:14px; } }
.home-fx-time{ display:block; font-family:var(--font-display); font-size:20px; letter-spacing:0.05em; color:var(--amber); }
.home-fx-opp{ font-size:15px; font-weight:700; text-transform:uppercase; min-width:0; }
@media (min-width:1024px){ .home-fx-opp{ font-size:16px; } }
.home-fx-ha abbr{
  text-decoration:none; display:inline-block; min-width:28px; text-align:center; padding:2px 6px;
  font-size:13px; font-weight:700; background:var(--pitch); color:var(--chalk); border-radius:2px;
}
@media (min-width:1024px){ .home-fx-ha abbr{ font-size:14px; } }
.home-panel-table{ grid-column:1 / -1; }

/* ---- Moment carousel ---- */
.page-home .home-moment{ background:var(--pitch-dark); color:var(--chalk); }
.home-moment .section-head{ border-bottom-color:rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.home-moment .section-head h2{ color:var(--chalk); }
.home-moment .home-wrap + .home-wrap{ margin-top:0; }
.home-moment-slide{ min-height:300px; margin:0; border-radius:4px; }
.home-moment-slide .home-slide-shade{
  background:linear-gradient(0deg, rgba(18,19,15,0.8) 0%, rgba(18,19,15,0.0) 55%);
}
.home-moment-caption{
  position:relative; width:100%; padding:16px 16px 76px; font-size:17px; font-weight:600;
  background:rgba(18,19,15,0.78); color:var(--chalk);
}
@media (min-width:1024px){ .home-moment-caption{ font-size:18px; } }
.home-carousel--moment .home-carousel-controls{ bottom:16px; }

/* ---- Top stories ---- */
.home-top-grid{ display:grid; grid-template-columns:1fr; gap:24px; }
.home-lead{ display:grid; grid-template-columns:1fr; color:inherit; background:var(--chalk); border:1px solid #DDE3DF; border-radius:4px; overflow:hidden; }
.home-lead-img, .home-compact-img, .home-col-img{ position:relative; display:block; background:var(--pitch); overflow:hidden; }
.home-lead-img{ aspect-ratio:16/10; }
.home-lead-img img, .home-compact-img img, .home-col-img img{ width:100%; height:100%; object-fit:cover; }
/* Date badge (day over month) and category tag on the image */
.home-datebox{
  position:absolute; top:12px; left:12px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:52px; padding:6px 8px; background:var(--pitch); color:var(--chalk); border-radius:2px; line-height:1; text-align:center;
}
.home-datebox-day{ font-family:var(--font-display); font-size:24px; letter-spacing:0.02em; }
.home-datebox-month{ margin-top:2px; font-size:13px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; }
@media (min-width:1024px){ .home-datebox-month{ font-size:14px; } }
.home-tag{
  position:absolute; left:12px; bottom:12px; padding:5px 10px; background:var(--amber); color:var(--ink);
  font-size:13px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; border-radius:2px;
}
@media (min-width:1024px){ .home-tag{ font-size:14px; } }
.home-lead-body{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:20px 22px 24px; min-width:0; }
.home-lead-meta{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; font-size:15px; color:var(--ink-soft); }
@media (min-width:1024px){ .home-lead-meta{ font-size:16px; } }
.home-byline{ display:inline-flex; align-items:center; gap:10px; min-width:0; }
.home-byline strong{ color:var(--ink); }
.home-avatar{
  flex:none; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%;
  background:var(--sage-tint); color:var(--pitch-dark); font-size:15px; font-weight:700;
}
@media (min-width:1024px){ .home-avatar{ font-size:16px; } }
.home-share{
  margin-left:auto; flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:var(--tap); height:var(--tap); border-radius:50%; color:var(--pitch);
}
.home-share svg{ fill:none; stroke:currentColor; stroke-width:2; }
.home-share svg circle{ fill:currentColor; stroke:none; }
.home-share:hover{ background:var(--mist); }
.home-lead h3{ font-family:var(--font-display); font-weight:400; text-transform:uppercase; letter-spacing:0.02em; font-size:clamp(28px, 4vw, 40px); line-height:1.02; overflow-wrap:break-word; }
.home-lead h3 a{ color:inherit; text-decoration:none; }
.home-lead .home-news-summary{ display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; color:var(--ink-soft); font-size:17px; }
@media (min-width:1024px){ .home-lead .home-news-summary{ font-size:18px; } }
.home-continue{ margin-top:auto; background:var(--pitch); color:var(--chalk); }
.home-continue:hover{ background:var(--pitch-dark); }
.home-lead h3 a:hover, .home-compact:hover h3, .home-col-main:hover .home-col-title{ color:var(--pitch); text-decoration:underline; }
.home-top-list{ list-style:none; display:grid; gap:18px; align-content:start; }
.home-compact{ display:block; text-decoration:none; color:inherit; background:var(--chalk); border:1px solid #DDE3DF; border-radius:4px; overflow:hidden; }
.home-compact-img{ aspect-ratio:16/9; }
.home-compact-text{ display:block; min-width:0; padding:12px 14px 14px; }
.home-compact h3{ font-family:var(--font-display); font-weight:400; text-transform:uppercase; letter-spacing:0.02em; font-size:22px; line-height:1.08; overflow-wrap:break-word; }

/* ---- News columns ---- */
.page-home .home-columns{ background:var(--mist); }
.home-columns-grid{ display:grid; grid-template-columns:1fr; gap:18px; }
.home-col{ min-width:0; }
.home-col-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:12px; border-bottom:3px solid var(--pitch); }
.home-col-head h3{ font-family:var(--font-display); font-weight:400; font-size:24px; line-height:1.05; letter-spacing:0.03em; text-transform:uppercase; padding:6px 0; }
.home-col-all{ display:inline-flex; align-items:center; gap:4px; min-height:var(--tap); font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--pitch); text-decoration:none; white-space:nowrap; }
@media (min-width:1024px){ .home-col-all{ font-size:14px; } }
.home-col-all:hover{ text-decoration:underline; }
.home-col-main{ display:block; text-decoration:none; color:inherit; background:var(--chalk); border:1px solid #DDE3DF; border-radius:4px; overflow:hidden; }
.home-col-img{ aspect-ratio:16/10; }
.home-col-title{ display:block; padding:12px 14px 14px; font-size:17px; font-weight:700; line-height:1.3; overflow-wrap:break-word; }
@media (min-width:1024px){ .home-col-title{ font-size:18px; } }

/* Mobile: no second copy of a story already shown under Top stories */
@media (max-width:767px){
  .home-col--repeat, .home-columns--all-repeat{ display:none; }
}

/* ---- Team and About panels ---- */
.home-panels-grid{ display:grid; grid-template-columns:1fr; }
.home-feature{
  position:relative; isolation:isolate; overflow:hidden; min-height:340px;
  display:flex; align-items:flex-end; background:var(--pitch-dark); color:var(--chalk);
}
.home-feature:nth-child(2){ background:var(--ink); }
.home-feature-img{ position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.home-feature-shade{ position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg, rgba(1,61,28,0.92) 0%, rgba(1,61,28,0.8) 100%); }
.home-feature:nth-child(2) .home-feature-shade{ background:linear-gradient(0deg, rgba(18,19,15,0.92) 0%, rgba(18,19,15,0.8) 100%); }
.home-feature-body{ padding:32px 24px; max-width:560px; }
.home-feature h2{ font-family:var(--font-display); font-weight:400; text-transform:uppercase; font-size:clamp(34px, 7vw, 52px); line-height:1; letter-spacing:0.02em; margin-bottom:10px; }
.home-feature p{ color:var(--sage-tint); font-size:17px; margin-bottom:18px; }
@media (min-width:1024px){ .home-feature p{ font-size:18px; } }

/* ---- Community banner ---- */
.page-home .home-community{ background:var(--pitch-dark); color:var(--chalk); }
.home-community .section-head{ border-bottom-color:rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.home-community .section-head h2{ color:var(--chalk); }
.home-community-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
.home-community-story{ position:relative; isolation:isolate; overflow:hidden; min-height:300px; display:flex; align-items:flex-end; text-decoration:none; color:var(--chalk); border-radius:4px; background:var(--ink); }
.home-community-story img{ position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.home-community-shade{ position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg, rgba(18,19,15,0.92) 0%, rgba(18,19,15,0.75) 100%); }
.home-community-text{ display:block; padding:24px; }
.home-community-text h3{ font-family:var(--font-display); font-weight:400; text-transform:uppercase; font-size:clamp(28px, 6vw, 40px); line-height:1.02; letter-spacing:0.02em; overflow-wrap:anywhere; }
.home-community-story .home-more{ color:var(--amber); }
.home-community-story:hover h3{ text-decoration:underline; }
.home-events{ background:rgba(255,255,255,0.06); border:1px solid var(--line); border-radius:4px; padding:20px; }
.home-events h3{ font-family:var(--font-display); font-weight:400; font-size:24px; letter-spacing:0.04em; text-transform:uppercase; color:var(--amber); margin-bottom:8px; }
.home-events ul{ list-style:none; }
.home-events li{ padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.12); }
.home-events li:last-child{ border-bottom:0; }
.home-event-date{ display:block; font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--amber); }
@media (min-width:1024px){ .home-event-date{ font-size:14px; } }
.home-event-title{ display:block; font-size:17px; font-weight:700; overflow-wrap:anywhere; }
@media (min-width:1024px){ .home-event-title{ font-size:18px; } }
.home-event-loc{ display:block; font-size:15px; color:var(--sage-tint); }
@media (min-width:1024px){ .home-event-loc{ font-size:16px; } }

/* ---- Life at Grassfield ---- */
/* Mobile: one horizontal scroll-snap row that bleeds to the screen edges inside the page padding */
.home-life-tiles{
  list-style:none; display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scroll-padding-inline:20px;
  margin:0 -20px; padding:8px 20px 14px;
}
.home-life-tiles li{ flex:0 0 72%; max-width:260px; scroll-snap-align:start; }
.home-life-tile{
  position:relative; isolation:isolate; overflow:hidden; display:block; height:220px;
  border-radius:8px; background:var(--pitch-dark); text-decoration:none;
}
.home-life-tile img{ position:absolute; inset:0; z-index:-1; width:100%; height:100%; object-fit:cover; }
.home-life-label{
  position:absolute; left:12px; bottom:12px; max-width:calc(100% - 24px);
  display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px;
  background:var(--ink); color:var(--chalk);
  font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
}
@media (min-width:1024px){ .home-life-label{ font-size:14px; } }

@media (min-width:768px){
  .home-slide{ min-height:520px; }
  .home-slide-inner{ padding-top:56px; }
  .home-centre-grid{ grid-template-columns:repeat(2, 1fr); }
  .home-moment-slide{ min-height:420px; }
  .home-lead{ grid-template-columns:1.1fr 1fr; }
  .home-lead-img{ aspect-ratio:auto; min-height:340px; }
  .home-top-list{ grid-template-columns:repeat(2, 1fr); }
  .home-columns-grid{ grid-template-columns:repeat(2, 1fr); }
  .home-panels-grid{ grid-template-columns:1fr 1fr; }
  .home-feature{ min-height:420px; }
  .home-feature-body{ padding:40px 32px; }
  .home-community-grid.has-both{ grid-template-columns:1.5fr 1fr; }
  .home-life-tiles{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px;
    overflow:visible; scroll-snap-type:none; margin:0; padding:0;
  }
  .home-life-tiles li{ max-width:none; }
  .home-life-tile{ height:250px; }
}
@media (min-width:1024px){
  .home-slide{ min-height:580px; }
  .home-slide-inner{ padding-bottom:104px; }
  .home-slide-copy{ max-width:560px; }
  /* Next-match card overlays the right of the slider */
  .home-stage-aside{ position:absolute; inset:0; pointer-events:none; }
  .home-stage-aside-inner{ height:100%; display:flex; align-items:center; justify-content:flex-end; padding-top:0; padding-bottom:0; }
  .home-stage .home-next{ pointer-events:auto; width:340px; background:rgba(18,19,15,0.92); }
  .home-centre-grid{ grid-template-columns:repeat(3, 1fr); }
  .home-moment-slide{ min-height:500px; }
  .home-columns-grid{ grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
  /* Headings share one row height, so every underline and card lines up */
  @supports (grid-template-rows:subgrid){
    .home-columns-grid{ grid-template-rows:auto auto; row-gap:0; }
    .home-col{ display:grid; grid-row:span 2; grid-template-rows:subgrid; }
  }
  .home-col-head h3{ font-size:22px; }
  .home-top-grid{ grid-template-columns:2.1fr 1fr; align-items:stretch; }
  .home-top-grid > :only-child{ grid-column:1 / -1; }
  .home-top-list{ grid-template-columns:1fr; }
  .home-lead-img{ min-height:400px; }
  .home-life-tiles--5{ grid-template-columns:repeat(5, 1fr); }
  .home-col-all{ font-size:13px; }
@media (min-width:1024px){ .home-col-all{ font-size:14px; } }
}
@media (min-width:1440px){
  .home-slide{ min-height:640px; }
  .home-moment-slide{ min-height:560px; }
}

/* ===== Browser-QA fixes (contrast, overflow) ===== */
/* Table headers on light backgrounds: sage-deep (sage stays on the dark table-wrap) */
th{ color:var(--sage-deep); }
.table-wrap:not(.light) th{ color:var(--sage); }
/* Staff role labels: 12px, readable on white */
.staff-card .role{ color:var(--sage-deep); font-size:13px; }
@media (min-width:1024px){ .staff-card .role{ font-size:14px; } }
/* Sponsor CTA: amber on pitch-dark (~7.5:1), fully opaque, amber outline so it reads on the ink footer */
.cta-sponsor{ background:var(--pitch-dark); border-color:var(--amber); opacity:1; }
.home-mini-table th{ color:var(--sage); }

/* ===== Profile dialog (players, staff, board) =====
   One native <dialog> per page, filled from per-person <template> blocks.
   Contrast: --bronze-deep on white 5.5:1, --ink-soft on white 8:1,
   --sage-deep on white 6.1:1, --amber on --pitch-dark ~7.5:1, white on --pitch-dark >12:1. */
body.profile-locked{ overflow:hidden; padding-right:var(--scrollbar-comp, 0px); }

/* Trigger buttons: look like the heading text they replace, so cards do not shift.
   The ::after stretches the hit area over the whole (positioned) card. */
.staff-card, .board-card{ position:relative; }
.profile-trigger{
  appearance:none; background:none; border:0; margin:0; padding:0;
  font:inherit; color:inherit; text-align:inherit; text-transform:inherit;
  letter-spacing:inherit; line-height:inherit; cursor:pointer;
}
.profile-trigger::after{ content:''; position:absolute; inset:0; }
.profile-trigger:focus-visible{ outline:none; }
.profile-trigger:focus-visible::after{ outline:3px solid var(--pitch); outline-offset:-3px; border-radius:4px; }
.staff-card .profile-trigger:hover, .board-card .profile-trigger:hover{ text-decoration:underline; }

.profile-dialog{
  padding:0; border:0; color:var(--ink); background:var(--chalk);
  overflow:hidden;
  /* bottom sheet by default */
  margin:auto 0 0; width:100%; max-width:none; max-height:92vh; max-height:92dvh;
  border-radius:16px 16px 0 0;
}
.profile-dialog::backdrop{ background:rgba(1,61,28,0.72); }
.profile-dialog[open]{ animation:profile-sheet-in 0.25s ease-out; }
.profile-dialog[open]::backdrop{ animation:profile-fade-in 0.25s ease-out; }
@keyframes profile-sheet-in{ from{ transform:translateY(24px); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes profile-fade-in{ from{ opacity:0; } to{ opacity:1; } }

.profile-dialog-inner{ position:relative; }
.profile-dialog-body{
  overflow-y:auto; overscroll-behavior:contain;
  max-height:92vh; max-height:92dvh;
}
.profile-dialog-body:focus{ outline:none; }
.profile-dialog-body:focus-visible{ outline:3px solid var(--pitch); outline-offset:-3px; }

.profile-close{
  position:absolute; top:8px; right:8px; z-index:2;
  width:48px; height:48px; min-width:44px; min-height:44px;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--amber); border-radius:50%;
  background:var(--pitch-dark); color:var(--chalk);
  font-size:30px; line-height:1; cursor:pointer;
}
.profile-close:hover{ background:var(--pitch); }
.profile-close:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; box-shadow:0 0 0 5px var(--pitch-dark); }

.profile-layout{ display:block; }
.profile-media{
  position:relative; background:var(--pitch-dark); height:220px; overflow:hidden;
}
.profile-media img{ width:100%; height:100%; object-fit:cover; object-position:center top; }
.profile-placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, var(--pitch) 0%, var(--pitch-dark) 100%);
  font-family:var(--font-display); font-size:96px; line-height:1; color:var(--amber);
  text-transform:uppercase;
}
.profile-main{ padding:20px 20px 28px; }
.profile-kicker{
  font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--bronze-deep);
}
@media (min-width:1024px){ .profile-kicker{ font-size:14px; } }
.profile-name{
  font-family:var(--font-display); font-weight:400; font-size:36px; line-height:1.05;
  letter-spacing:0.02em; text-transform:uppercase; color:var(--pitch-dark);
  margin:4px 0 14px; overflow-wrap:anywhere;
}
.profile-facts{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px 16px;
  padding:14px 0; border-top:1px solid rgba(0,0,0,0.1); border-bottom:1px solid rgba(0,0,0,0.1);
}
.profile-facts dt{
  font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--sage-deep);
}
@media (min-width:1024px){ .profile-facts dt{ font-size:14px; } }
.profile-facts dd{ font-size:17px; font-weight:700; color:var(--ink); overflow-wrap:anywhere; }
@media (min-width:1024px){ .profile-facts dd{ font-size:18px; } }
.profile-bio{ margin-top:16px; font-size:17px; line-height:1.6; color:var(--ink-soft); overflow-wrap:anywhere; }
@media (min-width:1024px){ .profile-bio{ font-size:18px; } }
.profile-bio p + p{ margin-top:10px; }
.profile-subhead{
  margin-top:18px; font-family:var(--font-display); font-weight:400; font-size:22px;
  letter-spacing:0.03em; text-transform:uppercase; color:var(--pitch-dark);
}
.profile-career{ margin-top:6px; padding-left:18px; font-size:15px; color:var(--ink-soft); }
@media (min-width:1024px){ .profile-career{ font-size:16px; } }
.profile-career li{ margin-top:4px; overflow-wrap:anywhere; }
.profile-link{
  display:inline-flex; align-items:center; gap:6px; min-height:var(--tap); margin-top:18px; padding:0 20px;
  background:var(--pitch); color:var(--chalk); border-radius:4px; text-decoration:none;
  font-size:15px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
}
@media (min-width:1024px){ .profile-link{ font-size:16px; } }
.profile-link:hover{ background:var(--pitch-dark); }
.profile-link:focus-visible{ outline:3px solid var(--pitch-dark); outline-offset:3px; }

/* Staff and club leadership: compact dialog with the whole photo (never cropped), then
   name, role and biography */
.profile-layout--staff .profile-media,
.profile-layout--board .profile-media{
  height:auto; padding:24px 24px 4px; background:var(--mist); display:flex; justify-content:center;
}
.profile-layout--staff .profile-media img,
.profile-layout--board .profile-media img{
  width:auto; height:auto; max-width:100%; max-height:min(340px, 45vh); object-fit:contain; border-radius:4px;
}
.profile-layout--staff .profile-placeholder,
.profile-layout--board .profile-placeholder{
  width:132px; height:132px; border-radius:50%; border:4px solid var(--amber); font-size:56px;
}
.profile-layout--staff .profile-main,
.profile-layout--board .profile-main{ text-align:center; padding-top:12px; }
.profile-layout--staff .profile-facts,
.profile-layout--board .profile-facts{ grid-template-columns:1fr; border:0; padding:0; justify-items:center; }
.profile-layout--staff .profile-name,
.profile-layout--board .profile-name{ margin-bottom:8px; }
.profile-layout--staff .profile-bio,
.profile-layout--board .profile-bio{ text-align:left; }

@media (min-width:601px){
  .profile-dialog{
    margin:auto; width:min(760px, calc(100% - 48px)); max-height:min(86vh, 760px);
    border-radius:8px; box-shadow:0 24px 60px rgba(0,0,0,0.4);
  }
  .profile-dialog:has(.profile-layout--staff),
  .profile-dialog:has(.profile-layout--board){ width:min(480px, calc(100% - 48px)); }
  .profile-dialog-body{ max-height:min(86vh, 760px); }
  .profile-dialog[open]{ animation-name:profile-card-in; }
  @keyframes profile-card-in{ from{ transform:scale(0.96); opacity:0; } to{ transform:none; opacity:1; } }
  .profile-layout--player{ display:grid; grid-template-columns:260px minmax(0,1fr); }
  .profile-layout--player .profile-media{ height:100%; min-height:340px; }
  .profile-main{ padding:32px 28px 32px 28px; }
  .profile-layout--staff .profile-main, .profile-layout--board .profile-main{ padding:14px 28px 28px; }
  .profile-close{ background:var(--pitch-dark); }
}

@media (prefers-reduced-motion: reduce){
  .profile-dialog[open], .profile-dialog[open]::backdrop{ animation:none !important; }
}

/* ---- Language switcher (header row / drawer) ---- */
.lang-switch{ display:flex; align-items:center; gap:2px; margin:0; }
.lang-btn{
  min-width:var(--tap);
  min-height:var(--tap);
  padding:4px 8px;
  background:transparent;
  color:var(--chalk);
  border:1px solid transparent;
  border-radius:2px;
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.08em;
  cursor:pointer;
  transition:color 0.2s, border-color 0.2s;
}
@media (min-width:1024px){ .lang-btn{ font-size:14px; } }
.lang-btn:hover{ color:var(--amber); }
.lang-btn.is-active{ color:var(--amber); border-color:var(--amber); }
.lang-btn:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }

/* ---- Footer "stay in touch" block ---- */
.footer-connect .footer-blurb{ margin-bottom:12px; }
.footer-social{ display:flex; flex-wrap:wrap; gap:4px; margin:0 0 4px -12px; }
.footer-social li{ margin:0; }
.footer-social a{ justify-content:center; min-width:var(--tap); border-radius:4px; }
.footer-social a:hover{ background:rgba(255,255,255,0.08); }
.footer-social svg{ width:20px; height:20px; }

/* ===== Inline-style cleanup =====
   Styles moved out of template style="" attributes. Names are scoped by
   page/purpose so no other page changes. Greys use --ink-soft (AA on white). */

/* Page hero size/meta modifiers (base .page-hero already sets gradient, padding, colour) */
.page-hero--md h1{ font-size:clamp(26px,4vw,38px); }
.page-hero--sm h1{ font-size:clamp(24px,4vw,36px); }
.page-hero .page-hero-meta{ font-size:15px; }
@media (min-width:1024px){ .page-hero .page-hero-meta{ font-size:16px; } }
.article-byline{ font-weight:700; }

/* Section-head variants */
.section-head--plain{ border-bottom:none; margin-bottom:12px; }
.section-head--spaced{ margin-top:36px; }
.lede--spaced{ margin-top:10px; }

/* Link helpers */
.link-plain{ text-decoration:none; color:inherit; }
a.news-card{ text-decoration:none; color:inherit; }
.fixture-row a.score{ text-decoration:none; }
.link-accent{ color:var(--pitch); font-weight:600; }
.link-accent--bold{ font-weight:700; text-decoration:none; }
.link-nowrap{ white-space:nowrap; }

/* Empty-state note (fixtures, results, previews, reviews) */
.empty-note{ padding:16px; background:var(--chalk); color:var(--ink); }

/* Long-form reading pages (news article, match analysis) */
.prose-section{ max-width:1100px; }   /* same width as every other section */
.prose-body{ font-size:17px; line-height:1.7; white-space:pre-line; }
@media (min-width:1024px){ .prose-body{ font-size:18px; } }
.article-image{ width:100%; margin-bottom:24px; border-radius:2px; }
.article-image-link{ display:block; cursor:zoom-in; }
.article-image-link:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; }
/* Photos placed between the paragraphs (admin: Article photos). The gap above and below a photo
   is the same as the empty line between two paragraphs, so the text keeps its rhythm. */
.article-flow > * + *{ margin-top:1.7em; }
.article-flow{ font-size:17px; }
@media (min-width:1024px){ .article-flow{ font-size:18px; } }
.article-photos{ display:grid; gap:12px; margin-inline:auto; max-width:900px; }
.article-photos--grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
@media (min-width:768px){ .article-photos--three{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
.article-photo{ margin:0; }
.article-photo-link{ display:block; background:var(--mist); border-radius:2px; overflow:hidden; cursor:zoom-in; }
.article-photo-link:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; }
/* One photo: the whole photo, never cropped; tall photos are capped so the text stays in view */
.article-photo-link img{ display:block; width:100%; height:auto; max-height:75vh; object-fit:contain; margin:auto;
  transition:transform var(--ease-card); }
/* Several photos side by side: same-size tiles (the viewer shows each photo whole) */
.article-photos--grid .article-photo-link{ aspect-ratio:4/3; }
.article-photos--grid .article-photo-link img{ height:100%; max-height:none; object-fit:cover; object-position:center 20%; }
@media (hover:hover){ .article-photo-link:hover img{ transform:scale(1.02); } }
@media (prefers-reduced-motion: reduce){ .article-photo-link img{ transition:none; } }
.article-photo figcaption{ font-family:var(--font-ui); font-size:14px; line-height:1.5; color:var(--ink-soft); margin-top:8px; }
@media (min-width:1024px){ .article-photo figcaption{ font-size:15px; } }
.back-row{ margin-top:32px; }
.back-row--tight{ margin-top:24px; }

/* Membership detail: single centred-width tier card */
.tier-card--single{ max-width:420px; }

/* Media: lightbox trigger fills its gallery tile; invalid-video fallback */
.gallery-item a{ display:block; width:100%; height:100%; }
.video-card .thumb.thumb--invalid{
  display:flex; align-items:center; justify-content:center;
  background:var(--ink); color:var(--sage); font-family:var(--font-ui); font-size:13px;
}
@media (min-width:1024px){ .video-card .thumb.thumb--invalid{ font-size:14px; } }

/* Match analysis detail */
.analysis-stats-table{ margin-bottom:20px; }
/* Phones: the global th/td nowrap made the long team-name headers push these tables past
   the screen. Three equal columns that wrap between words fit without any scrolling. */
@media (max-width:640px){
  .analysis-stats-table{ table-layout:fixed; }
  .analysis-stats-table th, .analysis-stats-table td{ white-space:normal; overflow-wrap:normal; word-break:normal; hyphens:none; padding-left:6px; padding-right:6px; }
}
.analysis-stat-label{ color:var(--ink-soft); }
.analysis-team-name{ font-family:'Forum',serif; font-size:15px; text-transform:uppercase; margin-bottom:10px; }
@media (min-width:1024px){ .analysis-team-name{ font-size:16px; } }
.analysis-lineup-list{ list-style:none; }
.analysis-lineup-item{ padding:6px 0; border-bottom:1px solid rgba(0,0,0,0.06); font-size:15px; }
@media (min-width:1024px){ .analysis-lineup-item{ font-size:16px; } }
.analysis-subs-label{ font-size:13px; color:var(--ink-soft); margin-top:10px; text-transform:uppercase; letter-spacing:0.05em; }
@media (min-width:1024px){ .analysis-subs-label{ font-size:14px; } }
.analysis-sub-name{ font-size:15px; padding:4px 0; }
@media (min-width:1024px){ .analysis-sub-name{ font-size:16px; } }

/* ===== Homepage v2 fixes (browser review) ===== */
/* Text-only blocks (ledes, intros, article text) use the full width of their section, like
   everything else on the page, so there is no empty strip beside them. */

/* The global `section{max-width:1100px}` rule boxed the story hero; it is full-bleed like the mockup. */
.page-home .home-stage, .page-home .home-panels{ max-width:none; margin:0; padding:0; }
/* `.page-home .home-wrap` (padding:0 20px) overrode the slide's bottom padding, so the slider
   controls sat on top of the "Read more" button. Restore the reserved space for the controls. */
.page-home .home-slide-inner{ padding-top:40px; padding-bottom:96px; }
@media (min-width:768px){ .page-home .home-slide-inner{ padding-top:56px; padding-bottom:104px; } }

/* ===== Academy ===== */
.academy-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:18px; }
.academy-card{ display:flex; flex-direction:column; text-decoration:none; color:inherit; }
.academy-card .img{ aspect-ratio:4/3; background:var(--pitch); overflow:hidden; }
.academy-card .img img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.academy-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:64px; color:var(--amber); background:var(--pitch-dark); }
.academy-card .body{ padding:14px; }
.academy-card h3{ font-family:var(--font-ui); font-weight:700; font-size:18px; }
.academy-card .meta{ font-size:13px; color:var(--ink-soft); margin-top:4px; font-family:var(--font-ui); }
@media (min-width:1024px){ .academy-card .meta{ font-size:14px; } }
.academy-more{ display:inline-block; margin-top:10px; font-family:var(--font-ui); font-size:15px; font-weight:700; color:var(--pitch); }
@media (min-width:1024px){ .academy-more{ font-size:16px; } }
.academy-empty{ color:var(--ink-soft); }
.academy-link{ max-width:1100px; margin:0 auto; padding:8px 24px; }

/* ===== Article: share, follow, related ===== */
.article-extras{ display:flex; flex-wrap:wrap; gap:24px 48px; }
.article-extras-title{ font-family:var(--font-ui); font-size:15px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:10px; }
@media (min-width:1024px){ .article-extras-title{ font-size:16px; } }
.share-list{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.share-btn{ display:inline-flex; align-items:center; min-height:var(--tap); padding:0 16px; border:1px solid var(--pitch); border-radius:4px; background:none; color:var(--pitch); font:700 14px var(--font-ui); text-decoration:none; cursor:pointer; }
.share-btn:hover, .share-btn:focus-visible{ background:var(--pitch); color:var(--chalk); }
.share-btn[hidden]{ display:none; }
.share-copy-status{ font:600 14px var(--font-ui); color:var(--pitch); margin-left:6px; }
.share-url{ font-size:15px; word-break:break-all; }
@media (min-width:1024px){ .share-url{ font-size:16px; } }
.social-handles--article a{ color:var(--pitch); }
.social-handles--article a:hover{ color:var(--bronze-deep); }
.social-handles--article svg{ width:20px; height:20px; }
.related-news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:700px){ .related-news-grid{ grid-template-columns:1fr; } }

/* ===== Fixture dialog (match / result popup) =====
   Reuses the single profile <dialog> (see "Profile dialog" above) and its
   tokens. Contrast: --amber on --pitch-dark ~7.5:1, white on --pitch-dark >12:1,
   --ink-soft on white 8:1, --sage-deep on white 6.1:1. */

/* JS-only triggers stay hidden until the dialog controller confirms support */
.fixture-trigger[hidden]{ display:none; }

/* Triggers: real buttons. In a ".fixture-stretch" card/row the button's ::after
   stretches over the whole container; real links inside sit above it, so
   nothing interactive is nested and existing links keep working. */
.fixture-stretch{ position:relative; }
.fixture-stretch a{ position:relative; z-index:1; }
.fixture-trigger{
  appearance:none; margin:0; padding:0 14px; min-height:var(--tap);
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--pitch); background:transparent; border:2px solid var(--pitch); border-radius:4px; cursor:pointer;
}
@media (min-width:1024px){ .fixture-trigger{ font-size:14px; } }
.fixture-trigger:hover{ background:var(--pitch); color:var(--chalk); }
.fixture-trigger:focus-visible{ outline:none; background:var(--pitch); color:var(--chalk); }
.fixture-stretch .fixture-trigger::after{ content:''; position:absolute; inset:0; }
.fixture-stretch .fixture-trigger:focus-visible::after{ outline:3px solid var(--pitch); outline-offset:-3px; border-radius:4px; }
.fixture-stretch:has(.fixture-trigger:not([hidden])){ cursor:pointer; }
.fixture-row.fixture-stretch:has(.fixture-trigger:not([hidden])):hover{ background:var(--mist); }
.fixture-trigger-wrap{ display:block; }
.fixture-trigger-wrap .fixture-trigger{ margin-top:6px; }

/* On the dark home panels */
.home-centre .fixture-trigger, .home-next .fixture-trigger{ color:var(--amber); border-color:var(--amber); }
.home-centre .fixture-trigger:hover, .home-next .fixture-trigger:hover,
.home-centre .fixture-trigger:focus-visible, .home-next .fixture-trigger:focus-visible{ background:var(--amber); color:var(--ink); }
.home-centre .fixture-stretch .fixture-trigger:focus-visible::after,
.home-next .fixture-trigger:focus-visible::after{ outline-color:var(--amber); }
.home-panel.fixture-stretch:has(.fixture-trigger:not([hidden])):hover,
.home-next.fixture-stretch:has(.fixture-trigger:not([hidden])):hover{ border-color:var(--amber); }
.home-fx.fixture-stretch:has(.fixture-trigger:not([hidden])):hover{ background:rgba(255,255,255,0.05); }
.home-next-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:0 16px; }
.home-next-actions .fixture-trigger{ margin-top:10px; }
.home-fx .fixture-trigger{ grid-column:3; grid-row:1; padding:0 10px; font-size:13px; }
@media (min-width:1024px){ .home-fx .fixture-trigger{ font-size:14px; } }

/* Dialog sizing: a little wider than the staff card, narrower than a player card */
@media (min-width:601px){
  .profile-dialog:has(.fixture-dialog){ width:min(620px, calc(100% - 48px)); }
}

/* Score header: crest | score | monogram (names live inside the h2 so it names the dialog) */
.fixture-head{ background:var(--pitch-dark); color:var(--chalk); padding:22px 20px 22px; text-align:center; border-bottom:4px solid var(--amber); }
.fixture-head .profile-kicker{ color:var(--amber); }
.fixture-board{
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:10px; align-items:start;
  margin:12px 0 0; font-weight:400; font-size:17px; color:inherit;
}
@media (min-width:1024px){ .fixture-board{ font-size:18px; } }
.fixture-team{ display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; }
.fixture-team-name{
  font-family:var(--font-display); font-size:22px; line-height:1.1; letter-spacing:0.03em;
  text-transform:uppercase; overflow-wrap:anywhere;
}
.fixture-centre{ align-self:center; }
.fixture-score{ font-family:var(--font-display); font-size:48px; line-height:1; letter-spacing:0.05em; color:var(--amber); white-space:nowrap; }
.fixture-vs{ font-family:var(--font-display); font-size:26px; letter-spacing:0.05em; color:var(--sage-tint); text-transform:uppercase; }

.fixture-body{ padding:18px 20px 28px; }
.fixture-facts{ border-top:0; padding-top:0; }
.fixture-unrecorded{ color:var(--ink-soft); font-weight:600; font-style:italic; }
.fixture-note{ margin-top:4px; font-size:15px; color:var(--ink-soft); }
@media (min-width:1024px){ .fixture-note{ font-size:16px; } }
.fixture-note--block{ margin-top:16px; font-size:15px; padding:12px 14px; background:var(--mist); border-left:4px solid var(--amber); }
@media (min-width:1024px){ .fixture-note--block{ font-size:16px; } }

/* Stats: home value | label | away value */
.fixture-stats{ margin-top:8px; font-size:15px; table-layout:fixed; }
@media (min-width:1024px){ .fixture-stats{ font-size:16px; } }
.fixture-stats thead th{ padding:6px; text-align:center; white-space:normal; overflow-wrap:anywhere; color:var(--sage-deep); border-bottom:2px solid var(--pitch); }
.fixture-stats thead th:nth-child(2){ width:38%; }
.fixture-stats td{ padding:8px 6px; text-align:center; font-weight:700; white-space:normal; color:var(--ink); border-bottom:1px solid rgba(0,0,0,0.08); }
.fixture-stats tbody th{
  padding:8px 6px; text-align:center; white-space:normal; font-size:13px; font-weight:600; letter-spacing:0.04em;
  color:var(--ink-soft); border-bottom:1px solid rgba(0,0,0,0.08);
}
@media (min-width:1024px){ .fixture-stats tbody th{ font-size:14px; } }

/* Key moments: minute + description, exactly as the club entered it */
.fixture-moments{ list-style:none; margin-top:8px; border-left:2px solid var(--pitch); padding-left:16px; }
.fixture-moments li{ position:relative; display:flex; gap:10px; padding:6px 0; font-size:15px; color:var(--ink-soft); overflow-wrap:anywhere; }
@media (min-width:1024px){ .fixture-moments li{ font-size:16px; } }
.fixture-moments li::before{ content:''; position:absolute; left:-23px; top:13px; width:10px; height:10px; border-radius:50%; background:var(--amber); border:2px solid var(--pitch); }
.fixture-minute{ flex:0 0 auto; min-width:34px; font-family:var(--font-display); font-size:18px; line-height:1.2; color:var(--bronze-deep); }

/* Goal scorers under the score: home | ball | away, stacked names. Text carries the meaning;
   the ball is decorative. */
.fixture-scorers{
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:10px; align-items:start;
  margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,0.15); font-size:15px; color:var(--sage-tint);
}
@media (min-width:1024px){ .fixture-scorers{ font-size:16px; } }
.fixture-scorers-side{ list-style:none; overflow-wrap:anywhere; }
.fixture-scorers--home{ text-align:right; }
.fixture-scorers--away{ text-align:left; }
.fixture-scorers li{ padding:1px 0; }
.fixture-scorer-name{ color:var(--chalk); font-weight:600; }
.fixture-scorers abbr{ text-decoration:none; }
.fixture-scorers-ball{ width:12px; height:12px; margin-top:3px; border-radius:50%; background:var(--chalk); box-shadow:inset 0 0 0 3px var(--pitch-dark), 0 0 0 1px var(--chalk); }

/* Match events: minute | icon | type, player(s), team. Icons are decorative (aria-hidden):
   the event type is always written out, so nothing relies on colour. */
.fixture-events{ list-style:none; margin-top:8px; }
.fixture-event{ display:flex; align-items:flex-start; gap:10px; padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.08); font-size:15px; overflow-wrap:anywhere; }
@media (min-width:1024px){ .fixture-event{ font-size:16px; } }
.fixture-event .fixture-minute{ min-width:46px; }
.fixture-event-icon{ flex:0 0 auto; width:14px; height:18px; margin-top:2px; border-radius:2px; }
.fixture-event--goal .fixture-event-icon, .fixture-event--penalty_goal .fixture-event-icon,
.fixture-event--own_goal .fixture-event-icon{ width:16px; height:16px; border-radius:50%; background:var(--chalk); box-shadow:inset 0 0 0 4px var(--pitch); }
.fixture-event--own_goal .fixture-event-icon{ box-shadow:inset 0 0 0 4px var(--ink-soft); }
.fixture-event--yellow .fixture-event-icon{ background:#f2c200; box-shadow:inset 0 0 0 1px rgba(0,0,0,0.25); }
.fixture-event--red .fixture-event-icon{ background:#c62828; }
.fixture-event--second_yellow .fixture-event-icon{ background:linear-gradient(135deg, #f2c200 50%, #c62828 50%); }
.fixture-event--sub .fixture-event-icon{ width:16px; background:linear-gradient(to bottom, var(--pitch) 0 45%, transparent 45% 55%, var(--bronze-deep) 55%); }
.fixture-event-text{ display:flex; flex-wrap:wrap; gap:2px 10px; min-width:0; }
.fixture-event-type{ font-weight:700; color:var(--ink); }
.fixture-event-player{ color:var(--ink); }
.fixture-event-team{ flex-basis:100%; font-size:13px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--sage-deep); }
@media (min-width:1024px){ .fixture-event-team{ font-size:14px; } }

/* Lineups: stacked on phones, two columns from tablet up */
.fixture-lineups{ display:grid; grid-template-columns:1fr; gap:16px; margin-top:8px; }
.fixture-lineup h4{ font-family:var(--font-display); font-weight:400; font-size:20px; letter-spacing:0.03em; text-transform:uppercase; color:var(--pitch-dark); overflow-wrap:anywhere; }
.fixture-lineup-label{ margin-top:8px; font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--sage-deep); }
@media (min-width:1024px){ .fixture-lineup-label{ font-size:14px; } }
.fixture-lineup ul{ list-style:none; }
.fixture-lineup li{ padding:5px 0; font-size:15px; border-bottom:1px solid rgba(0,0,0,0.06); overflow-wrap:anywhere; }
@media (min-width:1024px){ .fixture-lineup li{ font-size:16px; } }
.fixture-lineup abbr{ text-decoration:none; }
@media (min-width:601px){ .fixture-lineups{ grid-template-columns:1fr 1fr; } }

.fixture-links{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; }
.fixture-links .profile-link{ margin-top:18px; }
.fixture-link-secondary{
  display:inline-flex; align-items:center; min-height:var(--tap); margin-top:18px;
  font-size:15px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--pitch);
}
@media (min-width:1024px){ .fixture-link-secondary{ font-size:16px; } }
.fixture-link-secondary:focus-visible{ outline:3px solid var(--pitch-dark); outline-offset:3px; }

/* Reduced motion: the dialog animation is already disabled above; triggers do not animate. */
@media (prefers-reduced-motion: reduce){
  .fixture-trigger{ transition:none; }
}

/* ===== Shared hover/focus pattern for clickable homepage cards =====
   One pattern: a small lift (translateY -3px) plus shadow, and an image zoom (scale 1.05)
   that stays inside the card's overflow:hidden. Transforms only, so nothing shifts layout.
   Hover effects sit behind (hover:hover); keyboard focus applies everywhere.
   Under reduced motion the transforms and transitions are dropped (they live in the
   no-preference block) and the shadow / border / outline cues remain. */
.home-lead, .home-player, .home-community-story, .home-life-tile, .home-video{ --card-glow:var(--lift-shadow); }
.home-community-story, .home-panel.fixture-stretch, .home-next.fixture-stretch{ --card-glow:var(--lift-shadow-dark); }
.home-moment-open{ position:absolute; inset:0; display:block; cursor:zoom-in; }
.home-moment-open:focus-visible{ outline-offset:-4px; }

/* Non-motion cue: shadow (boxed cards) or shadow on the image box (flat rows) */
@media (hover:hover){
  .home-lead:hover, .home-player:hover, .home-community-story:hover, .home-life-tile:hover, .home-video:hover,
  .home-panel.fixture-stretch:has(.fixture-trigger:not([hidden])):hover,
  .home-next.fixture-stretch:has(.fixture-trigger:not([hidden])):hover{ box-shadow:var(--card-glow); }
  .home-compact:hover .home-compact-img, .home-col-main:hover .home-col-img{ box-shadow:var(--lift-shadow); }
}
.home-lead:focus-visible, .home-player:focus-visible, .home-community-story:focus-visible, .home-life-tile:focus-visible, .home-video:focus-visible,
.home-panel.fixture-stretch:has(.fixture-trigger:not([hidden])):focus-within,
.home-next.fixture-stretch:has(.fixture-trigger:not([hidden])):focus-within{ box-shadow:var(--card-glow); }
.home-panel.fixture-stretch:has(.fixture-trigger:not([hidden])):focus-within,
.home-next.fixture-stretch:has(.fixture-trigger:not([hidden])):focus-within{ border-color:var(--amber); }
.home-compact:focus-visible .home-compact-img, .home-col-main:focus-visible .home-col-img{ box-shadow:var(--lift-shadow); }
.home-join-list a:focus-visible .home-join-name{ text-decoration:underline; }

@media (prefers-reduced-motion: no-preference){
  .home-lead, .home-player, .home-community-story, .home-life-tile, .home-video,
  .home-compact, .home-col-main, .home-join-list a,
  .home-panel.fixture-stretch, .home-next.fixture-stretch{ transition:transform var(--ease-card), box-shadow var(--ease-card), border-color var(--ease-card); }
  .home-compact-img, .home-col-img{ transition:box-shadow var(--ease-card); }
  .home-lead img, .home-compact img, .home-col-main img, .home-player img, .home-community-story img,
  .home-life-tile img, .home-join-list a img, .home-moment-open img, .home-feature-img{ transition:transform var(--ease-card); }
  .home-video-play{ transition:transform var(--ease-card); }

  @media (hover:hover){
    .home-lead:hover, .home-player:hover, .home-community-story:hover, .home-life-tile:hover, .home-video:hover,
    .home-compact:hover, .home-col-main:hover, .home-join-list a:hover,
    .home-panel.fixture-stretch:has(.fixture-trigger:not([hidden])):hover,
    .home-next.fixture-stretch:has(.fixture-trigger:not([hidden])):hover{ transform:translateY(-3px); }
    .home-lead:hover img, .home-compact:hover img, .home-col-main:hover img, .home-player:hover img,
    .home-community-story:hover img, .home-life-tile:hover img, .home-join-list a:hover img,
    .home-moment-open:hover img, .home-feature:hover .home-feature-img{ transform:scale(1.05); }
    .home-video:hover .home-video-play{ transform:scale(1.08); }
  }
  .home-lead:focus-visible, .home-player:focus-visible, .home-community-story:focus-visible, .home-life-tile:focus-visible, .home-video:focus-visible,
  .home-compact:focus-visible, .home-col-main:focus-visible, .home-join-list a:focus-visible,
  .home-panel.fixture-stretch:has(.fixture-trigger:not([hidden])):focus-within,
  .home-next.fixture-stretch:has(.fixture-trigger:not([hidden])):focus-within{ transform:translateY(-3px); }
  .home-lead:focus-visible img, .home-compact:focus-visible img, .home-col-main:focus-visible img, .home-player:focus-visible img,
  .home-community-story:focus-visible img, .home-life-tile:focus-visible img, .home-join-list a:focus-visible img,
  .home-moment-open:focus-visible img, .home-feature:focus-within .home-feature-img{ transform:scale(1.05); }
  .home-video:focus-visible .home-video-play{ transform:scale(1.08); }
}

/* ===== Image viewer (homepage gallery, shop, product pages, articles: partials/image_viewer.html) =====
   Native <dialog>, full screen. Reuses .profile-close for the close button,
   .home-carousel-btn for the arrows and the profile-fade-in keyframes. */
.image-dialog{
  width:100%; max-width:none; height:100vh; height:100dvh; max-height:none;
  margin:0; padding:0; border:0; overflow:hidden; background:transparent; color:var(--chalk);
}
.image-dialog::backdrop{ background:rgba(18,19,15,0.94); }
.image-dialog[open]{ animation:profile-fade-in 0.2s ease-out; }
.image-dialog [hidden]{ display:none; }
.image-viewer{
  position:relative; width:100%; height:100%;
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-rows:minmax(0,1fr) auto;
  align-items:center; gap:10px 12px; padding:72px 12px 16px;
}
.image-viewer-prev{ grid-column:1; grid-row:1; }
.image-viewer-next{ grid-column:3; grid-row:1; }
.image-viewer-figure{
  grid-column:2; grid-row:1; min-height:0; margin:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
}
.image-viewer-figure img{
  width:auto; height:auto; max-width:100%; max-height:calc(100vh - 210px); max-height:calc(100dvh - 210px);
  object-fit:contain; border-radius:2px;
}
.image-viewer-figure figcaption{ max-width:70ch; text-align:center; font-size:17px; font-weight:600; line-height:1.4; }
@media (min-width:1024px){ .image-viewer-figure figcaption{ font-size:18px; } }
.image-viewer-text{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.image-viewer-detail{ font-family:var(--font-ui); font-size:15px; font-weight:500; color:var(--sage-tint); letter-spacing:0.02em; }
.image-viewer-action{
  margin-top:6px; display:inline-flex; align-items:center; justify-content:center; min-height:var(--tap);
  padding:10px 22px; background:var(--amber); color:var(--ink); border-radius:4px; text-decoration:none;
  font-family:var(--font-ui); font-size:14px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
}
@media (hover:hover){ .image-viewer-action:hover{ background:var(--chalk); } }
.image-viewer-action:focus-visible{ outline:3px solid var(--chalk); outline-offset:3px; }
.image-viewer-count{ grid-column:2; grid-row:2; text-align:center; font-family:var(--font-display); font-size:20px; letter-spacing:0.08em; }
@media (max-width:599px){
  .image-viewer-figure{ grid-column:1 / -1; }
  .image-viewer-prev, .image-viewer-next{ grid-row:2; }
}

/* ===== Team crests (shared) =====
   Monogram initials sit underneath; the <img> covers them on a chalk background and removes
   itself (onerror) when the file is missing, so a broken image is never shown. */
.team-crest{
  position:relative; flex:none; box-sizing:border-box; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:4px;
  background:var(--pitch); border:1px solid var(--sage); color:var(--chalk);
  font-family:var(--font-display); font-size:13px; line-height:1; vertical-align:middle;
}
@media (min-width:1024px){ .team-crest{ font-size:14px; } }
.team-crest img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
  background:var(--chalk); padding:2px; box-sizing:border-box;
}
.team-crest--xs{ width:20px; height:20px; font-size:9px; }
.team-crest--sm{ width:28px; height:28px; font-size:13px; }
@media (min-width:1024px){ .team-crest--sm{ font-size:14px; } }
.team-crest--md, .team-crest--lg{ border-radius:50%; border-width:2px; font-size:24px; }
.team-crest--md{ width:52px; height:52px; }
.team-crest--lg{ width:56px; height:56px; }
.team-crest--md img, .team-crest--lg img{ padding:3px; }
/* Placeholder that keeps the layout where a crest is deliberately not shown */
.team-crest.team-crest--blank{ visibility:hidden; }

/* League tables: crest + name stay on one line; the table scrolls inside .table-scroll */
.club-cell{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }

/* Scrollable table regions are keyboard-focusable: visible focus ring */
.table-scroll:focus-visible{ outline:3px solid var(--amber); outline-offset:-3px; }
/* Narrow phones: the home mini table must fit without scrolling, so long club names wrap */
@media (max-width:480px){
  .home-mini-table .club-cell{ gap:6px; white-space:normal; }
  .home-mini-table .club-cell > span:last-child{ min-width:0; white-space:normal; overflow-wrap:anywhere; }
  .home-mini-table .team-crest--xs{ width:18px; height:18px; }
  .home-mini-table td:nth-child(2){ white-space:normal; }
}

/* Fixture rows: crest sits beside the name, next to the score */
.fixture-row .team{ display:flex; align-items:center; gap:8px; }
.fixture-row .team.home-side{ justify-content:flex-end; }
.fixture-row .team.away-side{ justify-content:flex-start; }
.fixture-row .team-name{ min-width:0; overflow-wrap:anywhere; }

/* Home upcoming list: no crests. Date, H/A and Details on the first line, the opponent's
   name on its own full-width line below, so it wraps between words, never inside one. */
.home-fx{ grid-template-columns:1fr auto auto; row-gap:6px; }
.home-fx-date{ grid-column:1; grid-row:1; }
.home-fx-time{ display:inline; margin-left:8px; font-size:18px; }
.home-fx-ha{ grid-column:2; grid-row:1; }
.home-fx-opp{ grid-column:1 / -1; grid-row:2; font-size:17px; line-height:1.25; overflow-wrap:break-word; word-break:normal; hyphens:none; }
@media (min-width:1024px){ .home-fx-opp{ font-size:18px; } }

/* Match report heading */
.match-heading{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px 14px; }
.match-heading .team-crest{ width:40px; height:40px; font-size:18px; }

/* ===== Hero carousel: previous / next arrows at the sides =====
   Scoped to the hero so the gallery carousel and lightbox buttons are untouched. */
.home-carousel--hero > .home-carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:4;
  width:44px; height:44px; min-width:44px; min-height:44px;
  background:rgba(18,19,15,0.75); color:#fff; border:2px solid rgba(255,255,255,0.85);
}
.home-carousel--hero > .home-carousel-btn:hover{ background:var(--amber); color:var(--ink); border-color:var(--amber); }
.home-carousel--hero > .home-carousel-btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
.home-carousel--hero > [data-carousel-prev]{ left:8px; }
.home-carousel--hero > [data-carousel-next]{ right:8px; }
.home-carousel--hero:not(.is-ready) > .home-carousel-btn{ display:none; }
/* Keep the slide copy clear of the arrows (beats `.page-home .home-wrap` padding) */
.page-home .home-carousel--hero .home-slide-inner{ padding-left:60px; padding-right:60px; }
@media (min-width:768px){
  .home-carousel--hero > .home-carousel-btn{ width:48px; height:48px; min-width:48px; min-height:48px; }
  .home-carousel--hero > [data-carousel-prev]{ left:12px; }
  .home-carousel--hero > [data-carousel-next]{ right:12px; }
  .page-home .home-carousel--hero .home-slide-inner{ padding-left:72px; padding-right:72px; }
}
@media (min-width:1024px){
  /* Next arrow stays at the hero's right edge (12px + 48px). The 340px next-match card is
     pushed inward only when needed: its right edge is max(0, (100vw - 1100px) / 2) + padding
     from the viewport edge, and it needs 12 + 48 + 16 = 76px clearance (76px padding at
     1024-1100px, 24px from 1252px up). Card width, centring and pointer-events are unchanged. */
  .page-home .home-stage-aside .home-stage-aside-inner{ padding-right:max(24px, calc(76px - max(0px, (100vw - 1100px) / 2))); }
  /* Copy (72px padding + 500px) ends at wrap left + 572; the card starts at wrap left + 1100 - 76 - 340 = 684 or later */
  .page-home .home-carousel--hero .home-slide-inner{ padding-left:72px; padding-right:72px; }
  .home-carousel--hero .home-slide-copy{ max-width:500px; }
}

/* Fixture rows on phones/tablets: crest above the name so names only wrap between words */
@media (max-width:820px){
  .fixture-row .team, .fixture-row .team.home-side, .fixture-row .team.away-side{
    flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; gap:4px; min-width:0;
  }
  /* DOM order is name-then-crest on the home side: put the crest first visually */
  .fixture-row .team.home-side .team-crest{ order:-1; }
  .fixture-row .team .team-crest{ flex-shrink:0; }
  .fixture-row .team .team-name{ overflow-wrap:normal; word-break:normal; hyphens:none; text-align:center; }
}
@media (max-width:400px){
  .fixture-row .team{ font-size:13px; }
}

/* =====================================================================
   Approved website content (Option 1): homepage intro, GUFC Way, partner band,
   club pages (people, roadmap, careers), community, gallery and shop intros.
   ===================================================================== */
.home-btn-dark{ background:var(--pitch); color:var(--chalk); }
.home-btn-dark:hover{ background:var(--pitch-dark); }
.home-section-intro{ font-family:var(--font-ui); font-size:17px; margin:-6px 0 22px; color:var(--ink-soft); }
@media (min-width:1024px){ .home-section-intro{ font-size:18px; } }
.home-centre .home-section-intro{ color:var(--sage-tint); }
.home-centre .home-section-intro strong{ color:var(--chalk); }
.home-intro-kicker{ font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--bronze-deep); margin-bottom:8px; }
@media (min-width:1024px){ .home-intro-kicker{ font-size:14px; } }
.page-home .home-intro{ background:var(--chalk); }
.home-intro-grid{ display:grid; grid-template-columns:1fr; gap:28px; align-items:start; }
.home-intro h2, .home-way h2, .home-partner h2{ font-family:var(--font-display); font-weight:400; text-transform:uppercase; font-size:clamp(32px, 6vw, 48px); line-height:1; letter-spacing:0.02em; margin-bottom:16px; }
.home-intro-main p{ font-family:var(--font-ui); font-size:17px; line-height:1.65; color:#333; margin-bottom:14px; }
@media (min-width:1024px){ .home-intro-main p{ font-size:18px; } }
.home-intro-main .home-btn{ margin-top:6px; }
.home-intro-card{ background:var(--pitch-dark); color:var(--chalk); padding:26px 24px; border-left:6px solid var(--amber); }
.home-intro-card .home-intro-kicker{ color:var(--amber); }
.home-intro-card h3{ font-family:var(--font-display); font-weight:400; text-transform:uppercase; font-size:30px; line-height:1.05; letter-spacing:0.02em; margin-bottom:12px; }
.home-intro-card p{ font-family:var(--font-ui); color:var(--sage-tint); font-size:17px; line-height:1.6; margin-bottom:18px; }
@media (min-width:1024px){ .home-intro-card p{ font-size:18px; } }
.page-home .home-way{ background:var(--ink); color:var(--chalk); }
.home-way .home-intro-kicker{ color:var(--amber); }
.home-way-lede, .home-way-foot{ font-family:var(--font-ui); color:var(--sage-tint); font-size:17px; }
@media (min-width:1024px){ .home-way-lede, .home-way-foot{ font-size:18px; } }
.home-way-foot{ margin-top:18px; }
.home-way-grid{ list-style:none; display:grid; grid-template-columns:1fr; gap:12px; margin-top:18px; }
.home-way-grid li{ background:rgba(255,255,255,0.05); border:1px solid var(--line); border-top:3px solid var(--amber); padding:18px 16px; }
.home-way-grid h3{ font-family:var(--font-display); font-weight:400; font-size:24px; letter-spacing:0.05em; text-transform:uppercase; color:var(--amber); margin-bottom:6px; }
.home-way-grid p{ font-family:var(--font-ui); font-size:15px; line-height:1.55; color:var(--sage-tint); }
@media (min-width:1024px){ .home-way-grid p{ font-size:16px; } }
.home-join-intro{ margin:-6px 0 24px; font-family:var(--font-ui); }
.home-join-intro p{ color:var(--sage-tint); font-size:17px; margin-bottom:8px; }
@media (min-width:1024px){ .home-join-intro p{ font-size:18px; } }
.home-join-intro strong{ color:var(--chalk); }
.home-join-intro .home-cta-row{ margin-top:14px; }
.page-home .home-partner{ background:var(--amber); color:var(--ink); }
.home-partner .home-intro-kicker{ color:var(--ink); }
.home-partner-grid{ display:grid; grid-template-columns:1fr; gap:10px 36px; align-items:start; }
.home-partner p{ font-family:var(--font-ui); font-size:17px; line-height:1.6; margin-bottom:12px; }
@media (min-width:1024px){ .home-partner p{ font-size:18px; } }
.home-feature .home-kicker{ color:var(--amber); }
@media (min-width:768px){
  .home-way-grid{ grid-template-columns:repeat(2, 1fr); }
  .home-partner-grid{ grid-template-columns:1fr 1.4fr; }
}
@media (min-width:1024px){
  .home-intro-grid{ grid-template-columns:1.35fr 1fr; gap:44px; }
  .home-way-grid{ grid-template-columns:repeat(5, 1fr); }
}
/* Content blocks shared by the club, team, community, gallery, shop and contact pages */
.section-intro-block{ padding-bottom:0; }
.section-lede{ margin:-6px 0 18px; }
.club-subhead{ font-family:var(--font-display); font-weight:400; font-size:24px; letter-spacing:0.04em; text-transform:uppercase; margin:28px 0 10px; color:var(--ink); }
.club-subhead--first{ margin-top:0; }
.club-motto{ font-family:var(--font-display); font-size:22px; letter-spacing:0.03em; text-transform:uppercase; color:var(--pitch); margin-top:16px; max-width:720px; }
.club-motto--light{ color:var(--amber); }
.club-people-intro{ margin-bottom:8px; }
.club-people-intro h3{ font-family:var(--font-ui); font-size:17px; font-weight:700; margin-bottom:8px; }
@media (min-width:1024px){ .club-people-intro h3{ font-size:18px; } }
.club-people-links{ display:flex; flex-wrap:wrap; gap:8px 28px; margin-top:22px; }
.vm-card{ background:var(--pitch-dark); color:var(--chalk); border-left:6px solid var(--amber); padding:18px 20px; margin-bottom:14px; }
.vm-card h3{ font-family:var(--font-display); font-weight:400; font-size:22px; letter-spacing:0.05em; text-transform:uppercase; color:var(--amber); margin-bottom:6px; }
.vm-card p{ font-family:var(--font-ui); font-size:17px; line-height:1.6; color:var(--sage-tint); }
@media (min-width:1024px){ .vm-card p{ font-size:18px; } }
.vm-card--light{ background:var(--chalk); color:var(--ink); margin-top:24px; }
.vm-card--light p{ color:var(--ink-soft); }
.vm-card--light h3{ color:var(--pitch); }
.roadmap{ list-style:none; display:grid; grid-template-columns:1fr; gap:14px; margin:14px 0 18px; counter-reset:none; }
.roadmap li{ background:var(--ink); color:var(--chalk); padding:20px 18px; position:relative; }
.roadmap-num{ display:block; font-family:var(--font-display); font-size:40px; line-height:1; color:var(--amber); margin-bottom:6px; }
.roadmap h4{ font-family:var(--font-ui); font-weight:700; font-size:17px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
@media (min-width:1024px){ .roadmap h4{ font-size:18px; } }
.roadmap p{ font-family:var(--font-ui); font-size:15px; line-height:1.55; color:var(--sage-tint); }
@media (min-width:1024px){ .roadmap p{ font-size:16px; } }
.tick-list{ list-style:none; margin:8px 0 0; font-family:var(--font-ui); font-size:17px; }
@media (min-width:1024px){ .tick-list{ font-size:18px; } }
.tick-list li{ position:relative; padding:6px 0 6px 26px; border-bottom:1px solid rgba(0,0,0,0.06); }
.tick-list li::before{ content:''; position:absolute; left:2px; top:12px; width:12px; height:7px; border-left:3px solid var(--pitch); border-bottom:3px solid var(--pitch); transform:rotate(-45deg); }
.pill-list{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; }
.pill-list li{ font-family:var(--font-ui); font-size:15px; font-weight:700; letter-spacing:0.04em; padding:8px 14px; border:2px solid var(--pitch); color:var(--pitch); border-radius:999px; }
@media (min-width:1024px){ .pill-list li{ font-size:16px; } }
.gallery-cats{ list-style:none; display:grid; grid-template-columns:1fr; gap:12px; margin-top:16px; }
.gallery-cats li{ background:var(--mist); border-top:3px solid var(--pitch); padding:14px 16px; }
.gallery-cats h3{ font-family:var(--font-ui); font-size:15px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--pitch); margin-bottom:4px; }
@media (min-width:1024px){ .gallery-cats h3{ font-size:16px; } }
.gallery-cats p{ font-family:var(--font-ui); font-size:15px; color:var(--ink-soft); line-height:1.5; }
@media (min-width:1024px){ .gallery-cats p{ font-size:16px; } }
.two-col--spaced{ margin-top:32px; }
.two-col--single{ grid-template-columns:1fr; }   /* only one column has content: use the full width */
.fan-social{ list-style:none; display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
@media (min-width:768px){
  .roadmap{ grid-template-columns:repeat(3, 1fr); }
  .gallery-cats{ grid-template-columns:repeat(2, 1fr); }
}
@media (min-width:1024px){
  .gallery-cats{ grid-template-columns:repeat(4, 1fr); }
}
.lede p + p{ margin-top:10px; }


/* ==========================================================================
   Club page: introduction and The GUFC Way
   ========================================================================== */
.club-intro{ padding:48px 24px 52px; }
.club-intro-inner{ max-width:1100px; margin:0 auto; display:flex; gap:28px; align-items:flex-start; }
.club-intro-crest{ flex:none; width:96px; height:96px; }
.club-intro .eyebrow{ color:var(--amber); }
.club-intro h1{ font-size:clamp(34px, 5.4vw, 58px); line-height:0.98; max-width:22ch; }
.page-hero .club-intro-text{ font-size:17px; line-height:1.65; color:var(--sage-tint); margin-top:16px; }
@media (min-width:1024px){ .page-hero .club-intro-text{ font-size:18px; } }
@media (max-width:640px){
  .club-intro-inner{ flex-direction:column; gap:16px; }
  .club-intro-crest{ width:72px; height:72px; }
}

.gufc-way{ background:var(--ink); color:var(--chalk); }
.gufc-way > section{ padding-top:56px; padding-bottom:56px; }
.gufc-way-kicker{
  font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--amber); margin-bottom:10px;
}
@media (min-width:1024px){ .gufc-way-kicker{ font-size:14px; } }
.gufc-way-title{
  font-family:var(--font-display); font-weight:400; text-transform:uppercase; letter-spacing:0.02em;
  font-size:clamp(30px, 5vw, 50px); line-height:1; max-width:22ch;
}
.gufc-way-lede, .gufc-way-foot{ font-family:var(--font-ui); font-size:17px; color:var(--sage-tint); }
@media (min-width:1024px){ .gufc-way-lede, .gufc-way-foot{ font-size:18px; } }
.gufc-way-lede{ margin-top:14px; }
.gufc-way-foot{ margin-top:28px; padding-top:18px; border-top:1px solid var(--line); font-style:italic; }
/* Five pillars: separated by rules, not boxed; each led by its own numeral */
.gufc-pillars{ list-style:none; margin-top:26px; display:grid; grid-template-columns:1fr; }
.gufc-pillar{
  display:grid; grid-template-columns:56px 1fr; column-gap:16px; align-items:baseline;
  padding:18px 0; border-top:1px solid var(--line);
}
.gufc-pillar:last-child{ border-bottom:1px solid var(--line); }
.gufc-pillar-num{
  grid-row:span 2; font-family:var(--font-display); font-size:40px; line-height:1;
  color:transparent; -webkit-text-stroke:1px var(--amber);
}
.gufc-pillar h3{
  font-family:var(--font-display); font-weight:400; font-size:26px; letter-spacing:0.05em;
  text-transform:uppercase; color:var(--amber);
}
.gufc-pillar p{ font-family:var(--font-ui); font-size:15px; line-height:1.6; color:var(--sage-tint); margin-top:4px; }
@media (min-width:1024px){ .gufc-pillar p{ font-size:16px; } }
@media (min-width:900px){
  .gufc-pillars{ grid-template-columns:repeat(5, 1fr); border-top:3px solid var(--amber); }
  .gufc-pillar{
    display:block; padding:22px 20px 6px; border-top:0; border-left:1px solid var(--line);
  }
  .gufc-pillar:first-child{ border-left:0; padding-left:0; }
  .gufc-pillar:last-child{ border-bottom:0; }
  .gufc-pillar-num{ display:block; font-size:52px; margin-bottom:10px; }
}
@media (forced-colors: active){
  .gufc-pillar-num{ color:CanvasText; -webkit-text-stroke:0; }
}

/* Homepage: a single "Meet our team" panel spans the width */
@media (min-width:768px){ .home-panels-grid--single{ grid-template-columns:1fr; } }

/* Homepage club slides on the Grasslanders banner: the banner stays visible; the text side is darkened */
.home-slide--banner .home-slide-shade{
  background:
    linear-gradient(90deg, rgba(1,30,14,0.62) 0%, rgba(1,30,14,0.5) 45%, rgba(1,30,14,0.12) 78%, rgba(1,30,14,0.05) 100%),
    linear-gradient(0deg, rgba(1,30,14,0.7) 0%, rgba(1,30,14,0) 32%);
}
.home-slide--banner .home-slide-copy > :not(.home-btn){ text-shadow:0 2px 14px rgba(0,0,0,0.55); }
@media (max-width:767px){
  .home-slide--banner .home-slide-shade{
    background:linear-gradient(0deg, rgba(1,30,14,0.92) 0%, rgba(1,30,14,0.78) 55%, rgba(1,30,14,0.45) 100%);
  }
}

/* Contact form: two-up rows, kit details, per-field errors */
.form-row{ display:grid; grid-template-columns:1fr; column-gap:16px; }
@media (min-width:600px){
  .form-row{ grid-template-columns:1fr 1fr; }
  .form-row--3{ grid-template-columns:1.2fr 1fr 0.8fr; }
}
.form-group .req{ color:var(--bronze-deep); }
.kit-fields{ border:1px solid rgba(1,97,45,0.25); border-left:3px solid var(--amber); padding:14px 16px 4px; margin:0 0 16px; background:rgba(1,97,45,0.04); }
.kit-fields[hidden]{ display:none; }
.kit-fields legend{ font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--pitch); padding:0 6px; }
@media (min-width:1024px){ .kit-fields legend{ font-size:14px; } }
.kit-fields-note{ font-weight:400; letter-spacing:0; text-transform:none; color:var(--ink-soft); }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea{ border-color:var(--bronze-deep); }
.field-error{ font-family:var(--font-ui); font-size:13px; color:var(--bronze-deep); margin-top:4px; }
@media (min-width:1024px){ .field-error{ font-size:14px; } }
.form-note{ font-family:var(--font-ui); font-size:13px; color:var(--ink-soft); margin:-4px 0 14px; }
@media (min-width:1024px){ .form-note{ font-size:14px; } }
.submit-btn[disabled]{ opacity:0.7; cursor:progress; }

/* Homepage hero: club slides with two short paragraphs */
.home-slide-summary + .home-slide-summary{ margin-top:-8px; }
@media (max-width:600px){
  .home-slide-summary{ font-size:17px; margin:10px 0 14px; }
}

/* Photo bands: the squad photo behind "Who we are" and "Join the GUFC Family".
   On larger screens it stays fixed while the page scrolls, so the same picture shows
   through after the hero and appears again lower down. Phones and tablets (no hover,
   where fixed backgrounds are unreliable) scroll it with the band. */
.page-home .home-photo-band{
  position:relative; isolation:isolate; color:var(--chalk);
  background-color:var(--pitch-dark); background-image:var(--band-img-best, var(--band-img));
  background-size:cover; background-position:50% 28%; background-repeat:no-repeat;
  background-attachment:fixed;
}
.page-home .home-photo-band::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg, rgba(1,30,14,0.9) 0%, rgba(1,30,14,0.8) 50%, rgba(1,30,14,0.62) 100%);
}
@media (hover:none), (max-width:1023px){
  .page-home .home-photo-band{ background-attachment:scroll; }
}
/* "Who we are" on the photo: light text, the vision card as a darker panel */
.home-photo-band.home-intro .home-intro-kicker{ color:var(--amber); }
.home-photo-band.home-intro h2{ color:var(--chalk); }
.home-photo-band .home-intro-main p{ color:var(--sage-tint); }
.home-photo-band .home-intro-card{ background:rgba(1,40,18,0.82); border-top:1px solid var(--line); border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.home-join--photo .home-join-panel{ background:rgba(1,40,18,0.72); backdrop-filter:blur(2px); }

/* Links that exist only in the mobile/tablet drawer (e.g. "All news", since the News
   parent opens its submenu there instead of navigating) */
@media (min-width:1280px){
  .nav-mobile-only{ display:none !important; }
}
@media (prefers-reduced-motion: reduce){
  #mainNav .dropdown-menu, #mainNav .nav-dropdown > a .caret{ transition:none !important; }
}

/* ==========================================================================
   Homepage and people update: next-match tabs, news pair + rotating stories,
   Meet our team, Who we are buttons, profile cards, leadership groups
   ========================================================================== */

/* ---- Rotating grids (news archive, squad, coaches): one page at a time, cross-fade ---- */
.home-rotator{ position:relative; }
.home-rotator-track{ display:grid; }
.home-rotator-page{ grid-area:1 / 1; list-style:none; margin:0; padding:0; }
.home-rotator .home-rotator-page:not(.is-active){ visibility:hidden; opacity:0; pointer-events:none; }
.home-carousel.home-rotator:not(.is-ready) .home-rotator-page:not(:first-child){ display:none; }
@media (prefers-reduced-motion: no-preference){
  .home-rotator .home-rotator-page{ transition:opacity 0.45s ease, visibility 0s linear 0.45s; }
  .home-rotator .home-rotator-page.is-active{ transition:opacity 0.45s ease, visibility 0s; }
}
.home-rotator .home-carousel-controls{ position:static; margin-top:14px; padding:0; justify-content:flex-end; }
.home-news .home-rotator .home-carousel-btn{ background:var(--chalk); color:var(--pitch-dark); border-color:var(--pitch); }
.home-news .home-rotator .home-carousel-btn:hover{ background:var(--pitch); color:var(--chalk); border-color:var(--pitch); }
.home-news .home-rotator .home-carousel-count{ color:var(--pitch-dark); }

/* ---- Next-match panel with its own tabs ---- */
.home-tablist{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:4px; margin:-4px 0 16px; }
.home-tablist[hidden]{ display:none; }
.home-tab{
  appearance:none; cursor:pointer; min-height:var(--tap); padding:6px 4px;
  background:rgba(255,255,255,0.06); color:var(--sage-tint); border:1px solid var(--line); border-radius:3px;
  font-family:var(--font-ui); font-size:11px; font-weight:700; letter-spacing:0.02em; line-height:1.15;
  text-transform:uppercase; overflow-wrap:normal; word-break:normal; hyphens:manual;
  transition:background 0.2s, color 0.2s, border-color 0.2s;
}
.home-tab:hover{ color:var(--chalk); border-color:rgba(255,255,255,0.4); }
.home-tab[aria-selected="true"]{ background:var(--amber); color:var(--ink); border-color:var(--amber); }
.home-tab:focus-visible{ outline:3px solid var(--chalk); outline-offset:2px; }
.home-tabpanel{ min-height:212px; }
.home-tabpanel:focus-visible{ outline:2px solid var(--amber); outline-offset:4px; }
.home-tabpanel + .home-tabpanel{ margin-top:22px; }          /* no JS: panels listed one below another */
.home-matchtabs.is-tabbed .home-tabpanel + .home-tabpanel{ margin-top:0; }
.home-matchtabs.is-tabbed .home-tabpanel-title{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.home-tabpanel-title{ font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--sage-tint); margin-bottom:10px; }
@media (min-width:1024px){ .home-tabpanel-title{ font-size:14px; } }
@media (prefers-reduced-motion: no-preference){
  .home-matchtabs.is-tabbed .home-tabpanel:not([hidden]){ animation:home-tab-in 0.3s ease; }
  @keyframes home-tab-in{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
}
.home-tab-empty{ padding:24px 0 12px; text-align:center; }
.home-tab-results{ list-style:none; margin:0 0 10px; padding:0; }
.home-tab-results li{
  display:grid; grid-template-columns:48px minmax(0,1fr) auto minmax(0,1fr); gap:8px; align-items:center;
  padding:8px 0; border-bottom:1px solid var(--line); font-size:13px;
}
@media (min-width:1024px){ .home-tab-results li{ font-size:14px; } }
.home-tab-results time{ color:var(--sage-tint); font-size:13px; text-transform:uppercase; }
@media (min-width:1024px){ .home-tab-results time{ font-size:14px; } }
.home-tab-res-team{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-tab-res-team:last-child{ text-align:right; }
.home-tab-res-score{ font-family:var(--font-display); font-size:22px; color:var(--amber); letter-spacing:0.04em; }
.home-tab-table{ width:100%; border-collapse:collapse; font-size:14px; margin-bottom:10px; }
@media (min-width:1024px){ .home-tab-table{ font-size:17px; } }
.home-tab-table th, .home-tab-table td{ padding:6px 4px; text-align:center; border-bottom:1px solid var(--line); }
.home-tab-table thead th{ color:var(--sage); font-size:11px; letter-spacing:0.06em; text-transform:uppercase; }
@media (min-width:1024px){ .home-tab-table thead th{ font-size:13px; } }
.home-tab-table tbody th{ text-align:left; font-weight:600; overflow-wrap:anywhere; }
.home-tab-table abbr{ text-decoration:none; }
.home-tab-table tr.highlight th, .home-tab-table tr.highlight td{ color:var(--amber); font-weight:700; }
@media (min-width:1024px){
  .home-stage .home-next.home-matchtabs{ width:400px; }
}

/* ---- Who we are: left-aligned text; each link close under its text; both links on one line ----
   The two columns sit on a shared bottom line, so "Discover GUFC" and "Our Vision & Mission"
   line up without stretching the vision card (no empty gap above its link). */
.home-intro-main p, .home-intro-card p{ text-wrap:pretty; }
.home-intro-card p{ margin-bottom:14px; }
.home-intro-action{ padding-top:6px; }
.home-intro-action .home-btn{ min-width:230px; justify-content:center; }
.home-intro-main .home-intro-action .home-btn{ margin-top:0; }
/* Side by side from small tablets up; only phones stack the two blocks */
@media (min-width:600px){
  .home-intro-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:24px; align-items:end; }
  .home-intro-main{ padding-bottom:20px; }        /* same as the card's bottom padding */
  .home-intro-main p{ max-width:none; }
  .home-intro-card{ padding:20px 18px 20px; }
  .home-intro-card h3{ font-size:24px; }
  .home-intro-main p, .home-intro-card p{ font-size:15px; line-height:1.6; }   /* tablets: more words per line */
  .home-intro-action .home-btn{ min-width:0; width:100%; max-width:240px; padding-left:14px; padding-right:14px; }
}
@media (min-width:768px){
  .home-intro-grid{ grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); column-gap:28px; }
  .home-intro-main{ padding-bottom:26px; }
  .home-intro-card{ padding:26px 24px 26px; }
  .home-intro-action .home-btn{ min-width:230px; width:auto; max-width:none; }
}
@media (min-width:1024px){
  /* "Who we are" stretches across (fewer lines, less height); the vision card is narrow and
     sits to the right, so both blocks end at about the same height with their links level */
  .home-intro-grid{ grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); column-gap:44px; }
  .home-intro-main p{ max-width:none; }
  .home-intro-main p, .home-intro-card p{ font-size:18px; line-height:1.65; }
  .home-intro-card{ padding:28px 26px 26px; }
  .home-intro-card h3{ font-size:27px; }
}
@media (min-width:1280px){
  .page-home .home-intro .home-wrap{ max-width:1240px; }
  .home-intro-grid{ grid-template-columns:minmax(0,1fr) 360px; column-gap:48px; }
}
@media (max-width:480px){
  .home-intro-action .home-btn{ width:100%; min-width:0; }
}

/* ---- News: Latest and Top side by side, then the rotating "More stories" ---- */
.home-news-pair{ display:grid; grid-template-columns:1fr; gap:28px; }
.home-news-col{ min-width:0; padding:18px; border-radius:4px; background:var(--chalk); border:1px solid #DDE3DF; border-top:5px solid var(--pitch); }
.home-news-col--top{ border-top-color:var(--amber); background:#FFFCEB; }
.home-news-col-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.home-news-col-head h3{ font-family:var(--font-display); font-weight:400; font-size:30px; line-height:1; letter-spacing:0.03em; text-transform:uppercase; color:var(--pitch-dark); }
.home-news-lead{ display:block; text-decoration:none; color:inherit; margin-bottom:16px; }
.home-news-lead-img{ position:relative; display:block; aspect-ratio:16/9; background:var(--pitch); overflow:hidden; border-radius:3px; }
.home-news-lead-img img{ width:100%; height:100%; object-fit:cover; }
.home-news-lead-body{ display:block; padding-top:12px; }
.home-news-lead-title{ display:block; font-family:var(--font-display); font-size:28px; line-height:1.05; letter-spacing:0.02em; text-transform:uppercase; color:var(--ink); overflow-wrap:break-word; }
.home-news-lead:hover .home-news-lead-title, .home-news-lead:focus-visible .home-news-lead-title{ color:var(--pitch); text-decoration:underline; }
.home-news-lead .home-news-summary{ display:block; margin-top:6px; }
.home-news-col .home-top-list{ grid-template-columns:1fr; gap:10px; }
.home-news-col .home-compact{ display:grid; grid-template-columns:120px minmax(0,1fr); align-items:stretch; }
.home-news-col .home-compact-img{ aspect-ratio:auto; min-height:84px; }
.home-news-col .home-compact-img .home-datebox{ transform:scale(0.8); transform-origin:top left; }
.home-compact-title{ display:block; font-family:var(--font-display); font-size:21px; line-height:1.08; letter-spacing:0.02em; text-transform:uppercase; overflow-wrap:break-word; }
.home-compact:hover .home-compact-title{ color:var(--pitch); text-decoration:underline; }
.home-news-col .home-empty{ margin:0; }
.home-archive{ margin-top:36px; }
.home-archive-title{ font-family:var(--font-display); font-weight:400; font-size:30px; letter-spacing:0.03em; text-transform:uppercase; color:var(--pitch-dark); margin-bottom:14px; }
.home-archive .home-rotator-page{ display:grid; grid-template-columns:1fr; gap:12px; }
.home-archive-card{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:0; height:100%; text-decoration:none; color:inherit; background:var(--chalk); border:1px solid #DDE3DF; border-radius:4px; overflow:hidden; }
.home-archive-img{ display:block; background:var(--pitch); min-height:90px; }
.home-archive-img img{ width:100%; height:100%; object-fit:cover; }
.home-archive-img img.home-archive-crest{ object-fit:contain; padding:16px; }
.home-archive-text{ display:block; padding:12px 14px; min-width:0; }
.home-archive-headline{ display:block; font-family:var(--font-display); font-size:21px; line-height:1.08; letter-spacing:0.02em; text-transform:uppercase; overflow-wrap:break-word; }
.home-archive-text time{ display:block; font-size:13px; color:var(--ink-soft); margin-top:6px; }
@media (min-width:1024px){ .home-archive-text time{ font-size:14px; } }
.home-archive-card:hover .home-archive-headline, .home-archive-card:focus-visible .home-archive-headline{ color:var(--pitch); text-decoration:underline; }
@media (min-width:768px){
  .home-archive .home-rotator-page{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
  .home-archive-card{ grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .home-archive-img{ aspect-ratio:16/9; min-height:0; }
}
@media (min-width:1024px){
  .home-news-pair{ grid-template-columns:1fr 1fr; gap:24px; }
}

/* ---- Players and coaches (under Meet our team): green and amber gradient over faint pitch stripes ---- */
.page-home .home-team{
  color:var(--chalk);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(232,199,1,0.20) 0%, rgba(232,199,1,0) 45%),
    radial-gradient(ellipse at 100% 100%, rgba(232,199,1,0.14) 0%, rgba(232,199,1,0) 40%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 70px, rgba(255,255,255,0) 70px 140px),
    linear-gradient(135deg, var(--pitch) 0%, var(--pitch-dark) 58%, #0B2A17 100%);
}
.home-team :focus-visible{ outline-color:var(--amber); }
.home-team .section-head h2{ color:var(--chalk); }
.home-team .section-head .tag{ color:var(--amber); border-color:var(--amber); }
.meet-grid{ display:grid; grid-template-columns:1fr; gap:24px; }
.meet-block--players, .meet-block--coaches{
  min-width:0; background:rgba(1,30,14,0.55); border:1px solid var(--line); border-radius:6px; padding:22px 20px;
}
.meet-block--coaches{ border-top:4px solid var(--amber); }
.meet-label{ font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--amber); margin-bottom:12px; }
@media (min-width:1024px){ .meet-label{ font-size:14px; } }
.meet-empty{ color:var(--sage-tint); font-size:15px; }
@media (min-width:1024px){ .meet-empty{ font-size:16px; } }
/* Players: three at a time, one row */
.meet-players{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px 12px; }
.meet-player{ display:block; text-decoration:none; color:inherit; }
.meet-photo{
  position:relative; display:flex; align-items:flex-end; justify-content:center; overflow:hidden;
  aspect-ratio:3/4; border-radius:4px;
  background:linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(1,61,28,0.9) 100%);
}
/* Photos fill the frame, anchored at the top so heads are never cut off */
.meet-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; }
.meet-photo img.meet-crest{ width:60%; height:auto; object-fit:contain; align-self:center; opacity:0.9; }
.meet-photo .person-initials{ align-self:center; font-size:clamp(30px, 6vw, 46px); }
.meet-name{ display:block; margin-top:8px; font-weight:700; font-size:15px; line-height:1.25; overflow-wrap:anywhere; }
@media (min-width:1024px){ .meet-name{ font-size:16px; } }
.meet-role{ display:block; font-size:13px; color:var(--sage-tint); text-transform:uppercase; letter-spacing:0.05em; margin-top:2px; }
@media (min-width:1024px){ .meet-role{ font-size:14px; } }
.meet-player:hover .meet-name, .meet-player:focus-visible .meet-name{ color:var(--amber); text-decoration:underline; }
.home-team .meet-name .profile-trigger{ color:inherit; font:inherit; text-align:left; }
.home-team .meet-name .profile-trigger:hover{ color:var(--amber); text-decoration:underline; }
/* Every staff card is one click target (the name button's ::after covers the card): hovering any
   part of the card, the head coach included, highlights the name like the player cards. */
.meet-coach{ cursor:pointer; }
.home-team .meet-coach:hover .meet-name .profile-trigger{ color:var(--amber); text-decoration:underline; }
.home-team .meet-coach .profile-trigger:focus-visible{ color:var(--amber); }
.meet-coaches .meet-photo{ aspect-ratio:1/1; }   /* square: two to a row keeps the box level with the players */
.meet-coach--head .meet-photo{ border:2px solid var(--amber); }
.meet-coach--head .meet-name{ font-size:17px; }
@media (min-width:1024px){ .meet-coach--head .meet-name{ font-size:18px; } }
.meet-coach--head .meet-role{ color:var(--amber); }
.home-team .home-rotator .home-carousel-controls{ margin-top:10px; }
.home-team .home-carousel-btn{ width:40px; height:40px; }
.home-team .home-carousel-count{ font-size:17px; min-width:48px; }
@media (min-width:1024px){ .home-team .home-carousel-count{ font-size:18px; } }
@media (min-width:1024px){
  .meet-grid{ grid-template-columns:1.25fr 1fr; gap:28px; align-items:stretch; }   /* both boxes the same height */
  .meet-block--players, .meet-block--coaches{ padding:26px; }
}

/* ---- Profile cards: club leadership and coaching staff ---- */
.person-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; margin-bottom:8px; }
@media (min-width:768px){ .person-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; } }
@media (min-width:1024px){ .person-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:28px; } }
.person-card{ text-align:center; }
.person-card-photo{
  position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
  aspect-ratio:4/5; border-radius:8px; margin-left:auto; margin-right:auto; width:100%; max-width:340px; background:linear-gradient(170deg, var(--mist) 0%, #DCE8E1 100%);
  border:1px solid #DDE3DF; margin-bottom:10px;
}
.person-card-photo img{ width:100%; height:100%; object-fit:contain; object-position:center; }
.person-card-photo .person-initials{
  width:56%; aspect-ratio:1; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--pitch); color:var(--amber); border:3px solid var(--amber); font-size:clamp(28px, 6vw, 46px);
}
.person-card-name{ font-family:var(--font-ui); font-weight:700; font-size:16px; line-height:1.3; }
.person-card-name .profile-trigger{ font:inherit; color:var(--pitch-dark); text-align:center; }
.person-card-name .profile-trigger:hover{ text-decoration:underline; }
.person-card-name .profile-trigger:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; border-radius:2px; }
.person-card-role{ font-family:var(--font-ui); font-size:13px; color:var(--sage-deep); text-transform:uppercase; letter-spacing:0.05em; margin-top:3px; }
@media (min-width:1024px){ .person-card-role{ font-size:14px; } }
.club-group-head{
  font-family:var(--font-ui); font-size:15px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--bronze-deep); margin:22px 0 14px; padding-bottom:6px; border-bottom:2px solid var(--amber); display:inline-block;
}
@media (min-width:1024px){ .club-group-head{ font-size:16px; } }
.person-card, .meet-coach{ position:relative; }
.staff-profile-photo{ background:var(--mist); }
.staff-profile-photo img{ object-fit:contain; }
.staff-profile-photo img.staff-profile-crest{ width:60%; height:auto; margin:auto; position:relative; top:50%; transform:translateY(-50%); }
.home-matchtabs{ position:relative; }
/* Staff pop-up: position straight under the name */
.profile-position{ margin-top:-4px; font-size:15px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--bronze-deep); }
@media (min-width:1024px){ .profile-position{ font-size:16px; } }
.profile-layout--staff .profile-name{ margin-top:6px; }
/* Hero-panel league table: long club names wrap so the table always fits the panel */
.home-tab-table th, .home-tab-table td{ white-space:nowrap; padding:7px 4px; }
.home-tab-table{ table-layout:fixed; }
.home-tab-table thead th:nth-child(1){ width:28px; }
.home-tab-table thead th:nth-child(3){ width:34px; }
.home-tab-table thead th:nth-child(4){ width:42px; }
.home-tab-table thead th:nth-child(5){ width:46px; }
.home-tab-table thead th, .home-tab-table abbr{ letter-spacing:0.02em; }
.home-tab-table tbody th{ white-space:normal; }
.home-tab-table .club-cell{ display:flex; align-items:center; gap:6px; }
.home-tab-table .club-cell > span:last-child{ min-width:0; overflow-wrap:anywhere; }
@media (max-width:420px){ .home-tab-table{ font-size:14px; } }
.home-tab-table tbody th{ text-transform:none; letter-spacing:0; color:var(--chalk); font-weight:600; overflow:hidden; }
.home-tab-table .club-cell > span:last-child{ white-space:normal; overflow-wrap:break-word; }
/* Tables: full-height, evenly spaced digits so scores and points read as large as the names */
table{ font-variant-numeric:lining-nums tabular-nums; }

/* ---- Life at Grassfield: latest community articles (photo, date, headline) ---- */
.home-life-story{ height:240px; }
.home-life-story img.home-life-crest{ object-fit:contain; padding:28px 28px 90px; background:var(--pitch-dark); }
.home-life-shade{ position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg, rgba(18,19,15,0.92) 0%, rgba(18,19,15,0.55) 45%, rgba(18,19,15,0) 75%); }
.home-life-text{ position:absolute; left:14px; right:14px; bottom:14px; display:block; color:var(--chalk); }
.home-life-text time{ display:block; font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--amber); margin-bottom:4px; }
.home-life-title{
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  font-family:var(--font-display); font-size:23px; line-height:1.08; letter-spacing:0.02em; text-transform:uppercase;
}
.home-life-story:hover .home-life-title, .home-life-story:focus-visible .home-life-title{ text-decoration:underline; }
.home-life-story:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; }
@media (min-width:768px){
  .home-life-tiles--news{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; overflow:visible; margin:0; padding:0; }
  .home-life-tiles--news li{ max-width:none; }
}
@media (min-width:1024px){
  .home-life-tiles--news{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .home-life-story{ height:280px; }
  .home-life-title{ font-size:24px; }
}

/* Meet our team: the squad photo behind the panel, under the club-green shade */
.home-feature--photo{
  /* the squad sits in the middle band of the photo; the shade is darkest at the bottom, where the text is */
  background:
    linear-gradient(0deg, rgba(1,61,28,0.94) 0%, rgba(1,61,28,0.62) 45%, rgba(1,61,28,0.30) 100%),
    var(--feature-img-best, var(--feature-img, none)) center 55% / cover no-repeat,
    var(--pitch);
}

/* Players and coaches: solid club green with amber accents (no photo, no stripes) */
.page-home .home-people{ background:var(--pitch-dark); }
.home-people .meet-block--players, .home-people .meet-block--coaches{ background:var(--pitch); border-color:rgba(232,199,1,0.35); }

/* Technical staff (Team and Academy pages): round photos, not too big, four to a row on desktop */
.person-grid--staff{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px 18px; }
@media (min-width:768px){ .person-grid--staff{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (min-width:1024px){ .person-grid--staff{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:28px 24px; } }
.person-card--round .person-card-photo{
  width:min(100%, 150px); max-width:150px; aspect-ratio:1/1; border-radius:50%;
  background:var(--pitch); border:3px solid var(--amber); margin-bottom:12px;
}
.person-card--round .person-card-photo img{ object-fit:cover; object-position:center top; }
.person-card--round .person-card-photo .person-initials{
  width:100%; height:100%; border:0; border-radius:50%; font-size:46px;
}

/* The last words of a paragraph stay on one line (see the no_orphan template filter) */
.keep-together{ white-space:nowrap; }

/* Club leadership: the same round photos as the technical staff, but bigger */
.person-card--large .person-card-photo{ width:min(100%, 210px); max-width:210px; border-width:4px; }
.person-card--large .person-card-photo .person-initials{ font-size:60px; }

/* Team page: the squad is grouped by position; a little space between the groups */
#first .roster-grid + .club-group-head{ margin-top:30px; }

/* Media page: photos grouped under their headings, with quick links at the top */
.gallery-jump{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; }
.gallery-jump a{
  display:inline-flex; align-items:center; gap:8px; min-height:var(--tap); padding:0 14px;
  border:1px solid var(--pitch); border-radius:999px; color:var(--pitch); text-decoration:none;
  font-family:var(--font-ui); font-size:14px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
}
.gallery-jump a:hover, .gallery-jump a:focus-visible{ background:var(--pitch); color:var(--chalk); }
.gallery-jump-count{ font-size:12px; background:var(--amber); color:var(--ink); border-radius:999px; padding:1px 8px; }
.gallery-group{ scroll-margin-top:96px; }
.gallery-group + .gallery-group{ margin-top:36px; }
.gallery-group-title{
  display:inline-block; font-family:var(--font-display); font-weight:400; font-size:30px; line-height:1;
  letter-spacing:0.03em; text-transform:uppercase; color:var(--pitch-dark);
  padding-bottom:6px; border-bottom:3px solid var(--amber); margin-bottom:8px;
}
.gallery-group-text{ font-family:var(--font-ui); font-size:16px; color:var(--ink-soft); margin-bottom:14px; }
@media (min-width:1024px){
  .gallery-group-title{ font-size:34px; }
  .gallery-group-text{ font-size:17px; }
}

/* Match panel, News tab: the most recent article */
.home-tab-news{ display:block; color:var(--chalk); text-decoration:none; margin-bottom:12px; }
.home-tab-news-img{ display:block; aspect-ratio:16/9; overflow:hidden; border-radius:3px; background:var(--pitch-dark); margin-bottom:10px; }
.home-tab-news-img img{ width:100%; height:100%; object-fit:cover; }
.home-tab-news-meta{ display:block; font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--amber); margin-bottom:4px; }
.home-tab-news-title{ display:block; font-family:var(--font-display); font-size:24px; line-height:1.08; letter-spacing:0.02em; text-transform:uppercase; }
.home-tab-news:hover .home-tab-news-title, .home-tab-news:focus-visible .home-tab-news-title{ text-decoration:underline; }
.home-tab-news:focus-visible{ outline:2px solid var(--amber); outline-offset:4px; }

/* Homepage players: one strip, three in view, sliding one player at a time in a loop */
.meet-loop-viewport{ overflow:hidden; }
.meet-loop-track{ list-style:none; margin:0; padding:0; display:flex; gap:12px; will-change:transform; }
.meet-loop-item{ flex:0 0 calc((100% - 24px) / 3); min-width:0; }
.meet-loop-track:not(.no-anim){ transition:transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.meet-loop-controls{ position:static; margin-top:12px; padding:0; justify-content:flex-end; }
/* Homepage carousels (hero, news stories, gallery): phones and tablets swipe, so no arrows there.
   The hero keeps its dots; the full-screen photo viewer keeps its arrows. With the arrows gone, the
   hero's text no longer needs room beside them. */
@media (hover:none), (max-width:767px){
  .home-carousel .home-carousel-btn, .home-carousel .home-carousel-controls--end{ display:none; }
  .page-home .home-carousel--hero .home-slide-inner{ padding-left:20px; padding-right:20px; }
}
/* Players and staff strips: phones and tablets swipe, so no arrows there. On computers the arrows
   appear while the pointer is on the strip or the keyboard is in it (space kept, so nothing jumps). */
@media (hover:none), (max-width:767px){ .meet-loop-controls{ display:none; } }
@media (hover:hover) and (min-width:768px){
  .meet-loop.is-ready .meet-loop-controls{ opacity:0; transition:opacity .2s ease; }
  .meet-loop.is-ready:hover .meet-loop-controls, .meet-loop.is-ready:focus-within .meet-loop-controls{ opacity:1; }
}
@media (prefers-reduced-motion: reduce){ .meet-loop-track{ transition:none !important; } }

/* Homepage video tile: the cover picture (uploaded, or YouTube's own) under a dark shade;
   without a cover, the club crest on the green background */
.home-video{ isolation:isolate; min-height:280px; }
.home-video-cover{ position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.home-video-crest{ position:absolute; top:42%; left:50%; z-index:-2; width:150px; height:auto; transform:translate(-50%, -50%); opacity:0.25; }
.home-video-shade{ position:absolute; inset:0; z-index:-1; }
.home-video.has-cover .home-video-shade{ background:linear-gradient(0deg, rgba(18,19,15,0.88) 0%, rgba(18,19,15,0.35) 55%, rgba(18,19,15,0.15) 100%); }
@media (min-width:1024px){ .home-video{ min-height:380px; } }

/* Phones: the match panel under the hero is left out; the Match Centre section just below
   shows the next match and the last result */
@media (max-width:767px){
  .home-stage-aside{ display:none; }
}

.home-tab-links{ display:flex; flex-wrap:wrap; gap:0 18px; }

/* Technical staff strip: two in view, sliding one person at a time like the players */
.meet-loop--two .meet-loop-item{ flex:0 0 calc((100% - 12px) / 2); }
.meet-loop .meet-coaches{ display:flex; gap:12px; }

/* Slim title band on detail pages (player, staff, product, membership): same photo, less height */
.page-hero--band{ padding:22px 24px; }
.page-hero .page-hero-title{ font-family:var(--font-display); font-size:clamp(24px, 3.4vw, 32px); letter-spacing:0.02em; text-transform:uppercase; line-height:1.1; color:var(--chalk); margin-top:0; }
.page-hero-title a{ color:var(--chalk); text-decoration:none; }
.page-hero-title a:hover, .page-hero-title a:focus-visible{ color:var(--amber); text-decoration:underline; }

/* ==========================================================================
   Club colours on the inner pages (every page except the homepage): a light green page
   background, with every other section in a slightly deeper green band across the full
   width, so sections are easy to tell apart and white cards stand out. Dark sections
   (The GUFC Way, call-to-action bands) keep their own colours.
   ========================================================================== */
main:not(:has(.page-home)){ background:#F1F6F3; }
main:not(:has(.page-home)) > .table-wrap.light{ background:transparent; }
main:not(:has(.page-home)) > :is(section, .table-wrap.light):nth-child(even){
  background:#E3EEE7;
  box-shadow:0 0 0 100vmax #E3EEE7; clip-path:inset(0 -100vmax);   /* band runs edge to edge */
}
/* Headings in green on the light sections only; dark sections keep their white headings */
main:not(:has(.page-home)) .section-head:not(.table-wrap:not(.light) .section-head):not(.gufc-way .section-head){ border-bottom-color:var(--pitch); }
main:not(:has(.page-home)) .section-head h2:not(.table-wrap:not(.light) h2):not(.gufc-way h2):not(.photo-section h2){ color:var(--pitch-dark); }
main:not(:has(.page-home)) + .partners{
  background:#F1F6F3; box-shadow:0 0 0 100vmax #F1F6F3; clip-path:inset(0 -100vmax);
}
/* Intro text on dark sections (e.g. Recent results): light text, not dark grey on black */
.table-wrap:not(.light) .lede{ color:var(--sage-tint); }

/* ---- Club page: a big crest beside the welcome text ---- */
.club-intro-inner{ align-items:center; }
.club-intro-crest{ width:clamp(110px, 16vw, 200px); height:auto; }
@media (max-width:600px){ .club-intro-inner{ flex-direction:column; align-items:flex-start; gap:16px; } }

/* ---- Club page: a photo beside "Our Journey" (admin history photo, else the crest) ---- */
.journey-row{ align-items:stretch; }
.journey-photo{ margin:0; border-radius:6px; overflow:hidden; border-bottom:4px solid var(--amber); box-shadow:var(--lift-shadow); min-height:260px; }
.journey-photo img{ width:100%; height:100%; min-height:260px; object-fit:cover; object-position:center 30%; display:block; }
.journey-photo--empty{ display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg, var(--pitch) 0%, var(--pitch-dark) 100%); }
.journey-photo--empty img.journey-photo-crest{ width:46%; height:auto; min-height:0; object-fit:contain; }
.journey-row + .timeline{ margin-top:28px; }

/* ---- Shop: the motto in the club colours ---- */
.shop-motto .motto-green{ color:var(--pitch); }
.shop-motto .motto-gold{ color:var(--bronze); }
.shop-motto .motto-both{
  background:linear-gradient(90deg, var(--pitch) 0%, var(--pitch) 45%, var(--bronze) 55%, var(--bronze) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---- WhatsApp: floating chat button on every page, and a button on the contact page ---- */
.whatsapp-float{
  position:fixed; right:18px; bottom:18px; z-index:900; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:#25D366; color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.3); transition:transform 0.2s;
}
.whatsapp-float svg{ width:30px; height:30px; }
.whatsapp-float:hover{ transform:scale(1.06); }
.whatsapp-float:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; }
body.nav-locked .whatsapp-float, body.profile-locked .whatsapp-float{ display:none; }

/* ---- Homepage Match Centre: just the last match and the next match ---- */
@media (min-width:768px){ .home-centre-grid.home-centre-grid--two{ grid-template-columns:repeat(2, minmax(0,1fr)); } }

/* ---- Homepage community: intro, featured story and events, then community news ---- */
.home-community-news{ margin-top:28px; }
.home-community-news .home-news-col-head h3{ font-family:var(--font-display); font-weight:400; font-size:28px; letter-spacing:0.03em; text-transform:uppercase; }

/* ---- Homepage gallery and video side by side ---- */
.home-media-pair{ display:grid; grid-template-columns:1fr; gap:18px; align-items:stretch; }
.home-media-gallery{ min-width:0; }
.home-media-pair .home-video{ min-height:280px; }
@media (min-width:1024px){
  .home-media-pair.has-both{ grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); }
  .home-media-pair.has-both .home-video{ min-height:100%; }
}

/* ---- Homepage player pop-up on phones: the whole photo (not cropped), then the basic facts ---- */
@media (max-width:600px){
  .profile-layout--basic .profile-media{ height:auto; background:var(--pitch-dark); display:flex; justify-content:center; }
  .profile-layout--basic .profile-media img{ width:100%; height:auto; max-height:62vh; object-fit:contain; }
}
/* Light text on the dark community and gallery sections */
.home-community .home-section-intro{ color:var(--sage-tint); }
/* Small community photos in one horizontal row under the text (3-5 photos). Phones: the row
   scrolls sideways; wider screens: all photos side by side. Each opens the image viewer. */
.home-community-photos{
  list-style:none; display:flex; gap:12px; margin:0 0 26px; padding:0 0 4px;
  overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin;
}
.home-community-photos li{ flex:0 0 min(62%, 220px); scroll-snap-align:start; }
@media (min-width:768px){
  .home-community-photos{ overflow:visible; }
  .home-community-photos li{ flex:1 1 0; max-width:240px; }
}
.home-community-photos a{
  display:block; aspect-ratio:4/3; overflow:hidden; border-radius:4px; cursor:zoom-in;
  border:2px solid rgba(232,199,1,0.35); background:var(--pitch);
}
.home-community-photos img{ width:100%; height:100%; object-fit:cover; object-position:center 30%;
  transition:transform var(--ease-card); }
.home-community-photos a:hover, .home-community-photos a:focus-visible{ border-color:var(--amber); }
@media (hover:hover){ .home-community-photos a:hover img{ transform:scale(1.05); } }
@media (prefers-reduced-motion: reduce){ .home-community-photos img{ transition:none; } }
.home-community .home-community-news .home-news-col-head h3{ color:var(--chalk); }
.home-community .home-col-all, .home-moment .section-head .tag{ color:var(--amber); }

/* Homepage: the WhatsApp button stays hidden until the visitor reaches the contact part of the page */
.whatsapp-float--home{ opacity:0; visibility:hidden; transform:translateY(12px); transition:opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s; }
.whatsapp-float--home.is-shown{ opacity:1; visibility:visible; transform:none; transition:opacity 0.25s, transform 0.25s, visibility 0s; }
@media (prefers-reduced-motion: reduce){ .whatsapp-float--home, .whatsapp-float--home.is-shown{ transition:none; transform:none; } }

.shop-ask{ margin-top:18px; }

/* Partner With Us: every partner as a logo card (no sliding strip on this page) */
.partner-wall{ list-style:none; margin:18px 0 8px; padding:0; display:grid; gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); }
.partner-card{ margin:0; }
.partner-card > a, .partner-card{ color:inherit; text-decoration:none; }
.partner-card > a, .partner-card:not(:has(> a)){ display:flex; flex-direction:column; align-items:center; gap:10px;
  height:100%; padding:18px 14px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.partner-card-logo{ display:flex; align-items:center; justify-content:center; height:84px; width:100%; }
.partner-card-logo img{ max-height:100%; max-width:100%; object-fit:contain; }
.partner-card-logo img.img-missing{ display:none; }
.partner-card-name{ font-weight:700; text-align:center; font-size:.95rem; }
@media (prefers-reduced-motion: no-preference){
  .partner-card > a{ transition:transform var(--ease-card), box-shadow var(--ease-card); }
  @media (hover:hover){ .partner-card > a:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.08); } }
}
.partner-card > a:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; }

/* ---- Homepage player pop-up (basic): a small centred card on every screen, never a full-screen
   sheet. Passport-style photo (3:4 portrait, cropped from the top) beside the name and facts. ---- */
.profile-dialog:has(.profile-layout--basic){
  margin:auto; width:min(440px, calc(100% - 32px)); max-height:calc(100dvh - 48px);
  border-radius:12px; box-shadow:0 24px 60px rgba(0,0,0,0.4);
}
.profile-dialog:has(.profile-layout--basic) .profile-dialog-body{ max-height:calc(100dvh - 48px); }
.profile-dialog:has(.profile-layout--basic) .profile-close{ width:40px; height:40px; min-width:40px; min-height:40px; font-size:24px; top:8px; right:8px; }
.profile-layout.profile-layout--basic{
  display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; align-items:start;
  padding:20px 20px 22px;
}
.profile-layout--basic .profile-media,
.profile-layout--basic .profile-media img{ width:112px; height:auto; }
.profile-layout.profile-layout--basic .profile-media{
  aspect-ratio:3 / 4; height:auto; min-height:0; border-radius:8px; border:3px solid var(--amber);
  background:var(--pitch-dark); display:block;
}
.profile-layout.profile-layout--basic .profile-media img{
  width:100%; height:100%; max-height:none; object-fit:cover; object-position:center 15%;
}
.profile-layout--basic .profile-placeholder{ font-size:44px; }
.profile-layout.profile-layout--basic .profile-main{ padding:0 40px 0 0; }
.profile-layout--basic .profile-name{ font-size:28px; margin:2px 0 10px; }
.profile-layout--basic .profile-facts{ grid-template-columns:1fr; gap:6px; padding:10px 0 0; border-bottom:0; }
.profile-layout--basic .profile-facts > div{ display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.profile-layout--basic .profile-facts dt{ font-size:12px; }
.profile-layout--basic .profile-facts dd{ font-size:16px; }
.profile-layout--basic .profile-link{ grid-column:1 / -1; justify-content:center; margin-top:2px; font-size:14px; white-space:nowrap; }
@media (max-width:380px){
  .profile-layout.profile-layout--basic{ grid-template-columns:92px minmax(0,1fr); gap:12px; padding:16px; }
  .profile-layout--basic .profile-media{ width:92px; }
  .profile-layout--basic .profile-name{ font-size:24px; }
}

/* Long "view all" links (e.g. French "Toutes les actualités de la communauté") may wrap on phones
   instead of widening the page; the heading row wraps under the heading when space runs out. */
.home-news-col-head{ flex-wrap:wrap; }
@media (max-width:600px){ .home-col-all{ white-space:normal; } }
/* Section buttons never wider than the screen; a long French label wraps inside its pill */
.gallery-jump a{ max-width:100%; white-space:normal; }

/* ---- Full player pop-up on larger screens: the photo is a 3:4 portrait floated at the top left
   (never stretched to the height of the pop-up, which zoomed into the face). The name and facts sit
   beside it and a long biography wraps around it, then continues underneath at full width. ---- */
@media (min-width:601px){
  .profile-layout--player:not(.profile-layout--basic){ display:flow-root; }
  .profile-layout--player:not(.profile-layout--basic) .profile-media{
    float:left; width:236px; height:auto; min-height:0; aspect-ratio:3 / 4;
    margin:24px 24px 4px 24px; border-radius:8px; border:3px solid var(--amber);
  }
  .profile-layout--player:not(.profile-layout--basic) .profile-media img{ object-position:center 15%; }
  .profile-layout--player:not(.profile-layout--basic) .profile-placeholder{ font-size:72px; }
  /* The facts grid stays beside the photo; the biography paragraphs flow under it */
  .profile-layout--player:not(.profile-layout--basic) .profile-facts{ display:grid; overflow:hidden; }
}

/* ---- Player pop-up on phones (Team and Academy pages): the whole photo, then the key facts only
   (position, squad number, nationality, date of birth, height, weight, preferred foot) and the
   "View full profile" button. The biography and career history stay on the full profile page. ---- */
@media (max-width:600px){
  .profile-layout--player:not(.profile-layout--basic) .profile-media{
    height:auto; background:var(--pitch-dark); display:flex; justify-content:center;
  }
  .profile-layout--player:not(.profile-layout--basic) .profile-media img{
    width:100%; height:auto; max-height:55vh; object-fit:contain;
  }
  .profile-layout--player:not(.profile-layout--basic) .profile-kicker,
  .profile-layout--player:not(.profile-layout--basic) .profile-bio,
  .profile-layout--player:not(.profile-layout--basic) .profile-subhead,
  .profile-layout--player:not(.profile-layout--basic) .profile-career{ display:none; }
  .profile-layout--player:not(.profile-layout--basic) .profile-link{ display:flex; justify-content:center; }
}

/* ---- Push notifications: footer on/off button and the installed app's one-time banner ---- */
.push-toggle{
  background:none; border:0; padding:0; min-height:var(--tap); font:inherit; color:inherit;
  text-decoration:underline; text-underline-offset:3px; cursor:pointer; text-align:left;
}
.push-toggle:disabled{ cursor:default; text-decoration:none; opacity:0.75; }
.push-toggle:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; }
.push-banner{
  position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:60;
  max-width:520px; margin:0 auto; padding:14px 16px; border-radius:12px;
  background:var(--pitch-dark); color:var(--chalk); border:2px solid var(--amber);
  box-shadow:0 12px 32px rgba(0,0,0,0.35);
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px;
}
.push-banner[hidden]{ display:none; }
.push-banner p{ flex:1 1 220px; margin:0; font-size:15px; line-height:1.4; }
.push-banner-actions{ display:flex; gap:8px; }
.push-banner button{
  min-height:var(--tap); padding:0 16px; border-radius:6px; font:inherit; font-weight:700; cursor:pointer;
}
.push-banner-on{ background:var(--amber); color:var(--ink); border:0; }
.push-banner-later{ background:transparent; color:var(--chalk); border:1px solid rgba(255,255,255,0.5); }
.push-banner button:focus-visible{ outline:3px solid var(--chalk); outline-offset:2px; }

/* ---- Player profile page on larger screens: same idea as the pop-up. The photo floats at the
   top left; the name and fact boxes sit beside it, and the biography wraps around it and then
   continues underneath at full width (instead of a narrow text column next to empty space). ---- */
@media (min-width:769px){
  .player-profile-hero{ display:flow-root; }
  .player-profile-photo{ float:left; width:280px; margin:0 32px 12px 0; }
  .player-profile-facts{ overflow:hidden; }          /* the fact boxes stay beside the photo */
}

/* ==========================================================================
   Shop (official club store look): category bar, product cards on a light stage,
   clear name and price, badges, and a photo that opens the image viewer.
   Cards: partials/shop_card.html. Product page: product_detail.html.
   ========================================================================== */
.shop{ padding-top:28px; }
.shop-nav{
  flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; gap:6px;
  margin:0 0 28px; padding:0 0 10px; border-bottom:1px solid rgba(1,97,45,0.15);
}
.shop-nav a{ flex:0 0 auto; white-space:nowrap; }
@media (min-width:768px){ .shop-nav{ flex-wrap:wrap; overflow:visible; } }

/* Sections: a short section (one or two products) sits beside the next one on wide screens,
   so the page is not a column of single cards. --count is the number of products. */
.shop-sections{ display:flex; flex-wrap:wrap; gap:32px 14px; align-items:flex-start; }
@media (min-width:768px){ .shop-sections{ gap:36px 24px; } }
.shop .shop-section{ flex:1 1 calc(var(--count, 1) * 150px + (var(--count, 1) - 1) * 14px); max-width:100%; min-width:0; scroll-margin-top:96px; }
.shop .gallery-group + .gallery-group{ margin-top:0; }
@media (min-width:768px){
  .shop .shop-section{ flex:1 1 calc(var(--count, 1) * 230px + (var(--count, 1) - 1) * 18px); max-width:100%; }
}
.shop .gallery-group-title{ margin-bottom:14px; }
.shop .shop-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:22px 14px; }
@media (max-width:599px){ .shop .gallery-group-title{ font-size:26px; } }
@media (min-width:768px){ .shop .shop-grid{ grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:28px 18px; } }

.shop-card{ display:flex; flex-direction:column; min-width:0; height:100%; }
.shop-card-media{ position:relative; }
.shop-card-img{
  position:relative; display:block; aspect-ratio:4/5; overflow:hidden; border-radius:4px;
  background:linear-gradient(180deg, #F7F8F6 0%, #ECEFEC 100%); cursor:zoom-in;
}
.shop-card-photo{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:6%;
  transition:opacity var(--ease-card), transform var(--ease-card);
}
.shop-card-photo--alt{ opacity:0; }
@media (hover:hover){
  .shop-card:hover .shop-card-photo{ transform:scale(1.04); }
  .shop-card:hover .shop-card-img:has(.shop-card-photo--alt) .shop-card-photo:not(.shop-card-photo--alt){ opacity:0; }
  .shop-card:hover .shop-card-photo--alt{ opacity:1; }
}
.shop-card-img:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; }
.shop-card-img--empty{ cursor:pointer; display:flex; align-items:center; justify-content:center; background:var(--mist); }
.shop-card-img--empty img{ width:38%; height:auto; opacity:0.35; }
.shop-card.is-sold-out .shop-card-photo{ filter:grayscale(0.7); opacity:0.7; }
.shop-badge{
  position:absolute; top:10px; left:10px; z-index:1; pointer-events:none;
  font-family:var(--font-ui); font-size:11px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase;
  background:var(--amber); color:var(--ink); padding:5px 9px; border-radius:2px;
}
.shop-badge--out{ background:var(--ink); color:var(--chalk); }
.shop-badge--inline{ position:static; display:inline-block; vertical-align:middle; margin-left:8px; }
.shop-card-count{
  position:absolute; right:10px; bottom:10px; z-index:1; pointer-events:none;
  display:inline-flex; align-items:center; gap:4px;
  font-family:var(--font-ui); font-size:12px; font-weight:700; color:var(--ink);
  background:rgba(255,255,255,0.9); padding:3px 8px; border-radius:999px;
}
.shop-card-body{ display:flex; flex-direction:column; flex-grow:1; padding:12px 2px 0; }
.shop-card-name{
  font-family:var(--font-ui); font-size:15px; font-weight:700; line-height:1.3;
  text-transform:uppercase; letter-spacing:0.02em;
}
@media (min-width:1024px){ .shop-card-name{ font-size:16px; } }
.shop-card-name a{ color:var(--ink); text-decoration:none; }
.shop-card-name a:hover{ color:var(--pitch); text-decoration:underline; }
.shop-card-price{ font-family:var(--font-display); font-size:23px; letter-spacing:0.03em; line-height:1.1; color:var(--pitch); margin-top:6px; }
@media (min-width:1024px){ .shop-card-price{ font-size:25px; } }
.shop-card.is-sold-out .shop-card-price{ color:var(--ink-soft); }
.shop-card-actions{ display:flex; gap:8px; margin-top:auto; padding-top:12px; }

/* Shop buttons: amber on dark green (club colours), WhatsApp in its own green */
.shop-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:var(--tap);
  padding:0 12px; border-radius:2px; border:2px solid transparent; text-decoration:none; white-space:nowrap;
  font-family:var(--font-ui); font-size:12px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
  transition:background var(--ease-card), color var(--ease-card), border-color var(--ease-card);
}
@media (min-width:1024px){ .shop-btn{ font-size:13px; } }
.shop-card-actions .shop-btn--primary{ min-width:0; white-space:normal; text-align:center; line-height:1.25; padding:6px 10px; }
.shop-btn--primary{ flex:1 1 auto; background:var(--pitch-dark); color:var(--amber); border-color:var(--pitch-dark); }
.shop-btn--primary:hover{ background:var(--amber); color:var(--pitch-dark); border-color:var(--amber); }
.shop-btn--wa{ flex:0 0 auto; background:#1F7A3E; color:#fff; border-color:#1F7A3E; padding:0 12px; }
.shop-btn--wa:hover{ background:#fff; color:#1F7A3E; }
.shop-btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
.shop-btn--lg{ min-height:50px; padding:0 22px; }

/* Product page */
.product-detail{ grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:44px; align-items:start; }
.product-detail-gallery{ position:sticky; top:96px; }
.product-detail-gallery .main-img{
  position:relative; display:block; aspect-ratio:4/5; border-radius:4px; margin-bottom:12px;
  background:linear-gradient(180deg, #F7F8F6 0%, #ECEFEC 100%); cursor:zoom-in;
}
.product-detail-gallery .main-img img{ object-fit:contain; padding:5%; }
.product-detail-gallery .main-img:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; }
.main-img--empty{ display:flex !important; align-items:center; justify-content:center; cursor:default !important; }
.main-img--empty img{ width:40% !important; height:auto !important; opacity:0.35; }
.product-zoom{
  position:absolute; right:12px; bottom:12px; width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.92); color:var(--pitch-dark);
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
}
.product-detail-thumbs{ list-style:none; display:grid; grid-template-columns:repeat(auto-fill, minmax(72px, 1fr)); gap:8px; }
.product-detail-thumbs[hidden]{ display:none; }
.product-detail-thumbs a{ display:block; aspect-ratio:1/1; border-radius:3px; overflow:hidden; background:#F1F3F1; border:2px solid transparent; cursor:zoom-in; }
.product-detail-thumbs a:hover, .product-detail-thumbs a:focus-visible{ border-color:var(--pitch); outline:none; }
.product-detail-thumbs img{ width:100%; height:100%; object-fit:contain; padding:6%; border:0; }
.product-detail-cat{
  font-family:var(--font-ui); font-size:13px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--sage-deep); margin-bottom:6px;
}
.product-detail-info h1{ line-height:1.05; }
.product-detail-info .price{ font-family:var(--font-display); font-size:32px; letter-spacing:0.03em; line-height:1.1; color:var(--pitch); margin-top:12px; }
.product-option{ margin-top:20px; }
.product-option-label{ font-family:var(--font-ui); font-size:14px; font-weight:700; margin-bottom:8px; }
.product-sizes{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; }
.product-sizes li{
  min-width:48px; min-height:40px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-ui); font-size:14px; font-weight:700; border:1px solid rgba(18,19,15,0.25); border-radius:2px; background:#fff;
}
.product-colours{ margin-top:14px; }
.product-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; padding-top:22px; border-top:1px solid rgba(18,19,15,0.1); }
.product-actions .shop-btn--primary{ flex:1 1 220px; }
.product-actions .shop-btn--wa{ flex:1 1 200px; }
.product-detail-subhead{
  font-family:var(--font-ui); font-size:13px; font-weight:800; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--ink); margin-top:28px;
}
.product-detail-specs{ margin-top:8px; }
.enquiry-section{ scroll-margin-top:96px; }
@media (max-width:768px){
  .product-detail{ grid-template-columns:1fr; gap:24px; }
  .product-detail-gallery{ position:static; }
}

/* Privacy notice page and the one-line notice under the forms */
.privacy h2.club-subhead{ margin-top:34px; }
.privacy-subhead{ font-family:var(--font-ui); font-size:16px; font-weight:700; margin:18px 0 6px; color:var(--pitch-dark); }
@media (min-width:1024px){ .privacy-subhead{ font-size:17px; } }
.privacy p, .privacy-list li{ font-family:var(--font-ui); font-size:16px; line-height:1.7; color:var(--ink-soft); max-width:80ch; }
@media (min-width:1024px){ .privacy p, .privacy-list li{ font-size:17px; } }
.privacy-list{ padding-left:20px; }
.privacy-list li + li{ margin-top:6px; }
.privacy a{ color:var(--pitch); font-weight:600; }
.privacy-updated{ margin-top:34px; font-size:14px !important; }
.form-privacy-note{ font-family:var(--font-ui); font-size:14px; line-height:1.5; color:var(--ink-soft); margin-top:12px; }
.form-privacy-note a{ color:var(--pitch); font-weight:600; }

/* Cookie banner: same look as the notifications banner, above the WhatsApp button */
.consent-banner{ z-index:1100; }
.consent-banner a{ color:var(--amber); font-weight:600; }
.footer-link-btn{
  appearance:none; background:none; border:0; padding:0; margin:0; cursor:pointer;
  font:inherit; color:inherit; text-decoration:underline; min-height:var(--tap);
}
.footer-link-btn[hidden]{ display:none; }
.footer-link-btn:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }

/* Media page videos: click to play (nothing loads from YouTube before that) */
.video-facade{ display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--pitch-dark); }
.video-facade-cover{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video-facade-crest{ width:28%; height:auto; opacity:0.45; }
.video-facade-play{
  position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; cursor:pointer;
  background:linear-gradient(180deg, rgba(1,61,28,0.1), rgba(1,61,28,0.55));
  display:flex; align-items:center; justify-content:center;
}
.video-facade-play[hidden]{ display:none; }
.video-facade-icon{
  width:64px; height:64px; border-radius:50%; background:var(--amber); box-shadow:0 6px 18px rgba(0,0,0,0.35);
  display:block; position:relative; transition:transform var(--ease-card);
}
.video-facade-icon::after{
  content:''; position:absolute; left:26px; top:20px; border-style:solid; border-width:12px 0 12px 19px;
  border-color:transparent transparent transparent var(--ink);
}
.video-facade-play:hover .video-facade-icon, .video-facade-play:focus-visible .video-facade-icon{ transform:scale(1.08); }
.video-facade-play:focus-visible{ outline:3px solid var(--amber); outline-offset:-3px; }
.video-facade-note{
  position:absolute; left:8px; bottom:6px; margin:0; pointer-events:none;
  font-family:var(--font-ui); font-size:12px; color:var(--chalk); text-shadow:0 1px 3px rgba(0,0,0,0.7);
}
.video-facade-link{ position:relative; color:var(--amber); font-weight:700; font-family:var(--font-ui); }

/* Consent box under the contact and shop forms: a normal sentence, not an uppercase field label */
.form-group.form-consent{ display:flex; align-items:flex-start; gap:10px; margin:6px 0 16px; }
.form-group.form-consent input[type="checkbox"]{ width:22px; height:22px; min-height:0; flex:0 0 22px; margin:2px 0 0; padding:0; accent-color:var(--pitch); }
.form-group.form-consent label{
  font-family:var(--font-ui); font-size:15px; font-weight:500; line-height:1.45; text-transform:none; letter-spacing:0;
  color:var(--ink); margin:0;
}
.form-group.form-consent label a{ color:var(--pitch); font-weight:700; }

/* Shop page banner: fans in the club kits (replaceable in the admin) */
.page-hero--shop{
  background:
    linear-gradient(90deg, rgba(1,61,28,0.92) 0%, rgba(1,61,28,0.72) 50%, rgba(1,61,28,0.40) 100%),
    var(--shop-hero-best, var(--shop-hero-img, url("img/shop-fans-banner.002992799291.jpg"))) var(--shop-hero-pos, center 30%) / cover no-repeat,
    var(--pitch-dark);
}
@media (min-width:1024px){ .page-hero--shop{ padding-top:64px; padding-bottom:64px; } }

/* "Worn by the GUFC family": fans in the kit, after the products; each photo opens the viewer */
.shop-fans .lede{ margin-bottom:16px; }
.shop-fans-grid{ list-style:none; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
@media (min-width:768px){ .shop-fans-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; } }
.shop-fans-grid a{ display:block; aspect-ratio:4/5; overflow:hidden; border-radius:4px; cursor:zoom-in; background:var(--pitch-dark); }
.shop-fans-grid img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; transition:transform var(--ease-card); }
@media (hover:hover){ .shop-fans-grid a:hover img{ transform:scale(1.04); } }
.shop-fans-grid a:focus-visible{ outline:3px solid var(--pitch); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){ .shop-fans-grid img{ transition:none; } }

/* Photo links that hold a screen-reader label (.sr-only, absolutely positioned) must be its
   containing block; otherwise the label escapes a scrolling row (homepage community photos) and
   widens the page on phones. */
.home-community-photos a, .shop-fans-grid a, .article-photo-link, .article-image-link,
.product-detail-thumbs a{ position:relative; }   /* .home-moment-open is already absolutely positioned */

/* "Join the GUFC Family" > "Wear the colours": merchandise and fans gliding like the players strip */
.home-join-panel--gallery .join-gallery{ margin-top:4px; }
.join-gallery-item{ display:block; color:inherit; text-decoration:none; }
.join-gallery-photo{
  position:relative; display:block; aspect-ratio:4/5; overflow:hidden; border-radius:6px;
  background:rgba(255,255,255,0.08); border:1px solid rgba(232,199,1,0.35);
}
.join-gallery-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 25%; transition:transform var(--ease-card); }
.join-gallery-caption{
  display:block; margin-top:8px; font-family:var(--font-ui); font-size:14px; font-weight:600; line-height:1.3; color:var(--chalk);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
@media (min-width:1024px){ .join-gallery-caption{ font-size:15px; } }
@media (hover:hover){
  .join-gallery-item:hover img{ transform:scale(1.04); }
  .join-gallery-item:hover .join-gallery-caption{ color:var(--amber); }
}
.join-gallery-item:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; border-radius:6px; }
@media (prefers-reduced-motion: reduce){ .join-gallery-photo img{ transition:none; } }
/* Grid columns grow to fit their content unless told otherwise: without min-width:0 the
   gliding merchandise strip (many slides in one row) widened the whole page */
.home-join-grid > *, .home-join-panel--gallery, .join-gallery{ min-width:0; }
.join-gallery{ width:100%; max-width:100%; align-self:stretch; }   /* the panel's width, never its slides' */

/* "Wear the colours" across the whole "Join the GUFC Family" section (no shop panel, no arrows):
   2 photos in view on phones, 3 on tablets, 4 on wider screens; "Visit the shop" centred below */
.home-join-gallery{ margin-top:26px; min-width:0; }
.home-join-gallery-title{
  font-family:var(--font-display); font-weight:400; font-size:26px; letter-spacing:0.04em; text-transform:uppercase;
  color:var(--amber); margin:0 0 14px;
}
@media (min-width:1024px){ .home-join-gallery-title{ font-size:30px; } }
.join-gallery .meet-loop-track{ gap:12px; }
.join-gallery .meet-loop-item{ flex:0 0 calc((100% - 12px) / 2); }
/* Two per row on every phone, large ones and landscape included; three from 900 px */
@media (min-width:900px){ .join-gallery .meet-loop-item{ flex-basis:calc((100% - 24px) / 3); } }
@media (min-width:1024px){
  .join-gallery .meet-loop-track{ gap:16px; }
  .join-gallery .meet-loop-item{ flex-basis:calc((100% - 48px) / 4); }
}
.join-gallery-item{ cursor:zoom-in; }
.home-join-gallery-cta{ display:flex; justify-content:center; margin-top:22px; }

/* Community page: fan photos behind "Become a GUFC Member" and the Fan Page, across the whole width,
   under the club-green shade; light text (admin: Hero pictures & page banners) */
.photo-section{ position:relative; isolation:isolate; color:var(--chalk); }
.photo-section::before{
  content:""; position:absolute; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); z-index:-1;
  background:
    linear-gradient(90deg, rgba(1,30,14,0.9) 0%, rgba(1,30,14,0.8) 55%, rgba(1,30,14,0.62) 100%),
    var(--section-img-best, var(--section-img, none)) var(--section-pos, center 30%) / cover no-repeat,
    var(--pitch-dark);
}
.photo-section h2, .photo-section h3, .photo-section h4{ color:var(--chalk); }
.photo-section .club-subhead{ color:var(--amber); }
.photo-section .section-head{ border-bottom-color:rgba(255,255,255,0.25); }
.photo-section p, .photo-section .lede, .photo-section li{ color:var(--sage-tint); }
.photo-section strong{ color:var(--chalk); }
.photo-section a:not(.cta-join):not(.membership-tile){ color:var(--amber); }
.photo-section .section-head{ border-bottom-color:var(--amber); }
.photo-section .tick-list li{ border-bottom-color:rgba(255,255,255,0.12); }
.photo-section .tick-list li::before{ border-color:var(--amber); }

/* Phones: long headlines on the homepage news stop after a few lines, so one long title cannot
   stretch its card (full headline on the article page) */
@media (max-width:640px){
  .home-compact-title, .home-archive-headline, .home-news-lead-title{
    display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
  .home-compact-title, .home-archive-headline{ -webkit-line-clamp:4; line-clamp:4; }
  .home-news-lead-title{ -webkit-line-clamp:3; line-clamp:3; }
}

/* "Partners coming soon." under Our Partners while no partner logos are added */
.partners-empty{ margin:4px 0 0; font-family:var(--font-ui); font-size:15px; color:var(--ink-soft); }

/* Homepage match cards and hero match panel: the competition in small type, directly above the score line */
.home-mc-comp{ margin:0 0 4px; font-family:var(--font-ui); font-size:10px; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--amber); text-align:center; line-height:1.3; }
@media (min-width:1024px){ .home-mc-comp{ font-size:11px; } }

/* ===== Kit pop-up (partials/kit_popup.html): bottom-left corner, clear of the WhatsApp button ===== */
.kit-popup{
  position:fixed; left:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:55;
  width:min(330px, calc(100vw - 96px));
  padding:10px 34px 10px 10px; border-radius:10px;
  background:var(--pitch-dark); color:var(--chalk); border:2px solid var(--amber);
  box-shadow:0 12px 32px rgba(0,0,0,0.35);
  opacity:0; transform:translateY(16px); transition:opacity 0.3s ease-out, transform 0.3s ease-out;
}
.kit-popup[hidden], .kit-popup-slide[hidden]{ display:none; }
.kit-popup-slide{ display:grid; grid-template-columns:76px minmax(0,1fr); gap:12px; align-items:center; }
.kit-popup-slide.is-active{ animation:kit-popup-in 0.4s ease-out; }
@keyframes kit-popup-in{ from{ opacity:0; } to{ opacity:1; } }
.kit-popup.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .kit-popup{ transition:none; transform:none; } .kit-popup-slide.is-active{ animation:none; } }
body.nav-locked .kit-popup, body.profile-locked .kit-popup{ display:none; }
.kit-popup-img{ display:block; width:76px; height:76px; border-radius:6px; overflow:hidden; background:var(--chalk); }
.kit-popup-img img{ width:100%; height:100%; object-fit:contain; display:block; }
.kit-popup-body{ min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.kit-popup-kicker{ margin:0; font-family:var(--font-ui); font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--amber); }
.kit-popup-title{ margin:0; font-family:var(--font-ui); font-size:14px; font-weight:700; line-height:1.3; color:var(--chalk);
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.kit-popup-price{ margin:0; font-family:var(--font-ui); font-size:13px; color:var(--sage-tint); }
.kit-popup-cta{
  margin-top:6px; display:inline-flex; align-items:center; min-height:36px; padding:6px 14px; border-radius:4px;
  background:var(--amber); color:var(--ink); text-decoration:none;
  font-family:var(--font-ui); font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
}
@media (hover:hover){ .kit-popup-cta:hover{ background:var(--chalk); } }
.kit-popup-cta:focus-visible, .kit-popup-close:focus-visible{ outline:3px solid var(--chalk); outline-offset:2px; }
.kit-popup-close{
  position:absolute; top:4px; right:4px; width:32px; height:32px; border:0; border-radius:50%;
  background:transparent; color:var(--chalk); font-size:22px; line-height:1; cursor:pointer;
}
@media (hover:hover){ .kit-popup-close:hover{ background:rgba(255,255,255,0.12); } }
/* Phones: a compact card */
@media (max-width:599px){
  .kit-popup{ padding:8px 30px 8px 8px; width:min(300px, calc(100vw - 92px)); }
  .kit-popup-slide{ grid-template-columns:56px minmax(0,1fr); gap:10px; }
  .kit-popup-img{ width:56px; height:56px; }
  .kit-popup-title{ font-size:13px; }
  .kit-popup-price{ font-size:12px; }
  .kit-popup-cta{ min-height:32px; padding:5px 12px; font-size:11px; }
}
@media (min-width:1024px){
  .kit-popup{ left:20px; bottom:20px; }
  .kit-popup-title{ font-size:15px; }
}

/* Played match (hero Result tab, Last match card): "Full time" directly above the score */
.home-ft{ margin:0 0 6px; }
.home-mc-result{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.home-mc-ft{ font-family:var(--font-ui); font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--sage-tint); }
@media (min-width:1024px){ .home-mc-ft{ font-size:12px; } }

/* Match Centre rows: the competition in small type directly above the score / kick-off time */
.fixture-row .score-wrap{ display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; }
.fixture-comp{ font-family:var(--font-ui); font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--crest-red); text-align:center; line-height:1.25; max-width:130px; }
@media (min-width:1024px){ .fixture-comp{ font-size:11px; } }

/* Club page: the Vision & Mission introduction sits above the two cards */
.vm-intro{ margin:0 0 16px; }

.gallery-item a{ cursor:zoom-in; }
.gallery-item a:focus-visible{ outline:3px solid var(--amber); outline-offset:-3px; }

/* Media page videos: every tile the same 16:9 shape (rows line up); the video plays in a pop-up player
   shaped for it: wide, or tall (.is-tall) for TikTok, reels, Shorts and tall uploaded videos */
.video-dialog{
  width:100%; max-width:none; height:100vh; height:100dvh; max-height:none; margin:0; padding:64px 12px 16px;
  border:0; background:transparent; color:var(--chalk); overflow:hidden;
}
.video-dialog[open]{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; animation:profile-fade-in 0.2s ease-out; }
.video-dialog::backdrop{ background:rgba(18,19,15,0.94); }
.video-dialog-stage{
  position:relative; background:#000; border-radius:4px; overflow:hidden;
  aspect-ratio:16/9; width:min(100%, 1100px, calc((100vh - 150px) * 16 / 9)); width:min(100%, 1100px, calc((100dvh - 150px) * 16 / 9));
}
.video-dialog.is-tall .video-dialog-stage{ aspect-ratio:9/16; width:min(100%, 420px, calc((100vh - 150px) * 9 / 16)); width:min(100%, 420px, calc((100dvh - 150px) * 9 / 16)); }
.video-dialog-stage iframe, .video-dialog-stage video{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; background:#000; object-fit:contain; }
.video-dialog-title{ margin:0; max-width:70ch; text-align:center; font-family:var(--font-ui); font-size:17px; font-weight:600; line-height:1.4; }


/* ---- WebP background photos (club/responsive_images.py) ----
   Browsers that understand image-set() with type() all show WebP, so they get a smaller WebP copy:
   960 px wide on phones, 1600 px on larger screens. Every other browser keeps the original JPEG above.
   A *-webp variable is set by the template next to the photo it replaces (an admin-chosen banner or
   band); the built-in photos' copies are named here. Without a copy, the original is used. */
@supports (background-image: image-set(url("img/page-hero-squad.960.23c946a96bb0.webp") type("image/webp") 1x)){
  .page-hero{
    --page-hero-best:var(--page-hero-webp, url("img/page-hero-squad.1600.919db881f30d.webp"));
    --community-hero-best:var(--community-hero-webp, url("img/community-orphanage-visit.1600.f2862a8c3181.webp"));
    --shop-hero-best:var(--shop-hero-webp, url("img/shop-fans-banner.1600.7afe21023c36.webp"));
  }
  .page-home .home-photo-band{ --band-img-best:var(--band-img-webp); }
  .home-feature--photo{ --feature-img-best:var(--feature-img-webp); }
  .photo-section{ --section-img-best:var(--section-img-webp); }
  @media (max-width:760px){
    .page-hero{
      --page-hero-best:var(--page-hero-webp-sm, url("img/page-hero-squad.960.23c946a96bb0.webp"));
      --community-hero-best:var(--community-hero-webp-sm, url("img/community-orphanage-visit.960.c1d13dc2bc2c.webp"));
      --shop-hero-best:var(--shop-hero-webp-sm, url("img/shop-fans-banner.960.2bbd9946c729.webp"));
    }
    .page-home .home-photo-band{ --band-img-best:var(--band-img-webp-sm, var(--band-img-webp)); }
    .home-feature--photo{ --feature-img-best:var(--feature-img-webp-sm, var(--feature-img-webp)); }
    .photo-section{ --section-img-best:var(--section-img-webp-sm, var(--section-img-webp)); }
  }
}

/* A photo with WebP copies sits in <picture class="rimg">; the wrapper takes no part in the layout,
   so the photo is laid out exactly as it was without it. */
picture.rimg{ display:contents; }

/* ---- Man of the Match voting (templates/motm_vote.html, partials/motm_cards.html) ---- */
.motm{ max-width:860px; }
.motm .lede{ margin-bottom:16px; }
.motm-ballot{ border:0; margin:0 0 18px; padding:0; display:grid; gap:10px; grid-template-columns:1fr; }
@media (min-width:700px){ .motm-ballot{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
.motm-choice{ display:flex; align-items:center; gap:12px; min-height:var(--tap); padding:10px 12px; background:var(--chalk);
  border:2px solid var(--sage-tint); border-radius:6px; cursor:pointer; font-family:var(--font-ui); transition:border-color var(--ease-card); }
.motm-choice:hover{ border-color:var(--sage-deep); }
.motm-choice:has(input:checked){ border-color:var(--pitch); background:var(--mist); }
.motm-choice input{ width:20px; height:20px; accent-color:var(--pitch); flex:none; }
.motm-choice:has(input:focus-visible){ outline:3px solid var(--amber); outline-offset:2px; }
.motm-photo{ flex:none; width:56px; height:56px; border-radius:50%; overflow:hidden; background:var(--mist); display:inline-flex; align-items:center; justify-content:center; }
.motm-photo img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.motm-photo--big{ width:120px; height:120px; }
.motm-who{ display:flex; flex-direction:column; min-width:0; }
.motm-name{ font-weight:700; color:var(--ink); }
.motm-num{ display:inline-block; min-width:1.8em; color:var(--pitch); font-family:var(--font-display); font-size:20px; }
.motm-role{ font-size:13px; color:var(--ink-soft); }
.motm-thanks, .motm-winner{ background:var(--pitch-dark); color:var(--chalk); padding:20px; border-radius:6px; margin-bottom:20px; }
.motm-thanks h2, .motm-winner h2{ font-family:var(--font-display); font-size:30px; letter-spacing:0.02em; margin:0 0 6px; }
.motm-thanks p, .motm-winner p{ color:var(--sage-tint); font-family:var(--font-ui); }
.motm-winner .eyebrow{ color:var(--amber); }
.motm-winner-card{ display:flex; align-items:center; gap:16px; margin:10px 0; }
.motm-winner .motm-num{ color:var(--amber); }
.motm-results-title{ font-family:var(--font-display); font-size:26px; margin:8px 0 10px; }
.motm-results{ list-style:none; margin:0 0 20px; padding:0; display:grid; gap:8px; font-family:var(--font-ui); }
.motm-results li{ position:relative; display:flex; justify-content:space-between; gap:12px; padding:10px 12px; background:var(--mist); border-radius:4px; overflow:hidden; }
.motm-bar{ position:absolute; inset:0 auto 0 0; width:var(--share); background:var(--sage-tint); z-index:0; }
.motm-result-name, .motm-result-n{ position:relative; z-index:1; }
.motm-result-name{ font-weight:700; }
.motm-share{ display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin:24px 0; padding:16px; background:var(--mist); border-radius:6px; font-family:var(--font-ui); }
.motm-share h2{ font-family:var(--font-display); font-size:24px; margin:0 0 4px; }
.motm-qr{ width:160px; height:160px; background:var(--chalk); padding:6px; border-radius:4px; }
.motm-link{ word-break:break-all; }
.motm-cards{ display:grid; gap:12px; grid-template-columns:1fr; margin:0 0 18px; }
@media (min-width:760px){ .motm-cards{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
.motm-card{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:14px 16px; border-radius:6px; font-family:var(--font-ui);
  background:var(--pitch-dark); color:var(--chalk); text-decoration:none; }
.motm-card--winner{ transition:box-shadow var(--ease-card), transform var(--ease-card); }
.motm-card--winner:hover{ box-shadow:var(--lift-shadow-dark); transform:translateY(-2px); }
.motm-card-kicker{ display:block; width:100%; color:var(--amber); font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; margin:0; }
.motm-card--winner .motm-card-kicker{ width:auto; }
.motm-card-match{ display:block; color:var(--sage-tint); font-size:14px; margin:0; }
.motm-card-name{ display:block; font-family:var(--font-display); font-size:26px; letter-spacing:0.02em; color:var(--chalk); }
.motm-card-text{ display:flex; flex-direction:column; min-width:0; flex:1; }
.motm-card-btn{ margin-left:auto; }
.motm-card-qr{ width:112px; height:112px; background:var(--chalk); padding:4px; border-radius:4px; }
