.masthead:has(.aeon-nav) { position: relative; z-index: 40; }
.masthead nav.aeon-nav { overflow: visible; align-items: center; gap: clamp(.15rem, .5vw, .55rem); }
.masthead nav.aeon-nav > a, .masthead nav.aeon-nav summary {
  display: flex; align-items: center; gap: .48em; min-height: 42px; padding: .45rem .75rem;
  border: 0; border-radius: 999px; font-size: clamp(.88rem, 1.1vw, 1.06rem); font-weight: 500;
  color: #142024; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.masthead nav.aeon-nav :is(summary:hover, a:hover, a[aria-current="page"]),
.masthead nav.aeon-nav .aeon-nav-group[open] > summary { color: #005353; background: #eaf5f2; text-decoration: none; }
.masthead .aeon-nav-group { position: relative; border: 0; padding: 0; margin: 0; }
.aeon-nav-group summary { list-style: none; }
.aeon-nav-group summary::-webkit-details-marker { display: none; }
.aeon-nav-group summary::after { content: ''; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: .42em; height: .42em; transform: translateY(-.12em) rotate(45deg); transition: transform 160ms ease; }
.aeon-nav-group[open] summary::after { transform: translateY(.12em) rotate(225deg); }
.masthead nav.aeon-nav :is(a,summary):focus-visible { outline: 2px solid #005353; outline-offset: 3px; }
.aeon-nav-panel {
  position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; min-width: 15rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(12.5rem,max-content);
  gap: .9rem; padding: .8rem; border: 1px solid #d2e1dd; border-radius: 18px;
  background: #fff; box-shadow: 0 18px 42px #193e3624, 0 4px 10px #193e360d;
  text-align: left; font: .95rem/1.4 Roboto, sans-serif;
}
.aeon-nav-panel::before { content: ''; position:absolute; inset: -9px 0 auto; height: 9px; }
.aeon-nav-group[open] .aeon-nav-panel { animation: aeon-menu-in 170ms ease-out both; }
@keyframes aeon-menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.aeon-nav-group:last-of-type .aeon-nav-panel { left:auto; right:0; }
.aeon-nav-panel > div { min-width: 0; }
.aeon-nav-panel > div + div { border-left: 1px solid #e2ebe8; padding-left: .9rem; }
.aeon-nav-panel p { margin: 0 0 .35rem; padding: .4rem .65rem; font-size: .84rem; font-weight: 700; color: #005353; }
.masthead nav.aeon-nav .aeon-nav-panel a {
 display: flex; align-items: center; justify-content: space-between; gap: .85rem;
 min-height: 40px; padding: .45rem .65rem; border: 0; border-radius: 9px;
 color: #142024; font-size: .96rem; white-space: normal;
}
.masthead nav.aeon-nav .aeon-nav-panel a:is(:hover,:focus-visible,[aria-current="page"]) { background:#eaf5f2; color:#005353; text-decoration:none; }
.masthead nav.aeon-nav .aeon-nav-panel a::after { content:''; width:.38em; height:.38em; flex:none; border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(45deg); opacity:.45; }
.masthead :is(.header-demo,.nav-demo,.demo-link,.demo), .masthead:has(.aeon-nav) :is(.menu,.menu-toggle) { border-radius:999px; }
.masthead nav.aeon-nav .aeon-mobile-demo { display: none; }
@media (min-width: 1051px) and (max-width: 1200px) {
  .masthead nav.aeon-nav .aeon-mobile-demo { display: flex; }
  .opening .masthead nav.aeon-nav .aeon-mobile-demo { display:none; }
  .masthead:not(.opening .masthead) .header-demo { display:none; }
}
@media (min-width:1051px) and (max-width:1280px) {
  .masthead:has(.aeon-nav):not(.opening .masthead) { gap:.85rem; }
  .masthead:not(.opening .masthead) .brand { flex:none; white-space:nowrap; }
  .masthead:not(.opening .masthead) .brand span { font-size:clamp(1.55rem,2.55vw,1.85rem); }
  .masthead:not(.opening .masthead) nav.aeon-nav > a,
  .masthead:not(.opening .masthead) nav.aeon-nav summary { padding-inline:.46rem; }
}
@media (min-width:1051px) and (max-width:1120px) {
  .aeon-nav-group:first-of-type .aeon-nav-columns { column-gap:1rem; }
}
@media (max-width:1050px) {
  .masthead:has(.aeon-nav) { flex-wrap:wrap; }
  .masthead:has(.aeon-nav) :is(.menu,.menu-toggle) { display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin-left:auto; gap:6px; color:#005353; font:500 1rem/1.25 Roboto,Arial,sans-serif; }
  /* 801-1050 px fick webbläsarens grå standardknapp; samma utseende som på mobilen hela vägen upp */
  .masthead:has(.aeon-nav) .menu { min-width:66px; padding:6px 14px; border:1px solid #9cb8b4; background:#fff; }
  .masthead:has(.aeon-nav) .menu-toggle { padding:6px 0 6px 14px; border:0; background:transparent; }
  .masthead:has(.aeon-nav) :is(.header-demo,.nav-demo,.demo-link,.demo) { display:none; }
  .masthead nav.aeon-nav { display:none; flex:0 0 100%; align-items:stretch; margin:0; flex-direction:column; gap:.2rem; padding:.65rem 0 0; }
  .masthead nav.aeon-nav:is(.open,.is-open) { display:flex; }
  .masthead nav.aeon-nav > a, .masthead nav.aeon-nav summary { padding:.6rem .75rem; border-radius:9px; font-size:1rem; }
  .masthead nav.aeon-nav summary { min-height:44px; justify-content:space-between; }
  .aeon-nav-panel { position:static; display:grid; grid-auto-flow:row; grid-auto-columns:1fr; min-width:0; gap:.55rem; margin:.25rem 0 .5rem; padding:.55rem; box-shadow:none; background:#f5f9f7; border-radius:13px; }
  .aeon-nav-panel::before { display:none; }
  .aeon-nav-panel > div + div { border-left:0; border-top:1px solid #dce9e4; padding-left:0; padding-top:.35rem; }
  .masthead nav.aeon-nav .aeon-nav-panel a { min-height:44px; }
  .masthead nav.aeon-nav .aeon-mobile-demo { display:flex; width:max-content; max-width:100%; background:#005353; color:white; border-radius:999px; margin-top:.45rem; padding-inline:1rem; }
}
@media (max-width:760px) {
  .masthead:has(.aeon-nav) { min-height:76px; padding:12px 24px; align-items:center; }
  .masthead:has(.aeon-nav) :is(.brand,.site-brand) { gap:.65rem; }
  .masthead:has(.aeon-nav) :is(.brand,.site-brand) img { width:28px; height:34px; object-fit:contain; }
  .masthead:has(.aeon-nav) :is(.brand,.site-brand) span { font-size:27px; }
  .masthead:has(.aeon-nav) :is(.menu,.menu-toggle) { gap:6px; min-width:66px; padding:6px 10px; font:500 1rem/1.25 Roboto,sans-serif; }
  .masthead:has(.aeon-nav) .menu-icon { width:15px; height:15px; }
  .proof-heading a { display:inline-flex; align-items:center; min-height:24px; }
}
@media(prefers-reduced-motion:reduce) {
  .masthead nav.aeon-nav *, .aeon-nav-group summary::after { animation:none!important; transition:none!important; }
}
/* One shared dropdown panel anchors to the header rather than to a trigger. */
.aeon-nav-icon { display:inline-flex; flex:0 0 28px; width:28px; height:28px; align-items:center; justify-content:center; border-radius:8px; background:#e8f3ef; color:#005353; }
.aeon-nav-icon svg { width:17px; height:17px; }
.aeon-nav-columns { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:clamp(.9rem,2.5vw,2.6rem); }
.aeon-nav-columns > div { min-width:0; }
.aeon-nav-columns > div + div { border-left:1px solid #e2ebe8; padding-left:clamp(.7rem,1.7vw,1.6rem); }
.aeon-nav-panel > div + div { padding-left:0; border:0; }
.masthead nav.aeon-nav .aeon-nav-panel a { justify-content:flex-start; gap:.6rem; }
.masthead nav.aeon-nav .aeon-nav-panel a::after { margin-left:auto; }
.masthead nav.aeon-nav .aeon-nav-panel .aeon-nav-feature { align-self:start; align-items:flex-start; background:#edf6f3; padding:1rem; border-radius:13px; white-space:normal; }
.aeon-nav-feature strong,.aeon-nav-feature small { display:block; }
.aeon-nav-feature small { margin-top:.35rem; font-size:.87rem; font-weight:400; color:#435259; line-height:1.45; }
.masthead nav.aeon-nav .aeon-nav-panel .aeon-nav-feature::after { display:none; }
@media(min-width:1051px) {
 .masthead nav.aeon-nav, .opening .masthead nav.aeon-nav { margin-left:auto; margin-right:0; }
 .masthead .aeon-nav-group { position:static; }
 .masthead nav.aeon-nav .aeon-nav-panel {
  top:calc(100% + 1px); left:auto; right:clamp(3%, calc((100% - 1360px)/2), 12rem);
  width:min(58rem,94vw); min-width:0; display:block; padding:1.35rem; border-radius:0 0 18px 18px;
 }
 .masthead nav.aeon-nav .aeon-nav-panel::before { height:12px; top:-11px; }
 .masthead nav.aeon-nav .aeon-nav-group:first-of-type .aeon-nav-panel {
  right:calc(clamp(3%, (100% - 1360px)/2, 12rem) + 1rem);
  width:min(61.75rem,94vw); padding-inline-start:.75rem;
 }
 :lang(sv) .aeon-nav-group:first-of-type .aeon-nav-columns > div + div { padding-left:1rem; }
 .aeon-nav-group > summary { position:relative; }
 .aeon-nav-group[open] > summary::before {
  content:''; position:absolute; inset:100% 0 auto; height:28px;
 }
}
@media(max-width:1050px) {
 .aeon-nav-columns { grid-auto-flow:row; grid-auto-columns:1fr; gap:.5rem; }
 .aeon-nav-columns > div + div { border-left:0; border-top:1px solid #dce9e4; padding-left:0; padding-top:.35rem; }
}
.masthead nav.aeon-nav .aeon-nav-group:not([open]) > .aeon-nav-panel { display:none; }
