/*
 * ============================================================
 *  NBA STYLES — Master Stylesheet
 *  Nuts and Bolts Archive
 *  Version: 2.0
 * ============================================================
 *
 *  This is the single source of truth for all styles across
 *  the site. Individual page files should contain NO colours,
 *  NO font declarations, and NO layout rules. Page files may
 *  only add a small <style> block for layout/spacing that is
 *  genuinely unique to that one page (e.g. hero background).
 *
 *  LABELLING CONVENTION
 *  --------------------
 *  [SITE-GENERIC]   Used across multiple pages. Never remove
 *                   without checking all pages first.
 *  [PAGE-SPECIFIC]  Used on one named page only. Safe to move
 *                   to an inline <style> block if the page is
 *                   removed from the site.
 *
 *  TO CREATE A NEW CLUB SITE
 *  -------------------------
 *  Copy this file. Edit ONLY Section 1 (Club Tokens).
 *  Everything else inherits automatically.
 *
 *  STRUCTURE
 *  ---------
 *   1.  Club tokens              ← Edit ONLY this section per club
 *   2.  Derived tokens           ← Do not edit
 *   3.  Base & reset             [SITE-GENERIC]
 *   4.  Typography               [SITE-GENERIC]
 *   5.  Layout utilities         [SITE-GENERIC]
 *   6.  Buttons                  [SITE-GENERIC]
 *   7.  Navbar & header banner   [SITE-GENERIC]
 *   8.  Breadcrumb               [SITE-GENERIC]
 *   9.  Footer                   [SITE-GENERIC]
 *  10.  Dark mode                [SITE-GENERIC]
 *  11.  Section headers          [SITE-GENERIC]
 *  12.  Cards — general          [SITE-GENERIC]
 *  13.  Sidebar panels           [SITE-GENERIC]
 *  14.  Lists                    [SITE-GENERIC]
 *  15.  Tables                   [SITE-GENERIC]
 *  16.  Forms & inputs           [SITE-GENERIC]
 *  17.  Alerts & notices         [SITE-GENERIC]
 *  18.  Badges                   [SITE-GENERIC]
 *  19.  Contribute banner        [SITE-GENERIC]
 *  20.  Homepage — hero          [PAGE-SPECIFIC: index.php]
 *  21.  Homepage — stat strip    [PAGE-SPECIFIC: index.php]
 *  22.  Archive menu — tiles     [PAGE-SPECIFIC: archiveMenu.php]
 *  23.  About — stat cards       [PAGE-SPECIFIC: about.php]
 *  24.  Directory (.dir-*)       [PAGE-SPECIFIC: link_directory.php]
 *  25.  Search results           [PAGE-SPECIFIC: search_results.php]
 *  26.  Programme grid           [PAGE-SPECIFIC: programme pages]
 *  27.  Wants / programme check  [PAGE-SPECIFIC: wants.php]
 *  28.  Responsive overrides     [SITE-GENERIC]
 * ============================================================
 */


/* ============================================================
   1. CLUB TOKENS
   ============================================================
   To create a new club site, change ONLY the values below.
   Colours, fonts, and club name all cascade from here.
   ============================================================ */

:root {

  /* --- Primary palette --- */
  --club-green-deep:    #0f2d1a;   /* navbar, hero, footer background    */
  --club-green-mid:     #1a4a28;   /* contribute banner, hover states    */
  --club-green-light:   #2d6b3f;   /* accent borders, active states      */
  --club-gold:          #c9a84c;   /* primary accent — rules, badges     */
  --club-gold-light:    #e8c97a;   /* gold hover / lighter variant       */

  /* --- Page surfaces --- */
  --club-cream:         #f5f0e8;   /* page background                    */
  --club-cream-dark:    #ede5d4;   /* card outlines, subtle dividers     */
  --club-white:         #ffffff;

  /* --- Text --- */
  --club-text-dark:     #1a1a14;   /* primary body text                  */
  --club-text-mid:      #444444;   /* secondary body text                */
  --club-text-light:    #666666;   /* muted / descriptions               */
  --club-text-hint:     #999999;   /* breadcrumb active, placeholders    */

  /* --- Typography --- */
  --font-display:       'Playfair Display', Georgia, serif;
  --font-label:         'Barlow Condensed', sans-serif;
  --font-body:          'Source Serif 4', Georgia, serif;

  /* --- Club identity --- */
  --club-name:          'Ashford United';
  --club-name-short:    'AUFC';

  /* --- Spacing & radius --- */
  --radius-sm:          2px;
  --radius-md:          4px;
  --radius-lg:          8px;
}


/* ============================================================
   2. DERIVED TOKENS
   ============================================================
   These map semantic names to club tokens.
   Do not edit — change Section 1 instead.
   ============================================================ */

:root {
  /* Navigation */
  --color-nav-bg:             var(--club-green-deep);
  --color-nav-border:         var(--club-gold);
  --color-nav-link:           rgba(255,255,255,.72);
  --color-nav-link-hover:     var(--club-gold-light);

  /* Hero */
  --color-hero-bg:            var(--club-green-deep);
  --color-hero-accent:        var(--club-gold);
  --color-hero-muted:         rgba(255,255,255,.72);

  /* Footer */
  --color-footer-bg:          var(--club-green-deep);
  --color-footer-border:      var(--club-gold);
  --color-footer-text:        rgba(255,255,255,.5);
  --color-footer-text-dim:    rgba(255,255,255,.35);
  --color-footer-brand:       var(--club-gold);

  /* Stat strip */
  --color-stat-bg:            var(--club-gold);
  --color-stat-text:          var(--club-green-deep);
  --color-stat-label:         var(--club-green-mid);

  /* Sidebar */
  --color-sidebar-dark-bg:    var(--club-green-deep);
  --color-sidebar-dark-h:     var(--club-gold);

  /* Archive tiles */
  --color-tile-border:        var(--club-green-mid);
  --color-tile-text:          var(--club-green-mid);
  --color-tile-hover-bg:      #f0f7f3;

  /* Section headers */
  --color-section-rule:       var(--club-cream-dark);
  --color-section-heading:    var(--club-green-deep);

  /* Badges */
  --color-badge-new-bg:       var(--club-green-mid);
  --color-badge-soon-bg:      #6c757d;

  /* Breadcrumb */
  --color-breadcrumb-link:    var(--club-green-mid);
  --color-breadcrumb-sep:     var(--club-gold);
  --color-breadcrumb-bg:      var(--club-white);
  --color-breadcrumb-border:  #e8e3d9;

  /* Links */
  --color-link:               var(--club-green-mid);
  --color-link-hover:         var(--club-green-deep);

  /* Directory */
  --color-dir-accent:         var(--club-green-mid);
  --color-dir-heading-bg:     var(--club-green-mid);
}


/* ============================================================
   3. BASE & RESET                              [SITE-GENERIC]
   ============================================================ */

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  background: var(--club-cream);
  color: var(--club-text-dark);
  margin: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

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

/* Suppress Bootstrap's link underline on card wrappers */
.link-clean,
.link-clean:hover { text-decoration: none !important; }


/* ============================================================
   4. TYPOGRAPHY                                [SITE-GENERIC]
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--club-green-deep);
  margin-top: 0;
}

/* Utility label — nav tags, section labels, breadcrumbs */
.nba-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Eyebrow — gold line either side of a centred label */
.nba-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--club-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .5rem;
}
.nba-eyebrow::before,
.nba-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: var(--club-gold);
  opacity: .55;
}


/* ============================================================
   5. LAYOUT UTILITIES                          [SITE-GENERIC]
   ============================================================ */

/* Standard inner-page content area */
.nba-page-wrap {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* Tighter variant for data-heavy pages */
.nba-page-wrap--tight {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

/* Standard inner-page h1 — sits below the banner */
.nba-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--club-green-deep);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--club-cream-dark);
}


/* ============================================================
   6. BUTTONS                                   [SITE-GENERIC]
   ============================================================ */

/* Gold fill — primary CTA, dark backgrounds */
.btn-gold {
  background: var(--club-gold);
  color: var(--club-green-deep);
  border: none;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  display: inline-block;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.btn-gold:hover {
  background: var(--club-gold-light);
  color: var(--club-green-deep);
  text-decoration: none;
}

/* Gold outline — secondary CTA, dark backgrounds */
.btn-outline-gold {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.3);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  display: inline-block;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.btn-outline-gold:hover {
  border-color: var(--club-gold);
  color: var(--club-gold-light);
  text-decoration: none;
}

/* Green outline — secondary CTA, light backgrounds */
.btn-outline-green {
  background: transparent;
  color: var(--club-green-mid);
  border: 1px solid var(--club-green-mid);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  display: inline-block;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.btn-outline-green:hover {
  background: var(--club-green-mid);
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   7. NAVBAR & HEADER BANNER                    [SITE-GENERIC]
   ============================================================
   Structural rules only — colour values come from tokens.
   These classes are output by ATFCheader.php.
   ============================================================ */

/* Inner-page banner — pure CSS, no image dependency */
.header-banner {
  background-color: var(--club-green-deep);
  padding: 1.75rem 0;
  position: relative;
  overflow: hidden;
}
.header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,  transparent, transparent 19px, rgba(255,255,255,.03) 19px, rgba(255,255,255,.03) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,.03) 19px, rgba(255,255,255,.03) 20px);
  pointer-events: none;
}
.header-banner .container { position: relative; z-index: 1; }

.header-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.header-banner__title em { color: var(--club-gold); font-style: italic; }

.header-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--club-gold);
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.header-eyebrow::before,
.header-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--club-gold);
  opacity: .6;
}

/* Navbar */
.navbar {
  background-color: var(--color-nav-bg) !important;
  border-bottom: 2px solid var(--color-nav-border);
  padding-top: 0;
  padding-bottom: 0;
  min-height: 52px;
}
.navbar-brand img { height: 28px; }

.navbar-nav .nav-link {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-nav-link) !important;
  padding: 1rem .9rem !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-nav-link-hover) !important;
  border-bottom-color: var(--club-gold);
}

/* Search bar */
.search-form { max-width: 210px; }
.search-form .form-control {
  font-size: 13px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: var(--radius-sm);
}
.search-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.search-form .form-control:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--club-gold);
  box-shadow: none;
  color: #fff;
}
.search-form .btn {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  transition: border-color .2s, color .2s;
}
.search-form .btn:hover {
  border-color: var(--club-gold);
  color: var(--club-gold-light);
}

/* Social icons */
.social-icons a {
  color: rgba(255,255,255,.55);
  margin-left: 10px;
  font-size: 14px;
  transition: color .2s;
}
.social-icons a:hover { color: var(--club-gold-light); }

/* Dark mode toggle button */
#darkModeToggle {
  font-size: 12px;
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  transition: border-color .2s, color .2s;
}
#darkModeToggle:hover {
  border-color: var(--club-gold);
  color: var(--club-gold-light);
}

/* Legacy class aliases — kept so older archive pages don't break */
.bg-ashford-green,
.bg-football-green  { background-color: var(--club-green-deep); }
.text-ashford-green,
.text-football-green { color: var(--club-green-deep); }


/* ============================================================
   8. BREADCRUMB                                [SITE-GENERIC]
   ============================================================ */

.breadcrumb-bar {
  background: var(--color-breadcrumb-bg);
  border-bottom: 1px solid var(--color-breadcrumb-border);
  padding: .45rem 0;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumb-item a {
  color: var(--color-breadcrumb-link);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--club-green-deep);
  text-decoration: underline;
}
.breadcrumb-item.active { color: var(--club-text-hint); }
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-breadcrumb-sep);
  content: "›";
  font-size: 14px;
  vertical-align: middle;
}


/* ============================================================
   9. FOOTER                                    [SITE-GENERIC]
   ============================================================ */

.nba-footer {
  background: var(--color-footer-bg);
  border-top: 2px solid var(--color-footer-border);
  padding: 2rem 0;
  margin-top: 0;
}

.nba-footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-footer-brand);
  margin: 0 0 .25rem;
}

.nba-footer__tagline {
  font-family: var(--font-body);
  font-size: .85rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-footer-text);
  margin: 0;
}

.nba-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nba-footer__nav a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color .2s;
}
.nba-footer__nav a:hover {
  color: var(--club-gold-light);
  text-decoration: none;
}

.nba-footer__copy,
.nba-footer__credit {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--color-footer-text-dim);
  margin: 0 0 .25rem;
}
.nba-footer__credit { margin: 0; }
.nba-footer__credit a {
  color: var(--color-footer-text-dim);
  text-decoration: none;
  transition: color .2s;
}
.nba-footer__credit a:hover {
  color: var(--club-gold);
  text-decoration: none;
}


/* ============================================================
   10. DARK MODE                                [SITE-GENERIC]
   ============================================================ */

body.dark-mode {
  background-color: #1a1a14;
  color: #e8e0d0;
}
body.dark-mode .navbar { background-color: #08150e !important; }
body.dark-mode .breadcrumb-bar { background: #111; border-color: #222; }
body.dark-mode .breadcrumb-item a { color: var(--club-gold); }
body.dark-mode .breadcrumb-item.active { color: #555; }


/* ============================================================
   11. SECTION HEADERS                          [SITE-GENERIC]
   ============================================================
   Usage:
     <div class="nba-section-header">
       <h2>Title</h2>
       <hr class="nba-section-rule">
     </div>
   ============================================================ */

.nba-section-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
}
.nba-section-header h2,
.nba-section-header h3 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--color-section-heading) !important;
  white-space: nowrap;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.nba-section-header h2 { font-size: 1.4rem !important; }
.nba-section-header h3 { font-size: 1.15rem !important; }

/* Ruled line beside section headings.
   Use a <div>, not <hr> — Bootstrap 5 resets hr opacity/border
   at a specificity level that cannot be reliably overridden. */
.nba-section-rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 20px;
  background-color: var(--club-cream-dark);
  border: none;
  margin: 0;
  padding: 0;
  opacity: 1;
  display: block;
  align-self: center;
}


/* ============================================================
   12. CARDS — GENERAL                          [SITE-GENERIC]
   ============================================================ */

/* Base card — used on homepage, usefulLinks, archive pages */
.nba-card {
  border: none !important;
  border-radius: 0 !important;
  background: var(--club-white);
  outline: 1.5px solid var(--club-cream-dark);
  transition: background .2s;
  position: relative;
  overflow: hidden;
}
/* Gold underline reveal on hover */
.nba-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--club-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nba-card:hover { background: #faf7f1; }
.nba-card:hover::after { transform: scaleX(1); }
.nba-card .card-body { padding: 1.5rem; }

/* Card category label (Results / Players / Memorabilia) */
.nba-card-tag {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--club-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .6rem;
}
.nba-card-tag::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--club-gold);
  flex-shrink: 0;
}
.nba-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--club-green-deep);
  margin-bottom: .5rem;
}
.nba-card p {
  font-size: .9rem;
  color: var(--club-text-light);
  margin: 0;
}

/* Lift hover — usefulLinks style cards */
.nba-card-hover {
  transition: transform .2s ease, box-shadow .2s ease;
}
.nba-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}


/* ============================================================
   13. SIDEBAR PANELS                           [SITE-GENERIC]
   ============================================================ */

/* Dark navigation panel */
.nba-sidebar-dark {
  background: var(--color-sidebar-dark-bg);
  border-radius: 0;
  border: none;
}
.nba-sidebar-dark .card-body { padding: 1.4rem; }
.nba-sidebar-dark h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-sidebar-dark-h);
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: .75rem;
}
.nba-sidebar-dark .list-group-item {
  background: transparent;
  border-color: rgba(255,255,255,.07);
  padding: .55rem 0;
}
.nba-sidebar-dark .list-group-item a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.nba-sidebar-dark .list-group-item a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--club-gold);
  border-top: 1.5px solid var(--club-gold);
  transform: rotate(45deg);
  opacity: .7;
  flex-shrink: 0;
}
.nba-sidebar-dark .list-group-item a:hover {
  color: var(--club-gold-light);
  text-decoration: none;
}

/* Light info/content panel */
.nba-sidebar-light {
  background: var(--club-white);
  border-radius: 0;
  outline: 1px solid var(--club-cream-dark);
  border: none;
}
.nba-sidebar-light .card-body { padding: 1.4rem; }
.nba-sidebar-light h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--club-green-deep);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--club-cream-dark);
  margin-bottom: .75rem;
}

/* Full-width programme image inside sidebar */
.nba-programme-thumb { display: block; width: 100%; cursor: pointer; }
.nba-programme-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}


/* ============================================================
   14. LISTS                                    [SITE-GENERIC]
   ============================================================ */

/* Gold left-border list — Latest Additions, navigation lists */
.nba-list {
  list-style: none;
  padding: 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--club-gold);
  margin-bottom: 0;
}
.nba-list li { margin-bottom: .65rem; }
.nba-list li a {
  color: var(--club-green-mid);
  text-decoration: none;
  font-size: .95rem;
}
.nba-list li a:hover {
  color: var(--club-green-deep);
  text-decoration: underline;
}


/* ============================================================
   15. TABLES                                   [SITE-GENERIC]
   ============================================================
   Apply .nba-table to any <table> across the site.
   Replaces the generic table rules in the old Test.css.
   ============================================================ */

.nba-table {
  width: 95%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  color: var(--club-text-mid);
  font-size: .9rem;
}
.nba-table th,
.nba-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.nba-table th {
  background: var(--club-green-deep);
  color: var(--club-gold);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nba-table tr:nth-child(even) td { background: #f5f2ec; }
.nba-table tr:hover td { background: #eee9df; }
.nba-table--none { border-width: 0; }

/* Ashford name highlight in tables */
.nba-ashford {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--club-green-mid);
}


/* ============================================================
   16. FORMS & INPUTS                           [SITE-GENERIC]
   ============================================================ */

.nba-input {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #cfcfcf;
  background: var(--club-white);
  color: var(--club-text-dark);
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.nba-input:focus {
  outline: none;
  border-color: var(--club-green-mid);
  box-shadow: 0 0 0 2px rgba(26,74,40,.12);
}

.nba-select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #cfcfcf;
  background: var(--club-white);
  color: var(--club-text-dark);
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.nba-select:focus {
  outline: none;
  border-color: var(--club-green-mid);
}


/* ============================================================
   17. ALERTS & NOTICES                         [SITE-GENERIC]
   ============================================================ */

.nba-alert {
  padding: .85rem 1rem;
  border-left: 3px solid;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.nba-alert--info    { background: #eaf3fe; border-color: #4a90d9; color: #1a4a70; }
.nba-alert--warning { background: #fef9e7; border-color: var(--club-gold); color: #6b4e00; }
.nba-alert--error   { background: #fef0f0; border-color: #c0392b; color: #7a1f1f; }
.nba-alert--success { background: #edf7f0; border-color: var(--club-green-mid); color: var(--club-green-deep); }


/* ============================================================
   18. BADGES                                   [SITE-GENERIC]
   ============================================================ */

.nba-badge {
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  display: inline-block;
}
.nba-badge--new  { background: var(--color-badge-new-bg); color: #fff; }
.nba-badge--soon { background: var(--color-badge-soon-bg); color: #fff; }


/* ============================================================
   19. CONTRIBUTE BANNER                        [SITE-GENERIC]
   ============================================================ */

.nba-contribute {
  background: var(--club-green-mid);
  padding: 1.75rem 2rem;
}
.nba-contribute h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--club-gold);
  margin-bottom: .3rem;
}
.nba-contribute p {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  font-style: italic;
  margin: 0;
}


/* ============================================================
   20. HOMEPAGE — HERO          [PAGE-SPECIFIC: index.php]
   ============================================================
   The background image is set inline on the element so it
   can be changed per club without editing this file.
   Example: style="background-image: url('../Images/ground.jpg')"
   ============================================================ */

.nba-hero {
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  /* Background image set inline on the element in index.php */
  background-color: var(--club-green-deep); /* fallback if image missing */
  background-size: cover;
  background-position: center;
}
/* Dark overlay so text is always legible over any image */
.nba-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,45,26,.88), rgba(15,45,26,.70));
  pointer-events: none;
  z-index: 0;
}
/* Subtle pitch grid texture */
.nba-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,  transparent, transparent 39px, rgba(255,255,255,.025) 39px, rgba(255,255,255,.025) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.025) 39px, rgba(255,255,255,.025) 40px);
  pointer-events: none;
  z-index: 0;
}
.nba-hero .container { position: relative; z-index: 1; }

.nba-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: .75rem;
  color: #fff;
}
.nba-hero__title em { color: var(--club-gold); font-style: italic; }

.nba-hero__lead {
  color: var(--color-hero-muted);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.nba-hero__divider {
  width: 50px;
  height: 2px;
  background: var(--club-gold);
  margin: 1.5rem 0;
  border: none;
  display: block;
}


/* ============================================================
   21. HOMEPAGE — STAT STRIP    [PAGE-SPECIFIC: index.php]
   ============================================================ */

.nba-stat-strip {
  background: var(--color-stat-bg);
  padding: .85rem 1rem;
}
.nba-stat-strip__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-stat-text);
}
.nba-stat-strip__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-stat-label);
}


/* ============================================================
   22. ARCHIVE MENU — TILES     [PAGE-SPECIFIC: archiveMenu.php]
   ============================================================ */

.nba-category-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--club-green-deep);
  border-bottom: 2px solid var(--club-gold);
  padding-bottom: 6px;
  margin-bottom: 1.25rem;
}

.nba-tile {
  min-height: 90px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-tile-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  background: var(--club-white);
  border: 1.5px solid var(--color-tile-border);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.nba-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  background: var(--color-tile-hover-bg);
  color: var(--club-green-deep);
  text-decoration: none;
}
.nba-tile--disabled {
  opacity: 0.7;
  cursor: default;
  color: #7a9e8a;
  background: #f8f8f8;
  border-color: #b8cfc3;
}
.nba-tile--disabled:hover {
  transform: none;
  box-shadow: none;
  background: #f8f8f8;
}


/* ============================================================
   23. ABOUT — STAT CARDS       [PAGE-SPECIFIC: about.php]
   ============================================================ */

.nba-stat-card {
  border: 1px solid #e0e0e0 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.nba-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.nba-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,45,26,.06) 0%, rgba(15,45,26,0) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.nba-stat-card:hover::before { opacity: 1; }

.nba-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--club-green-deep);
  transition: color .3s ease;
  min-width: 4ch;
  display: inline-block;
}
.nba-stat-card:hover .nba-stat-number { color: var(--club-green-mid); }

.nba-stat-card .bi {
  color: var(--club-green-mid) !important;
  transition: transform .3s ease;
}
.nba-stat-card:hover .bi { transform: scale(1.15) rotate(4deg); }


/* ============================================================
   24. DIRECTORY               [PAGE-SPECIFIC: link_directory.php]
   ============================================================
   Well-structured .dir-* namespace — colours updated to tokens.
   ============================================================ */

.dir-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  color: var(--club-text-dark);
}
.dir-pagehead {
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--color-dir-accent);
  padding-bottom: .85rem;
}
.dir-pagehead h1 {
  margin: 0 0 .35rem;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--club-green-deep);
}
.dir-intro { margin: 0; max-width: 820px; color: var(--club-text-mid); }

.dir-summary { margin-bottom: 1rem; }
.dir-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}
.dir-stat {
  background: #f7f7f7;
  border: 1px solid #d7d7d7;
  border-top: 4px solid var(--color-dir-accent);
  padding: .85rem .9rem;
  text-align: center;
}
.dir-stat-label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--club-text-light);
  margin-bottom: .25rem;
}
.dir-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dir-accent);
}

.dir-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: .9rem;
  margin-bottom: .9rem;
}
.dir-tool { display: flex; flex-direction: column; gap: .35rem; }
.dir-tool label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--club-text-mid);
}
.dir-tool input,
.dir-tool select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #cfcfcf;
  background: var(--club-white);
  color: var(--club-text-dark);
  font-size: .95rem;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
}
.dir-tool input:focus,
.dir-tool select:focus {
  outline: none;
  border-color: var(--color-dir-accent);
  box-shadow: 0 0 0 2px rgba(26,74,40,.12);
}

.dir-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: .8rem .9rem;
  margin-bottom: .9rem;
}
.dir-jumpnav-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--club-text-mid);
}
.dir-jumpnav a {
  color: var(--color-dir-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s;
}
.dir-jumpnav a:hover { border-bottom-color: var(--color-dir-accent); }
.dir-jumpnav a span { color: var(--club-text-hint); }

.dir-panel { border: 1px solid #d9d9d9; background: #fafafa; padding: 1rem; }
.dir-empty { margin: 0; color: var(--club-text-light); }
.dir-alert {
  max-width: 1100px;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid #d6b0b0;
  background: #f8e9e9;
  color: #7a1f1f;
}
.dir-no-results {
  border: 1px solid #d9d9d9;
  background: #fafafa;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--club-text-light);
}

.dir-section { margin-top: 1.5rem; }
.dir-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--color-dir-heading-bg);
  color: #fff;
  padding: .65rem .9rem;
  margin-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.dir-section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-family: var(--font-display);
}
.dir-section-count { font-weight: 700; color: rgba(255,255,255,.85); }

.dir-table { border: 1px solid #dcdcdc; border-top: none; background: var(--club-white); }
.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(180px, 1.2fr) 110px;
  gap: 1rem;
  align-items: center;
  padding: .8rem .9rem;
  border-top: 1px solid #e5e5e5;
}
.dir-row:first-child { border-top: none; }
.dir-row-head {
  background: #f3f3f3;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--club-text-mid);
  border-top: none;
}
.dir-row:not(.dir-row-head):nth-child(even) { background: #fcfcfc; }
.dir-col-title a { color: var(--club-green-deep); text-decoration: none; }
.dir-col-title a:hover { text-decoration: underline; }
.dir-col-club { color: var(--club-text-mid); }
.dir-col-link { text-align: right; }
.dir-visit {
  display: inline-block;
  padding: .42rem .75rem;
  border: 1px solid var(--color-dir-accent);
  background: var(--color-dir-accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-width: 70px;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background .2s, border-color .2s;
}
.dir-visit:hover {
  background: var(--club-green-deep);
  border-color: var(--club-green-deep);
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   25. SEARCH RESULTS          [PAGE-SPECIFIC: search_results.php]
   ============================================================ */

.nba-result-section { margin-bottom: 2rem; }

.nba-result-list {
  list-style: none;
  padding-left: 0;
}

.nba-result-item {
  padding: .6rem .25rem;
  border-bottom: 1px solid var(--club-cream-dark);
  font-size: .95rem;
}
.nba-result-item:last-child { border-bottom: none; }
.nba-result-item a { color: var(--club-green-mid); }
.nba-result-item a:hover { color: var(--club-green-deep); }


/* ============================================================
   26. PROGRAMME GRID           [PAGE-SPECIFIC: programme pages]
   ============================================================
   Old class names (.prog, .progCover, .img, .imgthin) kept as
   aliases so existing archive pages don't need editing yet.
   ============================================================ */

.prog,
.nba-prog {
  display: inline-block;
  width: 205px;
  height: 275px;
  margin: 5px;
  padding: 5px;
  text-align: center;
  border: 1px solid var(--club-cream-dark);
}
.progCover,
.nba-prog-cover {
  display: inline-block;
  width: 195px;
  height: 225px;
  margin: 5px;
  padding: 5px;
  text-align: center;
  border: 1px solid var(--club-cream-dark);
}
/* New names */
.nba-prog-img      { padding: 8px; height: 168px; width: 128px; }
.nba-prog-img--thin { padding: 8px; height: 168px; width: 90px; }
/* Legacy aliases */
.img    { padding: 8px; height: 168px; width: 128px; }
.imgthin { padding: 8px; height: 168px; width: 90px; }


/* ============================================================
   27. WANTS / PROGRAMME CHECK  [PAGE-SPECIFIC: wants.php]
   ============================================================ */

/* Tab-style navigation pills */
.nba-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 0;
}
.nba-pill {
  padding: 7px 16px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  color: var(--club-text-mid);
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.nba-pill:hover { background: #e9ecef; color: var(--club-text-dark); text-decoration: none; }
.nba-pill.active { background: var(--club-green-mid); color: #fff; border-color: var(--club-green-mid); }

/* Programme check grid */
.nba-prog-grid-wrap {
  margin: 0 5% 0 auto;
  padding: 20px;
  overflow-x: auto;
}
.nba-prog-grid-wrap table {
  border-collapse: collapse;
  font-family: var(--font-label);
  font-size: 12px;
}
.nba-prog-grid-wrap th,
.nba-prog-grid-wrap td {
  border: 1px dotted #999;
  padding: 4px;
  text-align: center;
  width: 45px;
}
.nba-prog-grid-wrap th {
  background: #f0f0f0;
  height: 100px;
  position: relative;
  font-size: 13px;
}
.nba-prog-grid-wrap th:not(:first-child) > div {
  position: absolute;
  bottom: 35px;
  left: -22px;
  transform: rotate(-90deg);
  width: 80px;
  text-align: right;
  white-space: nowrap;
}
.nba-prog-grid-wrap .team-name { text-align: left; padding-left: 10px; width: 150px; }
.nba-prog-grid-wrap .has-programme  { background: #d1e7dd; }
.nba-prog-grid-wrap .non-existent   { background: #e9ecef; }
.nba-prog-grid-wrap .needed         { background: #fff; border: 1px solid red; }
.nba-prog-grid-wrap .totals {
  margin-top: 10px;
  margin-left: 150px;
  font-size: 13px;
  font-family: var(--font-label);
  white-space: nowrap;
}
.nba-prog-grid-wrap .totals span { display: inline-block; width: 39px; text-align: left; }
.nba-prog-grid-wrap .complete-season { color: var(--club-green-deep); font-weight: 700; }


/* ============================================================
   28. RESPONSIVE OVERRIDES                     [SITE-GENERIC]
   ============================================================ */

/* Directory */
@media (max-width: 900px) {
  .dir-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-tools        { grid-template-columns: 1fr; }
  .dir-row          { grid-template-columns: minmax(0, 1.6fr) minmax(160px, 1fr) 95px; }
}
@media (max-width: 680px) {
  .dir-summary-grid { grid-template-columns: 1fr 1fr; }
  .dir-row-head     { display: none; }
  .dir-row          { grid-template-columns: 1fr; gap: .45rem; align-items: start; }
  .dir-col-title,
  .dir-col-club,
  .dir-col-link     { text-align: left; }
  .dir-col-title::before,
  .dir-col-club::before,
  .dir-col-link::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-label);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--club-text-hint);
    margin-bottom: .15rem;
  }
}

/* Programme grid */
@media (max-width: 600px) {
  .nba-prog, .prog { width: 95%; height: auto; }
}

/* General */
@media (max-width: 768px) {
  .nba-page-wrap    { padding-top: 1rem; padding-bottom: 1.5rem; }
  .nba-contribute   { flex-direction: column; text-align: center; gap: 1rem; }
  .nba-hero         { padding: 2.5rem 0 2rem; }
  .nba-stat-strip   { padding: .75rem .5rem; }
}