/* ==========================================================================
   K12PhoneSystems.com - Design System
   Static CSS3. No frameworks. WCAG 2.1 AA aware.

   Architecture (in source order):
     1. Tokens                 - :root custom properties
     2. Reset / base           - element defaults, accessibility helpers
     3. Layout + primitives     - .container, .section, .stack, .cluster,
                                  .repel, .grid-auto, .pile, .overflow-scroller
     4. Components             - header, buttons, hero, cards, grids, footer
     5. Long-form / prose      - legal and article rhythm
     6. Responsive + motion    - media queries, reduced motion, scroller polish

   Color rule: brand pairings (navy / orange / white) are explicit and tested.
   contrast-color() is intentionally not used because it resolves to black or
   white only and would override the brand pairings.
   ========================================================================== */

:root {
  --brand-navy: #0B1F3B;
  --brand-navy-dark: #07162A;
  --cta-orange: #F97316;
  --cta-orange-hover: #EA580C;

  --background: #FFFFFF;
  --background-muted: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;

  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;

  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --info: #2563EB;

  /* Neutrals used on dark (navy) surfaces - tokenized so the same values are
     not repeated as raw hex across footer, hero, and dark cards. */
  --text-on-dark: #cbd5e1;
  --text-on-dark-strong: #d7e0ec;
  --text-on-dark-subtle: #94a3b8;
  --border-on-dark: #c7d2e0;
  --eyebrow-on-dark: #fbbf24;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Section rhythm */
  --section-y: clamp(3rem, 7vw, 6rem);
  --heading-gap: clamp(0.75rem, 1.5vw, 1.1rem);
  --content-gap: clamp(1rem, 2vw, 1.5rem);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(7, 22, 42, 0.18);

  --max-width: 1180px;
  --measure: 68ch;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Larger clamp-based spacing steps. The tested --space-1..6 above are kept
     as-is to avoid shifting existing layouts; these extend the scale. */
  --space-10: clamp(2.5rem, 2rem + 1.6vw, 4rem);
  --space-12: clamp(3rem, 2.3rem + 2vw, 5rem);
  --space-16: clamp(4rem, 3rem + 3vw, 7rem);

  /* Structural tokens. Aliased to existing values so section/container
     spacing is unchanged; --section-space-sm powers the new .section-sm. */
  --container-max: var(--max-width);
  --container-padding: clamp(1rem, 4vw, 2rem);
  --section-space: var(--section-y);
  --section-space-sm: clamp(2rem, 4vw, 3rem);

  /* Radius additions (existing --radius / --radius-sm / --radius-lg kept). */
  --radius-md: var(--radius);
  --radius-xl: 1.25rem;

  /* Soft elevation for floating panels. */
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);

  /* Motion tokens. */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
}

/* ----- Reset / base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--info);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-navy);
}

h1,
h2,
h3,
h4 {
  color: var(--brand-navy);
  line-height: 1.15;
  margin: 0 0 var(--heading-gap) 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

h4 {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
}

p {
  margin: 0 0 var(--content-gap) 0;
  max-width: var(--measure);
  text-wrap: pretty; /* avoid single-word orphan lines */
}

ul,
ol {
  margin: 0 0 var(--content-gap) 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  color: var(--text);
}

/* ----- Accessibility helpers ----- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--brand-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

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

.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;
}

/* Honeypot spam trap: kept off-screen rather than display:none so simple bots
   still fill it. Real users never see or tab to it. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--section-y);
}

.section-muted {
  background: var(--background-muted);
  padding-block: var(--section-y);
  border-block: 1px solid var(--border);
}

.section-tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta-orange);
  margin-bottom: var(--space-3);
}

.section-intro {
  max-width: 60ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-intro p {
  color: var(--text-muted);
  font-size: 1.075rem;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.lead--secondary {
  font-size: 1rem;
}

/* ==========================================================================
   Layout primitives (composable, framework-free)
   Reusable building blocks. The existing components already follow these
   patterns; these classes are available for new and refactored markup so the
   spacing and alignment systems stay consistent.
   ========================================================================== */

/* Vertical rhythm: one gap system, no stacked margins. */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-4));
}

/* Inline group that wraps: button rows, trust indicators, tag rows. */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, var(--space-3));
  align-items: center;
}

/* Push two groups apart on one row; wraps safely on small screens. */
.repel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--repel-gap, var(--space-4));
}

/* Auto-fit grid that never overflows a narrow container. Tune with --grid-min. */
.grid-auto {
  display: grid;
  gap: var(--grid-gap, var(--space-6));
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--grid-min, 16rem)), 1fr)
  );
  align-items: stretch;
}

.grid-auto.solution-grid { --grid-min: 18rem; }
.grid-auto.resource-grid { --grid-min: 20rem; }
.grid-auto.trust-grid { --grid-min: 14rem; }
.grid-auto.logo-grid { --grid-min: 10rem; }

/* True overlay only (badges over media, hero visual layering). */
.pile {
  display: grid;
  place-items: center;
}
.pile > * {
  grid-area: 1 / 1;
}

/* Smaller section rhythm using the new structural token. */
.section-sm {
  padding-block: var(--section-space-sm);
}

/* Secondary, browsable card rows only (logos, related guides). Never primary
   content. Snap improves mobile usability without scrolljacking. */
.overflow-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, var(--scroller-item-size, 18rem));
  gap: var(--scroller-gap, var(--space-4));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding-block-end: var(--space-2);
}
.overflow-scroller > * {
  scroll-snap-align: start;
}

/* Container-query-ready component scaffolding (opt-in per component). */
.adaptive-section {
  container-type: inline-size;
}
.adaptive-list {
  display: grid;
  gap: var(--space-4);
}
@container (min-width: 60ch) {
  .adaptive-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Consistent stack gaps when components opt into .stack. Setting these custom
   properties has no effect unless the element also uses .stack. */
.hero-content { --stack-gap: var(--space-5); }
.section-header { --stack-gap: var(--space-3); }
.card.stack,
.feature-card.stack,
.resource-card.stack,
.faq-item.stack { --stack-gap: var(--space-3); }
.cta-band.stack,
.cta-card.stack { --stack-gap: var(--space-5); }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 68px;
}

.brand {
  font-weight: 800;
  font-size: 1.075rem;
  color: var(--brand-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--brand-navy);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--brand-navy); /* drives the currentColor parts of the logo mark */
}

/* On the dark footer the navy mark would disappear, so render it white there. */
.footer-brand .brand__mark {
  color: #ffffff;
}

.brand__name b {
  color: var(--cta-orange);
  font-weight: 800;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.4rem);
}

.primary-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.25rem;
  border-radius: 6px;
}

.primary-nav__links a:hover,
.primary-nav__links a[aria-current="page"] {
  color: var(--brand-navy);
}

.primary-nav__links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--cta-orange);
}

.primary-nav__item {
  position: relative;
}

.primary-nav__submenu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.primary-nav__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

.primary-nav__item--has-submenu:hover .primary-nav__submenu,
.primary-nav__item--has-submenu:focus-within .primary-nav__submenu {
  display: block;
}

.primary-nav__submenu li {
  margin: 0;
}

.primary-nav__submenu a,
.primary-nav__submenu-toggle {
  display: block;
  width: 100%;
  padding: 0.65rem 0.7rem;
  color: var(--text);
  border-radius: 6px;
  white-space: nowrap;
  text-align: left;
}

.primary-nav__submenu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.primary-nav__submenu-toggle span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-nav__submenu-toggle span::after {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.primary-nav__submenu a:hover,
.primary-nav__submenu a:focus-visible,
.primary-nav__submenu-toggle:hover,
.primary-nav__submenu-toggle:focus-visible {
  color: var(--brand-navy);
  background: var(--background-muted);
}

.primary-nav__submenu-item {
  position: relative;
}

.primary-nav__nested-submenu {
  position: absolute;
  top: -0.45rem;
  left: calc(100% + 0.35rem);
  z-index: 25;
  display: none;
  min-width: 300px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.primary-nav__submenu-item--has-submenu:hover .primary-nav__nested-submenu,
.primary-nav__submenu-item--has-submenu:focus-within .primary-nav__nested-submenu,
.primary-nav__submenu-toggle[aria-expanded="true"] + .primary-nav__nested-submenu {
  display: block;
}

.primary-nav__nested-submenu a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.button-primary {
  background: var(--cta-orange);
  color: #fff;
  border-color: var(--cta-orange);
}

.button-primary:hover {
  background: var(--cta-orange-hover);
  border-color: var(--cta-orange-hover);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background: var(--background-muted);
}

.button-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--content-gap);
}

/* ----- Hero ----- */
.hero {
  background: var(--brand-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../svg/hero-pattern.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  color: #fff;
}

.hero p {
  color: var(--text-on-dark);
}

.hero .lead {
  color: var(--text-on-dark-strong);
}

.hero .eyebrow {
  color: var(--eyebrow-on-dark);
}

.hero__note {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  max-width: 48ch;
}

.hero__panel {
  background: var(--brand-navy-dark);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-lg);
}

.hero__panel svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Page hero (inner pages) ----- */
.page-hero {
  background: var(--brand-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../svg/hero-pattern.svg");
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.page-hero h1 {
  color: #fff;
  max-width: 24ch;
}

.page-hero .lead {
  color: var(--text-on-dark-strong);
}

.page-hero .eyebrow {
  color: var(--eyebrow-on-dark);
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  position: relative;
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-on-dark-subtle);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--text-subtle);
}

.breadcrumb a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #fff;
}

/* ----- Card grid system -----
   Flex based so a partial final row centers and reads as intentional rather
   than leaving an orphan card on the left. Column helpers force an exact N-up
   on desktop, collapse to 2-up on tablet, and stack to 1-up on mobile.

   Helpers:
     .card-grid--two / --three / --four  exact column count on desktop
     .card-grid--center-last             explicit hook for centering (default)
     .card-grid--last-span               final card spans the full row
     .card-grid--auto                    flexible 3 to 4 up by width
*/
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* default and --auto: flexible columns sized by width */
.card-grid > *,
.card-grid--auto > * {
  flex: 1 1 260px;
  max-width: 400px;
}

.card-grid--two > * {
  flex: 1 1 calc(50% - 0.8rem);
  max-width: 560px;
}

.card-grid--three > * {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: 440px;
}

.card-grid--four > * {
  flex: 1 1 calc(25% - 1.15rem);
  max-width: 360px;
}

/* Centering the final row is the default; this class documents the intent. */
.card-grid--center-last {
  justify-content: center;
}

/* Final card spans the full row (summary or CTA treatment). */
.card-grid--last-span > *:last-child {
  flex-basis: 100%;
  max-width: 100%;
}

@media (max-width: 940px) {
  .card-grid--three > *,
  .card-grid--four > * {
    flex-basis: calc(50% - 0.75rem);
    max-width: none;
  }
}

@media (max-width: 600px) {
  .card-grid > *,
  .card-grid--auto > *,
  .card-grid--two > *,
  .card-grid--three > *,
  .card-grid--four > * {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Animated orange accent bar that sweeps in on hover/focus */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--cta-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.card:hover,
.card--link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-on-dark);
  box-shadow: var(--shadow);
}

.card:hover::after,
.card--link:focus-visible::after {
  transform: scaleX(1);
}

.card h3,
.card h4 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.card--link:hover {
  border-color: var(--border-on-dark);
  box-shadow: var(--shadow);
  color: inherit;
}

.card__more {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--info);
  font-weight: 600;
  font-size: 0.92rem;
}

.card__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(11, 31, 59, 0.06);
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

/* Feature grid (compact capability list) - centered flex so partial last
   rows center instead of leaving an orphan tile on the left. */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-grid > li {
  flex: 1 1 300px;
  max-width: 420px;
}

/* Single-column variant for use inside split layouts */
.feature-grid--stack {
  flex-direction: column;
  align-items: stretch;
}

.feature-grid--stack > li {
  flex: 1 1 auto;
  max-width: none;
}

.feature-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin: 0;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.feature-grid li:hover {
  border-color: var(--cta-orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-grid li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--cta-orange);
}

/* ----- Split (two-column content) ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.split--narrow {
  grid-template-columns: 1.4fr 1fr;
}

/* ----- Photo sections -----
   A small set of DISTINCT image roles so the page does not read as one repeated
   module: large editorial split, reversed assessment split, compact detail
   card, shallow process band, wide proof banner, and an overlay media panel.
   All images are object-fit cover with intrinsic width/height set in the HTML
   to avoid layout shift. Scale, radius, and shadow vary by role on purpose. */
.photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Text smaller, image larger (large trust anchor) */
.photo-split--image-dominant {
  grid-template-columns: 0.82fr 1.18fr;
}

/* Text larger, image compact (detail evidence) */
.photo-split--compact {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}

/* Image on the left at desktop; content stays first in the DOM for reading
   order, so it collapses to content-then-image on mobile. */
.photo-split--reverse .photo-split__media {
  order: -1;
}

.photo-split__content > :first-child {
  margin-top: 0;
}

/* More vertical breathing room around the big editorial sections */
.section--editorial {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

/* Image cards, varied by scale / weight */
.photo-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-card--large {
  box-shadow: var(--shadow-lg);
}

.photo-card--large img {
  aspect-ratio: 4 / 3;
}

.photo-card--compact {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.photo-card--compact img {
  aspect-ratio: 3 / 2;
}

/* Wide bands */
.photo-band,
.image-band {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.photo-band img,
.image-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Shallow process band (wide and short) */
.photo-band--shallow {
  border-radius: var(--radius);
}

.photo-band--shallow img {
  aspect-ratio: 16 / 6;
}

/* Captions */
.image-caption,
.photo-caption {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  max-width: none;
}

/* Checklist card that sits beside the assessment image */
.checklist-card {
  margin-top: var(--content-gap);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.checklist-card__title {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.checklist-card .proof-list {
  margin-top: 0;
}

/* Proof points / checklist with an orange check */
.proof-list {
  list-style: none;
  margin: var(--content-gap) 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.proof-list li {
  position: relative;
  margin: 0;
  padding-left: 1.9rem;
  color: var(--text-muted);
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--cta-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}

/* Two-up image pairing (large + small) for proof rows if needed */
.proof-image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* Overlay media panel (district / board confidence) */
.media-panel {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--brand-navy);
}

.media-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.media-panel--overlay {
  display: grid;
}

.media-panel--overlay > img {
  grid-area: 1 / 1;
}

.media-panel__card {
  grid-area: 1 / 1;
  position: relative;
  align-self: center;
  justify-self: start;
  max-width: 33rem;
  margin: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(7, 22, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.media-panel__card .eyebrow {
  color: var(--eyebrow-on-dark);
}

.media-panel__card h2 {
  color: #fff;
}

.media-panel__card p {
  color: var(--text-on-dark);
}

.media-panel__card .proof-list li {
  color: var(--text-on-dark-strong);
}

@media (max-width: 940px) {
  .photo-split,
  .photo-split--image-dominant,
  .photo-split--compact {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }

  /* Reset desktop ordering so copy always reads above the image on stack. */
  .photo-split--reverse .photo-split__media {
    order: 0;
  }

  .photo-band img,
  .image-band img,
  .photo-band--shallow img {
    aspect-ratio: 16 / 9;
  }

  .proof-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  /* Overlay card stacks below the image instead of floating on top. */
  .media-panel--overlay {
    display: block;
  }

  .media-panel--overlay > img {
    aspect-ratio: 16 / 9;
  }

  .media-panel__card {
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

/* ----- Implementation scope section -----
   Editorial two-column block: grouped checklist cards beside a custom SVG
   diagram. Deliberately not a card grid, to break the homepage rhythm. */
.implementation-scope__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.implementation-scope__content > :first-child {
  margin-top: 0;
}

.scope-groups {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.scope-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 2vw, 1.2rem) clamp(1rem, 2vw, 1.35rem);
  box-shadow: var(--shadow-sm);
}

.scope-group__title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.scope-group__title::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--cta-orange);
  flex: none;
}

.scope-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.scope-group__item {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.scope-group__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--cta-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}

.implementation-visual {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
}

.implementation-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.implementation-visual__caption {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  max-width: none;
}

@media (max-width: 940px) {
  .implementation-scope__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }

  .implementation-visual {
    position: static;
  }
}

/* ----- Proof copy under district logos ----- */
.logo-proof {
  max-width: 64ch;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0;
  text-align: center;
}

.logo-proof h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.logo-proof p {
  color: var(--text-muted);
  margin: 0 auto;
}

/* ----- Good fit / not a fit ----- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.fit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}

.fit-card--positive {
  border-top: 3px solid var(--success);
}

.fit-card--muted {
  background: var(--background-muted);
}

.fit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.fit-list li {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
  color: var(--text-muted);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}

.fit-list--muted li {
  color: var(--text-subtle);
}

.fit-list--muted li::before {
  background: var(--text-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Two-column proof list (resource detail review areas) ----- */
.proof-list--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .proof-list--two {
    grid-template-columns: 1fr;
  }
}

/* ----- Request System Review page ----- */
.request-review__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.review-form__note {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-top: 0.85rem;
}

.outcome-card {
  border-top: 3px solid var(--cta-orange);
}

@media (max-width: 940px) {
  .request-review__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Direct answer (AEO block) ----- */
.answer-block {
  border-left: 4px solid var(--info);
  background: var(--background-muted);
  border-radius: var(--radius-sm);
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2vw, 1.6rem);
}

.answer-block h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--info);
  margin-bottom: 0.5rem;
}

.answer-block p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.05rem;
}

/* ----- Timeline ----- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.timeline li {
  position: relative;
  margin: 0;
  padding-left: 3.25rem;
}

.timeline li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.95rem;
}

.timeline {
  counter-reset: step;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: -1.2rem;
  width: 2px;
  background: var(--border);
}

.timeline li:last-child::after {
  display: none;
}

.timeline h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.timeline p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ----- Steps (numbered cards, e.g. How it works on home) ----- */
.steps {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: stepcard;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 0;
}

.steps li::before {
  counter-increment: stepcard;
  content: "Step " counter(stepcard);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cta-orange);
  margin-bottom: 0.5rem;
}

/* ----- FAQ ----- */
.faq-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.faq-grid > * {
  flex: 1 1 calc(50% - 0.7rem);
  max-width: 560px;
}

@media (max-width: 600px) {
  .faq-grid > * {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.faq-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ----- CTA band ----- */
.cta-band {
  background: var(--brand-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../svg/hero-pattern.svg");
  background-size: cover;
  opacity: 0.35;
}

.cta-band__inner {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-inline: auto;
  max-width: 24ch;
}

.cta-band p {
  color: var(--text-on-dark);
  margin-inline: auto;
  max-width: 58ch;
}

.cta-band .button-row {
  justify-content: center;
}

.cta-band__contact {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.cta-band__contact a {
  color: #fff;
  font-weight: 700;
}

/* ----- Trust list ----- */
.trust-list {
  list-style: none;
  margin: var(--content-gap) 0 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0;
  color: var(--text-on-dark-strong);
  font-size: 0.97rem;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}

.trust-list--dark li {
  color: var(--text-muted);
}

/* ----- Stat row ----- */
.stat-row {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat__value {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

/* ----- Resource cards ----- */
/* Planning resource cards (preview image + body with two actions) */
.resource-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.resource-grid > * {
  flex: 1 1 300px;
  max-width: 380px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.resource-card:hover {
  border-color: var(--border-on-dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.resource-card__media {
  display: block;
  background: var(--background-muted);
  border-bottom: 1px solid var(--border);
}

.resource-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.resource-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.1rem, 2vw, 1.4rem);
}

.resource-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cta-orange);
  margin-bottom: 0.5rem;
  display: block;
}

.resource-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.resource-card__body h3 a {
  color: var(--brand-navy);
  text-decoration: none;
}

.resource-card__body h3 a:hover {
  text-decoration: underline;
}

.resource-card__body p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.resource-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.resource-card__note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin: 0.7rem 0 0;
}

.related-resource-section .card-grid--four > * {
  flex-basis: calc(50% - 0.75rem);
  max-width: 520px;
}

@media (max-width: 600px) {
  .related-resource-section .card-grid--four > * {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .resource-grid > * {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Outline download button */
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--brand-navy);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.download-button:hover,
.download-button--secondary:hover {
  border-color: var(--brand-navy);
  background: var(--background-muted);
  color: var(--brand-navy);
}

/* Compact resource callout */
.resource-callout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta-orange);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-sm);
}

.resource-callout__media {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.resource-callout__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.resource-callout__content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.resource-callout__content p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

@media (max-width: 640px) {
  .resource-callout {
    grid-template-columns: 1fr;
  }
  .resource-callout__media {
    max-width: 220px;
  }
}

/* Download full packet band */
.resource-packet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.resource-packet h2 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
  max-width: 26ch;
}

.resource-packet p {
  color: var(--text-on-dark);
  margin: 0;
  max-width: 52ch;
}

/* Large resource preview on detail pages (full infographic, contain) */
.resource-preview {
  margin: 0;
  display: flex;
  justify-content: center;
  background: var(--background-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.resource-preview__image {
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Logo strip ----- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-strip li {
  margin: 0;
  display: flex;
  align-items: center;
}

.logo-strip img {
  height: clamp(64px, 8vw, 96px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-strip img:hover,
.logo-strip img:focus {
  filter: grayscale(0%);
  opacity: 1;
}

/* ----- Forms ----- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.field .req {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--info);
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 0;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field__hint {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ----- Notice / callout ----- */
.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  background: #fffbeb;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

.notice p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.notice--info {
  border-left-color: var(--info);
  background: #eff6ff;
}

/* ----- Prose blocks (legal / guide pages) ----- */
.prose {
  max-width: 72ch;
}

/* One flow-spacing system: reset child block margins, then space with the
   owl selector so legal and long-form pages have predictable rhythm. */
.prose > * {
  margin-block: 0;
}
.prose > * + * {
  margin-block-start: var(--prose-flow, 1em);
}

.prose h2 {
  margin-block-start: var(--space-10);
}

.prose h3 {
  margin-block-start: var(--space-7);
}

.prose p,
.prose li {
  line-height: 1.75;
}

.prose ul,
.prose ol {
  max-width: var(--measure);
}

/* Any future prose table stays readable on narrow screens. */
.prose .table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--brand-navy-dark);
  color: var(--text-on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer-cta {
  background: var(--brand-navy);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-cta h2 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
  max-width: 22ch;
}

.footer-cta p {
  color: var(--text-on-dark-subtle);
  margin-bottom: 0;
  max-width: 44ch;
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1.4fr repeat(5, 1fr);
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  color: var(--text-on-dark-subtle);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  max-width: 34ch;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-on-dark-subtle);
}

.footer-bottom a {
  color: var(--text-on-dark);
}

/* ----- Utilities ----- */
.text-center {
  text-align: center;
}

.text-center p,
.section-intro--center,
.section-intro--center p {
  margin-inline: auto;
  text-align: center;
}

.eyebrow--block {
  display: block;
}

.section-title--compact {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.section-intro--spaced {
  margin-top: 2.5rem;
}

.button-row--spaced {
  margin-top: 1.5rem;
}

.media-spacer {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.text-link-row {
  margin-top: 1.25rem;
}

.text-link-row--large {
  margin-top: 1.5rem;
}

.card--spaced {
  margin-top: 1.25rem;
}

.mt-0 {
  margin-top: 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: var(--section-y) 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    order: -1;
    max-width: 520px;
  }

  .split,
  .split--narrow {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1rem;
    display: none;
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .primary-nav__links li {
    border-bottom: 1px solid var(--border);
  }

  .primary-nav__item {
    position: static;
  }

  .primary-nav__links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
  }

  .primary-nav__submenu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0.6rem 0.85rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .primary-nav__submenu::before {
    display: none;
  }

  .primary-nav__submenu li {
    border-bottom: 0;
  }

  .primary-nav__submenu a {
    padding: 0.55rem 0.25rem;
    color: var(--text-muted);
    white-space: normal;
  }

  .primary-nav__submenu-toggle {
    padding: 0.55rem 0.25rem;
    color: var(--text);
    white-space: normal;
  }

  .primary-nav__submenu-toggle span {
    justify-content: flex-start;
  }

  .primary-nav__submenu-toggle span::after {
    transform: rotate(45deg);
  }

  .primary-nav__submenu-toggle[aria-expanded="true"] span::after {
    transform: rotate(225deg);
  }

  .primary-nav__submenu-item {
    position: static;
  }

  .primary-nav__nested-submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.35rem 0.85rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .primary-nav__submenu-item--has-submenu:hover .primary-nav__nested-submenu,
  .primary-nav__submenu-item--has-submenu:focus-within .primary-nav__nested-submenu {
    display: none;
  }

  .primary-nav__submenu-toggle[aria-expanded="true"] + .primary-nav__nested-submenu {
    display: block;
  }

  .primary-nav__nested-submenu a {
    padding: 0.5rem 0.25rem;
    white-space: normal;
  }

  .primary-nav .button {
    margin-top: 0.85rem;
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .button-row .button {
    width: 100%;
  }
}

/* Position relative for header so mobile nav anchors correctly */
.site-header__inner {
  position: relative;
}

/* ==========================================================================
   Guide library (index + cards)
   ========================================================================== */
.guide-index .guide-section:nth-child(even) {
  background: var(--background-muted);
}

.guide-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--cta-orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background-muted);
}

.guide-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
}

.guide-card__label {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: var(--background-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.guide-card__title {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0.1rem 0 0;
}

.guide-card__title a {
  color: var(--brand-navy);
  text-decoration: none;
}

.guide-card__title a:hover {
  color: var(--cta-orange-hover);
  text-decoration: underline;
}

.guide-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.guide-card__meta {
  color: var(--text-subtle);
  font-size: 0.82rem;
  margin: 0;
}

.guide-card__links {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.guide-card__links a {
  color: var(--cta-orange-hover);
  text-decoration: none;
}

.guide-card__links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Guide article (Markdown-rendered)
   ========================================================================== */
.guide-article__header .lead {
  max-width: 60ch;
}

.guide-article__meta {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-subtle);
}

.guide-article__meta a {
  color: var(--brand-navy);
  font-weight: 600;
}

/* Featured image on pillar articles (aligns with the article body width) */
.guide-featured-image {
  max-width: 74ch;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
  background: var(--background-muted);
  box-shadow: var(--shadow-sm);
}

.guide-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-article__content {
  max-width: 74ch;
  margin-inline: auto;
  color: var(--text);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.08rem);
  line-height: 1.7;
}

.guide-article__content > h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  line-height: 1.25;
  margin: 2.2rem 0 0.85rem;
  scroll-margin-top: 5rem;
}

.guide-article__content > h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.3;
  margin: 1.6rem 0 0.6rem;
}

.guide-article__content > p {
  margin: 0 0 1.05rem;
}

.guide-article__content > ul,
.guide-article__content > ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.guide-article__content li {
  margin-bottom: 0.45rem;
}

.guide-article__content a {
  color: var(--info);
  text-underline-offset: 2px;
}

.guide-article__content a:hover {
  color: var(--brand-navy);
}

.guide-article__content strong {
  color: var(--text);
}

/* Blockquote rendered as a resource-style callout */
.article-callout {
  margin: 1.5rem 0;
  padding: clamp(1rem, 2.2vw, 1.4rem) clamp(1.1rem, 2.4vw, 1.6rem);
  background: var(--background-muted);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta-orange);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.article-callout p {
  margin: 0;
}

/* Markdown tables: scrollable on small screens, readable on large */
.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.guide-article__content table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.guide-article__content thead th {
  background: var(--brand-navy);
  color: #fff;
  text-align: left;
  font-weight: 600;
  vertical-align: bottom;
}

.guide-article__content th,
.guide-article__content td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.guide-article__content tbody th[scope="row"] {
  font-weight: 600;
  color: var(--brand-navy);
  background: var(--background-muted);
}

.guide-article__content tbody tr:last-child th,
.guide-article__content tbody tr:last-child td {
  border-bottom: 0;
}

/* Article footer: related resource + related guides */
.related-resources,
.related-guides {
  max-width: 74ch;
  margin-inline: auto;
}

.resource-callout-grid {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 520px) {
  .guide-article__content table {
    min-width: 30rem;
  }
}

/* ==========================================================================
   Motion (restrained, opt-in)
   Subtle opacity focus for secondary card scrollers only. Disabled under
   reduced-motion and only runs where scroll-driven timelines are supported.
   Opt in per element with data-animate="subtle".
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .overflow-scroller[data-animate="subtle"] > * {
      animation: scroller-focus linear both;
      animation-timeline: view(inline);
    }
  }
}

@keyframes scroller-focus {
  0%,
  100% {
    opacity: 0.86;
  }
  35%,
  65% {
    opacity: 1;
  }
}
