/* ==========================================================
   Drumchapel Sports Centre Lottery - styles.css
   Plain CSS, no frameworks, no images.
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  --green-900: #0a3b24;
  --green-800: #0f5132;
  --green-700: #146c43;
  --green-100: #e3efe8;
  --gold: #e0a800;
  --gold-dark: #b38600;
  --gold-100: #fff4d1;
  --bg: #f8f9f6;
  --surface: #ffffff;
  --text: #1e2420;
  --muted: #4f5a53;
  --line: #d9dfda;
  --warn: #8a1c1c;
  --warn-100: #fbeaea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(15,81,50,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.2em; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }
.narrow { max-width: 50rem; }

.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; margin-right: .4em; }
.ic-lg { width: 32px; height: 32px; color: var(--green-700); margin-bottom: .5rem; display: block; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.section { padding: 56px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4, .grid-help { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-help { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-help { grid-template-columns: repeat(3, 1fr); }
}
.align-center { align-items: center; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: #e6f0ea; font-size: .85rem; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; font-weight: 600; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--green-900); }
.brand__ic { width: 34px; height: 34px; color: var(--gold-dark); margin-right: 10px; }
.brand strong { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.brand small { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.nav-toggle { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.nav-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.nav-btn .ic { margin-right: 4px; }
.nav { display: none; width: 100%; padding-bottom: 16px; }
.nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav li a { display: block; padding: 10px 4px; text-decoration: none; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; }
.nav-toggle:checked ~ .nav { display: block; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--gold); }

@media (min-width: 1080px) {
  .nav-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 14px; width: auto; padding: 0; }
  .nav ul { display: flex; gap: 2px; margin: 0; }
  .nav li a { border: 0; padding: 8px 9px; font-size: .95rem; border-radius: 6px; }
  .nav li a:hover { background: var(--green-100); }
  .nav a[aria-current="page"] { background: var(--green-100); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--green-800); background: var(--green-800); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: var(--font); }
.btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn .ic:last-child:not(:first-child) { margin: 0 0 0 .4em; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #1a1400; }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { padding: 8px 14px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row--center { justify-content: center; }

/* ---------- Age badges ---------- */
.age-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--display); font-weight: 700; background: var(--warn); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--warn); flex: none; line-height: 1; }
.age-badge--sm { width: 40px; height: 40px; font-size: 1rem; }
.age-badge--lg { width: 72px; height: 72px; font-size: 1.8rem; }
.age-badge--xl { width: 104px; height: 104px; font-size: 2.6rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 64px 0; }
.hero h1, .hero .lead { color: #fff; }
.hero .lead { color: #d7e8de; }
.hero__in { display: grid; gap: 36px; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.hero__facts { list-style: none; margin: 0; padding: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); }
.hero__facts li { display: flex; align-items: center; gap: 4px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero__facts li:last-child { border: 0; }
.hero__facts .ic { color: var(--gold); width: 22px; height: 22px; margin-right: 10px; }
.page-hero { background: var(--green-800); color: #fff; padding: 48px 0 40px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #d7e8de; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); margin-bottom: .6em; }
.page-hero .eyebrow, .eyebrow--light { color: var(--gold); }

.strip { background: var(--gold-100); border-bottom: 1px solid #f0dd9c; }
.strip__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.strip__in p { margin: 0; flex: 1 1 260px; }
.strip a { font-weight: 700; }

/* ---------- Cards, stats, steps ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section--alt .card { background: var(--bg); }
.card h3 .ic, .card h4 .ic, h2 .ic, h3 .ic { color: var(--green-700); }
.card > :last-child { margin-bottom: 0; }
.card--rg { border-left: 5px solid var(--warn); }
.card--warn { background: var(--warn-100); border-color: #efc9c9; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.stat__num { display: block; font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--green-800); line-height: 1; margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.section--alt .steps li { background: var(--bg); }
.steps__n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-800); color: #fff; font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.steps--long li p { margin: 0; }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tip strong { display: block; color: var(--green-900); margin-bottom: 4px; }
.tip p { margin: 0; font-size: .95rem; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { display: flex; align-items: flex-start; padding: 5px 0; }
.ticks .ic { color: var(--green-700); margin-top: .25em; }
.cols-2 { columns: 1; }
@media (min-width: 700px) { .cols-2 { columns: 2; column-gap: 32px; } }
.cols-2 li { break-inside: avoid; margin-bottom: 6px; }
.note { display: block; font-size: .95rem; color: var(--muted); margin-top: 16px; }
.note .ic { margin-top: .25em; color: var(--green-700); }
.note--alert { color: var(--warn); font-weight: 600; }
.note--alert .ic { color: var(--warn); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table caption { text-align: left; font-weight: 700; padding: 14px 16px 6px; color: var(--green-900); }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--green-100); color: var(--green-900); font-size: .92rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table--compact { min-width: 0; }
.table--compact th, .table--compact td { padding: 8px 12px; }

/* ---------- Accordions ---------- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.section--alt .faq { background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-700); }
.faq[open] summary::after { content: "\2212"; }
.faq > div { padding: 0 18px 4px; color: var(--muted); }

/* ---------- Play page ---------- */
.play-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .play-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.play-grid aside { display: grid; gap: 20px; }
.sticky { position: sticky; top: 90px; }
.summary { background: var(--green-100); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.summary dl { margin: 0; display: grid; gap: 0; }
.summary dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid #c8ddd0; }
.summary dl > div:last-child { border: 0; }
@media (min-width: 560px) { .summary dl > div { grid-template-columns: 170px 1fr; } }
.summary dt { font-weight: 700; color: var(--green-900); display: flex; align-items: center; }
.summary dd { margin: 0; }
.help-big { background: var(--green-900); color: #fff; border-radius: 8px; padding: 14px; text-align: center; margin: 16px 0; }
.help-big span, .help-big small { display: block; font-size: .85rem; color: #cfe3d7; }
.help-big a { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.rg-inline { display: flex; gap: 4px; background: var(--warn-100); border: 1px solid #efc9c9; border-radius: 8px; padding: 12px 14px; margin: 18px 0; font-size: .95rem; }
.rg-inline p { margin: 0; }
.rg-inline .ic { color: var(--warn); margin-top: .2em; }

/* ---------- Forms ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; display: flex; align-items: center; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; flex: 1 1 220px; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
label, .label { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1.5px solid #b9c3bc; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); outline: 3px solid rgba(224,168,0,.45); outline-offset: 0; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin-bottom: 12px; cursor: pointer; }
.check input, .radio input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--green-800); }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chip { margin: 0; cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 20px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; background: #fff; }
.chip input:checked + span { border-color: var(--green-800); background: var(--green-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }
.giftaid { background: var(--gold-100); border-radius: 8px; padding: 16px !important; }
.giftaid legend { display: block; float: none; padding: 0; }

/* ---------- Results ---------- */
.balls { display: flex; gap: 12px; margin: 20px 0; }
.ball { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #1a1400; font-family: var(--display); font-weight: 700; font-size: 1.3rem; border: 3px solid var(--gold-dark); }
.ball--2 { background: #d7dcd8; border-color: #9aa39d; }
.ball--3 { background: #e7c9a4; border-color: #b78b55; }

/* ---------- Trustees, timeline ---------- */
.trustees { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.trustees li { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-weight: 600; }
.trustees .ic { color: var(--green-700); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--green-100); }
.timeline li { position: relative; padding: 0 0 32px 12px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--green-700); }
.timeline__date { display: inline-block; background: var(--green-800); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Map box / contact ---------- */
.map-box { border: 2px dashed #b9c3bc; border-radius: var(--radius); padding: 24px; background: var(--surface); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: flex-start; padding: 6px 0; overflow-wrap: anywhere; }
.contact-list .ic { margin-top: .25em; }
.contact-list--dark .ic { color: var(--green-700); }

/* ---------- Responsible gambling section ---------- */
.rg { padding: 56px 0; background: var(--surface); border-top: 6px solid var(--warn); }
.rg h3 { margin-top: 40px; display: flex; align-items: center; }
.rg-intro { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 24px; }
.rg-intro > div:last-child { flex: 1 1 320px; }
.rg-urgent { display: flex; gap: 14px; background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 22px; }
.rg-urgent .ic-lg { color: var(--gold); margin: 0; }
.rg-urgent p { margin: 0; }
.rg-urgent a { color: var(--gold); }
.rg-urgent__title { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px !important; }
.help-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.help-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.help-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; }
.help-head h4 { margin: 0 0 6px; }
.tag { font-size: .75rem; font-weight: 700; background: var(--green-100); color: var(--green-900); padding: 3px 8px; border-radius: 999px; }
.help-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.help-links a { display: inline-flex; align-items: center; font-weight: 600; overflow-wrap: anywhere; }
.help-num { font-size: 1.1rem; color: var(--green-900); }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-800); color: #fff; padding: 44px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e8de; margin: 0; }
.cta-band__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 32px; }
@media (min-width: 960px) { .legal { grid-template-columns: 260px 1fr; align-items: start; } .toc { position: sticky; top: 90px; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: .92rem; }
.toc h2 { font-size: 1.3rem; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 4px; }
.legal__body section { margin-bottom: 28px; scroll-margin-top: 90px; }
.legal__body h2 { font-size: 1.6rem; }
.big-404 { font-family: var(--display); font-size: 7rem; font-weight: 700; color: var(--green-100); margin: 0; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe3d7; margin-top: 0; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer__brand { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: #fff; display: flex; align-items: center; }
.footer__brand .ic { color: var(--gold); }
.site-footer h3 { color: #fff; font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer .small { color: #a9c4b4; }
.rg-band { background: #061f13; border-top: 4px solid var(--gold); border-bottom: 1px solid rgba(255,255,255,.1); }
.rg-band__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }
.rg-band__text { flex: 1 1 320px; font-size: .95rem; }
.rg-band__text p { margin-bottom: .6em; }
.rg-band__text strong { color: #fff; }
.rg-band a { color: var(--gold); font-weight: 600; }
.rg-band__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__bottom { padding: 18px 0; font-size: .85rem; color: #a9c4b4; }
.footer__bottom p { margin: 0; }

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .cta-band, .rg-band { display: none; }
  body { background: #fff; }
}
.grid > *, .play-grid > * { min-width: 0; }
.form fieldset { min-width: 0; } .form legend { white-space: normal; max-width: 100%; }
