.native-menu { display: none; }
@media (max-width:1000px) {
  .native-menu { display: block; }
  .native-menu > .menu-toggle {
    list-style: none;
    cursor: pointer;
  }
  .native-menu > .menu-toggle::-webkit-details-marker { display: none; }
  html:has(.native-menu[open]) { scrollbar-gutter: stable; }
  body:has(.native-menu[open]) { overflow: hidden; }
  /* Before enhancement the browser owns Tab order. Keep covered content out of it. */
  body:has(.native-menu[open] > .menu-toggle:not([aria-expanded])) > :is(.skip, main, footer) {
    visibility: hidden;
  }
  .native-menu .mobile-menu {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100vh - var(--mobile-directory-top, var(--native-directory-start, 108px)));
    height: calc(100dvh - var(--mobile-directory-top, var(--native-directory-start, 108px)));
    overscroll-behavior-y: contain;
  }
  .mobile-section {
    position: relative;
    border-bottom: 1px solid var(--line, #dbe5ee);
  }
  .mobile-section .mobile-section-index {
    position: absolute;
    z-index: 1;
    inset: 0 52px auto 0;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 55px;
    padding: 6px 4px;
    border: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }
  .mobile-section-index svg { width: 15px; height: 15px; flex: none; color: #48729c; }
  .mobile-section-pages > .mobile-section-toggle {
    position: relative;
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 48px;
    height: 55px;
    list-style: none;
    cursor: pointer;
    color: #315b88;
    border-radius: 4px;
  }
  .mobile-section-toggle::-webkit-details-marker { display: none; }
  .mobile-section-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    height: 18px;
    border-left: 1px solid #dae5ee;
  }
  .mobile-section-toggle svg { width: 16px; height: 16px; }
  .mobile-section-pages[open] > summary { background: #e8f2ff; color: var(--blue); }
  .mobile-section-pages[open] > summary svg { transform: rotate(180deg); }
  .mobile-section-list {
    margin: 0 0 3px;
    padding: 0 0 3px 12px;
    border-left: 1px solid #afcbe6;
    background: #f3f7fb;
    list-style: none;
  }
  .mobile-section-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px 9px 4px;
    border: 0;
    color: #25405b;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
  }
  .mobile-section-list a:hover { color: var(--blue); }
  .mobile-section :is(a, summary):focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -2px;
  }
}
@media (max-width:760px) {
  .native-menu { --native-directory-start: 98px; }
}

/* Without relational selectors, keep the native disclosure in the document flow. */
@supports not selector(:has(*)) {
  @media (max-width:1000px) {
    .header { position: relative; }
    .header .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: 68px; height: auto; gap: 0; }
    .header .header-actions { display: contents; }
    .header .brand, .header .language-link { min-height: 68px; display: inline-flex; align-items: center; }
    .header .language-link { margin-inline-end: 52px; }
    .native-menu { grid-column: 1 / -1; }
    .native-menu > .menu-toggle { position: absolute; top: 12px; right: 16px; }
    .native-menu .mobile-menu { position: static; height: auto; overflow: visible; padding: 0 0 16px; }
  }
}
