/* ==========================================================
   SAFE / SAFE Lottery — svdcharity.org
   Plain CSS, no frameworks.
   ========================================================== */

:root {
  --navy: #1f2a44;
  --navy-2: #2a3758;
  --forest: #2f4f3a;
  --forest-2: #e6ede7;
  --sand: #f4f1ea;
  --sand-2: #ebe6da;
  --ink: #1a1a1a;
  --muted: #545a62;
  --line: #d9d4c7;
  --accent: #a63f2a;
  --accent-2: #8a3322;
  --white: #ffffff;
  --warn-bg: #fff6e5;
  --warn-line: #e0b764;
  --ok-bg: #eaf3ec;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --wrap: 1140px;
  --text: 760px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
h4 { font-size: 1.05rem; margin-top: 1.2em; }
section > h2:first-child, .card h3:first-child, .panel h3:first-child, .panel h2:first-child { margin-top: 0; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.text { max-width: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

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

/* ---------- Icons ---------- */
.icon {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px; flex-shrink: 0;
}
.icon-lg { width: 26px; height: 26px; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy);
  color: #d7dcea;
  font-size: .85rem;
}
.utility .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px;
}
.utility a { color: var(--white); }
.utility .u-group { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.utility span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}
.brand { text-decoration: none; color: var(--navy); display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; letter-spacing: .06em; }
.brand-sub { font-size: .8rem; color: var(--muted); letter-spacing: .01em; margin-top: 3px; }
.brand:hover { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a, .nav .nav-parent {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 11px; color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: .97rem; border-radius: var(--radius); white-space: nowrap;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .nav .nav-parent:hover { background: var(--sand); color: var(--navy); }
.nav a[aria-current="page"], .nav .is-active > .nav-parent { color: var(--accent); }

.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(31,42,68,.12);
  display: none;
}
.submenu a { display: flex; width: 100%; font-weight: 500; padding: 8px 10px; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }

.nav-cta { display: flex; gap: 8px; margin-left: 10px; }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 20px;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav .nav-parent { width: 100%; justify-content: space-between; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; display: block; }
  .nav-cta { margin: 12px 0 0; flex-direction: column; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy); background: var(--navy); color: var(--white);
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--sand); color: var(--navy); border-color: var(--navy); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: 34px 0 38px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { font-size: 1.12rem; color: var(--muted); max-width: var(--text); margin: 0; }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

/* ---------- Hero ---------- */
.hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 14px;
}
.hero h1 { max-width: 820px; }
.hero p.lead { font-size: 1.22rem; max-width: 700px; color: #33373d; }
.hero-note {
  margin-top: 26px; display: inline-flex; gap: 10px; align-items: center;
  font-size: .95rem; color: var(--navy); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: var(--text); margin-bottom: 30px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.18rem; display: flex; gap: 10px; align-items: center; margin-bottom: .5em; }
.card h3 .icon { color: var(--forest); }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--navy); color: inherit; }
.card-link:hover h3 { color: var(--accent); }

.icon-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest-2); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

.panel {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.panel-white { background: var(--white); }

/* ---------- Facts list ---------- */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  counter-increment: step; position: relative; padding: 20px 20px 20px 74px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font: 700 1.05rem/38px var(--serif); text-align: center;
}
.steps h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.steps p { margin: 0; }
.steps-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.steps-4 li { padding: 72px 20px 20px; }
.steps-4 li::before { top: 20px; }
@media (max-width: 900px) { .steps-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid var(--forest);
  background: var(--forest-2); padding: 16px 18px; border-radius: var(--radius); margin: 1.4em 0;
}
.callout .icon { margin-top: 4px; color: var(--forest); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.callout-warn .icon { color: #8a5a00; }
.callout-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.callout-navy .icon, .callout-navy a { color: var(--white); }
.callout-navy strong { color: var(--white); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.2em 0; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--white); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-weight: 700; color: var(--navy); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 12px 14px; font-weight: 700; color: var(--navy); }

/* ---------- Bars ---------- */
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 60px; gap: 14px; align-items: center; }
.bar-track { height: 14px; background: var(--sand-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--forest); border-radius: 99px; }
.bar-fill.navy { background: var(--navy); }
.bar-fill.accent { background: var(--accent); }
.bar-row .pct { font-weight: 700; text-align: right; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 50px; } .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--forest);
}
.timeline .when { font-weight: 700; color: var(--forest); font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; }
.timeline h3 { margin: .2em 0 .3em; }

/* ---------- Layout with sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: .95rem; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; color: var(--muted); font-family: var(--sans); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--navy); }
.toc a:hover { color: var(--accent); }
.aside-stack { display: grid; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 960px) {
  .with-sidebar, .with-aside { grid-template-columns: 1fr; gap: 28px; }
  .toc, .aside-stack { position: static; }
}
.prose h2 { scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose { max-width: var(--text); }

/* ---------- Forms ---------- */
form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 22px; background: var(--white); }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); padding: 0 8px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 600px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem;
  border: 1px solid #b9b3a5; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-weight: 400; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }
.req { color: var(--accent); }
.error-msg { display: none; color: var(--accent); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: var(--accent); }
.field.invalid .error-msg { display: block; }
.form-status { display: none; }
.form-status.show { display: flex; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 1.05rem; padding: 12px 0; border-top: 1px solid var(--line); }
.summary-line strong { color: var(--navy); }

.segmented { display: inline-flex; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.segmented input:checked + label { background: var(--navy); color: var(--white); }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: -3px; }

.amounts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media (max-width: 560px) { .amounts { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 14px 8px; cursor: pointer; font-size: 1.15rem; background: var(--white);
}
.amounts input:checked + label { border: 2px solid var(--navy); background: var(--sand); }
.amounts input:focus-visible + label { outline: 3px solid var(--accent); }

/* ---------- FAQ / details ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 12px;
  font: 400 1.5rem/1 var(--sans); color: var(--forest);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Responsible gambling block ---------- */
.rg {
  border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; background: var(--white);
}
.rg-head {
  background: var(--navy); color: var(--white); padding: 26px 28px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.rg-head h2 { color: var(--white); margin: 0 0 .2em; }
.rg-head p { margin: 0; color: #d7dcea; max-width: 680px; }
.rg-body { padding: 28px; }
.age-badge {
  width: 74px; height: 74px; border-radius: 50%;
  border: 4px solid currentColor; display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.55rem/1 var(--serif); flex-shrink: 0; position: relative;
}
.age-badge-sm { width: 46px; height: 46px; font-size: 1rem; border-width: 3px; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.help-list li {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--white);
}
.help-list .org { font-weight: 700; color: var(--navy); display: block; font-size: 1.05rem; }
.help-list .what { display: block; color: var(--muted); font-size: .95rem; margin: 2px 0 8px; }
.help-list .ways { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .97rem; }
.help-list .ways span, .help-list .ways a { display: inline-flex; gap: 6px; align-items: center; }
.tel { font-weight: 700; white-space: nowrap; }
.big-help {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: var(--forest-2); border: 1px solid #c9d8cc; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px;
}
.big-help .tel-big { font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--serif); color: var(--navy); text-decoration: none; }
@media (max-width: 560px) { .big-help { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg);
}
.qlist { counter-reset: q; list-style: none; padding: 0; }
.qlist li { counter-increment: q; position: relative; padding-left: 40px; margin-bottom: 10px; }
.qlist li::before {
  content: counter(q); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sand-2); color: var(--navy); font-weight: 700; font-size: .85rem; text-align: center; line-height: 26px;
}

/* ---------- Prize cards ---------- */
.prize { text-align: center; padding: 30px 20px; }
.prize .rank { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.prize .amount { font: 700 2.6rem/1.1 var(--serif); color: var(--navy); margin: 8px 0; }
.prize p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest); color: var(--white); padding: 54px 0; }
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { color: #dfe9e2; max-width: 680px; }
.cta-band .btn { background: var(--white); color: var(--forest); border-color: var(--white); }
.cta-band .btn-outline { background: transparent; color: var(--white); }
.cta-band .btn:hover { background: var(--sand); color: var(--forest); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfd5e3; font-size: .95rem; margin-top: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-main { padding: 54px 0 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.7rem; color: var(--white); font-weight: 700; letter-spacing: .06em; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; }

.footer-rg { border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); background: #18213a; }
.footer-rg .wrap { padding-top: 30px; padding-bottom: 30px; }
.footer-rg-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .footer-rg-grid { grid-template-columns: 1fr; } }
.footer-rg .age-badge { color: var(--white); }
.footer-rg h2 { margin-bottom: 8px; }
.footer-rg p { margin: 0 0 10px; }
.footer-rg .rg-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; }
.footer-rg .rg-links a, .footer-rg .rg-links span { display: inline-flex; gap: 6px; align-items: center; }
.footer-rg .licence { font-size: .87rem; color: #aeb6c9; border-top: 1px dashed rgba(255,255,255,.18); padding-top: 12px; margin-top: 12px; }
.footer-rg-compact .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-rg-compact p { margin: 0; flex: 1 1 380px; }

.footer-bottom { padding: 20px 0 28px; font-size: .85rem; color: #aeb6c9; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }
.footer-bottom p { margin: 0 0 6px; max-width: 760px; }

/* ---------- Misc ---------- */
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 99px; background: var(--forest-2); color: var(--forest);
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .icon-badge { margin: 0 auto 14px; }
.notfound { padding: 100px 0; text-align: center; }

@media print {
  .utility, .site-header, .site-footer, .cta-band, .toc, .btn-row, .skip-link { display: none !important; }
  body { font-size: 12pt; }
  .with-sidebar { display: block; }
  a { color: inherit; }
}

/* nav CTA keeps button styling */
.nav .nav-cta .btn { background: var(--accent); border: 2px solid var(--accent); color: var(--white); padding: 8px 14px; }
.nav .nav-cta .btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--white); }
[id] { scroll-margin-top: 110px; }
@media (max-width: 640px) { .utility .u-group:first-child { display: none; } }
