/* The logo stays legible without stretching wide or tall artwork. */
.mc-brand-logo{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:0;vertical-align:middle}
.mc-brand-logo img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;border:0;border-radius:0;background:transparent}
.mc-brand-logo .mc-logo-dark{display:none}
html[data-theme=dark] .mc-brand-logo:has(.mc-logo-dark) .mc-logo-light{display:none}
html[data-theme=dark] .mc-brand-logo .mc-logo-dark{display:block}
.mc-brand-logo .mc-brand-mark{display:grid;place-items:center;width:100%;height:100%;margin:0;border-radius:10px;background:var(--mc-accent);color:var(--mc-on-accent);font-size:12px;font-weight:750;letter-spacing:-.6px}
.bpx-ui .mc-brand-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bpx-ui .mc-brand-copy small{overflow-wrap:anywhere}
.mc-mobile-brand{display:none}
.mc-page-title{min-width:0}
@media(max-width:767px),(max-width:1000px) and (max-height:500px){
  .bpx-ui .bpx-page-header h1{display:flex;align-items:center;gap:7px;min-width:0;line-height:28px}
  .mc-mobile-brand{display:inline-flex;flex:0 0 25px}
  .mc-mobile-brand .mc-brand-logo{width:25px;height:25px;flex-basis:25px}
  .mc-mobile-brand .mc-brand-mark{font-size:9px;border-radius:8px}
  .mc-page-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.mc-login #login h1 a{max-width:100%;height:auto;min-height:58px;line-height:1.2;overflow-wrap:anywhere;word-break:break-word}
.mc-login.mc-has-site-logo #login h1 a{gap:12px;padding-top:4px}
.mc-login.mc-has-site-logo #login h1 a::before{content:"";display:block;width:80px;height:64px;background-position:center;background-size:contain;background-repeat:no-repeat}
