/* Site header, brand mark, solutions dropdown and mobile panel. */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--background) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 42px; }
.site-footer .brand-logo { height: 46px; }

.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
.desktop-nav .btn--nav { font-size: inherit; gap: 4px; }
.nav-item { transition: color 150ms; }
.nav-item:hover, .nav-item[aria-current='page'], .desktop-nav .btn--nav.is-current { color: var(--teal); }

.nav-dropdown { position: relative; }
/* Padding (not a gap) separates the panel from the trigger, so the pointer stays inside the dropdown. */
.nav-dropdown__panel { position: absolute; top: 100%; left: -24px; padding-top: 22px; z-index: 1; }
.solutions-menu { width: 400px; padding: 10px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-menu); }
.solutions-menu a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); }
.solutions-menu a:hover, .solutions-menu a[aria-current='page'] { background: var(--muted); }
.solutions-menu strong { display: block; font-size: var(--text-sm); color: var(--foreground); }
.solutions-menu small { display: block; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted-foreground); margin-top: 2px; }
.solutions-menu__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--secondary); color: var(--primary); }
.solutions-menu__links { display: grid; margin-top: 6px; border-top: 1px solid var(--border); }
.solutions-menu .solutions-menu__all { align-items: center; justify-content: space-between; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: var(--text-sm); color: var(--primary); }

.mobile-menu, .mobile-panel { display: none; }
.mobile-menu__close { display: none; }
[aria-expanded='true'] > .mobile-menu__open { display: none; }
[aria-expanded='true'] > .mobile-menu__close { display: block; }

@media (max-width: 1080px) {
  .desktop-nav { gap: 22px; font-size: var(--text-sm); }
}

@media (max-width: 860px) {
  .brand-logo { height: 34px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: flex; gap: 8px; align-items: center; }
  .mobile-panel { border-top: 1px solid var(--border); padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; max-height: calc(100dvh - var(--header-height) - var(--cookie-banner-space, 0px)); overflow-y: auto; }
  .mobile-panel a { padding-block: 12px; font-size: var(--text-base); font-weight: 600; border-bottom: 1px solid var(--border); }
  .mobile-panel .mobile-panel__sub { padding-left: 16px; font-weight: 500; color: var(--muted-foreground); }
  /* The main call to action keeps its full label: in the header where it fits, otherwise first in the menu. */
  .mobile-panel .mobile-panel__cta { margin-block: 8px 4px; padding-block: 12px; border-bottom: 0; }
}

@media (min-width: 441px) {
  .mobile-panel .mobile-panel__cta { display: none; }
}

@media (max-width: 440px) {
  .mobile-menu__cta { display: none; }
}
