/* ==========================================================================
   CIVADOS — shared design system
   Canonical lapidary palette + three-family type system + shared primitives
   (header, navigation, buttons, rules, footer, focus states).

   Scope: intended to be enqueued site-wide from the generatepress-child
   theme so the homepage and the inner service pages finally share one
   source. Everything is namespaced `cvd-` so it cannot collide with the
   existing per-page `wa-*` / `.btn` / `.panel-*` CSS still inlined on the
   service pages.

   Source of truth: 02-APPROVED-DESIGN-SPEC.md, 04-IMPLEMENTATION-TECHNICAL-SPEC.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Measured contrast on Warm Parchment #FDF9ED:
     Ink Navy      #1C293A            13.8 : 1   AAA
     Ink Soft      rgba(28,41,58,.76)  6.6 : 1   AA
     Dark Gold     #85652A             5.1 : 1   AA   (small text)
     Warm Gold     #C19F6A             2.4 : 1   FAILS — rules / fills / large only
   On Ink Navy #1C293A:
     Warm Parchment #FDF9ED           13.8 : 1   AAA
     On-navy body   rgba(253,249,237,.82)  9.8 : 1  AA
     Warm Gold      #C19F6A            5.8 : 1   AA
   -------------------------------------------------------------------------- */
:root {
  /* Field */
  --cvd-parchment:      #FDF9ED;
  --cvd-parchment-soft: #F4EFE5;
  --cvd-parchment-deep: #EDE5D5;   /* submenu / hover surface only */

  /* Authority */
  --cvd-navy:           #1C293A;
  --cvd-navy-deep:      #141F2C;   /* hero scrim base only, never text */

  /* Gilding */
  --cvd-gold:           #C19F6A;   /* rules, fills, large accents, gold-on-navy */
  --cvd-gold-ink:       #85652A;   /* small gold text on parchment ONLY */

  /* Ink */
  --cvd-ink:            var(--cvd-navy);
  --cvd-ink-soft:       rgba(28, 41, 58, .76);
  /* .70 not .62 — measured 5.4:1 on parchment and 5.2:1 on parchment-soft.
     At .62 the calculator legend, hints, affixes and labels all measured
     4.1–4.3:1 and failed AA for small text. */
  --cvd-ink-quiet:      rgba(28, 41, 58, .70);
  --cvd-rule:           rgba(28, 41, 58, .16);
  --cvd-rule-soft:      rgba(28, 41, 58, .09);

  /* On navy */
  --cvd-on-navy:        rgba(253, 249, 237, .82);
  --cvd-on-navy-quiet:  rgba(253, 249, 237, .62);
  --cvd-rule-on-navy:   rgba(253, 249, 237, .18);

  /* Type — exactly three families */
  --cvd-wordmark: "Cinzel", Georgia, serif;
  --cvd-serif:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --cvd-mono:     "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  /* Geometry */
  --cvd-shell:  1200px;
  --cvd-gutter: clamp(20px, 4.5vw, 48px);
  --cvd-header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
.cvd-scope *,
.cvd-scope *::before,
.cvd-scope *::after { box-sizing: border-box; }

.cvd-scope {
  /* The UA default body margin is 8px. GeneratePress resets it, but the local
     preview does not inherit that, and without it the hero is not full bleed. */
  margin: 0;
  background: var(--cvd-parchment);
  color: var(--cvd-ink);
  font-family: var(--cvd-serif);
  font-size: 18px;
  line-height: 1.78;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cvd-scope img { max-width: 100%; display: block; }

/* Base element rules use :where() so a component class always wins without
   an escalating-specificity war. `.cvd-scope h2` would outrank `.cvd-hero h2`. */
.cvd-scope :where(h1, h2, h3, h4) { margin: 0; color: var(--cvd-ink); font-family: var(--cvd-serif); }

.cvd-scope :where(h1) {
  font-weight: 300;
  font-size: clamp(2.35rem, 1.25rem + 3.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.012em;
}
.cvd-scope :where(h2) {
  font-weight: 400;
  font-size: clamp(1.85rem, 1.05rem + 2.4vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -.014em;
}
.cvd-scope :where(h3) {
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -.005em;
}

.cvd-scope :where(p) { margin: 0 0 1.15em; color: var(--cvd-ink-soft); }
.cvd-scope :where(p:last-child) { margin-bottom: 0; }

.cvd-lede {
  font-size: clamp(1.02rem, .96rem + .28vw, 1.15rem);
  line-height: 1.66;
  color: rgba(28, 41, 58, .84);
}

/* Editorial label above a heading */
.cvd-eyebrow {
  display: block;
  font-family: var(--cvd-mono);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cvd-gold-ink);
  margin: 0 0 1.15rem;
}
/* Registry / marginalia label */
.cvd-label {
  display: block;
  font-family: var(--cvd-mono);
  font-weight: 400;
  font-size: .625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cvd-ink-quiet);
  margin: 0 0 .85rem;
}

/* Dark field inversion */
.cvd-on-navy { background: var(--cvd-navy); color: var(--cvd-on-navy); }
.cvd-on-navy h1,
.cvd-on-navy h2,
.cvd-on-navy h3,
.cvd-on-navy h4 { color: var(--cvd-parchment); }
.cvd-on-navy p { color: var(--cvd-on-navy); }
.cvd-on-navy .cvd-eyebrow { color: var(--cvd-gold); }
.cvd-on-navy .cvd-label { color: var(--cvd-on-navy-quiet); }

/* --------------------------------------------------------------------------
   3. Rules — thin architectural lines, never decorative filler
   -------------------------------------------------------------------------- */
.cvd-rule      { height: 1px; border: 0; margin: 0; background: var(--cvd-rule); }
.cvd-rule--gold{ height: 1px; border: 0; margin: 0; background: var(--cvd-gold); width: 56px; }
.cvd-on-navy .cvd-rule { background: var(--cvd-rule-on-navy); }

/* --------------------------------------------------------------------------
   4. Shell
   -------------------------------------------------------------------------- */
.cvd-shell {
  width: 100%;
  max-width: var(--cvd-shell);
  margin-inline: auto;
  padding-inline: var(--cvd-gutter);
}
/* The 1200px shell is the content measure everywhere. Only hero artwork bleeds
   past it, and it does so as a positioned layer rather than a wider shell. */

/* --------------------------------------------------------------------------
   5. Buttons — square corners, IBM Plex Mono, high tracking
   -------------------------------------------------------------------------- */
.cvd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  font-family: var(--cvd-mono);
  font-weight: 600;
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cvd-btn--primary { background: var(--cvd-navy); color: var(--cvd-parchment); border-color: var(--cvd-navy); }
.cvd-btn--primary:hover,
.cvd-btn--primary:focus-visible { background: var(--cvd-gold-ink); border-color: var(--cvd-gold-ink); color: var(--cvd-parchment); }

.cvd-btn--gold { background: var(--cvd-gold); color: #1B1408; border-color: var(--cvd-gold); }
.cvd-btn--gold:hover,
.cvd-btn--gold:focus-visible { background: var(--cvd-parchment); border-color: var(--cvd-parchment); color: var(--cvd-navy); }

.cvd-btn--outline { background: transparent; color: rgba(28, 41, 58, .86); border-color: var(--cvd-rule); }
.cvd-btn--outline:hover,
.cvd-btn--outline:focus-visible { border-color: var(--cvd-navy); color: var(--cvd-navy); }

.cvd-btn--ghost { background: transparent; color: var(--cvd-parchment); border-color: rgba(253, 249, 237, .48); }
.cvd-btn--ghost:hover,
.cvd-btn--ghost:focus-visible { border-color: var(--cvd-parchment); background: rgba(253, 249, 237, .12); color: var(--cvd-parchment); }

/* Text link with a rule under it */
.cvd-textlink {
  display: inline-block;
  font-family: var(--cvd-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cvd-gold-ink);
  border-bottom: 1px solid var(--cvd-gold);
  padding-bottom: .35em;
  transition: color .16s ease, border-color .16s ease;
}
.cvd-textlink:hover { color: var(--cvd-navy); border-bottom-color: var(--cvd-navy); }
.cvd-on-navy .cvd-textlink { color: var(--cvd-gold); }
.cvd-on-navy .cvd-textlink:hover { color: var(--cvd-parchment); border-bottom-color: var(--cvd-parchment); }

/* --------------------------------------------------------------------------
   6. Focus — visible on both fields
   -------------------------------------------------------------------------- */
.cvd-scope a:focus-visible,
.cvd-scope button:focus-visible,
.cvd-scope input:focus-visible,
.cvd-scope [tabindex]:focus-visible {
  outline: 2px solid var(--cvd-gold-ink);
  outline-offset: 3px;
}
.cvd-on-navy a:focus-visible,
.cvd-on-navy button:focus-visible,
.cvd-btn--ghost:focus-visible,
.cvd-btn--gold:focus-visible,
.cvd-header__nav a:focus-visible,
.cvd-header__nav button:focus-visible { outline-color: var(--cvd-gold); }

/* --------------------------------------------------------------------------
   7. Skip link
   -------------------------------------------------------------------------- */
.cvd-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cvd-navy);
  color: var(--cvd-parchment);
  font-family: var(--cvd-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.5rem;
}
.cvd-skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   8. Wordmark — live text, CIV navy / ADOS gold
   -------------------------------------------------------------------------- */
.cvd-wordmark {
  font-family: var(--cvd-wordmark);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: .17em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: var(--cvd-navy);
}
.cvd-wordmark__ados { color: var(--cvd-gold-ink); }
.cvd-on-navy .cvd-wordmark { color: var(--cvd-parchment); }
.cvd-on-navy .cvd-wordmark__ados { color: var(--cvd-gold); }

/* --------------------------------------------------------------------------
   9. Header + primary navigation
   The submenu is hidden at rest by an explicit, high-specificity rule so a
   broader `nav ul { display:flex }` can never re-open it (the prototype defect).
   -------------------------------------------------------------------------- */
.cvd-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--cvd-parchment);
  border-bottom: 1px solid var(--cvd-rule);
}
.cvd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--cvd-header-h);
}

.cvd-header__nav { display: flex; align-items: center; }
.cvd-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.9vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.cvd-header__menu > li { position: relative; }

.cvd-header__link,
.cvd-header__disclosure {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--cvd-mono);
  font-size: .655rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(28, 41, 58, .82);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: .55rem 0;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.cvd-header__link:hover,
.cvd-header__disclosure:hover,
.cvd-header__link[aria-current="page"] { color: var(--cvd-navy); border-bottom-color: var(--cvd-gold); }

.cvd-header__caret {
  width: .5em; height: .5em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
  opacity: .6;
  transition: transform .18s ease;
}
.cvd-header__disclosure[aria-expanded="true"] .cvd-header__caret { transform: translateY(.1em) rotate(-135deg); }

/* Submenu: hidden at rest. `display:none` wins over any inherited flex rule. */
.cvd-header__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.1rem;
  min-width: 254px;
  margin: 0;
  padding: .6rem 0;
  list-style: none;
  background: var(--cvd-parchment-soft);
  border: 1px solid var(--cvd-rule);
}
.cvd-header__submenu[data-open="true"] { display: block; }
/* Fallback for the no-JavaScript case only. With JS the disclosure button is
   the single source of truth, so `aria-expanded` always matches what is on
   screen and Escape genuinely closes the menu — a :focus-within rule would
   keep it painted while the button reported itself collapsed. */
.no-js .cvd-header__item--has-sub:hover > .cvd-header__submenu,
.no-js .cvd-header__item--has-sub:focus-within > .cvd-header__submenu { display: block; }
.cvd-header__submenu a {
  display: block;
  font-family: var(--cvd-mono);
  font-size: .655rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(28, 41, 58, .82);
  padding: .75rem 1.15rem;
}
.cvd-header__submenu a:hover { background: var(--cvd-parchment-deep); color: var(--cvd-navy); }

/* The header CTA exists twice in the DOM: once beside the nav for desktop and
   once inside the panel for mobile. Exactly one is ever displayed. */
.cvd-header__cta { padding: .85em 1.45em; font-size: .625rem; min-height: 40px; }
.cvd-header__nav .cvd-header__cta { display: none; }

.cvd-burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  font: inherit;            /* otherwise the UA default (Arial) leaks in */
  background: none;
  border: 1px solid var(--cvd-rule);
  color: var(--cvd-navy);
  cursor: pointer;
}
.cvd-burger span { display: block; width: 18px; height: 1px; background: currentColor; margin: 4px auto; }

/* ---- Mobile navigation ---- */
@media (max-width: 900px) {
  .cvd-burger { display: block; }
  .cvd-header__inner > .cvd-header__cta { display: none; }

  .cvd-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cvd-parchment);
    border-bottom: 1px solid var(--cvd-rule);
    padding: .5rem var(--cvd-gutter) 1.5rem;
    max-height: calc(100vh - var(--cvd-header-h));
    overflow-y: auto;
  }
  .cvd-header__nav[data-open="true"] { display: block; }
  /* Without JavaScript the menu is always available rather than unreachable. */
  .no-js .cvd-header__nav { display: block; position: static; padding: 0 0 1rem; border: 0; }
  .no-js .cvd-burger { display: none; }

  .cvd-header__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .cvd-header__menu > li { border-bottom: 1px solid var(--cvd-rule-soft); }
  .cvd-header__link,
  .cvd-header__disclosure {
    width: 100%;
    min-height: 48px;
    padding: .9rem 0;
    border-bottom: 0;
    justify-content: space-between;
  }
  .cvd-header__submenu {
    position: static;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 0 .5rem .9rem;
  }
  .cvd-header__submenu a { padding: .8rem 0; min-height: 44px; display: flex; align-items: center; }
  .no-js .cvd-header__submenu { display: block; }

  .cvd-header__nav .cvd-header__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 1.25rem;
    min-height: 48px;
  }
}

/* ==========================================================================
   9c. CANONICAL GLOBAL HEADER (GeneratePress markup)
   ==========================================================================
   One header for the whole site. These rules restyle GeneratePress's own
   header/navigation to match the homepage header exactly, so every page
   inherits the same thing from the theme rather than from page-level markup.

   All measurements come from the homepage header and are shared through the
   --cvd-* variables above, so nothing is page-specific.

   Specificity is matched to GeneratePress's own selectors
   (`.main-navigation .main-nav ul li a` = 0,4,1) rather than fought with
   !important. The only !important in this block is the one that suppresses
   GeneratePress's transparent sub-menu default, which is set inline by the
   theme's dynamic CSS and cannot be reached otherwise.
   -------------------------------------------------------------------------- */

.site-header {
	position: relative;              /* anchor for the mobile panel */
	background: var(--cvd-parchment);
	border-bottom: 1px solid var(--cvd-rule);
}

.site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--cvd-shell);
	margin-inline: auto;
	padding: 0 var(--cvd-gutter);
	min-height: var(--cvd-header-h);
}

/* GeneratePress wraps the logo in .site-branding when a site title exists. */
.site-header .site-branding,
.site-header .site-logo {
	margin: 0;
	padding: 0;
	background: none;
}

/* ---- Navigation shell ---- */
.site-header .main-navigation,
.site-header .main-navigation .inside-navigation {
	background: none;
	min-height: 0;
	padding: 0;
	margin: 0;
	max-width: none;
}
.site-header .main-navigation .main-nav > ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 1.7vw, 1.9rem);
}

/* ---- Top-level links ---- */
.site-header .main-navigation .main-nav ul li a,
.site-header .main-navigation .menu-toggle {
	font-family: var(--cvd-mono);
	font-size: .655rem;
	font-weight: 500;
	letter-spacing: .17em;
	text-transform: uppercase;
	line-height: 1;
	color: rgba(28, 41, 58, .82);
	background: none;
	padding: .55rem 0;
	border-bottom: 1px solid transparent;
	transition: color .16s ease, border-color .16s ease;
}
.site-header .main-navigation .main-nav ul li a:hover,
.site-header .main-navigation .main-nav ul li a:focus {
	color: var(--cvd-gold-ink);
	background: none;
	border-bottom-color: var(--cvd-gold);
}

/* Active page, and Services while viewing one of its children. */
.site-header .main-navigation .main-nav ul li.current-menu-item > a,
.site-header .main-navigation .main-nav ul li.current-menu-parent > a,
.site-header .main-navigation .main-nav ul li.current-menu-ancestor > a,
.site-header .main-navigation .main-nav ul li.current_page_item > a {
	color: var(--cvd-navy);
	border-bottom-color: var(--cvd-gold);
}

/* Focus ring — visible on the parchment field. */
.site-header .main-navigation .main-nav ul li a:focus-visible,
.site-header .main-navigation .menu-toggle:focus-visible {
	outline: 2px solid var(--cvd-gold-ink);
	outline-offset: 3px;
}

/* ---- Services dropdown ---- */
.site-header .main-navigation .main-nav ul ul {
	background: var(--cvd-parchment-soft) !important; /* overrides GP dynamic inline CSS */
	border: 1px solid var(--cvd-rule);
	box-shadow: 0 14px 34px rgba(28, 41, 58, .10);
	width: 264px;
	padding: .5rem 0;
	top: 100%;
}
.site-header .main-navigation .main-nav ul ul li a {
	display: block;
	padding: .8rem 1.15rem;
	font-size: .655rem;
	letter-spacing: .13em;
	line-height: 1.35;
	border-bottom: 0;
	text-decoration: none;
}
.site-header .main-navigation .main-nav ul ul li a:hover,
.site-header .main-navigation .main-nav ul ul li a:focus {
	background: var(--cvd-parchment-deep);
	color: var(--cvd-gold-ink);
	border-bottom: 0;
}
.site-header .main-navigation .main-nav ul ul li.current-menu-item > a {
	color: var(--cvd-navy);
	border-bottom: 0;
}
/* GeneratePress prints its own caret span; suppress it so there is only one. */
.site-header .main-navigation .main-nav ul li a .dropdown-menu-toggle { display: none; }

.site-header .main-navigation .main-nav ul li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: .42em;
	height: .42em;
	margin-left: .5em;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-.15em) rotate(45deg);
	opacity: .6;
}

/* ---- CTA button (a menu item carrying the cvd-cta class) ---- */
.site-header .main-navigation .main-nav ul li.cvd-cta { margin-left: .35rem; }
.site-header .main-navigation .main-nav ul li.cvd-cta > a {
	/* GeneratePress pages have no global border-box reset, so width:100% on
	   mobile would otherwise add padding on top and overflow the panel. */
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: .85em 1.45em;
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .2em;
	color: var(--cvd-parchment);
	background: var(--cvd-navy);
	border: 1px solid var(--cvd-navy);
	border-bottom-color: var(--cvd-navy);
	border-radius: 0;
	white-space: nowrap;
}
.site-header .main-navigation .main-nav ul li.cvd-cta > a:hover,
.site-header .main-navigation .main-nav ul li.cvd-cta > a:focus {
	background: var(--cvd-gold-ink);
	border-color: var(--cvd-gold-ink);
	color: var(--cvd-parchment);
}
.site-header .main-navigation .main-nav ul li.cvd-cta > a::after { content: none; }

/* ---- Mobile ---- */
.site-header .main-navigation .menu-toggle {
	min-height: 44px;
	padding: .6rem .9rem;
	color: var(--cvd-navy);
}
@media (max-width: 1024px) {
	/* Logo left, toggle right, panel full width beneath. */
	.site-header .inside-header { flex-wrap: wrap; align-items: center; }
	.site-header .site-branding,
	.site-header .site-logo { order: 1; flex: 0 0 auto; }
	/* The toggle shrinks to its own width beside the logo; the panel is taken
	   out of flow and spans the full header, so it can never widen the row. */
	/* static so the absolutely-positioned panel below resolves against
	   .site-header rather than against GeneratePress's relative nav wrapper. */
	.site-header .main-navigation { order: 2; flex: 0 0 auto; margin-left: auto; position: static; }
	/* GeneratePress makes .inside-navigation relative; that would become the
	   panel's containing block and pin it to the toggle's 71px width. */
	.site-header .main-navigation .inside-navigation { display: block; position: static; }
	.site-header .main-navigation .menu-toggle {
		width: auto;
		margin: 0;
		padding: .6rem 0 .6rem .9rem;
	}
	.site-header .main-navigation .main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 60;
		background: var(--cvd-parchment);
		border-bottom: 1px solid var(--cvd-rule);
		padding: .25rem var(--cvd-gutter) 1.25rem;
		max-height: calc(100vh - var(--cvd-header-h));
		overflow-y: auto;
	}
	.site-header .main-navigation .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-header .main-navigation .main-nav ul li a { padding: .95rem 0; min-height: 48px; display: flex; align-items: center; }
	.site-header .main-navigation .main-nav ul ul {
		width: 100%;
		border: 0;
		box-shadow: none;
		background: transparent !important;
		padding: 0 0 .4rem .9rem;
	}
	.site-header .main-navigation .main-nav ul li.cvd-cta { margin: .9rem 0 .4rem; }
	.site-header .main-navigation .main-nav ul li.cvd-cta > a { width: 100%; min-height: 48px; }
}

/* --------------------------------------------------------------------------
   10. Canonical footer — rendered exactly once
   -------------------------------------------------------------------------- */
.cvd-footer {
  background: var(--cvd-navy);
  color: var(--cvd-on-navy);
  padding: clamp(3.25rem, 6vw, 5rem) 0 2.5rem;
}
.cvd-footer__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cvd-rule-on-navy);
}
.cvd-footer .cvd-wordmark { display: inline-block; font-size: 1.5rem; margin-bottom: 1.1rem; }
.cvd-footer__creed {
  font-family: var(--cvd-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--cvd-on-navy);
  margin: 0;
  max-width: 30ch;
}
.cvd-footer__services {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
}
.cvd-footer__services li {
  font-family: var(--cvd-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cvd-on-navy);
}
.cvd-footer__contact {
  margin: 1.5rem 0 0;
  font-family: var(--cvd-mono);
  font-size: .78rem;
  line-height: 2.1;
  letter-spacing: .03em;
  color: var(--cvd-on-navy);
}
.cvd-footer__contact a {
  color: var(--cvd-parchment);
  text-decoration: none;
  border-bottom: 1px solid rgba(193, 159, 106, .6);
}
.cvd-footer__contact a:hover { color: var(--cvd-gold); border-bottom-color: var(--cvd-gold); }
.cvd-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.8rem;
  font-family: var(--cvd-mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cvd-on-navy-quiet);
}
.cvd-footer__bottom p { margin: 0; color: inherit; }
.cvd-footer__legal { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.cvd-footer__legal a { color: var(--cvd-on-navy); text-decoration: none; padding: .35rem 0; }
.cvd-footer__legal a:hover { color: var(--cvd-gold); }

@media (max-width: 820px) {
  .cvd-footer__top { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* --------------------------------------------------------------------------
   11. Touch targets
   On small screens every link gets a 44px-tall hit area. Rules and baselines
   do not move: only the padding around the text grows. Declared after the
   footer block so it wins on equal specificity.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .cvd-textlink { padding-top: .95rem; padding-bottom: .6rem; }
  .cvd-footer__contact { line-height: 2.6; }
  .cvd-footer__contact a { display: inline-block; padding-block: .55rem; }
  .cvd-footer__legal { gap: 0 1.4rem; }
  .cvd-footer__legal a { padding-block: .85rem; }
  .cvd-footer .cvd-wordmark { display: inline-block; padding-block: .68rem; }
  .cvd-header .cvd-wordmark { display: inline-block; padding-block: .78rem; }
}

/* --------------------------------------------------------------------------
   12. Reduced motion — the static page is the complete experience
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cvd-scope *,
  .cvd-scope *::before,
  .cvd-scope *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
