/* What's new - the nav item's unread count and the #whats-new page. ReleaseNotes-Design.md section 6.3. */

.SalesNavItem .WhatsNewCount {
    flex: none;
    min-width: 18px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--text-on-brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* The 48px icon rail has room for a dot, not a number. */
@media (min-width: 1101px) {
    body.NavCollapsed .SalesNavItem {
        position: relative;
    }

    body.NavCollapsed .SalesNavItem .WhatsNewCount {
        position: absolute;
        top: 6px;
        right: 8px;
        width: 9px;
        min-width: 0;
        height: 9px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-indent: 20px;
    }
}

.WhatsNewList {
    max-width: 760px;
}

.WhatsNewNote {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.WhatsNewMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.WhatsNewTag {
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 11px;
}

.WhatsNewTag.WhatsNewTagNew {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--text-on-brand);
    font-weight: 700;
}

h3.WhatsNewTitle {
    margin: 6px 0 4px;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.WhatsNewMeta:empty + h3.WhatsNewTitle {
    margin-top: 0;
}

/* By id: a .SalesView p is muted text. */
#WhatsNewView p.WhatsNewBody {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.WhatsNewHowTo {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--surface-2);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.WhatsNewHowToLabel {
    font-weight: 700;
}

a.WhatsNewLearnMore {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}
