/* Uploaded fonts are used solely for the wordmark, with local system fallbacks. */
.brand-text-logo {
    display: block;
    max-width: 100%;
    min-width: 0;
    color: inherit;
    font-family: "ILAMDLogo", var(--brand-font);
    font-weight: 700;
    font-style: normal;
    font-synthesis: none;
    letter-spacing: -.025em;
    text-decoration: none;
}
.brand-text-logo--header {
    font-size: clamp(16px, 5vw, var(--logo-header-size));
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* App-name labels use a two-line clamp; the wordmark is a single line. */
.app-header .brand > .brand-text-logo--header:last-child {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}
.brand-text-logo--home {
    font-size: clamp(24px, 11vw, var(--logo-home-size));
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.branded-header--center:has(.brand-text-logo) {
    grid-template-columns: minmax(60px, 1fr) minmax(0, 3fr) minmax(60px, 1fr);
}
.branded-header .header-brand:has(.brand-text-logo) { max-width: 100%; }
.branded-header--center .brand-text-logo { text-align: center; }
.branded-header--right .brand-text-logo { text-align: right; }
.logo-settings-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: var(--paper);
}
.logo-settings-preview .brand-logo { max-width: 100%; }
.admin-header .brand:has(.brand-text-logo) { max-width: min(100%, 560px); }
