/* =====================================================================
   MediCodeAssist · Care Green design system
   Mobile-first. Tokens → base → layout → components → sections → utilities
   All colour pairs verified with scripts/contrast.py (WCAG AA).
   ===================================================================== */

/* ---------- Fonts (self-hosted variable WOFF2) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour: ink */
  --ink: #0B3B2E;
  --ink-2: #0F4A3A;
  /* Colour: primary (clickable only) */
  --primary: #0F7A3D;
  --primary-hover: #0B6332;
  --primary-soft: #E8F5EC;
  /* Colour: accent */
  --lime: #7AC143;           /* decorative only, never text on light */
  --accent-text: #3F7D16;    /* small labels on white */
  --lime-on-dark: #A6E07A;   /* text/accents on ink */
  /* Neutrals */
  --white: #FFFFFF;
  --tint: #F4FAF6;
  --tint-2: #EAF4EE;
  --border: #D9E7DE;
  --border-input: #6E8A7C;
  --border-hover: #BFD8C8;
  --body: #1F2D27;
  --muted: #4E5F57;
  --muted-on-dark: #C5D9CF;
  /* Status */
  --amber: #B45309;
  --amber-bg: #FFF7ED;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --error-border: #F5C2BC;

  /* Type */
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space (8px scale) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 2.5rem; --s6: 3rem; --s8: 4rem; --s10: 5rem;
  --section-y: 4rem;
  --container: 1240px;
  --gutter: 1.25rem;

  /* Shape */
  --r-card: 18px;
  --r-ctrl: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 59, 46, .06), 0 1px 3px rgba(11, 59, 46, .05);
  --shadow-md: 0 2px 4px rgba(11, 59, 46, .04), 0 8px 24px rgba(11, 59, 46, .08);
  --shadow-lg: 0 4px 8px rgba(11, 59, 46, .04), 0 24px 48px -8px rgba(11, 59, 46, .16);
  --ring: 0 0 0 3px var(--white), 0 0 0 5px var(--primary);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  --header-h: 72px;
}
@media (min-width: 768px) { :root { --section-y: 5.5rem; --gutter: 2rem; } }
@media (min-width: 1200px) { :root { --section-y: 7rem; --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
  color: var(--body); background: var(--white); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.icon { display: inline-block; flex: none; vertical-align: middle; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--s2); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
mark { background: none; color: inherit; }
::selection { background: var(--primary-soft); color: var(--ink); }

.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; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: var(--white); padding: .75rem 1.25rem; border-radius: var(--r-ctrl); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--white); }
main:focus { outline: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 920px; }
.center { text-align: center; }
.section { position: relative; padding-block: var(--section-y); }
.section-tight { padding-top: var(--s4); }
.section-compact { padding-block: var(--s5); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--muted-on-dark); overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: var(--s5); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); }
.section-lead { font-size: var(--fs-lead); color: var(--muted); }
.split { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.1fr; gap: var(--s10); align-items: start; } }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s2); }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--lime); }
.eyebrow-light { color: var(--lime-on-dark); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 62ch; }
.answer { font-size: var(--fs-lead); line-height: 1.6; color: var(--body); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- To-confirm tag ---------- */
.tbc { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; font-family: var(--font-body); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: var(--amber); background: var(--amber-bg); border: 1px dashed var(--amber); border-radius: var(--r-pill); padding: .3rem .55rem; white-space: nowrap; cursor: help; }
.tbc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.section-dark .tbc { background: #FFF7ED; }

/* ---------- Buttons ---------- */
.btn { --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: var(--bh); padding: 0 1.4rem; border-radius: var(--r-pill); border: 2px solid transparent; font-family: var(--font-head); font-weight: 650; font-size: 1rem; letter-spacing: -0.005em; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); white-space: nowrap; }
.btn:focus-visible { border-radius: var(--r-pill); }
.btn-sm { --bh: 44px; padding: 0 1.15rem; font-size: .9375rem; }
.btn-lg { --bh: 54px; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px -6px rgba(15, 122, 61, .55); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(15, 122, 61, .6); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--primary-soft); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
@media (max-width: 599px) { .btn-block-sm { display: flex; width: 100%; } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.btn-row.center { justify-content: center; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary); font-size: var(--fs-xs); font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s4); }
.chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.chips .icon { color: var(--primary); }

/* ---------- Utility bar ---------- */
.utility-bar { display: none; background: var(--ink); color: var(--muted-on-dark); font-size: var(--fs-xs); }
@media (min-width: 1024px) { .utility-bar { display: block; } }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.utility-list { list-style: none; display: flex; gap: var(--s4); }
.utility-list li, .utility-list a, .utility-login { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted-on-dark); text-decoration: none; }
.utility-list a:hover, .utility-login:hover { color: var(--white); }
.utility-login { font-weight: 600; color: var(--lime-on-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t-med), box-shadow var(--t-med); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px -12px rgba(11, 59, 46, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: var(--header-h); }
.brand { text-decoration: none; display: inline-flex; border-radius: 12px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); }
.logo-word b { font-weight: 800; color: var(--primary); }
.logo--dark .logo-word { color: var(--white); }
.logo--dark .logo-word b { color: var(--lime-on-dark); }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--s1); }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.menu-toggle, .menu-close { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer; }
.menu-toggle:hover, .menu-close:hover { background: var(--tint); }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav > ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
  .nav-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .85rem; border: 0; background: none; border-radius: var(--r-pill); font: 550 .975rem/1 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--tint-2); color: var(--ink); }
  .nav-link[aria-current="page"] { color: var(--primary); }
  .mega-toggle .icon { transition: transform var(--t-fast); }
  .mega-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .has-mega { position: relative; }
  .mega { position: absolute; left: 50%; top: calc(100% + 12px); width: min(860px, 90vw); transform: translate(-40%, 8px); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med); }
  .mega.is-open, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-40%, 0); }
  .mega-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); padding: var(--s4); background: var(--white); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); }
  .mega-title { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s2); }
  .mega-col ul { list-style: none; display: grid; gap: .15rem; }
  .mega-col a { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; margin-inline: -.65rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; }
  .mega-col a .icon { color: var(--primary); }
  .mega-col a:hover { background: var(--tint); }
  .mega-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4rem; justify-self: start; padding-top: var(--s2); border-top: 1px solid var(--border); width: 100%; font-weight: 600; text-decoration: none; }
}

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; background: rgba(11, 59, 46, .45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(400px, 100%); background: var(--white); padding: var(--s2) var(--gutter) var(--s4); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s3); animation: drawer-in var(--t-med) var(--ease); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.drawer-label { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s1); }
.drawer-courses, .drawer-links { list-style: none; }
.drawer-courses a, .drawer-links a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--border); }
.drawer-courses a { font-weight: 500; font-size: var(--fs-sm); min-height: 44px; }
.drawer-links { margin-top: var(--s3); }
.drawer-links a { font-family: var(--font-head); font-size: 1.125rem; font-weight: 650; }
body.drawer-open { overflow: hidden; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -12px rgba(11, 59, 46, .25); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 56px; background: var(--white); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.mobile-bar a .icon { color: var(--primary); }
.mobile-bar .mobile-bar-cta { background: var(--primary); color: var(--white); }
.mobile-bar .mobile-bar-cta .icon { color: var(--white); }
body { padding-bottom: 56px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s4) var(--s3); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); }
@media (min-width: 768px) { .card { padding: var(--s4); } }
.card:has(.stretched):hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.card:has(.stretched:focus-visible) { box-shadow: var(--ring); }
.stretched { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { box-shadow: none; }
.card-grid { display: grid; gap: var(--s3); }
@media (min-width: 680px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .course-group .card-grid { grid-template-columns: repeat(4, 1fr); } .course-group .card-grid-single { grid-template-columns: 1fr; } .course-group .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-icon, .feature-icon, .tile-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }

/* Course cards */
.course-group + .course-group { margin-top: var(--s6); }
.course-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem var(--s2); margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--border); }
.course-group-head h3 { margin: 0; font-size: 1.25rem; }
.course-group-head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.course-card { display: flex; flex-direction: column; }
.course-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); margin-bottom: var(--s3); }
.course-card :is(h2, h3, h4) { margin-bottom: .6rem; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.course-card > p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.meta-row { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: auto; padding-top: var(--s2); border-top: 1px dashed var(--border); font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.meta-row li { display: inline-flex; align-items: center; gap: .35rem; }
.meta-row .icon { color: var(--primary); }
.card-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--s2); font-weight: 650; font-size: var(--fs-sm); color: var(--primary); }
.card-more .icon { transition: transform var(--t-fast) var(--ease); }
.card:hover .card-more .icon { transform: translateX(4px); }
.card-grid-single .course-card { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: start; }
.card-grid-single .course-card > * { grid-column: 2; }
.card-grid-single .course-card-top { grid-column: 1; grid-row: 1 / span 5; margin: 0; }
.center-cta { text-align: center; margin-top: var(--s6); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s6) 0 var(--s8); overflow: hidden; isolation: isolate; }
@media (min-width: 960px) { .hero { padding: var(--s10) 0 calc(var(--s10) + var(--s2)); } }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 95% 10%, rgba(122, 193, 67, .20), transparent 60%),
  radial-gradient(55% 60% at 70% 100%, rgba(15, 122, 61, .10), transparent 65%),
  linear-gradient(180deg, var(--white) 0%, var(--tint) 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(11, 59, 46, .10) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%); opacity: .6; }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: var(--s8); } }
.hero h1 { margin-bottom: var(--s3); }
.hero .hl { position: relative; color: var(--primary); white-space: nowrap; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px; background: var(--lime); opacity: .55; z-index: -1; }
.hero .lead { margin-bottom: var(--s4); }

/* Hero visual: clinical note → codes */
.hero-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.code-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: var(--s3); }
@media (min-width: 600px) { .code-card { padding: var(--s4); } }
.code-card-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.dot-row { display: inline-flex; gap: 6px; }
.dot-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--tint-2); border: 1px solid var(--border); }
.dot-row i:first-child { background: var(--lime); border-color: var(--lime); }
.code-card-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.note-text { font-size: var(--fs-sm); line-height: 1.7; color: var(--body); background: var(--tint); border-radius: 14px; padding: var(--s2) 1.1rem; margin: 0; }
.note-text mark { background: linear-gradient(transparent 58%, rgba(122, 193, 67, .45) 58%); font-weight: 600; color: var(--ink); }
.note-text mark.m2 { background: linear-gradient(transparent 58%, rgba(15, 122, 61, .2) 58%); }
.code-arrow { display: flex; justify-content: center; color: var(--primary); padding: var(--s2) 0; }
.code-arrow svg { animation: pulse-draw 2.6s var(--ease) infinite; stroke-dasharray: 160; }
@keyframes pulse-draw { 0% { stroke-dashoffset: 160; } 45%, 100% { stroke-dashoffset: 0; } }
.code-list { list-style: none; display: grid; gap: .6rem; }
.code-list li { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: .9rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 14px; font-size: var(--fs-sm); line-height: 1.4; color: var(--body); background: var(--white); }
.code { display: inline-grid; place-items: center; height: 34px; border-radius: 9px; background: var(--primary); color: var(--white); font: 700 .875rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
.code-2 { background: var(--ink-2); }
.code-3 { background: var(--primary-soft); color: var(--primary); }
.code-card-foot { margin: var(--s2) 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.float-badge { position: absolute; left: -12px; bottom: -22px; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 14px; background: var(--ink); color: var(--white); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-lg); }
.float-badge .icon { color: var(--lime-on-dark); }
@media (min-width: 1200px) { .float-badge { left: -40px; } }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; gap: var(--s2); }
.feature-list li { display: flex; gap: var(--s3); padding: var(--s3); border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); }
.feature-list h3 { margin-bottom: .35rem; }
.feature-list p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Tiles ---------- */
.tile-grid { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 680px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: var(--s4) var(--s3); border-radius: var(--r-card); background: var(--tint); border: 1px solid transparent; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: var(--s3); top: 0; width: 40px; height: 4px; border-radius: 0 0 4px 4px; background: var(--lime); }
.tile-icon { background: var(--white); margin-bottom: var(--s3); box-shadow: var(--shadow-sm); }
.tile p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Trainer ---------- */
.trainer { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .trainer { grid-template-columns: .8fr 1.2fr; gap: var(--s10); } }
.trainer-photo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.trainer-photo::before { content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: 28px; background: var(--primary-soft); z-index: 0; }
.trainer-photo img, .photo-placeholder { position: relative; z-index: 1; border-radius: 24px; aspect-ratio: 6 / 7; width: 100%; object-fit: cover; }
.photo-placeholder { display: grid; place-content: center; justify-items: center; gap: var(--s2); background: linear-gradient(155deg, var(--ink-2), var(--ink)); }
.photo-placeholder .initials { font: 700 4.5rem/1 var(--font-head); letter-spacing: -0.04em; color: var(--lime-on-dark); }
.trainer-role { font-weight: 600; color: var(--accent-text); }
.cred-list { list-style: none; display: grid; gap: .75rem; margin: var(--s4) 0; }
.cred-list li { display: flex; align-items: center; gap: var(--s2); padding: .85rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: 14px; font-size: var(--fs-sm); line-height: 1.45; }
.cred-big { font: 800 2rem/1 var(--font-head); color: var(--primary); min-width: 88px; text-align: center; }
.cred-short { display: inline-grid; place-items: center; min-width: 88px; padding: .45rem .5rem; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: 700 .8125rem/1.1 var(--font-head); text-align: center; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s3); }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: var(--s4) var(--s3) var(--s3); border-top: 2px solid var(--border); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -2px; left: 0; padding-top: var(--s2); border-top: 2px solid var(--primary); font: 800 .875rem/1 var(--font-head); color: var(--primary); letter-spacing: .04em; width: 48px; }
.steps li { padding-left: 0; }
.steps h3 { margin-top: var(--s2); margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Dark band ---------- */
.motif-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(50% 80% at 100% 0%, rgba(122, 193, 67, .16), transparent 60%),
  radial-gradient(40% 60% at 0% 100%, rgba(15, 122, 61, .35), transparent 60%); }
.split-dark { position: relative; }
.split-dark .split-intro p:not(.eyebrow) { color: var(--muted-on-dark); font-size: var(--fs-lead); }
.split-dark .btn-light { margin-top: var(--s2); }
.dark-list { list-style: none; display: grid; gap: var(--s2); }
@media (min-width: 640px) { .dark-list { grid-template-columns: repeat(2, 1fr); } }
.dark-list li { padding: var(--s3); border-radius: var(--r-card); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.dark-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(166, 224, 122, .14); color: var(--lime-on-dark); margin-bottom: var(--s2); }
.dark-list h3 { margin-bottom: .35rem; }
.dark-list p { font-size: var(--fs-sm); color: var(--muted-on-dark); }

/* ---------- Comparison table ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--r-card); overflow-x: auto; background: var(--white); box-shadow: var(--shadow-sm); }
.compare { min-width: 560px; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 1rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--tint); font: 700 1rem/1.2 var(--font-head); color: var(--ink); }
.compare thead th .icon { color: var(--primary); margin-right: .35rem; vertical-align: -4px; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 32%; }
.compare .yes { color: var(--primary); margin-right: .25rem; vertical-align: -3px; }
.ask { font-weight: 600; }

/* ---------- Placeholder band ---------- */
.placeholder-band { padding: var(--s3); border: 1px dashed var(--amber); border-radius: var(--r-card); background: var(--white); color: var(--muted); text-align: center; }

/* ---------- Posts ---------- */
.post-card { display: flex; flex-direction: column; }
.post-cat { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.post-card > p:not(.post-cat):not(.post-meta) { color: var(--muted); font-size: var(--fs-sm); }
.post-meta { margin-top: auto; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--s4); }
@media (min-width: 960px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: var(--s10); } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-list { display: grid; gap: .75rem; }
.faq { background: var(--white); border: 1px solid var(--border); border-radius: 16px; transition: box-shadow var(--t-med), border-color var(--t-med); }
.faq[open] { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; padding: 1rem 1.25rem; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.0625rem; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform var(--t-med) var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* ---------- CTA + forms ---------- */
.cta-section { background: linear-gradient(180deg, var(--white), var(--tint)); }
.cta-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: .85fr 1.15fr; gap: var(--s8); } }
.contact-points { list-style: none; display: grid; gap: var(--s2); margin-top: var(--s4); }
.contact-points li { display: flex; gap: var(--s2); align-items: flex-start; }
.contact-points li > span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.contact-points li div { display: flex; flex-direction: column; font-size: var(--fs-sm); color: var(--muted); }
.contact-points strong { color: var(--ink); font-size: 1rem; }
.contact-points a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1rem; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: var(--s4) var(--s3); box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .form-card { padding: var(--s5); } }
.form-title { font-size: 1.375rem; margin-bottom: var(--s3); }
.form-grid { display: grid; gap: var(--s3) var(--s3); margin-bottom: var(--s4); }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); padding: 0; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem; border: 1.5px solid var(--border-input); border-radius: var(--r-ctrl); background: var(--white); color: var(--body); font: 400 1rem/1.4 var(--font-body); transition: border-color var(--t-fast), box-shadow var(--t-fast); appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B3B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 122, 61, .18); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--error); }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--border-input); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 550; color: var(--body); transition: all var(--t-fast); }
.radio input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.radio input:focus-visible + span { box-shadow: var(--ring); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); font-weight: 400 !important; color: var(--muted) !important; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.form-note { display: flex; align-items: center; gap: .45rem; margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); }
.form-note .icon { color: var(--primary); }
.form-alert { margin-bottom: var(--s3); padding: var(--s2) 1.1rem; border-radius: var(--r-ctrl); background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); font-size: var(--fs-sm); }
.form-alert ul { margin: .4rem 0 0 1.1rem; }
.form-alert a { color: var(--error); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: var(--s5) 0 var(--s4); background: linear-gradient(180deg, var(--tint), var(--white)); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s3); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--border-input); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Status pages ---------- */
.status-page { min-height: 60vh; display: grid; align-items: center; }
.status-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin: 0 auto var(--s3); }
.status-page .lead { margin-inline: auto; }
.link-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
.link-cards a { display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1rem; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--ink); background: var(--white); }
.link-cards a .icon { color: var(--primary); }
.link-cards a:hover { border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: var(--s8) 0 var(--s3); font-size: var(--fs-sm); }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s6); } }
.footer-brand a { display: inline-flex; margin-bottom: var(--s2); }
.footer-tagline { font: 650 1.125rem/1.35 var(--font-head); color: var(--white); }
.footer-entity { font-size: var(--fs-xs); line-height: 1.6; max-width: 46ch; }
.footer-title { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-on-dark); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer-nap { line-height: 1.8; }
.footer-nap strong { color: var(--white); }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.footer-small { margin-top: var(--s2); font-size: var(--fs-xs); }
.footer-notice { margin: var(--s6) 0 var(--s3); padding: var(--s3); border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (JS adds .is-visible; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .code-arrow svg { stroke-dasharray: none; }
}

/* ---------- Print ---------- */
@media print {
  .utility-bar, .site-header, .mobile-bar, .drawer, .form-card, .site-footer .footer-grid > div:not(.footer-brand) { display: none !important; }
  body { padding: 0; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 599px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
  .mobile-bar a { gap: .35rem; font-size: .875rem; }
}

/* =====================================================================
   Inner pages
   ===================================================================== */
.muted { color: var(--muted); }
.small { font-size: var(--fs-xs); }
.mt { margin-top: var(--s3); }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }
.narrow-text { max-width: 820px; }
.page-hero h1 { margin-bottom: var(--s2); }
.page-hero .answer { max-width: 70ch; }
.table-note { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); max-width: 80ch; }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--white); border-color: var(--white); }
.btn-danger { background: var(--white); color: var(--error); border-color: var(--error-border); }
.btn-danger:hover { background: var(--error-bg); color: var(--error); border-color: var(--error); }

/* Course hero + at-a-glance */
.course-hero { padding-bottom: var(--s6); }
.course-hero-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1000px) { .course-hero-grid { grid-template-columns: 1.35fr .9fr; gap: var(--s8); } }
.course-hero .btn-row { margin-top: var(--s3); }
.glance { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: var(--s3); box-shadow: var(--shadow-md); }
@media (min-width: 600px) { .glance { padding: var(--s4); } }
.glance-title { display: flex; align-items: center; gap: .5rem; font-size: 1.125rem; margin-bottom: var(--s2); }
.glance-title .icon { color: var(--primary); }
.glance dl { margin: 0; display: grid; }
.glance dl > div { display: grid; grid-template-columns: 112px 1fr; gap: var(--s2); padding: .7rem 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.glance dt { font-weight: 600; color: var(--ink); }
.glance dd { margin: 0; color: var(--body); }

/* Two-column content */
.content-grid { display: grid; gap: var(--s6); }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s8); } .side-col { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.prose-col h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-top: var(--s6); }
.prose-col h2:first-child { margin-top: 0; }
.side-col { display: grid; gap: var(--s3); }
.side-card { background: var(--tint); border-radius: var(--r-card); padding: var(--s3); }
.side-title { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s2); }
.check-list { list-style: none; display: grid; gap: .75rem; margin-bottom: var(--s3); }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { color: var(--primary); margin-top: 3px; }
.syllabus { list-style: none; display: grid; gap: .6rem; }
.syllabus li { display: flex; gap: var(--s2); align-items: center; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.syl-n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: 700 .8125rem/1 var(--font-head); }
.related-list { list-style: none; display: grid; gap: .25rem; margin-bottom: var(--s2); }
.related-list a { display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .4rem .75rem; margin-inline: -.75rem; border-radius: 10px; color: var(--ink); font-weight: 550; font-size: var(--fs-sm); text-decoration: none; }
.related-list a span { flex: 1; }
.related-list a .icon { color: var(--primary); }
.related-list a:hover { background: var(--white); }
.related-wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .5rem var(--s3); }
.related-wide a { margin: 0; border: 1px solid var(--border); background: var(--white); }

/* Trainer box */
.trainer-box { display: flex; gap: var(--s2); align-items: center; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-sm); }
.trainer-box-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(155deg, var(--ink-2), var(--ink)); color: var(--lime-on-dark); font: 700 1.4rem/1 var(--font-head); }
.trainer-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.trainer-box p { margin: 0; }
.trainer-box-label { font: 700 var(--fs-xs)/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.trainer-box-name { font: 700 1.125rem/1.3 var(--font-head); margin: .2rem 0 !important; }
.trainer-box-name a { color: var(--ink); }
.trainer-box-meta { font-size: var(--fs-xs); color: var(--muted); }
.article-body .trainer-box { margin-top: var(--s6); }

/* CTA band */
.cta-band { padding-block: var(--s6); }
.cta-band-inner { position: relative; overflow: hidden; display: grid; gap: var(--s3); align-items: center; padding: var(--s5) var(--s3); border-radius: 24px; background: radial-gradient(60% 120% at 100% 0%, rgba(122, 193, 67, .25), transparent 60%), var(--ink); color: var(--muted-on-dark); }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1.2fr auto; padding: var(--s6) var(--s8); } }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin-bottom: .5rem; }
.cta-band p { margin: 0; font-size: var(--fs-lead); }

/* Filters */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--tint); }
.filters-actions { grid-column: 1 / -1; }
@media (min-width: 1100px) { .filters-actions { grid-column: auto; } }
@media (min-width: 1100px) { .filters { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.filters select { width: 100%; min-height: 48px; padding: .6rem 2.5rem .6rem .9rem; border: 1.5px solid var(--border-input); border-radius: var(--r-ctrl); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B3B2E' 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 .9rem center; font: 400 1rem/1.3 var(--font-body); color: var(--body); appearance: none; }
.filters-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.js .filters [data-filters-submit] { display: none; }
.filter-count { margin: var(--s3) 0 var(--s2); font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.catalogue-item[hidden] { display: none; }
.catalogue-item { display: flex; }
.catalogue-item > .card { flex: 1; }
.empty-state { padding: var(--s4); text-align: center; border: 1px dashed var(--border-input); border-radius: var(--r-card); }
.pill-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s3); }
.pill-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: var(--fs-sm); font-weight: 550; text-decoration: none; }
.pill-nav a:hover, .pill-nav a[aria-current] { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.faq-group-title { margin-top: var(--s6); font-size: 1.5rem; }
.faq-group-title:first-child { margin-top: 0; }
.steps-2 { grid-template-columns: 1fr !important; }
@media (min-width: 700px) { .steps-2 { grid-template-columns: repeat(2, 1fr) !important; } }
.facts tbody th { width: 34%; }

/* Articles */
.byline { font-size: var(--fs-sm); color: var(--muted); }
.byline a { font-weight: 600; }
.article-body { padding-bottom: var(--section-y); }
.toc { margin: 0 0 var(--s5); padding: var(--s3); border-radius: var(--r-card); background: var(--tint); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: var(--fs-sm); }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--s2); }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-top: var(--s6); margin-bottom: var(--s2); }
.prose h3 { margin-top: var(--s4); }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--primary); }
.prose table { display: block; overflow-x: auto; font-size: var(--fs-sm); border: 1px solid var(--border); border-radius: 14px; }
.prose th, .prose td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; min-width: 120px; }
.prose thead th { background: var(--tint); color: var(--ink); font-family: var(--font-head); }
.prose tr:last-child td { border-bottom: 0; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 0; padding: var(--s2) var(--s3); border-left: 4px solid var(--lime); background: var(--tint); border-radius: 0 12px 12px 0; }
.prose > p:first-child { font-size: var(--fs-lead); }

@media (min-width: 1100px) { .tile-grid-3 { grid-template-columns: repeat(3, 1fr); } }
