/**
 * NCIS Shared Brand Layer v1.1
 * Loaded after ncis-fos.css.
 */

.ncis-header-brand {
    min-width: 0;
}

.ncis-header-logo {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter:
        drop-shadow(0 5px 10px rgba(0, 0, 0, 0.32))
        drop-shadow(0 0 7px rgba(217, 173, 69, 0.10));
}

.brand-copy {
    min-width: 0;
    margin-left: -2px;
}

.brand-copy strong,
.brand-copy small,
.brand-copy em {
    display: block;
}

.brand-copy strong {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.14em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.15;
}

.brand-copy em {
    margin-top: 2px;
    color: var(--gold);
    font-size: 10px;
    line-height: 1.15;
    font-style: normal;
}

.auth-brand {
    padding-top: 18px;
    padding-bottom: 8px;
    overflow: visible;
}

.ncis-login-brand-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.ncis-login-logo {
    display: block;
    width: min(70vw, 300px);
    max-width: 100%;
    max-height: none;
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    filter:
        drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 10px rgba(217, 173, 69, 0.10));
}

.auth-brand h1 {
    margin-top: 4px;
}

.ncis-seal-logo {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.30));
}

/* Profile */
.profile-heading {
    margin-bottom: 6px;
}

.member-profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-seal-logo {
    width: 112px;
    height: 112px;
}

.member-status-badge,
.badge-row span,
.brief-label,
.brief-source {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(131, 189, 69, 0.28);
    background: rgba(131, 189, 69, 0.10);
    color: var(--green);
}

.member-status-badge {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.rank-card-top,
.section-title-row,
.rank-progress-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rank-emblem {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 28px;
    font-weight: 700;
    border: 1px solid var(--gold);
    background:
        radial-gradient(circle, rgba(217,173,69,0.15), rgba(0,0,0,0.10));
}

.rank-progress-copy {
    color: var(--muted);
    font-size: 12px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.badge-row span {
    padding: 7px 10px;
    font-size: 11px;
}

.profile-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.profile-metric-grid article {
    min-height: 112px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(7, 31, 21, 0.82);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-metric-grid strong {
    color: var(--green);
    font-size: 24px;
}

.profile-metric-grid span {
    margin-top: 8px;
    color: var(--muted);
}

.activity-list,
.personal-brief-card,
.account-actions-card {
    display: grid;
    gap: 12px;
}

.activity-list article {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.activity-list article:last-child {
    border-bottom: 0;
}

.activity-list p,
.activity-list small {
    margin: 5px 0 0;
    color: var(--muted);
}

.activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(131,189,69,0.45);
}

.brief-source,
.brief-label {
    padding: 6px 9px;
    font-size: 10px;
}

.brief-item {
    padding: 17px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.14);
}

.brief-item h3 {
    margin: 10px 0 7px;
    color: var(--text);
}

.brief-item p,
.brief-item small {
    color: var(--muted);
    line-height: 1.5;
}

.brief-priority {
    border-color: rgba(217,173,69,0.36);
    background: linear-gradient(145deg, rgba(217,173,69,0.10), rgba(0,0,0,0.12));
}

.account-actions-card a {
    min-height: 52px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.account-actions-card a:last-child {
    color: var(--gold);
    border-bottom: 0;
}

@media (max-width: 430px) {
    .ncis-header-logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .brand-copy strong {
        font-size: 22px;
    }

    .brand-copy small {
        font-size: 12px;
    }

    .brand-copy em {
        font-size: 9px;
    }

    .ncis-login-logo {
        width: min(68vw, 280px);
    }

    .member-profile-identity {
        align-items: flex-start;
    }

    .profile-seal-logo {
        width: 86px;
        height: 86px;
    }

    .section-title-row {
        align-items: flex-start;
    }

    .brief-source {
        max-width: 120px;
        text-align: center;
    }
}
