/* Theme tokens from config/site.toml */
:root{--brand:#0d6e6e;--brand-700:#0a5656;--brand-800:#083f40;--brand-tint:#e4f3f2;--brand-tint-2:#c6e6e3;--accent:#b4540a;--accent-tint:#fdf0e3;--ink:#0b1220;--navy:#0b1a22}
/* =========================================================================
   Design system. Colours are theme tokens injected from config/site.toml at
   build time; provenance of the layout system is recorded in
   docs/site-architecture.md. No web fonts are loaded.
   ========================================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #1c2536;
  --body: #2a3344;
  --muted: #566176;
  --paper: #ffffff;
  --paper-2: #f4f7fa;
  --paper-3: #e8eef3;
  --line: #e1e7ee;
  --line-2: #cfd8e2;

  --brand: #0d6e6e;
  --brand-700: #0a5656;
  --brand-800: #083f40;
  --brand-tint: #e4f3f2;
  --brand-tint-2: #c6e6e3;
  --accent: #b4540a;
  --accent-tint: #fdf0e3;

  --navy: #0b1a22;
  --on-dark: #e6edf2;
  --on-dark-muted: #a9b6c2;
  --on-dark-line: #24363f;

  --ok: #1b7a43;
  --ok-tint: #effaf3;
  --error: #b42318;
  --error-tint: #fef3f2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow: 0 6px 18px rgba(11, 18, 32, .08), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow-lg: 0 22px 56px rgba(11, 18, 32, .14), 0 8px 20px rgba(11, 18, 32, .08);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-hero: clamp(2.2rem, 3.6vw + 1rem, 3.7rem);
  --fs-h1: clamp(1.95rem, 2.6vw + 1rem, 3rem);
  --fs-h2: clamp(1.5rem, 1.6vw + .8rem, 2.2rem);
  --fs-h3: clamp(1.12rem, .5vw + .95rem, 1.3rem);
  --fs-lede: clamp(1.06rem, .45vw + .96rem, 1.24rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset and type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.62; color: var(--body);
  background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: -.024em; }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-800); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }
strong { color: var(--ink-2); font-weight: 650; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-3); padding: .08em .35em; border-radius: 5px; color: var(--ink-2); }

/* ---------- Accessibility helpers ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 300; }
.skip:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Reading links carry an underline; components keep their own treatment. */
main p a, main li a:not(.btn):not(.textlink):not(.related__card):not(.mega__link), main td a, main th a, main dd a { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .16em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(36px, 4.5vw, 64px); }
.section--alt { background: var(--paper-2); }
.section--attached { padding-top: 0; margin-top: calc(-1 * clamp(16px, 2.5vw, 40px)); }
.section-head { max-width: 780px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin-bottom: .35em; }
.lede { font-size: var(--fs-lede); color: var(--muted); line-height: 1.55; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.prose { max-width: 780px; }
.prose--wide { max-width: 900px; }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin-top: 1.4em; }
.prose + .table-wrap, .table-wrap + .prose { margin-top: 18px; }
.note, .table-note { font-size: .9rem; color: var(--muted); }
.list li { padding-left: .15em; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px;
  padding: var(--pad-y) var(--pad-x); font: inherit; font-size: .97rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.2;
  border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(13, 110, 110, .24); }
.btn--primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--brand-tint); color: var(--brand-800); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--lg { --pad-y: 14px; --pad-x: 24px; font-size: 1.02rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand-700); text-decoration: none; }
.textlink svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Preview banner and review notes (preview builds only) ---------- */
.preview-banner { background: #fff7e0; color: #5c4400; border-bottom: 1px solid #f0d58a; font-size: .86rem; padding: 8px 0; }
.review-panel { background: #fff7e0; border-top: 2px dashed #e2b94b; color: #4a3800; font-size: .88rem; padding: 18px 0; }
.review-panel ul { margin: 6px 0 0; }
.gate { position: relative; outline: 2px dashed #e2b94b; outline-offset: -8px; }
.gate__label { margin: 0; padding: 10px var(--gutter); background: #fff7e0; color: #5c4400; font-size: .82rem; font-weight: 650; }
.gate-tag { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; line-height: 1.4; color: #5c4400; background: #fff7e0; border: 1px dashed #e2b94b; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
li.is-gated, p.is-gated, .card.is-gated, .faq__item.is-gated { outline: 1px dashed #e2b94b; outline-offset: 3px; }
tr.is-gated { background: #fffbea; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); } }
.nav { display: flex; align-items: center; gap: 12px; min-height: 68px; max-width: 1320px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; font-weight: 750; letter-spacing: -.02em; color: var(--ink); font-size: 1.16rem; text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.nav__panel { display: flex; align-items: center; gap: 10px; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; min-height: 44px;
  padding: 8px 10px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
}
.nav__link svg { flex: none; width: 14px; height: 14px; opacity: .65; transition: transform .2s; }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--brand-700); background: var(--paper-2); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link.is-current { color: var(--brand-700); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 10px 10px 4px 4px; }
.nav__cta { margin-left: 6px; white-space: nowrap; }
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 14px; width: max-content; max-width: min(560px, calc(100vw - 32px));
}
.mega--wide { max-width: min(820px, calc(100vw - 32px)); }
.nav__item:nth-last-child(-n+3) .mega { left: auto; right: 0; }
.mega[hidden] { display: none; }
.mega__grid { display: grid; gap: 4px 14px; }
.mega__grid--2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.mega__grid--3 { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
/* Four or five columns wrap into two or three per row so a menu anchored at the
   left of the bar never runs off a compact desktop screen. */
.mega__grid--4 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.mega__grid--5 { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
.mega__col-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 6px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.mega__list { list-style: none; margin: 4px 0 0; padding: 0; }
.mega__list li { margin: 0; }
.mega__link { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.mega__link:hover { background: var(--paper-2); color: var(--brand-700); }
.mega__link b { display: block; font-weight: 650; font-size: .92rem; line-height: 1.3; }
.mega__link span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.mega__link[aria-current="page"] { background: var(--brand-tint); }
.mega__all { display: inline-flex; align-items: center; gap: 6px; margin: 8px 12px 2px; font-weight: 650; font-size: .9rem; color: var(--brand-700); text-decoration: none; }
.mega__all svg { width: 15px; height: 15px; }
/* Compact desktop row: the full "Microsoft Dynamics 365" menu label still fits on 1280px laptops. */
@media (min-width: 1261px) and (max-width: 1439px) {
  .nav { gap: 8px; }
  .nav__links { gap: 0; }
  .nav__link { padding: 8px 7px; font-size: .88rem; }
  .nav__cta { padding: 10px 14px; font-size: .9rem; margin-left: 2px; }
}
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff; border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1260px) {
  .menu-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav__panel { display: none; }
  .nav__panel.is-open {
    display: block; position: fixed; top: 68px; right: 0; bottom: 0; left: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px; border-top: 1px solid var(--line);
  }
  body.menu-open { overflow: hidden; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; font-size: 1.04rem; padding: 14px 6px; border-radius: 0; }
  .nav__link.is-current { box-shadow: none; }
  .mega, .mega--wide { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px; max-width: none; width: auto; }
  .mega__grid--2, .mega__grid--3, .mega__grid--4, .mega__grid--5 { grid-template-columns: 1fr; }
  .mega__col-title { border-bottom: 0; padding: 10px 6px 2px; }
  .mega__link { padding: 10px 6px; }
  .mega__link span { display: none; }
  .mega__all { margin: 6px 6px 4px; }
  .nav__cta { display: flex; width: 100%; margin: 18px 0 0; }
}

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(22px, 3.2vw, 44px) clamp(32px, 4.5vw, 60px); }
.page-hero h1 { max-width: 22ch; }
.page-hero--home h1 { font-size: var(--fs-hero); letter-spacing: -.032em; max-width: 20ch; }
.page-hero__lead { display: grid; gap: clamp(24px, 4vw, 52px); align-items: start; }
.page-hero__lead--aside { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
@media (max-width: 900px) { .page-hero__lead--aside { grid-template-columns: 1fr; } }
.byline { font-size: .88rem; color: var(--muted); margin: -4px 0 18px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }

.answer {
  position: relative; max-width: 760px; margin-top: 8px; background: #fff; border: 1px solid var(--brand-tint-2); border-radius: 16px;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px); box-shadow: 0 14px 38px rgba(13, 110, 110, .08);
}
.answer::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.answer__tag { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); margin: 0 0 8px; }
.answer__text { font-size: clamp(1.03rem, .45vw + .96rem, 1.16rem); color: var(--ink-2); line-height: 1.6; margin: 0; }

.glance { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; box-shadow: var(--shadow-sm); }
.glance__title { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.glance__list { margin: 0; }
.glance__list div { padding: 10px 0; border-top: 1px solid var(--line); }
.glance__list div:first-child { border-top: 0; padding-top: 0; }
.glance__list dt { font-size: .8rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.glance__list dd { margin: 0; font-size: .94rem; color: var(--body); line-height: 1.5; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--ink); padding: 14px 16px 10px; font-size: .98rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); line-height: 1.5; }
.data-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: var(--paper-2); border-top: 1px solid var(--line); }
.data-table tbody th { font-weight: 650; color: var(--ink); }
.data-table tbody tr:hover { background: #fbfcfd; }
@media (max-width: 680px) {
  .data-table--stack caption { display: block; width: 100%; }
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack th, .data-table--stack td { display: block; width: 100%; }
  .data-table--stack tr { border-top: 1px solid var(--line-2); padding: 8px 0; }
  .data-table--stack tbody th, .data-table--stack td { border-top: 0; padding: 6px 16px; }
  .data-table--stack tbody th { font-size: 1rem; padding-top: 10px; }
  .data-table--stack td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
}
/* Tables with five or more columns stack from tablet width down. */
@media (max-width: 1100px) {
  .data-table--wide caption { display: block; width: 100%; }
  .data-table--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .data-table--wide, .data-table--wide tbody, .data-table--wide tr, .data-table--wide th, .data-table--wide td { display: block; width: 100%; }
  .data-table--wide tr { border-top: 1px solid var(--line-2); padding: 8px 0; }
  .data-table--wide tbody th, .data-table--wide td { border-top: 0; padding: 6px 16px; }
  .data-table--wide tbody th { font-size: 1rem; padding-top: 10px; }
  .data-table--wide td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
}
.fact-table td { overflow-wrap: anywhere; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2vw, 26px); margin: 0; display: flex; flex-direction: column; }
.section--alt .card { box-shadow: var(--shadow-sm); }
.card__tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-tint); padding: 4px 10px; border-radius: 999px; margin: 0 0 12px; }
.card__title { font-size: 1.1rem; margin-bottom: 6px; }
.card__desc { color: var(--muted); font-size: .96rem; margin: 0 0 12px; }
.card__foot { margin: auto 0 0; }

/* ---------- Process steps ---------- */
.proc { list-style: none; margin: 0; padding: 0; display: grid; max-width: 860px; }
.proc__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 0 0 24px; margin: 0; }
.proc__step:last-child { padding-bottom: 0; }
.proc__step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -2px; width: 2px; background: var(--line-2); }
.proc__step:last-child::before { display: none; }
.proc__node { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 750; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.proc__content { padding-top: 6px; min-width: 0; }
.proc__title { font-size: 1.08rem; margin: 0 0 4px; }
.proc__desc { margin: 0; color: var(--muted); font-size: .96rem; }
.proc + .prose { margin-top: 22px; }

/* ---------- Check lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 680px) { .checks--2 { grid-template-columns: 1fr; } }
.checks li { position: relative; padding-left: 32px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 6px; background: var(--brand-tint); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 4.5px; border-left: 2px solid var(--brand-700); border-bottom: 2px solid var(--brand-700); transform: rotate(-45deg); }
.prose + .checks { margin-top: 18px; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
.fit__card { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; background: #fff; }
.fit__card h3 { font-size: 1.04rem; }
.fit__card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.fit__card li { position: relative; padding-left: 26px; margin: 9px 0; font-size: .96rem; }
.fit--yes { border-color: #bfe3cc; background: var(--ok-tint); }
.fit--yes li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px; border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok); transform: rotate(-45deg); }
.fit--no { border-color: #f1d4c4; background: #fdf7f3; }
.fit--no li::before { content: "\00d7"; position: absolute; left: 5px; top: -.05em; color: var(--accent); font-weight: 700; font-size: 1.15em; }

/* ---------- FAQ (always visible) ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px 22px; }
.faq__q { font-size: 1.06rem; margin: 0 0 8px; }
.faq__a { color: var(--body); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- Callouts ---------- */
.callout { max-width: 860px; border: 1px solid var(--line-2); border-left: 4px solid var(--brand); border-radius: 12px; background: #fff; padding: 18px 22px; }
.callout__label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); margin: 0 0 8px; }
.callout > :last-child { margin-bottom: 0; }
.callout--example { border-left-color: var(--accent); background: var(--accent-tint); }
.callout--example .callout__label { color: #8a3f07; }
.callout--boundary { border-left-color: var(--ink-2); background: var(--paper-2); }

/* ---------- Related and directory ---------- */
.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related li { margin: 0; }
.related__card { display: block; height: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: #fff; color: var(--body); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.related__card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--body); }
.related__card b { display: block; color: var(--ink); margin-bottom: 4px; }
.related__card span { font-size: .9rem; color: var(--muted); }
.directory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .directory { grid-template-columns: 1fr; } }
.directory__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px 20px; margin: 0; }
.directory__title { font-size: 1.06rem; margin: 0 0 6px; }
.directory__title a { color: var(--ink); text-decoration: none; }
.directory__title a:hover { color: var(--brand-700); text-decoration: underline; }
.directory__item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-800) 0%, var(--brand) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 56px); }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 62ch; font-size: var(--fs-lede); margin: 0; }
.cta-band .btn-row { margin-top: 22px; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .85fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-aside h3 { font-size: 1.02rem; margin-top: 1.2em; }
.contact-aside h3:first-child { margin-top: 0; }
.form { display: grid; gap: 18px; }
.form[hidden] { display: none; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__grid .field[data-field="problem"], .form__grid .field[data-field="inquiry_type"] { grid-column: 1 / -1; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.field .req { color: var(--accent); }
.field .optional { color: var(--muted); font-weight: 500; font-size: .85rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink-2); padding: 12px 14px; min-height: 46px; width: 100%;
  border: 1.5px solid var(--line-2); border-radius: 11px; background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.field__hint { font-size: .84rem; color: var(--muted); margin: 0; }
.field__error { font-size: .86rem; color: var(--error); font-weight: 650; margin: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); background: var(--error-tint); }
.form-staffing { border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); margin: 0; padding: 14px 16px 18px; min-width: 0; }
.form-staffing legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-weight: 700; color: var(--ink-2); }
.form-staffing legend + .field__hint { clear: both; margin-bottom: 14px; }
.form-optional { border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.form-optional summary { min-height: 48px; padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-optional summary span { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.form-optional .form__grid { padding: 4px 16px 18px; }
.form__note { font-size: .88rem; color: var(--muted); margin: 0; }
.form__status:empty { display: none; }
.form__status { border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.form__status.is-error { background: var(--error-tint); border: 1px solid #f5c2bc; color: var(--error); }
.form__status.is-pending { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.form-success { border-radius: 14px; background: var(--ok-tint); border: 1px solid #bfe3cc; padding: 22px 24px; color: #14532d; }
.form-success h3 { color: #14532d; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sources ---------- */
.sources { border-top: 1px solid var(--line); }
.sources__title { font-size: 1.05rem; }
.sources__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.sources__list li { margin: 0; }
.sources__list span { color: var(--muted); }

/* ---------- HTML sitemap ---------- */
.sitemap-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 760px) { .sitemap-groups { grid-template-columns: 1fr; } }
.sitemap-group h2 { font-size: 1.2rem; }
.sitemap-group ul { list-style: none; padding: 0; margin: 0; }
.sitemap-group li { margin: 0 0 12px; }
.sitemap-group li span { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: clamp(44px, 6vw, 72px) 28px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 30px 22px; }
@media (max-width: 1100px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot-brand { max-width: 320px; }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand p { font-size: .92rem; }
.foot-col__title { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 0 0 12px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin: 8px 0; font-size: .9rem; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); font-size: .86rem; }
.foot-bottom p { margin: 0; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-disclaimer { font-size: .8rem; color: var(--on-dark-muted); margin: 14px 0 0; max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .preview-banner, .review-panel, .form { display: none !important; }
}
