/* StudioVeena "people training this week" authority ribbon.
   Pinned above the fixed BuddyBoss header; right-aligned on desktop,
   full-width across the top on mobile. Height is measured in JS into
   --sv-mc-h so the header + page content can be offset by the exact amount. */

.sv-member-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 613; /* above the sticky header (z-index 612) */
    display: block;
    box-sizing: border-box;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--bb-primary-color, #ec5f42), #d94a2f);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
    box-shadow: 0 1px 6px rgba(18, 24, 40, 0.18);
}

.sv-member-bar:hover {
    color: #ffffff;
    filter: brightness(1.05);
}

.sv-member-bar:focus {
    outline: 2px solid #ffffff;
    outline-offset: -3px;
}

.sv-member-bar__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: var(--bb-container-width, 1170px);
}

.sv-member-bar__flame {
    font-size: 15px;
    line-height: 1;
}

.sv-member-bar__text strong {
    font-weight: 700;
}

/* Offset the sticky header + content so nothing hides behind the bar. */
body.sv-has-member-bar {
    padding-top: var(--sv-mc-h, 40px);
}

body.sv-has-member-bar.sticky-header .site-header {
    top: var(--sv-mc-h, 40px);
}

/* Mobile: full-width, centered. */
@media (max-width: 800px) {
    .sv-member-bar {
        text-align: center;
        padding: 7px 12px;
        font-size: 13px;
    }

    .sv-member-bar__inner {
        max-width: none;
    }
}
