:root{
  /* Kit colours */
  --red:#c8102e;      /* shirts / socks */
  --blue:#1e4fbf;     /* shorts */
  --white:#ffffff;

  /* Light theme base */
  --bg:#f6f7fb;
  --panel:#ffffff;
  --card:#ffffff;

  --text:#0b1020;
  --muted:#4b5568;
  --line:rgba(0,0,0,.12);

  --accent:var(--red);
  --accent2:var(--blue);

  --shadow: 0 10px 24px rgba(0,0,0,.08);
}
/* Schedule page layout */
.schedule-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px){
  .schedule-grid{ grid-template-columns: 1fr; }
}

.schedule-card{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.schedule-card h2{
  margin: 0;
}

.schedule-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.session-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 6px;
}

.session{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
}

.session .when{
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.session .where{
  color: var(--muted);
  line-height: 1.35;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  background: rgba(30,79,191,.10);
  border: 1px solid rgba(30,79,191,.22);
  color: var(--text);
}

.card-footer{
  margin-top:auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(200,16,46,.08), transparent 60%),
    radial-gradient(800px 500px at 85% 20%, rgba(30,79,191,.08), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

/* ================= HEADER ================= */

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background: var(--panel);
  border-bottom:1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}

.brand-text{ font-weight:900; }

.club-crest{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:4px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav-link{
  padding:8px 14px;
  border-radius:12px;
  color:var(--muted);
}

.nav-link:hover{
  background: rgba(0,0,0,.04);
  text-decoration:none;
}

.nav-link.active{
  background: rgba(200,16,46,.12);
  color: var(--red);
  font-weight:700;
}

/* ================= HERO ================= */

.hero{
  padding:52px 0 28px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:24px;
}
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
}

.hero h1{
  font-size: clamp(32px, 4vw, 48px);
  margin:0 0 12px;
}

.lead{
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.6;
}

.cta-row{
  display:flex;
  gap:12px;
  margin:20px 0;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  line-height:1;
}

.btn:hover{ background:#f3f4f6; text-decoration:none; }

.btn.primary{
  background: var(--red);
  border-color: var(--red);
  color:#fff;
}

.btn.primary:hover{
  background:#a50d25;
}

/* ================= SECTIONS ================= */

.section{
  padding:36px 0 44px;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:start; /* important: stop equal-height stretch */
}
@media (max-width:900px){
  .grid-2{ grid-template-columns:1fr; }
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
@media (max-width:900px){
  .grid-3{ grid-template-columns:1fr; }
}

.card, .panel{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
  height: fit-content; /* important: size to content */
}

.hero-panel .panel{
  border-left:5px solid var(--blue);
}

.mini-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width:900px){
  .mini-cards{ grid-template-columns:1fr; }
}

.muted{ color:var(--muted); }
.small{ font-size:.9rem; }

hr{
  border:0;
  border-top:1px solid var(--line);
  margin: 14px 0;
}

/* ===== Helpers used on Payments/Schedule ===== */

.callout{
  border:1px dashed rgba(30,79,191,.35);
  background: rgba(30,79,191,.08);
  padding: 10px 12px;
  border-radius: 14px;
  margin: 12px 0 16px;
}

.stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}

.section-spacer{ height:18px; }

.list{ margin:0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

/* Key/Value block */
.kv{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}
.kv > div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
}
.kv span{
  color: var(--muted);
  white-space:nowrap;
}
.kv strong{
  text-align:right;
  word-break:break-word;
}

/* ===== Google Form embed cleanup ===== */
.gform-wrap{
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.gform-frame{
  width: 100%;
  height: 1100px;
  border: 0;
  display: block;
}

/* Info link pills */
.info-link{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(200,16,46,.08);
  color: var(--text);
  font-weight:600;
  text-decoration:none;
}

.info-link:hover{
  background: rgba(200,16,46,.15);
  text-decoration:none;
}

/* Footer */
.site-footer{
  background:#fff;
  border-top:1px solid var(--line);
}

.footer-row{
  padding:18px 0;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  color:var(--muted);
}

.footer-links{
  display:flex;
  gap:16px;
}
.footer-links a{
  color: var(--muted);
  text-decoration:none;
}
.footer-links a:hover{
  color: var(--text);
  text-decoration:underline;
}


/* Linked cards (Home page quick tiles) */
.btn-link{
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  display:block;
}
.btn-link:hover{
  background: rgba(0,0,0,.04);
  text-decoration:none;
}
.btn-link:focus{
  outline: 3px solid rgba(200,16,46,.25);
  outline-offset: 2px;
}
.grid-3{
  align-items: stretch;
}
.grid-3 .card{
  height: 100%;
}

