:root {
    --primary: #5865f2;
    --primary-dark: #4752c4;
    --primary-soft: #eef0ff;
    --ink: #23272a;
    --muted: #667085;
    --border: #e3e7ee;
    --surface: #ffffff;
    --background: #f7f8fb;
    --legacy: #72767d;
    --success: #16865b;
    --warning: #a15c00;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 0%, rgba(88, 101, 242, 0.10), transparent 28rem),
        var(--background);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(227, 231, 238, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: min(1080px, calc(100% - 36px));
    min-height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 850;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand span {
    color: var(--primary);
}

.topbar-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] {
    color: var(--primary);
}

.page {
    width: min(1040px, calc(100% - 36px));
    margin: 0 auto;
    padding: 42px 0 72px;
    flex: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb-separator {
    opacity: 0.45;
}

.hero {
    overflow: hidden;
    position: relative;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid #dfe3ff;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,242,255,0.96)),
        var(--surface);
    box-shadow: 0 18px 55px rgba(54, 65, 140, 0.10);
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.10);
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero h1 {
    position: relative;
    z-index: 1;
    max-width: 800px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.04rem;
}

.release-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.pill-current {
    background: var(--primary);
    color: white;
}

.pill-legacy {
    background: #eef0f2;
    color: #5a6068;
}

.pill-required {
    background: #fff4e5;
    color: var(--warning);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 48px 0 18px;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.5px;
}

.section-heading p {
    max-width: 520px;
    color: var(--muted);
    font-size: 0.94rem;
    text-align: right;
}

.release-list {
    display: grid;
    gap: 14px;
}

.release-card {
    display: grid;
    grid-template-columns: minmax(110px, 0.25fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(35, 39, 42, 0.04);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.release-card:hover {
    border-color: #bdc4ff;
    box-shadow: 0 12px 30px rgba(55, 65, 140, 0.10);
    transform: translateY(-2px);
}

.release-card-version {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.release-card-date {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.release-card h2 {
    margin-bottom: 4px;
    font-size: 1.08rem;
}

.release-card p {
    color: var(--muted);
    font-size: 0.89rem;
}

.release-card-arrow {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
}

.release-status {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 850;
    vertical-align: middle;
}

.change-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.change-section {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(35, 39, 42, 0.035);
}

.change-section h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

.change-section ul {
    padding-left: 19px;
}

.change-section li {
    margin-bottom: 8px;
    color: #475467;
    font-size: 0.91rem;
}

.change-section li:last-child {
    margin-bottom: 0;
}

code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #eff1f5;
    color: #3d4350;
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.88em;
}

.notices {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.current-docs-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #cfd4ff;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f8ff, #ffffff);
}

.current-docs-cta strong,
.current-docs-cta span {
    display: block;
}

.current-docs-cta strong {
    font-size: 1rem;
}

.current-docs-cta span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.current-docs-cta a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.notice {
    padding: 16px 18px;
    border: 1px solid #d9e3ff;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    background: #f6f8ff;
    color: #3d4c70;
    font-size: 0.91rem;
}

.notice-warning {
    border-color: #f5d9a8;
    border-left-color: #f59e0b;
    background: #fff9ed;
    color: #7a4a04;
}

.notice-danger {
    border-color: #f3c7c3;
    border-left-color: #dc3545;
    background: #fff4f3;
    color: #8a241c;
}

.notice strong {
    color: inherit;
}

.release-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
}

.release-nav-link {
    min-height: 94px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.release-nav-link:hover {
    border-color: #bdc4ff;
    transform: translateY(-2px);
}

.release-nav-link.next {
    text-align: right;
}

.release-nav-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.release-nav-version {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 850;
}

.release-nav-spacer {
    min-height: 1px;
}

.empty-state {
    padding: 36px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

footer {
    margin-top: auto;
    padding: 34px 20px;
    background: var(--ink);
    color: white;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #aeb5ff;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
}

footer p {
    color: rgba(255,255,255,0.58);
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .topbar-nav a:first-child {
        display: none;
    }

    .page {
        padding-top: 26px;
    }

    .hero {
        border-radius: 19px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 7px;
        text-align: left;
    }

    .current-docs-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .release-card {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 20px;
    }

    .release-card-copy {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .release-card-arrow {
        grid-column: 2;
        grid-row: 1;
    }

    .change-grid,
    .release-navigation {
        grid-template-columns: 1fr;
    }

    .release-nav-link.next {
        text-align: left;
    }

    .release-nav-spacer {
        display: none;
    }
}

@media (max-width: 480px) {
    .topbar-inner,
    .page {
        width: min(100% - 24px, 1040px);
    }

    .topbar-nav {
        gap: 12px;
    }

    .topbar-nav a {
        font-size: 0.82rem;
    }

    .hero h1 {
        letter-spacing: -1px;
    }
}
