/* Changelog layout; typography, buttons, tags, navigation and footer use shared styles. */
.changelog-page {
    color-scheme: dark;
    --bg: var(--bg-dark);
    --surface: #222020;
    --line: #3a3838;
    --muted: #b4b4ae;
    --text: #f5f5f5;
}

.change-hero {
    padding: 96px 0 24px;
    text-align: center;
    overflow: hidden
}

.change-hero {
    --pattern-color: #ffffff0d;
    --pattern-mask: radial-gradient(circle at center, #000 15%, transparent 70%);
}

.change-hero .eyebrow {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04)
}

.change-hero .eyebrow:before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #69c269
}

.change-hero h1 {
    margin: 22px auto 0
}

.change-hero p {
    max-width: 560px;
    margin: 22px auto 0;
    font-size: 17px;
}

.change-history {
    padding: 40px 0 100px
}

.change-history > .wrap {
    max-width: 900px
}

.change-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px
}

.change-filters {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%
}

.change-filter-select { display: none; }

.change-filters button {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s
}

.change-filters button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--line);
    font-size: 12px;
    color: var(--muted);
    transition: background .2s, color .2s
}

.change-filters button:hover {
    color: var(--text);
    border-color: #73736d;
    transform: translateY(-1px)
}

.change-filters button:focus-visible {
    outline-offset: 2px
}

.change-filters button[aria-pressed="true"] {
    background: #a3e635;
    border-color: #a3e635;
    color: #202020
}

.change-filters button[aria-pressed="true"] span {
    background: #202020;
    color: #fff
}

.change-toolbar > p {
    margin: 0;
    font-size: 13px
}

/* Reference-style release timeline, exclusive to changelog.html. */
.changelog-page .change-timeline {
    position: relative;
}

.changelog-page .change-entry {
    --timeline-axis: 7px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 38px 48px;
    scroll-margin-top: 110px;
}

.changelog-page .change-entry[hidden] {
    display: none;
}

.changelog-page .change-entry::after {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 0;
    left: var(--timeline-axis);
    width: 1px;
    transform: translateX(-50%);
    background: var(--line);
}

.changelog-page #release-list > .change-entry:not([hidden])::before {
    content: '';
    position: absolute;
    top: 8px;
    left: var(--timeline-axis);
    transform: translateX(-50%);
    z-index: 1;
    width: 9px;
    height: 9px;
    border: 1px solid #65a30d;
    border-radius: 50%;
    background: #84cc16;
    box-shadow: 0 0 0 5px var(--bg);
    animation: changelog-pulse 2s ease-out infinite;
}

.changelog-page #release-list > .change-entry:not([hidden]) ~ .change-entry:not([hidden])::before {
    border: 2px solid #a8a29e;
    background: transparent;
    animation: none;
}

@keyframes changelog-pulse {
    from {
        box-shadow: 0 0 0 0 #84cc1660;
    }
    to {
        box-shadow: 0 0 0 8px #84cc1600;
    }
}

.changelog-page .change-entry time {
    padding: 0;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;
    color: var(--muted);
}

.changelog-page .change-entry-body {
    min-width: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 2px 3px rgba(25, 35, 28, .045);
    transition: border-color .2s;
}

.changelog-page .change-entry-body:hover {
    border-color: #69745f;
    box-shadow: 0 2px 3px rgba(25, 35, 28, .045);
    transform: none;
}

.changelog-page .change-entry:target .change-entry-body {
    border-color: #438f68;
    box-shadow: 0 0 0 3px #438f6818;
}

.changelog-page .change-entry-heading {
    padding: 16px 26px;
    background: rgb(255 255 255 / 3%);
    border-bottom: 1px solid var(--line);
}

.changelog-page .change-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.changelog-page .change-entry-product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.changelog-page .change-entry-product .tag {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.changelog-page .change-version {
    padding: 2px 7px;
    border-radius: 300px;
    background: #746c6c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.changelog-page .change-entry-meta > a {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    color: var(--muted);
}

.changelog-page .change-entry-meta > a:hover {
    background: var(--line);
    color: white;
}

.changelog-page .change-entry-detail {
    padding: 22px 26px 24px;
}

.changelog-page .change-entry-detail > p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.changelog-page .change-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
}

.changelog-page .change-list li {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

.changelog-page .change-kind {
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: transparent;
    border: 2px solid currentColor;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #a3e635;
}

.changelog-page .kind-improved { color: #0ea5e9; }
.changelog-page .kind-added { color: #a3e635; }
.changelog-page .kind-fixed { color: #f43f5e; }

.changelog-page .change-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-underline-offset: 4px;
}

.changelog-page .change-product-link:hover {
    color: #bef264;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .changelog-page .change-entry {
        gap: 12px;
        padding: 0 0 30px 30px;
    }
    .changelog-page .change-entry-heading,
    .changelog-page .change-entry-detail {
        padding: 19px 18px;
    }
    .changelog-page .change-entry-detail > p { font-size: 14px; }
    .changelog-page .change-list li {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        font-size: 13px;
    }
    .changelog-page .change-product-link { font-size: 13px; }
}

.change-more {
    display: flex;
    justify-content: center;
}

.change-more[hidden],
#load-more[hidden] {
    display: none !important;
}

.changelog-page .change-more .btn {
    margin-top: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #a3e635;
    border-color: #a3e635;
    color: #181616;
}

.changelog-page .change-more .btn:hover {
    background: #bef264;
    border-color: #bef264;
}

.change-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 22px 28px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--surface)
}

.change-help p {
    margin: 0;
    font-size: 14px
}

.change-help a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500
}

.change-help a:hover,
.change-product-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px
}













@media (max-width: 760px) {
    .change-hero {
        padding: 60px 0 0
    }

    .change-hero p {
        font-size: 16px
    }

    .change-hero p br {
        display: none
    }

    .change-history {
        padding: 32px 0 60px
    }

    .change-toolbar {
        margin-bottom: 36px
    }

    .change-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        scrollbar-width: none
    }

    .change-filters::-webkit-scrollbar {
        display: none
    }

    .change-filters button {
        display: none;
    }

    .change-filter-select {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 10px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        color: var(--text);
        font: inherit;
        font-size: 14px;
    }

    .change-filter-select:focus-visible { outline: 2px solid #a3e635; outline-offset: 2px; }

    .change-help {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 20px
    }






}

@media (prefers-reduced-motion: reduce) {
    .change-entry:before,
    .change-entry-body,
    .change-filters button {
        animation: none !important;
        transition: none
    }
}
