/* Dismissible announcement banner shown at the top of the home page.
   One layout, several tones - a modifier only swaps the accent channels.
   The bare class is the "Default" style (the bookmark reminder), so it holds
   the stock accent itself and every other style overrides it. */

.anikoto-bookmark-alert {
    /* RGB channels, not a colour, so the same accent can be used at several
       alpha levels below. */
    --ak-alert-accent: 38, 163, 214;

    display: none;
    border-radius: 6px;
    border: 1px solid rgba(var(--ak-alert-accent), .4);
    background: linear-gradient(135deg, rgba(var(--ak-alert-accent), .12) 0%, rgba(20, 32, 48, .9) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.anikoto-bookmark-alert.is-visible {
    display: block;
}

.anikoto-bookmark-alert--info { --ak-alert-accent: 90, 168, 255; }

.anikoto-bookmark-alert--news,
.anikoto-bookmark-alert--bookmark { --ak-alert-accent: 255, 186, 222; }

.anikoto-bookmark-alert--warning { --ak-alert-accent: 255, 189, 74; }

.anikoto-bookmark-alert--critical { --ak-alert-accent: 233, 84, 84; }

.anikoto-bookmark-alert__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    min-height: 0;
}

.anikoto-bookmark-alert__icon {
    flex-shrink: 0;
    font-size: .85rem;
    line-height: 1.3;
    color: rgb(var(--ak-alert-accent));
}

.anikoto-bookmark-alert__text {
    flex: 1;
    font-size: .9rem;
    line-height: 1.3;
    color: #e8eef4;
    margin: 0;
}

.anikoto-bookmark-alert__text a {
    color: rgb(var(--ak-alert-accent));
    text-decoration: underline;
}

.anikoto-bookmark-alert__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    color: #b8c5d3;
    font-size: .7rem;
    cursor: pointer;
    line-height: 1;
}

.anikoto-bookmark-alert__close:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* "General" alerts carry their own inline styling, so leave them alone. */
.site-alert { display: none; }
.site-alert.is-visible { display: block; }
