/*
Theme Name: Sixty & Worcestershire Motor Club
Theme URI: https://sixtyworcsmc.co.uk
Author: SWMC
Description: Custom theme for Sixty & Worcestershire Motor Club — Night Stage palette, Paddock Poster type.
Version: 1.0.33
Text Domain: swmc
*/

:root{
  --black:#0E0F10;
  --black2:#161719;
  --card:#1C1D20;
  --line: rgba(245,243,238,0.10);
  --yellow:#F4C21B;
  --amber:#E8791A;
  --grey:#8B8D91;
  --white:#F5F3EE;
  --nav-bg: rgba(14,15,16,0.88);
  --text-muted:#c9c9c9;
  --on-accent:#0E0F10; /* dark text for yellow/amber backgrounds — deliberately NOT overridden in light mode below, since yellow+dark-text is a fixed pairing regardless of site theme */
}

/* ---------- LIGHT MODE ----------
   Covers the main site chrome — nav, section backgrounds, cards,
   footer, article text, and the shop. The full-bleed hero/post-hero
   image bands and the yellow CTA band deliberately keep their existing
   high-contrast treatment in both modes (see the "PROTECTED SECTIONS"
   block further down) rather than being redesigned for light mode —
   a bold dark band over photography reads fine regardless of the
   site's overall theme, and is a common, intentional pattern rather
   than an oversight. */
html[data-theme="light"]{
  --black:#F7F5F0;
  --black2:#FFFFFF;
  --card:#FFFFFF;
  --line: rgba(20,20,20,0.10);
  --yellow:#A8790A; /* darkened from #F4C21B - the bright yellow has poor contrast against light backgrounds; protected sections below (hero, carousel, lightbox) override back to the bright version since they always sit on dark photography regardless of site theme */
  --amber:#C4650F;
  --grey:#5c5c5c;
  --white:#16171A;
  --nav-bg: rgba(250,248,244,0.92);
  --text-muted:#4a4a4a;
}
html[data-theme="light"] .type-card,
html[data-theme="light"] .news-item .thumb,
html[data-theme="light"] .g-item{
  background:linear-gradient(155deg,#f1efe9,#e4e1d9);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--black);
  color:var(--white);
  font-family:'Work Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

h1,h2,h3,.display{
  font-family:'Rajdhani', sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.01em;
  margin:0;
}
.mono{ font-family:'JetBrains Mono', monospace; font-weight:500; letter-spacing:0.01em; }

.wrap{ max-width:1160px; margin:0 auto; padding:0 28px; }
@media (max-width:640px){ .wrap{ padding:0 18px; } }

/* ---------- NAV ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:var(--nav-bg);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; }
.logo-mark{ display:flex; align-items:center; gap:10px; }
.logo-mark .box{
  background:var(--yellow); color:var(--on-accent);
  font-family:'Rajdhani',sans-serif; font-weight:700; font-size:20px; line-height:1;
  padding:7px 8px 6px; letter-spacing:0.02em;
}
.logo-mark .custom-logo-link{ display:flex; align-items:center; }
.logo-mark img.custom-logo{ max-height:46px; width:auto; }
.logo-mark .full{ font-size:12px; line-height:1.25; color:var(--grey); }
.logo-mark .full b{ color:var(--white); display:block; font-size:12.5px; letter-spacing:0.03em; }

nav.links{ display:flex; align-items:center; gap:28px; }
nav.links ul{ list-style:none; display:flex; gap:28px; margin:0; padding:0; align-items:center; }
/* Scoped to ul a only — a plain "nav.links a" rule here would be MORE
   specific than .btn (2 elements + 1 class beats 1 class) and strip the
   Join button's horizontal padding. Keep this scoped to the menu links. */
nav.links ul a{
  font-family:'Rajdhani', sans-serif; font-weight:600; text-transform:uppercase;
  font-size:14.5px; letter-spacing:0.03em; color:var(--white);
  padding:6px 0; border-bottom:2px solid transparent;
}
nav.links ul a:hover{ border-color:var(--yellow); }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase;
  letter-spacing:0.04em; font-size:14px; padding:11px 22px; border-radius:2px; border:none; cursor:pointer;
  white-space:nowrap;
}
.btn-yellow{ background:var(--yellow); color:var(--on-accent); }
.btn-outline{ border:2px solid rgba(245,243,238,0.4); color:var(--white); background:transparent; padding:10px 21px; }
.btn-yellow:hover{ background:#ffd23d; }
.menu-toggle{ display:none; background:none; border:none; color:var(--white); font-size:22px; cursor:pointer; }
.menu-toggle:focus-visible{ outline:2px solid var(--yellow); outline-offset:3px; border-radius:2px; }
.nav-mobile-actions{ display:flex; align-items:center; gap:16px; }

@media (max-width:860px){
  nav.links{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--black2); padding:20px 18px; border-bottom:1px solid var(--line);
  }
  nav.links.open{ display:flex; flex-direction:column; align-items:stretch; gap:22px; }
  nav.links ul{ flex-direction:column; align-items:flex-start; gap:16px; }
  .nav-mobile-actions{
    justify-content:flex-start; align-items:center; gap:20px; flex-wrap:wrap;
    padding-top:20px; margin-top:2px; border-top:1px solid var(--line);
  }
  .nav-mobile-actions .btn-yellow{
    order:3; flex-basis:100%; margin-top:6px; text-align:center; padding:13px 22px;
  }
  .menu-toggle{ display:block; }
}

/* ---------- HERO ---------- */
.hero{
  position:relative; min-height:clamp(520px,calc(100vh - 110px),980px); display:flex; align-items:center; overflow:hidden;
  background:
    radial-gradient(ellipse 90% 60% at 22% 100%, rgba(244,194,27,0.14), transparent 60%),
    linear-gradient(180deg, #0b0c0d 0%, #0E0F10 55%, #0E0F10 100%);
}
@media (max-width:700px){
  .hero{ min-height:320px; }
}
.hero video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; opacity:0.55; background:var(--black); }
.hero .video-stub{
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,0.06), transparent 40%),
    repeating-linear-gradient(100deg, #202225 0 2px, #17181a 2px 4px);
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(14,15,16,0) 0%, rgba(14,15,16,0.55) 55%, rgba(14,15,16,0.96) 100%);
}
.hero-inner{ position:relative; z-index:2; padding-top:clamp(72px,10vh,130px); padding-bottom:clamp(48px,7vh,90px); width:100%; }
@media (max-width:700px){
  .hero-inner{ padding-top:44px; padding-bottom:24px; }
}
.route-line{ width:64px; height:2px; background:var(--yellow); margin-bottom:22px; transform-origin:left center; animation:drawline 900ms ease-out 200ms both; }
@keyframes drawline{ from{ transform:scaleX(0);} to{ transform:scaleX(1);} }
.hero h1{ font-size:clamp(40px,7.2vw,84px); line-height:1; max-width:none; text-wrap:balance; }
.hero h1 span{ display:block; opacity:0; animation:rise 700ms ease-out forwards; }
.hero h1 span:nth-child(1){ animation-delay:260ms; }
.hero h1 span:nth-child(2){ animation-delay:400ms; }
@keyframes rise{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }
.hero p.lede{ font-size:17.5px; color:#cfcfcf; max-width:min(60ch,100%); margin:24px 0 32px; line-height:1.65; text-wrap:pretty; }
.hero .cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:clamp(48px,7vh,84px); }
@media (max-width:700px){
  .hero p.lede{ font-size:15px; margin:16px 0 24px; }
  .hero .cta-row{ margin-bottom:36px; }
}

/* Stats strip: 4-across until it gets tight, then straight to a single
   stacked column (no 2-column halfway step) with horizontal dividers. */
.hero-strip{
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line);
}
.hero-strip .item{ padding:16px 20px 4px; border-left:1px solid var(--line); }
.hero-strip .item:first-child{ border-left:none; padding-left:0; }
.hero-strip .k{ font-size:12px; color:var(--grey); margin-bottom:4px; }
.hero-strip .v{ font-family:'Rajdhani',sans-serif; font-weight:700; font-size:19px; }
@media (max-width:760px){
  .hero-strip{ grid-template-columns:1fr; }
  .hero-strip .item{ border-left:none; padding:14px 0; border-top:1px solid var(--line); }
  .hero-strip .item:first-child{ border-top:none; padding-top:0; }
}

/* ---------- SECTIONS ---------- */
.section{ padding:84px 0; border-top:1px solid var(--line); }
.history-highlight-inner{ max-width:640px; }
.history-highlight-row.has-image{
  display:flex; align-items:center; gap:60px;
}
.history-highlight-row.has-image .history-highlight-inner{ flex:1; }
.history-highlight-image{ flex:1; }
.history-highlight-image img{ width:100%; border-radius:4px; display:block; aspect-ratio:4/3; object-fit:cover; }
@media (max-width:820px){
  .history-highlight-row.has-image{ flex-direction:column; gap:32px; }
  .history-highlight-image{ width:100%; order:-1; }
}
.history-highlight-inner h2{ font-size:32px; margin:0 0 18px; }
.history-highlight-inner p{ color:var(--text-muted); font-size:16px; line-height:1.7; margin:0 0 26px; }

/* ---------- NEWSLETTER ARCHIVE ---------- */
.newsletter-list{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); }
.newsletter-item{
  display:flex; align-items:center; gap:14px; padding:16px 18px; background:var(--black);
  color:var(--white);
}
.newsletter-item:hover{ background:var(--black2); }
.newsletter-item svg{ color:var(--amber); flex:none; }
.newsletter-item span:first-of-type{ flex:1; font-size:15px; }
.newsletter-download{ color:var(--yellow); font-size:12.5px; }
@media (max-width:700px){
  .section{ padding:48px 0; }
}
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:36px; }
.section-head .num{ font-size:13px; color:var(--grey); margin-bottom:8px; }
.section-head h2{ font-size:clamp(26px,3.6vw,38px); }
.section-head .see-all{ font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase; font-size:14px; color:var(--yellow); border-bottom:1px solid rgba(244,194,27,0.4); padding-bottom:2px; }

/* ---------- EVENT TYPE / GENERIC CARD GRID ---------- */
.type-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:760px){ .type-grid{ grid-template-columns:1fr; } }
.type-card{ background:var(--black2); padding:26px 24px 24px; }
.type-card .tag{ font-size:12px; color:var(--amber); margin-bottom:10px; }
.type-card h3{ font-size:21px; margin-bottom:10px; }
.type-card p{ font-size:14px; line-height:1.6; color:var(--text-muted); margin:0; }

/* ---------- EVENTS LIST ---------- */
.event-row{ display:flex; align-items:center; gap:24px; padding:22px 0; border-top:1px solid var(--line); }
.event-row:last-child{ border-bottom:1px solid var(--line); }
.event-date{ width:78px; flex:none; text-align:center; border-right:1px solid var(--line); padding-right:20px; }
.event-date .d{ font-family:'Rajdhani',sans-serif; font-weight:700; font-size:30px; line-height:1; }
.event-date .m{ font-size:12px; color:var(--grey); margin-top:4px; }
.event-main{ flex:1; }
.event-main h3{ font-size:19px; margin-bottom:5px; text-transform:none; }
.event-main p{ font-size:13.5px; color:var(--grey); margin:0; }
.event-price{ font-size:13px; color:var(--yellow); font-weight:500; white-space:nowrap; }
.event-cta{ font-size:12.5px; color:var(--yellow); white-space:nowrap; }
.event-actions{ display:flex; align-items:center; gap:16px; flex:none; }
@media (max-width:640px){
  .event-row{ flex-wrap:wrap; }
  .event-actions{ width:100%; justify-content:space-between; margin-top:10px; padding-top:14px; border-top:1px solid var(--line); }
}
.event-meta-full{ display:flex; gap:24px; flex-wrap:wrap; margin:18px 0 30px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.event-championships{ display:flex; gap:10px; flex-wrap:wrap; margin:-10px 0 30px; }
.event-championship-badge{
  display:inline-flex; align-items:center; gap:6px; font-size:12.5px;
  font-family:'JetBrains Mono', monospace; color:var(--amber);
  border:1px solid var(--line); border-radius:2px; padding:8px 14px;
}
a.event-championship-badge:hover{ border-color:var(--amber); color:var(--yellow); }
.event-championship-badge.is-plain{ color:var(--grey); cursor:default; }
.event-meta-full .item .k{ font-size:12px; color:var(--grey); margin-bottom:4px; }
.event-meta-full .item .v{ font-family:'Rajdhani',sans-serif; font-weight:700; font-size:17px; }

/* ---------- GALLERY ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:760px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }
.g-item{ position:relative; aspect-ratio:4/5; overflow:hidden; background:linear-gradient(155deg,#24262a,#101113) center/cover; }
.g-item img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; transition:transform 0.4s; }
.g-item:hover img{ transform:scale(1.04); }
.g-item::before{
  content:""; position:absolute; inset:0; z-index:1;
  background:rgba(14,15,16,0.28); transition:background 0.3s;
}
.g-item:hover::before{ background:rgba(14,15,16,0.15); }
.g-year{
  position:absolute; top:14px; right:14px; z-index:2;
  background:var(--yellow); color:var(--on-accent); font-size:12px; font-weight:700;
  padding:5px 10px; border-radius:2px; letter-spacing:0.02em;
}
.g-item .cap{
  position:absolute; left:0; right:0; bottom:0; padding:20px 18px;
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase;
  letter-spacing:0.02em; font-size:18px; line-height:1.2; color:var(--white);
  text-shadow:0 2px 8px rgba(0,0,0,0.6); z-index:2;
}
.g-item.wide{ grid-column:span 2; }
@media (max-width:700px){ .g-item .cap{ font-size:15px; padding:16px 14px; } }

/* ---------- NEWS ---------- */
.news-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:28px; }
@media (max-width:820px){ .news-grid{ grid-template-columns:1fr; } }
.news-item .thumb{ aspect-ratio:16/10; background:linear-gradient(155deg,#242628,#111213) center/cover; margin-bottom:14px; }
@media (max-width:640px){
  .news-item .thumb{ aspect-ratio:4/3; }
}
.news-item .thumb img{ width:100%; height:100%; object-fit:cover; }
.news-item .k{ font-size:12px; color:var(--amber); margin-bottom:8px; }
.news-item h2, .news-item h3{ font-size:19px; text-transform:none; margin-bottom:8px; line-height:1.25; }
.news-item p{ font-size:13.5px; color:var(--text-muted); line-height:1.55; margin:0; }

/* ---------- MEMBERSHIP BAND ---------- */
.join-band{ background:linear-gradient(120deg, #F4C21B 0%, #E8B516 100%); color:var(--on-accent); padding:64px 0; }
.join-inner{ display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; }
.join-inner h2{ font-size:clamp(28px,4vw,44px); max-width:14ch; }
.join-inner p{ font-size:15px; max-width:42ch; margin:14px 0 0; color:#3a3009; }
.join-band .btn-outline{ border:2px solid rgba(14,15,16,0.5); color:var(--on-accent); }
.join-band .btn-outline:hover{ background:rgba(14,15,16,0.08); }
.join-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.join-band .btn-yellow{ background:#0E0F10; color:var(--yellow); }

/* ---------- FOOTER ---------- */
/* Footer and the logos band above it are hardcoded to the dark theme's
   exact colors, deliberately NOT using the --black/--grey/etc variables
   that flip in light mode. The logos uploaded here are typically
   designed for a dark background (light/white artwork), so this whole
   area stays dark always rather than following the site-wide toggle. */
footer{ padding:60px 0 40px; background:#0E0F10; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; border-bottom:1px solid rgba(245,243,238,0.10); }
@media (max-width:760px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
.foot-grid h4, .foot-grid .foot-title{ font-family:'Rajdhani',sans-serif; font-weight:700; text-transform:uppercase; font-size:14px; line-height:1.3; letter-spacing:0.03em; color:#8B8D91; margin:0 0 14px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; }
.foot-grid li{ margin-bottom:9px; font-size:14px; color:#c9c9c9; }
.foot-grid li a:hover{ color:#F4C21B; }
.foot-bottom{ display:flex; justify-content:space-between; padding-top:22px; font-size:12.5px; color:#8B8D91; flex-wrap:wrap; gap:10px; }

.footer-logos-section{ background:#161719; border-top:1px solid rgba(245,243,238,0.10); padding-top:44px; padding-bottom:44px; }
.footer-logos-inner{ display:flex; align-items:center; justify-content:center; gap:64px; flex-wrap:wrap; }
.footer-logos-inner img{ max-height:72px; width:auto; opacity:0.95; transition:opacity 0.2s, transform 0.2s; }
.footer-logos-inner a:hover img{ opacity:1; transform:scale(1.05); }
@media (max-width:600px){
  .footer-logos-section{ padding-top:32px; padding-bottom:32px; }
  .footer-logos-inner{ gap:36px; }
  .footer-logos-inner img{ max-height:52px; }
}

.reveal{ opacity:0; transform:translateY(16px); transition:opacity 600ms ease, transform 600ms ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- EVENT RESULTS ---------- */
.results-block{ margin:20px 0 40px; }
.results-search-wrap{ margin-bottom:14px; }
.results-search{
  width:100%; max-width:320px; box-sizing:border-box;
  background:var(--black2); border:1px solid var(--line); color:var(--white);
  padding:10px 12px; border-radius:2px; font-size:14px; font-family:'Work Sans',sans-serif;
}
.results-search:focus{ outline:none; border-color:var(--yellow); }
@media (max-width:600px){ .results-search{ max-width:100%; } }
.results-table{
  width:100%; border-collapse:collapse; margin-bottom:8px; font-size:14px;
  /* table-layout:auto (the default) works fine here now — this is a
     SINGLE table (section dividers are rows within it, not separate
     tables), so column widths are naturally consistent throughout
     without needing fixed per-column percentages. Columns are also
     dynamic (only rendered if that event's data actually has them),
     so hard-coded widths would need to change per event anyway. */
}
.results-table th{
  text-align:left; font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase;
  font-size:12px; letter-spacing:0.04em; color:var(--grey); padding:0 10px 10px; border-bottom:1px solid var(--line);
}
.results-table td{ padding:11px 10px; border-bottom:1px solid var(--line); color:var(--text-muted); vertical-align:top; }
.results-table tr:last-child td{ border-bottom:none; }
.results-table .col-driver{ white-space:normal; } /* driver (+ co-driver) name can wrap */
.results-section-row td{ padding-top:24px; border-top:1px solid var(--line); }
.results-section-row:first-child td{ padding-top:0; border-top:none; }
.results-section-label{
  font-size:12.5px; color:var(--amber); text-transform:uppercase; letter-spacing:0.05em;
  border-bottom:none !important; padding-bottom:8px !important;
}
.results-row.is-top3 td{ color:var(--white); }
.results-row.is-top3 .results-pos{ color:var(--yellow); font-weight:700; }
.results-pos{ font-weight:600; }
.results-codriver{ color:var(--grey); font-size:13px; }
.results-car{ color:var(--grey); font-size:13px; }
.results-award{ color:var(--amber); font-size:12.5px; white-space:nowrap; }
.is-placeholder-name{ text-decoration:line-through; opacity:0.55; } /* "Non-Member"/"Unknown"/"N/A" — the result happened, but isn't a scoreable identity */
@media (max-width:700px){
  .results-table{ font-size:13px; }
  .results-table .col-car{ display:none; } /* hide Car column on mobile — targets the semantic class, not a position, so this still works regardless of which other columns are present */
  .results-table th, .results-table td{ padding:9px 6px; }
}

/* ---------- RESULT SUBMISSION FORM ---------- */
.champ-submission{ margin-top:40px; }
.champ-submission-notice{ padding:16px 20px; border-radius:2px; margin-bottom:20px; font-size:14.5px; }
.champ-submission-notice.is-success{ background:rgba(76,175,80,0.12); border:1px solid rgba(76,175,80,0.4); color:#8fd996; }
.champ-submission-notice.is-error{ background:rgba(232,121,26,0.12); border:1px solid rgba(232,121,26,0.4); color:var(--amber); }
.champ-submission-toggle{ border:1px solid var(--line); border-radius:2px; padding:16px 20px; }
.champ-submission-toggle summary{
  cursor:pointer; font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase;
  letter-spacing:0.02em; color:var(--yellow); font-size:14.5px; list-style:none;
}
.champ-submission-toggle summary::-webkit-details-marker{ display:none; }
.champ-submission-toggle summary::before{ content:"+ "; }
.champ-submission-toggle[open] summary::before{ content:"– "; }
.champ-submission-form{ margin-top:20px; }
.champ-form-row{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.champ-form-row label{
  flex:1 1 200px; display:flex; flex-direction:column; gap:6px;
  font-size:12.5px; color:var(--grey); text-transform:uppercase; letter-spacing:0.03em;
}
.champ-form-row input{
  background:var(--black2); border:1px solid var(--line); color:var(--white);
  padding:10px 12px; border-radius:2px; font-size:14px; font-family:'Work Sans',sans-serif;
  text-transform:none; letter-spacing:normal;
}
.champ-form-row input:focus{ outline:none; border-color:var(--yellow); }
.champ-select{
  width:100%; max-width:100%; box-sizing:border-box; padding:10px 12px;
  background:var(--black2); border:1px solid var(--line); color:var(--white);
  border-radius:2px; font-family:'Work Sans',sans-serif; font-size:14px;
}
.champ-submission-entry{
  position:relative; border:1px solid var(--line); border-radius:2px; padding:18px 18px 6px;
  margin-bottom:16px; background:rgba(255,255,255,0.02);
}
.swmc-rs-remove, .swmc-ms-remove{
  position:absolute; top:10px; right:10px; width:26px; height:26px; border-radius:50%;
  background:none; border:1px solid var(--line); color:var(--grey); font-size:16px; line-height:1;
  cursor:pointer;
}
.swmc-rs-remove:hover, .swmc-ms-remove:hover{ border-color:var(--amber); color:var(--amber); }
#swmc-rs-add, #swmc-ms-add{ margin-bottom:20px; }

/* ---------- CHAMPIONSHIP ROLE TOGGLE (Drivers/Co-Drivers/Combined) ---------- */
/* ---------- CHAMPIONSHIP YEAR SELECTOR ---------- */
.champ-year-selector{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.champ-year-selector a{
  font-family:'JetBrains Mono', monospace; font-size:13px; padding:6px 13px;
  border:2px solid var(--line); border-radius:2px; color:var(--grey);
}
.champ-year-selector a:hover{ border-color:var(--yellow); color:var(--white); }
.champ-year-selector a.is-active{ background:var(--black2); border-color:var(--yellow); color:var(--yellow); }
.champ-archive-notice{
  background:rgba(244,194,27,0.08); border:1px solid rgba(244,194,27,0.3);
  padding:12px 16px; border-radius:2px; color:var(--grey); font-size:13.5px; margin-bottom:24px;
}
.champ-archive-notice a{ color:var(--yellow); text-decoration:underline; }

.champ-role-toggle{ display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.champ-download-btn{ display:inline-block; margin-bottom:24px; }
.champ-role-toggle a{
  font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:0.03em;
  font-size:13px; padding:8px 17px; border:2px solid var(--line); border-radius:2px; color:var(--grey);
}
.champ-role-toggle a:hover{ border-color:var(--yellow); color:var(--white); }
.champ-role-toggle a.is-active{ background:var(--yellow); color:var(--black); border-color:var(--yellow); }

/* ---------- CHAMPIONSHIP STANDINGS DISCOVERABILITY ---------- */
.champ-links-panel{
  background:var(--black2); border:1px solid var(--line); border-radius:2px;
  padding:28px; margin:40px 0; text-align:left;
}
.champ-links-panel h2{ font-size:22px; margin:0 0 16px; }
.champ-links-row{ display:flex; gap:12px; flex-wrap:wrap; }
@media (max-width:600px){
  .champ-links-row .btn{ white-space:normal; text-align:center; flex:1 1 auto; min-width:0; }
}

.event-championship-tags{ margin-top:8px; display:flex; gap:6px; flex-wrap:wrap; }
.event-championship-tag{
  display:inline-flex; align-items:center; font-size:11px; font-family:'JetBrains Mono', monospace;
  color:var(--amber); border:1px solid rgba(232,121,26,0.4); border-radius:2px;
  padding:5px 10px; text-transform:uppercase; letter-spacing:0.04em; white-space:nowrap;
}

/* ---------- CHAMPIONSHIP STANDINGS TABLE ---------- */
.champ-table{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:600px; table-layout:fixed; }
.champ-table th{
  text-align:center; font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase;
  font-size:11.5px; letter-spacing:0.03em; color:var(--grey); padding:0 8px 10px; border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.champ-table th.champ-driver{ text-align:left; }
.champ-table td{ padding:10px 8px; text-align:center; border-bottom:1px solid var(--line); color:var(--text-muted); }
.champ-table tr:last-child td{ border-bottom:none; }
.champ-table .champ-rank{ width:50px; font-weight:700; color:var(--grey); }
.champ-table .champ-driver{
  width:200px; text-align:left; color:var(--white); font-weight:500;
  white-space:normal; /* long "Combined" crew names wrap within a stable
    column width instead of stretching it, which is what was pushing the
    round columns sideways whenever the Drivers/Co-Drivers/Combined
    toggle changed which names were showing. */
}
.champ-table .champ-total{ width:70px; }
.champ-table .champ-count{ width:90px; color:var(--grey); }
.champ-table tr.is-top3 .champ-rank{ color:var(--yellow); }
.champ-table tr.is-top3 .champ-driver{ font-weight:700; }
.champ-table .champ-round.is-dropped{ color:var(--line); opacity:0.5; }
.champ-table .champ-round.is-counted{ color:var(--white); }
.champ-table .champ-total{ font-weight:700; color:var(--yellow); font-size:14.5px; }

/* With several rounds the table can run wide enough to need horizontal
   scroll (.champ-table-scroll below) — without this, scrolling right to
   see later rounds loses sight of whose row it is and what their
   running total is. Rank+Name stay pinned left, Total stays pinned
   right, so only the round-by-round detail scrolls underneath them. A
   solid background is required on sticky cells so scrolling content
   doesn't show through underneath. Desktop/tablet only — the mobile
   layout below drops position:sticky entirely since it doesn't scroll
   horizontally at all (round columns are hidden outright there instead). */
.champ-table th.champ-rank, .champ-table td.champ-rank{ position:sticky; left:0; z-index:2; background:var(--black); }
.champ-table th.champ-driver, .champ-table td.champ-driver{ position:sticky; left:50px; z-index:2; background:var(--black); }
.champ-table th.champ-total, .champ-table td.champ-total{ position:sticky; right:0; z-index:2; background:var(--black); }
.champ-table td.champ-driver::after{ /* subtle edge so the pinned columns read as a distinct panel while scrolling */
  content:""; position:absolute; top:0; right:0; bottom:0; width:1px; background:var(--line);
}

/* Below 700px: a horizontally-scrolling multi-column table is fiddly on
   touch devices and was overflowing the screen edge. Switch to a
   stacked card per driver instead — rank/name/total stay prominent, and
   the per-round breakdown is hidden entirely (see .champ-mobile-hint)
   rather than reformatted, since with several rounds it became more
   clutter than information at this width. */
.champ-mobile-hint{ display:none; }
@media (max-width:700px){
  .champ-mobile-hint{ display:block; color:var(--grey); font-size:12px; font-style:italic; margin-top:-4px; margin-bottom:20px; }
  .champ-table-scroll{ overflow-x:visible !important; }
  .champ-table{ min-width:0; }
  .champ-table thead{ display:none; }
  .champ-table, .champ-table tbody{ display:block; width:100%; }
  .champ-table tr{
    display:flex; flex-wrap:wrap; align-items:center;
    background:var(--black2); border:1px solid var(--line); border-radius:2px;
    padding:14px 16px; margin-bottom:12px;
  }
  .champ-table td{ border-bottom:none; padding:0; text-align:left; }
  .champ-table th.champ-rank, .champ-table td.champ-rank,
  .champ-table th.champ-driver, .champ-table td.champ-driver,
  .champ-table th.champ-total, .champ-table td.champ-total{ position:static; background:none; }
  .champ-table td.champ-driver::after{ display:none; }
  .champ-table tr > td.champ-rank{ order:1; margin-right:10px; }
  .champ-table tr > td.champ-driver{ order:2; flex:1; }
  .champ-table tr > td.champ-count{ order:3; margin-right:12px; }
  .champ-table tr > td.champ-total{ order:4; margin-left:auto; font-size:16px; }
  /* Per-round breakdown (date + points for every qualifying round) is
     dropped entirely on mobile rather than reformatted — with several
     rounds it became a wall of small chips that was more clutter than
     information at this width. The full breakdown is still there on
     desktop; mobile shows the headline numbers only (Rank, Name, Total). */
  .champ-table tr > td.champ-round{ display:none; }
}

/* ---------- CLUB HISTORY TIMELINE ---------- */
.timeline{ padding-top:20px; padding-bottom:80px; }
.timeline-entry{
  display:flex; align-items:center; gap:56px; margin-bottom:90px;
}
.timeline-entry.reverse{ flex-direction:row-reverse; }
.timeline-entry .media{ flex:1 1 45%; min-width:0; overflow:hidden; border-radius:2px; }
.timeline-entry .media img{
  width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:2px; display:block;
}
.timeline-entry .media--plain{
  aspect-ratio:4/3; background:var(--black2); border:1px solid var(--line); border-radius:2px;
  display:flex; align-items:center; justify-content:center;
}
.timeline-entry .year-mark{ font-size:64px; font-weight:700; color:var(--line); letter-spacing:0.02em; }
.timeline-entry .year-mark span{ color:var(--yellow); }
.timeline-entry .content{ flex:1 1 55%; min-width:0; }
.timeline-entry .year{ color:var(--amber); font-size:13px; margin-bottom:10px; }
.timeline-entry h2{ font-size:28px; text-transform:none; margin:0 0 14px; }
.timeline-entry p{ color:var(--text-muted); line-height:1.7; margin:0 0 14px; font-size:15.5px; }
.timeline-entry p:last-child{ margin-bottom:0; }
@media (max-width:820px){
  .timeline-entry, .timeline-entry.reverse{ flex-direction:column; gap:24px; margin-bottom:60px; }
}

.pull-quote{
  max-width:760px; margin:20px auto 90px; text-align:center; padding:0 20px;
}
.pull-quote p{
  font-family:'Rajdhani', sans-serif; font-weight:700; font-size:clamp(22px,3.2vw,32px);
  line-height:1.35; color:var(--white); margin:0 0 18px;
}
.pull-quote span{ color:var(--amber); font-size:12.5px; }

.history-cta{
  text-align:center; max-width:560px; margin:0 auto 100px; padding:50px 20px 0;
  border-top:1px solid var(--line);
}
.history-cta h2{ font-size:26px; margin-bottom:14px; }
.history-cta p{ color:var(--text-muted); line-height:1.7; margin-bottom:26px; }

/* ---------- POST HERO (single-event.php / single.php) ----------
   Shared full-bleed image + overlaid title treatment, same visual
   language as the homepage hero (dark gradient, route-line accent,
   Rajdhani display type) rather than a plain "image then title" stack. */
.post-hero{
  position:relative; min-height:52vh; display:flex; align-items:flex-end;
  overflow:hidden; background:var(--black);
}
@media (max-width:700px){ .post-hero{ min-height:38vh; } }
.post-hero-media{ position:absolute; inset:0; }
.post-hero-media img{ width:100%; height:100%; object-fit:cover; opacity:0.65; }
.post-hero.no-image{
  background:
    radial-gradient(ellipse 90% 60% at 22% 100%, rgba(244,194,27,0.12), transparent 60%),
    linear-gradient(180deg, #0b0c0d 0%, #0E0F10 55%, #0E0F10 100%);
}
.post-hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(14,15,16,0) 0%, rgba(14,15,16,0.6) 55%, rgba(14,15,16,0.97) 100%);
}
.post-hero-inner{ position:relative; z-index:2; padding-top:56px; padding-bottom:34px; width:100%; }
.post-hero-inner .route-line{ margin-bottom:16px; }
.post-hero-inner .num{ color:var(--amber); margin-bottom:10px; font-size:13px; }
.post-hero-inner h1{ font-size:clamp(30px,5vw,54px); line-height:0.98; max-width:22ch; }

/* ---------- GENERIC PAGE / POST CONTENT ---------- */
.page-header{ padding-top:64px; padding-bottom:20px; }
.page-header h1{ font-size:clamp(30px,5vw,50px); }
.entry-content{
  padding-top:36px; padding-bottom:80px; font-size:16px; line-height:1.75; color:var(--text-muted);
}
.wc-page-content{ padding-top:20px; padding-bottom:80px; font-size:16px; line-height:1.7; color:var(--text-muted); }
/* The reading-width cap lives on the text elements themselves, not on
   .entry-content as a whole — that box shares the .wrap class and must
   stay full-width/centered exactly like the hero above it. Capping the
   box itself (instead of the text within it) was what caused it to lose
   that shared centering and drift out of alignment with the hero title
   on wide screens. Paragraphs/headings/lists below just stay narrow and
   left-aligned inside the already-correctly-positioned box. */
.entry-content h2, .entry-content h3,
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote{
  max-width:68ch;
}
.entry-content h2, .entry-content h3{ text-transform:none; margin:34px 0 14px; }
.entry-content h2{ font-size:24px; } .entry-content h3{ font-size:19px; color:var(--white); }
.entry-content p{ margin:0 0 20px; }
.entry-content em{ color:var(--white); }
.entry-content blockquote{
  margin:28px 0; padding:4px 0 4px 22px; border-left:2px solid var(--yellow);
  font-size:18px; font-style:italic; color:var(--white);
}
.entry-content ul, .entry-content ol{ padding-left:22px; margin:0 0 20px; }
.entry-content li{ margin-bottom:8px; }
.entry-content img{ margin:20px 0; border-radius:2px; max-width:100%; }
.entry-content a{ color:var(--yellow); text-decoration:underline; }
.entry-content .wp-block-gallery{ max-width:100%; }
.entry-content .wp-block-gallery figure img{ margin:0; }

/* ---------- PAGINATION (the_posts_pagination() + paginate_links() + WooCommerce's own shop pagination) ---------- */
.pagination .nav-links,
.woocommerce-pagination ul{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; list-style:none; padding:0; margin:36px 0 0; }
.pagination .page-numbers,
.woocommerce-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 12px;
  font-family:'JetBrains Mono', monospace; font-size:13px;
  color:var(--white); border:1px solid var(--line); border-radius:2px;
}
a.page-numbers:hover{ border-color:var(--yellow); color:var(--yellow); }
.pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current{ background:var(--yellow); color:var(--on-accent); border-color:var(--yellow); }
.pagination .page-numbers.dots{ border:none; }

/* ---------- MASONRY GALLERY (single-gallery.php) ----------
   True masonry via CSS Grid: gallery-lightbox.js measures each photo's
   natural aspect ratio and sets how many grid rows it spans, so the
   layout staggers based on the real photo shape. A CSS-columns approach
   (stacking top-to-bottom per column) looks like a plain grid whenever
   a set of photos happens to share the same aspect ratio — common for
   an event shot on one camera/lens — so this avoids that. Every 5th
   photo also gets a wider "featured" treatment for visual rhythm even
   when every source photo is the same shape. */
.masonry-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows:8px;
  gap:12px;
}
/* Base .m-item styling for standalone reuse (e.g. Club History timeline
   images) — grid-specific sizing below only applies inside an actual
   .masonry-gallery grid. */
.m-item{ cursor:zoom-in; display:block; }
.m-item img{ transition:transform 400ms ease; }
.m-item:hover img{ transform:scale(1.03); }
.masonry-gallery .m-item{
  display:block; overflow:hidden; border-radius:2px; cursor:zoom-in; position:relative;
  grid-row-end:span 30; /* JS overwrites this once the image's real ratio is known */
}
.masonry-gallery .m-item.featured{ grid-column:span 2; }
@media (max-width:560px){
  .masonry-gallery{ grid-template-columns:1fr 1fr; }
  .masonry-gallery .m-item.featured{ grid-column:span 2; }
}
.masonry-gallery .m-item img{
  width:100%; height:100%; object-fit:cover; display:block; transition:transform 400ms ease;
}
.masonry-gallery .m-item:hover img{ transform:scale(1.035); }

/* ---------- LIGHTBOX ---------- */
.swmc-lightbox{
  display:none; position:fixed; inset:0; z-index:300;
  background:rgba(6,6,7,0.95);
  align-items:center; justify-content:center; flex-direction:column;
  padding:24px;
}
.swmc-lightbox.open{ display:flex; }
.swmc-lightbox img{ max-width:90vw; max-height:74vh; object-fit:contain; }
.swmc-lightbox .lb-controls{ display:flex; align-items:center; gap:18px; margin-top:20px; }
.swmc-lightbox .lb-close{
  position:absolute; top:20px; right:22px; background:none; border:none;
  color:var(--white); font-size:30px; line-height:1; cursor:pointer;
}
.swmc-lightbox .lb-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  background:rgba(245,243,238,0.08); border:1px solid rgba(245,243,238,0.25);
  color:var(--white); font-size:24px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.swmc-lightbox .lb-nav:hover{ border-color:var(--yellow); color:var(--yellow); }
.lb-prev{ left:18px; } .lb-next{ right:18px; }
@media (max-width:640px){ .lb-prev{ left:6px; } .lb-next{ right:6px; } }
.lb-counter{ font-size:12px; color:var(--grey); }

/* ---------- CART ICON (header) ---------- */
/* ---------- THEME TOGGLE ---------- */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  background:none; border:none; color:var(--white); cursor:pointer; padding:0;
}
.theme-toggle:hover{ color:var(--yellow); }
.theme-toggle .icon-sun{ display:none; }
html[data-theme="light"] .theme-toggle .icon-moon{ display:none; }
html[data-theme="light"] .theme-toggle .icon-sun{ display:block; }

.cart-icon{ position:relative; display:inline-flex; align-items:center; color:var(--white); }
.cart-icon:hover{ color:var(--yellow); }
.cart-icon svg{ display:block; }
.cart-count{
  position:absolute; top:-8px; right:-10px;
  background:var(--yellow) !important; color:var(--on-accent) !important;
  font-size:10px; min-width:16px; height:16px; padding:0 3px;
  border-radius:8px; display:flex; align-items:center; justify-content:center;
}

/* ---------- WOOCOMMERCE THEMING ---------- */
.woocommerce-page .wc-content-wrap{ padding-top:60px; padding-bottom:90px; }

/* ---------- WOOCOMMERCE BLOCKS (Cart & Checkout blocks) ----------
   Modern WooCommerce uses block-based Cart/Checkout pages by default —
   the "Add coupons" accordion, +/- quantity stepper, and totals sidebar
   are all rendered by the Cart and Checkout blocks, which use a
   completely different set of classes (wc-block-*) than the classic
   [woocommerce_cart] shortcode markup the rules above target. Both are
   covered so this works whichever your Cart/Checkout pages use. */
.wc-block-cart, .wc-block-checkout{ font-family:'Work Sans', sans-serif; color:var(--white); }

/* Product name / price / quantity within each cart line item */
.wc-block-cart-item__image img{
  width:110px !important; height:110px !important; object-fit:cover; border-radius:2px;
}
.wc-block-components-product-name{
  color:var(--white) !important; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:20px; text-decoration:none;
}
.wc-block-components-product-name:hover{ color:var(--yellow) !important; }
.wc-block-components-product-metadata, .wc-block-components-product-details{ color:var(--grey); font-size:13px; }
.wc-block-components-formatted-money-amount{ font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; }
.wc-block-cart-item__total .wc-block-components-formatted-money-amount{ color:var(--white); font-size:17px; }
.wc-block-components-product-price .wc-block-components-formatted-money-amount{ color:var(--yellow); font-size:17px; }

/* Quantity stepper */
.wc-block-components-quantity-selector{
  border:1px solid var(--line) !important; border-radius:2px !important; background:var(--black2) !important;
}
.wc-block-components-quantity-selector__button{ color:var(--white) !important; background:transparent !important; }
.wc-block-components-quantity-selector__input{
  background:transparent !important; color:var(--white) !important; font-family:'JetBrains Mono',monospace !important;
}
.wc-block-cart-item__remove-link{ color:var(--grey) !important; }
.wc-block-cart-item__remove-link:hover{ color:var(--yellow) !important; }

/* Rows, dividers, coupon panel */
.wc-block-cart-items, .wc-block-cart-items__header, .wc-block-cart-item{ border-color:var(--line) !important; }
.wc-block-components-panel .wc-block-components-panel__button{
  color:var(--white) !important; font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:0.03em;
}
.wc-block-components-panel{ border-color:var(--line) !important; }

/* Totals sidebar — WooCommerce's own default sizing makes "Estimated
   total" noticeably larger than the product name/price on the left,
   which is what threw off the balance. Reined the big number in and
   sized everything here relative to the product column above rather
   than leaving WooCommerce's defaults as-is. */
.wc-block-cart__sidebar, .wc-block-components-sidebar,
.wc-block-checkout__sidebar{
  background:var(--black2); border:1px solid var(--line); border-radius:2px; padding:24px;
}
.wc-block-cart__totals-title, .wc-block-components-totals-item, .wc-block-components-totals-footer-item{
  color:var(--white) !important; border-color:var(--line) !important;
}
.wc-block-components-totals-item__label{ color:var(--grey); font-size:14px; }
.wc-block-components-totals-item__value{ font-family:'JetBrains Mono',monospace; font-size:14px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{ font-size:16px; color:var(--white); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount{
  font-size:20px !important; font-family:'Rajdhani',sans-serif !important; color:var(--yellow) !important;
}

/* Buttons — Proceed to Checkout, Place Order, Apply coupon, etc. all
   use this shared block-button class, so one rule covers all of them. */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button,
.wp-block-woocommerce-checkout-actions-block .wp-element-button{
  background:var(--yellow) !important; color:var(--on-accent) !important; border:none !important; border-radius:2px !important;
  font-family:'Rajdhani',sans-serif !important; font-weight:700 !important; text-transform:uppercase !important;
  letter-spacing:0.03em !important; text-decoration:none !important; padding:13px 24px !important;
}
.wc-block-cart__submit-button:hover, .wc-block-components-button:hover{ background:#ffd23d !important; }

/* Checkout form fields (address, contact details, etc.) */
.wc-block-components-text-input input, .wc-block-components-text-input textarea,
.wc-block-components-select-input select,
.wc-block-components-combobox input{
  background:var(--black2) !important; border:1px solid var(--line) !important; color:var(--white) !important;
  border-radius:2px !important;
}
.wc-block-components-text-input label, .wc-block-components-select-input label{ color:var(--grey) !important; }
.wc-blocks-components-select__label{ color:var(--grey) !important; }

/* Confirmed via DevTools inspection — checkout's order summary shows
   quantity as a small circular badge overlaid on each product
   thumbnail, a different element from the cart page's editable
   quantity stepper above (.wc-block-components-quantity-selector). */
.wc-block-components-order-summary-item__quantity{
  background:var(--yellow) !important; color:var(--on-accent) !important;
  border:none !important; font-weight:700 !important;
}
.wc-block-components-order-summary-item__quantity *{
  color:var(--on-accent) !important;
}

/* Confirmed via DevTools — WooCommerce Blocks' own SelectControl uses
   this exact class on the <select> itself (note the "wc-blocks-"
   prefix — an extra "s" — differs from the "wc-block-" prefix most
   other block components use, which is what my first attempt missed). */
.wc-blocks-components-select__select{
  background:var(--black2) !important; color:var(--white) !important; border:1px solid var(--line) !important;
}
.wc-blocks-components-select__select option{
  background:var(--black2); color:var(--white);
}

/* Confirmed via DevTools — order notes uses this class directly,
   standalone rather than nested inside .wc-block-components-text-input
   as I'd assumed. */
.wc-block-components-textarea{
  background:var(--black2) !important; color:var(--white) !important; border:1px solid var(--line) !important;
}

/* Your inspector confirmed the real classes: .wc-block-cart__main (left,
   the product table) and .wc-block-cart__sidebar (right, basket totals)
   are already laid out side-by-side by WooCommerce's own default flex
   behaviour — the earlier grid rule here was targeting the wrong
   wrapper a level up, which is what created that empty hatched track.
   This just fine-tunes the sidebar to a consistent width instead of
   fighting the layout that already works. */
.wc-block-cart__sidebar, .wc-block-checkout__sidebar{
  flex:0 0 320px !important; max-width:320px !important;
}
.wc-block-cart__main, .wc-block-checkout__main{ min-width:0; }
@media (max-width:960px){
  /* Below this width there isn't room for a fixed 320px sidebar next to
     the product table without squeezing it — rather than letting it
     wrap onto its own row at that same fixed width (leaving a stranded
     narrow box with dead space beside it, which is what tablet widths
     were doing), both columns go full-width and stack cleanly. */
  .wc-block-cart__sidebar, .wc-block-checkout__sidebar,
  .wc-block-cart__main, .wc-block-checkout__main{
    flex:1 1 100% !important; max-width:100% !important;
  }
}

/* ---------- WOOCOMMERCE PRODUCT GRID BLOCKS ----------
   A third, separate WooCommerce block system (older than Cart/Checkout
   blocks) used for things like "New Arrivals"/"Best Sellers" blocks and
   the cross-sell suggestions shown on an empty cart page. Different
   class prefix (wc-block-grid) from both the classic shop grid
   (woocommerce ul.products) and the Cart/Checkout blocks above — none
   of that earlier styling reaches this. */
.wc-block-grid__products{
  display:grid !important; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap:24px !important; list-style:none; padding:0;
}
.wc-block-grid__product{
  width:100% !important; float:none !important; margin:0 !important; box-sizing:border-box;
  background:var(--black2); border:1px solid var(--line); border-radius:2px; padding:16px; text-align:left;
}
a.wc-block-grid__product-link{ display:block !important; width:100% !important; }
.wc-block-grid__product-image{ display:block; width:100% !important; max-width:100% !important; margin-bottom:14px; }
.wc-block-grid__product-image img{ display:block !important; border-radius:2px; aspect-ratio:1/1; object-fit:cover; width:100% !important; max-width:100% !important; height:auto; }
.wc-block-grid__product-title{
  font-family:'Rajdhani',sans-serif; font-weight:700; text-transform:none; color:var(--white); font-size:17px; margin:0 0 6px;
}
.wc-block-grid__product-price{ color:var(--yellow); font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; }
.wc-block-grid__product-add-to-cart{ width:100%; }
/* Catch-all regardless of the button's actual class — our earlier
   guess (.wp-block-button__link / .wp-element-button) apparently isn't
   what's actually rendered here, since the width fix didn't reach it.
   This targets whatever element WooCommerce puts in this slot instead
   of guessing the exact class a third time. */
.wc-block-grid__product-add-to-cart > *{
  display:block !important; width:100% !important; box-sizing:border-box !important; text-align:center !important;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid__product .added_to_cart,
.wc-block-grid__product .wp-element-button{
  background:var(--yellow) !important; color:var(--on-accent) !important; border-radius:2px !important;
  font-family:'Rajdhani',sans-serif !important; font-weight:700 !important; text-transform:uppercase !important;
  letter-spacing:0.03em !important; border:none !important; padding:11px 22px !important; text-decoration:none !important;
  display:inline-block; width:100%; text-align:center; box-sizing:border-box; margin-top:12px;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover{ background:#ffd23d !important; }

/* Note: WooCommerce Blocks class names can shift slightly between
   plugin versions. If a specific element still looks unstyled — or the
   two-column split above doesn't land in the right place — right-click
   → Inspect on it and send me the class name shown, and I'll add a
   targeted rule for it. */

/* Breadcrumbs */
.woocommerce-breadcrumb{ font-size:13px; color:var(--grey); margin-bottom:24px; }
.woocommerce-breadcrumb a{ color:var(--grey); text-decoration:underline; }
.woocommerce-breadcrumb a:hover{ color:var(--yellow); }

/* Result count + sort dropdown row above the shop grid */
.woocommerce-result-count{ color:var(--grey); font-size:13px; margin:0 0 24px; }
.woocommerce-ordering{ margin:0 0 24px; }
.woocommerce-ordering select{
  background:var(--black2); border:1px solid var(--line); color:var(--white);
  font-family:'JetBrains Mono',monospace; font-size:13px; padding:9px 12px;
  border-radius:2px;
}

/* Shop grid */
.woocommerce ul.products{
  display:grid !important; grid-template-columns:repeat(3,1fr) !important;
  justify-content:start !important; justify-items:stretch !important;
  width:100% !important; max-width:100% !important; float:none !important;
  gap:24px !important; list-style:none !important; padding:0 !important; margin:0 !important;
}
@media (max-width:820px){ .woocommerce ul.products{ grid-template-columns:1fr 1fr !important; } }
@media (max-width:520px){ .woocommerce ul.products{ grid-template-columns:1fr !important; } }
/* WooCommerce pads an incomplete row with invisible <li class="product
   placeholder"> elements to a multiple of the column count — leftover
   from its old float-based layout, where they were needed to keep the
   row's clearfix working. In a grid layout they serve no purpose and
   were the actual cause of "empty" grid cells pushing real products
   out of column 1. */
/* WooCommerce adds an empty ::before/::after clearfix pair to
   ul.products (content:""; display:table;) to clear floated children
   in its old float-based layout. Under display:grid, an empty
   pseudo-element like that doesn't just disappear — it becomes a real,
   invisible grid item sitting alongside the actual product, which is
   what's actually been pushing a lone product out of column 1 at
   different breakpoints. This was the real cause, not the placeholder
   <li> (there wasn't one) and not the grid math (which was correct). */
.woocommerce ul.products::before, .woocommerce ul.products::after{
  content:none !important; display:none !important;
}

.woocommerce ul.products li.product.placeholder{ display:none !important; }

.woocommerce ul.products li.product{
  width:100% !important; float:none !important; margin:0 !important; clear:none !important;
  background:var(--black2); border:1px solid var(--line); border-radius:2px; padding:16px;
  transition:border-color 300ms ease, transform 300ms ease;
}
.woocommerce ul.products li.product:hover{ border-color:rgba(244,194,27,0.4); transform:translateY(-3px); }
.woocommerce ul.products li.product a.woocommerce-loop-product__link{
  display:block; overflow:hidden; border-radius:2px; margin-bottom:14px;
}
.woocommerce ul.products li.product img{ border-radius:2px; margin-bottom:0; aspect-ratio:1/1; object-fit:cover; transition:transform 450ms ease; }
.woocommerce ul.products li.product:hover img{ transform:scale(1.06); }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:'Rajdhani',sans-serif; font-weight:700; text-transform:none; font-size:17px; margin:0 0 6px;
}
.woocommerce ul.products li.product .price{ color:var(--yellow); font-family:'Rajdhani',sans-serif; font-weight:700; font-size:16px; }
.woocommerce ul.products li.product .price del{ color:var(--grey); opacity:0.7; }
.woocommerce span.onsale{
  background:var(--amber) !important; color:var(--on-accent) !important; font-family:'JetBrains Mono',monospace;
  font-weight:500 !important; font-size:11px !important; border-radius:2px !important; min-height:auto !important;
  padding:4px 8px !important; top:12px !important; left:12px !important;
}

/* Buttons (add to cart, checkout, etc.) */
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce input.button{
  background:var(--yellow) !important; color:var(--on-accent) !important; border-radius:2px !important;
  font-family:'Rajdhani',sans-serif !important; font-weight:700 !important; text-transform:uppercase !important;
  letter-spacing:0.03em !important; border:none !important; padding:11px 22px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{ background:#ffd23d !important; }
.woocommerce a.added_to_cart{ color:var(--yellow); text-decoration:underline; margin-left:10px; }

/* Single product page */
/* WooCommerce's default float-based layout for .images/.summary gives
   no control over vertical balance — when the photo is tall and the
   summary content (price/cart/category) is short, the summary just
   sits pinned to the top with a large empty gap below it. Flex with
   align-items:center centers the shorter column against the photo's
   height instead. */
.woocommerce div.product{
  display:flex !important; flex-wrap:wrap; gap:40px; align-items:center;
}
.woocommerce div.product > .images, .woocommerce div.product > .summary{
  float:none !important; width:auto !important; flex:1 1 420px;
}
.woocommerce div.product .product_title::before{
  content:""; display:block; width:48px; height:2px; background:var(--yellow); margin-bottom:18px;
}
.woocommerce div.product .product_title{ font-size:clamp(26px,3.5vw,36px); margin-bottom:10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price{ color:var(--yellow); font-family:'Rajdhani',sans-serif; font-weight:700; font-size:22px; }
.woocommerce div.product .woocommerce-product-details__short-description{ color:var(--text-muted); line-height:1.6; margin:16px 0; }
.woocommerce div.product form.cart{ margin:24px 0; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.woocommerce div.product div.images{ overflow:hidden; border-radius:2px; aspect-ratio:1/1; }
.woocommerce div.product div.images img{ border-radius:2px; transition:transform 500ms ease; width:100%; height:100%; object-fit:cover; }
.woocommerce div.product div.images:hover img{ transform:scale(1.03); }
.woocommerce div.product div.thumbnails, .woocommerce .flex-control-thumbs{ display:flex; gap:10px; margin-top:12px; list-style:none; padding:0; }
@media (max-width:820px){
  .woocommerce div.product{ flex-direction:column; align-items:stretch; }
  .woocommerce div.product > .images, .woocommerce div.product > .summary{ flex:1 1 100%; width:100% !important; }
}
/* Small trust/feature strip injected below Add to Basket (see
   inc/woocommerce.php) — gives the summary column real content instead
   of just empty space, on every product without needing extra copy. */
.swmc-product-highlights{ list-style:none; padding:0; margin:28px 0 0; }
.swmc-product-highlights li{
  display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--text-muted); padding:8px 0; border-top:1px solid var(--line);
}
.swmc-product-highlights li:before{ content:"✓"; color:var(--yellow); font-weight:700; }
.woocommerce .flex-control-thumbs li{ width:70px; }
.woocommerce .flex-control-thumbs img{ border-radius:2px; opacity:0.6; cursor:pointer; }
.woocommerce .flex-control-thumbs img.flex-active{ opacity:1; outline:2px solid var(--yellow); }
.woocommerce div.product .product_meta{
  margin-top:28px; padding-top:20px; border-top:1px solid var(--line);
  font-size:12px; color:var(--grey);
}
.woocommerce div.product .product_meta a{ color:var(--yellow); text-decoration:underline; }
.woocommerce div.product .product_meta > span{ display:block; margin-bottom:4px; }

/* Quantity input */
.woocommerce .quantity .qty{
  background:var(--black2); border:1px solid var(--line); color:var(--white);
  font-family:'JetBrains Mono',monospace; padding:11px 12px; border-radius:2px; width:70px;
}

/* Tabs (description / reviews)
   WooCommerce's classic theme ships a distinctive "file-folder tab" look
   by default — a light background + border painted directly on the <li>,
   separate from the link text colour we were already setting. We hadn't
   overridden that box at all, which is why the active tab showed up as
   a plain white rectangle. Stripped it back to a flat underline tab. */
.woocommerce div.product .woocommerce-tabs ul.tabs{
  border-bottom:1px solid var(--line) !important; margin:40px 0 0; padding:0;
  list-style:none; display:flex; gap:28px; background:transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin:0 !important; padding:0 !important; background:transparent !important;
  border:none !important; border-radius:0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{ display:none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase; font-size:14px;
  letter-spacing:0.03em; color:var(--grey) !important; background:transparent !important;
  padding:0 0 14px !important; margin:0 !important; display:inline-block; border-bottom:2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{ color:var(--white) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{ color:var(--yellow) !important; border-color:var(--yellow); }

/* Panel content — Description / Reviews body copy */
.woocommerce div.product .woocommerce-tabs .panel{
  padding:32px 0 0; color:var(--text-muted); line-height:1.7; font-size:15.5px; max-width:70ch;
  border:none !important; background:transparent !important;
}
.woocommerce div.product .woocommerce-tabs .panel h2{
  font-size:22px; text-transform:none; margin:0 0 18px;
}
.woocommerce div.product .woocommerce-tabs .panel h3{
  font-size:18px; text-transform:none; color:var(--white); margin:28px 0 10px;
}
.woocommerce div.product .woocommerce-tabs .panel p{ margin:0 0 16px; }
.woocommerce #reviews .comment-form input, .woocommerce #reviews .comment-form textarea{
  background:var(--black2) !important; border:1px solid var(--line) !important; color:var(--white) !important; border-radius:2px !important;
}
.woocommerce #reviews .star-rating{ color:var(--yellow); }
.woocommerce #reviews .commentlist{ list-style:none; padding:0; }
.woocommerce #reviews .comment_container{ border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:20px; }

/* Forms generally (checkout, my account, review forms) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form textarea,
.woocommerce form select{
  background:var(--black2) !important; border:1px solid var(--line) !important; color:var(--white) !important;
  border-radius:2px !important; padding:11px 12px !important;
}
/* The dropdown LIST itself (not just the closed select) often ignores
   the background above and falls back to the browser's native popup
   rendering while still inheriting the text color — producing white
   text on a white background specifically inside the open dropdown.
   Explicit option styling is the standard fix, though support for
   this varies slightly by browser/OS. */
.woocommerce form select option{
  background:var(--black2); color:var(--white);
}
.woocommerce form .form-row label{ color:var(--grey); font-size:13px; }

/* WooCommerce's country/state field commonly uses the Select2 JS
   library rather than a plain <select> — entirely different markup
   that the select/option rules above never reach, and a very likely
   candidate for the reported white-on-white country selector. */
.select2-container .select2-selection--single{
  background:var(--black2) !important; border:1px solid var(--line) !important;
  height:44px !important; border-radius:2px !important;
}
.select2-container .select2-selection__rendered{
  color:var(--white) !important; line-height:44px !important; padding-left:12px !important;
}
.select2-container .select2-selection__arrow{ height:44px !important; }
.select2-dropdown{ background:var(--black2) !important; border:1px solid var(--line) !important; }
.select2-search__field{ background:var(--black2) !important; color:var(--white) !important; }
.select2-results__option{ color:var(--white) !important; }
.select2-results__option--highlighted{ background:var(--yellow) !important; color:var(--on-accent) !important; }

/* Cart & checkout tables */
.woocommerce table.shop_table{ border-collapse:collapse; width:100%; border:1px solid var(--line); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td{ border:1px solid var(--line); padding:14px; color:var(--white); }
.woocommerce table.shop_table th{ font-family:'Rajdhani',sans-serif; text-transform:uppercase; font-size:13px; color:var(--grey); }
.woocommerce-cart-form .product-remove a{ color:var(--grey); }
.woocommerce-cart-form .product-remove a:hover{ color:var(--yellow); }

/* Notices (added to cart, errors, order received, etc.) */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews{
  background:var(--black2) !important; border-top-color:var(--yellow) !important; color:var(--white) !important;
  list-style:none; padding:14px 20px !important; border-radius:2px;
}
.woocommerce-message::before, .woocommerce-info::before{ color:var(--yellow) !important; }

/* ---------- ABOUT PAGE ---------- */
.about-page{ overflow-x:clip; }

/* Hero — floating, slowly-animated blurred orbs behind the text give a
   sense of motion without needing video, while staying cheap to render. */
.about-hero{
  position:relative; min-height:48vh; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-end;
  overflow:hidden; background:var(--black);
}
.about-hero-media{ position:absolute; inset:0; z-index:0; }
.about-hero-media img{ width:100%; height:100%; object-fit:cover; opacity:0.6; }
.about-hero::after{
  content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(14,15,16,0) 0%, rgba(14,15,16,0.6) 55%, rgba(14,15,16,0.97) 100%);
}
.about-hero.no-image{ justify-content:center; }
.about-hero-bg{ position:absolute; inset:0; z-index:0; }
.about-orb{
  position:absolute; border-radius:50%; filter:blur(60px); opacity:0.35;
  animation:about-float 14s ease-in-out infinite;
}
.about-orb-1{ width:380px; height:380px; background:var(--yellow); top:-10%; left:-8%; animation-duration:16s; }
.about-orb-2{ width:280px; height:280px; background:var(--amber); bottom:-15%; right:5%; animation-duration:13s; animation-delay:-4s; }
.about-orb-3{ width:220px; height:220px; background:var(--yellow); top:40%; right:25%; animation-duration:18s; animation-delay:-8s; opacity:0.2; }
@keyframes about-float{
  0%, 100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(30px,-20px) scale(1.08); }
  66%{ transform:translate(-20px,25px) scale(0.95); }
}
.about-hero-inner{ position:relative; z-index:1; padding-top:56px; padding-bottom:36px; text-align:left; width:100%; }
.about-hero-inner h1{ font-size:clamp(36px, 6vw, 62px); max-width:22ch; line-height:1.05; margin-bottom:22px; }
.about-lede{ color:var(--text-muted); font-size:18px; line-height:1.7; max-width:56ch; }
@media (max-width:700px){ .about-hero{ min-height:40vh; } }

/* Stats — big numbers, count up from 0 when scrolled into view (see main.js) */
.about-stats{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.about-stats-grid{ display:grid; grid-template-columns:repeat(3, 1fr); text-align:center; }
.about-stat{ padding:50px 20px; border-right:1px solid var(--line); }
.about-stat:last-child{ border-right:none; }
.about-stat-value{
  display:block; font-family:'Rajdhani', sans-serif; font-weight:700;
  font-size:clamp(38px, 5vw, 56px); color:var(--yellow); line-height:1;
}
.about-stat-label{ display:block; margin-top:10px; color:var(--amber); font-size:13px; text-transform:uppercase; letter-spacing:0.05em; }

/* Event Types — same numbered/hover-lift visual language as the
   Pillars below, so the two sit together as one consistent design
   rather than reusing the plainer homepage .type-card style, which
   read as a different, mismatched section on this page specifically. */
.about-event-types{ padding:84px 0; border-top:1px solid var(--line); }
.about-type-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:2px; background:var(--line); border:1px solid var(--line); margin-top:40px; }
.about-type-card{
  position:relative; background:var(--black); padding:36px 28px; overflow:hidden;
  transition:transform 0.3s, background 0.3s;
}
.about-type-card:hover{ transform:translateY(-4px); background:var(--black2); }
.about-type-num{
  position:absolute; top:16px; right:22px; font-size:42px; font-weight:700; color:var(--line);
  z-index:0; line-height:1; transition:color 0.3s; font-family:'Rajdhani',sans-serif;
}
.about-type-card:hover .about-type-num{ color:rgba(232,121,26,0.22); }
.about-type-card h3{ position:relative; z-index:1; font-size:20px; margin-bottom:10px; text-transform:none; }
.about-type-card p{ position:relative; z-index:1; color:var(--text-muted); font-size:14.5px; line-height:1.65; margin:0; }

/* Pillars — 2x2 grid, large faint numeral per card, lift-on-hover for interactivity */
.about-pillars{ padding:84px 0; border-top:1px solid var(--line); }
.about-pillars-grid{ display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--line); border:1px solid var(--line); }
.about-pillar{
  position:relative; background:var(--black); padding:44px 36px; overflow:hidden;
  transition:transform 0.3s, background 0.3s;
}
.about-pillar:hover{ transform:translateY(-4px); background:var(--black2); }
.about-pillar-num{
  position:absolute; top:20px; right:26px; font-size:56px; font-weight:700; color:var(--line);
  z-index:0; line-height:1; transition:color 0.3s;
}
.about-pillar:hover .about-pillar-num{ color:rgba(232,121,26,0.22); }
.about-pillar h3{ position:relative; z-index:1; font-size:24px; margin-bottom:14px; }
.about-pillar p{ position:relative; z-index:1; color:var(--text-muted); font-size:15px; line-height:1.7; margin:0 0 18px; max-width:42ch; }
.about-pillar-link{ position:relative; z-index:1; color:var(--yellow); font-family:'Rajdhani',sans-serif; font-weight:600; text-transform:uppercase; font-size:13.5px; letter-spacing:0.03em; }
.about-pillar-image{ position:absolute; inset:0; z-index:0; opacity:0.16; }
.about-pillar-image img{ width:100%; height:100%; object-fit:cover; }

@media (max-width:780px){ .about-type-grid{ grid-template-columns:1fr; } }

/* Photo strip — real club photos between What We Run and Get Involved,
   full-bleed edge to edge rather than boxed in .wrap, for a change of
   pace against the grid-heavy sections either side of it. */
.about-photo-strip{ display:flex; height:280px; overflow:hidden; }
.about-photo{ flex:1; overflow:hidden; position:relative; }
.about-photo:nth-child(2){ flex:1.4; }
.about-photo:nth-child(4){ flex:1.2; }
.about-photo img{ width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.about-photo:hover img{ transform:scale(1.06); }
@media (max-width:780px){
  .about-photo-strip{ height:auto; flex-wrap:wrap; }
  .about-photo{ flex:1 1 50%; height:160px; }
}

/* Closing CTA */
.about-cta{ text-align:center; padding:90px 0; }
.about-cta-inner h2{ font-size:34px; margin-bottom:16px; }
.about-cta-inner p{ color:var(--text-muted); font-size:16px; margin:0 0 30px; }
.about-cta-buttons{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

@media (max-width:780px){
  .about-stats-grid{ grid-template-columns:1fr; }
  .about-stat{ border-right:none; border-bottom:1px solid var(--line); }
  .about-stat:last-child{ border-bottom:none; }
  .about-pillars-grid{ grid-template-columns:1fr; }
  .about-pillar{ padding:34px 26px; }
}
@media (prefers-reduced-motion: reduce){
  .about-orb{ animation:none; }
}

/* ---------- FEATURED ITEMS CAROUSEL ---------- */
.featured-carousel{ position:relative; width:100%; height:60vh; min-height:420px; overflow:hidden; background:var(--black); }
.featured-carousel-track{ position:relative; width:100%; height:100%; }
.featured-slide{
  position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity 0.8s ease;
  display:flex; align-items:center;
}
.featured-slide.is-active{ opacity:1; visibility:visible; z-index:1; }
.featured-slide-media{ position:absolute; inset:0; z-index:0; }
.featured-slide-media img{ width:100%; height:100%; object-fit:cover; }
.featured-slide-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(14,15,16,0.15) 0%, rgba(14,15,16,0.55) 55%, rgba(14,15,16,0.92) 100%);
}
.featured-slide-inner{ position:relative; z-index:2; width:100%; }
.featured-slide-content{ max-width:640px; }
.featured-slide-label{ color:var(--amber); font-size:13px; letter-spacing:0.05em; text-transform:uppercase; margin-bottom:12px; }
.featured-slide-inner h2{ color:var(--white); font-size:clamp(28px, 4.5vw, 46px); line-height:1.05; margin-bottom:10px; }
.featured-slide-date{ color:var(--grey); font-size:13px; margin-bottom:14px; }
.featured-slide-inner p{ color:rgba(245,243,238,0.85); font-size:15px; line-height:1.6; margin:0 0 22px; max-width:56ch; }

.featured-carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(245,243,238,0.3);
  background:rgba(14,15,16,0.4); color:var(--white); font-size:22px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background 0.2s, border-color 0.2s;
}
.featured-carousel-arrow:hover{ background:rgba(14,15,16,0.7); border-color:var(--yellow); }
.featured-carousel-prev{ left:24px; }
.featured-carousel-next{ right:24px; }

.featured-carousel-dots{ position:absolute; bottom:24px; right:28px; z-index:3; display:flex; gap:8px; }
.featured-carousel-dot{
  width:9px; height:9px; border-radius:50%; border:1px solid rgba(245,243,238,0.5);
  background:transparent; cursor:pointer; padding:0; transition:background 0.2s, border-color 0.2s;
}
.featured-carousel-dot.is-active{ background:var(--yellow); border-color:var(--yellow); }

@media (max-width:700px){
  .featured-carousel{ height:70vh; min-height:380px; }
  /* padding-bottom removed - no longer needed now text is vertically centered rather than bottom-aligned */
  .featured-carousel-arrow{ width:36px; height:36px; font-size:18px; }
  .featured-carousel-prev{ left:12px; }
  .featured-carousel-next{ right:12px; }
  .featured-carousel-dots{ bottom:16px; right:16px; }
}
@media (prefers-reduced-motion: reduce){
  .featured-slide{ transition:none; }
}

/* ---------- PROTECTED SECTIONS (kept at end of file deliberately) ----------
   The hero, post-hero, lightbox, featured items carousel, About page
   hero, and gallery tile captions all sit over dark photography/video
   regardless of the site's light/dark mode, so their text needs to stay
   light-colored always rather than following --white (which flips dark
   in light mode) — and anything yellow within them needs to stay at
   the bright value rather than light mode's darker --yellow (which
   exists for contrast against LIGHT backgrounds elsewhere on the site;
   these backgrounds are dark regardless of site theme, so the darker
   value would reduce contrast here instead of helping it).

   This block is placed at the very end of the stylesheet on purpose,
   not just after the light-mode variables block — each of these
   selectors already has its own base styling rule earlier in the file
   (sizing, layout, and its own color/background declarations), so an
   earlier placement only wins the cascade for properties the later
   rule doesn't also set — and every one of these did also set color/
   background, silently overriding an earlier attempt at this same fix.
   Living at the end guarantees these values always win regardless of
   what any other rule in this file declares for the same selector. */
.hero, .hero h1, .hero p, .hero .k, .hero .v{ color:#F5F3EE; }
.hero h1 span:nth-child(2){ color:#F4C21B; }
.hero p.lede{ color:#cfcfcf; }
.hero .btn-outline{ color:#F5F3EE; border-color:rgba(245,243,238,0.4); }
.hero-strip .k{ color:#9a9a9a; }
.route-line{ background:#F4C21B; }
.post-hero, .post-hero h1{ color:#F5F3EE; }
.swmc-lightbox .lb-close, .swmc-lightbox .lb-nav{ color:#F5F3EE; }
.swmc-lightbox .lb-nav:hover{ border-color:#F4C21B; color:#F4C21B; }
.swmc-lightbox .lb-counter{ color:#9a9a9a; }

.featured-slide-inner, .featured-slide-inner h2, .featured-slide-date{ color:#F5F3EE; }
.featured-slide-inner p{ color:rgba(245,243,238,0.85); }
.featured-slide-label{ color:#E8791A; }
.featured-carousel-arrow{ color:#F5F3EE; border-color:rgba(245,243,238,0.3); }
.featured-carousel-arrow:hover{ border-color:#F4C21B; }
.featured-carousel-dot{ border-color:rgba(245,243,238,0.5); }
.featured-carousel-dot.is-active{ background:#F4C21B; border-color:#F4C21B; }

.about-hero-inner, .about-hero-inner h1{ color:#F5F3EE; }
.about-orb-1, .about-orb-3{ background:#F4C21B; }

.g-item .cap{ color:#F5F3EE; }

/* ---------- CHAMPIONSHIPS SHOWCASE PAGE ---------- */
.champs-showcase{ overflow-x:hidden; }

.champs-hero{
  position:relative; min-height:70vh; display:flex; flex-direction:column;
  align-items:flex-start; justify-content:center; padding:80px 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(244,194,27,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(232,121,26,0.08), transparent 60%),
    var(--black);
}
.champs-hero-kicker{ color:var(--amber); font-size:13px; letter-spacing:0.08em; margin-bottom:18px; }
.champs-hero h1{
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase;
  font-size:clamp(40px, 7vw, 84px); line-height:0.98; letter-spacing:-0.01em; color:var(--white);
  margin-bottom:26px;
}
.champs-hero-lede{ font-size:18px; line-height:1.6; color:var(--grey); max-width:56ch; }
.champs-hero-scroll-hint{
  position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(245,243,238,0.3); border-radius:14px;
}
.champs-hero-scroll-hint span{
  display:block; width:4px; height:8px; border-radius:2px; background:var(--yellow);
  margin:7px auto 0; animation:champs-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes champs-scroll-bounce{
  0%, 100%{ transform:translateY(0); opacity:1; }
  50%{ transform:translateY(12px); opacity:0.3; }
}

.champ-chapter{ position:relative; padding:90px 0; border-top:1px solid var(--line); overflow:hidden; }
.champ-chapter-inner{
  display:flex; align-items:center; gap:60px;
}
.champ-chapter.is-reversed .champ-chapter-inner{ flex-direction:row-reverse; }
.champ-chapter-number{
  font-family:'JetBrains Mono', monospace; font-weight:500; font-size:clamp(90px, 14vw, 200px);
  line-height:1; flex-shrink:0; color:transparent; -webkit-text-stroke:2px var(--line);
  transition:opacity 700ms ease, transform 700ms ease; transition-delay:80ms;
}
.champ-accent-yellow .champ-chapter-number{ -webkit-text-stroke-color:rgba(244,194,27,0.35); }
.champ-accent-amber .champ-chapter-number{ -webkit-text-stroke-color:rgba(232,121,26,0.35); }
.champ-chapter-content{ flex:1; min-width:0; }
.champ-chapter-content h2{
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase;
  font-size:clamp(28px, 4vw, 44px); line-height:1.05; margin-bottom:18px; color:var(--white);
}
.champ-chapter-content p{ font-size:16px; line-height:1.65; color:var(--grey); max-width:60ch; margin-bottom:28px; }
.champ-chapter-link{
  display:inline-flex; align-items:center; gap:10px; font-family:'Rajdhani', sans-serif;
  font-weight:700; text-transform:uppercase; letter-spacing:0.03em; font-size:15px;
  padding:13px 24px; border-radius:2px; text-decoration:none; transition:gap 200ms ease, background 200ms ease;
}
.champ-accent-yellow .champ-chapter-link{ background:var(--yellow); color:var(--on-accent); }
.champ-accent-amber .champ-chapter-link{ background:var(--amber); color:var(--on-accent); }
.champ-chapter-link:hover{ gap:16px; }
.champ-chapter-link svg{ width:18px; height:18px; }
.champ-chapter-link.is-disabled{ background:transparent; border:2px solid var(--line); color:var(--grey); cursor:default; }
.champ-chapter-link.is-disabled:hover{ gap:10px; }

.champs-cta{ padding:100px 0; text-align:center; border-top:1px solid var(--line); }
.champs-cta h2{ font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase; font-size:clamp(26px, 4vw, 40px); margin-bottom:16px; }
.champs-cta p{ color:var(--grey); max-width:56ch; margin:0 auto 30px; font-size:16px; line-height:1.6; }
.champs-cta .btn{ margin:0 6px; }

@media (max-width:820px){
  .champ-chapter-inner, .champ-chapter.is-reversed .champ-chapter-inner{ flex-direction:column; align-items:flex-start; gap:24px; }
  .champ-chapter-number{ font-size:clamp(60px, 22vw, 100px); }
  .champs-hero{ min-height:50vh; padding:60px 0; }
}
@media (prefers-reduced-motion: reduce){
  .champs-hero-scroll-hint span{ animation:none; }
}

/* ---------- SHOWREEL MODAL ---------- */
.showreel-modal{ position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; }
.showreel-modal.is-open{ display:flex; }
.showreel-modal-backdrop{ position:absolute; inset:0; background:rgba(6,7,7,0.92); }
.showreel-modal-inner{ position:relative; z-index:1; width:min(920px, 92vw); }
.showreel-modal-inner video{ width:100%; max-height:80vh; border-radius:4px; background:#000; display:block; }
.showreel-modal-close{
  position:absolute; top:-44px; right:0; width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(245,243,238,0.3); background:rgba(14,15,16,0.5); color:#F5F3EE;
  font-size:24px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.showreel-modal-close:hover{ border-color:#F4C21B; color:#F4C21B; }
@media (max-width:600px){
  .showreel-modal-close{ top:-40px; right:0; }
}

/* ---------- EVENT MAP ---------- */
.event-map{ margin:24px 0; border-radius:4px; overflow:hidden; border:1px solid var(--line); }
.event-map iframe{ display:block; filter:grayscale(0.15); }

/* ---------- ADD TO CALENDAR (discreet, text-style link) ---------- */
.add-to-calendar{
  display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--grey);
  text-decoration:none; border-bottom:1px dotted var(--grey); padding-bottom:1px; transition:color 150ms ease;
}
.add-to-calendar-wrap{ margin:0 0 24px; }
.add-to-calendar:hover{ color:var(--yellow); border-color:var(--yellow); }
.add-to-calendar svg{ width:14px; height:14px; flex-shrink:0; }

/* ---------- EVENT STANDINGS LINKS (after results table) ---------- */
.event-standings-links{ display:flex; gap:12px; flex-wrap:wrap; margin:24px 0 30px; }

/* ---------- CHAMPIONSHIPS SHOWCASE: HERO IMAGE ---------- */
.champs-hero.has-image{ background:none; position:relative; overflow:hidden; }
.champs-hero-media{ position:absolute; inset:0; z-index:0; }
.champs-hero-media img{ width:100%; height:100%; object-fit:cover; }
.champs-hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(14,15,16,0.35) 0%, rgba(14,15,16,0.75) 70%, rgba(14,15,16,0.92) 100%);
}
.champs-hero-inner{ position:relative; z-index:2; }

/* ---------- CHAMPIONSHIPS SHOWCASE: PER-CHAMPIONSHIP IMAGE ---------- */
.champ-chapter-media{ position:relative; flex-shrink:0; width:min(420px, 42vw); border-radius:4px; overflow:hidden; }
.champ-chapter-media img{ width:100%; height:auto; display:block; aspect-ratio:4/3; object-fit:cover; }
.champ-chapter-media-number{
  position:absolute; bottom:14px; left:14px; font-size:15px; padding:6px 12px;
  background:rgba(14,15,16,0.6); color:#F5F3EE; border-radius:2px; backdrop-filter:blur(2px);
}
@media (max-width:820px){
  .champ-chapter-media{ width:100%; }
}

/* Championships Showcase hero text - same reasoning as the other
   protected sections above: sits over dark photography (when a hero
   image is set) regardless of site theme, so needs to stay light-
   coloured always rather than following variables that flip in light
   mode. Appended here, after the main protected block above, since
   these are new selectors added after that block was written - still
   needs to be the last word in the file for the same reason. */
.champs-hero-kicker{ color:#E8791A; }
.champs-hero-inner h1{ color:#F5F3EE; }
.champs-hero-lede{ color:#c9c9c9; }

/* ---------- EVENT ENTRY FORM ---------- */
/* The entry form reuses .champ-submission-toggle (same collapsed-by-
   default accordion as the rally/marshals/gallery submission forms) so
   this long form doesn't dominate the event page before anyone's asked
   to see it — .event-entry-toggle only adds the bit of extra top margin
   .champ-submission-toggle doesn't need in its other uses. */
.event-entry-toggle{ margin:20px 0; }
.event-entry-toggle .event-entry-form{ margin-top:16px; }

.entry-role-toggle{ display:flex; gap:0; margin-bottom:14px; width:fit-content; border:1px solid var(--line); border-radius:2px; overflow:hidden; }
.entry-role-btn{
  background:transparent; border:none; color:var(--grey); padding:9px 20px; font-size:13px;
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; cursor:pointer;
}
.entry-role-btn + .entry-role-btn{ border-left:1px solid var(--line); }
.entry-role-btn.is-active{ background:var(--yellow); color:var(--black2); }
.entry-role-btn:disabled{ opacity:.45; cursor:not-allowed; }
.entry-full-note{ margin:0 0 16px; padding:12px 16px; border:1px solid var(--line); border-left:4px solid var(--yellow); border-radius:8px; font-size:14px; line-height:1.5; }

.event-entry-block{ border:1px solid var(--line); border-radius:4px; padding:16px; margin-bottom:12px; background:var(--card); }
.event-entry-add-btn{ font-size:13px; padding:9px 18px; }

/* A select wasn't themed before the expanded SWMC Timing form added more
   of them — .champ-form-row only ever styled <input>, so a bare <select>
   (the existing Discipline/Class dropdowns included) fell back to the
   browser's own default look against the dark card background. */
.event-entry-block select{
  width:100%; background:var(--black2); border:1px solid var(--line); color:var(--white);
  padding:10px 12px; border-radius:2px; font-size:14px; font-family:'Work Sans',sans-serif;
}
.event-entry-block select:focus{ outline:none; border-color:var(--yellow); }

.event-entry-section-heading{
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:0.03em;
  font-size:15px; line-height:1.3; color:var(--yellow); margin:20px 0 10px; padding-top:14px; border-top:1px solid var(--line);
}
.event-entry-block > .event-entry-section-heading:first-child{ margin-top:0; padding-top:0; border-top:none; }
.event-entry-section-note{ display:block; color:var(--grey); font-size:12px; margin:-6px 0 12px; }

/* Declaration on the entry form: the wording in a scrollable box, then the tick. */
.entry-declaration{ margin:18px 0 6px; }
.entry-declaration-text{ max-height:210px; overflow:auto; padding:14px 16px; border:1px solid var(--line); border-radius:4px; font-size:13.5px; line-height:1.55; color:var(--text-muted); }
.entry-declaration-text p{ margin:0 0 8px; }
.entry-declaration-text p:last-child{ margin-bottom:0; }
.entry-declaration-text:focus{ outline:2px solid var(--yellow); outline-offset:2px; }
.entry-declaration-tick{ display:flex; gap:10px; align-items:flex-start; margin-top:12px; font-weight:600; cursor:pointer; }
.entry-declaration-tick input{ margin-top:3px; width:18px; height:18px; flex:none; }

.entry-radio-group{ flex:1 1 200px; display:flex; flex-direction:column; gap:6px; }
.entry-radio-group-label{
  font-size:12.5px; color:var(--grey); text-transform:uppercase; letter-spacing:0.03em;
}
/* .champ-form-row label (a generic rule written for plain text-input
   labels) sets flex:1 1 200px + flex-direction:column on EVERY <label>
   inside a .champ-form-row, including these radio <label>s nested inside
   .entry-radio-group — and since flex-direction:column reads flex-basis
   along the vertical axis, each radio option was inheriting a 200PX-TALL
   box instead of a 200px min-width, blowing each radio group out to
   ~600px of mostly blank space. flex/flex-direction are reset explicitly
   here (not just display) to fully override that, regardless of source
   order, since .champ-form-row label matches by element+class same as
   a plain descendant selector would otherwise tie on specificity. */
.entry-radio-group .entry-radio{
  display:inline-flex; flex:0 0 auto; flex-direction:row; align-items:center; gap:6px;
  font-size:14px; color:var(--white); text-transform:none; letter-spacing:normal; margin-right:14px;
}
.entry-radio-group .entry-radio input{ accent-color:var(--yellow); width:16px; height:16px; flex:0 0 auto; }

.entry-class-suggest-note{ display:block; color:var(--grey); font-size:11.5px; margin-top:4px; text-transform:none; }

/* ---------- PUBLIC ENTRY LIST ---------- */
.event-entry-list{ margin:32px 0; }
.event-entry-list h2, .event-entry-list h3{ font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase; font-size:22px; margin-bottom:14px; }
.event-entry-count{ color:var(--grey); font-size:15px; font-weight:500; }
.event-entry-class-counts{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.event-entry-class-badge{
  font-family:'JetBrains Mono', monospace; font-size:13px; padding:6px 13px;
  border:1px solid var(--line); border-radius:2px; color:var(--grey); background:var(--card);
}
.event-entry-table{ width:100%; border-collapse:collapse; font-size:14px; }
.event-entry-table th{
  text-align:left; font-family:'JetBrains Mono', monospace; font-size:12px; text-transform:uppercase;
  letter-spacing:0.04em; color:var(--grey); padding:10px 12px; border-bottom:1px solid var(--line);
}
.event-entry-table td{ padding:10px 12px; border-bottom:1px solid var(--line); }
.event-entry-table tr:hover td{ background:var(--card); }
@media (max-width:600px){
  .event-entry-table{ font-size:13px; }
  .event-entry-table th, .event-entry-table td{ padding:8px 6px; }
}

/* Cookie notice and footer link */
.swmc-cookie-notice{ position:fixed; left:16px; right:16px; bottom:16px; z-index:9998; max-width:760px; margin:0 auto; display:flex; gap:18px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:16px 20px; background:#17181a; color:#F5F3EE; border:1px solid rgba(245,243,238,0.18); border-radius:6px; box-shadow:0 10px 40px rgba(0,0,0,0.5); }
.swmc-cookie-notice[hidden]{ display:none; }
.swmc-cookie-notice p{ margin:0; flex:1 1 320px; font-size:14px; line-height:1.55; color:#e4e2dc; }
.swmc-cookie-notice a{ color:#F4C21B; text-decoration:underline; }
.swmc-cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.swmc-cookie-settings{ background:none; border:0; padding:0; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; opacity:0.85; }
.swmc-privacy-policy h2{ margin-top:1.6em; }

/* Off-Road marshalling requirement on the standings page */
.champ-marshal-notice{ margin:0 0 22px; padding:16px 18px; border:1px solid var(--line); border-left:4px solid var(--yellow); border-radius:4px; font-size:14px; line-height:1.55; }
.champ-marshal-notice p{ margin:0 0 8px; }
.champ-marshal-leader.is-ok{ color:#58c27d; }
.champ-marshal-leader.is-warn{ color:var(--yellow); font-weight:600; }
.champ-marshal-counts{ color:var(--text-muted); }
.champ-marshal-filter{ margin:10px 0 0; }
.champ-marshal-badge{ display:block; margin-top:3px; font-size:11.5px; font-weight:600; letter-spacing:0.02em; cursor:help; }
.champ-marshal-badge.is-qualified{ color:#58c27d; }
.champ-marshal-badge.is-pending{ color:var(--yellow); }
.champ-marshal-badge.is-none{ color:#e0786b; }
[data-theme="light"] .champ-marshal-leader.is-ok, [data-theme="light"] .champ-marshal-badge.is-qualified{ color:#1f7a3f; }
[data-theme="light"] .champ-marshal-badge.is-none{ color:#b3392b; }


/* Breadcrumbs and "more" blocks (inc/seo-technical.php) */
.swmc-crumbs{ font-size:13px; color:var(--grey); padding:12px 0; }
.swmc-crumbs ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px 0; }
.swmc-crumbs li + li::before{ content:"/"; margin:0 8px; opacity:.5; }
.swmc-crumbs a{ color:inherit; text-decoration:none; }
.swmc-crumbs a:hover{ color:var(--yellow); }
.swmc-crumbs [aria-current]{ color:var(--white); }
.swmc-more{ margin-top:48px; padding-top:32px; border-top:1px solid var(--line); }
.swmc-more h2{ font-size:clamp(22px,3vw,30px); margin:0 0 18px; }
.swmc-more p{ margin:18px 0 0; }
.swmc-more p a{ color:var(--yellow); }
@media (max-width:600px){ .swmc-crumbs{ font-size:12px; } }

/* Phones: a wide entry list scrolls sideways inside its own box instead of widening the page; long buttons wrap */
.event-entry-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
.event-entry-table td, .event-entry-table th{ overflow-wrap:anywhere; }
.event-entry-form button[type="submit"]{ max-width:100%; white-space:normal; }
@media (max-width:600px){ .event-entry-table{ min-width:560px; } .event-entry-table td, .event-entry-table th{ overflow-wrap:normal; } }

/* Newsletter web copy (inc/committee-newsletter.php) */
.nl-cover{ border:1px solid var(--line); border-radius:6px; padding:16px 20px; margin:0 0 28px; background:var(--card); }
.nl-cover ul{ list-style:none; margin:8px 0 0; padding:0; } .nl-cover li{ margin:0 0 4px; }
.nl-section{ margin:0 0 36px; } .nl-section figure{ margin:18px 0; } .nl-section figure img{ max-width:100%; height:auto; border-radius:4px; }
.nl-section figcaption{ font-size:13px; color:var(--grey); margin-top:6px; }
.nl-table{ width:100%; border-collapse:collapse; margin:0 0 22px; font-size:15px; } .nl-table caption{ text-align:left; font-weight:700; padding:0 0 6px; color:var(--grey); text-transform:uppercase; letter-spacing:.06em; font-size:12px; }
.nl-table th, .nl-table td{ padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; } .nl-table thead th{ font-size:12px; text-transform:uppercase; color:var(--grey); }
@media (max-width:600px){ .nl-table{ font-size:14px; } .nl-table th, .nl-table td{ padding:7px 6px; } }
