/* Brand links live beside the logo, outside the main navigation. */
body .site-header .header-brand-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;width:100%;gap:12px;min-width:0}
body .site-header .header-brand-row>.logo{grid-column:2!important;grid-row:1!important}
.mp-social-links{display:flex;align-items:center;gap:8px}
body .site-header .header-brand-row>.mp-social-links{grid-column:3;grid-row:1;justify-self:end}
.mp-social-links .mp-social-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;padding:0;border:1px solid rgba(148,163,184,.24);border-radius:12px;background:rgba(148,163,184,.055);color:#b9c6da;text-decoration:none;transition:color .15s,border-color .15s,background .15s}
.mp-social-links .mp-social-link svg{display:block;width:20px;height:20px;flex:0 0 auto}
.mp-social-links .mp-social-link:hover{color:#fff;border-color:#a78bfa;background:rgba(139,92,246,.17)}
.mp-social-links .mp-social-link:focus-visible{outline:2px solid #c4b5fd;outline-offset:4px;color:#fff}
.site-footer .mp-footer-community{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;margin-top:18px;border-top:1px solid rgba(148,163,184,.16)}
.mp-footer-community-copy strong{display:block;font-size:15px;color:#f1f5ff}.mp-footer-community-copy span{display:block;margin-top:5px;color:#94a3b8;font-size:13px}
.mp-social-links--footer{flex-wrap:wrap}.mp-social-links--footer .mp-social-link{width:auto;padding:0 13px;gap:9px;font-size:13px;font-weight:600}
@media(max-width:720px){body .site-header .header-brand-row{display:flex;justify-content:space-between;gap:12px}body .site-header .header-brand-row>.logo{margin:0!important;margin-inline:0!important;justify-self:start!important}.mp-social-links--header{gap:6px}.site-footer .mp-footer-community{flex-direction:column;align-items:flex-start}.mp-social-links--footer{gap:7px}.mp-social-links--footer .mp-social-link{padding:0 10px}}
@media(prefers-reduced-motion:reduce){.mp-social-links .mp-social-link{transition:none}}
/* Mobile: center the brand and socials independently of account balances. */
@media(max-width:720px){
    html body .site-header .header-brand-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;align-items:center!important;gap:10px!important;width:100%!important}
    html body .site-header .header-brand-row>.logo{grid-column:1!important;grid-row:1!important;justify-self:center!important;align-self:center!important;margin:0 auto!important;margin-inline:auto!important;left:auto!important;right:auto!important;transform:none!important}
    html body .site-header .header-brand-row>.header-community-area{position:relative;grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;align-items:center!important;justify-self:center!important;width:100%!important;max-width:100%!important;gap:10px!important}
    html body .site-header :is(.header-community-area>.mp-social-links,.header-brand-row>.mp-social-links){grid-column:1!important;grid-row:1!important;justify-content:center!important;justify-self:center!important;width:max-content!important;max-width:100%;margin:0 auto!important}
    html body .site-header .header-brand-row>.mp-social-links{grid-row:2!important}
    html body .site-header .header-community-area>.header-account-summary{grid-column:1;grid-row:2;justify-content:center!important;justify-self:center!important;flex-wrap:wrap;max-width:100%}
    html body .site-header .header-community-area>.mp-theme-toggle{position:absolute!important;right:0!important;top:0!important;margin:0!important}
}
