/* Compact mobile header; independent of action-button styles. */
.mobile-menu-toggle { display:none; }
@media (max-width:820px) {
  header.menu-ready { position:sticky; top:0; z-index:100; background:#fff; }
  header.menu-ready .bar { position:relative; width:92%; min-height:64px; padding:8px 0; gap:10px; flex-wrap:nowrap; }
  header.menu-ready .brand { display:flex; flex:1 1 auto; min-width:0; flex-wrap:nowrap; gap:8px; font-size:clamp(15px,4.4vw,19px); line-height:1.15; text-decoration:none; }
  header.menu-ready .brand img { width:36px; height:36px; flex:none; object-fit:contain; }
  header.menu-ready .mobile-menu-toggle { display:inline-flex; align-items:center; justify-content:center; gap:10px; flex:none; min-height:44px; padding:0 12px; border:1px solid #d5dce4; border-radius:8px; background:#fff; color:var(--fg); font:600 14px/1 Arial,Helvetica,sans-serif; touch-action:manipulation; }
  .mobile-menu-toggle .menu-label { min-width:36px; text-align:center; }
  .menu-lines { width:18px; height:16px; display:flex; flex-direction:column; justify-content:center; gap:5px; }
  .menu-lines span { display:block; width:18px; height:1.5px; border-radius:2px; background:currentColor; transition:transform .18s ease; }
  .mobile-menu-toggle[aria-expanded=true] .menu-lines span:first-child { transform:translateY(3.25px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded=true] .menu-lines span:last-child { transform:translateY(-3.25px) rotate(-45deg); }
  header.menu-ready #main-navigation { display:none; position:absolute; top:100%; left:0; right:0; width:100%; padding:8px; margin:8px 0 0; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 35px rgba(22,35,58,.13); max-height:calc(100vh - 85px); max-height:calc(100dvh - 85px); overflow-y:auto; overscroll-behavior:contain; }
  header.menu-ready #main-navigation.is-open { display:flex; flex-direction:column; align-items:stretch; gap:2px; }
  header.menu-ready #main-navigation a { display:flex; justify-content:space-between; align-items:center; text-align:left; white-space:normal; min-height:49px; padding:12px 14px; border:0; border-radius:7px; font-size:16px; font-weight:500; color:var(--fg); text-decoration:none; touch-action:manipulation; }
  header.menu-ready #main-navigation a[aria-current=page] { background:#eef3fb; color:var(--acid); font-weight:700; border:0; }
  header.menu-ready #main-navigation a[aria-current=page]::after { content:""; width:7px; height:7px; background:var(--acid); border-radius:50%; flex:none; }
  header.menu-ready #main-navigation a:active { background:#f1f4f8; }
  .wrap>section[id] { scroll-margin-top:82px; }
}
@media (max-width:350px) {
  header.menu-ready .bar { gap:7px; }
  header.menu-ready .brand { gap:6px; }
  header.menu-ready .brand img { width:30px; height:30px; }
  header.menu-ready .mobile-menu-toggle { padding-inline:9px; gap:7px; }
}
@media (prefers-reduced-motion:reduce) { .menu-lines span { transition:none; } }
