/* ==========================================================================
   The Shore Kirk Weekly Lottery - shared stylesheet
   Pure CSS, no frameworks. Mobile first.
   Sections:
   1. Tokens        2. Reset        3. Base typography   4. Layout
   5. Utility bar / header / nav    6. Breadcrumb        7. Buttons
   8. Hero + CSS lottery balls      9. Next draw strip  10. Steps
   11. Cards & panels              12. Prize ladder     13. Tables
   14. Timeline                    15. Forms            16. Accordion
   17. Responsible gambling panels 18. Footer           19. Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --navy: #14146e;
  --navy-dark: #0c0c4a;
  --sky: #c9e9f7;
  --sky-soft: #e3f4fb;
  --card: #eef5fa;
  --pink: #d6086f;
  --pink-dark: #a80557;
  --white: #ffffff;
  --text: #1d1d3a;
  --muted: #4a4a68;
  --line: #d5dfe8;
  --grey-bar: #f2f4f7;
  --link: #0b4fa8;
  --link-visited: #5a2a91;
  --ok: #0f7a3d;
  --warn-bg: #fff4d6;
  --warn-line: #e3b341;

  --ball-green: #12a150;
  --ball-blue: #1f6fe0;
  --ball-red: #d7263d;
  --ball-orange: #ef7d12;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 6px rgba(20, 20, 110, .08), 0 8px 24px rgba(20, 20, 110, .07);
  --shadow-sm: 0 1px 3px rgba(20, 20, 110, .12);
  --max: 1100px;
  --gutter: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px #ffbf47, 0 0 0 5px var(--navy);
}

/* 2. RESET ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* 3. BASE TYPOGRAPHY -------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } } /* 18px */

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p + p, p + ul, ul + p, p + ol, ol + p { margin-top: .9rem; }
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.6rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-top: .7rem; }
.prose li + li { margin-top: .35rem; }
.prose > :first-child { margin-top: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: .08em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

strong { font-weight: 700; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15em; color: var(--muted); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .7rem 1rem; border-radius: 0 0 8px 8px; font-weight: 700;
}
.skip-link:focus { top: 0; color: var(--white); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 3rem; }
.section-sm { padding-block: 2rem; }
.band-sky { background: var(--sky); }
.band-soft { background: var(--sky-soft); }
.band-card { background: var(--card); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: .6rem; color: var(--muted); }
.band-navy .section-head p { color: #dfe3ff; }
.grid { display: grid; gap: 1.25rem; }
.split { display: grid; gap: 2rem; align-items: center; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.page-title { padding-block: 2rem 2.5rem; background: var(--sky); }
.page-title p { margin-top: .6rem; max-width: 46rem; font-size: 1.1em; }
.content-narrow { max-width: 48rem; }
.with-aside { display: grid; gap: 2rem; }

/* wave divider drawn with CSS */
.wave { height: 28px; background:
  radial-gradient(circle at 14px -6px, transparent 18px, var(--sky) 19px) 0 0 / 28px 28px repeat-x; }
.wave.flip { transform: rotate(180deg); }

/* 5. UTILITY BAR / HEADER / NAV ------------------------------------------- */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; justify-content: space-between; padding-block: .4rem; }
.topbar a { color: #fff; }
.topbar .age-pill { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.age-badge {
  display: inline-grid; place-items: center; min-width: 2.3em; height: 2.3em; padding: 0 .3em;
  border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: .8em; line-height: 1;
}

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand:visited { color: var(--navy); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand-mark .icon { width: 28px; height: 28px; }
.brand-name { display: block; font-weight: 800; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-tag { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-link { display: none; align-items: center; gap: .35rem; color: var(--navy); font-weight: 600; font-size: .95rem; }

/* mobile menu: checkbox hack */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 2px solid var(--navy);
  border-radius: 8px; color: var(--navy); font-weight: 700; cursor: pointer; background: #fff;
}
.nav-toggle-input:focus-visible + .header-inner .nav-toggle { box-shadow: var(--focus); }
.nav-toggle .close-label { display: none; }
.nav-toggle-input:checked + .header-inner .nav-toggle .open-label { display: none; }
.nav-toggle-input:checked + .header-inner .nav-toggle .close-label { display: inline; }

.main-nav { background: var(--grey-bar); border-bottom: 1px solid var(--line); display: none; }
.nav-toggle-input:checked ~ .main-nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: .4rem 0 1rem; }
.nav-list > li > a, .nav-list > li > .nav-parent {
  display: flex; align-items: center; justify-content: space-between; gap: .3rem; width: 100%;
  padding: .75rem .25rem; color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.nav-list a[aria-current="page"] { color: var(--pink-dark); }
.nav-list .chev { width: 18px; height: 18px; transition: transform .2s; }
.sub-list { list-style: none; margin: 0; padding: .2rem 0 .5rem .8rem; }
.sub-list a { display: block; padding: .45rem .25rem; color: var(--text); text-decoration: none; }
.sub-list a:hover, .sub-list a:focus-visible { color: var(--pink-dark); text-decoration: underline; }
.nav-play { color: var(--pink-dark) !important; }

/* 6. BREADCRUMB ------------------------------------------------------------ */
.breadcrumb { font-size: .9rem; padding-block: .8rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }

/* 7. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-navy, .btn-navy:visited { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-pink, .btn-pink:visited { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); color: #fff; }
.btn-outline, .btn-outline:visited { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-pink, .btn-outline-pink:visited { background: #fff; color: var(--pink-dark); border-color: var(--pink); padding: .5rem 1rem; }
.btn-outline-pink:hover { background: var(--pink); color: #fff; }
.btn-white, .btn-white:visited { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* 8. HERO + CSS LOTTERY BALLS --------------------------------------------- */
.hero { background: var(--sky); padding-block: 2.5rem 3rem; overflow: hidden; position: relative; }
.hero::before, .hero::after { /* confetti dots */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, var(--pink) 3px, transparent 4px),
    radial-gradient(circle, var(--ball-orange) 3px, transparent 4px),
    radial-gradient(circle, var(--ball-green) 2.5px, transparent 3.5px);
  background-size: 180px 160px, 230px 210px, 150px 190px;
  background-position: 20px 30px, 120px 90px, 70px 140px;
}
.hero::after { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .strap { font-size: 1.15em; max-width: 34rem; }
.tick-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.tick-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.tick-list .icon { color: var(--pink-dark); margin-top: .15rem; stroke-width: 3; }

.balls { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; padding: 1rem; }
.ball {
  --c: var(--ball-blue);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 8%, transparent 26%),
              radial-gradient(circle at 50% 55%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 10px 20px rgba(20,20,110,.22), inset -6px -8px 14px rgba(0,0,0,.18);
  color: #fff; font-weight: 900; font-size: 1.8rem; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.ball span { width: 54%; height: 54%; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.ball.green { --c: var(--ball-green); } .ball.blue { --c: var(--ball-blue); }
.ball.red { --c: var(--ball-red); } .ball.orange { --c: var(--ball-orange); }
.ball.big { width: 120px; height: 120px; font-size: 2.6rem; }
.ball.sm { width: 56px; height: 56px; font-size: 1.2rem; }
.balls .ball:nth-child(even) { transform: translateY(18px); }
.balls-stage {
  background: rgba(255,255,255,.55); border-radius: 50%; aspect-ratio: 1; max-width: 360px; margin-inline: auto;
  display: grid; place-items: center; box-shadow: inset 0 0 0 10px rgba(255,255,255,.6);
}

.notice-strip { background: var(--navy); color: #fff; font-weight: 700; }
.notice-strip .container { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: center; padding-block: .7rem; text-align: center; }
.notice-strip a { color: #fff; }

/* 9. NEXT DRAW STRIP -------------------------------------------------------- */
.draw-strip { background: var(--sky); border-top: 4px solid #fff; padding-block: 1.6rem; }
.draw-strip .container { display: grid; gap: 1rem; align-items: center; }
.draw-strip h2 { font-size: 1.35rem; }
.draw-strip .draw-date { font-weight: 700; display: flex; gap: .5rem; align-items: center; margin-top: .3rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.countdown li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; padding: .6rem .3rem; }
.countdown b { display: block; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.countdown span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.countdown-note { font-size: .85rem; color: var(--muted); }

/* 10. STEPS ---------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { text-align: center; padding: 1rem; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 1.8rem; font-weight: 900; box-shadow: 0 0 0 6px var(--sky);
}
.steps li:nth-child(2) .step-num { background: var(--pink); }
.steps li:nth-child(3) .step-num { background: var(--ball-blue); }
.steps li:nth-child(4) .step-num { background: var(--ball-green); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); }

.step-detail { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.step-detail li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; background: var(--card); border-radius: var(--radius); padding: 1.2rem; }
.step-detail .step-num { width: 56px; height: 56px; font-size: 1.4rem; margin: 0; box-shadow: none; }

/* 11. CARDS & PANELS ------------------------------------------------------- */
.card { background: var(--card); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card.white { background: #fff; border: 1px solid var(--line); }
.card h3 { margin-bottom: .5rem; }
.card .icon-circle { margin-bottom: .9rem; }
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff;
}
.icon-circle.pink { background: var(--pink); }
.icon-circle.sky { background: var(--sky); color: var(--navy); }
.card-link { display: inline-flex; gap: .3rem; align-items: center; font-weight: 700; margin-top: .8rem; }

.colour-block {
  border-radius: var(--radius-lg); min-height: 260px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
}
.colour-block.pink { background: var(--pink); }
.colour-block.sky { background: var(--sky); color: var(--navy); }
.colour-block::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.08); right: -110px; top: -120px;
}
.colour-block::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.1); left: -60px; bottom: -80px;
}
.colour-block .icon { width: 110px; height: 110px; stroke-width: 1.4; position: relative; z-index: 1; }
.colour-block .block-caption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 1; font-weight: 800; font-size: 1.1rem; text-align: center; }

.quote-panel {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden;
}
.quote-panel::before {
  content: "\201C"; position: absolute; top: -1.6rem; left: 1rem; font-size: 9rem; line-height: 1; color: var(--pink); font-family: Georgia, serif;
}
.quote-panel blockquote { position: relative; font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.quote-panel figcaption { margin-top: 1rem; color: var(--sky); font-weight: 700; }

.info-box { border-left: 6px solid var(--navy); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; }
.info-box.pink { border-color: var(--pink); }
.info-box.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.info-box h2, .info-box h3 { font-size: 1.15rem; margin-bottom: .4rem; }

.charity-box { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 1.5rem; }
.dl-grid { display: grid; grid-template-columns: 1fr; gap: .2rem 1rem; margin-top: .8rem; }
.dl-grid dt { font-weight: 700; color: var(--navy); }
.dl-grid dd { margin: 0 0 .6rem; }

.stat { text-align: center; padding: 1.5rem 1rem; }
.stat b { display: block; font-size: 2.6rem; color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: .4rem; color: var(--muted); font-weight: 600; }

.pill-tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: .8rem; }
.pill-tag.pink { background: #fde3ef; color: var(--pink-dark); }

/* split bar for money breakdown */
.split-bar { display: flex; height: 54px; border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); margin-block: 1.2rem; }
.split-bar span { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.split-bar .s-prizes { background: var(--ball-blue); }
.split-bar .s-good { background: var(--pink); }
.split-bar .s-costs { background: var(--navy); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.legend li { display: flex; gap: .7rem; align-items: flex-start; }
.legend i { width: 18px; height: 18px; border-radius: 4px; flex: none; margin-top: .3rem; }

/* 12. PRIZE LADDER ---------------------------------------------------------- */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ladder li {
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 1rem;
  background: var(--sky-soft); border-radius: 999px; padding: .5rem 1.2rem .5rem .5rem; position: relative; overflow: hidden;
}
.ladder li::before { /* bar fill proportional to --w */
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--sky); z-index: 0;
}
.ladder li > * { position: relative; z-index: 1; }
.ladder .badge {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 1rem;
}
.ladder li:nth-child(1) .badge { background: var(--pink); width: 54px; }
.ladder .tier { font-weight: 800; color: var(--navy); }
.ladder .tier small { display: block; font-weight: 600; color: var(--muted); }
.ladder .amount { font-weight: 900; color: var(--navy); font-size: 1.15rem; text-align: right; }

/* 13. TABLES --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.table { min-width: 560px; font-size: .97rem; }
.table caption { text-align: left; padding: .8rem 1rem; font-weight: 800; color: var(--navy); background: var(--card); }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--navy); color: #fff; }
.table tbody tr:nth-child(even) { background: #f8fbfd; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }

/* 14. TIMELINE --------------------------------------------------------------- */
.timeline { list-style: none; padding: 0 0 0 1.6rem; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: .4rem; bottom: .4rem; width: 4px; border-radius: 4px; background: var(--sky); }
.timeline li { position: relative; padding: 0 0 2rem 1.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: .25rem; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--sky);
}
.timeline li:nth-child(3n+2)::before { background: var(--pink); }
.timeline li:nth-child(3n)::before { background: var(--ball-green); }
.timeline .year { display: inline-block; font-weight: 900; color: var(--navy); font-size: 1.3rem; }
.timeline h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }

/* 15. FORMS ------------------------------------------------------------------ */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field label, .legend-label, fieldset > legend { font-weight: 700; color: var(--navy); }
.hint { font-size: .9rem; color: var(--muted); font-weight: 400; }
.req { color: var(--pink-dark); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: .7rem .8rem; border: 2px solid #8a93a6; border-radius: 8px; background: #fff; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); box-shadow: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.row-2, .row-3 { display: grid; gap: 1rem; }
.dob { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: .6rem; }

.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: .15rem; flex: none; accent-color: var(--navy); }
.check label { font-weight: 400; color: var(--text); }

/* radio pills */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label {
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 48px; padding: .5rem 1.1rem;
  border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; color: var(--navy); background: #fff; cursor: pointer;
}
.pills input:checked + label { background: var(--navy); color: #fff; }
.pills input:focus-visible + label { box-shadow: var(--focus); }
.pills.pink input:checked + label { background: var(--pink); border-color: var(--pink); }

.form-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.form-step-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.form-step-head .step-num { width: 44px; height: 44px; font-size: 1.2rem; margin: 0; box-shadow: none; }
.form-step-head h3 { margin: 0; }
.progress { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: .4rem; counter-reset: p; }
.progress li { flex: 1; text-align: center; font-size: .82rem; font-weight: 700; color: var(--navy); }
.progress li::before {
  counter-increment: p; content: counter(p); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  margin: 0 auto .3rem; background: var(--navy); color: #fff;
}
.progress li a { color: inherit; }

.summary-box { background: var(--card); border-radius: var(--radius-lg); padding: 1.5rem; border-top: 6px solid var(--pink); }
.summary-box h3 { margin-bottom: .8rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed #b9c6d3; }
.summary-total { font-size: 1.5rem; font-weight: 900; color: var(--navy); }
/* summary updates with CSS :has() - no JavaScript */
.sum-alt { display: none; }
@supports selector(:has(*)) {
  .signup:has(#entries-2:checked) .sum-1,
  .signup:has(#entries-3:checked) .sum-1,
  .signup:has(#entries-5:checked) .sum-1,
  .signup:has(#entries-10:checked) .sum-1 { display: none; }
  .signup:has(#entries-2:checked) .sum-2,
  .signup:has(#entries-3:checked) .sum-3,
  .signup:has(#entries-5:checked) .sum-5,
  .signup:has(#entries-10:checked) .sum-10 { display: block; }
  .donate-form:has(#freq-monthly:checked) .freq-once { display: none; }
  .donate-form:has(#freq-monthly:checked) .freq-monthly { display: inline; }
  .donate-form:has(#amt-other:checked) .other-amount { display: grid; }
}
.freq-monthly { display: none; }
.other-amount { display: none; }

.secure-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.secure-note .icon { color: var(--ok); }

/* CSS-drawn map block */
.map-block {
  position: relative; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 46%, #b7dff2 46% 58%, transparent 58%),
    linear-gradient(20deg, transparent 0 60%, #b7dff2 60% 66%, transparent 66%),
    repeating-linear-gradient(0deg, #e9f1f6 0 38px, #dfe9f1 38px 40px),
    repeating-linear-gradient(90deg, #e9f1f6 0 38px, #dfe9f1 38px 40px);
  border: 1px solid var(--line);
}
.map-block .road { position: absolute; height: 10px; background: #fff; box-shadow: 0 0 0 2px #cfd8e3; border-radius: 6px; }
.map-block .road.r1 { left: -5%; right: -5%; top: 62%; transform: rotate(-8deg); }
.map-block .road.r2 { width: 70%; left: 38%; top: 20%; transform: rotate(52deg); }
.map-pin { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -100%); color: var(--pink); }
.map-pin .icon { width: 54px; height: 54px; fill: var(--pink); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.map-label {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: #fff; border-radius: var(--radius); padding: .9rem 1rem;
  box-shadow: var(--shadow); font-size: .95rem;
}
.map-label strong { color: var(--navy); }
.water-label { position: absolute; top: 12%; left: 8%; font-style: italic; color: #2b6d92; font-weight: 700; font-size: .85rem; }

/* 16. ACCORDION (details/summary) ----------------------------------------- */
.accordion { display: grid; gap: .7rem; }
.accordion details { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 800; color: var(--navy); position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 3px solid var(--pink); border-bottom: 3px solid var(--pink); transform: rotate(45deg); transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion details[open] { background: #fff; box-shadow: var(--shadow-sm); }
.accordion .acc-body { padding: 0 1.2rem 1.2rem; }
.accordion .acc-body > * + * { margin-top: .7rem; }
.accordion .acc-body ul, .accordion .acc-body ol { padding-left: 1.3rem; }

.help-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 1.6rem; align-self: start; }
.help-card h2, .help-card h3 { color: #fff; margin-bottom: .6rem; }
.help-card a { color: #fff; }
.help-card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.help-card li { display: flex; gap: .6rem; align-items: flex-start; }
.help-card .icon { color: var(--sky); margin-top: .15rem; }

/* 17. RESPONSIBLE GAMBLING PANELS ----------------------------------------- */
.rg-panel {
  border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--navy); background: #fff; box-shadow: var(--shadow);
}
.rg-head { background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; }
.rg-head h2 { color: #fff; font-size: 1.4rem; }
.rg-wordmark { font-weight: 900; letter-spacing: .02em; font-size: 1.05rem; }
.rg-wordmark span { color: #8fd3f0; }
.rg-body { padding: 1.4rem; display: grid; gap: 1.2rem; }
.rg-question { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.helpline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--sky); border-radius: var(--radius); padding: 1rem 1.2rem; }
.helpline .phone { font-size: 1.6rem; font-weight: 900; color: var(--navy); text-decoration: none; white-space: nowrap; }
.helpline .phone:visited { color: var(--navy); }
.rg-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.rg-links a { font-weight: 700; }
.age-row { display: flex; gap: 1rem; align-items: center; }
.age-row .age-badge { font-size: 1.3rem; flex: none; }

.support-grid { display: grid; gap: 1rem; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.support-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.support-card .contact-line { display: flex; gap: .5rem; align-items: center; margin-top: .4rem; font-weight: 700; }
.support-card .contact-line .icon { color: var(--pink-dark); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; background: var(--card); border-radius: 8px; padding: .8rem 1rem; }
.checklist .icon { color: var(--navy); margin-top: .1rem; }

/* 18. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: #e6e8ff; margin-top: 0; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8rem; }
.footer-top { background: var(--navy); padding-block: 2rem; }
.footer-top .container { display: grid; gap: 1.5rem; }
.social { display: flex; gap: .6rem; margin-top: .9rem; list-style: none; padding: 0; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.social a:hover { background: var(--pink); }
.subscribe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.subscribe input { flex: 1 1 220px; border-color: #fff; }
.footer-cols { padding-block: 2.2rem; display: grid; gap: 1.8rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.age-band { background: var(--pink-dark); color: #fff; }
.age-band .container { display: grid; gap: .8rem; padding-block: 1.3rem; }
.age-band p { margin: 0; }
.age-band strong { font-size: 1.05rem; }
.age-band .age-badge { background: #fff; color: var(--pink-dark); font-size: 1.1rem; }
.age-band .band-row { display: flex; gap: 1rem; align-items: flex-start; }
.age-band .band-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; }
.age-band.large .container { padding-block: 2rem; gap: 1.1rem; }
.age-band.large p { font-size: 1.08rem; }
.age-band.large .age-badge { font-size: 1.5rem; }
.legal-row { padding-block: 1.4rem; font-size: .9rem; color: #c9cdf2; border-top: 1px solid rgba(255,255,255,.15); }
.legal-row p + p { margin-top: .5rem; }

/* 404 */
.big-404 { display: flex; justify-content: center; gap: .8rem; margin-bottom: 1.5rem; }

/* 19. RESPONSIVE ------------------------------------------------------------ */
@media (min-width: 600px) {
  :root { --gutter: 1.5rem; }
  .header-link { display: inline-flex; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: max-content 1fr; }
  .dl-grid dd { margin-bottom: .3rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .ball { width: 96px; height: 96px; font-size: 2rem; }
  .ball.big { width: 140px; height: 140px; font-size: 3rem; }
  .age-band .container { grid-template-columns: auto; }
}

@media (min-width: 900px) {
  .section { padding-block: 4.5rem; }
  .nav-toggle { display: none; }
  .main-nav, .nav-toggle-input:checked ~ .main-nav { display: block; }
  .nav-list { display: flex; flex-wrap: wrap; gap: 0; padding: 0; }
  .nav-list > li { position: relative; }
  .nav-list > li > a, .nav-list > li > .nav-parent { border: 0; padding: .8rem 1rem; width: auto; }
  .nav-list > li:first-child > a { padding-left: 0; }
  .nav-list > li:hover > .nav-parent, .nav-list > li:focus-within > .nav-parent { color: var(--pink-dark); }
  .sub-list {
    position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow); padding: .5rem; display: none; z-index: 30; border-top: 3px solid var(--pink);
  }
  .sub-list a { padding: .55rem .8rem; border-radius: 6px; }
  .sub-list a:hover { background: var(--card); }
  .nav-list > li:hover .sub-list, .nav-list > li:focus-within .sub-list { display: block; }
  .nav-list > li:hover .chev, .nav-list > li:focus-within .chev { transform: rotate(180deg); }
  .nav-list .nav-cta { margin-left: auto; }

  .hero { padding-block: 3.5rem 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse > :first-child { order: 2; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .draw-strip .container { grid-template-columns: 1fr 1.2fr; }
  .with-aside { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .signup-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; align-items: start; }
  .signup-grid .summary-box { position: sticky; top: 1rem; }
  .footer-top .container { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .rg-body.cols { grid-template-columns: 1fr 1fr; }
  .support-grid.three { grid-template-columns: repeat(3, 1fr); }
  .age-band.large .container { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1200px) {
  :root { --gutter: 2rem; }
  .hero h1 { font-size: 3.4rem; }
}

@media print {
  .topbar, .main-nav, .nav-toggle, .header-actions, .footer-top, .skip-link { display: none !important; }
  body { font-size: 12pt; }
  a { color: #000; }
}

/* legend headings inside form steps */
legend.form-step-head { width: 100%; padding: 0; }
.h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
/* numbered legal headings */
.legal h2 { scroll-margin-top: 1rem; }
.toc { background: var(--card); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.toc ol { columns: 2 14rem; padding-left: 1.4rem; margin-top: .5rem; }
.toc li { break-inside: avoid; margin-bottom: .3rem; }

/* refinements after visual review */
legend.form-step-head { float: left; display: flex; }
legend.form-step-head + * { clear: both; }
.hero::before { opacity: .3; }
.brand-name { white-space: nowrap; }
.brand-tag { white-space: nowrap; }
@media (max-width: 599px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { font-size: .72rem; }
  .header-actions { gap: .4rem; }
  .header-actions .btn-outline-pink { padding: .45rem .7rem; font-size: .9rem; }
  .header-actions .btn-outline-pink .icon { display: none; }
  .nav-toggle { padding: .45rem .6rem; }
  .balls-stage { max-width: 250px; }
  .ball { width: 66px; height: 66px; font-size: 1.4rem; }
  .countdown b { font-size: 1.5rem; }
}
@media (max-width: 380px) { .brand-tag { display: none; } }
.rg-body .stack > p + .rg-links { margin-top: .6rem; }
@media (max-width: 599px) {
  .header-inner { gap: .5rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-name { font-size: 1.02rem; }
}
@media (max-width: 420px) { .brand-tag { display: none; } }
