/* Just Pick 1 logo treatment from the approved brand styling pack. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/*
 * Keep the complete mark in one SVG asset. The older inline version is hidden
 * so the ring, check, 1, and celebration rays cannot drift relative to one
 * another at different responsive sizes.
 */
.brand-mark {
    width: clamp(60px, 5.2vw, 74px);
    height: clamp(60px, 5.2vw, 74px);
    background: url("logo-mark.5d7b816a3ee4.svg") center / contain no-repeat;
    filter: none;
}

.brand-mark-svg {
    display: none;
}

/* Pull the wordmark closer to the icon so the lockup reads as one unit. */
.brand-link {
    gap: 8px;
}

.brand-wordmark {
    color: #0d1321;
}

.brand-one {
    color: #2563ff;
}

/* Keep the tagline clearly secondary to the wordmark, especially in Safari. */
.site-header .site-tagline {
    color: #65718c;
    font-size: clamp(0.8rem, 1.15vw, 0.95rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: 0;
}

body:not([data-room-code]) .site-header {
    row-gap: 8px;
}

@media (max-width: 700px) {
    /* Use one shared compact header treatment on every non-room page. */
    body:not([data-room-code]) .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        row-gap: 8px;
        align-items: center;
    }

    body:not([data-room-code]) .site-header > .brand-link {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    body:not([data-room-code]) .site-header .brand-wordmark {
        white-space: nowrap;
    }

    body:not([data-room-code]) .site-header-right {
        display: contents;
    }

    body:not([data-room-code]) .site-header-right > .auth-link,
    body:not([data-room-code]) .site-header-right > .account-menu {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: end;
    }

    body:not([data-room-code]) .site-header-right > .auth-link {
        min-height: 34px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 0.78rem;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    body:not([data-room-code]) .site-header-right > .site-tagline {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        font-size: 0.82rem;
        font-weight: 650;
    }
}
