/* T05: slightly smaller desktop menu with compact rows; preserve accessible overflow on short screens. */
html body>.sidebar[data-mr-nav],html body>.sidebar[data-mr-nav] *{box-sizing:border-box}
@media(min-width:1051px){
html body>.sidebar[data-mr-nav]{position:fixed;inset:0 auto 0 0;width:224px;max-width:224px;height:100vh;height:100svh;margin:0;padding:16px 12px;display:flex;flex-direction:column;gap:12px;overflow:hidden;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.4;border-right:1px solid #294650}
html body>.sidebar[data-mr-nav]>.brand{display:flex;align-items:center;justify-content:flex-start;flex:0 0 42px;min-height:42px;height:42px;gap:10px;margin:0;padding:0;font:850 20px/24px system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-decoration:none;color:#edf5f8}
html body>.sidebar[data-mr-nav]>.brand img{width:42px;height:42px;min-width:42px;object-fit:contain;margin:0}
html body>.sidebar[data-mr-nav]>nav{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;flex:1 1 auto;min-height:0;gap:2px;margin:0;padding:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#42616d transparent}
html body>.sidebar[data-mr-nav]>nav>a{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:28px;height:auto;margin:0;padding:3px 8px;border:1px solid transparent;border-radius:8px;font:550 15px/19px system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;white-space:normal;overflow-wrap:normal;text-decoration:none;color:#b9cbd5;transform:none}
html body>.sidebar[data-mr-nav]>nav>a[aria-current=page],html body>.sidebar[data-mr-nav]>nav>a[data-shopping-current]{font-weight:750;background:#203b43;color:white;border-color:#47797a;box-shadow:inset 2px 0 #77e0d3}
html body>.sidebar[data-mr-nav]>nav>a .count{flex:0 0 auto;font:600 11px/16px system-ui,sans-serif;padding:0 6px;min-height:18px;border:1px solid #41616b;border-radius:20px;color:#66e9db}
html body>.sidebar[data-mr-nav]>.sidebar-bottom{display:grid;flex:0 0 auto;gap:6px;margin:0;padding:10px 0 0;border-top:1px solid #294650;font:14px/20px system-ui,sans-serif}
html body>.sidebar[data-mr-nav]>.sidebar-bottom>span{display:none}
html body>.sidebar[data-mr-nav]>.sidebar-bottom>a{font:400 14px/20px system-ui,sans-serif;padding:0;margin:0}
html body>.sidebar[data-mr-nav] .sidebar-audio{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:6px;width:100%;margin:0}
html body>.sidebar[data-mr-nav] .sidebar-audio button{box-sizing:border-box;min-height:34px!important;height:34px!important;padding:4px 8px!important;margin:0!important;font:600 12px/18px system-ui,sans-serif!important;border:1px solid #375765;border-radius:12px;background:#172d39;color:#edf5f8}
html body>.sidebar[data-mr-nav] .sidebar-audio .sidebar-audio-next{width:36px!important;padding:4px!important}
html body>.sidebar[data-mr-nav] .sidebar-audio svg{width:18px;height:18px;display:block;margin:auto}
}
/* Keep keyboard focus inside the row so adjacent entries never get covered. */
html body>.sidebar[data-mr-nav] a:focus-visible,html body>.sidebar[data-mr-nav] button:focus-visible{outline:2px solid #77e0d3!important;outline-offset:-2px!important}
@media(min-width:1051px) and (max-height:780px){html body>.sidebar[data-mr-nav]{padding:12px;gap:8px}html body>.sidebar[data-mr-nav]>nav{gap:1px}html body>.sidebar[data-mr-nav]>nav>a{min-height:25px;padding:2px 8px}html body>.sidebar[data-mr-nav]>.sidebar-bottom{padding-top:8px;gap:5px}}
/* Shared switch to the existing mobile menu on every content template. */
@media(max-width:1050px){
 html body>.sidebar[data-mr-nav]{display:none}
 html body:has(>.sidebar[data-mr-nav]){padding-left:0}
 html body:has(>.sidebar[data-mr-nav])>.site-main,html body:has(>.sidebar[data-mr-nav])>.mr-nav-content,html body:has(>.sidebar[data-mr-nav])>.customer-main{margin-left:0}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:950;gap:10px;padding:12px 16px;background:#0c1721;border-bottom:1px solid #294650;font:16px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header>.brand{display:flex;align-items:center;gap:10px;font:850 18px/24px system-ui,sans-serif;margin:0;padding:0}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header .brand img{width:34px;height:34px;object-fit:contain}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header details summary{cursor:pointer;list-style:none;padding:8px 12px;border:1px solid #375765;border-radius:9px}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header details nav{position:absolute;top:100%;left:10px;right:10px;max-height:calc(100svh - 150px);overflow:auto;display:grid;gap:4px;padding:12px;background:#122431;border:1px solid #375765;border-radius:12px}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header details:not([open]) nav{display:none}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header nav a{display:flex;align-items:center;justify-content:space-between;min-height:44px;box-sizing:border-box;margin:0;padding:10px;border:1px solid transparent;border-radius:8px;font:550 16px/22px system-ui,sans-serif;text-decoration:none;color:#d5e6ee}
 html body:has(>.sidebar[data-mr-nav])>.mobile-header nav a:focus-visible{outline:2px solid #77e0d3;outline-offset:-2px}
}
