/*
 * CAH Design System - override layer.
 *
 * Loaded after the theme and after Elementor's generated kit CSS.
 *
 * Elementor Theme Style emits rules like ".elementor-kit-4 button", which has
 * higher specificity than a single component class. Rather than sprinkling
 * !important through the component layer, the small number of genuine clashes
 * are resolved here with an explicit, documented specificity bump.
 *
 * Keep this file short. If it starts growing, the component layer is fighting
 * the kit and the kit should be corrected instead.
 */

/* ---- Buttons that are deliberately not Elementor buttons ---- */
.cah button.cah-navlink,
.cah button.cah-nav-toggle,
.cah button.cah-accordion__trigger,
.cah button.cah-navpanel__trigger,
.cah button.cah-cc__choice {
  background-color: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  color: inherit;
}

.cah button.cah-navlink {
  /* Hello Elementor's reset.css matches [type="button"] at the same
   * specificity (0,1,0) as .cah-navlink and loads after components.css, so
   * it wins the display tie on source order and collapses the button to
   * inline-block, dropping the chevron onto its own line below the label.
   * Restate the flex layout here, scoped one level more specific, so it
   * wins outright without needing !important. */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cah-text-soft);
  padding: 9px 12px;
  border-radius: var(--cah-radius-sm);
  font: var(--cah-fw-medium) var(--cah-fs-nav)/1.2 var(--cah-font-sans);
}
.cah button.cah-navlink:hover,
.cah [data-cah-mega].is-open button.cah-navlink {
  color: var(--cah-primary);
  background-color: var(--cah-primary-tint);
}

.cah button.cah-accordion__trigger {
  color: var(--cah-primary);
  font: var(--cah-fw-semibold) var(--cah-fs-h4)/1.4 var(--cah-font-sans);
  padding: var(--cah-space-5) 0;
  border-radius: 0;
  /* The kit styles buttons as inline-block with nowrap, which stopped these
     labels wrapping and pushed a horizontal scrollbar onto phone layouts. */
  display: flex;
  width: 100%;
  white-space: normal;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--cah-space-4);
}
.cah button.cah-accordion__trigger:hover { color: var(--cah-secondary-strong); background-color: transparent; }

.cah button.cah-navpanel__trigger {
  color: var(--cah-primary);
  font: var(--cah-fw-semibold) var(--cah-fs-body-lg)/1.3 var(--cah-font-sans);
  padding: var(--cah-space-3) 0;
  border-radius: 0;
  display: flex;
  width: 100%;
  white-space: normal;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  gap: var(--cah-space-4);
}

/* The toggle is hidden on desktop; the theme reset sets buttons to display:block. */
.cah button.cah-nav-toggle { display: none; }
@media (max-width: 1200px) {
  .cah button.cah-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cah-tap-min);
    height: var(--cah-tap-min);
    margin-left: auto;
    border: 1px solid var(--cah-border);
    border-radius: var(--cah-radius-sm);
    background-color: var(--cah-surface);
    color: var(--cah-primary);
  }
}
/* The close control inside the mobile panel is always visible while the panel is. */
.cah .cah-navpanel button.cah-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cah-tap-min);
  height: var(--cah-tap-min);
  margin-left: 0;
  border: 1px solid var(--cah-border);
  border-radius: var(--cah-radius-sm);
  background-color: var(--cah-surface);
  color: var(--cah-primary);
}

/* ---- Our own button component must beat the kit's button styling ---- */
.cah a.cah-btn,
.cah button.cah-btn,
.cah input.cah-btn {
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--cah-control-radius);
  font: var(--cah-fw-semibold) var(--cah-fs-button)/1.2 var(--cah-font-sans);
  text-decoration: none;
  padding: 0 var(--cah-space-6);
  min-height: var(--cah-control-h);
}
.cah a.cah-btn--lg, .cah button.cah-btn--lg { min-height: var(--cah-control-h-lg); padding-inline: var(--cah-space-8); font-size: var(--cah-fs-body-lg); }
.cah a.cah-btn--sm, .cah button.cah-btn--sm { min-height: var(--cah-control-h-sm); padding-inline: var(--cah-space-4); font-size: var(--cah-fs-small); }
.cah a.cah-btn:hover, .cah button.cah-btn:hover { background-color: var(--cah-primary-soft); color: var(--btn-fg); }
.cah a.cah-btn--accent:hover, .cah button.cah-btn--accent:hover { background-color: var(--cah-accent-strong); color: #fff; }
.cah a.cah-btn--secondary:hover, .cah button.cah-btn--secondary:hover { background-color: var(--cah-secondary-strong); color: #fff; }
.cah a.cah-btn--outline:hover, .cah button.cah-btn--outline:hover { background-color: var(--cah-primary-tint); color: var(--cah-primary); border-color: var(--cah-primary); }
.cah a.cah-btn--ghost:hover, .cah button.cah-btn--ghost:hover { background-color: var(--cah-primary-tint); color: var(--cah-primary); }
.cah a.cah-btn--on-dark:hover { background-color: var(--cah-neutral-100); color: var(--cah-primary); }
.cah a.cah-btn--outline-on-dark:hover { background-color: rgba(255,255,255,.10); color: #fff; }

/* ---- Form controls ---- */
.cah input.cah-input,
.cah select.cah-select,
.cah textarea.cah-textarea {
  background-color: var(--cah-surface);
  border: 1px solid var(--cah-border-strong);
  border-radius: var(--cah-control-radius);
  color: var(--cah-text);
  font: var(--cah-fw-regular) var(--cah-fs-body)/1.4 var(--cah-font-sans);
  min-height: var(--cah-control-h);
  padding: 12px 14px;
}
.cah input.cah-input:focus,
.cah select.cah-select:focus,
.cah textarea.cah-textarea:focus {
  border-color: var(--cah-secondary);
  box-shadow: 0 0 0 3px var(--cah-secondary-tint);
  outline: none;
}

/* ---- Header layout at the desktop-to-mobile transition ---- */
@media (max-width: 1200px) {
  .cah .cah-header__nav { display: none; }
  .cah .cah-header__actions .cah-btn--nav-cta,
  .cah .cah-header__actions .cah-navlink--utility { display: none; }
  .cah .cah-header__inner { min-height: var(--cah-header-h-mobile); gap: var(--cah-space-3); }
}
@media (min-width: 1201px) and (max-width: 1340px) {
  .cah .cah-header__nav { gap: 0; }
  .cah button.cah-navlink, .cah a.cah-navlink { padding-inline: 9px; font-size: 0.9375rem; }
}

/* Nav links must not wrap mid-label. */
.cah .cah-header__nav .cah-navlink { white-space: nowrap; }
.cah .cah-header__brand { white-space: nowrap; }


/* ---- Link colours inside our own components ----
 * Elementor's kit emits ".elementor-kit-N a { color: ... }", which ties with a
 * single component class and wins on load order. These restate the intended
 * colour at a specificity the kit cannot beat.
 */
.cah .cah-footer a { color: var(--cah-text-invert-muted); text-decoration: none; }
.cah .cah-footer a:hover { color: #fff; text-decoration: underline; }
.cah .cah-footer__brand { color: #fff; }

.cah a.cah-header__brand { color: var(--cah-primary); text-decoration: none; }
.cah a.cah-navlink { color: var(--cah-text-soft); text-decoration: none; }
.cah a.cah-navlink:hover { color: var(--cah-primary); background-color: var(--cah-primary-tint); }
.cah a.cah-mega__link { color: var(--cah-text); text-decoration: none; }
.cah a.cah-mega__link:hover { color: var(--cah-primary); }
.cah a.cah-navpanel__link { color: var(--cah-primary); text-decoration: none; }
.cah .cah-navpanel__sub a { color: var(--cah-text-soft); text-decoration: none; }
.cah .cah-breadcrumbs a { color: var(--cah-text-muted); text-decoration: none; }
.cah .cah-breadcrumbs a:hover { color: var(--cah-link); text-decoration: underline; }
.cah .cah-toc a { color: var(--cah-text-muted); text-decoration: none; }
.cah .cah-toc a[aria-current] { color: var(--cah-primary); }
.cah .cah-card a.cah-card__link { color: var(--cah-primary); text-decoration: none; }
.cah .cah-section--invert a:not(.cah-btn) { color: #fff; }
.cah .cah-stat__source a { color: inherit; }

/* Headings inside inverted sections stay legible regardless of kit colours. */
.cah .cah-section--invert h1,
.cah .cah-section--invert h2,
.cah .cah-section--invert h3,
.cah .cah-section--invert h4 { color: #fff; }
.cah .cah-section--invert .cah-muted { color: var(--cah-text-invert-muted); }


/* ---- Hero sits on a dark band, so its headings must not inherit the kit's
 * dark heading colour. ".cah h1" ties with ".elementor-kit-N h1"; these win. */
.cah .cah-hero h1,
.cah .cah-hero .cah-hero__title { color: #fff; }
.cah .cah-hero .cah-hero__lede { color: var(--cah-text-invert-muted); }
.cah .cah-hero .cah-path__label { color: #fff; }

/* ---- Inline icons ---- */
.cah svg.cah-icon { display: block; flex: none; max-width: none; height: auto; }

/* ---- Keep the primary call to action reachable on tablet ----
 * Hiding it at the first breakpoint pushed the main conversion path behind a
 * menu on the most common tablet widths.
 */
@media (max-width: 1200px) and (min-width: 641px) {
  .cah .cah-header__actions .cah-btn--nav-cta { display: inline-flex; }
}
@media (max-width: 640px) {
  .cah .cah-header__actions .cah-btn--nav-cta { display: none; }
}


/* The main landmark is focusable so the skip link genuinely moves focus,
   but it must never show a focus ring when reached by mouse. */
.cah .cah-main:focus { outline: none; }
.cah .cah-main:focus-visible { outline: 3px solid var(--cah-focus-ring); outline-offset: -3px; }


/* Any control of ours that carries a text label must be free to wrap.
   Elementor's kit sets buttons to nowrap, which overflows narrow viewports. */
.cah button.cah-choice,
.cah label.cah-choice,
.cah button.cah-cc__back,
.cah a.cah-btn,
.cah button.cah-btn {
  white-space: normal;
}
.cah .cah-accordion__trigger > span:first-child,
.cah .cah-navpanel__trigger > span:first-child { min-width: 0; }
.cah .cah-accordion__icon { flex: none; }


/* ==================================================================
 * PREMIUM LAYER v2
 * Brand marks, elevated chrome, and a tightened motion language.
 * Loaded last so it refines the component layer without forking it.
 * ================================================================== */

/* ------------------------------------------------------------------
 * 1. Brand marks
 * The logo is applied as a background so the accessible brand text
 * stays in the DOM and in the accessibility tree. Vector at every
 * size, one HTTP request, cached across the whole site.
 * ------------------------------------------------------------------ */
.cah-header__brand {
  display: block;
  width: clamp(164px, 16vw, 208px);
  aspect-ratio: 600 / 159;
  background: url("../brand/logo-header.svg") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  flex: none;
  transition: transform var(--cah-dur) var(--cah-ease-out), opacity var(--cah-dur) var(--cah-ease-out);
}
.cah-header__brand > svg,
.cah-header__brand > span { display: none; }
.cah-header__brand:hover { transform: translateY(-1px); opacity: .9; }
.cah-header__brand:focus-visible { outline-offset: 6px; }

/* On a dark header or the mobile panel, swap to the reversed lockup. */
.cah-header--invert .cah-header__brand,
.cah-navpanel .cah-header__brand,
.cah-section--invert .cah-header__brand {
  background-image: url("../brand/logo-header-reversed.svg");
}

/* When a custom business logo image is configured (CAH_Config 'business_logo'),
 * the widget renders an <img> instead of the icon+text fallback. The rules
 * above always paint the default lockup as a background regardless of that,
 * so the uploaded image and the default background logo rendered on top of
 * each other. Suppress the background lockup whenever an <img> is present so
 * only one logo shows, in every header state and at every screen size. */
.cah-header__brand:has(> img) {
  display: flex;
  align-items: center;
  width: auto;
  aspect-ratio: auto;
  background: none;
  text-indent: 0;
  overflow: visible;
}
.cah-header--invert .cah-header__brand:has(> img),
.cah-navpanel .cah-header__brand:has(> img),
.cah-section--invert .cah-header__brand:has(> img) {
  background-image: none;
}

.cah-footer__brand {
  display: block;
  width: clamp(196px, 20vw, 244px);
  aspect-ratio: 600 / 159;
  background: url("../brand/logo-header-reversed.svg") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: var(--cah-space-5);
}

/* The strapline is set as live text so it stays crisp, translatable
   and selectable rather than being baked into the artwork. */
.cah-footer__brandcol .cah-footer__blurb::before {
  content: "Support When You Need It Most";
  display: block;
  margin-bottom: var(--cah-space-4);
  padding-left: 42px;
  position: relative;
  color: #fff;
  font-weight: var(--cah-fw-semibold);
  font-style: italic;
  font-size: var(--cah-fs-small);
  letter-spacing: .01em;
}
.cah-footer__brandcol .cah-footer__blurb::after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--cah-red-600);
  transform: translateY(-2.35em);
}
.cah-footer__brandcol .cah-footer__blurb { position: relative; }

/* ------------------------------------------------------------------
 * 2. Header - glass, depth on scroll, refined nav
 * ------------------------------------------------------------------ */
.cah-header,
.cah-header--static {
  position: sticky;
  top: 0;
  z-index: var(--cah-z-header);
  background: var(--cah-glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--cah-dur) var(--cah-ease-out),
              border-color var(--cah-dur) var(--cah-ease-out),
              box-shadow var(--cah-dur) var(--cah-ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cah-header, .cah-header--static { background: #fff; }
}
.cah-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--cah-grad-rule);
  opacity: 0;
  transition: opacity var(--cah-dur) var(--cah-ease-out);
}
.cah-header.is-stuck {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--cah-border-soft);
  box-shadow: 0 6px 24px -12px rgba(3,31,58,.28);
}
.cah-header.is-stuck::after { opacity: .9; }
.cah-header__inner { min-height: 84px; gap: var(--cah-space-8); }
@media (max-width: 1080px) { .cah-header__inner { min-height: 68px; gap: var(--cah-space-4); } }

.cah-navlink {
  position: relative;
  font-weight: var(--cah-fw-semibold);
  color: var(--cah-navy-800);
  padding: 10px 14px;
}
.cah-navlink::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--cah-red-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--cah-dur) var(--cah-ease-out);
}
.cah-navlink:hover { background: transparent; color: var(--cah-navy-900); }
.cah-navlink:hover::after,
.cah-navlink[aria-current="page"]::after,
.cah-navlink.is-active::after { transform: scaleX(1); }
[data-cah-mega].is-open .cah-navlink { background: transparent; }
[data-cah-mega].is-open .cah-navlink::after { transform: scaleX(1); }

.cah-mega__panel {
  border-radius: var(--cah-radius-2xl);
  border-color: var(--cah-border-soft);
  box-shadow: 0 40px 80px -24px rgba(3,31,58,.28), 0 12px 28px -12px rgba(3,31,58,.12);
  padding: var(--cah-space-10);
}
.cah-mega__link {
  border: 1px solid transparent;
  transition: background-color var(--cah-dur) var(--cah-ease-out),
              border-color var(--cah-dur) var(--cah-ease-out),
              transform var(--cah-dur) var(--cah-ease-out);
}
.cah-mega__link:hover {
  background: var(--cah-navy-50);
  border-color: var(--cah-navy-100);
  transform: translateX(3px);
}
.cah-mega__feature {
  background: var(--cah-grad-navy);
  color: #fff;
  box-shadow: var(--cah-glow-navy);
}
.cah-mega__feature .cah-mega__heading { color: var(--cah-red-400); }
.cah-mega__feature a { color: #fff; }

/* ------------------------------------------------------------------
 * 3. Buttons - red is the conversion colour and nothing else
 * ------------------------------------------------------------------ */
.cah-btn {
  border-radius: var(--cah-radius-pill);
  font-weight: var(--cah-fw-semibold);
  letter-spacing: -.005em;
  will-change: transform;
}
.cah-btn--accent {
  background: var(--cah-grad-red);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--cah-glow-red);
}
.cah-btn--accent:hover {
  background: var(--cah-grad-red);
  filter: brightness(1.06);
  box-shadow: 0 16px 40px -10px rgba(229,2,14,.55);
  transform: translateY(-2px);
}
.cah-btn--accent:active { transform: translateY(0); filter: brightness(.97); }

.cah-btn:not(.cah-btn--accent):not(.cah-btn--outline):not(.cah-btn--ghost):not(.cah-btn--on-dark):not(.cah-btn--outline-on-dark) {
  background: var(--cah-grad-navy);
  box-shadow: var(--cah-glow-navy);
}
.cah-btn--outline {
  border-width: 1.5px;
  border-color: var(--cah-navy-200, var(--cah-border-strong));
  background: rgba(255,255,255,.6);
}
.cah-btn--outline:hover {
  border-color: var(--cah-navy-900);
  background: #fff;
  color: var(--cah-navy-900);
}

/* A quiet pulse on the primary conversion button only, and only while
   the visitor has not interacted. Never loops indefinitely. */
@keyframes cah-cta-breathe {
  0%, 100% { box-shadow: var(--cah-glow-red); }
  50%      { box-shadow: 0 14px 38px -8px rgba(229,2,14,.62); }
}
.cah-btn--accent.cah-btn--lg { animation: cah-cta-breathe 3.6s var(--cah-ease-in-out) 2s 3; }
@media (prefers-reduced-motion: reduce) {
  .cah-btn--accent.cah-btn--lg { animation: none; }
  .cah-btn--accent:hover { transform: none; }
}


/* ------------------------------------------------------------------
 * 4. Hero - depth without noise
 * A layered navy gradient with one warm red bloom in the corner. The
 * bloom is what makes the brand read as "urgent help" rather than
 * "corporate insurance", and it is the only large use of red.
 * ------------------------------------------------------------------ */
.cah-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cah-grad-hero);
  color: #fff;
  padding-block: clamp(72px, 9vw, 132px);
}
.cah-hero::before {
  /* Fine grain stops the large gradient from banding on wide screens. */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cah-hero::after {
  /* Soft road-sweep echoing the logo mark. */
  content: "";
  position: absolute; z-index: -1;
  right: -8%; bottom: -32%;
  width: min(760px, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(30,102,171,.30) 0%, transparent 62%);
  pointer-events: none;
}
.cah-hero__title {
  font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
  max-width: 17ch;
}
.cah-hero__title em,
.cah-hero__title strong {
  font-style: normal;
  color: var(--cah-red-500);
  font-weight: inherit;
}
.cah-hero__lede {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.3rem);
  line-height: 1.62;
  color: #C6D6E8;
  max-width: 56ch;
  margin-top: var(--cah-space-6);
}
.cah-hero__actions { margin-top: var(--cah-space-10); gap: var(--cah-space-4); display: flex; flex-wrap: wrap; }
.cah-hero__trust {
  margin-top: var(--cah-space-10);
  padding-top: var(--cah-space-8);
  border-top: 1px solid rgba(255,255,255,.12);
}
.cah-hero .cah-eyebrow { color: var(--cah-red-400); }

/* Staged entrance: the hero is above the fold, so it animates on load
   rather than on scroll. */
@keyframes cah-rise { from { opacity: 0; transform: translate3d(0,18px,0); } to { opacity: 1; transform: none; } }
html.cah-js .cah-hero__title,
html.cah-js .cah-hero__lede,
html.cah-js .cah-hero__actions,
html.cah-js .cah-hero__trust {
  animation: cah-rise .8s var(--cah-ease-out) both;
}
html.cah-js .cah-hero__lede    { animation-delay: .10s; }
html.cah-js .cah-hero__actions { animation-delay: .20s; }
html.cah-js .cah-hero__trust   { animation-delay: .30s; }

/* ------------------------------------------------------------------
 * 5. The pathway - progressive, not decorative
 * ------------------------------------------------------------------ */
.cah-path { position: relative; }
.cah-path__item {
  position: relative;
  transition: transform var(--cah-dur) var(--cah-ease-out);
}
.cah-path__label { transition: color var(--cah-dur) var(--cah-ease-out); }
.cah-path__item:hover { transform: translateY(-4px); }
.cah-path__item:hover .cah-path__label { color: var(--cah-red-500); }

/* ------------------------------------------------------------------
 * 6. Cards - one elevation language across the site
 * ------------------------------------------------------------------ */
.cah-typecard,
.cah-card {
  position: relative;
  border-radius: var(--cah-radius-xl);
  border: 1px solid var(--cah-border-soft);
  background: var(--cah-surface);
  box-shadow: var(--cah-shadow-sm);
  transition: transform var(--cah-dur) var(--cah-ease-out),
              box-shadow var(--cah-dur) var(--cah-ease-out),
              border-color var(--cah-dur) var(--cah-ease-out);
}
.cah-typecard::before {
  /* Hairline that warms up on hover - the only red on a resting card. */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--cah-red-600), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--cah-dur) var(--cah-ease-out);
  pointer-events: none;
}
.cah-typecard:hover,
.cah-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cah-shadow-lg);
  border-color: var(--cah-navy-100);
}
.cah-typecard:hover::before { opacity: 1; }
.cah-typecard__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--cah-radius-lg);
  background: var(--cah-navy-50);
  color: var(--cah-navy-800);
  margin-bottom: var(--cah-space-5);
  transition: background-color var(--cah-dur) var(--cah-ease-out),
              color var(--cah-dur) var(--cah-ease-out),
              transform var(--cah-dur) var(--cah-ease-spring);
}
.cah-typecard:hover .cah-typecard__icon {
  background: var(--cah-grad-red);
  color: #fff;
  transform: scale(1.06) rotate(-3deg);
}
.cah-typecard__title { font-size: var(--cah-fs-h4); letter-spacing: -.01em; }
.cah-typecard__more {
  margin-top: auto;
  color: var(--cah-navy-700);
  font-weight: var(--cah-fw-semibold);
  font-size: var(--cah-fs-small);
  display: inline-flex; align-items: center; gap: 6px;
}
.cah-typecard:hover .cah-typecard__more { color: var(--cah-red-700); }
.cah-typecard:hover .cah-btn__arrow,
.cah-typecard:hover .cah-typecard__more svg { transform: translateX(4px); }

/* ------------------------------------------------------------------
 * 7. Section rhythm and hierarchy
 * ------------------------------------------------------------------ */
.cah-section, .cah-main > section { padding-block: clamp(64px, 7.5vw, 116px); }
.cah-section-header { margin-bottom: clamp(40px, 5vw, 72px); }
.cah-section-header__title { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.7rem); letter-spacing: -.022em; }
.cah-section-header__intro { font-size: var(--cah-fs-body-lg); color: var(--cah-text-muted); }
.cah-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cah-red-700);
}
.cah-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--cah-red-600); flex: none;
}
.cah-section--invert { background: var(--cah-grad-navy); }
.cah-section--invert .cah-eyebrow { color: var(--cah-red-400); }
.cah-section--invert .cah-eyebrow::before { background: var(--cah-red-500); }

/* Conversion band */
.cah-cta {
  position: relative;
  overflow: hidden;
  background: var(--cah-grad-navy);
  border-radius: var(--cah-radius-2xl);
  color: #fff;
}
.cah-cta::after {
  content: "";
  position: absolute; right: -10%; top: -60%;
  width: 620px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(229,2,14,.30) 0%, transparent 62%);
  pointer-events: none;
}

/* ------------------------------------------------------------------
 * 8. Motion refinements
 * ------------------------------------------------------------------ */
html.cah-js .cah-reveal {
  transform: translate3d(0, 20px, 0);
  transition-duration: .7s;
}
.cah-hover-lift:hover { box-shadow: var(--cah-shadow-lg); }

/* Focus stays unmistakable on every surface. */
.cah-section--invert :focus-visible,
.cah-hero :focus-visible,
.cah-footer :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html.cah-js .cah-hero__title,
  html.cah-js .cah-hero__lede,
  html.cah-js .cah-hero__actions,
  html.cah-js .cah-hero__trust { animation: none; }
  .cah-typecard:hover, .cah-card:hover, .cah-path__item:hover { transform: none; }
  .cah-typecard:hover .cah-typecard__icon { transform: none; }
}


/* ------------------------------------------------------------------
 * 9. Corrections from rendered QA
 * ------------------------------------------------------------------ */

/* The strapline sits under the footer mark with its own short rule.
   The previous absolutely-positioned rule landed over the blurb text. */
.cah-footer__brandcol .cah-footer__blurb::after { content: none; }
.cah-footer__brandcol .cah-footer__blurb::before {
  content: "Support When You Need It Most";
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 var(--cah-space-5);
  padding: 14px 0 0;
  background-image: linear-gradient(var(--cah-red-600), var(--cah-red-600));
  background-size: 30px 2px;
  background-repeat: no-repeat;
  background-position: left top;
  color: #fff;
  font-weight: var(--cah-fw-semibold);
  font-style: italic;
  font-size: var(--cah-fs-small);
  letter-spacing: .01em;
  text-wrap: balance;
}

/* Card titles: balance the line break instead of orphaning one word,
   and hold a consistent card height across the grid. */
.cah-typecard__title,
.cah-card__title {
  text-wrap: balance;
  font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem);
  line-height: 1.28;
}
.cah-typecard { min-height: 100%; }
.cah-grid { align-items: stretch; }

/* Trust row: restrained, but no longer completely flat. */
.cah-trust__item,
.cah-grid--4 > .cah-reveal {
  transition: transform var(--cah-dur) var(--cah-ease-out);
}

/* Footer link affordance kept consistent - no stray underlines at rest. */
.cah-footer a { text-decoration: none; }
.cah-footer a:hover,
.cah-footer a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }


/* ==================================================================
 * 10. HERO v3 - split layout, video atmosphere, glass Case Check
 * ================================================================== */

.cah-hero { position: relative; isolation: isolate; overflow: hidden; }

/* ---------- Video layer ---------- */
.cah-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cah-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Slight scale hides the edge softening from compression. */
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1.1s var(--cah-ease-out);
}
.cah-hero__video.is-ready { opacity: 1; }

/* The scrim is what keeps headline contrast above AA over moving footage.
   Two stacked gradients: a horizontal one protecting the text column, and a
   vertical one seating the header and the section below. */
.cah-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(1,13,25,var(--scrim-a,.94)) 0%, rgba(3,31,58,var(--scrim-b,.86)) 42%, rgba(3,31,58,var(--scrim-c,.62)) 100%),
    linear-gradient(180deg, rgba(1,13,25,.72) 0%, transparent 26%, transparent 62%, rgba(1,13,25,.78) 100%);
}
.cah-hero--dim-soft   .cah-hero__scrim { --scrim-a:.86; --scrim-b:.72; --scrim-c:.42; }
.cah-hero--dim-medium .cah-hero__scrim { --scrim-a:.90; --scrim-b:.80; --scrim-c:.54; }
.cah-hero--dim-strong .cah-hero__scrim { --scrim-a:.94; --scrim-b:.86; --scrim-c:.62; }

/* One warm bloom so the brand red is present in the atmosphere. */
.cah-hero__glow {
  position: absolute; z-index: -1;
  right: -6%; top: -18%;
  width: min(720px, 60vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(229,2,14,.26) 0%, transparent 62%);
  pointer-events: none;
}

/* When a video is present the base gradient is redundant. */
.cah-hero--video { background: #010D19; }

/* ---------- Split layout ---------- */
.cah-hero__inner { position: relative; z-index: 1; }
.cah-hero--split .cah-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}
.cah-hero--split .cah-hero__title { max-width: 15ch; }
.cah-hero--split .cah-hero__lede { max-width: 48ch; }
.cah-hero__content { min-width: 0; }
.cah-hero__aside { min-width: 0; }

/* ---------- Glass panel ---------- */
.cah-glass {
  position: relative;
  border-radius: var(--cah-radius-2xl);
  background: linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 32px 70px -22px rgba(1,13,25,.72),
    0 2px 0 0 rgba(255,255,255,.10) inset,
    0 -1px 0 0 rgba(255,255,255,.05) inset;
}
/* Fallback for browsers without backdrop-filter: solid navy, still legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cah-glass { background: rgba(4,26,48,.94); }
}
/* Gradient hairline that catches the light along the top edge. */
.cah-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(255,255,255,.45), rgba(255,255,255,.06) 38%, rgba(229,2,14,.30) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}

.cah-hero__panel {
  padding: clamp(22px, 2.2vw, 32px);
  transition: transform var(--cah-dur-slow) var(--cah-ease-out), box-shadow var(--cah-dur-slow) var(--cah-ease-out);
}
.cah-hero__panel:hover { transform: translateY(-2px); box-shadow: 0 40px 84px -22px rgba(1,13,25,.8), 0 2px 0 0 rgba(255,255,255,.12) inset; }
.cah-hero__panel-inner { min-height: 430px; display: flex; flex-direction: column; }
.cah-hero__panel-note {
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--cah-fs-caption); color: #A9BDD4; text-align: center;
}
@media (prefers-reduced-motion: reduce) { .cah-hero__panel:hover { transform: none; } }

/* ---------- Case Check on glass ----------
 * The quiz markup is generated by case-check.js and is styled for light
 * surfaces. Everything below re-skins it for the dark glass panel only.
 * ------------------------------------------------------------------ */
.cah-hero__panel .cah-case-check { color: #fff; flex: 1; display: flex; flex-direction: column; }
.cah-hero__panel .cah-cc__head { margin-bottom: 20px; }
.cah-hero__panel .cah-cc__eyebrow { color: var(--cah-red-400); }
.cah-hero__panel .cah-cc__label,
.cah-hero__panel .cah-cc__count { color: #A9BDD4; }
.cah-hero__panel .cah-cc__progress { background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; height: 4px; }
.cah-hero__panel .cah-cc__bar { background: var(--cah-grad-red); border-radius: 999px; box-shadow: 0 0 12px rgba(229,2,14,.55); }
.cah-hero__panel .cah-cc__body { flex: 1; }
.cah-hero__panel .cah-cc__legend { color: #fff; font-size: clamp(1.15rem,1.05rem+.4vw,1.4rem); line-height: 1.3; letter-spacing: -.015em; }
.cah-hero__panel .cah-cc__help { color: #A9BDD4; }

.cah-hero__panel .cah-choice {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: #fff;
  min-height: 56px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.cah-hero__panel .cah-choice:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.34);
  transform: translateX(2px);
}
.cah-hero__panel .cah-choice:has(input:checked) {
  background: rgba(229,2,14,.16);
  border-color: var(--cah-red-500);
  box-shadow: 0 0 0 1px rgba(229,2,14,.35), 0 8px 22px -10px rgba(229,2,14,.6);
}
.cah-hero__panel .cah-choice__mark { border-color: rgba(255,255,255,.42); }
.cah-hero__panel .cah-choice input:checked ~ .cah-choice__mark { border-color: var(--cah-red-500); background: var(--cah-red-600); }
.cah-hero__panel .cah-choice__desc { color: #A9BDD4; }

.cah-hero__panel .cah-label { color: #E4ECF5; }
.cah-hero__panel .cah-label__optional,
.cah-hero__panel .cah-hint { color: #93A8C2; }
.cah-hero__panel .cah-input,
.cah-hero__panel .cah-select,
.cah-hero__panel .cah-textarea {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
  color: #fff;
}
.cah-hero__panel .cah-input::placeholder { color: #7E93AD; }
.cah-hero__panel .cah-input:focus,
.cah-hero__panel .cah-select:focus,
.cah-hero__panel .cah-textarea:focus {
  border-color: var(--cah-red-500);
  box-shadow: 0 0 0 3px rgba(229,2,14,.22);
  background: rgba(255,255,255,.12);
}
.cah-hero__panel .cah-cc__back { color: #A9BDD4; }
.cah-hero__panel .cah-cc__back:hover { color: #fff; }
.cah-hero__panel .cah-cc__nav { margin-top: 20px; }
.cah-hero__panel .cah-notice { background: rgba(229,2,14,.12); border-color: rgba(229,2,14,.34); color: #FFD9DB; }
.cah-hero__panel .cah-error-text { color: #FF9AA0; }
.cah-hero__panel .cah-muted { color: #A9BDD4; }
.cah-hero__panel :focus-visible { outline-color: #fff; }

/* ---------- Compact pathway strip under the split hero ---------- */
.cah-pathstrip { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.cah-pathstrip__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 16px;
}
.cah-pathstrip__item { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cah-pathstrip__item::after {
  content: ""; position: absolute; right: -8px; top: 50%;
  width: 16px; height: 1px; background: rgba(255,255,255,.18);
}
.cah-pathstrip__item:last-child::after { display: none; }
.cah-pathstrip__marker {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff; font-size: .78rem; font-weight: var(--cah-fw-bold);
  font-variant-numeric: tabular-nums;
}
.cah-pathstrip__item:first-child .cah-pathstrip__marker { background: var(--cah-grad-red); border-color: transparent; box-shadow: 0 0 16px -2px rgba(229,2,14,.6); }
.cah-pathstrip__body { min-width: 0; }
.cah-pathstrip__label { margin: 0; font-size: var(--cah-fs-caption); font-weight: var(--cah-fw-semibold); color: #E4ECF5; line-height: 1.25; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cah-hero--split .cah-hero__inner { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .cah-hero--split .cah-hero__title { max-width: 18ch; }
  .cah-hero__aside { max-width: 560px; }
  .cah-pathstrip__list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 12px; }
  .cah-pathstrip__item::after { display: none; }
}
@media (max-width: 640px) {
  .cah-hero__panel { padding: 20px 18px; border-radius: var(--cah-radius-xl); }
  .cah-hero__panel-inner { min-height: 0; }
  .cah-hero__aside { max-width: none; }
  .cah-pathstrip__list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* Video is not downloaded at all on small screens - the poster carries it. */
  .cah-hero__video { display: none; }
  .cah-hero__media { background-size: cover; background-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cah-hero__video { transition: none; }
  .cah-hero__panel .cah-choice:hover { transform: none; }
}


/* ---------- Hero panel density ----------
 * QA measured the hero at 1313px tall, which pushes the CTA off a laptop
 * screen. Option lists of five or more move to two columns, and a scroll
 * cap stops any future long step from growing the panel without bound. */
.cah-hero__panel .cah-cc__options { display: grid; gap: 10px; grid-template-columns: minmax(0,1fr); max-height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.cah-hero__panel .cah-cc__options:has(> *:nth-child(5)) { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cah-hero__panel .cah-cc__options::-webkit-scrollbar { width: 6px; }
.cah-hero__panel .cah-cc__options::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; }
.cah-hero__panel .cah-choice { min-height: 52px; padding: 11px 14px; gap: 12px; }
.cah-hero__panel .cah-choice__label { font-size: .94rem; }
.cah-hero__panel .cah-choice__desc { font-size: .76rem; }
.cah-hero__panel .cah-choice__mark { width: 20px; height: 20px; }
.cah-hero__panel-inner { min-height: 0; }
.cah-hero__panel { padding: clamp(20px, 1.9vw, 26px); }
.cah-hero--split { padding-block: clamp(52px, 5.4vw, 84px); }
@media (max-width: 560px) { .cah-hero__panel .cah-cc__options:has(> *:nth-child(5)) { grid-template-columns: minmax(0,1fr); } }
@media (min-width: 1100px) and (max-width: 1180px) {
  .cah-hero--split .cah-hero__inner { grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: 32px; }
  .cah-hero__aside { max-width: none; }
}


/* ================= Hero: video presence and typography =================
 * Consolidated. Three overlapping blocks had accumulated here across
 * revisions and were partly cancelling each other out; this replaces all of
 * them so there is one place to reason about the hero.
 *
 * SPECIFICITY. The recurring trap in this file is that the element-level
 * resets in base.css - `.cah video`, `.cah h1` - are (0,1,1) and silently
 * outrank single-class component rules at (0,1,0). That is what collapsed
 * the video to a 150px strip and what pinned the headline to the kit's
 * default 1.2 leading. Everything below is scoped through `.cah .cah-hero`
 * so it wins on merit rather than with !important.
 *
 * VIDEO. Coverage, layer order and opacity are declared explicitly: the
 * scrim and glow spans carry z-index:-1, so a z-index:auto video painted on
 * top of its own scrim, and the JS fade-in could strand it at opacity 0.
 *
 * SCRIM SHAPE. Reshaped rather than uniformly lightened - a flat reduction
 * lifts footage and copy together and costs legibility for little gain.
 * Steepening the falloff keeps the left column dark under the text and lets
 * the right open up. Measured on the live frame: worst-case contrast behind
 * the headline and intro 13.2:1 -> 11.5:1 (still past AAA), while mean
 * luminance across the open right-hand area nearly doubles. */

.cah .cah-hero .cah-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  display: block;
  z-index: 0;
  filter: saturate(1.26) contrast(1.06) brightness(1.08);
}
.cah .cah-hero .cah-hero__scrim { z-index: 1; }
.cah .cah-hero .cah-hero__glow  { z-index: 2; }
.cah .cah-hero .cah-hero__media::after { z-index: 3; }

.cah .cah-hero .cah-hero__scrim {
  background:
    linear-gradient(100deg, rgba(1,13,25,.90) 0%, rgba(2,26,48,.84) 32%, rgba(3,31,58,.60) 58%, rgba(3,31,58,.26) 100%),
    linear-gradient(180deg, rgba(1,13,25,.60) 0%, rgba(1,13,25,0) 26%, rgba(1,13,25,0) 62%, rgba(1,13,25,.64) 100%);
}
/* Deepened only under the glass, so the exposed video keeps its lift while
 * the panel keeps a calm backdrop to sit on. */
.cah .cah-hero .cah-hero__media::after {
  background: radial-gradient(58% 70% at 78% 50%, rgba(1,13,25,.62) 0%, rgba(1,13,25,.38) 55%, rgba(1,13,25,0) 78%);
}

/* TYPE. The display line was inheriting 1.2 leading and -0.014em tracking,
 * which reads like body copy scaled up. Tightening both and widening the
 * size ramp gives it presence; the intro drops a step and lightens so the
 * hierarchy is carried by weight and colour rather than size alone. */
.cah .cah-hero .cah-eyebrow {
  font-size: .75rem;
  letter-spacing: .16em;
  font-weight: 700;
}
.cah .cah-hero .cah-hero__title {
  font-size: clamp(2.25rem, 1.75rem + 2.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 700;
  margin-bottom: var(--cah-space-5);
  text-wrap: balance;
}
.cah .cah-hero .cah-hero__lede {
  font-size: clamp(1.0625rem, 1.02rem + .28vw, 1.1875rem);
  line-height: 1.65;
  letter-spacing: -.005em;
  color: #C6D6E8;
  max-width: 33em;
}
.cah .cah-hero .cah-hero__actions .cah-btn {
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}

/* Glass panel text, lifted to clear AA against the brighter backdrop: the
 * previous muted tone measured 3.56:1 once the scrim was opened up. */
.cah .cah-hero .cah-glass .cah-eyebrow,
.cah .cah-hero .cah-glass .cah-cc__label {
  font-size: .6875rem;
  letter-spacing: .18em;
  font-weight: 700;
  color: #D2DEEC;
}
.cah .cah-hero .cah-glass .cah-cc__legend,
.cah .cah-hero .cah-glass legend {
  font-size: clamp(1.375rem, 1.2rem + .5vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.cah .cah-hero .cah-glass p,
.cah .cah-hero .cah-glass .cah-muted,
.cah .cah-hero .cah-glass .cah-choice__desc { color: #D2DEEC; }
.cah .cah-hero .cah-glass .cah-choice__label { color: #fff; }

/* Stacked layout puts the copy over the middle of the frame, where the
 * horizontal scrim is weakest, so a light vertical wash is added back. */
@media (max-width: 1099px) {
  .cah .cah-hero .cah-hero__video { object-position: 55% center; }
  .cah .cah-hero .cah-hero__scrim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1,13,25,.30) 0%, rgba(1,13,25,.46) 100%);
  }
}

/* The hero eyebrow measured 4.47:1 against the brightest pixel behind it,
 * fractionally under AA, and at 12px bold it does not qualify as large
 * text. Lifted to 5.6:1 while staying unambiguously the brand red. */
.cah .cah-hero .cah-eyebrow { color: #FF7A82; }
/* ================= Case Check: compact scale =================
 * Two problems in the hero panel.
 *
 * 1. The Continue button was wrapping onto two lines. Its label and arrow
 *    are separate spans, and the button was resolving to display:block
 *    rather than the inline-flex its own component rule asks for, so the
 *    spans stacked instead of sitting side by side. Restored explicitly,
 *    with nowrap so the pair can never break again.
 *
 * 2. The panel was heavier than it needed to be: 56px buttons, 52px option
 *    rows and a question that wrapped to two lines. Everything steps down
 *    roughly one notch. Interactive rows stay at 44px, which is the
 *    recommended minimum touch target, and go back up to 48px on small
 *    screens where they are actually thumbed.
 *
 * !important is used deliberately and narrowly here. These same properties
 * are set by the Elementor kit stylesheet on every button element, and this
 * file exists to win that argument - the existing button block above does
 * the same thing for the same reason. Nothing else in this block needs it. */

.cah .cah-hero .cah-cc__nav button.cah-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap !important;
  width: auto;
  gap: 8px;
  min-height: 44px !important;
  font-size: .9375rem !important;
  padding: 0 20px !important;
}
.cah .cah-hero .cah-cc__nav button.cah-btn > span { flex: none; }
.cah .cah-hero .cah-cc__back {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap !important;
  gap: 8px;
  min-height: 44px !important;
  font-size: .9375rem !important;
}
.cah .cah-hero .cah-cc__back > span { flex: none; }

.cah .cah-hero .cah-glass { padding: 18px !important; }
.cah .cah-hero .cah-glass .cah-cc__legend {
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.4rem) !important;
  line-height: 1.24 !important;
}
.cah .cah-hero .cah-glass .cah-cc__help { font-size: .8125rem !important; }
.cah .cah-hero .cah-choice {
  min-height: 44px !important;
  padding: 9px 12px !important;
  gap: 10px !important;
}
.cah .cah-hero .cah-glass .cah-choice__label { font-size: .875rem !important; }
.cah .cah-hero .cah-glass .cah-choice__desc { font-size: .75rem !important; }
.cah .cah-hero .cah-cc__options { gap: 8px !important; }

/* Comfortable thumb targets back on small screens. */
@media (max-width: 1099px) {
  .cah .cah-hero .cah-choice { min-height: 48px !important; padding: 11px 14px !important; }
  .cah .cah-hero .cah-cc__nav button.cah-btn,
  .cah .cah-hero .cah-cc__back { min-height: 48px !important; }
  .cah .cah-hero .cah-glass { padding: 20px !important; }
}
/* ================= Case Check: reference chip and note =================
 * The reference chip set a pale background but never set a text colour, so
 * on the dark glass panel it inherited the panel's near-white type and came
 * out pale-on-pale - effectively invisible. Giving it dark text on the light
 * chip takes it to roughly 14:1, and it now reads as something you are meant
 * to note down. select-all makes it a single click to copy.
 *
 * The reassurance line was a separate bottom band, divided off by a rule and
 * 18px of margin. It moves up tight under the action row as small print,
 * which is where it belongs and removes the band entirely. */

.cah .cah-hero .cah-glass .cah-cc__ref {
  display: inline-block;
  color: var(--cah-navy-900);
  background: #EEF2F7;
  border: 1px solid rgba(11,27,51,.16);
  border-radius: var(--cah-radius-sm);
  font-family: var(--cah-font-mono);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 7px 14px;
  margin-top: 12px;
  -webkit-user-select: all;
  user-select: all;
}

.cah .cah-hero .cah-hero__panel-note {
  border-top: 0;
  margin-top: 10px;
  padding-top: 0;
  font-size: .75rem;
  line-height: 1.45;
  color: #C6D6E8;
  text-align: center;
}

/* ---------- Case Check: close the gap under the action row ----------
 * With the reassurance line moved up under the button, the old spacing left
 * a 46px hole between them: 32px of padding on the body plus the note's own
 * margin. The action row also carried 40px of combined margin and padding
 * above it. Both are pulled in so the button, its small print and the panel
 * edge read as one group. */
.cah .cah-hero .cah-glass .cah-cc__body { padding-bottom: 0; }
.cah .cah-hero .cah-glass .cah-cc__nav { margin-top: 14px; padding-top: 14px; }


/* ================= Site search: trigger pill and command panel ================= */

.cah .cah-header__actions .cah-search-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 8px 0 14px;
  border-radius: var(--cah-radius-pill);
  border: 1px solid var(--cah-border);
  background: var(--cah-surface);
  color: var(--cah-text-muted);
  text-decoration: none;
  transition: border-color var(--cah-dur) var(--cah-ease-out), background-color var(--cah-dur) var(--cah-ease-out);
}
.cah .cah-header__actions .cah-search-trigger:hover,
.cah .cah-header__actions .cah-search-trigger:focus-visible {
  border-color: var(--cah-border-strong);
  background: var(--cah-bg-alt);
  color: var(--cah-text-soft);
}
.cah .cah-header__actions .cah-search-trigger svg { flex: none; }
.cah .cah-header__actions .cah-search-trigger__label {
  font: var(--cah-fw-medium) var(--cah-fs-small)/1 var(--cah-font-sans);
  white-space: nowrap;
}
.cah .cah-header__actions .cah-search-trigger__kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--cah-radius-xs);
  border: 1px solid var(--cah-border);
  background: var(--cah-bg-alt);
  color: var(--cah-text-muted);
  font: 600 .75rem/1 var(--cah-font-mono);
}

/* The label and kbd hint need room the collapsed header doesn't have; the
   trigger itself drops to an icon-only tap target alongside the hamburger. */
@media (max-width: 1200px) {
  .cah .cah-header__actions .cah-search-trigger {
    width: 40px; height: 40px; padding: 0; justify-content: center;
    border-color: transparent; background: none;
  }
  .cah .cah-header__actions .cah-search-trigger__label,
  .cah .cah-header__actions .cah-search-trigger__kbd { display: none; }
}
/* A keyboard hint is meaningless on a touch device; drop it before the
   trigger itself needs to shrink. */
@media (min-width: 1201px) and (max-width: 1340px) {
  .cah .cah-header__actions .cah-search-trigger__kbd { display: none; }
}
/* ---- Panel: command-style overlay, same elevation/motion as the mega panel ---- */
.cah-search-overlay {
  position: fixed; inset: 0;
  z-index: calc(var(--cah-z-modal) + 1);
  display: flex; justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(3, 31, 58, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
}
.cah-search-overlay[hidden] { display: none; }
html.cah-search-open { overflow: hidden; }

.cah-search-panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 600px; height: fit-content; max-height: 76vh;
  background: var(--cah-surface);
  border-radius: var(--cah-radius-xl);
  box-shadow: var(--cah-shadow-xl);
  overflow: hidden;
  animation: cah-search-in var(--cah-dur) var(--cah-ease-out);
}
@keyframes cah-search-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .cah-search-panel { animation: none; } }

.cah-search-panel__field {
  display: flex; align-items: center; gap: var(--cah-space-3); flex: none;
  padding: var(--cah-space-5) var(--cah-space-6);
  border-bottom: 1px solid var(--cah-border-soft);
  transition: background-color var(--cah-dur-fast) var(--cah-ease-out);
}
.cah-search-panel__field:focus-within { background: var(--cah-bg-alt); box-shadow: inset 0 0 0 2px var(--cah-navy-100); }
.cah-search-panel__icon { flex: none; color: var(--cah-text-muted); }
.cah-search-panel__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0;
  font: var(--cah-fw-regular) var(--cah-fs-body-lg)/1.4 var(--cah-font-sans);
  color: var(--cah-text);
}
.cah-search-panel__input::placeholder { color: var(--cah-text-muted); }
.cah-search-panel__close {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--cah-radius-pill);
  border: 0; background: var(--cah-bg-alt); color: var(--cah-text-muted); cursor: pointer;
  transition: background-color var(--cah-dur-fast) var(--cah-ease-out), color var(--cah-dur-fast) var(--cah-ease-out);
}
.cah-search-panel__close:hover { background: var(--cah-border-soft); color: var(--cah-text); }
.cah-search-panel__body { flex: 1 1 auto; min-height: 168px; overflow-y: auto; padding: var(--cah-space-6); }
.cah-search-panel__hint { margin: var(--cah-space-8) 0; text-align: center; color: var(--cah-text-muted); font-size: var(--cah-fs-small); }
.cah-search-panel__results { list-style: none; margin: calc(-1 * var(--cah-space-2)); padding: 0; }
.cah-search-panel__results[hidden] { display: none; }

.cah-search-result {
  display: flex; align-items: center; gap: var(--cah-space-3);
  padding: var(--cah-space-3);
  border-radius: var(--cah-radius-md);
  text-decoration: none; color: var(--cah-text);
}
.cah-search-result__icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--cah-radius-md);
  background: var(--cah-bg-alt); color: var(--cah-primary);
}
.cah-search-result__title { display: block; font: var(--cah-fw-semibold) var(--cah-fs-body)/1.3 var(--cah-font-sans); }
.cah-search-result__type { display: block; margin-top: 2px; font-size: var(--cah-fs-caption); color: var(--cah-text-muted); }
.cah-search-result:hover, .cah-search-result.is-active { background: var(--cah-bg-alt); }
.cah-search-result.is-active .cah-search-result__title { color: var(--cah-primary); }

.cah-search-panel__foot {
  display: flex; justify-content: center; flex: none;
  padding: var(--cah-space-3) var(--cah-space-6);
  border-top: 1px solid var(--cah-border-soft);
  background: var(--cah-surface-alt);
  font-size: var(--cah-fs-caption); color: var(--cah-text-muted);
}
.cah-search-panel__foot kbd {
  display: inline-block; padding: 1px 6px; margin: 0 1px;
  border-radius: var(--cah-radius-xs); border: 1px solid var(--cah-border);
  background: var(--cah-surface); font-family: var(--cah-font-mono); font-size: .75rem;
}

@media (max-width: 640px) {
  .cah-search-overlay { padding: 0; }
  .cah-search-panel { max-width: none; width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
}
