/* Public release notes. A timeline: the latest version is a highlighted card, older versions hang off one line
   with a dot each, notes sit in a two-column grid on wide screens. Landing tokens only; no global overrides. */
.nv-main {
  --nv-space-sm: .5rem;
  --nv-space-md: 1rem;
  --nv-space-lg: 1.5rem;
  --nv-space-xl: 2.5rem;
  --nv-space-2xl: 4rem;
  padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px);
}
.nv-head { margin-bottom: var(--nv-space-2xl); }
.nv-head h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .98;
  overflow-wrap: anywhere;
  min-width: 0;
}
.nv-head > p {
  max-width: 34ch;
  margin: var(--nv-space-lg) 0 0;
  color: var(--fg-2);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  text-wrap: balance;
}
.nv-body { display: grid; gap: var(--nv-space-xl); }
.nv-index { min-width: 0; }
.nv-index > p { margin: 0 0 var(--nv-space-sm); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.nv-index ol { display: flex; flex-wrap: wrap; gap: var(--nv-space-sm); padding: 0; margin: 0; list-style: none; }
.nv-index a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--link);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nv-index a:hover { background: var(--chip); }
.nv-index a:active { color: var(--fg); }
.nv-releases { position: relative; min-width: 0; max-width: 820px; }
.nv-release { position: relative; scroll-margin-top: 84px; }
.nv-release-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--nv-space-sm) var(--nv-space-md); }
.nv-release h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.nv-date { display: inline-flex; align-items: center; min-height: 28px; margin: 0; padding: 0 12px; border-radius: 980px; background: var(--bg-alt); color: var(--fg-2); font-size: 14px; font-weight: 500; }
.nv-notes { display: grid; gap: var(--nv-space-lg) var(--nv-space-xl); margin-top: var(--nv-space-lg); }
.nv-notes section { min-width: 0; }
.nv-notes h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; min-width: 0; }
.nv-notes p { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.6; letter-spacing: -.012em; }
.nv-notes a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
/* Latest version: the one card on the page. */
.nv-release:first-child { padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--bg-alt); }
.nv-release:first-child .nv-date { background: var(--fg); color: var(--bg); }
.nv-release:first-child h2 { font-size: clamp(36px, 4.5vw, 52px); }
.nv-release:first-child .nv-notes { margin-top: var(--nv-space-xl); }
.nv-release:first-child .nv-notes section { padding: 22px 22px 24px; border-radius: 20px; background: var(--tile); }
/* Older versions: a timeline. */
.nv-release + .nv-release { margin-top: var(--nv-space-2xl); padding-left: 36px; }
.nv-release + .nv-release::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: calc(-1 * var(--nv-space-2xl)); width: 2px; background: var(--line); }
.nv-release:last-child::before { bottom: 0; }
.nv-release + .nv-release .nv-release-head::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--fg); }
.nv-main:focus, .nv-release:focus { outline: none; }
.nv-release:target h2 { text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 6px; }
@media (min-width: 48rem) {
  .nv-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .nv-body { grid-template-columns: 150px minmax(0, 1fr); gap: var(--nv-space-2xl); }
  .nv-index { position: sticky; top: 84px; align-self: start; }
  .nv-index ol { display: grid; gap: 2px; }
  .nv-index a { display: flex; background: none; padding: 0 12px; min-height: 34px; }
  .nv-index a:hover { background: var(--bg-alt); }
}
@media (min-width: 60rem) { .nv-release:first-child .nv-notes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--nv-space-md); } }
