
/* Layout: full-width colour bands, each with one shared 1240px inner container; split text/photo hero; sage reserved for buttons, small accents and the training band. */
:root {
  /* Colour */
  --bg: #faf6ef;
  --surface: #fffdf9;
  --tint: #f2ede3;
  --sage-band: #e8ece2;
  --line: #e2dbcd;
  --ink: #26231f;
  --muted: #5a544b;
  --sage: #56654d;
  --sage-strong: #44513d;
  --sage-text: #4b5943;
  --sage-soft: #dfe6d6;
  --dark: #26231f;
  --on-dark: #f6f1e7;
  --on-dark-muted: #d2cbbe;
  --sage-on-dark: #bccaae;

  /* Type */
  --font: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.25rem, 1.35rem + 3.7vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-small: 0.875rem;

  /* Spacing scale */
  --s0: 4px; --s1: 8px; --s1-5: 12px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section-y: clamp(48px, 7.5vw, 96px);   /* 48 mobile -> 96 desktop */
  --hero-top: clamp(40px, 5vw, 64px);
  --intro-gap: var(--s5);                  /* section intro -> its content */
  --grid-gap: var(--s4);                   /* cards and columns in a row */
  --split-gap: clamp(32px, 6vw, 88px);     /* two-column sections */
  --gutter: 20px;
  --container: 1240px;
  --measure: 65ch;

  /* Shape */
  --radius: 12px;
  --radius-control: 10px;
  --shadow: 0 1px 2px rgb(38 35 31 / 0.05), 0 8px 24px rgb(38 35 31 / 0.06);
  --header-h: 84px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }
@media (min-width: 1440px) { :root { --gutter: 64px; } }
@media (max-width: 599px) { :root { --intro-gap: var(--s4); --grid-gap: var(--s3); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--s2)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg);
}
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 1rem; line-height: 1.4; }
p { max-width: var(--measure); }
a { color: var(--sage-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); letter-spacing: 0.01em; }
.lede { color: var(--muted); font-size: var(--fs-lede); }
.muted { color: var(--muted); }

/* Bands */
.band { padding-block: var(--section-y); }
.band--surface { background: var(--surface); }
.band--tint { background: var(--tint); }
.band--sage { background: var(--sage-band); }
.band--dark { background: var(--dark); color: var(--on-dark); }

/* Intro pattern: eyebrow + heading (12px), then supporting text (24px), then content (--intro-gap) */
.heading { display: flex; flex-direction: column; gap: var(--s1-5); margin: 0; }
.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--intro-gap); max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s1); }
.prose { display: flex; flex-direction: column; gap: var(--s2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 0 var(--s3);
  border-radius: var(--radius-control); border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font); letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-strong); color: #fff; }
.btn-primary:active { background: #3a4534; }
.btn-secondary { background: transparent; color: var(--ink); border-color: #c9c0b0; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-secondary:active { background: var(--tint); }
.btn-sm { min-height: 44px; padding: 0 var(--s2); font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgb(250 246 239 / 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.brand small { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: var(--s4); }
.site-nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.site-nav ul a:hover { color: var(--sage-text); }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: var(--s1);
    min-height: 44px; padding: 0 var(--s2);
    background: transparent; color: var(--ink); border: 1px solid #c9c0b0; border-radius: var(--radius-control);
    font: 600 0.9375rem/1 var(--font); cursor: pointer;
  }
  .menu-toggle:hover { border-color: var(--ink); }
  .menu-icon { width: 16px; height: 10px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
  .menu-icon::before { top: 0; } .menu-icon::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { bottom: 4px; transform: rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s2);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: var(--s1) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--s3) max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: flex; width: 100%; min-height: 48px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { width: 100%; }
}

/* Hero */
.hero { padding-block: var(--hero-top) var(--section-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--split-gap); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.hero-copy .lede { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.hero-creds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1-5) var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); margin-top: var(--s1); }
.hero-creds ul { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.hero-creds li { font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); background: var(--sage-soft); border-radius: 6px; padding: var(--s0) var(--s1-5); }
.hero-creds span { font-size: var(--fs-small); color: var(--muted); }
.hero-photo { margin: 0; min-width: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 50%;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--tint);
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) { .hero-photo img { aspect-ratio: 4 / 3; } .hero-actions .btn { flex: 1 1 auto; } }

/* Who we help */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--split-gap); align-items: start; }
.split > * { min-width: 0; }
.fits { list-style: none; padding: 0; margin: 0; display: grid; }
.fits li { padding-block: var(--s3); border-top: 1px solid var(--line); display: grid; gap: var(--s0); }
.fits li:last-child { border-bottom: 1px solid var(--line); }
.fits strong { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
.fits span { color: var(--muted); }
.industries { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.chip { border: 1px solid var(--line); background: var(--bg); padding: var(--s0) var(--s1-5); border-radius: 999px; font-size: var(--fs-small); font-weight: 500; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s5); } }

/* Services accordion */
.svc-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.svc-tools p { color: var(--muted); font-size: var(--fs-small); }
.services { border-top: 1px solid var(--ink); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: var(--s1) var(--s4); align-items: center;
  padding-block: var(--s3); min-height: 44px;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary:hover .svc-name { color: var(--sage-text); }
.svc-name { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
.svc-trigger { color: var(--muted); line-height: 1.5; }
.svc-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #c9c0b0; position: relative; justify-self: end;
  transition: background-color .2s, border-color .2s;
}
.svc-icon::before, .svc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform .2s;
}
.svc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc summary:hover .svc-icon { border-color: var(--sage); }
.svc[open] .svc-icon { background: var(--sage); border-color: var(--sage); }
.svc[open] .svc-icon::before, .svc[open] .svc-icon::after { background: #fff; }
.svc[open] .svc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .svc-icon, .svc-icon::before, .svc-icon::after { transition: none; } }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: var(--s4); padding-bottom: var(--s5); }
.svc-body > .case { grid-column: 2 / -1; }
.svc-body > * { min-width: 0; }
.svc-label { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); margin-bottom: var(--s2); }
.svc-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s1); }
.svc-body li { padding-left: var(--s3); position: relative; }
.svc-body li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s2); }
.case > .svc-label { margin-bottom: 0; }
.case dl { margin: 0; display: grid; gap: var(--s2); }
.case dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.case dd { margin: var(--s0) 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .svc summary { grid-template-columns: minmax(0, 1fr) 44px; gap: var(--s1) var(--s2); }
  .svc-trigger { grid-column: 1; grid-row: 2; font-size: 0.9375rem; }
  .svc-icon { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .svc-body { grid-template-columns: 1fr; gap: var(--s3); padding-bottom: var(--s4); }
  .svc-body > .case { grid-column: auto; }
}
.note { color: var(--muted); font-size: var(--fs-small); margin-top: var(--s2); }

/* Training */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin-bottom: var(--s6); }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s1); }
.offer .kicker { font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); }
.offer p { color: var(--muted); }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; margin-bottom: var(--s5); } .offer { padding: var(--s3); } }

.topics-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s3); margin-bottom: var(--s3); }
.topics-head p { color: var(--muted); max-width: 52ch; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--grid-gap); }
.topic-group { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.topic-group h4 { padding-bottom: var(--s1); border-bottom: 2px solid var(--sage); }
.topic-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1-5); }
.topic-group li { font-weight: 500; line-height: 1.45; }
.badge {
  display: inline-block; margin-left: var(--s1); vertical-align: 1px;
  font-size: 0.75rem; font-weight: 600; color: var(--sage-text);
  background: var(--surface); border: 1px solid var(--sage); border-radius: 999px; padding: 0 var(--s1); white-space: nowrap;
}
@media (max-width: 900px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } }

/* Cross-border */
.compare-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); }
.compare td:first-child { font-weight: 600; width: 24%; }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--ink); }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--grid-gap); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: var(--s1); padding-top: var(--s2); border-top: 2px solid var(--sage); }
.steps li::before { content: "Step " counter(step); font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: var(--s4); } }

/* About */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--grid-gap); align-content: start; }
.value { display: flex; flex-direction: column; gap: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--line); }
.value p { color: var(--muted); }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--split-gap); align-items: center; }
.band--dark h2 { color: var(--on-dark); }
.band--dark .eyebrow { color: var(--sage-on-dark); }
.band--dark .lede { color: var(--on-dark-muted); }
.band--dark :focus-visible { outline-color: var(--sage-on-dark); }
.contact-card { border: 1px solid rgb(246 241 231 / 0.22); border-radius: var(--radius); padding: var(--s4); display: grid; gap: var(--s3); min-width: 0; }
.contact-card .label { font-size: var(--fs-small); font-weight: 600; color: var(--sage-on-dark); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.email { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); font-weight: 600; color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.email:hover { color: var(--on-dark); text-decoration: underline; }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: rgb(246 241 231 / 0.45); }
.btn-on-dark:hover { border-color: var(--on-dark); background: rgb(246 241 231 / 0.08); }
.btn-on-dark:active { background: rgb(246 241 231 / 0.14); }
.serving { color: var(--on-dark-muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s5); } .contact-card { padding: var(--s3); } }

/* Service detail column: included list, then purpose */
.svc-detail { display: flex; flex-direction: column; gap: var(--s4); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--grid-gap); }
.faq > div { display: flex; flex-direction: column; gap: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--line); }
.faq dt { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
.faq dd { color: var(--muted); max-width: var(--measure); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: var(--fs-small); }
/* @extra:start */
/* ---------- Forms ---------- */
.signup { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field label { font-size: 0.9375rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="email"], .field input[type="text"], .field select {
  width: 100%; min-height: 48px; padding: 0 var(--s2);
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid #b9b0a0; border-radius: var(--radius-control);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s5); }
.field input:hover, .field select:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field input[aria-invalid="true"] { border-color: #9b2c1f; }
.field-error { color: #9b2c1f; font-size: var(--fs-small); font-weight: 500; }
.field--check { flex-direction: row; align-items: flex-start; gap: var(--s1-5); }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--sage); }
.field--check label { font-weight: 400; font-size: 0.9375rem; color: var(--ink); }
.consent-note { font-size: var(--fs-small); color: var(--muted); }
.signup .btn { align-self: flex-start; }
.form-status:empty { display: none; }
.form-status { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s2); border-radius: var(--radius-control); background: var(--tint); }
.form-status--success { background: var(--sage-soft); }
.form-status--error { background: #f6e3df; color: #6e1f15; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Resources library ---------- */
.band-hero { padding-bottom: var(--section-y); }
.kicker { font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); }
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--split-gap);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px); margin-bottom: var(--grid-gap);
}
.featured-copy, .featured-inside { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.featured-copy h2 { font-size: var(--fs-h2); }
.featured-inside h3 { font-size: 1rem; }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.res-card { display: flex; flex-direction: column; gap: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); min-width: 0; }
.res-card h2 { font-size: var(--fs-h3); }
.res-card > p { color: var(--muted); }
.res-card .res-actions { margin-top: auto; padding-top: var(--s1); }
.res-meta { display: grid; gap: var(--s1); font-size: var(--fs-small); }
.res-meta div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s1); }
.res-meta dt { font-weight: 600; }
.res-meta dd { color: var(--muted); }
.res-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.preview { border-top: 1px solid var(--line); padding-top: var(--s2); }
.preview summary { cursor: pointer; font-weight: 600; color: var(--sage-text); min-height: 44px; display: flex; align-items: center; }
.preview summary:hover { color: var(--sage-strong); }
.preview[open] summary { margin-bottom: var(--s1); }
.preview blockquote { margin: 0; padding-left: var(--s2); border-left: 2px solid var(--sage); }
.small-note { font-size: var(--fs-small); color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.check-list li { position: relative; padding-left: var(--s3); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.question-list { margin: 0; padding-left: var(--s3); display: grid; gap: var(--s1); }
.nl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.nl-panel > div { display: flex; flex-direction: column; gap: var(--s1); }
.unavailable-title { font-weight: 600; }
.tailored { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.tailored h2 { font-size: var(--fs-h2); }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; gap: var(--s4); }
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .res-card, .nl-panel { padding: var(--s3); } }

/* Home: resources teaser */
.res-teaser { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--grid-gap); }
.res-teaser .res-card { background: var(--surface); }
.res-teaser-side { display: grid; gap: var(--grid-gap); }
@media (max-width: 900px) { .res-teaser { grid-template-columns: 1fr; } }

/* ---------- Footer with signup ---------- */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--split-gap); padding-block: var(--s6) var(--s5); }
.footer-about { display: flex; flex-direction: column; gap: var(--s1); }
.footer-name { color: var(--on-dark); font-weight: 600; font-size: 1rem; }
.footer-links { list-style: none; margin: var(--s1) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--sage-on-dark); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-signup { display: flex; flex-direction: column; gap: var(--s1); }
.footer-title { color: var(--on-dark); font-size: 1.125rem; }
.signup--compact { gap: var(--s2); margin-top: var(--s1); }
.signup--compact label { color: var(--on-dark); }
.inline-field { display: flex; gap: var(--s1); }
.inline-field input { flex: 1 1 auto; min-width: 0; }
.signup--compact .consent-note { color: var(--on-dark-muted); }
.signup--compact .field-error { color: #f3b8ad; }
.signup--compact .form-status { background: rgb(246 241 231 / 0.1); color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding-block: var(--s3); border-top: 1px solid rgb(246 241 231 / 0.14); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s5); } }
@media (max-width: 420px) { .inline-field { flex-direction: column; } .inline-field .btn { width: 100%; } }

/* ---------- Resource documents ---------- */
.doc-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: var(--hero-top) var(--s5); }
.doc-head-inner { display: flex; flex-direction: column; gap: var(--s3); }
.doc-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); max-width: 960px; }
.doc-meta div { display: flex; flex-direction: column; gap: var(--s0); padding-top: var(--s1-5); border-top: 1px solid var(--line); }
.doc-meta dt { font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); }
.doc-meta dd { font-size: 0.9375rem; }
.doc-print-hint { font-size: var(--fs-small); color: var(--muted); }
.doc-body { display: flex; flex-direction: column; gap: var(--s6); padding-block: var(--s5) var(--section-y); }
.doc-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); max-width: 640px; }
.toc-title { font-weight: 600; margin-bottom: var(--s1); }
.doc-toc ol { margin: 0; padding-left: var(--s3); display: grid; gap: var(--s0); }
.doc-toc a { display: inline-block; padding-block: var(--s0); }
.doc-section { display: flex; flex-direction: column; gap: var(--s3); max-width: 960px; }
.doc-section > p, .doc-section > ul { max-width: var(--measure); }
.doc-section h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.doc-section h3 { font-size: 1.0625rem; }
.table-wrap { overflow-x: auto; }
.worksheet, .plan { width: 100%; border-collapse: collapse; min-width: 600px; background: var(--surface); font-size: 0.9375rem; }
.worksheet caption, .plan caption { text-align: left; font-weight: 600; padding-bottom: var(--s1); }
.worksheet th, .worksheet td, .plan th, .plan td { border: 1px solid #cfc6b6; padding: var(--s1-5); text-align: left; vertical-align: top; }
.worksheet thead th, .plan thead th { background: var(--sage-soft); font-weight: 600; }
.worksheet tbody th { font-weight: 600; background: var(--tint); }
.th-note { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.worksheet tbody td { height: 64px; }
.worksheet.tall tbody td { height: 120px; }
.worksheet tr.example td { height: auto; color: var(--muted); font-style: normal; background: var(--bg); }
.worksheet td.box-cell { text-align: center; width: 72px; }
.box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; }
.write-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); max-width: 760px; }
.write-list li span { display: block; font-weight: 500; }
.write-list li::after { content: ""; display: block; height: 40px; border-bottom: 1px solid #b9b0a0; }
.form-lines { display: grid; gap: var(--s1-5); max-width: 760px; margin: 0; }
.form-lines div { display: grid; grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr); gap: var(--s2); align-items: end; }
.form-lines dt { font-weight: 500; }
.form-lines dd { margin: 0; min-height: 36px; border-bottom: 1px solid #b9b0a0; }
@media (max-width: 600px) { .form-lines div { grid-template-columns: 1fr; gap: var(--s0); } }
.tip { background: var(--sage-band); border-radius: var(--radius); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1-5); max-width: 760px; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--grid-gap); }
.steps-list li { counter-increment: s; display: flex; flex-direction: column; gap: var(--s1); padding-top: var(--s2); border-top: 2px solid var(--sage); }
.steps-list li::before { content: "Step " counter(s); font-size: var(--fs-small); font-weight: 600; color: var(--sage-text); }
.steps-list p { color: var(--muted); }
.avoid { font-size: 0.9375rem; }
@media (max-width: 700px) { .steps-list { grid-template-columns: 1fr; } }
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--grid-gap); }
.example-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.example-card blockquote { margin: 0; padding-left: var(--s2); border-left: 2px solid var(--sage); }
.check-list.boxes li { padding-left: var(--s4); }
.check-list.boxes li::before { width: 16px; height: 16px; top: 0.25em; border-radius: 3px; background: transparent; border: 1.5px solid var(--ink); }
.doc-note { border-top: 1px solid var(--line); padding-top: var(--s3); max-width: 760px; font-size: 0.9375rem; color: var(--muted); }
.doc-note strong { color: var(--ink); }

/* Health check */
.legend { margin: 0; padding-left: var(--s3); display: grid; gap: var(--s0); }
.hc-form { display: flex; flex-direction: column; gap: var(--s5); max-width: 960px; }
.hc-area { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.hc-area h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.hc-item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: var(--s2) var(--s3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: center; min-width: 0; }
.hc-q { font-weight: 500; line-height: 1.5; }
.hc-options { display: flex; flex-wrap: wrap; gap: var(--s1); }
.hc-options label { position: relative; display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 0 var(--s2); border: 1px solid #c9c0b0; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; background: var(--bg); }
.hc-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--sage); }
.hc-options label:has(input:checked) { border-color: var(--sage); background: var(--sage-soft); }
.hc-options label:has(input:focus-visible) { outline: 3px solid var(--sage); outline-offset: 2px; }
.hc-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hc-results { background: var(--sage-band); border-radius: var(--radius); padding: var(--s4); }
.hc-results:focus { outline: none; }
.hc-step-group { display: flex; flex-direction: column; gap: var(--s1-5); }
.hc-step-group + .hc-step-group { margin-top: var(--s3); }
#hc-steps .badge { margin: 0 var(--s1) 0 0; }
@media (max-width: 760px) { .hc-item { grid-template-columns: 1fr; } }

@media (max-width: 760px) { .doc-meta { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  :root { --bg: #fff; --surface: #fff; --tint: #fff; --sage-band: #fff; --sage-soft: #eef1ea; --line: #bbb; --muted: #333; --ink: #000; }
  html, body { background: #fff !important; color: #000; font-size: 10.5pt; }
  body::before, .site-header, .site-footer, .no-print, .doc-toc, .hc-actions, .res-actions, .signup, .menu-toggle { display: none !important; }
  .band, .doc-head, .doc-body { padding-block: 0 !important; }
  .doc-head { border: 0; margin-bottom: 8mm; }
  .doc-body { gap: 8mm; }
  .container { max-width: none; padding: 0 !important; }
  .tip, .example-card, .hc-item, .steps-list li, .form-lines div, tr, .write-list li, .doc-meta { break-inside: avoid; }
  table { break-inside: auto; }
  h2, h3 { break-after: avoid; }
  .doc-section h2 { font-size: 15pt; }
  .tip, .example-card, .hc-results { border: 1px solid #bbb; box-shadow: none; }
  .table-wrap { overflow: visible; }
  .worksheet, .plan { min-width: 0; }
  .doc-meta { grid-template-columns: repeat(3, 1fr); }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .hc-item { grid-template-columns: 1fr auto; padding: 2mm 3mm; }
  .hc-options label { min-height: 0; padding: 1mm 2mm; border-color: #999; }
  .hc-results[hidden] { display: none !important; }
  a { color: #000; text-decoration: none; }
  .doc-note { color: #333; }
}
/* @extra:end */

/* Palette remapped to the Wix teal design */
:root {
  --bg: #f3f6f5; --surface: #ffffff; --tint: #e8ebeb; --sage-band: #e2efee; --line: #d6dfdd;
  --ink: #15232a; --muted: #5a6b70; --sage: #0d5f63; --sage-strong: #0a4b4e; --sage-text: #0d5f63;
  --sage-soft: #e2efee; --dark: #15232a; --on-dark: #f3f6f5; --on-dark-muted: #c9d6d8; --sage-on-dark: #8fd6d2;
}
body::before { display: none; }
.btn { border-radius: 999px; }
