/* Site notice banner — shared by marketing pages and registration form */

.site-notice {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #1e3a5f 0%, #1e40af 50%, #1e3a5f 100%);
    color: #e0e7ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.site-notice__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.625rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.site-notice__viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.site-notice__track {
    display: flex;
    width: max-content;
}

.site-notice__track--loop {
    animation: site-notice-scroll var(--notice-duration, 45s) linear infinite;
}

.site-notice__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.625rem 0;
}

.site-notice__item {
    white-space: nowrap;
    padding: 0 1.25rem;
    font-weight: 500;
    margin: 0;
}

.site-notice__sep {
    opacity: 0.35;
    font-size: 8px;
    flex-shrink: 0;
}

.site-notice__edit {
    flex-shrink: 0;
    align-self: center;
    margin-right: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-notice__edit:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

@keyframes site-notice-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Registration form: one readable copy, no marquee duplicate */
.site-notice--static .site-notice__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    align-items: flex-start;
}

.site-notice--static .site-notice__track {
    animation: none;
    width: 100%;
}

.site-notice--static .site-notice__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.625rem 1rem;
    width: 100%;
}

.site-notice--static .site-notice__item {
    white-space: normal;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
}

.site-notice--static .site-notice__sep {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-notice:not(.site-notice--static):not(.site-notice--reduced) .site-notice__track--loop {
        animation: none;
    }
}

.site-notice--reduced .site-notice__viewport {
    mask-image: none;
    -webkit-mask-image: none;
}

.site-notice--reduced .site-notice__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.5rem 1rem;
}

.site-notice--reduced .site-notice__item {
    white-space: normal;
    padding: 0.25rem 0;
}

.site-notice--reduced .site-notice__sep {
    display: none;
}

@media (max-width: 768px) {
    .site-notice {
        flex-direction: column;
    }

    .site-notice__label {
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem;
    }
}
