/* =========================================================
   Kinghorn Children's Gala Lottery - stylesheet
   Pure CSS, no external requests (system fonts only)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --primary: #0E4D6E;
  --primary-dark: #093a54;
  --secondary: #1F8A8A;
  --accent: #F2B632;
  --accent-dark: #d99c17;
  --text: #1E2A32;
  --muted: #5B6B75;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --border: #E3E6E8;
  --soft-blue: #EAF2F6;
  --soft-teal: #E6F3F2;
  --soft-yellow: #FDF5E1;
  --danger: #B3261E;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 77, 110, .06), 0 4px 16px rgba(14, 77, 110, .06);
  --font-head: "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--primary-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--secondary); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- Icons ---------- */
.ico { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.ico-sm { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -3px; }
.ico-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--soft-blue); color: var(--primary); margin-bottom: 14px;
}
.ico-badge.teal { background: var(--soft-teal); color: var(--secondary); }
.ico-badge.yellow { background: var(--soft-yellow); color: #8a5b00; }

/* ---------- Top strip ---------- */
.topstrip { background: var(--primary-dark); color: #dbe8ef; font-size: .85rem; }
.topstrip .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding-top: 7px; padding-bottom: 7px; }
.topstrip a { color: #fff; }
.topstrip span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; padding: 8px 0; }
.logo b { font-family: var(--font-head); font-size: 1.35rem; color: var(--primary-dark); letter-spacing: -.01em; }
.logo small { color: var(--secondary); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--primary); }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .96rem; }
.main-nav a:hover { background: var(--soft-blue); color: var(--primary); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--soft-blue); }
.main-nav .btn { margin-left: 8px; }

@media (max-width: 960px) {
  .nav-btn { display: inline-flex; }
  .main-nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  font-family: inherit; line-height: 1.2; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--text) !important; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary) !important; background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff !important; }
.btn-light { border-color: #fff; color: #fff !important; }
.btn-light:hover { background: #fff; color: var(--primary) !important; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 182, 50, .18) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 75%, rgba(31, 138, 138, .25) 0 70px, transparent 71px),
    linear-gradient(135deg, var(--primary) 0%, #0f5f80 60%, var(--secondary) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero .wrap { padding-top: 56px; padding-bottom: 72px; position: relative; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.18rem; max-width: 640px; color: #e4f0f5; }
.hero .eyebrow { color: var(--accent); }
.hero-wave { display: block; width: 100%; height: 40px; color: var(--bg); position: absolute; bottom: -1px; left: 0; }
.bunting { display: block; width: 100%; height: 34px; }
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #0f5f80 70%, var(--secondary) 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: 36px; padding-bottom: 56px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #e4f0f5; max-width: 700px; margin: 0; font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; color: #cfe2ea; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9fc2d1; }
.crumbs a { color: #fff; }

/* ---------- Sections & layout ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.flat { box-shadow: none; }
.card.blue { background: var(--soft-blue); border-color: #d3e4ec; box-shadow: none; }
.card.teal { background: var(--soft-teal); border-color: #cde6e4; box-shadow: none; }
.card.yellow { background: var(--soft-yellow); border-color: #f3e2b3; box-shadow: none; }
.card.dark { background: var(--primary-dark); color: #e4f0f5; border-color: var(--primary-dark); }
.card.dark h2, .card.dark h3, .card.dark strong { color: #fff; }
.card.dark a { color: var(--accent); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Split bar (where money goes) ---------- */
.splitbar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; margin: 14px 0 12px; border: 1px solid var(--border); }
.splitbar span { display: block; height: 100%; }
.splitbar .s1 { background: var(--secondary); width: 50%; }
.splitbar .s2 { background: var(--accent); width: 40%; }
.splitbar .s3 { background: #9db3bf; width: 10%; }
.legend { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; margin: 0; }
.steps li::before { content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; font-size: .95rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--soft-blue); color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.empty-row td { text-align: center; color: var(--muted); padding: 28px 14px; }

/* ---------- Lists with icons ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li .ico { color: var(--secondary); margin-top: 3px; }
.checklist.warn li .ico { color: var(--danger); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 28px 44px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--secondary); }
.timeline .year { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.timeline h3 { margin: 2px 0 6px; font-size: 1.08rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary-dark); font-size: .96rem; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cdd5da; border-radius: 10px;
  background: #fff; font: inherit; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 3px solid rgba(14, 77, 110, .15); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: 0 0 auto; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 18px; border: 1.5px solid #cdd5da; border-radius: 999px; background: #fff; font-weight: 600; min-width: 64px; text-align: center; }
.choice input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-panel { padding: 20px; } }
.form-section-title { font-size: 1.05rem; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--soft-yellow); border: 1px solid #f3e2b3; font-size: .96rem; }
.notice.blue { background: var(--soft-blue); border-color: #d3e4ec; }
.notice.teal { background: var(--soft-teal); border-color: #cde6e4; }
.notice.red { background: #fdecea; border-color: #f5c6c2; }
.notice .ico { margin-top: 2px; color: var(--primary); }
.notice.red .ico { color: var(--danger); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Age badge ---------- */
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid var(--danger); background: #fff; color: var(--danger);
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em;
}
.age-badge.lg { width: 84px; height: 84px; font-size: 1.7rem; border-width: 4px; }

/* ---------- Age gate (CSS only, uses :target) ---------- */
.age-gate { position: fixed; inset: 0; z-index: 200; background: rgba(9, 58, 84, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-gate .box { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; padding: 30px 26px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.age-gate h2 { margin-top: 14px; }
.age-gate .btn-row { justify-content: center; margin-top: 18px; }
#age-ok:target + .age-gate { display: none; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--primary-dark); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--secondary); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 16px; color: var(--text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Support directory ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .support-grid { grid-template-columns: 1fr; } }
.support { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.support h4 { margin: 0; }
.support p { margin: 0; font-size: .93rem; color: var(--muted); }
.support .contact-line { display: flex; gap: 8px; align-items: center; font-size: .93rem; font-weight: 600; }
.support .contact-line a { word-break: break-word; }
.support .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--soft-teal); color: var(--secondary); }
.support.featured { border: 2px solid var(--secondary); background: var(--soft-teal); }
.support-group-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }

/* ---------- Big helpline ---------- */
.helpline-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--primary-dark); color: #e4f0f5; border-radius: 16px; padding: 26px 28px; }
.helpline-hero h3 { color: #fff; margin: 0 0 4px; }
.helpline-hero p { margin: 0; }
.helpline-hero .number { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .helpline-hero { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Sticky TOC for legal pages ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.legal .toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-size: .92rem; }
.legal .toc h2 { font-size: 1rem; margin-bottom: 10px; }
.legal .toc ol { padding-left: 1.2em; margin: 0; }
.legal .toc a { text-decoration: none; }
.legal article h2 { font-size: 1.35rem; margin-top: 1.6em; padding-top: 6px; scroll-margin-top: 96px; }
.legal article h2:first-child { margin-top: 0; }
.legal article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; min-width: 0; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal .toc { position: static; }
  .legal article { padding: 22px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0b2f42; color: #c6d8e1; margin-top: 0; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 36px; }
.footer-main h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: .02em; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-main .ico-sm { margin-top: 4px; color: #8fb6c8; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.rg-band { background: #082636; border-top: 1px solid #16445c; border-bottom: 1px solid #16445c; }
.rg-band .wrap { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-top: 28px; padding-bottom: 28px; align-items: start; }
.rg-band .age-badge { background: transparent; color: #fff; border-color: #ff6b5e; }
.rg-band h2 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.rg-band p { margin: 0 0 10px; }
.rg-links { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rg-links li { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 560px) { .rg-band .wrap { grid-template-columns: 1fr; } }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 18px; padding-bottom: 22px; font-size: .86rem; color: #9fbccb; }

/* ---------- Misc ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; color: var(--primary-dark); }
.cta-band { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; border-radius: 16px; padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #e4f0f5; }
.tick-cols { columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .tick-cols { columns: 1; } }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.anchor-nav li { margin: 0; }
.anchor-nav a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-size: .9rem; font-weight: 600; }
.anchor-nav a:hover { border-color: var(--primary); }
[id] { scroll-margin-top: 90px; }

/* ---------- Print ---------- */
@media print {
  .topstrip, .site-header, .site-footer, .toc, .btn, .age-gate, .hero-wave, .bunting { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .legal { display: block; }
  .legal article, .card { border: 0; box-shadow: none; padding: 0; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero p { color: #000; }
  a { color: #000; }
}

/* Prevent grid children from overflowing on small screens */
.split > *, .grid > *, .legal > * { min-width: 0; }
