/* Shared public-site navigation. Keep independent of either header system. */
body .mobile-dock { display: none; }
@media (max-width: 980px) {
  html.mobile-dock-page { scroll-padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }
  html.mobile-dock-page body { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)) !important; }
  body .mobile-dock {
    box-sizing: border-box;
    position: fixed;
    z-index: 90;
    inset: auto auto calc(10px + env(safe-area-inset-bottom, 0px)) 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: calc(100vw - 20px);
    max-width: 520px;
    margin: 0;
    padding: 5px;
    border: 1px solid #d8deeb;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 8px 32px #25334e1a, 0 2px 6px #25334e08;
    font: 500 11px/1.2 "Onest", system-ui, sans-serif;
    isolation: isolate;
  }
  body .mobile-dock a {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 6px 1px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #4c5871;
    font: inherit;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color .16s ease, color .16s ease;
  }
  body .mobile-dock a::before, body .mobile-dock a::after { content: none; }
  body .mobile-dock svg {
    display: block;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body .mobile-dock a[aria-current] { color: #343c6d; background: #eaeafa; font-weight: 700; }
  body .mobile-dock a:active { background: #eaeafa; }
  body .mobile-dock a:focus-visible { outline: 2px solid #555c98; outline-offset: -2px; }
  body .mobile-dock[hidden],
  body.aa-menu-open .mobile-dock,
  body:has(.jr-nav.is-open) .mobile-dock,
  body:has(dialog[open]) .mobile-dock,
  body:has(.stats-consent) .mobile-dock { display: none; }
  body .af-action-status:not(:empty) { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  body .mobile-dock { grid-template-columns: 1fr 1.25fr 1fr .9fr 1fr; gap: 1px; }
}
@media (hover: hover) and (max-width: 980px) {
  body .mobile-dock a:hover { background: #f1f2f8; color: #343c6d; }
  body .mobile-dock a[aria-current]:hover { background: #eaeafa; }
}
@media (prefers-reduced-motion: reduce) { body .mobile-dock a { transition: none; } }
@media print { body .mobile-dock { display: none !important; } html.mobile-dock-page body { padding-bottom: 0 !important; } }
