/* On small screens the site directory expands in the page flow. */
.at-menu { display: none; }
@media (max-width: 1100px) {
  .header.wrap, .site-nav {
    position: relative; display: block; height: auto; min-height: 0; padding-block: 12px;
  }
  .header.wrap > nav, .site-nav > nav, .header.wrap > a:not(.brand) { display: none; }
  .header.wrap > .brand, .site-nav > .site-brand {
    position: absolute; top: 12px; min-height: 44px; display: flex; align-items: center;
  }
  details.at-menu, details.at-menu:last-of-type {
    display: block; padding: 0; margin: 0; border: 0; color: #111526; font: 500 1rem/1.35 'DM Sans', system-ui, sans-serif;
  }
  .at-menu > summary {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; margin-left: auto;
    min-height: 44px; padding: 0 15px; background: #f2f4ff; border: 1px solid #cbd2ff; border-radius: 8px;
    color: #172bac; font: inherit; font-weight: 650; cursor: pointer; list-style: none;
  }
  .at-menu > summary::-webkit-details-marker { display: none; }
  .at-menu .at-chevron { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
  .at-menu[open] .at-chevron { transform: translateY(2px) rotate(225deg); }
  .at-menu .at-menu-panel {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 24px;
    margin-top: 12px; padding: 16px; border: 1px solid #dfe3ed; border-radius: 10px; background: #fff;
    align-items: start; font-size: 1rem;
  }
  .at-menu-panel strong { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; color: #505a70; letter-spacing: .07em; text-transform: uppercase; }
  .at-menu-panel ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; padding: 0; margin: 0; list-style: none; }
  .at-menu-panel li { min-width: 0; margin: 0; }
  .at-menu .at-menu-panel a {
    display: flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 5px 3px;
    color: #192034; font-size: .94rem; line-height: 1.3; font-weight: 550; overflow-wrap: anywhere;
    text-decoration: none; border: 0;
  }
  .at-menu .at-menu-panel a[aria-current="page"] { color: #132eec; text-decoration: underline; text-underline-offset: 4px; }
  .at-menu summary:focus-visible, .at-menu .at-menu-panel a:focus-visible { outline: 3px solid #132eec; outline-offset: 1px; }
  .at-menu .at-menu-panel a:hover { color: #132eec; text-decoration: underline; }
}
