/* Site navigation, 2026 design. Markup: core/nav-2026.php. Behaviour: nav.js.
   Everything is scoped to .cnav (inside #head.cnav-host) so the previous header's rules
   and this file never meet. Values follow the design tokens of the handoff. */

.cnav {
  --cnav-purple: #211551;
  --cnav-electric: #593dcd;
  --cnav-cloud: #eeecfa;
  --cnav-raspberry: #e93cac;
  --cnav-deep: #140b37;
  --cnav-cta: #d6188a;
  --cnav-cta-hover: #c0127a;
  --cnav-label: #736b9e;
  --cnav-muted: #526068;
  --cnav-line: #e6e6e6;
  --cnav-display: "Silka", "Inter", system-ui, sans-serif;
  --cnav-body: "Open Sans", "Inter", system-ui, sans-serif;
  --cnav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cnav-bar-h: 72px;
  --cnav-pad: 32px;
  --cnav-feature-gradient:
    radial-gradient(ellipse 80% 100% at 5% 10%, rgba(74, 37, 170, 0.10), transparent 100%),
    radial-gradient(ellipse 75% 95% at 95% 90%, rgba(174, 246, 236, 0.55), transparent 100%),
    radial-gradient(ellipse 70% 90% at 85% 5%, rgba(246, 184, 225, 0.50), transparent 100%),
    #ffffff;

  position: relative;
  box-sizing: border-box;
  font-family: var(--cnav-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Neutralise the theme's global element styles inside the navigation. */
.cnav *, .cnav *::before, .cnav *::after { box-sizing: border-box; }
/* The theme styles every <a> pink and underlined, and every <button> as a pink pill with
   !important on colour, weight and alignment; hence the !important on those three here. */
.cnav a, .cnav a:hover, .cnav a:focus, .cnav a:active, .cnav a:visited {
  color: inherit; font-family: inherit; text-decoration: none;
  transition: background-color 180ms var(--cnav-ease), border-color 180ms var(--cnav-ease), box-shadow 180ms var(--cnav-ease);
}
.cnav a, .cnav button { -webkit-tap-highlight-color: transparent; }
.cnav button { margin: 0; font: inherit; font-weight: 400 !important; color: inherit !important; letter-spacing: inherit; text-shadow: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
/* Pages style bare elements too (one sets `ul li { color }`); structure inherits from the bar instead. */
.cnav :where(nav, div, ul, li, p, span, form, label) { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; }
.cnav ul { margin: 0; padding: 0; list-style: none; }
.cnav li { margin: 0; padding: 0; }
.cnav li::before { content: none; }
.cnav p { margin: 0; }
.cnav img { max-width: none; border: 0; vertical-align: middle; }
.cnav a:focus, .cnav button:focus, .cnav input:focus { outline: 0; }
.cnav a:focus-visible, .cnav button:focus-visible { outline: 2px solid var(--cnav-raspberry); outline-offset: 2px; }
.cnav-i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.cnav-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Bar: dark at rest, white while a menu is open or a top link is hovered ---------- */
.cnav-main { position: relative; z-index: 1; }
.cnav-top {
  position: relative; z-index: 2;
  background: var(--cnav-purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 200ms var(--cnav-ease), border-color 200ms var(--cnav-ease), color 200ms var(--cnav-ease);
}
.cnav.is-active .cnav-top { background: #fff; border-bottom-color: var(--cnav-line); color: var(--cnav-purple); }
.cnav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1376px; height: var(--cnav-bar-h); margin: 0 auto; padding: 0 var(--cnav-pad);
}

.cnav-logo { position: relative; display: block; flex-shrink: 0; line-height: 0; }
.cnav .cnav-logo img { display: block; width: auto; height: 30px; transition: opacity 200ms var(--cnav-ease); }
.cnav-bar .cnav-logo-light { position: absolute; top: 0; left: 0; opacity: 0; }
.cnav.is-active .cnav-bar .cnav-logo-light { opacity: 1; }
.cnav.is-active .cnav-bar .cnav-logo-dark { opacity: 0; }

.cnav .cnav-menu { display: flex; align-items: center; gap: 4px; }
.cnav .cnav-trigger {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 9999px; background: transparent; color: inherit;
  font-family: var(--cnav-display); font-size: 15px; font-weight: 400; line-height: 1; white-space: nowrap;
  transition: background-color 180ms var(--cnav-ease), border-color 180ms var(--cnav-ease);
}
.cnav .cnav-chev { color: var(--cnav-raspberry); transition: transform 220ms var(--cnav-ease); }
.cnav .cnav-trigger[aria-expanded="true"], .cnav .cnav-trigger.is-hover { background: var(--cnav-cloud); border-color: rgba(33, 21, 81, 0.10); }
.cnav [aria-expanded="true"] > .cnav-chev { transform: rotate(180deg); }

.cnav-actions { display: flex; align-items: center; gap: 8px; }
.cnav .cnav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 9999px; background: transparent; color: inherit;
  transition: background-color 160ms var(--cnav-ease), border-color 160ms var(--cnav-ease);
}
.cnav .cnav-icon-btn[aria-expanded="true"] { background: var(--cnav-cloud); border-color: rgba(33, 21, 81, 0.10); }
.cnav .cnav-burger { display: none; }
.cnav .cnav-watch { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; font-family: var(--cnav-display); font-size: 15px; white-space: nowrap; }
.cnav .cnav-watch .cnav-i { color: var(--cnav-raspberry); }
.cnav a.cnav-cta, .cnav a.cnav-cta:hover, .cnav a.cnav-cta:focus, .cnav a.cnav-cta:visited { color: #fff; }
.cnav .cnav-cta {
  display: flex; align-items: center; height: 44px; padding: 0 22px;
  border-radius: 9999px; background: var(--cnav-cta);
  font-family: var(--cnav-display); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.cnav .cnav-cta:hover { background: var(--cnav-cta-hover); }

/* ---------- Mega menus: one shell that fades in and resizes between menus ---------- */
.cnav-shell {
  position: absolute; z-index: 1; top: 100%; left: 50%;
  width: var(--cnav-w, 1040px); height: var(--cnav-h, 0px);
  overflow: hidden;
  background: #fff; color: var(--cnav-purple);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 24px 64px rgba(20, 11, 55, 0.22), 0 0 0 1px rgba(33, 21, 81, 0.08);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px);
  transition: opacity 160ms ease, transform 240ms var(--cnav-ease), width 280ms var(--cnav-ease), height 280ms var(--cnav-ease), visibility 0s linear 240ms;
}
.cnav.is-open .cnav-shell { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.cnav-shell.is-instant { transition-property: opacity, transform, visibility; }

.cnav-panel {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1040px, calc(100vw - 32px)); padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}
.cnav-panel--narrow { width: min(760px, calc(100vw - 32px)); }
.cnav-panel--search { width: min(820px, calc(100vw - 32px)); padding: 20px; }
.cnav-panel.is-open { opacity: 1; visibility: visible; transition: opacity 220ms ease 60ms, visibility 0s; }

.cnav-backdrop {
  position: absolute; z-index: 0; top: 100%; left: 0; right: 0; height: 100vh;
  background: rgba(20, 11, 55, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.cnav.is-open .cnav-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Menu content ---------- */
.cnav .cnav-label { display: block; padding: 8px 12px 0; font-family: var(--cnav-body); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cnav-label); }
.cnav-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cnav .cnav-t { font-family: var(--cnav-display); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--cnav-purple); }
.cnav .cnav-d { font-family: var(--cnav-body); font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--cnav-muted); }
.cnav-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--cnav-cloud); color: var(--cnav-purple); transition: background-color 180ms var(--cnav-ease); }

.cnav .cnav-link { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 12px; }
.cnav .cnav-link:hover { background: var(--cnav-cloud); }
.cnav .cnav-link:hover .cnav-tile, .cnav .cnav-compact:hover .cnav-tile { background: #fff; }
.cnav-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.cnav-grid2--tight { gap: 2px; }

.cnav-groups { display: grid; }
.cnav-col { display: flex; flex-direction: column; min-width: 0; }

/* Feature layout (Platform): featured column, divider, the other groups */
.cnav-groups--feature { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; }
.cnav-groups--feature > .cnav-col { gap: 8px; padding-left: 24px; border-left: 1px solid var(--cnav-line); }
.cnav-groups--feature > .cnav-col .cnav-label { padding: 8px 10px 0; }
.cnav-groups--feature > .cnav-col--featured { gap: 10px; padding-left: 0; border-left: 0; }
.cnav-groups--feature > .cnav-col--featured .cnav-label { padding: 8px 4px 0; }
.cnav .cnav-feature { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 16px; background: var(--cnav-feature-gradient); }
.cnav .cnav-feature:hover { box-shadow: 0 2px 4px rgba(20, 11, 55, 0.06), 0 8px 24px rgba(74, 37, 170, 0.12); }
.cnav-feature .cnav-tile { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.cnav-feature .cnav-stack { gap: 6px; }
.cnav-feature .cnav-t { font-size: 20px; line-height: 1.2; }
.cnav-feature .cnav-d { font-size: 14px; line-height: 1.5; }
.cnav .cnav-link--outlined { align-items: center; padding: 14px 16px; border: 1px solid var(--cnav-line); }
.cnav-link--outlined .cnav-t { font-size: 16px; }
.cnav .cnav-compact { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; }
.cnav .cnav-compact:hover { background: var(--cnav-cloud); }
.cnav-compact .cnav-tile { width: 28px; height: 28px; border-radius: 8px; }
.cnav-compact .cnav-t { font-size: 14px; }

/* Column layout (Solutions): groups side by side with dividers */
.cnav-groups--columns { gap: 16px; }
.cnav-groups--columns > .cnav-col { gap: 4px; }
.cnav-groups--columns > .cnav-col + .cnav-col { padding-left: 16px; border-left: 1px solid var(--cnav-line); }
.cnav-groups--columns .cnav-label { padding-bottom: 6px; }
.cnav-groups--columns > .cnav-col--icon-list { gap: 8px; }
.cnav-groups--columns > .cnav-col--icon-list .cnav-label { padding-bottom: 0; }
.cnav .cnav-plain { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; }
.cnav .cnav-plain:hover, .cnav .cnav-textlink:hover { background: var(--cnav-cloud); }
.cnav-plain .cnav-i { color: var(--cnav-raspberry); }
.cnav .cnav-textlink { display: block; padding: 10px 12px; border-radius: 10px; }

/* Single group (Company, Resources) */
.cnav-groups--single > .cnav-col { gap: 8px; }

.cnav-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; padding: 14px 20px; border-radius: 12px; background: var(--cnav-cloud); font-size: 14px; line-height: 1.4; }
.cnav-foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.cnav .cnav-foot a { font-family: var(--cnav-display); font-weight: 600; white-space: nowrap; }
.cnav .cnav-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cnav .cnav-note { margin: 4px 12px; font-size: 13px; line-height: 1.5; color: var(--cnav-muted); }

/* Search */
.cnav .cnav-search { display: flex; align-items: center; gap: 12px; height: 56px; margin: 0; padding: 0 20px; border: 2px solid var(--cnav-electric); border-radius: 9999px; }
.cnav .cnav-search input, .cnav .cnav-m-search input {
  flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none;
  font-family: var(--cnav-body); font-size: 16px; line-height: 1.4; color: var(--cnav-purple);
  -webkit-appearance: none; appearance: none;
}
.cnav .cnav-search input::placeholder, .cnav .cnav-m-search input::placeholder { color: var(--cnav-muted); opacity: 1; }
.cnav-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cnav-chips .cnav-label { padding: 0 4px 0 0; }
.cnav .cnav-chip { display: flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--cnav-line); border-radius: 9999px; font-family: var(--cnav-display); font-size: 14px; }
.cnav .cnav-chip:hover { background: var(--cnav-cloud); }

/* ---------- Drawer (small screens) ---------- */
.cnav-drawer { position: fixed; z-index: 3; top: 0; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; background: rgba(20, 11, 55, 0); transition: background-color 240ms ease; }
.cnav-drawer[hidden] { display: none; }
.cnav.is-drawer .cnav-drawer { background: rgba(20, 11, 55, 0.45); }
.cnav-sheet { display: flex; flex-direction: column; width: 100%; max-width: 440px; height: 100%; background: #fff; color: var(--cnav-purple); transform: translateX(24px); opacity: 0; transition: transform 280ms var(--cnav-ease), opacity 200ms ease; }
.cnav.is-drawer .cnav-sheet { transform: none; opacity: 1; }
.cnav-drawer-top { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--cnav-line); }
.cnav .cnav-drawer-top .cnav-logo img { height: 26px; }
.cnav .cnav-drawer-close { background: var(--cnav-cloud); }
.cnav-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cnav .cnav-m-search { display: flex; align-items: center; gap: 10px; flex-shrink: 0; height: 48px; margin: 0; padding: 0 16px; border-radius: 9999px; background: var(--cnav-cloud); }
.cnav .cnav-acc { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; color: inherit; font-family: var(--cnav-display); font-size: 18px; font-weight: 600 !important; line-height: 1.2; text-align: left !important; }
.cnav-acc-item { border-bottom: 1px solid var(--cnav-line); }
.cnav-acc-item.is-open > .cnav-acc { box-shadow: inset 0 -1px 0 var(--cnav-line); }
.cnav-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--cnav-ease); }
.cnav-acc-item.is-open > .cnav-acc-panel { grid-template-rows: 1fr; }
.cnav-acc-inner { display: flex; flex-direction: column; min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 280ms; }
.cnav-acc-item.is-open .cnav-acc-inner { visibility: visible; transition-delay: 0s; }
.cnav-acc-inner > :first-child { margin-top: 14px; }
.cnav-acc-inner > :last-child { margin-bottom: 12px; }
.cnav .cnav-m-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px; border-radius: 10px; font-family: var(--cnav-display); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cnav-m-link .cnav-tile { width: 28px; height: 28px; border-radius: 8px; }
.cnav .cnav-m-feature { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 4px; border-radius: 12px; background: var(--cnav-feature-gradient); font-family: var(--cnav-display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.cnav-m-feature .cnav-tile { width: 44px; height: 44px; border-radius: 12px; background: #fff; }
.cnav .cnav-m-outlined { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; margin-bottom: 4px; border: 1px solid var(--cnav-line); border-radius: 12px; font-family: var(--cnav-display); font-size: 15px; font-weight: 600; line-height: 1.3; }
.cnav-m-outlined .cnav-tile { width: 36px; height: 36px; }
.cnav .cnav-m-label { padding: 10px 12px 4px; }
.cnav .cnav-m-top { display: flex; align-items: center; height: 56px; padding: 0 4px; border-bottom: 1px solid var(--cnav-line); font-family: var(--cnav-display); font-size: 18px; font-weight: 600; }
.cnav-drawer-foot { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--cnav-line); }
.cnav .cnav-drawer-foot a { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 9999px; font-family: var(--cnav-display); font-size: 16px; font-weight: 600; }
.cnav a.cnav-m-primary, .cnav a.cnav-m-primary:hover, .cnav a.cnav-m-primary:focus, .cnav a.cnav-m-primary:visited { background: var(--cnav-cta); color: #fff; }
.cnav .cnav-m-secondary { border: 1px solid var(--cnav-raspberry); }
html.cnav-lock, html.cnav-lock body { overflow: hidden; }
/* The chat assistant floats above everything; step it aside while the drawer covers the page. */
html.cnav-lock #spara-navigator-wrapper, html.cnav-lock #spara-button { visibility: hidden !important; }

/* ---------- Widths ---------- */
/* The full bar needs about 1180px. Just above that, give it a little more room. */
@media (max-width: 1279.98px) {
  .cnav { --cnav-pad: 24px; }
  .cnav-bar { gap: 16px; }
  .cnav .cnav-trigger { padding: 0 11px; }
  .cnav .cnav-watch { padding: 0 8px; }
  .cnav .cnav-cta { padding: 0 18px; }
}
/* Below it: logo, search, the demo button and the menu button; the menus move into the drawer. */
@media (max-width: 1149.98px) {
  .cnav .cnav-menu, .cnav .cnav-watch, .cnav-shell, .cnav-backdrop { display: none; }
  .cnav .cnav-burger { display: flex; }
}
@media (max-width: 719.98px) {
  .cnav { --cnav-bar-h: 64px; --cnav-pad: 16px; }
  .cnav .cnav-bar .cnav-logo img { height: 26px; }
  .cnav .cnav-cta { display: none; }
  .cnav-actions { gap: 4px; }
  .cnav-sheet { max-width: none; transform: translateY(12px); }
}

/* ---------- Phones on the older templates ----------
   home-new.css (home, platform and campaign templates) moves the header 41px down at 480px and below to make
   room for the page's notification bar, also on pages that have no such bar: that left an empty strip above
   the header. The offset now applies only when the bar is on the page. */
body:not(:has(.notification-bar)) header#head.cnav-host { top: 0; }

/* ---------- The home page banner, when its block moves it into the header ---------- */
.cnav-host .top-popup-banner { background: #140b37; box-shadow: none; font-family: "Silka", "Inter", system-ui, sans-serif; }
.cnav-host .top-popup-banner .banner-content { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; min-height: 40px; max-width: none; padding: 8px 48px; font-size: 14px; line-height: 1.4; }
.cnav-host .top-popup-banner .banner-title { font-size: 14px; }
.cnav-host .top-popup-banner a.banner-cta { font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; text-transform: none; }
.cnav-host .top-popup-banner .banner-close { right: 16px; font-size: 22px; }
@media (max-width: 719.98px) {
  .cnav-host .top-popup-banner .banner-content { padding: 8px 40px 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cnav *, .cnav *::before, .cnav *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
@media print {
  .cnav-shell, .cnav-backdrop, .cnav-drawer { display: none !important; }
}
