/* Kestrel Creek Football Netball Club. Navy with a rust sash, on cream. */
:root {
  --green: #16233f;
  --green-deep: #0e1730;
  --gold: #e86f45;
  --gold-soft: #fbe1d6;
  --cream: #f5f2ec;
  --paper: #ffffff;
  --ink: #121a2c;
  --muted: #586173;
  --line: #e0dfdb;
  --radius: 14px;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 7vw, 76px); text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.4vw, 46px); text-transform: uppercase; }
h3 { font-size: 24px; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }
.kicker { font: 700 14px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.hoops { height: 8px; background: linear-gradient(90deg, var(--green) 0 50%, #c4502a 50% 100%); }

/* example bar + utility */
.example-bar { background: var(--ink); color: #e8ece6; font-size: 13.5px; text-align: center; padding: 7px 16px; }
.utility { background: var(--green-deep); color: #dce8df; font-size: 14px; }
.utility .wrap { display: flex; gap: 22px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility .push { margin-left: auto; font-weight: 700; color: var(--gold); }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.crest { width: 46px; height: 46px; flex: none; }
.brand-word { font: 700 25px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand-word small { display: block; font: 600 12px/1.3 var(--body); letter-spacing: .18em; color: var(--muted); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); color: var(--green); }
.header-search { color: var(--ink); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
.header-search:hover { background: var(--cream); }
.hamburger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.hamburger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f1c74a; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-line-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-line-light:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--green); color: var(--green); }
.header-cta { min-height: 42px; padding: 0 16px; }
.link.arrow { font-weight: 700; text-decoration: none; }
.link.arrow::after { content: ' →'; }

/* hero: the ground from the hill, and the club scoreboard you book from */
.hero { position: relative; color: #fff; background: var(--green-deep); overflow: hidden; min-height: min(90vh, 880px); display: flex; align-items: center; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 40% 60%; animation: pan 40s ease-in-out infinite alternate; }
@keyframes pan { from { transform: scale(1.04); } to { transform: scale(1.12) translate3d(1.5%, -1%, 0); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(10,16,32,.88) 0%, rgba(10,16,32,.62) 45%, rgba(10,16,32,.25) 100%),
  linear-gradient(180deg, rgba(10,16,32,0) 50%, rgba(10,16,32,.7) 100%); }
.hero-inner { position: relative; z-index: 3; width: 100%; padding-top: 90px; padding-bottom: 80px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: .94; margin-bottom: 20px; }
.hero h1 > span { display: block; }
.hero h1 .accent { color: var(--gold); }
.hero-sub { font-size: 20px; max-width: 40ch; color: #e8ecf3; margin-bottom: 16px; }
.hero-proof { margin: 18px 0 0; font-size: 15px; color: #c9d1e0; }
.hero-proof a { color: #fff; font-weight: 700; margin-left: 10px; text-decoration: none; }
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 20px; width: 26px; height: 40px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* the scoreboard: painted timber in club navy, white panel lettering, black number tiles */
.scoreboard { position: relative; background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.05) 2px 6px, rgba(255,255,255,0) 6px 22px),
    linear-gradient(180deg, #1b2b4d, #121d36);
  border: 10px solid #0b1224; outline: 3px solid #c4502a; outline-offset: -16px; border-radius: 6px; padding: 26px 24px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.scoreboard::before, .scoreboard::after { content: ''; position: absolute; bottom: -70px; width: 18px; height: 70px; background: linear-gradient(90deg, #6b6f75, #9aa0a6 40%, #5c6066); }
.scoreboard::before { left: 18%; } .scoreboard::after { right: 18%; }
.sb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid rgba(255,255,255,.85); margin-bottom: 10px; }
.sb-club { display: flex; align-items: center; gap: 10px; font: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.sb-club .crest { width: 38px; height: 38px; }
.sb-clock { display: flex; align-items: center; gap: 10px; }
.sb-clock small { white-space: nowrap; font: 700 12px/1.15 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #f0c9b8; }
.sb-cols { display: grid; grid-template-columns: 1fr 120px 104px; gap: 12px; padding: 4px 12px; font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.sb-cols span:last-child { text-align: right; }
.sb-rows { display: grid; gap: 6px; }
.sb-row { display: grid; grid-template-columns: 1fr 120px 104px; gap: 12px; align-items: center; text-align: left; width: 100%; background: rgba(255,255,255,.04); border: 2px solid rgba(255,255,255,.12); border-radius: 6px; padding: 10px 12px; color: #fff; cursor: pointer; font: inherit; transition: background .15s, border-color .15s, transform .15s; }
.sb-row:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.35); transform: translateX(3px); }
.sb-row[aria-pressed="true"] { border-color: var(--gold); background: rgba(196,80,42,.22); }
.sb-row:disabled { cursor: not-allowed; opacity: .6; }
.sb-name { font: 700 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.sb-name small, .sb-when small { display: block; font: 600 13px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: #c9d1e0; margin-top: 3px; }
.sb-row.net .sb-name { color: #ffd9c9; }
.sb-when { font: 700 18px/1.1 var(--display); text-transform: uppercase; }
.sb-num { display: flex; justify-content: flex-end; gap: 4px; }
.sb-num i { display: grid; place-items: center; width: 34px; height: 46px; border-radius: 4px; background: linear-gradient(180deg, #050608 0 49%, #15171c 51% 100%); color: #f4f1e8; font: 700 34px/1 var(--display); font-style: normal; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 2px 0 rgba(0,0,0,.4); position: relative; }
.sb-num i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.7); }
.sb-num.full i { color: #ff9d82; font-size: 22px; width: 24px; }
.sb-num i.flip { animation: flip .5s cubic-bezier(.3,.6,.3,1); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); filter: brightness(.5); } 55% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
.sb-foot { margin: 12px 0 0; font-size: 13.5px; color: #c9d1e0; text-align: center; }

/* entrance: the words rise, the rows are put up one by one */
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
.sb-row { animation: board .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 120ms + 300ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes board { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* the booking, opened under the scoreboard */
.hero-form { margin-top: 18px; background: rgba(10,16,32,.86); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 20px 22px; animation: open .35s ease both; }
.hero-form[hidden] { display: none; }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hero-form-title { font: 700 22px/1.1 var(--display); text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.hf-grid { display: grid; grid-template-columns: 1.3fr .6fr; gap: 0 12px; }
.hf-wide { grid-column: span 2; }
.hero-form label { color: #e8ecf3; font-size: 14px; }
.hero-form input { border-color: transparent; }
.hf-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-form .error { color: #ffb4a6; }
.hero-form .form-note { color: #c9d1e0; }
.hero-form .done h3 { color: var(--gold); margin-bottom: 6px; font-size: 28px; }
.hero-form .done p { margin: 0; color: #e8ecf3; }

@media (prefers-reduced-motion: reduce) {
  .hero-photo img, .hero-scroll span, .rise, .sb-row, .hero-form, .sb-num i.flip { animation: none; }
  .sb-row, .sb-row:hover { transition: none; transform: none; }
}

/* sections */
.section { padding: 84px 0; }
.section.white { background: var(--paper); }
.section.dark { background: var(--green-deep); color: #eaf1ec; }
.section.dark .kicker { color: var(--gold); }
.section.dark .lede { color: #c9d8cd; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }

/* finder */
.finder { margin-top: -30px; position: relative; z-index: 4; }
.finder-card { background: var(--paper); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(20,32,26,.14); padding: 26px 28px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: center; }
.finder-card h2 { font-size: 30px; margin-bottom: 4px; }
.finder-card p { margin: 0; color: var(--muted); }
.searchbox { display: flex; gap: 10px; }
.searchbox input { flex: 1; min-width: 0; height: 52px; border: 2px solid var(--line); border-radius: 10px; padding: 0 16px; font: 17px var(--body); background: #fff; }
.searchbox input:focus { outline: none; border-color: var(--green); }
.try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.try a { background: var(--cream); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-weight: 600; }
.status { color: var(--muted); margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 14px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.results { display: grid; gap: 12px; margin-top: 12px; }
.result { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.result:hover { border-color: var(--green); }
.result .type { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 4px; }
.result .pg { margin-left: 10px; color: var(--muted); letter-spacing: .04em; }
.result h3 { font-size: 22px; margin: 0 0 4px; }
.result p { margin: 0; color: var(--muted); }
mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* noticeboard */
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.notice { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 12px; padding: 20px 22px; }
.notice.pinned { border-top-color: var(--gold); }
.notice h3 { font-size: 23px; }
.notice p { margin: 0; color: var(--muted); }
.flag { display: inline-block; font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; background: var(--gold-soft); color: #6a5208; border-radius: 6px; padding: 3px 8px; margin-bottom: 10px; }

/* age groups */
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.age { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.age img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.age div { padding: 18px 20px 22px; }
.age .who { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 4px; }
.age p { color: var(--muted); margin: 0; font-size: 16px; }

/* training */
.training { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.sessions { display: grid; gap: 10px; }
.session { display: grid; grid-template-columns: 112px 1fr; gap: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 18px; }
.session time { font: 700 20px/1.1 var(--display); text-transform: uppercase; color: var(--gold); }
.session time small { display: block; font: 600 14px var(--body); color: #c9d8cd; text-transform: none; margin-top: 2px; }
.session h3 { font-size: 21px; margin: 0 0 2px; color: #fff; }
.session p { margin: 0; font-size: 15px; color: #c9d8cd; }
.season-note { font-size: 14px; color: #c9d8cd; margin-top: 14px; }

/* results */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.board h3 { font-size: 24px; border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-bottom: 6px; }
.board table { width: 100%; border-collapse: collapse; font-size: 16px; }
.board td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.board tr:last-child td { border-bottom: 0; }
.board td:first-child { font-weight: 700; padding-right: 12px; }
.board td:last-child { text-align: right; color: var(--muted); }
.board .note { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }

/* events */
.dates { display: grid; gap: 12px; }
.date { display: grid; grid-template-columns: 86px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; align-items: start; }
.date .day { background: var(--green); color: #fff; border-radius: 10px; text-align: center; padding: 8px 4px; font: 700 15px/1.1 var(--display); text-transform: uppercase; }
.date .day b { display: block; font-size: 32px; }
.date .day.tbc { background: var(--muted); font-size: 16px; padding: 18px 4px; }
.date h3 { font-size: 22px; margin: 0 0 2px; }
.date p { margin: 0; color: var(--muted); font-size: 16px; }
.date .where { font-weight: 600; color: var(--ink); }

/* sponsors */
.tier { margin-bottom: 30px; }
.tier-name { font: 700 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tier-name::after { content: ''; flex: 1; height: 2px; background: var(--tier, var(--line)); opacity: .6; }
.wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(calc(210px * var(--scale, 1)), 1fr)); }
.sponsor { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--tier, var(--line)); border-radius: 12px; padding: calc(16px * var(--scale, 1)) 18px; }
.sponsor b { display: block; font: 700 calc(22px * var(--scale, 1))/1.1 var(--display); text-transform: uppercase; }
.sponsor span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--tier, var(--green)); border-radius: var(--radius); padding: 22px 24px; }
.tier-card .price { font: 700 34px/1 var(--display); margin: 6px 0 12px; }
.tier-card .price small { font: 600 15px var(--body); color: var(--muted); }
.tier-card p { color: var(--muted); margin: 0; }

/* committee */
.committee { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.committee img { border-radius: var(--radius); }
.people { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.people li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.people b { display: block; font-size: 17px; }
.people span { font-size: 14.5px; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { font-weight: 700; font-size: 18px; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--green); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* page hero */
.page-hero { background: var(--green-deep); color: #fff; padding: 70px 0 56px; position: relative; overflow: hidden; }
.page-hero.photo { min-height: 380px; display: flex; align-items: flex-end; }
.page-hero.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,20,.2), rgba(10,30,20,.86)); }
.page-hero .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero h1 { font-size: clamp(38px, 6vw, 62px); }
.page-hero p { color: #dfe9e1; font-size: 19px; max-width: 58ch; margin: 0; }
.page-hero .kicker { color: var(--gold); }
.crumbs { font-size: 14px; color: #c9d8cd; margin-bottom: 18px; }
.crumbs a { color: #fff; }

/* booking */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font: 700 22px var(--display); }
.steps h3 { font-size: 21px; margin: 6px 0 2px; }
.steps p { margin: 0; color: var(--muted); }
.booker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 34px rgba(20,32,26,.08); }
.booker h2 { font-size: 30px; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 22px; }
.slot { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; cursor: pointer; font: 15px var(--body); color: var(--ink); }
.slot b { display: block; font-size: 16px; }
.slot .left { font-weight: 700; color: var(--green); }
.slot[aria-pressed="true"] { border-color: var(--green); background: #eef5f0; }
.slot:disabled { opacity: .55; cursor: not-allowed; }
.slot:disabled .left { color: #b0412e; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { border: 2px solid var(--line); border-radius: 10px; padding: 11px 13px; font: 16px var(--body); background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset.field { border: 0; padding: 0; margin: 4px 0 14px; }
.sub { font-size: 14px; color: var(--muted); margin: -4px 0 12px; }
.hp { position: absolute; left: -5000px; }
.error { color: #b0412e; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.form-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.done h3 { font-size: 30px; color: var(--green); }

/* fees */
.fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fee { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.fee .amount { font: 700 40px/1 var(--display); color: var(--green); margin: 4px 0 8px; }
.fee p { margin: 0; color: var(--muted); font-size: 16px; }

/* documents */
.docs { display: grid; gap: 12px; }
.doc { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--green); }
.doc .ico { width: 54px; height: 54px; border-radius: 10px; background: var(--green); color: var(--gold); display: grid; place-items: center; font: 700 15px var(--display); }
.doc h3 { font-size: 21px; margin: 0 0 2px; }
.doc p { margin: 0; color: var(--muted); font-size: 15px; }
.doc .meta { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

/* cta band */
.band { background: var(--gold); padding: 54px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.band p { margin: 6px 0 0; max-width: 56ch; }

/* footer */
.site-footer { background: var(--ink); color: #c9d2cc; padding: 60px 0 28px; font-size: 15.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; }
.site-footer .brand-word small { color: #9fb0a5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 18px; color: #fff; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 13.5px; color: #9fb0a5; }

/* ── clubroom culture ── */
/* results: the honour board on the clubroom wall, gold leaf on stained timber */
.board { position: relative; color: #f3dfa2; border: 0; padding: 26px 28px 22px; border-radius: 6px;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 3px, rgba(0,0,0,.035) 3px 7px, rgba(255,255,255,0) 7px 15px),
    linear-gradient(180deg, #5a3519 0%, #4a2a13 55%, #3d220f 100%);
  box-shadow: inset 0 0 0 6px #6d4422, inset 0 0 0 8px #2f1a0b, 0 18px 34px rgba(30,18,8,.28); }
.board h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 21px; text-align: center; color: #e9c46a; border: 0; padding: 0; margin: 0 0 14px; }
.board h3 span { display: inline-block; padding: 0 14px 8px; border-bottom: 2px solid rgba(233,196,106,.55); background: linear-gradient(180deg, #f7dd8f, #c9952f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.board table { font-family: 'Cinzel', Georgia, serif; font-size: 15.5px; letter-spacing: .02em; }
.board td { border-bottom: 1px dotted rgba(233,196,106,.28); color: #f3dfa2; padding: 9px 0; }
.board td:first-child { font-weight: 700; color: #f7dd8f; }
.board td:last-child { color: #e9c46a; }
.board .note { color: rgba(243,223,162,.7); font-family: var(--body); font-size: 13px; letter-spacing: 0; }

/* people: the team sheet from a match-day programme */
.sheet { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.sheet li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px solid var(--line); }
.sheet .num { grid-row: span 2; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font: 700 22px/1 var(--display); color: var(--ink);
  background: repeating-linear-gradient(180deg, var(--gold) 0 8px, var(--green) 8px 16px); text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.sheet b { font: 700 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.sheet .pos { font-size: 14.5px; color: var(--muted); }

/* sections rise into view as you reach them */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 600px) { .sheet { grid-template-columns: 1fr; } }

/* honour board rows: event in small gold caps, then the name and the result */
.board ul { list-style: none; margin: 0; padding: 0; font-family: 'Cinzel', Georgia, serif; }
.board li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 10px 0; border-bottom: 1px dotted rgba(233,196,106,.28); }
.board li:last-child { border-bottom: 0; }
.board .h-event { grid-column: 1 / -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,223,162,.72); }
.board .h-name { font-size: 18px; font-weight: 700; color: #f7dd8f; }
.board .h-res { font-size: 15px; color: #e9c46a; text-align: right; align-self: end; }
.board .h-note { grid-column: 1 / -1; font-family: var(--body); font-size: 13px; color: rgba(243,223,162,.65); }

/* team sheet: the number on a white patch on a hooped jersey */
.sheet .num { background: repeating-linear-gradient(180deg, var(--green) 0 7px, var(--gold) 7px 14px); text-shadow: none; padding: 0; }
.sheet .num em { font-style: normal; display: grid; place-items: center; width: 26px; height: 24px; border-radius: 5px; background: #fff; color: var(--green-deep); font: 700 18px/1 var(--display); }

/* photo page headers: shade the side the words sit on */
.page-hero.photo::after { background: linear-gradient(90deg, rgba(9,28,19,.85) 0%, rgba(9,28,19,.55) 50%, rgba(9,28,19,.2) 80%), linear-gradient(180deg, rgba(9,28,19,0) 40%, rgba(9,28,19,.7)); }

/* looked after: the pathway from tag to full rugby, and the promises */
.pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: p; }
.pathway::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #cfe3d6, var(--green) 55%, var(--green-deep)); }
.pathway li { position: relative; padding: 52px 22px 0 0; }
.pathway li::before { content: ''; position: absolute; left: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); border: 6px solid var(--green); box-sizing: border-box; }
.pathway li:first-child::before { border-color: #9fc7ae; }
.p-age { display: inline-block; font: 700 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.p-meter { display: flex; gap: 4px; margin-bottom: 10px; }
.p-meter i { width: 26px; height: 8px; border-radius: 4px; background: var(--line); }
.pathway .lvl-1 .p-meter i:nth-child(-n+1),
.pathway .lvl-2 .p-meter i:nth-child(-n+2),
.pathway .lvl-3 .p-meter i:nth-child(-n+3) { background: var(--gold); }
.pathway h3 { font-size: 25px; margin-bottom: 6px; }
.pathway p { color: var(--muted); margin: 0; font-size: 16px; }
.promises { list-style: none; margin: 46px 0 0; padding: 26px 0 0; border-top: 2px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.promises li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.p-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: var(--gold); display: grid; place-items: center; }
.promises h3 { font-size: 20px; margin: 2px 0 4px; }
.promises p { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.promises .link { font-size: 14px; }

/* sponsors: banners on the boundary fence, as tall as their tier */
.ground { padding-top: 4px; }
.fence-row { margin-bottom: 26px; }
.fence-row .tier-name { margin-bottom: 10px; }
.fence { list-style: none; margin: 0; padding: 0 0 22px; display: flex; flex-wrap: wrap; gap: 18px 10px; position: relative;
  background: linear-gradient(180deg, transparent calc(100% - 22px), #6aa36f calc(100% - 22px), #4f8a57 100%); border-radius: 0 0 8px 8px; }
.banner { --h: calc(76px * var(--scale, 1)); position: relative; flex: 1 1 calc(220px * var(--scale, 1)); min-height: var(--h); background: var(--bg); color: var(--fg);
  border-radius: 3px; padding: 12px 18px 12px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 6px 0 rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 14px; }
.banner::before, .banner::after { content: ''; position: absolute; bottom: -22px; width: 6px; height: 22px; background: #8b8f8c; }
.banner::before { left: 14px; } .banner::after { right: 14px; }
.banner b { font: 700 calc(25px * var(--scale, 1))/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.banner span { display: block; margin-top: 6px; font-size: 14px; opacity: .85; }
.banner b::before, .banner b::after { content: ''; position: absolute; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.banner b::before { left: 7px; } .banner b::after { right: 7px; }

@media (max-width: 1020px) {
  .pathway { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .pathway::before { display: none; }
  .promises { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pathway, .promises { grid-template-columns: 1fr; }
  .pathway li { padding: 0 0 0 40px; }
  .pathway li::before { top: 2px; }
  .banner { flex-basis: 100%; }
}

/* fees: swing tags off new kit, punched and strung */
.fees { gap: 26px 18px; padding-top: 14px; }
.fee { position: relative; border-radius: 6px 6px 14px 14px; border: 0; border-top: 6px solid var(--gold); box-shadow: 0 10px 24px rgba(20,32,26,.10); transform: rotate(-1.2deg); transition: transform .2s; }
.fee:nth-child(even) { transform: rotate(1.1deg); }
.fee:hover { transform: rotate(0) translateY(-3px); }
.fee::before { content: ''; position: absolute; top: 12px; right: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .fee, .fee:nth-child(even), .fee:hover { transition: none; } }

/* footer QR: this page, to take onto the ground */
.footer-qr { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.footer-qr[hidden] { display: none; }
.footer-qr [data-qr] { width: 84px; height: 84px; background: #fff; border-radius: 8px; padding: 4px; flex: none; }
.footer-qr svg { width: 100%; height: 100%; display: block; }
.footer-qr p { margin: 0; font-size: 14px; color: #c9d2cc; max-width: 26ch; }

/* search page: the questions parents ask most */
.popular { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.popular a { display: block; height: 100%; background: var(--cream); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.popular a:hover { border-color: var(--green); }
.popular .q { display: block; font: 700 20px/1.15 var(--display); margin-bottom: 4px; }
.popular .a { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .popular { grid-template-columns: 1fr; } }

/* the "Live in DiscoverWorthy" callouts, ?pins=1 */
.pins [data-pin] { position: relative; outline: 3px dashed #ff4d2e; outline-offset: 4px; }
.pins [data-pin]::before { content: 'LIVE IN DISCOVERWORTHY · ' attr(data-pin); position: absolute; left: 0; top: -14px; transform: translateY(-100%); z-index: 30; max-width: 360px; background: #ff4d2e; color: #fff; font: 700 12.5px/1.35 var(--body); letter-spacing: .02em; padding: 7px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

@media (max-width: 1020px) {
  .ages { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .hamburger { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .finder-card, .training, .committee, .book-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero::after { background: linear-gradient(180deg, rgba(10,16,32,.55) 0%, rgba(10,16,32,.75) 45%, rgba(10,16,32,.95) 100%); }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .hero-scroll { display: none; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .ages { grid-template-columns: 1fr; }
  .row2, .slots, .people { grid-template-columns: 1fr; }
  .session { grid-template-columns: 1fr; gap: 4px; }
  .date { grid-template-columns: 64px 1fr; gap: 12px; }
  .date .day b { font-size: 26px; }
  .doc { grid-template-columns: 44px 1fr; }
  .doc .ico { width: 44px; height: 44px; }
  .doc .meta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .searchbox { flex-direction: column; }
  .searchbox .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-inner { padding-top: 56px; padding-bottom: 90px; }
  .scoreboard { padding: 18px 12px 14px; border-width: 7px; outline-offset: -12px; }
  .sb-club { font-size: 21px; } .sb-club .crest { width: 30px; height: 30px; }
  .brand-word small { letter-spacing: .08em; font-size: 10.5px; white-space: nowrap; }
  .brand-word { font-size: 20px; }
  .sb-cols { grid-template-columns: 1fr 74px 72px; padding: 4px 8px; font-size: 10.5px; gap: 8px; }
  .sb-row { grid-template-columns: 1fr 74px 72px; gap: 8px; padding: 8px; }
  .sb-name { font-size: 17px; } .sb-name small, .sb-when small { font-size: 12px; }
  .sb-when { font-size: 14px; }
  .sb-num i { width: 26px; height: 36px; font-size: 26px; }
  .hf-grid { grid-template-columns: 1fr; } .hf-wide { grid-column: auto; }
  .hero-proof a { display: block; margin: 6px 0 0; }
  .brand-word { font-size: 21px; }
  .crest { width: 40px; height: 40px; }
  .finder-card { padding: 20px; }
}
