/* L2 site: additions on top of the design's inline styles (mobile header, utility) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  header > div { column-gap: 12px !important; }
  header [data-l2="burger"] { display: inline-flex !important; }
  header [data-l2="nav"], header [data-l2="cta"] { display: none !important; }
  header.l2-open [data-l2="nav"] {
    display: flex !important; flex: 1 1 100% !important; flex-direction: column; align-items: stretch !important;
    gap: 0 !important; border-top: 1px solid #C9D6E8; padding-top: 8px;
  }
  header.l2-open [data-l2="nav"] > button,
  header.l2-open [data-l2="nav"] > div > button,
  header.l2-open [data-l2="nav"] > a { width: 100%; justify-content: space-between; padding: 0 4px !important; }
  header.l2-open [data-l2="cta"] { display: flex !important; flex: 1 1 100% !important; padding: 4px 4px 12px; }
  #menu-services, #menu-resources {
    position: static !important; width: auto !important; max-width: none !important;
    border: 0 !important; border-left: 2px solid #C9D6E8 !important; margin: 0 0 12px 4px;
  }
  #menu-services > div, #menu-resources > div { padding-left: 16px !important; padding-right: 8px !important; }
}

/* tighter top spacing for the first section on phones */
@media (max-width: 600px) {
  main > section:first-child { padding-top: 40px !important; }
  main > section:first-child > div:has(> nav[aria-label="Breadcrumb"]) { row-gap: 16px !important; }
}

/* homepage headline: keep the comma attached to the underlined phrase on narrow screens */
@media (max-width: 600px) {
  [data-l2="m-comma"] { display: inline !important; }
  [data-l2="d-comma"] { display: none !important; }
}
