/* First Aid Responder — styles */
:root {
  --green: #0b5d3b;
  --green-dark: #07402a;
  --green-tint: #e7f2ec;
  --red: #c8102e;
  --red-tint: #fdecee;
  --ink: #15201b;
  --ink-soft: #4a5a52;
  --line: #dfe5e1;
  --paper: #fbfaf6;
  --white: #ffffff;
  --amber: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 32, 27, .06), 0 6px 20px rgba(21, 32, 27, .06);
  --font-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--white); padding: .5rem 1rem; }

/* emergency strip */
.alert-strip { background: var(--red); color: #fff; font-size: .95rem; padding: .45rem 0; }
.alert-strip span { opacity: .9; }
@media (max-width: 640px) { .alert-strip span { display: none; } }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 600 1.2rem var(--font-head); }
.logo b { color: var(--green); font-weight: 800; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.site-header nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .45rem .8rem; border-radius: 999px; }
.site-header nav a:hover, .site-header nav a[aria-current] { background: var(--green-tint); color: var(--green-dark); }
@media (max-width: 640px) { .site-header { position: static; } .header-inner { padding: .6rem 0; } .site-header nav a { padding: .35rem .6rem; font-size: 1rem; } }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--red); color: var(--red); background: var(--white); }
.btn-ghost:hover { background: var(--red); color: #fff; }

/* hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; padding: 4.5rem 0 4rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--green); margin: 0 0 .8rem; }
.hero h1 em { font-style: normal; color: var(--green); }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 38em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-panel { background: var(--green); color: #fff; border-radius: 20px; padding: 1.8rem 1.8rem 1.4rem; box-shadow: var(--shadow); }
.panel-title { font: 800 1.1rem var(--font-head); margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.drabc { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.drabc li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .8rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.drabc li:first-child { border-top: 0; }
.drabc li::before { content: counter(s); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff; color: var(--green); font: 800 1rem/2.2rem var(--font-head); text-align: center; }
.drabc b { font-family: var(--font-head); font-size: 1.1rem; }
.drabc span { opacity: .88; font-size: 1rem; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding: 3rem 0; gap: 2rem; } }

/* sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); }
.more { font-weight: 700; text-decoration: none; }

/* quick help tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: .2rem; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.tile .ico { width: 34px; height: 34px; color: var(--red); margin-bottom: .5rem; }
.tile-label { font: 800 1.15rem var(--font-head); }
.tile-sub { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 1.4rem; text-decoration: none; color: var(--ink); }
.card-link h3 { margin: .7rem 0 .4rem; font-size: 1.3rem; }
.card-link p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1.02rem; flex: 1; }
.meta { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* category colours */
.tag { align-self: flex-start; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 999px; background: var(--cat-bg); color: var(--cat); }
.tag-emergencies { --cat: #b00d26; --cat-bg: #fdecee; }
.tag-injuries { --cat: #9a4a07; --cat-bg: #fdf0e2; }
.tag-medical-conditions { --cat: #1d4e89; --cat-bg: #e8eff9; }
.tag-children-and-babies { --cat: #6b3fa0; --cat-bg: #f1eafa; }
.tag-workplace { --cat: #3f4a45; --cat-bg: #eceeed; }
.tag-outdoors-and-sport { --cat: #0b5d3b; --cat-bg: #e7f2ec; }

/* topics */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.topic { display: block; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--cat); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.topic:hover { box-shadow: var(--shadow); color: var(--ink); }
.topic h3 { color: var(--cat); margin-bottom: .3rem; }
.topic p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: 1rem; }
.count { font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 860px) { .topic-grid { grid-template-columns: 1fr; } }

/* trust */
.trust { background: var(--green-dark); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trust h3 { font-size: 1.25rem; }
.trust p { margin: 0; opacity: .85; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

/* page head */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 3rem 0 2.2rem; }
.page-head h1 { color: var(--cat, var(--ink)); }
.crumbs { font-size: .95rem; margin-bottom: .8rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* filter */
.filter { margin-top: 1.5rem; }
.filter input { width: 100%; max-width: 560px; font: inherit; padding: .8rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); }
.filter input:focus { border-color: var(--green); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font: 600 .95rem var(--font-body); padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.empty { padding: 2rem; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* post */
.post-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 2.8rem 0 2rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--ink-soft); font-size: .95rem; margin: 1rem 0 0; }
.post-body { padding: 2rem 0 3rem; }
.call999 { background: var(--red-tint); border-left: 6px solid var(--red); padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.6rem; }
.call999 strong { color: var(--red); }
.call999.big { font-size: 1.2rem; }
.keysteps { background: var(--green); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; }
.keysteps-title { font: 800 1.15rem var(--font-head); margin: 0 0 .6rem; }
.keysteps ol { margin: 0; padding-left: 1.3rem; }
.keysteps li { margin: .3rem 0; }
.toc { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: 2rem; }
.toc p { margin: 0 0 .3rem; font-weight: 700; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc li { margin: .15rem 0; }

/* long-form text */
.prose h2 { margin-top: 2.2rem; padding-top: .4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin: .35rem 0; }
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 3rem; min-height: 2.2rem; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font: 800 1rem/2.1rem var(--font-head); text-align: center; }
.prose blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; background: #fff7e6; border-left: 6px solid var(--amber); border-radius: 10px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--green-tint); }
.sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1rem; }
.sources h2 { font-size: 1.2rem; }
.disclaimer-note { font-size: .95rem; color: var(--ink-soft); margin-top: 1.5rem; }

/* footer */
.site-footer { background: var(--ink); color: #c9d3ce; padding: 3rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.logo-footer { color: #fff; }
.logo-footer b { color: #7fd1a6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-note { max-width: 30em; }
.footer-h { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .alert-strip, .site-header nav, .site-footer, .section-alt { display: none; } .site-header { position: static; } }

/* ad slots (only rendered when enabled in src/site.config.mjs) */
.ad-wrap { margin: 2rem auto; min-height: 280px; max-width: 100%; text-align: center; clear: both; }
.ad-label { margin: 0 0 .3rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ad-row { grid-column: 1 / -1; }
.ad-row .ad-wrap { margin: .5rem 0; }
.ad-preview { display: flex; align-items: center; justify-content: center; border: 2px dashed #b9c4be; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #f3f5f4 0 12px, #eef1ef 12px 24px); color: var(--ink-soft); font-weight: 700; }
@media print { .ad-wrap { display: none; } }
