/**
 * Header Notifications Block - Frontend Styles
 *
 * A slim, low-key strip above the header: a faint tint of the brand red on the cream
 * background, small dark text, and a hairline underneath. The message stays fully readable.
 */

.header-notifications-block {
    background-color: #fbe5d8; /* fallback for browsers without color-mix() */
    background-color: color-mix(in srgb, var(--wp--preset--color--lrdv-red) 12%, var(--wp--preset--color--lrdv-cream));
    color: var(--wp--preset--color--lrdv-dark);
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(237, 68, 50, 0.18);
}

.header-notifications-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    /* Messages sit side by side when there is room, stacked when there is not */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 2rem;
    row-gap: 0.125rem;
    text-align: center;
}

/* The editor content may be paragraphs or headings: render every block as the same small line */
.header-notifications-content :is(p, h1, h2, h3, h4, h5, h6) {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: var(--wp--preset--font-family--inter, Inter, sans-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-transform: none;
}

.header-notifications-content strong,
.header-notifications-content b {
    font-weight: 500;
}

.header-notifications-content a {
    color: var(--wp--preset--color--lrdv-red);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

.header-notifications-content a:hover {
    opacity: 0.75;
}

/* Preview state styling */
.header-notifications-preview {
    opacity: 0.7;
}

.header-notifications-preview .header-notifications-content :is(p, h1, h2, h3, h4, h5, h6) {
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .header-notifications-content {
        padding: 0.35rem 1rem;
    }

    .header-notifications-content :is(p, h1, h2, h3, h4, h5, h6) {
        font-size: 0.75rem;
    }
}
