/* ==========================================================================
   awarding.me — design system
   --------------------------------------------------------------------------
   Derived from the original reference page (reference/original-index.html),
   which used Tailwind CSS defaults: slate neutrals, blue-600 accent, system
   sans-serif stack, rounded-xl/2xl cards, subtle borders and shadows.
   Values below reproduce that palette as custom properties so the site has
   no runtime CDN or build-tool dependency.

   Contents
   1. Tokens          6. Header & navigation
   2. Base / reset    7. Page sections & heroes
   3. Typography      8. Components (cards, lists, flows, case studies ...)
   4. Layout          9. Forms
   5. Buttons & links 10. Footer, utilities, print
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Neutrals (Tailwind slate) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Accent (Tailwind blue) */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  /* Secondary accent, used sparingly for progression / outcomes */
  --emerald-600: #059669;
  --emerald-50: #ecfdf5;

  /* Placeholder highlight (development only) */
  --amber-50: #fffbeb;
  --amber-300: #fcd34d;
  --amber-800: #92400e;

  /* Semantic roles */
  --color-bg: #ffffff;
  --color-bg-muted: var(--slate-50);
  --color-bg-inverse: var(--slate-900);
  --color-text: var(--slate-800);
  --color-heading: var(--slate-900);
  --color-text-muted: var(--slate-600);
  --color-text-subtle: var(--slate-500);
  --color-border: var(--slate-200);
  --color-border-strong: var(--slate-300);
  --color-accent: var(--blue-600);
  --color-accent-hover: var(--blue-700);
  --color-accent-soft: var(--blue-50);
  --color-focus: var(--blue-600);

  /* Typography — system stack (no custom brand font was present in the reference) */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.875rem;    /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-lg: 1.125rem;    /* 18 */
  --text-xl: 1.25rem;     /* 20 */
  --text-2xl: 1.5rem;     /* 24 */
  --text-3xl: clamp(1.625rem, 1.3rem + 1.2vw, 1.875rem);  /* 26-30 */
  --text-4xl: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);        /* 32-40 */
  --text-5xl: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);    /* 36-52 */

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);

  /* Radius */
  --radius-md: 0.5rem;    /* rounded-lg */
  --radius-lg: 0.75rem;   /* rounded-xl */
  --radius-xl: 1rem;      /* rounded-2xl */
  --radius-full: 9999px;

  /* Shadows (restrained) */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 12px 24px -8px rgb(15 23 42 / 0.12), 0 4px 8px -4px rgb(15 23 42 / 0.06);
  --shadow-xl: 0 20px 32px -12px rgb(15 23 42 / 0.25);

  /* Layout */
  --container: 80rem;     /* max-w-7xl */
  --container-narrow: 48rem;
  --gutter: 1.5rem;
  --header-h: 5rem;

  --transition: 150ms ease;
}

@media (max-width: 30rem) {
  :root { --gutter: 1rem; }
}

/* 2. Base / reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
/* backdrop-filter creates a containing block for fixed children; drop it while the mobile panel is open */
body.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
img, svg { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
code { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-8) 0; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--slate-900);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* 3. Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--color-heading); letter-spacing: -0.015em; }
.display, h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}
.page-hero h1 { font-size: var(--text-4xl); }
h2, .h2 { font-size: var(--text-3xl); font-weight: 700; line-height: 1.2; }
h3, .h3 { font-size: var(--text-xl); font-weight: 700; line-height: var(--leading-snug); }
h4, .h4 { font-size: var(--text-base); font-weight: 700; line-height: var(--leading-snug); }
.lead { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--color-text-muted); }
.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.accent { color: var(--color-accent); }

.eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.badge {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--blue-700);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.badge--neutral { background: var(--slate-100); color: var(--slate-700); }
.badge--outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--slate-600); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-sm > * + * { margin-top: var(--space-2); }

/* Long-form content (legal pages, insights, independence statement) */
.prose { max-width: 46rem; color: var(--slate-700); line-height: var(--leading-relaxed); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-12); font-size: var(--text-2xl); }
.prose h3 { margin-top: var(--space-8); font-size: var(--text-lg); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }
.prose a { color: var(--color-accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--color-accent-hover); }
.prose strong { color: var(--slate-900); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.prose th { color: var(--slate-900); background: var(--slate-50); }
.table-scroll { overflow-x: auto; }
.prose--wide { max-width: none; }
.table-scroll table { min-width: 36rem; }
main:focus { outline: none; }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--muted { background: var(--color-bg-muted); }
.section--bordered { border-top: 1px solid var(--color-border); }
.section--inverse { background: var(--color-bg-inverse); color: var(--slate-300); }
.section--inverse h2, .section--inverse h3 { color: #fff; }
.section--tight { padding-block: var(--space-12); }

.section-head { max-width: 48rem; margin-bottom: var(--space-12); }
.section-head > * + * { margin-top: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.section--inverse .section-head p { color: var(--slate-400); }

.grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid--gap-lg { gap: var(--space-8); }

.split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 64rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--top { align-items: start; }
}

/* 5. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: 0.875rem 1.75rem; font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--secondary { background: var(--slate-100); color: var(--slate-700); }
.btn--secondary:hover { background: var(--slate-200); }
.btn--outline { background: #fff; color: var(--slate-800); border-color: var(--color-border-strong); }
.btn--outline:hover { border-color: var(--slate-400); background: var(--slate-50); }
.btn--on-dark { background: #fff; color: var(--slate-900); }
.btn--on-dark:hover { background: var(--blue-50); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: var(--slate-600); }
.btn--ghost-dark:hover { border-color: var(--slate-400); background: var(--slate-800); }
.btn svg { width: 1em; height: 1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 30rem) {
  .btn-row .btn { width: 100%; white-space: normal; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform var(--transition); }
.link-arrow:hover { color: var(--color-accent-hover); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-ext::after { content: "\2197"; }
.link-ext:hover::after { transform: translate(2px, -2px); }

/* 6. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: 90rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

/* Wordmark — reproduces the reference treatment: bold, tight, ".me" in blue */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--slate-900);
  text-decoration: none;
  white-space: nowrap;
}
.logo__tld { color: var(--color-accent); }
.logo--inverse { color: #fff; }
.logo--inverse .logo__tld { color: var(--blue-400); }
.logo--sm { font-size: var(--text-xl); }

.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-actions .btn--primary { display: none; }

/* Header breakpoints (revised site: 4-link flat menu):
   <40rem       logo + menu button
   40-64rem     logo + CTA + menu button
   >=64rem      logo + full navigation + CTA */
@media (min-width: 40rem) {
  .header-actions .btn--primary { display: inline-flex; }
}
@media (min-width: 64rem) {
  .primary-nav { display: block; }
  .menu-toggle { display: none !important; }
}

.primary-nav__list { display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.primary-nav__item { position: relative; }
.primary-nav__link,
.primary-nav__button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: var(--space-2) 0.5rem;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}
.primary-nav__link:hover,
.primary-nav__button:hover,
.primary-nav__button[aria-expanded="true"] { color: var(--color-accent); background: var(--slate-50); }
.primary-nav__link[aria-current="page"],
[data-active="true"] > .primary-nav__link,
[data-active="true"] > .primary-nav__button { color: var(--slate-900); box-shadow: inset 0 -2px 0 var(--color-accent); border-radius: 0; }
.primary-nav__button svg { width: 0.9rem; height: 0.9rem; transition: transform var(--transition); }
.primary-nav__button[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 20rem;
  padding: var(--space-2);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}
.dropdown.is-open { display: block; }
html:not(.js) .primary-nav__item:focus-within .dropdown { display: block; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--slate-800);
}
.dropdown a:hover { background: var(--slate-50); }
.dropdown a[aria-current="page"] { background: var(--blue-50); }
.dropdown__title { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--slate-900); }
.dropdown__desc { display: block; font-size: var(--text-xs); color: var(--slate-500); margin-top: 2px; line-height: 1.45; }
.dropdown__footer { border-top: 1px solid var(--slate-100); margin-top: var(--space-2); padding-top: var(--space-2); }

.portal-link {
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
}
.portal-link:hover { color: var(--color-accent); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-800);
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
html:not(.js) .menu-toggle { display: none; }

/* Mobile navigation panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4) var(--gutter) var(--space-12);
  border-top: 1px solid var(--color-border);
}
html:not(.js) .mobile-nav { display: none; }
@media (min-width: 64rem) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__group { border-bottom: 1px solid var(--slate-100); }
.mobile-nav__group > a,
.mobile-nav summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  font-weight: 600;
  color: var(--slate-900);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-size: var(--text-xl); color: var(--slate-400); font-weight: 400; }
.mobile-nav details[open] summary::after { content: "\2212"; }
.mobile-nav details ul { padding-bottom: var(--space-3); }
.mobile-nav details a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--slate-600);
  text-decoration: none;
  border-left: 2px solid var(--slate-200);
}
.mobile-nav details a:hover, .mobile-nav details a[aria-current="page"] { color: var(--color-accent); border-left-color: var(--color-accent); }
.mobile-nav__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

/* 7. Page sections & heroes ---------------------------------------------- */
.hero {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  overflow: hidden;
}
.hero::before {
  /* very subtle grid texture, purely decorative */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--slate-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--slate-100) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero__brand {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--slate-500);
}
.hero__lead { max-width: 40rem; }
.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: 0;
 
  list-style: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-700);
}
.hero__services li { display: inline-flex; align-items: center; gap: var(--space-3); }
@media (max-width: 40rem) { .hero__services { display: grid; gap: var(--space-1); } .hero__services li + li::before { display: none; } }
.hero__services li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-400); }
.hero__portal-note { font-size: var(--text-sm); color: var(--color-text-subtle); }
.hero__portal-note a { color: var(--slate-700); font-weight: 600; text-decoration: none; }
.hero__portal-note a:hover { color: var(--color-accent); }

/* Inner-page hero */
.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(3rem, 2.5rem + 3vw, 5rem);
}
.page-hero .lead { max-width: 46rem; }
.page-hero__inner > * + * { margin-top: var(--space-5); }

.breadcrumb { font-size: var(--text-sm); color: var(--slate-500); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--slate-300); }
.breadcrumb a { color: var(--slate-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }

/* On-page section index (jump links) */
.page-index { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.page-index a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--slate-700);
  text-decoration: none;
  background: #fff;
}
.page-index a:hover { border-color: var(--blue-300); color: var(--color-accent); }

/* 8. Components ------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.card--muted { background: var(--slate-50); }
.card--compact { padding: var(--space-5); border-radius: var(--radius-lg); }
.card--flat { box-shadow: none; }
.card--dark { background: var(--slate-900); border-color: var(--slate-800); color: var(--slate-300); box-shadow: var(--shadow-xl); }
.card--dark h2, .card--dark h3, .card--dark h4 { color: #fff; }
.card--accent-top { border-top: 3px solid var(--color-accent); }
.card > * + * { margin-top: var(--space-3); }
.card__title { font-size: var(--text-lg); font-weight: 700; color: var(--slate-900); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.card--dark p { color: var(--slate-300); }
.card__footer { padding-top: var(--space-2); }
.card--link { display: flex; flex-direction: column; text-decoration: none; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.card--link:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.card--link .link-arrow { margin-top: auto; padding-top: var(--space-4); }
.card__divider { border-bottom: 1px solid var(--slate-100); padding-bottom: var(--space-4); }
.card--dark .card__divider { border-color: var(--slate-800); }

.icon-tile {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  color: var(--color-accent);
}
.icon-tile svg { width: 1.375rem; height: 1.375rem; }

/* Pillar cards (home) */
.pillar { display: flex; flex-direction: column; gap: var(--space-4); }
.pillar__num { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--slate-400); }
.pillar ul { margin-top: var(--space-1); }

/* Check list (from reference) */
.check-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.check-list li { position: relative; padding-left: 1.875rem; color: var(--slate-700); font-size: var(--text-sm); line-height: var(--leading-normal); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list--lg li { font-size: var(--text-base); }
.check-list--cols { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .check-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }
.check-list strong { color: var(--slate-900); }
.card--dark .check-list li { color: var(--slate-300); }
.card--dark .check-list li::before { background-color: var(--blue-400); }

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.tag-list li {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-700);
}

/* Architecture diagram (home "how we sit") */
.architecture {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
 
  padding: 0;
  counter-reset: arch;
}
.architecture li {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.architecture li strong { display: block; color: var(--slate-900); font-size: var(--text-sm); }
.architecture li > span { display: block; color: var(--slate-500); font-size: var(--text-xs); margin-top: 2px; }
.architecture li.is-hub { background: var(--slate-900); border-color: var(--slate-900); }
.architecture li.is-hub strong { color: #fff; }
.architecture li.is-hub strong .logo__tld { color: var(--blue-400); }
.architecture li.is-hub > span { color: var(--slate-400); }
@media (min-width: 64rem) {
  .architecture { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .architecture li:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: var(--text-sm);
    z-index: 1;
  }
}

/* Pathway flow (from the reference "Articulation Structure") */
.flow { display: grid; gap: var(--space-2); }
.flow__step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.flow__label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent); }
.flow__label--outcome { color: var(--emerald-600); }
.flow__title { font-weight: 600; color: var(--slate-800); }
.flow__meta { font-size: var(--text-sm); color: var(--slate-500); text-align: right; }
.flow__connector { text-align: center; font-size: var(--text-sm); font-weight: 600; color: var(--slate-400); padding: var(--space-1) 0; }
@media (max-width: 30rem) {
  .flow__step { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .flow__meta { text-align: left; }
}

/* Pathway model cards */
.model-card { display: flex; flex-direction: column; gap: var(--space-3); }
.model-card__code {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}
.model-card__bar { display: flex; gap: 3px; height: 0.5rem; }
.model-card__bar span { flex: 1; border-radius: 2px; background: var(--blue-200); }
.model-card__bar span.is-partner { background: var(--color-accent); }
.model-card__legend { display: flex; gap: var(--space-4); font-size: var(--text-xs); color: var(--slate-500); }
.model-card__legend span::before { content: ""; display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: -1px; background: var(--blue-200); }
.model-card__legend span.is-partner::before { background: var(--color-accent); }

/* Lifecycle (portal) */
.lifecycle {
  list-style: none;
 
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: step;
}
@media (min-width: 48rem) { .lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lifecycle li {
  counter-increment: step;
  border: 1px solid var(--slate-700);
  background: var(--slate-800);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.lifecycle li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-400);
  margin-bottom: var(--space-1);
}
.lifecycle strong { display: block; color: #fff; font-size: var(--text-sm); }
.lifecycle span { display: block; color: var(--slate-400); font-size: var(--text-xs); margin-top: 2px; line-height: 1.45; }
.lifecycle--compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.lifecycle--light li { background: #fff; border-color: var(--color-border); }
.lifecycle--light li::before { color: var(--color-accent); }
.lifecycle--light strong { color: var(--slate-900); }
.lifecycle--light span { color: var(--slate-500); }

/* Portal gateway panel (from reference hero card) */
.gateway {
  background: var(--slate-800);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.gateway__label { font-size: var(--text-sm); font-weight: 500; color: var(--slate-200); }
.gateway a { color: var(--blue-400); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.gateway a:hover { text-decoration: underline; }
.card--dark code { color: var(--blue-400); }

/* Audience cards */
.audience { display: flex; gap: var(--space-4); align-items: flex-start; }
.audience h3 { font-size: var(--text-base); }
.audience p { margin-top: var(--space-1); }

/* Independence panel */
.principles { counter-reset: principle; display: grid; gap: var(--space-6); }
.principle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); }
.principle::before {
  counter-increment: principle;
  content: counter(principle, decimal-leading-zero);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--blue-400);
  padding-top: 2px;
}
.principle h3 { font-size: var(--text-base); }
.principle p { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--slate-400); line-height: var(--leading-relaxed); }
.section:not(.section--inverse) .principle p { color: var(--color-text-muted); }
.section:not(.section--inverse) .principle::before { color: var(--color-accent); }

/* Notices */
.notice {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  background: var(--slate-50);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--slate-700);
  line-height: var(--leading-relaxed);
}
.notice > * + * { margin-top: var(--space-2); }
.notice strong { color: var(--slate-900); }
.notice a { color: var(--color-accent); }
.notice--warning { border-left-color: #d97706; background: var(--amber-50); }

/* Case study component */
.case-study {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.case-study__head { padding: var(--space-6) var(--space-6) var(--space-4); border-bottom: 1px solid var(--slate-100); }
.case-study__head > * + * { margin-top: var(--space-2); }
.case-study__title { font-size: var(--text-lg); }
.case-study__body { padding: var(--space-5) var(--space-6); display: grid; gap: var(--space-4); flex: 1; }
.case-study__body dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
.case-study__body dd { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--slate-700); line-height: var(--leading-relaxed); }
.case-study__foot { padding: var(--space-4) var(--space-6); background: var(--slate-50); border-top: 1px solid var(--slate-100); }

/* Trust / logo placeholders */
.logo-wall { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; }
@media (min-width: 48rem) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-wall li {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--slate-500);
  background: #fff;
}

/* Region / reach */
.reach-legend { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); list-style: none; margin: 0 0 var(--space-8); padding: 0; font-size: var(--text-sm); color: var(--slate-600); }
.reach-legend dt { font-weight: 700; color: var(--slate-900); }
.reach-defs { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-10); }
@media (min-width: 48rem) { .reach-defs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reach-defs div { border-top: 2px solid var(--color-accent); padding-top: var(--space-3); }
.reach-defs dt { font-weight: 700; color: var(--slate-900); font-size: var(--text-sm); }
.reach-defs dd { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--slate-600); line-height: var(--leading-relaxed); }
.region h3 { font-size: var(--text-base); }
.region__context { font-size: var(--text-sm); }

/* Steps (process) */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { counter-increment: s; border-top: 2px solid var(--slate-200); padding-top: var(--space-4); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: var(--text-sm); font-weight: 700; color: var(--color-accent); margin-bottom: var(--space-2); }
.steps h3 { font-size: var(--text-base); }
.steps p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* Definition list for "at a glance" */
.facts { display: grid; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.facts > div:last-child { border-bottom: 0; }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-6); } }
.facts dt { font-size: var(--text-sm); font-weight: 700; color: var(--slate-900); }
.facts dd { font-size: var(--text-sm); color: var(--slate-600); line-height: var(--leading-relaxed); }

/* CTA band */
.cta-band {
  background: var(--slate-900);
  color: var(--slate-300);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  display: grid;
  gap: var(--space-8);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 99 235 / 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--slate-400); margin-top: var(--space-3); max-width: 40rem; line-height: var(--leading-relaxed); }
@media (min-width: 64rem) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }

/* Development placeholder marker — remove or restyle before launch.
   Every placeholder contains the text "CONTENT REQUIRED" so it can be found with a search. */
.content-required {
  display: inline;
  background: var(--amber-50);
  color: var(--amber-800);
  outline: 1px dashed var(--amber-300);
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.25em;
  font-size: 0.925em;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.content-required--block {
  display: block;
  padding: var(--space-4);
  border: 1px dashed var(--amber-300);
  outline: 0;
  border-radius: var(--radius-md);
}

/* 9. Forms ----------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label, .field legend {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
}
.field .optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--slate-500); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--text-base); /* 16px prevents iOS zoom */
  line-height: 1.5;
  color: var(--slate-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.2);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #dc2626; }
.field__hint { font-size: var(--text-xs); color: var(--slate-500); }
.field--checkbox { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-3); }
.field--checkbox input { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; accent-color: var(--color-accent); }
.field--checkbox label { font-size: var(--text-sm); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--slate-700); }
.field--checkbox a { color: var(--color-accent); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--text-sm); border-radius: var(--radius-md); padding: var(--space-4); line-height: var(--leading-relaxed); }
.form-status:empty { display: none; }
.form-status--info { background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-200); }
.form-status--success { background: var(--emerald-50); color: #065f46; border: 1px solid #a7f3d0; }
.form-status--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 10. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--slate-900); color: var(--slate-400); border-top: 1px solid var(--slate-800); font-size: var(--text-sm); }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-main {
  display: grid;
  gap: var(--space-10);
  padding-block: var(--space-16) var(--space-12);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-main { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); } }
.footer-brand > * + * { margin-top: var(--space-4); }
.footer-brand p { line-height: var(--leading-relaxed); max-width: 22rem; }
.footer-col h2 { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer-statement {
  border-top: 1px solid var(--slate-800);
  padding-block: var(--space-6);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--slate-400);
}
.footer-statement strong { color: var(--slate-200); }
.footer-statement a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  font-size: var(--text-xs);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; margin: 0; padding: 0; }
.site-footer .content-required { background: #422006; color: #fde68a; outline-color: #a16207; }

/* Utilities ---------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.max-prose { max-width: 46rem; }
.center-x { margin-inline: auto; }

/* Print --------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .skip-link, .cta-band, .site-footer .footer-main { display: none !important; }
  body { color: #000; }
  a { color: inherit; }
  .section, .page-hero, .hero { padding-block: 1.5rem; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
