/* Equal menu cells keep links and dropdowns aligned when rows wrap. */
.site-header>.wrap{display:grid;grid-template-columns:minmax(170px,240px) minmax(0,1fr) auto;align-items:center;gap:12px}
.site-header .brand{min-width:0;text-decoration:none;overflow-wrap:anywhere}
.site-header .top-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-auto-rows:44px;align-items:stretch;gap:4px;width:100%;min-width:0;order:initial}
.site-header .top-menu>a,.site-header .top-menu>.top-dropdown>summary{display:flex;align-items:center;justify-content:center;height:44px;margin:0;padding:8px 10px;font-size:14px;line-height:20px;white-space:nowrap}
.site-header .top-menu>.top-dropdown{min-width:0;height:44px;margin:0}
.site-header .top-menu>.top-dropdown>summary{width:100%}
.site-header .logout-form,.site-header .auth-tabs{margin:0;white-space:nowrap;justify-self:end}
@media(max-width:1050px){.site-header>.wrap{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px}.site-header .top-menu{grid-column:1/-1;grid-row:2}.site-header .logout-form,.site-header .auth-tabs{grid-column:2;grid-row:1}}
@media(max-width:600px){.site-header .brand{font-size:16px}.site-header .top-menu{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:3px}.site-header .top-menu>a,.site-header .top-menu>.top-dropdown>summary{font-size:13px;padding:8px 6px}.site-header .logout-form button{padding:9px 10px;font-size:13px}.site-header .auth-tabs{gap:8px;font-size:13px}}
/* Anchor to the actual wrapped cell; do not assume the last item is at the right edge. */
.site-header .top-menu>.top-dropdown{position:relative}
.site-header .top-menu>.top-dropdown>.top-dropdown-panel{left:0;right:auto;top:calc(100% + 5px);width:max-content;min-width:min(185px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box;transform:translateX(var(--menu-shift,0px));max-height:calc(100dvh - 100px);overflow-y:auto}
.site-header .top-dropdown-panel a{white-space:normal;overflow-wrap:anywhere}

/* Keep the secondary fox counter beside Account, including wrapped menu rows. */
.site-header .account-menu-cell{display:flex;align-items:center;justify-content:center;min-width:0;height:44px;gap:0}
.site-header .account-menu-cell>.top-dropdown{position:relative;min-width:0;margin:0;height:44px;flex:0 1 auto}
.site-header .account-menu-cell>.top-dropdown>summary{display:flex;align-items:center;justify-content:center;white-space:nowrap;margin:0;height:44px;padding:8px 3px;font-size:14px;line-height:20px}
.site-header .account-menu-cell>.top-dropdown>.top-dropdown-panel{left:0;right:auto;top:calc(100% + 5px);width:max-content;min-width:min(185px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box;transform:translateX(var(--menu-shift,0px));max-height:calc(100dvh - 100px);overflow-y:auto}
.site-header .account-menu-cell>.konki-mini-link{display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:44px;padding:0;margin:0;border:0;background:transparent;color:#849184;text-decoration:none}
.site-header .account-menu-cell>.konki-mini-link:hover{color:#32694c;background:transparent}
.site-header .account-menu-cell>.konki-mini-link:focus-visible{outline:2px solid #829f72;outline-offset:0;border-radius:5px}
@media(max-width:600px){.site-header .account-menu-cell>.top-dropdown>summary{font-size:13px;padding:8px 2px}.site-header .account-menu-cell>.konki-mini-link{flex-basis:22px;width:22px}}
