/*
    "What's New in Oliver" dashboard card and detail panel.
    The panel chrome itself comes from .side-container in structure.css; only the
    card list, the unseen indicators and the panel body are defined here.
*/

.whats-new-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--color-2);
    color: var(--color-lightest);
    font-size: .75rem;
    font-weight: 600;
}

.whats-new-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.whats-new-item {
    border-bottom: 1px solid var(--border-light-color);
}

    .whats-new-item:last-child {
        border-bottom: 0;
    }

.whats-new-link {
    display: block;
    width: 100%;
    padding: 12px 4px;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease-in-out;
}

    .whats-new-link:hover {
        background: var(--color-4);
    }

.whats-new-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.whats-new-date {
    color: var(--color-gray);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.whats-new-pill {
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--color-7);
    color: var(--color-lightest);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.whats-new-title {
    display: block;
    color: var(--color-1);
    font-weight: 600;
    line-height: 1.3rem;
}

.whats-new-item.unseen .whats-new-title {
    font-weight: 700;
}

.whats-new-teaser {
    display: block;
    margin-top: 2px;
    color: var(--color-darker);
    font-size: .9rem;
    line-height: 1.2rem;
}

.whats-new-empty {
    padding: 30px 10px;
    color: var(--color-gray);
    text-align: center;
}

    .whats-new-empty i {
        display: block;
        margin-bottom: 8px;
        font-size: 1.8rem;
    }

    .whats-new-empty p {
        margin: 0;
    }

/* Detail panel */

/*
    The panel itself must not scroll: the shared .close handle is positioned outside the
    panel (left: -40px) and an overflow container would clip it, leaving no way to close.
    Scrolling happens on the inner content wrapper instead.
*/
.whats-new-panel {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.whats-new-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.whats-new-panel-date {
    margin-bottom: 15px;
    color: var(--color-gray);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.whats-new-panel-image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: var(--button-radius);
}

.whats-new-panel-loading {
    color: var(--color-gray);
}

.whats-new-panel-body {
    line-height: 1.5rem;
}

    .whats-new-panel-body img {
        max-width: 100%;
        height: auto;
        border-radius: var(--button-radius);
    }

    .whats-new-panel-body h2,
    .whats-new-panel-body h3 {
        margin-top: 18px;
    }

    .whats-new-panel-body ul,
    .whats-new-panel-body ol {
        margin-left: 18px;
    }
