/* ============================================================
   ACI DESIGN SYSTEM — SITE CHROME (header + footer)
   Self-contained: this file needs no other stylesheet. It declares its
   own tokens, resets and component styles, all scoped under
   .aci-design-system-header / .aci-design-system-footer, so it can drop
   into a WordPress theme without colliding with, or leaking into,
   existing styles.

   Pairs with js/aci-design-system-global.js.

   Host page must do exactly two things:
     1. put .aci-design-system-header-offset on whatever follows the
        header (the header is position: fixed)
     2. load Poppins + Font Awesome 6 (see homepage.html's <head>)

   Every value below is duplicated from css/aci-design-system.css on
   purpose — the two are independent by design, so a change to the design
   system does not silently restyle the chrome.
   ============================================================ */

/* ---------- Tokens ---------- */
/* Declared on both roots rather than :root, so a host theme's variables
   can neither override these nor be overridden by them. Every custom
   property used anywhere in this file is declared here. */
.aci-design-system-header,
.aci-design-system-footer {
  --color-primary: #0a91b4;
  --color-primary-dark: #008cb1;
  --color-text: #1e1e1e;
  --color-black: #000000;
  --color-border: #c8cdd8;
  --color-bg: #ffffff;
  --color-tint: rgba(81, 247, 247, 0.05);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --container-max: 72rem;
  --page-padding: clamp(1.25rem, 5vw, 9rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;

  font-family: var(--font-body);
  color: var(--color-text);
}

@media (max-width: 900px) {
  .aci-design-system-header,
  .aci-design-system-footer {
    --page-padding: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2rem;
  }
}

/* ---------- Reset (scoped) ---------- */
.aci-design-system-header,
.aci-design-system-footer,
.aci-design-system-header *,
.aci-design-system-footer *,
.aci-design-system-header *::before,
.aci-design-system-footer *::before,
.aci-design-system-header *::after,
.aci-design-system-footer *::after {
  box-sizing: border-box;
}
.page-template-aci-design-system .entry-content{
  margin-top: 0 !important;
}

/* Element resets are wrapped in :where() so they add no specificity of
   their own. Without it each rule scores one class + one element, which
   beats a single-class component rule — `button { font: inherit }` would
   override the nav triggers' type, `a { color: inherit }` the buttons'
   color, `ul { padding: 0 }` the dropdown panels' padding, and
   `h2 { margin: 0 }` the footer heading's. At :where() they score one
   class, which still beats a host theme's bare `button`/`a`/`ul` rules
   but loses to every component rule below. */
.aci-design-system-header :where(img),
.aci-design-system-footer :where(img) { max-width: 100%; display: block; }

.aci-design-system-header :where(button),
.aci-design-system-footer :where(button) { font: inherit; border: none; background: none; cursor: pointer; }

.aci-design-system-header :where(a),
.aci-design-system-footer :where(a) { text-decoration: none; color: inherit; }

.aci-design-system-header :where(a[href^="tel:"]),
.aci-design-system-footer :where(a[href^="tel:"]) { white-space: nowrap; }

.aci-design-system-header :where(ul, ol),
.aci-design-system-footer :where(ul, ol) { margin: 0; padding: 0; list-style: none; }

.aci-design-system-header :where(p, h1, h2, h3, h4),
.aci-design-system-footer :where(p, h1, h2, h3, h4) { margin: 0; }

/* ---------- Screen-reader-only text ---------- */
/* Deliberately NOT scoped to a wrapper: this has to work wherever it lands,
   including markup a host theme renders outside the design system's
   container. The !important flags are the exception that proves the rule —
   a theme's own h1/legend/span styles (padding, border, margin, position)
   would otherwise paint a visible box around a 1x1 element, which is how
   this leaks on screen. clip is kept alongside clip-path for older
   browsers; clip only applies while the element is absolutely positioned,
   so position is pinned too. */
.aci-design-system-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ---------- Centered content column ---------- */
/* The header's own inner row carries these too — see its rule below. */
.aci-design-system-footer__container {
  max-width: calc(var(--container-max) + 2 * var(--page-padding));
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* ---------- Buttons ---------- */
/* One class replacing .btn + .btn-outline-teal: the gradient border is a
   masked ::before so it can sit on a transparent background. */
.aci-design-system-header__btn,
.aci-design-system-footer__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 3rem;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01875rem;
  color: var(--color-primary);
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.aci-design-system-header__btn::before,
.aci-design-system-footer__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.125rem;
  background: linear-gradient(90deg, #44c7f5 0%, #908cbb 50%, #e492a8 75%, #ffd99a 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.aci-design-system-header__btn:hover,
.aci-design-system-footer__btn:hover { opacity: 0.85; }

/* Arrow collapsed at rest, expanding on hover. */
.aci-design-system-header__btn i,
.aci-design-system-footer__btn i {
  display: inline-block;
  width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-0.25rem);
  transition: width 0.25s ease, margin-left 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
}

.aci-design-system-header__btn:hover i,
.aci-design-system-footer__btn:hover i {
  width: 1em;
  margin-left: 0.5rem;
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .aci-design-system-header,
  .aci-design-system-header__btn,
  .aci-design-system-header__btn i,
  .aci-design-system-footer__btn,
  .aci-design-system-footer__btn i { transition: none; }
}

/* ---------- Footer typography + layout primitives ---------- */
.aci-design-system-footer__eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  background: linear-gradient(270deg, #008daf 0.01%, rgba(0, 198, 209, 0.9) 50%, #008daf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aci-design-system-footer__heading {
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025rem;
  color: var(--color-text);
  text-transform: none;
}

.aci-design-system-footer__body {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: -0.0175rem;
  color: var(--color-text);
}

.aci-design-system-footer__body a { text-decoration: underline; }
.aci-design-system-footer__body + .aci-design-system-footer__actions { margin-top: var(--space-md); }

.aci-design-system-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Image + copy split; collapses to one column on mobile. */
.aci-design-system-footer__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .aci-design-system-footer__split { grid-template-columns: 1fr; }
  .aci-design-system-footer__actions { flex-direction: column; }
  .aci-design-system-footer__actions .aci-design-system-footer__btn {
    width: 100%;
    justify-content: center;
  }
}


/* ---------- Start Your Own Brain Health Journey ---------- */
/* Large decorative corner (white fill, single accent border, big radius) —
   same technique already used for #faq's top-left corner and the locations
   sidebar's bottom-right corner, but as a ::before rather than applied
   directly to the section: the design's shape stops short of the true
   viewport edge (98% width), so the section itself stays plain and this
   pseudo-element carries the fill/border/radius, sized independently. */
.aci-design-system-footer {
  position: relative;
  z-index: 0; /* establishes a stacking context so ::before's z-index:-1 stays scoped to this section instead of sinking behind every other normal-flow section on the page */
  background: #f2f9fa;
  /* Carried here when this became a <footer>: it used to pick up the
     page-wide `section` padding, which no longer matches it. Declaring it
     alongside the rest of the footer keeps the block self-contained for
     any page that adopts it. */
  padding: 5rem 2rem;
}
.aci-design-system-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 98%;
  z-index: -1;
  background: #fff;
  border-top: 0.0625rem solid #008cb1;
  border-right: 0.0625rem solid #008cb1;
  border-top-right-radius: 12.5rem; /* 200px */
}

.aci-design-system-footer__split {
  gap: 3.25rem; /* 52px, matches the design's column gap */
  align-items: start;
}

/* Figma's left column keeps a consistent 24px gap between every block
   (stars, eyebrow, heading+body, buttons) — the eyebrow's own default is
   16px, so both the stars and the eyebrow get 24px here to match. */
.aci-design-system-footer__stars {
  display: flex;
  gap: 0.25rem;
  color: #ecd099;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}
.aci-design-system-footer__eyebrow {
  margin-bottom: var(--space-md);
}

/* This button's phone icon is an inline <svg>, not an <i>, so the
   hover-reveal trailing-arrow treatment above (which targets only `i`)
   never applies: it's a leading, always-visible icon by construction. */
.aci-design-system-footer__call-btn {
  gap: 0.5rem;
}
.aci-design-system-footer .aci-design-system-footer__call-btn:hover {
  opacity: 1;
}
.aci-design-system-footer__call-btn-icon {
  flex-shrink: 0;
}

.aci-design-system-footer__form-panel {
  width: 100%;
  max-width: 35.625rem; /* 570px */
  padding: 3rem; /* 48px */
  border: 0.0625rem solid #4fc3d1;
  border-radius: 2.5rem; /* 40px */
  background: linear-gradient(-89.99356deg, rgba(255, 255, 255, 0.6) 34.886%, rgba(255, 255, 255, 0.75) 70.456%);
  backdrop-filter: blur(13.194px);
  -webkit-backdrop-filter: blur(13.194px);
}

/* Gravity Form (id 70) — field structure/names/ids kept faithful to the
   production page source; styled here to match the design's glass-panel
   look. Scoped to .aci-gform_wrapper (already a site-specific hook in the
   real markup) so this doesn't leak onto any other Gravity Form elsewhere. */
.aci-design-system-footer .aci-gform_wrapper {
  width: 100%;
}

.aci-design-system-footer .gform_required_legend {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #22386a;
  opacity: 0.75;
}

.aci-design-system-footer .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
  list-style: none;
  margin: 0;
  padding: 0;
}

.aci-design-system-footer .gfield {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
}
/* Reset native fieldset/legend chrome (Name, Required/Optional Consent
   fields use <fieldset>/<legend> for correct grouping semantics). */
.aci-design-system-footer fieldset.gfield {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.aci-design-system-footer .gform-field-label.gfield_label_before_complex {
  padding: 0;
}

.aci-design-system-footer .gform-field-label,
.aci-design-system-footer .gfield_label {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.0225rem;
  color: #22386a;
}
.aci-design-system-footer .gfield_required_asterisk { color: inherit; }

.aci-design-system-footer .ginput_container input[type="text"],
.aci-design-system-footer .ginput_container input[type="email"],
.aci-design-system-footer .ginput_container input[type="tel"],
.aci-design-system-footer .ginput_container select,
.aci-design-system-footer .ginput_container textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem; /* 12px */
  border: 0.0625rem solid #8bb6de;
  border-radius: 0.625rem; /* 10px */
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: -0.0175rem;
  color: #202234;
}
.aci-design-system-footer .ginput_container input::placeholder,
.aci-design-system-footer .ginput_container textarea::placeholder {
  color: #202234;
  opacity: 0.75;
}
.aci-design-system-footer .ginput_container textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Name fieldset: two side-by-side inputs, each with its own visible
   sub-label (shown here to match the design — the production form's
   default theme keeps these visually hidden). */
.aci-design-system-footer .ginput_container--name {
  display: flex;
  gap: 0.75rem; /* 12px */
}
.aci-design-system-footer .ginput_container--name > span {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aci-design-system-footer .gform-field-label--type-sub {
  font-size: 1.125rem;
}

/* Checkboxes: native inputs (kept for accessibility/keyboard support)
   rather than the Figma mock's decorative FA square icons. */
.aci-design-system-footer .gfield_checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
}
.aci-design-system-footer .gchoice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.aci-design-system-footer .gchoice input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: #22386a;
}
.aci-design-system-footer .gform-field-label--type-inline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: -0.0175rem;
  color: #22386a;
}
.aci-design-system-footer .gform-field-label--type-inline strong { font-weight: 600; }

.aci-design-system-footer .gform_footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}
.aci-design-system-footer .gform_button {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.0225rem;
  color: #001b1f;
  background: transparent;
  border: 0.125rem solid #000;
  border-radius: 3rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.aci-design-system-footer .gform_button:hover { opacity: 0.85; }

@media (max-width: 700px) {
  .aci-design-system-footer .ginput_container--name { flex-direction: column; }
}

@media (max-width: 900px) {
  /* The inset white panel runs the full width here, so its own radius is
     the only one left — the section behind it stays square. */
  .aci-design-system-footer::before {
    width: 100%;
    border-top-right-radius: 50px;
  }
  .aci-design-system-footer__form-panel {
    max-width: 100%;
    padding: 2rem 1rem;
  }
  /* Mirrors the mobile `section` / `section .container` spacing this
     inherited before it became a <footer>. */
  .aci-design-system-footer {
    padding: 2rem;
  }
  .aci-design-system-footer__container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- Site Header / Navigation ---------- */
/* Fixed (not sticky): sticky breaks silently under any ancestor whose
   overflow is not visible, which a host theme may well have. Pair it with
   .aci-design-system-header-offset below.
   Slides up out of view on scroll-down / back in on scroll-up (see
   js/aci-design-system-global.js) — z-index kept below the locations
   sidebar's 998/999 so that still covers the header when open. */
.aci-design-system-header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: transform 0.3s ease;
}
.aci-design-system-header.aci-design-system-is-hidden {
  transform: translateY(-100%);
}

/* The header is position: fixed, so whatever follows it has to be pushed
   down by its height. Put this class on that element (e.g. <main>) — the
   one thing the host page must opt into. */
.aci-design-system-header-offset {
  padding-top: 97px; 
}
@media (max-width: 900px) {
  .aci-design-system-header-offset {
    padding-top: 72px; 
  }
}

/* The header's inner row doubles as its centered content column, so the
   container properties live here rather than on a separate class. */
.aci-design-system-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.0625rem; /* 97px */
  max-width: calc(var(--container-max) + 2 * var(--page-padding));
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.aci-design-system-header__logo {
  display: inline-flex;
  flex-shrink: 0;
}
.aci-design-system-header__logo svg {
  display: block;
  height: 1.5625rem; /* 25px */
  width: auto;
}

.aci-design-system-header__nav {
  display: flex;
  align-items: center;
  gap: 3rem; /* 48px */
}

.aci-design-system-header__links {
  display: flex;
  align-items: center;
  gap: 3rem; /* 48px */
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Top-level dropdowns (About Us, Conditions, Learn, Resources, For
   Providers) deliberately do NOT get position: relative here — their
   .aci-design-system-header__dropdown panel is positioned absolute against the header
   itself (the nearest positioned ancestor, already position: fixed) so
   every panel's top lines up with the bottom of the whole header, not
   just under its own (shorter) trigger row. Horizontal alignment to the
   trigger is then set per-panel via an inline `left` from JS (see
   js/aci-design-system-global.js). The nested "Locations" flyout is the
   exception — it keeps its own position: relative via
   .aci-design-system-header__dropdown-item below, since it flies out from its own row. */

/* "For Providers" sits directly in .aci-design-system-header__nav (not inside
   .aci-design-system-header__links, which is only the first 4 items) as its own
   flex row: a real link plus a separate toggle button, same pattern as
   "Locations" nested inside "About Us" below. */
.aci-design-system-header__nav > .aci-design-system-header__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Top-level dropdown trigger (a <button>, not an <a> — matches the real
   production nav, where these labels have no landing page of their own,
   only a submenu; "For Providers"/"Locations" below do have a real link,
   with the toggle as a separate sibling button). Styled to look identical
   to a plain nav link. */
button.aci-design-system-header__nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-heading); /* Poppins */
  font-size: 1.125rem; /* 18px */
  font-style: normal;
  font-weight: 500;
  line-height: 1.4; /* 25.2px */
  letter-spacing: -0.0225rem; /* -0.36px */
  color: #1e1e1e;
  cursor: pointer;
  white-space: nowrap;
}
.aci-design-system-header__caret {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.aci-design-system-header__has-dropdown.aci-design-system-is-open > .aci-design-system-header__nav-trigger .aci-design-system-header__caret,
.aci-design-system-header__has-dropdown.aci-design-system-is-open > .aci-design-system-header__subtoggle svg {
  transform: rotate(180deg);
}

/* Dropdown panel — absolutely positioned below its trigger on desktop,
   hidden until its parent .aci-design-system-header__has-dropdown gets .aci-design-system-is-open (see
   js/aci-design-system-global.js). */
.aci-design-system-header__dropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-width: 14rem;
}
.aci-design-system-header__has-dropdown.aci-design-system-is-open > .aci-design-system-header__dropdown {
  display: block;
}
.aci-design-system-header__dropdown a,
.aci-design-system-header__dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #000;
  text-decoration: none;
  border-radius: 0.5rem;
  white-space: nowrap;
}
.aci-design-system-header__dropdown a:hover,
.aci-design-system-header__dropdown-link:hover {
  background: rgba(0, 134, 153, 0.08);
}

/* "Locations" nested inside the "About Us" dropdown: a real link plus a
   separate toggle button that flies out a second-level submenu. */
.aci-design-system-header__dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
}
.aci-design-system-header__dropdown-item .aci-design-system-header__dropdown-link {
  flex: 1 1 auto;
}
.aci-design-system-header__subtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
@media (min-width: 901px) {
  .aci-design-system-header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: #fff;
    border: 0.0625rem solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    margin-top: 0.5rem;
  }
  /* The second-level "Locations" flyout opens to the right of "About Us"'s
     panel instead of stacking below it. */
  .aci-design-system-header__dropdown--nested {
    top: 0;
    left: 100%;
    margin-top: 0;
  }
}

.aci-design-system-header__providers {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.0225rem;
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
  white-space: nowrap;
}
.aci-design-system-header__subtoggle--providers {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.75);
}
.aci-design-system-header__subtoggle--providers svg,
.aci-design-system-header__subtoggle--providers i {
  transition: transform 0.15s ease;
}

.aci-design-system-header__cta {
  font-weight: 500;
  white-space: nowrap;
}

/* Mobile menu toggle — hidden on desktop; JS (see js/aci-design-homepage.js,
   duplicating the same #navToggle/#navMenu pattern already used by
   js/aci-design-system.js on other pages) toggles .aci-design-system-is-open on #navMenu. */
.aci-design-system-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 0;
  padding: 0;
  color: #000;
  cursor: pointer;
}
.aci-design-system-header__toggle-icon {
  display: block;
}

@media (max-width: 900px) {
  .aci-design-system-header__inner {
    position: relative;
    min-height: 4.5rem;
  }
  .aci-design-system-header__toggle {
    display: flex;
  }
  .aci-design-system-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    background: #fff;
    border-top: 0.0625rem solid var(--color-border);
    padding: var(--space-md);
  }
  .aci-design-system-header__nav.aci-design-system-is-open {
    display: flex;
  }
  .aci-design-system-header__links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    width: 100%;
  }
  .aci-design-system-header__links > li {
    width: 100%;
  }
  /* Dropdowns stack in normal flow (indented) rather than as an
     absolutely-positioned flyout, matching the rest of the mobile menu. */
  .aci-design-system-header__nav-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .aci-design-system-header__dropdown {
    padding: var(--space-xs) 0 var(--space-xs) var(--space-md);
  }
  /* Without this, the nested Locations panel stays a flex item of
     .aci-design-system-header__dropdown-item (link + toggle + panel in a row) and
     renders beside the link instead of below it — the absolute
     positioning that normally takes it out of flow only applies at
     min-width: 901px. */
  .aci-design-system-header__dropdown-item {
    flex-wrap: wrap;
  }
  .aci-design-system-header__dropdown--nested {
    flex: 1 1 100%;
    width: 100%;
    padding-left: var(--space-md);
  }
  /* Same fix as .aci-design-system-header__dropdown-item above: "For Providers" is a
     link + toggle + dropdown panel in one flex row (.aci-design-system-header__nav-item,
     unconditionally display:flex — see above), so the panel needs to wrap
     onto its own full-width row instead of sitting beside the link. */
  .aci-design-system-header__nav > .aci-design-system-header__nav-item {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .aci-design-system-header__nav > .aci-design-system-header__nav-item > .aci-design-system-header__dropdown {
    flex: 1 1 100%;
    width: 100%;
  }
  .aci-design-system-header__cta {
    width: 100%;
    justify-content: center;
  }
}
