/* Public mobile navigation refinements: applies only below the existing 760px breakpoint. */
@media (max-width: 760px) {
  .mobile-panel { max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; width: min(360px, calc(100vw - 40px)); right: -6px; }
  .mobile-panel > a, .mobile-tools summary { min-height: 44px; }
  .mobile-panel > a[aria-current="page"] { background: var(--surface-blue); color: var(--blue); }
  .mobile-tools { border-radius: 9px; }
  .mobile-tools[open] { background: color-mix(in srgb, var(--surface-blue) 45%, transparent); }
  .mobile-tools summary { justify-content: space-between; gap: 10px; }
  .mobile-tools summary::after {
    content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
    border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
  }
  .mobile-tools[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
  .mobile-tools[open] summary { color: var(--blue); }
  .mobile-tool-links { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 2px 6px 8px; }
  .mobile-tool-links a { min-height: 44px; padding: 0 12px; border-radius: 7px; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
  .mobile-tool-links a:first-child { font-weight: 650; color: var(--blue); grid-column: 1 / -1; }
  .mobile-tool-links a:hover, .mobile-tool-links a[aria-current="page"] { background: var(--surface); color: var(--blue); }
  .mobile-tool-links a[aria-current="page"] { font-weight: 650; box-shadow: inset 3px 0 0 var(--blue); }
  .mobile-tool-links a[hidden] { display: none; }
  .mobile-search input { height: 44px; }
}
@media (min-width: 390px) and (max-width: 760px) {
  .mobile-tool-links.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mobile-tools summary::after { transition: none; } }
