/**
 * hana+nils · Büro für Gestaltung
 * https://hananils.de · buero@hananils.de
 */

.notification + * {
    margin-top: 2.75rem;
}

.notification {
    min-height: 3.8rem;
    margin-top: 0;
    padding: 0.8rem var(--dynamic-spacing-inline-end) 0.8rem
        var(--dynamic-spacing-inline-start);
    color: #000;
    font-size: 1.4rem;
    line-height: 1.4;
    background-color: var(--color-lightgrey);
    z-index: var(--z-index-overlay-front);
}

.notification + .notification {
    text-indent: 0;
}

.notification a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: var(--text-weight-blond);
    text-decoration: none;
}

.notification a strong {
    display: block;
    position: relative;
    overflow: hidden;
    width: 0.7rem;
    margin-right: 1.28rem;
    color: transparent;
    font-weight: var(--text-weight-bold);
    font-variant: small-caps;
    white-space: nowrap;
    white-space: nowrap;
    letter-spacing: 0.05em;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.notification strong::after {
    content: '↓';
    position: absolute;
    left: 0;
    padding: 0;
    color: #000;
    font-weight: 800;
    font-weight: var(--text-weight-extrablack);
}

.notification strong.up::after {
    content: '↑';
}

.notification a:hover,
.notification a:hover strong::after {
    color: var(--color-jeweled-peach);
}

@media (min-width: 500px) {
    .notification a strong {
        width: auto;
        color: inherit;
        white-space: normal;
    }

    .notification strong::after {
        position: relative;
        left: auto;
        padding-left: 0.48rem;
    }
}

.notification em {
    font-weight: var(--text-weight-bold);
    font-style: normal;
}

/* Prominent */

.notification.is-prominent {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    color: #000;
    background-color: var(--color-guilford-green);
}

.notification.is-prominent a {
    display: inline;
    position: -webkit-sticky;
    position: sticky;
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.15);
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.15em;
}

.notification.is-prominent a:hover {
    text-decoration-color: rgba(0, 0, 0, 1);
}
