/* ============================================================
   Changelog — shared timeline styling
   Single source of truth for BOTH the static fallback page
   (public/changelog-static.html) and the dynamic Firestore-rendered
   page (g8ChangelogRenderer at /changelog). Anti-doublon: edit here once.

   Dark glassmorphic timeline. Brand orange accents. One pill visual
   language. Mobile-first responsive. Hover states. Co-creation
   gratitude voice (Sprint 5.A memory rule).

   2026-06-09 density pass (founder: "trop gros, 100% on voit rien"):
   tightened paddings / margins / type so far more ships are visible
   per viewport without zooming out. Look preserved, scale reduced.
   ============================================================ */

:root {
    --bg-deep: #0a0a0a;
    --bg-soft: #15161a;
    --bg-card: rgba(20, 21, 26, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(241, 118, 25, 0.30);
    --text-primary: #f5f5f7;
    --text-secondary: #a8a8b0;
    --text-tertiary: #6c6c75;
    --brand-orange: #f17619;
    --brand-orange-soft: rgba(241, 118, 25, 0.10);
    --brand-orange-glow: rgba(241, 118, 25, 0.18);
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
}

/* Layered dark background: gradient + subtle texture for depth */
.changelog-body {
    background:
        radial-gradient(ellipse at top, rgba(241, 118, 25, 0.06), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(241, 118, 25, 0.04), transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #0d0d10 100%);
    min-height: 100vh;
    padding-top: 84px;
    padding-bottom: 2.5rem;
    position: relative;
}

.changelog-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.015) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.changelog-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: var(--brand-orange-soft);
    border: 1px solid var(--border-accent);
    transition: all 0.2s ease;
}
.back-link:hover {
    background: var(--brand-orange-glow);
    transform: translateX(-2px);
}

/* Header */
.changelog-header {
    text-align: center;
    margin-bottom: 2rem;
}
.changelog-header h1 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem 0;
    color: var(--text-primary);
}
.changelog-header h1 .accent {
    color: var(--brand-orange);
}
.changelog-header p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Promise callout */
.changelog-promise {
    background: linear-gradient(135deg, rgba(241, 118, 25, 0.10), rgba(241, 118, 25, 0.03));
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--brand-orange);
    border-radius: 11px;
    padding: 1rem 1.3rem;
    margin: 0 0 2.25rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.changelog-promise p {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.changelog-promise p:last-child { margin-bottom: 0; }
.changelog-promise strong {
    color: var(--brand-orange);
    font-weight: 700;
}
.changelog-promise a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-decoration-color: rgba(241, 118, 25, 0.4);
    text-underline-offset: 3px;
    font-weight: 500;
}
.changelog-promise a:hover {
    text-decoration-color: var(--brand-orange);
}

/* Timeline structure */
.timeline {
    position: relative;
    padding-left: 28px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(241, 118, 25, 0.6) 0%,
        rgba(241, 118, 25, 0.3) 60%,
        rgba(241, 118, 25, 0.05) 100%);
    border-radius: 1px;
}

.month-marker {
    position: relative;
    margin: 2rem 0 1rem 0;
    padding-left: 0;
}
.month-marker:first-child { margin-top: 0; }
.month-marker::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translate(0, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-orange);
    border: 3px solid var(--bg-deep);
    box-shadow: 0 0 0 2px var(--brand-orange), 0 0 14px rgba(241, 118, 25, 0.55);
}
.month-marker h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}
.month-marker .month-meta {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-top: 0.25rem;
}

/* Week + entries */
.week-block {
    position: relative;
    margin-bottom: 1.5rem;
}
.week-block::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 9px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 2px solid var(--brand-orange);
}
.week-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.6rem;
}

.ship-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.55rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}
.ship-card:hover {
    border-color: var(--border-accent);
    background: rgba(28, 30, 36, 0.92);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(241, 118, 25, 0.08);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.26rem 0.5rem;
    border-radius: 5px;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid;
    min-width: 72px;
    justify-content: center;
}
.tag-launched {
    color: #ffffff;
    background: linear-gradient(135deg, #f17619, #d97706);
    border-color: #f17619;
    box-shadow: 0 0 10px rgba(241, 118, 25, 0.32);
}
.tag-shipped {
    color: #ffb280;
    background: rgba(241, 118, 25, 0.14);
    border-color: rgba(241, 118, 25, 0.4);
}
.tag-improved {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.35);
}
.tag-fixed {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.10);
    border-color: rgba(96, 165, 250, 0.35);
}
.tag-archived {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.08);
    border-color: rgba(156, 163, 175, 0.30);
}

.ship-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}
.ship-text strong {
    color: var(--text-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.94rem;
}
.ship-text a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-decoration-color: rgba(241, 118, 25, 0.4);
    text-underline-offset: 2px;
    font-weight: 500;
}
.ship-text a:hover {
    text-decoration-color: var(--brand-orange);
}
.ship-text code {
    background: rgba(241, 118, 25, 0.10);
    color: #ffb280;
    padding: 0.05rem 0.32rem;
    border-radius: 4px;
    font-family: ui-monospace, SF Mono, Menlo, monospace;
    font-size: 0.86em;
}

/* Footer CTA */
.changelog-cta {
    margin-top: 2.5rem;
    padding: 1.5rem 1.5rem 1.6rem;
    background: linear-gradient(135deg, rgba(241, 118, 25, 0.12), rgba(241, 118, 25, 0.04));
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.changelog-cta p {
    color: var(--text-primary);
    font-size: 0.98rem;
    margin: 0 0 1rem 0;
}
.changelog-cta strong {
    color: var(--brand-orange);
}
.changelog-cta a.cta-btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    background: var(--brand-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(241, 118, 25, 0.35);
    transition: all 0.2s ease;
}
.changelog-cta a.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(241, 118, 25, 0.45);
}

/* Mobile */
@media (max-width: 640px) {
    .changelog-body { padding-top: 76px; }
    .timeline {
        padding-left: 22px;
    }
    .timeline::before {
        left: 7px;
    }
    .month-marker::before {
        left: -22px;
        width: 16px;
        height: 16px;
    }
    .week-block::before {
        left: -19px;
        width: 9px;
        height: 9px;
    }
    .ship-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.8rem 0.9rem;
    }
    .tag {
        justify-self: start;
    }
    .changelog-header h1 {
        font-size: 1.7rem;
    }
}

/* Override: nav must stay readable on the dark bg */
.main-nav {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.main-nav .nav-link { color: var(--text-secondary) !important; }
.main-nav .nav-link:hover { color: var(--text-primary) !important; }
.main-nav .logo-text { color: var(--text-primary) !important; }

/* Footer spacing on the changelog page (the shared .main-footer is dark already) */
.changelog-body + .main-footer,
.main-footer.changelog-footer {
    margin-top: 0;
}

/* ============================================================
   2026-07 hospitality-first experience
   The complete SSR timeline stays in the document. Everything below is
   presentation and progressive enhancement; filters never gate the record.
   ============================================================ */

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

.changelog-body {
    overflow: clip;
    padding-top: 92px;
    padding-bottom: 4rem;
    background:
        radial-gradient(circle at 82% 2%, rgba(241, 118, 25, 0.19), transparent 31rem),
        radial-gradient(circle at 8% 20%, rgba(115, 85, 255, 0.08), transparent 30rem),
        linear-gradient(180deg, #080808 0%, #0d0d10 48%, #09090b 100%);
}

.changelog-body::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 760px;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.018) 43% 43.2%, transparent 43.2% 100%);
    mask-image: linear-gradient(to bottom, #000, transparent);
}

.changelog-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.changelog-shell > .back-link {
    margin: 0 0 0.8rem;
    padding: 0.35rem 0;
    border: 0;
    background: transparent;
    color: #c5c5cc;
}

.changelog-shell > .back-link:hover {
    color: #fff;
    background: transparent;
}

.changelog-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.52fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    min-height: min(560px, calc(100vh - 145px));
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(10, 10, 12, 0.78);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
    isolation: isolate;
}

.changelog-hero::before {
    content: "";
    position: absolute;
    width: min(44vw, 560px);
    aspect-ratio: 1;
    right: -14%;
    top: -42%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 118, 25, 0.22), transparent 68%);
    filter: blur(8px);
}

.hero-copy {
    max-width: 790px;
}

.hero-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 0 0 1.15rem;
    color: #b8b8c0;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #43d17d;
    box-shadow: 0 0 0 5px rgba(67, 209, 125, 0.12);
}

.hero-kicker,
.section-kicker {
    margin: 0 0 0.85rem;
    color: var(--brand-orange);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.changelog-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.65rem, 6.3vw, 5.7rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.92;
}

.changelog-hero h1 span {
    color: var(--brand-orange);
}

.hero-lede {
    max-width: 700px;
    margin: 1.45rem 0 0;
    color: #c3c3ca;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.hero-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    color: #fff;
    background: var(--brand-orange);
    box-shadow: 0 12px 34px rgba(241, 118, 25, 0.25);
}

.hero-btn-secondary {
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.045);
}

.hero-btn-secondary:hover {
    border-color: rgba(241, 118, 25, 0.55);
    background: rgba(241, 118, 25, 0.08);
}

.proof-card {
    padding: clamp(1.2rem, 2.6vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 19px;
    background: rgba(3, 3, 4, 0.48);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.proof-total {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-total strong {
    color: #fff;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.proof-total span {
    color: #a9a9b1;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.proof-card dl {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.proof-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.proof-card dt {
    color: #85858f;
    font-size: 0.72rem;
}

.proof-card dd {
    margin: 0;
    color: #eeeef1;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: right;
}

.proof-card > p {
    margin: 0 0 1rem;
    color: #85858f;
    font-size: 0.72rem;
    line-height: 1.5;
}

.proof-card > a,
.filter-meta a {
    color: #ff9a50;
    font-size: 0.76rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.changelog-tools {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    margin: clamp(3.4rem, 8vw, 7rem) auto 2.6rem;
    padding: 0 clamp(0rem, 2vw, 1.5rem);
}

.tools-intro h2 {
    max-width: 660px;
    margin: 0;
    color: #f7f7f8;
    font-size: clamp(1.75rem, 3.6vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.tools-intro > p:last-child {
    max-width: 580px;
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.filter-panel {
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: rgba(18, 18, 22, 0.76);
}

.search-field {
    display: grid;
    gap: 0.45rem;
    color: #adadb5;
    font-size: 0.72rem;
    font-weight: 700;
}

.search-field input {
    width: 100%;
    min-height: 45px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    outline: none;
    color: #f7f7f8;
    background: rgba(0, 0, 0, 0.25);
    font: inherit;
}

.search-field input::placeholder {
    color: #666670;
}

.search-field input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(241, 118, 25, 0.15);
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag-filters button {
    min-height: 36px;
    padding: 0.46rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #a9a9b1;
    background: transparent;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.tag-filters button:hover {
    color: #fff;
    border-color: rgba(241, 118, 25, 0.48);
}

.tag-filters button[aria-pressed="true"] {
    color: #fff;
    border-color: var(--brand-orange);
    background: rgba(241, 118, 25, 0.14);
}

.tag-filters button:focus-visible,
.hero-btn:focus-visible,
.item-permalink:focus-visible,
.release-permalink:focus-visible {
    outline: 3px solid rgba(255, 164, 94, 0.75);
    outline-offset: 3px;
}

.filter-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
    color: #85858f;
    font-size: 0.72rem;
}

.changelog-container {
    max-width: 920px;
    padding-inline: 0;
}

.filter-empty {
    padding: 2rem;
    border: 1px dashed rgba(241, 118, 25, 0.4);
    border-radius: 14px;
    color: #c8c8ce;
    text-align: center;
}

.anchor-target,
.release-block,
.ship-card,
.month-marker {
    scroll-margin-top: 108px;
}

.timeline {
    padding-left: 34px;
}

.timeline::before {
    left: 10px;
    top: 10px;
    background: linear-gradient(180deg, rgba(241, 118, 25, 0.82), rgba(241, 118, 25, 0.22) 55%, rgba(241, 118, 25, 0.02));
}

.month-marker {
    margin: 3.25rem 0 1.15rem;
}

.month-marker:first-child {
    margin-top: 0;
}

.month-marker::before {
    left: -34px;
}

.month-marker h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.release-block {
    margin-bottom: 1.8rem;
}

.release-block::before {
    left: -30px;
}

.release-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.65rem;
}

.release-heading > div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.release-heading .week-label {
    margin: 0;
}

.latest-chip {
    display: inline-flex;
    padding: 0.24rem 0.45rem;
    border-radius: 999px;
    color: #17100a;
    background: #ffa35f;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.release-permalink,
.item-permalink {
    color: #777781;
    font-size: 0.64rem;
    font-weight: 700;
    text-decoration: none;
}

.release-permalink:hover,
.item-permalink:hover {
    color: #ff9a50;
}

.release-cards {
    display: grid;
    gap: 0.58rem;
}

.ship-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(18, 19, 23, 0.86);
}

.ship-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.ship-card .tag {
    min-width: 70px;
}

.ship-text strong {
    margin: 0 0 0.22rem;
    font-size: 0.94rem;
    line-height: 1.3;
}

.ship-text strong a {
    color: inherit;
    text-decoration: none;
}

.ship-text strong a:hover {
    color: #ffad70;
}

.ship-text p {
    margin: 0;
}

.ship-card:target,
.release-block:target {
    border-color: rgba(241, 118, 25, 0.72);
    box-shadow: 0 0 0 3px rgba(241, 118, 25, 0.12), 0 14px 40px rgba(0, 0, 0, 0.25);
}

.release-latest {
    margin: 0 0 3rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(241, 118, 25, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(241, 118, 25, 0.075), rgba(255, 255, 255, 0.018));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.release-latest::before {
    left: -47px;
    top: 25px;
    background: var(--brand-orange);
    box-shadow: 0 0 0 5px rgba(241, 118, 25, 0.15);
}

.release-latest .release-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-latest .ship-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-content: start;
    padding: 1.1rem;
}

.release-latest .ship-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
}

.release-latest .ship-card-meta {
    justify-content: space-between;
}

.release-latest .ship-text strong {
    font-size: 1.02rem;
}

.changelog-cta {
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 22px;
}

.changelog-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.changelog-cta > p:not(.section-kicker) {
    max-width: 580px;
    margin: 0.9rem auto 0;
    color: #bbbcc3;
}

.hero-actions-centered {
    justify-content: center;
}

@media (max-width: 1024px) {
    .changelog-hero {
        min-height: auto;
        padding: 3rem;
    }

    .changelog-tools {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 780px) {
    .changelog-body {
        padding-top: 78px;
    }

    .changelog-shell {
        width: min(100% - 28px, 680px);
    }

    .changelog-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
        border-radius: 21px;
    }

    .changelog-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.6rem);
    }

    .proof-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.8rem 1.2rem;
        align-items: center;
    }

    .proof-total {
        grid-row: span 2;
        border: 0;
        padding: 0;
    }

    .proof-card dl,
    .proof-card > p,
    .proof-card > a {
        margin: 0;
    }

    .proof-card > p,
    .proof-card > a {
        grid-column: 1 / -1;
    }

    .release-latest .release-cards {
        grid-template-columns: 1fr;
    }

    .release-latest .ship-card:first-child:nth-last-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    html {
        scroll-padding-top: 80px;
    }

    .changelog-body {
        padding-top: 70px;
    }

    .changelog-shell {
        width: calc(100% - 20px);
    }

    .changelog-shell,
    .changelog-hero,
    .hero-copy,
    .proof-card,
    .changelog-tools,
    .filter-panel,
    .changelog-container {
        min-width: 0;
        max-width: 100%;
    }

    .changelog-shell > .back-link {
        margin-bottom: 0.35rem;
        font-size: 0.76rem;
    }

    .changelog-hero {
        gap: 1.2rem;
        padding: 1.3rem;
        border-radius: 17px;
    }

    .hero-status {
        margin-bottom: 0.75rem;
        font-size: 0.66rem;
    }

    .hero-kicker {
        margin-bottom: 0.55rem;
        font-size: 0.65rem;
    }

    .changelog-hero h1 {
        overflow-wrap: anywhere;
        font-size: clamp(2.35rem, 13vw, 3.1rem);
    }

    .hero-lede {
        margin-top: 1rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .hero-actions {
        display: grid;
        margin-top: 1.1rem;
    }

    .hero-btn {
        width: 100%;
        min-height: 44px;
        white-space: normal;
    }

    .proof-card {
        display: block;
        padding: 1rem;
    }

    .proof-total {
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .proof-card dl {
        margin: 0.75rem 0;
    }

    .proof-card > p {
        margin-bottom: 0.75rem;
    }

    .changelog-tools {
        margin-top: 3.5rem;
        padding: 0 0.25rem;
    }

    .filter-panel {
        padding: 0.8rem;
    }

    .tag-filters {
        gap: 0.32rem;
    }

    .tag-filters button {
        min-height: 34px;
        padding: 0.42rem 0.6rem;
        font-size: 0.64rem;
    }

    .timeline {
        padding-left: 22px;
    }

    .timeline::before {
        left: 7px;
    }

    .month-marker::before {
        left: -22px;
    }

    .release-block::before {
        left: -19px;
    }

    .release-latest {
        padding: 0.75rem;
        border-radius: 14px;
    }

    .release-latest::before {
        left: -31px;
        top: 21px;
    }

    .release-permalink {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ship-card {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.85rem;
    }

    .ship-card-meta {
        justify-content: space-between;
    }

    .changelog-cta {
        margin-top: 3.5rem;
        padding: 2rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-btn,
    .ship-card,
    .back-link {
        transition: none;
    }
}
