.site-header .wordmark,
.mrs-header .mrs-brand,
.mr-client-portal header .brand {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1;
}
img.ec-brand-logo {
  display: block;
  width: 244px;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
}
.mr-client-portal header { flex-wrap: wrap; }
.mr-client-portal header .brand small { margin-top: 4px; line-height: 1.5; }
@media (max-width: 600px) {
  img.ec-brand-logo { width: 210px; height: 48px; }
}
@media (max-width: 360px) {
  img.ec-brand-logo { width: 186px; height: 42px; }
}

/* Live wordmark shares the website's typeface, including localized fallback. */
.ec-brand-text{display:inline-flex!important;flex-direction:column;align-items:flex-start;gap:5px;margin:0!important;font-family:var(--font,'Manrope',sans-serif);line-height:1.1;letter-spacing:0;color:inherit}
.wordmark .ec-brand-text strong{font:500 30px/1.1 var(--font,'Manrope',sans-serif);letter-spacing:-.035em;white-space:nowrap}
.wordmark .ec-brand-text small{display:block;font:400 10px/1.4 var(--font,'Manrope',sans-serif);letter-spacing:.015em}
@media(max-width:640px){.wordmark .ec-brand-text strong{font-size:25px}.wordmark .ec-brand-text small{font-size:9px}}

/* Custom EC monogram: measured to the name's cap line and line box. */
.site-header>.wordmark,.footer-main>.wordmark{display:inline-flex;align-items:flex-start;gap:13px}
.wordmark .ec-brand-mark{display:block;margin:0;padding:0;flex:0 0 auto;width:49.5px;height:33px;min-width:0;min-height:0;line-height:0;color:inherit}
.ec-brand-mark svg{display:block;width:100%;height:100%;overflow:visible}
@media(max-width:640px){.site-header>.wordmark{gap:10px}.site-header .ec-brand-mark{width:37.95px;height:25.3px}.site-header .ec-brand-text strong{font-size:23px}.site-header .ec-brand-text small{font-size:8px}}

/* Keep the standalone monogram bounded inside client portal branding too. */
.mr-client-portal .brand{display:inline-grid;grid-template-columns:50px auto;column-gap:13px;align-items:start}
.mr-client-portal .brand .ec-brand-mark{display:block;width:49.5px;height:33px;line-height:0}
.mr-client-portal .brand .ec-brand-mark svg{width:100%;height:100%;display:block}
.mr-client-portal .brand>.small,.mr-client-portal .brand>small{grid-column:2}
.mr-client-portal .brand .ec-brand-text strong{font:500 30px/1.1 var(--font,Manrope,sans-serif)}

.site-header .wordmark .ec-v0-brand{width:244px;height:auto;max-width:100%}
.mr-client-portal .brand{display:inline-flex;flex-direction:column;gap:6px}
.ec-logo-preview{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 0 100%;padding-top:8px;border-top:1px solid var(--line,#d3cbbd)}
.ec-logo-preview>span{font-size:12px;margin-right:4px}
#mr-plan-preview .ec-logo-choice{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;min-height:42px;background:transparent;color:inherit;line-height:1}
.ec-logo-choice img{display:block;width:28px;height:28px;object-fit:contain}
html[data-ec-appearance=dark] .ec-logo-choice img{filter:brightness(0) invert(.93)}
#mr-plan-preview .ec-logo-choice[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}
#mr-plan-preview:has(.ec-logo-preview){flex-wrap:wrap;justify-content:center}
@media(max-width:640px){.site-header .wordmark .ec-v0-brand{width:205px}.ec-logo-preview{gap:6px}#mr-plan-preview .ec-logo-choice{min-height:40px;padding:4px 9px}.ec-logo-choice img{width:24px;height:24px}}
