body {
    display: block;
}

.changelog-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 8px;
}

.changelog-home {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--body-color-secondary);
}

.changelog-home:hover {
    text-decoration: underline;
}

.changelog-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 12px 0 6px;
}

/* No max-width, so the one sentence stays on a single line on a normal screen and
   only wraps once the window is genuinely too narrow for it. */
.changelog-intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--body-color-secondary);
}

.changelog-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.changelog-languages {
    display: flex;
    gap: 4px;
}

.language-link {
    padding: 1px 6px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--body-color-secondary);
}

.language-link:hover {
    color: var(--body-color);
}

.language-link.current {
    color: var(--body-color);
    border-color: var(--body-color);
    font-weight: 600;
}

.changelog-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.changelog-rail {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.rail-group {
    margin-bottom: 14px;
}

.rail-year {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.rail-quarter {
    display: block;
    padding: 2px 0 2px 10px;
    font-size: 12px;
    text-decoration: none;
    color: var(--body-color-secondary);
    border-left: 2px solid var(--border-color);
}

.rail-quarter:hover {
    text-decoration: underline;
}

/* Set by changelog.js as the reader scrolls, so the rail always shows where they are. */
.rail-quarter.current {
    color: var(--body-color);
    font-weight: 600;
    border-left-color: var(--body-color);
}

.changelog-main .timeline li.quarter {
    padding-bottom: 36px;
}

.timeline li.quarter .time {
    font-size: 12px;
}

.quarter-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    font-size: 10px;
    line-height: 15px;
    vertical-align: 1px;
}

.quarter-version {
    font-size: 20px;
    font-weight: 600;
    margin: 2px 0 10px;
}

.quarter-lead {
    margin: 0 0 10px;
    font-size: 14px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--body-color-secondary);
    margin: 16px 0 6px;
}

.section-items {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

/* Metro matches .timeline li as a descendant, not a child, so each bullet inside
   a quarter was also getting the spine, the 9px dot and the 24px indent meant for
   quarters. Strip those back off and leave the plain list marker. */
.timeline .section-items li {
    position: static;
    padding: 0;
}

.timeline .section-items li::before,
.timeline .section-items li::after {
    content: none;
}

.section-items li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
    max-width: 78ch;
}

.section-items li::marker {
    color: var(--body-color-secondary);
}

.section-items code {
    font-family: monospace;
    font-size: 13px;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(127, 127, 127, 0.18);
}

.video {
    margin: 14px 0 18px;
    max-width: 480px;
}

.video-play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: none;
    overflow: hidden;
    line-height: 0;
}

.video-thumb {
    display: block;
    width: 100%;
    height: auto;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.video-play:hover .video-icon {
    transform: translate(-50%, -50%) scale(1.15);
    transition: 0.1s;
}

/* Replaces the facade once clicked, so the page never loads 26 YouTube players up front. */
.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.video-caption {
    margin-top: 6px;
    font-size: 13px;
    color: var(--body-color-secondary);
}

@media (max-width: 900px) {
    .changelog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .changelog-rail {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
    }

    .rail-group {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px;
        margin-bottom: 6px;
    }

    .rail-quarters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .rail-quarter {
        padding: 1px 6px;
        border: 1px solid var(--border-color);
        border-left-width: 1px;
        border-radius: 3px;
    }

    .rail-quarter.current {
        border-color: var(--body-color);
    }
}

/* A screenshot of the application. It takes the whole column rather than the
   480px the video facade beside it does — a dashboard shrunk that far is a
   smudge — and carries a border of its own so a dark screenshot does not bleed
   into the dark page. The column still leaves it at about half size, so it
   opens full size in a tab when clicked. */
.shot {
    margin: 14px 0 18px;
}

.shot-link {
    display: block;
    line-height: 0;
}

.shot-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.shot-link:hover .shot-image {
    border-color: var(--body-color-secondary);
}

.shot-caption {
    margin-top: 6px;
    font-size: 13px;
    color: var(--body-color-secondary);
}
