/* Fixed-in-view navigation shell; main and its children cannot paint above it. */
body > .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    isolation: isolate;
    max-width: none;
    padding-inline: max(32px, calc((100% - 1376px) / 2));
    background: var(--white, #fff);
    border-bottom: 1px solid var(--line);
}
body > main { position: relative; z-index: 0; isolation: isolate; }
html { scroll-padding-top: 112px; }
html:not(.js) body > .site-header { position: static; }
@media (max-width: 1100px) {
    body > .site-header { max-height: 100dvh; overflow-y: auto; }
}
@media (max-width: 600px) {
    body > .site-header { padding-inline: 18px; }
}
/* Existing navigation drawing and behaviour. */
.site-header .nav-services { position: relative; margin: 0; padding: 0; border: 0; }
.site-header .nav-services > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0; cursor: pointer; list-style: none; font: inherit; }
.site-header .nav-services > summary::-webkit-details-marker { display: none; }
.site-header .nav-services > summary:hover,
.site-header .nav-services > summary.is-current { text-decoration: underline; text-underline-offset: .35em; }
.site-header .nav-services__list { position: absolute; z-index: 50; top: 100%; left: 0; width: min(340px, calc(100vw - 36px)); margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line, #ccd6dc); border-radius: 8px; background: var(--paper, #fff); box-shadow: 0 12px 28px rgb(14 40 55 / 12%); max-height: 70vh; overflow-y: auto; }
.site-header .nav-services__list a { display: block; padding: 12px; min-height: 44px; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.45; border-radius: 4px; }
.site-header .nav-services__list a:hover,
.site-header .nav-services__list a[aria-current="page"] { background: #e8f1f4; text-decoration: underline; text-underline-offset: .2em; }
.site-header .nav-services > summary:focus-visible,
.site-header .nav-services__list a:focus-visible { outline: 3px solid var(--brand, #005e91); outline-offset: 3px; }
@media (max-width: 1100px) {
    .site-header #primary-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-header .nav-services { width: 100%; }
    .site-header .nav-services > summary { min-height: 46px; padding: 12px 7px; border-bottom: 1px solid var(--line, #ccd6dc); }
    .site-header .nav-services__list { position: static; width: 100%; box-shadow: none; border: 0; border-radius: 0; border-left: 2px solid var(--brand, #005e91); margin: 4px 0 8px; }
    .site-header #primary-nav > a:not(.nav-contact) { display: flex; min-height: 46px; padding: 12px 7px; border-bottom: 1px solid var(--line, #ccd6dc); }
}
