/* Release notes (/changelog.html, DEC-WEB-24). Loaded after landing.css and built from its tokens: white canvas,
   near-black type, Soft Charcoal copy, the icon blue for the one download, 14 px controls and 20 px cards.
   Layout after vitalsmac.com/changelog: a large "What's new." heading, then one block per version, newest first,
   each bullet led by a New / Improved / Fixed label. Light only, like the landing page. */
.changelog-page{padding-bottom:96px;background:radial-gradient(60% 420px at 50% 0%,#e8f5ff 0%,transparent 80%),var(--paper)}
.changelog-intro{padding:56px 0 40px;text-align:center}
.changelog-intro h1{margin:12px 0 0;font-size:clamp(2.6rem,6vw,4rem);line-height:1.1;letter-spacing:-.02em}
.changelog-intro p:not(.eyebrow){max-width:560px;margin:16px auto 0;color:var(--charcoal);font-size:18px;line-height:1.67}

.changelog-layout{display:grid;grid-template-columns:180px minmax(0,760px);justify-content:center;align-items:start;gap:56px}

/* Versions: a sticky list on wide screens, a scrolling chip row on narrow ones */
.changelog-rail{position:sticky;top:92px}
.changelog-rail-title{margin:0 0 10px;color:var(--charcoal);font-size:13px;font-weight:550}
.changelog-rail ol{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
.changelog-rail li{display:flex;align-items:center;gap:8px}
.changelog-rail a{padding:5px 10px;margin-left:-10px;border-radius:10px;color:var(--graphite);font-size:15px;font-weight:550;font-variant-numeric:tabular-nums;transition:background .15s ease}
.changelog-rail a:hover{background:var(--fill-soft)}
.changelog-rail li span{color:var(--charcoal);font-size:12px}

/* One release */
.release{padding:36px 0;border-top:1px solid var(--hairline)}
.release:first-child{padding-top:0;border-top:0}
.release-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:18px}
.release-head h2{margin:0 4px 0 0;font-size:clamp(1.75rem,3vw,2rem);line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.release-anchor{position:relative}
.release-anchor::before{content:"#";position:absolute;right:100%;padding-right:8px;color:var(--charcoal);font-weight:450;opacity:0;transition:opacity .15s ease}
.release-anchor:hover::before,.release-anchor:focus-visible::before{opacity:1}
.release-head time{color:var(--charcoal);font-size:15px}
.release-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.01em}
.release-badge.is-latest{background:#eef4ff;color:var(--blue)}
.release-badge.is-beta{background:var(--fill-soft);color:var(--graphite)}

.release-note{max-width:680px;margin:0 0 14px;color:var(--graphite);font-size:16px;line-height:1.65}
.release-list{display:grid;gap:12px;margin:0 0 14px;padding:0;list-style:none}
.release-list li{display:flex;align-items:baseline;gap:12px;color:var(--graphite);font-size:16px;line-height:1.65}
.release-list li>span:last-child{min-width:0;overflow-wrap:anywhere}
.release-list li>span:only-child::before{content:"";display:inline-block;width:6px;height:6px;margin:0 12px 2px 0;border-radius:50%;background:var(--charcoal);vertical-align:middle}
.release-list strong,.release-note strong{color:var(--ink);font-weight:600}
.release-list code,.release-note code{padding:1px 6px;border-radius:6px;background:var(--fill-soft);font:500 .9em ui-monospace,SFMono-Regular,Menlo,monospace}
.release-list a,.release-note a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.release-label{flex:none;display:inline-flex;justify-content:center;min-width:76px;padding:1px 8px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.75}
.release-label.is-new{background:#eef4ff;color:#0647c0}
.release-label.is-improved{background:#f1f1f3;color:var(--graphite)}
.release-label.is-fixed{background:#e8f6ee;color:#146a43}
.release-label.is-experimental{background:#fff3e0;color:#8a4b00}

.release-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:20px 0 0;font-size:15px;font-weight:550}
.release-links a{color:var(--graphite)}
.release-links a:hover{color:var(--blue)}
.release-links .release-download{min-height:40px;padding:8px 18px;border:1px solid #fff;border-radius:var(--r-control);background:var(--blue);color:#fff;box-shadow:var(--shadow-blue)}
.release-links .release-download:hover{background:#0752d6;color:#fff}
.changelog-rail a:focus-visible,.release-links a:focus-visible,.release-anchor:focus-visible{outline:3px solid var(--blue-bright);outline-offset:3px}

@media(max-width:900px){
  .changelog-intro{padding:40px 0 28px}
  .changelog-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .changelog-rail{position:static;min-width:0}
  .changelog-rail-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .changelog-rail ol{flex-direction:row;gap:6px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
  .changelog-rail ol::-webkit-scrollbar{display:none}
  .changelog-rail li{flex:none}
  .changelog-rail a{margin:0;padding:6px 12px;border-radius:999px;background:var(--fill-soft);font-size:14px}
  .changelog-rail li span{display:none}
}
@media(max-width:560px){
  .release-list li{flex-direction:column;gap:4px}
  .release-list li>span:only-child::before{display:none}
  .release-label{min-width:0}
}
@media(prefers-reduced-motion:reduce){.release-anchor::before,.changelog-rail a{transition:none}}
