/* Standalone release history, sharing the Project Sphera palette. */
body.changelog-page {
    --changelog-bg: #0c111a;
    --changelog-surface: #121b28;
    --changelog-ink: #eeeede;
    --changelog-muted: #a8b3c3;
    --changelog-accent: #e9cf63;
    margin: 0;
    min-height: 100vh;
    color: var(--changelog-ink);
    background: var(--changelog-bg);
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color-scheme: dark;
}
.changelog-page *, .changelog-page *::before, .changelog-page *::after { box-sizing: border-box; }
.changelog-page a { color: inherit; }
.changelog-page :focus-visible { outline: 2px solid var(--changelog-accent); outline-offset: 5px; }
.changelog-page ::selection { background: #e9cf6340; color: #fffcec; }
.changelog-shell { width: min(1180px, calc(100% - 80px)); margin: 0 auto; }
.changelog-skip-link { position: fixed; left: 16px; top: -90px; z-index: 20; padding: 12px 20px; background: var(--changelog-accent); color: #111722 !important; border-radius: 6px; }
.changelog-skip-link:focus { top: 16px; }

.changelog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid #ffffff12; }
.changelog-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: .2em; line-height: 1.25; }
.changelog-brand small { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; letter-spacing: .05em; color: var(--changelog-muted); }
.changelog-brand-icon { width: 40px; height: 40px; color: var(--changelog-accent); }
.changelog-brand-icon svg { display: block; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.1; }
.changelog-brand-star { fill: var(--changelog-accent); stroke: var(--changelog-bg); }
.changelog-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.changelog-back-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff22; border-radius: 7px; text-decoration: none; color: #d8deea !important; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.changelog-back-link:hover { border-color: #e9cf6360; background: #e9cf6308; color: var(--changelog-accent) !important; }

.changelog-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 60px; min-height: 300px; padding: 48px 0; overflow: hidden; }
.changelog-eyebrow { margin: 0 0 12px; color: var(--changelog-accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.changelog-hero h1 { margin: 0; font-size: clamp(32px, 3.5vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.18; }
.changelog-description { max-width: 57ch; margin: 18px 0 0; color: var(--changelog-muted); font-size: 16px; line-height: 1.8; }
.changelog-hero-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.changelog-current-pill { display: inline-flex; align-items: center; gap: 9px; color: #c5ccd7; font-size: 13px; }
.changelog-current-pill > span { width: 7px; height: 7px; border-radius: 50%; background: var(--changelog-accent); }
.changelog-current-pill strong { color: var(--changelog-ink); font-weight: 600; }
.changelog-release-count { color: #8f9db0; font-size: 13px; }
.changelog-hero-art { position: relative; height: 230px; isolation: isolate; }
.changelog-orbit { position: absolute; left: 50%; top: 45%; width: 206px; height: 85px; border: 1px solid #e9cf6338; border-radius: 50%; transform: translate(-50%, -50%) rotate(-30deg); }
.changelog-orbit.orbit-two { height: 160px; width: 160px; transform: translate(-50%, -50%) rotate(35deg); border-color: #ffffff20; }
.changelog-orbit.orbit-three { height: 205px; width: 95px; transform: translate(-50%, -50%) rotate(45deg); border-color: #e9cf6350; }
.changelog-orbit-core { position: absolute; left: calc(50% - 4px); top: calc(45% - 4px); height: 8px; width: 8px; border-radius: 50%; background: var(--changelog-accent); }
.changelog-art-label { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; color: #93a0b3; font-size: 11px; letter-spacing: .09em; }

.changelog-content { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 44px; border-top: 1px solid #ffffff15; padding-top: 34px; }
.changelog-index { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #344152 transparent; }
.changelog-index-title { margin: 4px 0 16px; color: #95a2b5; font-size: 12px; font-weight: 500; }
.changelog-index ol { padding: 0; margin: 0; list-style: none; }
.changelog-index li + li { margin-top: 4px; }
.changelog-index a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; color: #aeb9c9; font-size: 14px; text-decoration: none; border: 1px solid transparent; border-radius: 6px; transition: background .2s, color .2s; }
.changelog-index a:hover { color: var(--changelog-ink); background: #ffffff05; }
.changelog-index a.is-latest { color: var(--changelog-accent); border-color: #e9cf6320; background: #e9cf6306; }
.changelog-index-latest { font-size: 11px; opacity: .8; }
.changelog-index-arrow { font-size: 14px; color: #647388; }
.changelog-timeline { min-width: 0; display: grid; gap: 22px; scroll-margin-top: 24px; }
.release-card { padding: 28px; border: 1px solid #ffffff15; border-radius: 12px; background: #111925; scroll-margin-top: 24px; }
.release-card.is-current { border-color: #e9cf6340; background: var(--changelog-surface); }
.release-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #ffffff12; }
.release-heading-copy { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.release-version { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
.release-status { order: -1; flex-basis: 100%; width: fit-content; margin: 0 0 2px; color: var(--changelog-accent); font-size: 12px; font-weight: 500; }
.release-date { margin: 0; color: #8e9db2; font-size: 13px; }
.release-permalink { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 5px; color: #8493a9 !important; font-size: 19px; text-decoration: none; }
.release-permalink:hover { color: var(--changelog-accent) !important; background: #ffffff05; }
.release-groups { display: grid; gap: 24px; padding-top: 24px; }
.release-group { min-width: 0; }
.release-group h3 { margin: 0 0 12px; color: #e5e8df; font-size: 15px; font-weight: 600; line-height: 1.5; }
.release-group ul { margin: 0; padding-left: 18px; color: #b7c2d3; line-height: 1.85; overflow-wrap: anywhere; }
.release-group li { padding-left: 4px; }
.release-group li::marker { color: #67768c; font-size: .8em; }
.release-card.is-current .release-group li::marker { color: #b9a65c; }
.release-group li + li { margin-top: 10px; }
.changelog-empty { padding: 36px 0; grid-column: 1 / -1; }
.changelog-empty h2 { margin: 0 0 12px; font-size: 23px; font-weight: 600; }
.changelog-empty p { color: var(--changelog-muted); max-width: 60ch; }
.changelog-content:not(:has(.changelog-index)) { grid-template-columns: 1fr; }

.changelog-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 54px; padding: 25px 0 36px; border-top: 1px solid #ffffff12; }
.changelog-footer > span { color: #758399; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.changelog-footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #c5cec1; font-size: 14px; text-decoration: none; }
.changelog-footer a:hover { color: var(--changelog-accent); }

@media (max-width: 900px) {
    .changelog-shell { width: calc(100% - 48px); }
    .changelog-hero { gap: 32px; grid-template-columns: minmax(0, 1fr) 190px; }
    .changelog-hero-art { height: 210px; transform: scale(.85); }
    .changelog-content { gap: 24px; grid-template-columns: 150px minmax(0, 1fr); }
    .release-card { padding: 23px; }
}
@media (max-width: 680px) {
    .changelog-shell { width: calc(100% - 36px); }
    .changelog-header { min-height: 82px; gap: 12px; flex-wrap: wrap; padding: 18px 0; }
    .changelog-brand { font-size: 14px; gap: 9px; }
    .changelog-brand small { font-size: 10px; }
    .changelog-brand-icon { width: 32px; height: 32px; }
    .changelog-header-actions { flex-wrap: wrap; gap: 8px; }
    .changelog-back-link { padding: 9px 11px; font-size: 12px; gap: 6px; }
    .changelog-hero { grid-template-columns: 1fr; padding: 35px 0; min-height: 0; }
    .changelog-hero-art { display: none; }
    .changelog-hero h1 { font-size: 32px; }
    .changelog-description { font-size: 15px; margin-top: 15px; }
    .changelog-hero-meta { margin-top: 22px; gap: 14px; }
    .changelog-content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
    .changelog-index { position: static; max-height: none; padding: 0; overflow: visible; }
    .changelog-index-title { margin: 0 0 12px; }
    .changelog-index ol { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: thin; scrollbar-color: #344152 transparent; }
    .changelog-index li { flex-shrink: 0; }
    .changelog-index li + li { margin-top: 0; }
    .changelog-index a { gap: 14px; border-color: #ffffff15; }
    .changelog-index-arrow { display: none; }
    .release-card { padding: 20px 18px; }
    .release-version { font-size: 23px; }
    .release-heading-copy { gap: 10px; }
    .release-groups { gap: 22px; padding-top: 22px; }
    .release-group ul { font-size: 14px; }
    .changelog-footer { margin-top: 36px; padding-bottom: 24px; }
}
html[data-effects="essential"] .changelog-page * { transition: none; scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
    .changelog-page * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
