/* Equal side tracks keep SOUDA centered independently of menu/cart widths. */
header.centered-brand-header{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 grid-template-rows:auto;
 align-items:center;
}
header.centered-brand-header .primary-nav{
 grid-area:1 / 1;
 justify-self:start;
 justify-content:flex-start;
 min-width:0;
}
header.centered-brand-header .wordmark{
 grid-area:1 / 2;
 justify-self:center;
}
header.centered-brand-header .header-cart{
 grid-area:1 / 3;
 justify-self:end;
}
header.centered-brand-header .site-menu summary{
 display:flex;
 align-items:center;
 min-height:44px;
 cursor:pointer;
}
header.centered-brand-header .site-menu .menu-panel{
 left:0;
 right:auto;
 transform:none;
 width:min(208px,calc(100vw - 32px));
 max-width:calc(100vw - 32px);
}
@media(max-width:700px){
 header.centered-brand-header .primary-nav{font-size:12px;}
}

/* Icon-only menu, with a comfortable touch target. */
header.centered-brand-header .site-menu summary{width:44px;justify-content:center;list-style:none;text-decoration:none;}
header.centered-brand-header .site-menu summary::-webkit-details-marker{display:none;}
header.centered-brand-header .site-menu summary::marker{content:"";}
header.centered-brand-header .menu-icon{display:block;flex:none;width:24px;height:24px;}
header.centered-brand-header .site-menu summary:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px;}

/* Compact dropdown: tighter rows and a quiet, legible surface. */
header.centered-brand-header .site-menu .menu-panel{
 top:calc(100% + 6px);
 padding:6px;
 border-radius:8px;
 background:rgba(247,250,253,.95);
 box-shadow:0 6px 20px rgba(19,43,76,.12);
 color:var(--blue);
 max-height:calc(100dvh - 110px);
 overflow-y:auto;
}
header.centered-brand-header .menu-panel a{
 display:flex;
 align-items:center;
 min-height:36px;
 padding:8px 10px;
 font-size:13px;
 line-height:20px;
 letter-spacing:0;
 white-space:normal;
 border-radius:4px;
}
@media(pointer:coarse){
 header.centered-brand-header .menu-panel a{min-height:44px;}
}
