/* Mailbird Next Release Notes — page-specific redesign (2026-07) */

.prose-lg {
    border: none !important;
}

/* ---------- Header overrides for this page's bright-header state ---------- */
body > header.rn-hero.bright-header .navbar:not(.scrolledin) #mb-callout > div {
    background-color: var(--mb-branding-3) !important;
}
body > header.rn-hero.bright-header .navbar:not(.scrolledin) #mb-callout > div a {
    color: var(--mb-branding-2) !important;
}
body > header.rn-hero.bright-header .navbar:not(.scrolledin) #mb-callout > div::before {
    border-right-color: var(--mb-branding-3) !important;
}

/* ---------- Hero ---------- */
body > header.mb-redesignV2.rn-hero {
    background-image: url(../../../imgs/release-notes/background-hero.webp);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #F8F9FE;
}
@media (max-width: 991px) {
    body > header.mb-redesignV2.rn-hero {
        background-position: 75% center;
        min-height: 0;
    }
}

.rn-hero-content h1 {
    color: var(--mb-branding-dark);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.rn-hero-content .rn-subtext {
    color: rgba(7, 13, 13, .65);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 460px;
}
.rn-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.rn-hero-buttons .btn-mb {
    display: inline-flex;
    align-items: center;
    padding-left: 1.5rem !important;
    padding-right: 1.25rem !important;
}
.rn-hero-buttons .rn-caret {
    margin-left: .85rem;
    opacity: .85;
}
.rn-btn-outline.btn-mb-3 {
    border-color: #E1E5F0 !important;
}

/* ---------- OS Tabs ---------- */
.rn-os-tabs-wrap {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 3rem;
    padding: 0 1rem;
}
.rn-os-tabs {
    display: inline-flex;
    align-items: center;
    background: #F2F5FB;
    border: none;
    border-radius: 16px;
    padding: .4rem;
    gap: .25rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rn-os-tabs::-webkit-scrollbar { display: none; }
.rn-os-tab {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 2rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: .95rem;
    color: #838DA3;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.rn-os-tab:hover:not(.disabled) { color: var(--mb-branding-2); text-decoration: none; }
.rn-os-tab.active {
    color: var(--mb-branding-2);
    background: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15, 55, 195, .14);
}
.rn-os-tab.disabled { cursor: default; }
.rn-os-tab .rn-badge-soon {
    background: #E4EBFC;
    color: var(--mb-branding-2);
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 50rem;
    margin-left: .15rem;
}

/* ---------- Timeline ---------- */
.rn-timeline {
    position: relative;
}
.rn-timeline::before {
    content: "";
    position: absolute;
    left: calc(7px + 8px);
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #E7EBF7;
}
.rn-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2.75rem;
    padding-bottom: 2.5rem;
}
.rn-entry:last-child { padding-bottom: 0; }
.rn-entry-meta {
    position: relative;
    flex: 0 0 clamp(108px, 12vw, 200px);
}
.rn-entry-content {
    flex: 1;
    min-width: 0;
}
.rn-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--mb-branding-2);
    background: #fff;
    box-sizing: border-box;
}
.rn-version-badge {
    display: inline-block;
    margin-left: 1.65rem;
    background: #EAF0FE;
    color: var(--mb-branding-2);
    font-weight: 700;
    font-size: .8rem;
    padding: .15rem .65rem;
    border-radius: 50rem;
}
.rn-entry-date {
    display: block;
    margin-left: 1.65rem;
    color: #97A0B4;
    font-size: .8rem;
    margin-top: .4rem;
}
.rn-entry-date.rn-placeholder-date { position: relative; }

/* ---------- Expanded entry ---------- */
.rn-entry-expanded .rn-entry-body { padding-top: 2px; }

.rn-card {
    background: linear-gradient(165deg, #000000 0%, #011446 100%);
    border-radius: 16px;
    margin-top: 1.75rem;
    overflow: hidden;
    position: relative;
}
.rn-card.rn-card-version::after {
    content: attr(data-version);
    top: 198px;
    left: 387px;
    position: absolute;
    color: white;
    opacity: 0.7;
    font-size: 10px;
    text-align: center;
    font-weight: 300;
    transform: translate(-50%, -50%);
    font-family: monospace;
}
.rn-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
}
.rn-card-body { flex: 1; min-width: 0; }
.rn-card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .95);
    color: var(--mb-branding-dark);
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .04em;
    padding: .25rem .65rem;
    border-radius: 6px;
    margin-bottom: .85rem;
}
.rn-card-body h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: .6rem;
}
.rn-card-body p {
    color: #C4CEEC;
    font-size: .92rem;
    line-height: 1.5;
    margin: 0;
}
.rn-card-dots {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin-top: 1.25rem;
}
.rn-card-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D7DEEF;
    display: inline-block;
}
.rn-card-dots span.active { background: var(--mb-branding-2); }

@media (max-width: 767px) {
    .rn-card { flex-direction: column; }
}

.rn-section-heading {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--mb-branding-dark);
    margin: 2.25rem 0 1rem;
}

.rn-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rn-feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .7rem 0;
}
.rn-feature-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EEF1FA;
    color: var(--mb-branding-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.rn-feature-list strong { color: var(--mb-branding-dark); }
.rn-feature-list .rn-desc { color: #5B6478; }

.rn-fixes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rn-fixes-list li {
    padding: .55rem 0;
    color: #5B6478;
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    line-height: 1.5;
}
.rn-fixes-list li strong { color: var(--mb-branding-dark); }
.rn-fixes-list .rn-emoji { flex: 0 0 auto; }

.rn-divider {
    border: 0;
    border-top: 1px solid #EDEFF5;
    margin: 1.75rem 0;
}

/* ---------- Collapsed entries ---------- */
.rn-entry-collapsed .rn-view-toggle-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: .3rem;
}
.rn-view-link {
    color: var(--mb-branding-2);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.rn-view-link:hover { color: var(--mb-branding-2-dark); text-decoration: underline; }
.rn-view-link .rn-chevron { transition: transform .2s ease; }
.rn-view-link[aria-expanded="true"] .rn-chevron { transform: rotate(180deg); }

.rn-entry-collapsed .rn-entry-body {
    padding-top: 1.25rem;
}

/* ---------- View all releases ---------- */
.rn-view-all-wrap {
    text-align: center;
    margin-top: 2.5rem;
}
.rn-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid #E4E9F7;
    background: #fff;
    color: var(--mb-branding-dark);
    font-weight: 600;
    font-size: .95rem;
    padding: .65rem 1.5rem;
    border-radius: 50rem;
    cursor: pointer;
}
.rn-view-all-btn:hover { border-color: #C9D3EF; }
.rn-view-all-btn .rn-chevron { transition: transform .2s ease; }
.rn-view-all-btn[aria-expanded="true"] .rn-chevron { transform: rotate(180deg); }

#rn-older-releases.collapse:not(.show) { display: none; }
#rn-older-releases .rn-entry:first-child { padding-top: .25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .rn-hero-content h1 { font-size: 2.1rem; }
    .rn-card-body h3 { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
    .rn-hero-content h1 { font-size: 1.8rem; }

    .rn-os-tab {
        padding: .65rem 1.15rem;
        font-size: .85rem;
        gap: .4rem;
    }
    .rn-os-tab .rn-badge-soon {
        font-size: .62rem;
        padding: .15rem .45rem;
    }

    .rn-entry {
        flex-direction: column;
        gap: .6rem;
    }
    .rn-entry-meta {
        flex: 0 0 auto;
    }
    .rn-entry-content {
        padding-left: 1.65rem;
    }
    .rn-entry-collapsed .rn-view-toggle-row {
        justify-content: flex-start;
    }

    .rn-card {
        padding: 1.1rem;
        gap: 1.25rem;
    }
}
