/* Shared service navigation. Native details keep the links usable without JS. */
.desktop-nav { gap: clamp(10px, 1.4vw, 22px); }
.desktop-nav > .service-nav-link { display:flex; align-items:center; min-height:44px; border-radius:6px; white-space:nowrap; font-size:14px; font-weight:550; }
.service-nav-link[aria-current="page"] { color:var(--purple); }
.service-nav { position: relative; min-width: 0; }
.service-nav > summary { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 44px; border-radius: 6px; color: #4e4759; font-size: 14px; font-weight: 550; white-space: nowrap; }
.service-nav > summary::marker, .service-nav > summary::-webkit-details-marker { display: none; }
.service-nav > summary:hover, .service-nav[open] > summary { color: var(--purple); }
.service-nav > summary > .nav-chevron { width: 13px; height: 13px; flex: 0 0 auto; transform: rotate(0); transition: transform .18s ease; }
.service-nav[open] > summary > .nav-chevron { transform: rotate(180deg); }
.service-nav-panel { position: absolute; z-index: 40; top: calc(100% + 12px); left: 50%; width: 300px; max-width: calc(100vw - 40px); max-height: min(580px, calc(100dvh - 134px)); padding: 9px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; transform: translateX(-50%); border: 1px solid #e6deec; border-radius: 16px; background: #fffdf9; box-shadow: 0 18px 46px -18px #4834553b; }
.service-nav:not([open]) > .service-nav-panel { display: none; }
.desktop-nav > .service-nav:first-child > .service-nav-panel { left: 0; transform: none; }
.desktop-nav > .service-nav:last-child > .service-nav-panel { right: 0; left: auto; transform: none; }
.service-nav .service-nav-panel a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 54px; padding: 10px 13px; border-radius: 9px; color: #4e4759; font-size: 14px; font-weight: 400; text-decoration: none; white-space: normal; }
.service-nav-panel a strong { font-size: 14px; line-height: 1.45; font-weight: 600; }
.service-nav-panel a span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.service-nav-panel a:hover { background: #f4eef9; }
.service-nav-panel a:focus-visible { outline-offset: -3px; background: #f4eef9; }
.service-nav .service-nav-panel .nav-overview { margin-bottom: 4px; padding-bottom: 14px; border-bottom: 1px solid #eee7f1; border-radius: 9px 9px 0 0; }
.service-nav .service-nav-panel .nav-start { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; margin-top: 6px; color: var(--purple-dark); background: #eee5fa; font-size: 13px; font-weight: 600; }
.service-nav-panel .nav-start .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.service-nav-panel .nav-start:hover { background: #e7dcf7; }
.tools-nav-panel { width: 330px; }
.tools-menu-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tools-menu-group { min-width: 0; }
.tools-menu-label { padding: 12px 13px 4px; color: #8c789d; font-size: 11px; font-weight: 600; }

@media (min-width: 901px) and (max-width: 1100px) {
  .desktop-nav { gap: 12px; }
  .service-nav > summary { gap: 5px; font-size: 13px; }
  .desktop-nav > .service-nav-link { font-size:13px; }
}

@media (max-width: 900px) {
  #mobile-menu > .service-nav-link { display:flex; align-items:center; min-height:52px; padding:9px 6px; font-size:15px; font-weight:550; color:#6c587d; border-bottom:1px solid #eee8f1; }
  #mobile-menu .service-nav { border-bottom: 1px solid #eee8f1; }
  #mobile-menu .service-nav > summary { min-height: 52px; padding: 9px 6px; font-size: 15px; color: #6c587d; }
  #mobile-menu .service-nav[open] > summary { color: var(--purple); }
  #mobile-menu .service-nav-panel { position: static; width: auto; max-width: none; max-height: none; margin: 0 0 9px; padding: 5px; border: 0; border-radius: 10px; transform: none; background: #f7f2fa; box-shadow: none; overflow: visible; }
  #mobile-menu .service-nav-panel a { min-height: 48px; padding: 11px 12px; }
  #mobile-menu .service-nav-panel a strong { font-size: 14px; }
  #mobile-menu .service-nav-panel a span { font-size: 12px; }
  #mobile-menu .service-nav-panel .nav-start { background: #e9dff6; }
  html:not(.menu-ready) .nav-shell { flex-wrap: wrap; }
  html:not(.menu-ready) #mobile-menu[hidden] { position: static; display: flex !important; flex: 0 0 100%; flex-direction: column; max-height: none; margin-top: 8px; padding: 0; border: 0; box-shadow: none; overflow: visible; }
}

@media (max-width: 640px) {
  .tools-menu-columns { grid-template-columns: 1fr; gap: 0; }
  .tools-menu-group + .tools-menu-group { border-top: 1px solid #e8def0; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-nav > summary > .nav-chevron { transition: none; }
}
