/* CAVECODE_OFFICIAL_BRANDING_PASS_2_V1
   Contextual branding only. The approved SVG artwork is never edited. */

.cavecode-context-logo-surface {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.cavecode-context-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cavecode-course-academy-brand {
    display: flex;
    justify-content: center;
    padding: 4px 0 14px;
}

.cavecode-course-academy-brand .cavecode-context-logo-surface {
    width: 104px;
    height: 71px;
    padding: 5px 7px;
    border-radius: 13px;
}

.cavecode-page-brandline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--text-muted, #8f9daa);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.cavecode-page-brandline .cavecode-context-logo-surface {
    width: 64px;
    height: 44px;
    padding: 3px 5px;
    border-radius: 9px;
}

.cavecode-learning-path-brandline {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 7px;
}

.cavecode-learning-path-brandline .cavecode-context-logo-surface {
    width: 74px;
    height: 50px;
    padding: 3px 5px;
    border-radius: 10px;
}

.cavecode-learning-path-brandline .eyebrow {
    margin: 0;
}

.cavecode-auth-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 2px 0 13px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border, #2b3948);
}

.cavecode-auth-brand .cavecode-context-logo-surface {
    width: 116px;
    height: 79px;
    padding: 5px 7px;
    border-radius: 13px;
}

.cavecode-auth-brand span:last-child {
    color: var(--text-muted, #8f9daa);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.cavecode-loading-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(310px, calc(100vw - 36px));
    margin: 0 auto 18px;
    text-align: center;
    font-family: Inter, system-ui, sans-serif;
}

.cavecode-loading-brand .cavecode-context-logo-surface {
    width: 148px;
    height: 101px;
    padding: 7px 10px;
    border-radius: 17px;
}

.cavecode-loading-brand strong,
.cavecode-loading-brand small {
    display: block;
}

.cavecode-loading-brand strong {
    color: var(--text, #eef4f8);
    font-size: 14px;
}

.cavecode-loading-brand small {
    margin-top: 4px;
    color: var(--text-muted, #8f9daa);
    font-size: 11px;
}

#app:has(.cavecode-loading-brand) {
    display: grid;
    min-height: 100vh;
    align-content: center;
    justify-items: center;
    padding: 24px;
    background: var(--bg, #0b1118);
}

@media (max-width: 720px) {
    .cavecode-course-academy-brand .cavecode-context-logo-surface {
        width: 92px;
        height: 63px;
    }

    .cavecode-page-brandline {
        margin-bottom: 8px;
    }
}

@media (max-width: 520px) {
    .cavecode-learning-path-brandline {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .cavecode-loading-brand .cavecode-context-logo-surface {
        width: 126px;
        height: 86px;
    }
}
