/* Wishaw New Kirk Lottery - shared stylesheet */
:root {
  --navy: #1F2A44;
  --navy-2: #2C3A5C;
  --gold: #B8893A;
  --gold-soft: #F3E8D2;
  --cream: #FAF7F0;
  --paper: #FFFFFF;
  --ink: #1C1C1C;
  --muted: #5B6270;
  --line: #E4DED2;
  --success: #2F6B4F;
  --success-bg: #E8F2EC;
  --warn: #8A4B08;
  --warn-bg: #FFF4E5;
  --danger: #9B2C2C;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31,42,68,.06), 0 4px 14px rgba(31,42,68,.05);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon-lg { width: 22px; height: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff;
  padding: 8px 14px; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* Top age bar */
.agebar { background: var(--navy); color: #E9EDF5; font-size: .82rem; }
.agebar .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.agebar a { color: #fff; }
.agebar a:hover { color: var(--gold-soft); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); }
.logo-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.logo-tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 3px; }
.logo:hover { color: var(--navy); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; font-weight: 500; color: var(--navy);
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--gold); outline-offset: 2px; }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-toggle:checked ~ .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 10px 4px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.main-nav a:hover { color: var(--gold); }
.main-nav .nav-cta { margin-top: 12px; border: 0; }

@media (min-width: 1024px) {
  .nav-toggle-label { display: none; }
  .main-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .main-nav ul { display: flex; align-items: center; gap: 2px; padding: 0; }
  .main-nav a { border: 0; padding: 8px 10px; font-size: .92rem; border-radius: 6px; }
  .main-nav a[aria-current="page"] { background: var(--cream); }
  .main-nav .nav-cta { margin: 0 0 0 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold-soft); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.main-nav .btn-primary { color: #fff; padding: 9px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; display: block; }
.lead { font-size: 1.12rem; color: #343a46; max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 28px; }

/* Hero */
.hero { background: var(--navy); color: #E9EDF5; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(184,137,58,.35); box-shadow: 0 0 0 40px rgba(184,137,58,.06), 0 0 0 90px rgba(184,137,58,.04);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 40rem; }
.hero .lead { color: #D5DBE8; }
.hero-note { margin-top: 16px; font-size: .85rem; color: #C3CADB; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* Grid & cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.5fr 1fr; align-items: start; } .split-even { grid-template-columns: 1fr 1fr; } }

/* Lists with icons */
.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.icon-list li:last-child { border-bottom: 0; }
.icon-list .icon { margin-top: 4px; color: var(--gold); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 42%; color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--cream); color: var(--navy); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.empty-row td { text-align: center; color: var(--muted); padding: 28px 14px; }

/* Notices */
.notice { border-radius: var(--radius); padding: 18px 20px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.notice p:last-child { margin-bottom: 0; }
.notice-info { background: #EEF2F9; border-color: #CCD6E8; }
.notice-warn { background: var(--warn-bg); border-color: #F2D4A8; }
.notice-success { background: var(--success-bg); border-color: #BFD9C9; }
.notice .icon { margin-top: 3px; }
.notice-warn .icon { color: var(--warn); }

/* Split bar */
.split-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); margin: 14px 0 12px; }
.split-bar span { display: block; height: 100%; }
.seg-church { background: var(--navy); }
.seg-prize { background: var(--gold); }
.seg-cost { background: #B9C0CC; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-family: var(--serif); margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; font-size: .95rem; color: #3b4150; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 36px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--navy); border-color: var(--navy); }
.timeline .when { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.timeline h3 { margin-bottom: .3em; }

/* Accordion */
.accordion details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.accordion summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--navy); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion .answer { padding: 0 18px 16px; color: #343a46; }
.accordion .answer p:last-child { margin-bottom: 0; }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 32px; } }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { display: block; font-size: .84rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #CFC8BA; border-radius: 6px; background: #fff;
  font: inherit; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(184,137,58,.35); border-color: var(--gold); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .field-row-2 { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: repeat(3, 1fr); } }
.dob-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 10px 18px; border: 1px solid #CFC8BA; border-radius: 6px; background: #fff; cursor: pointer; font-weight: 600; min-width: 64px; text-align: center; }
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.summary-box { background: var(--cream); border: 1px dashed #CFC8BA; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; font-size: .95rem; }
.summary-box dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.summary-box dt { color: var(--muted); }
.summary-box dd { margin: 0; font-weight: 600; text-align: right; }
.secure-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Prose pages */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; }
.prose ol > li, .prose ul > li { margin-bottom: .5em; }
.doc-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 260px 1fr; } .toc { position: sticky; top: 96px; align-self: start; } }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .9rem; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--gold); text-decoration: underline; }
.updated { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Stat */
.stat { font-family: var(--serif); font-size: 2rem; color: var(--navy); font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); }

/* Callout band */
.band { background: var(--navy); color: #E9EDF5; border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; align-items: center; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; color: #D5DBE8; }
@media (min-width: 800px) { .band { grid-template-columns: 1fr auto; padding: 40px; } }

/* Age badge */
.age-badge {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none;
  border: 3px solid currentColor; font-family: var(--sans); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
}
.age-badge-sm { width: 44px; height: 44px; font-size: .95rem; border-width: 2px; }

/* Responsible gambling (lottery page) */
.rg-section { background: #FBF8F2; border-top: 4px solid var(--gold); }
.rg-intro { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.rg-intro .age-badge { color: var(--navy); }
.rg-intro > div { flex: 1 1 320px; }
.help-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.help-card h4 { font-family: var(--sans); font-size: 1rem; margin: 0; color: var(--navy); }
.help-card p { margin: 0; font-size: .9rem; color: #3b4150; }
.help-card .tel { font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.help-card .tel:hover { color: var(--gold); }
.help-card .web { font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: #6B4E1C; align-self: flex-start; }
.tag-urgent { background: #FBE3E3; color: var(--danger); }
.sub-head { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 32px 0 12px; font-weight: 700; }
.quiz { counter-reset: q; list-style: none; padding: 0; }
.quiz li { counter-increment: q; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px solid var(--line); margin: 0; }
.quiz li::before { content: counter(q); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--navy); }
.limits-table td:last-child { font-weight: 600; color: var(--navy); }

/* Footer */
.site-footer { background: #151D31; color: #C4CBDA; font-size: .92rem; margin-top: 0; }
.site-footer a { color: #E4E8F1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-main { padding: 48px 0 32px; display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-main h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { margin-bottom: 8px; }
.footer-brand .logo-name { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--gold); }
.footer-rg { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); padding: 28px 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-rg { grid-template-columns: auto 1fr 1fr; align-items: start; } }
.footer-rg .age-badge { color: #fff; }
.footer-rg p { margin: 0 0 .6em; }
.footer-rg strong { color: #fff; }
.help-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.help-links a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font-size: .82rem; }
.help-links a:hover { border-color: var(--gold); text-decoration: none; }
.footer-bottom { padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .82rem; color: #9AA3B6; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; }
.footer-bottom li { margin: 0; }

/* Utility */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

@media print {
  .agebar, .site-header, .site-footer .footer-main, .btn { display: none !important; }
  body { background: #fff; }
}
