/* ==========================================================================
   Black Friday 2026 ribbon (temporary — remove after the sale)
   Fixed bar above the header; pages opt in by including the .bf-ribbon markup.
   ========================================================================== */

:root {
    --bf-ribbon-height: 52px;
    --bf-gold: #f5c451;
}

body:has(.bf-ribbon) {
    padding-top: var(--bf-ribbon-height);
}

body:has(.bf-ribbon) .header {
    top: var(--bf-ribbon-height);
}

.bf-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--bf-ribbon-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 0 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 50%, rgba(245, 196, 81, 0.18), transparent 40%),
        radial-gradient(circle at 88% 50%, rgba(244, 72, 72, 0.22), transparent 40%),
        linear-gradient(90deg, #07090f 0%, var(--color-navy-dark) 50%, #07090f 100%);
    border-bottom: 2px solid var(--color-coral-dark);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
}

.bf-ribbon:hover .bf-ribbon-cta,
.bf-ribbon:focus-visible .bf-ribbon-cta {
    background: #fff;
    color: var(--color-navy-dark);
}

.bf-ribbon:focus-visible {
    outline: 2px solid var(--bf-gold);
    outline-offset: -4px;
}

.bf-ribbon-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.bf-ribbon-title {
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffffff 0%, #c9d1dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bf-ribbon-text {
    white-space: nowrap;
}

/* Wide screens: head's children join the copy row so the note trails the code.
   Narrow screens: the note sits beside the title on the first line. */
.bf-ribbon-head {
    display: contents;
}

.bf-ribbon-note {
    order: 1;
    font-size: 0.8em;
    opacity: 0.65;
    white-space: nowrap;
}

.bf-ribbon-note::before {
    content: "\00B7";
    margin-right: 0.5rem;
}

.bf-ribbon-text strong {
    font-weight: 700;
}

.bf-ribbon-code {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.125rem 0.5rem;
    border: 1.5px dashed var(--bf-gold);
    border-radius: 999px;
    color: var(--bf-gold);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.bf-ribbon-cta {
    flex-shrink: 0;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: var(--color-coral-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: var(--transition-fast);
}

@media (max-width: 860px) {
    :root {
        --bf-ribbon-height: 56px;
    }

    .bf-ribbon-cta {
        display: none;
    }

    .bf-ribbon-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }

    .bf-ribbon-head {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .bf-ribbon-note::before {
        margin-right: 0.375rem;
    }
}

@media (max-width: 600px) {
    .bf-ribbon {
        gap: 0.625rem;
        font-size: 0.8125rem;
    }

    .bf-ribbon-title {
        font-size: 0.875rem;
    }

    .bf-ribbon-long {
        display: none;
    }
}
