/* ==========================================================================
   PreppingForHealth.ca — site styles (loaded after global.css, mobile-first)
   1 Tokens · 2 Base · 3 Buttons & labels · 4 Header & nav · 5 Footer
   6 Heroes · 7 Sections · 8 Cards · 9 Notices & disclaimers · 10 Learning centre
   11 Articles · 12 Wellness checklist · 13 Forms · 14 Consent banner · 15 Motion & print
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #0B5E8C;
  --blue-800: #084A6F;
  --blue-50: #EAF4FA;
  --green: #4CAF50;          /* decorative only (fails contrast as text/button) */
  --green-700: #2E7D32;      /* green for text and buttons (AA with white) */
  --green-800: #23622A;
  --green-50: #EDF7EE;
  --sky: #A7D8F0;
  --grey: #F2F4F7;
  --charcoal: #333333;
  --muted: #555F69;
  --line: #DDE2E8;
  --white: #FFFFFF;
  --amber-50: #FFF6E5; --amber-700: #8A5300;
  --error: #B42318; --error-bg: #FEF0EE; --success: #2E7D32; --success-bg: #EDF7EE;

  --fs-display: clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);
  --fs-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem);
  --fs-h2: clamp(1.65rem, 1.35rem + 1.3vw, 2.4rem);
  --fs-h3: clamp(1.18rem, 1.1rem + .35vw, 1.4rem);
  --fs-lead: clamp(1.12rem, 1.05rem + .35vw, 1.3rem);

  --gutter: 15px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --section-y: clamp(60px, 4.5vw + 36px, 112px);
  --shadow: 0 16px 36px -18px rgba(11, 94, 140, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --measure: 70ch;
}
@media (min-width: 1180px) { :root { --header-h: 84px; } }

/* ---------- 2. Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 20px); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; height: auto; }
h1, h2, h3, h4 { color: #1F2A33; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }
h1 .accent, h2 .accent { color: var(--green-700); }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:hover { color: var(--blue-800); }
::selection { background: var(--sky); color: var(--charcoal); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }

.skip-link { position: absolute; left: 16px; top: -120px; z-index: 1000; padding: 12px 18px; background: var(--blue); color: var(--white); font-weight: 700; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; color: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--charcoal); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.measure { max-width: var(--measure); }
.prose a, .note a, .content-link, .disclaimer a, .consent a, .faq-answer a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ext::after { content: " ↗"; font-size: .85em; text-decoration: none; display: inline-block; }

/* ---------- 3. Buttons & labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px;
  border: 2px solid transparent; border-radius: 999px; font-family: var(--font-heading); font-weight: 500; font-size: 1rem;
  line-height: 1.2; text-align: center; cursor: pointer;
  -webkit-transition: background .2s, color .2s, border-color .2s, box-shadow .2s; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; -webkit-transition: transform .25s var(--ease); transition: transform .25s var(--ease); }
.btn:hover svg { -webkit-transform: translateX(3px); transform: translateX(3px); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 22px -12px rgba(11, 94, 140, .7); }
.btn-blue:hover { background: var(--blue-800); color: var(--white); }
.btn-green { background: var(--green-700); color: var(--white); box-shadow: 0 10px 22px -12px rgba(46, 125, 50, .7); }
.btn-green:hover { background: var(--green-800); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--white); border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 500; font-size: .98rem; color: var(--blue); }
.text-link svg { width: 16px; height: 16px; flex: none; -webkit-transition: transform .25s var(--ease); transition: transform .25s var(--ease); }
.text-link:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover svg { -webkit-transform: translateX(3px); transform: translateX(3px); }
.on-dark .text-link { color: var(--white); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-heading); font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50% 0 50% 50%; background: var(--green); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }
.on-dark .eyebrow { color: #B7E4BA; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.6; background: var(--blue-50); color: var(--blue); white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-grey { background: var(--grey); color: var(--muted); }
.verify { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border: 1.5px dashed var(--amber-700); border-radius: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-700); vertical-align: middle; white-space: nowrap; line-height: 1.6; }
.on-dark .verify, .site-footer .verify { color: #FFD48A; border-color: #FFD48A; }
.placeholder { display: inline-block; padding: 0 8px; border: 1.5px dashed currentColor; border-radius: 6px; font-style: italic; }

/* ---------- 4. Header & navigation ---------- */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(11, 94, 140, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding: 0 var(--gutter); max-width: 1215px; margin: 0 auto; }
.brand { display: inline-flex; flex: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
@media (max-width: 400px) { .brand img { height: 34px; } }
@media (max-width: 340px) { .brand img { height: 30px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 48px; height: 48px; padding: 0 14px;
  border: 2px solid var(--blue); border-radius: 999px; background: var(--white); color: var(--blue);
  font-family: var(--font-heading); font-weight: 500; font-size: .92rem;
}
.nav-toggle .bars { position: relative; width: 20px; height: 12px; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; -webkit-transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s; transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s; }
.nav-toggle .bars span:nth-child(1) { top: 0; } .nav-toggle .bars span:nth-child(2) { top: 5px; } .nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }
.nav-toggle-label { display: none; }
@media (min-width: 440px) { .nav-toggle-label { display: inline; } }

.main-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  padding: 12px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--white);
  visibility: hidden; opacity: 0; -webkit-transform: translateY(-8px); transform: translateY(-8px);
  -webkit-transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.main-nav.is-open { visibility: visible; opacity: 1; -webkit-transform: none; transform: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid var(--line); }
.main-nav .nav-link { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 12px 4px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; color: var(--charcoal); }
.main-nav .nav-link[aria-current="page"] { color: var(--blue); }
.main-nav .nav-cta { margin-top: 26px; width: 100%; }
@media (max-width: 1179px) { .main-nav .nav-link::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--green-700); border-right: 2px solid var(--green-700); -webkit-transform: rotate(45deg); transform: rotate(45deg); } }
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; height: auto; padding: 0; overflow: visible; background: transparent; visibility: visible; opacity: 1; -webkit-transform: none; transform: none; display: flex; align-items: center; gap: 14px; }
  .main-nav ul { display: flex; align-items: center; gap: 2px; }
  .main-nav li { border: 0; }
  .main-nav .nav-link { position: relative; min-height: 44px; padding: 10px 12px; font-size: .96rem; border-radius: 999px; white-space: nowrap; }
  .main-nav .nav-cta { white-space: nowrap; }
  .main-nav .nav-link:hover { background: var(--grey); color: var(--blue); }
  .main-nav .nav-link[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
  .main-nav .nav-cta { margin: 0 0 0 10px; width: auto; }
}

/* ---------- 5. Footer ---------- */
.site-footer { background: #0A3F5E; color: #D3E6F1; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sky); }
.footer-disclaimer { background: #08344E; padding: 22px 0; font-size: .95rem; }
.footer-disclaimer p { margin: 0; }
.footer-disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
.footer-main { padding: 64px 0 40px; }
.footer-main .rowBox { row-gap: 36px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; }
.footer-title { font-family: var(--font-heading); font-size: .85rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 22px 0; font-size: .92rem; color: #B9D3E2; }
.footer-bottom .wrap { max-width: 1215px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 1023px) { .footer-main .footer-col { width: 50%; } }
@media (max-width: 479px) { .footer-main .footer-col { width: 100%; } }

/* ---------- 6. Heroes ---------- */
.hero { padding: clamp(36px, 5vw, 76px) 0 clamp(52px, 6vw, 96px); background: linear-gradient(180deg, var(--blue-50), var(--white)); position: relative; overflow: hidden; }
.hero .rowBox { align-items: center; row-gap: 40px; }
.hero h1 { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero h1 .accent { display: block; }
.hero .lead { max-width: 540px; color: var(--muted); }
.hero .btn-row { margin-top: 30px; }
.hero-note { margin-top: 24px; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); max-width: 520px; }
.hero-note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); background: var(--blue-50); }

.page-hero { padding: clamp(44px, 5.5vw, 92px) 0 clamp(36px, 4.5vw, 64px); background: linear-gradient(180deg, var(--blue-50), var(--white)); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 740px; color: var(--muted); margin: 0; }
.page-hero.has-figure .rowBox { align-items: center; row-gap: 32px; }
.page-hero.has-figure img { width: 100%; border-radius: 22px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .95rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--charcoal); font-weight: 600; }

/* ---------- 7. Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-sm { padding: calc(var(--section-y) * .6) 0; }
.bg-grey-section { background: var(--grey); }
.bg-blue-section { background: var(--blue); color: #DCEFFA; }
.bg-blue-section h2, .bg-blue-section h3 { color: var(--white); }
.bg-blue-section .accent { color: #B7E4BA; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: var(--fs-lead); color: var(--muted); margin: 0; }
.on-dark .section-head p { color: #DCEFFA; }
.section-head.split-head { max-width: none; display: grid; gap: 14px 56px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 1024px) { .section-head.split-head { grid-template-columns: 1fr 1fr; } }
.split .rowBox { row-gap: 40px; align-items: center; }
@media (min-width: 1024px) { .sticky-col { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 32px); } }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: 22px; background: var(--blue-50); }
.figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

.topic-section { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.topic-section:first-of-type { border-top: 0; padding-top: 0; }
.topic-section h2 { display: flex; align-items: center; gap: 14px; }
.topic-section h2 .t-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; }
.topic-section h2 .t-icon svg { width: 26px; height: 26px; }
.topic-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .topic-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

.jump-nav { position: -webkit-sticky; position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.jump-nav ul { list-style: none; margin: 0 auto; padding: 10px var(--gutter); max-width: 1215px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.jump-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; white-space: nowrap; font-size: .95rem; font-weight: 600; color: var(--charcoal); border-radius: 999px; }
.jump-nav a:hover { background: var(--grey); }
.jump-nav a.is-active { background: var(--blue-50); color: var(--blue); }

.cta-band { background: var(--blue); color: #DCEFFA; padding: var(--section-y) 0; position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(167, 216, 240, .12); left: -90px; bottom: -120px; }
.cta-band::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50% 0 50% 50%; background: rgba(76, 175, 80, .18); right: -40px; top: -60px; -webkit-transform: rotate(-30deg); transform: rotate(-30deg); }
.cta-band .inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- 8. Cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid { gap: 28px; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; -webkit-transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .2s; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--sky); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card h3 a { color: inherit; }
.card h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.card p { color: var(--muted); }
.card .text-link { margin-top: auto; }
.card .icon-tile { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--green-50); color: var(--green-700); }
.card .icon-tile.blue { background: var(--blue-50); color: var(--blue); }
.card .icon-tile svg { width: 28px; height: 28px; }
.card-media { aspect-ratio: 4 / 3; background: var(--blue-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; -webkit-transition: transform .6s var(--ease); transition: transform .6s var(--ease); }
.card:hover .card-media img { -webkit-transform: scale(1.03); transform: scale(1.03); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; } }
.feature-list li { display: flex; gap: 16px; }
.feature-list .f-icon { flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.feature-list .f-icon svg { width: 24px; height: 24px; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); }
.on-dark .feature-list .f-icon { background: rgba(255, 255, 255, .12); color: var(--white); }
.on-dark .feature-list p { color: #DCEFFA; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-700); color: var(--white); font-family: var(--font-heading); font-weight: 600; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dot-list { padding-left: 1.25em; margin-bottom: 1em; }
.dot-list li { margin-bottom: 6px; }
.dot-list li::marker { color: var(--green-700); }

.info-box { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.info-box h3 { font-size: 1.2rem; }
.info-box.tint { background: var(--grey); border-color: transparent; }
.stat-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 1.2em; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { padding: 18px; border-radius: var(--radius-sm); background: var(--blue-50); }
.stat strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--blue); line-height: 1.2; }
.stat span { font-size: .95rem; color: var(--charcoal); }
.source-line { font-size: .9rem; color: var(--muted); }
.source-line a { color: var(--blue); }

.plate-legend { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.plate-legend li { display: flex; gap: 12px; align-items: center; }
.plate-legend .sw { flex: none; width: 22px; height: 22px; border-radius: 6px; }

.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.resource-list li { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.resource-list a { font-weight: 600; }
.resource-list span { display: block; font-size: .92rem; color: var(--muted); }

/* ---------- 9. Notices & disclaimers ---------- */
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--blue-50); border-left: 4px solid var(--blue); }
.note svg { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--blue); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.green { background: var(--green-50); border-color: var(--green-700); }
.note.green svg { color: var(--green-700); }
.note.amber { background: var(--amber-50); border-color: var(--amber-700); }
.note.amber svg { color: var(--amber-700); }
.disclaimer { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: var(--grey); border: 1px solid var(--line); font-size: .98rem; }
.disclaimer svg { width: 28px; height: 28px; flex: none; color: var(--blue); }
.disclaimer h2, .disclaimer h3 { font-size: 1.1rem; margin-bottom: 6px; }
.disclaimer p:last-child { margin-bottom: 0; }
.evidence { padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); margin: 1.6em 0; }
.evidence h2, .evidence h3 { font-size: 1.05rem !important; margin: 0 0 10px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) !important; }
.evidence dl { margin: 0; display: grid; gap: 10px; }
.evidence dt { font-weight: 700; }
.evidence dd { margin: 0; color: var(--muted); }

/* ---------- 10. Learning centre ---------- */
.filter-bar { display: grid; gap: 18px; margin-bottom: 32px; padding: 20px; border-radius: var(--radius); background: var(--grey); }
.search-field { position: relative; max-width: 560px; }
.search-field svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; -webkit-transform: translateY(-50%); transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 52px; padding: 12px 16px 12px 46px; border: 1.5px solid #AEB7C1; border-radius: 999px; background: var(--white); font-size: 1rem; }
.search-field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(11, 94, 140, .2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid #C5CDD5; border-radius: 999px; background: var(--white); color: var(--charcoal); font-size: .98rem; cursor: pointer; -webkit-transition: background .2s, border-color .2s, color .2s; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip .count { font-size: .82rem; opacity: .85; font-variant-numeric: tabular-nums; }
.results-count { margin: 0; font-size: .98rem; color: var(--muted); }
.empty-state { padding: 40px 24px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.article-card[hidden] { display: none !important; }
.article-card .card-media { aspect-ratio: 1200 / 630; }
.article-card h3 { font-size: 1.22rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- 11. Articles ---------- */
.article-hero { padding: clamp(36px, 4.5vw, 72px) 0 28px; background: linear-gradient(180deg, var(--blue-50), var(--white)); }
.article-hero h1 { max-width: 880px; }
.article-hero .lead { max-width: 760px; color: var(--muted); }
.article-dates { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; color: var(--muted); }
.article-dates strong { color: var(--charcoal); font-weight: 600; }
.article-figure { margin: 0; }
.article-figure img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 22px; background: var(--blue-50); }
.prose { max-width: 740px; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--green-700); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 1rem; }
.prose th, .prose td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.toc { padding: 20px 22px; border-radius: var(--radius); background: var(--grey); margin-bottom: 32px; }
.toc h2 { font-size: 1rem !important; margin: 0 0 10px !important; }
.toc ol { margin: 0; padding-left: 1.3em; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.references { margin-top: 2.2em; padding-top: 1.4em; border-top: 2px solid var(--line); }
.references ol { padding-left: 1.4em; font-size: .98rem; }
.references li { margin-bottom: 10px; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-top: 28px; border-radius: var(--radius); background: var(--grey); font-size: .98rem; }
.author-box img { width: 48px; height: 48px; flex: none; }
.author-box p { margin: 0; }
.article-aside { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.article-aside h2 { font-size: 1.2rem; }
.article-aside ul { list-style: none; padding: 0; margin: 0; }
.article-aside li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.article-aside li:last-child { border-bottom: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- 12. Wellness checklist ---------- */
.checklist-card { padding: clamp(20px, 3vw, 36px); border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checklist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.checklist-head h3 { margin: 0; font-size: 1.35rem; }
.progress { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.progress-bar { width: 160px; height: 10px; border-radius: 999px; background: var(--grey); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--green-700); border-radius: 999px; -webkit-transition: width .3s var(--ease); transition: width .3s var(--ease); }
.wc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.wc-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; }
.wc-table th, .wc-table td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.wc-table thead th { font-family: var(--font-heading); font-weight: 500; font-size: .9rem; color: var(--muted); }
.wc-table tbody th { text-align: left; font-weight: 600; padding-right: 12px; min-width: 210px; }
.wc-table input[type="checkbox"] { width: 26px; height: 26px; accent-color: var(--green-700); cursor: pointer; }
.wc-table .custom-habit { width: 100%; min-height: 42px; padding: 8px 12px; border: 1.5px solid #AEB7C1; border-radius: 10px; font: inherit; font-weight: 400; }
.wc-table .custom-habit:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(11, 94, 140, .2); }
.wc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.wc-note { font-size: .92rem; color: var(--muted); margin-top: 14px; }

/* ---------- 13. Forms ---------- */
.form-card { padding: clamp(22px, 4vw, 44px); border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 700; font-size: 1rem; color: var(--charcoal); }
.req { color: var(--error); margin-left: 3px; }
.opt { color: var(--muted); font-weight: 400; font-size: .92rem; margin-left: 4px; }
.hint { font-size: .92rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #8A949E; border-radius: 10px; background: var(--white); color: var(--charcoal); font-size: 1.02rem;
  -webkit-transition: border-color .2s, box-shadow .2s; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 94, 140, .22); }
.error-msg { display: none; font-size: .94rem; font-weight: 700; color: var(--error); }
.field.has-error .error-msg, .consent-wrap.has-error .error-msg { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--blue); cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; -webkit-animation: spin .8s linear infinite; animation: spin .8s linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-arrow { display: none; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; border-left: 4px solid; font-size: 1rem; }
.form-status.is-visible { display: flex; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-status strong { display: block; }
.form-status p { margin: 0; }
.form-status.error { background: var(--error-bg); border-color: var(--error); color: #7A1A12; }
.form-success { text-align: center; padding: 28px 6px; }
.form-success .tick { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; }
.form-success .tick svg { width: 34px; height: 34px; }

.newsletter { padding: clamp(26px, 4vw, 48px); border-radius: 26px; background: var(--green-50); display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .newsletter { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.newsletter h2 { margin-bottom: 8px; }
.newsletter .inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.newsletter .inline-form .field { flex: 1 1 260px; }
.newsletter .inline-form .btn { flex: none; }
.newsletter .form-success { padding: 10px 0; text-align: left; }
.newsletter .form-success .tick { margin: 0 0 12px; width: 56px; height: 56px; }

/* ---------- 14. Consent banner (only shown when analytics is configured) ---------- */
.consent-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; max-width: 620px; margin: 0 auto; padding: 20px 22px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
.consent-banner h2 { font-size: 1.1rem; margin-bottom: 6px; }
.consent-banner p { font-size: .98rem; margin-bottom: 14px; }

/* ---------- Legal & 404 ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.3em; }
.notfound { padding: clamp(60px, 10vw, 130px) 0; text-align: center; }
.notfound img { width: 96px; margin: 0 auto 24px; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- 15. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { -webkit-animation-duration: .01ms !important; animation-duration: .01ms !important; -webkit-transition-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .jump-nav, #button, .cta-band, .filter-bar, .site-footer .footer-main, .consent-banner, .newsletter, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; color: #000; }
  .checklist-card { box-shadow: none; border: 0; padding: 0; }
  .wc-table { min-width: 0; }
  .prose a.ext::after, .references a::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  body.print-checklist main > *:not(#checklist) { display: none !important; }
  body.print-checklist #checklist .section-head p { display: none; }
  body.print-checklist .site-footer { display: none !important; }
}
.prose .disclaimer h2 { font-size: 1.1rem; margin: 0 0 6px; }
.prose .disclaimer { font-size: .98rem; }
.wc-table thead th:first-child { text-align: left; }
.wc-table abbr { text-decoration: none; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.simple-table th, .simple-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.simple-table thead th { font-family: var(--font-heading); font-weight: 500; color: var(--muted); }
