/* The glow stays behind the title however long the list grows, and a short
   page (loading, no releases yet) still puts the footer at the bottom. */
.changelog-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(
        ellipse 65% 440px at 50% 230px,
        #f3f4fc 0%,
        transparent 100%
      )
      no-repeat,
    #fff;
}
.changelog-main {
  flex: 1 0 auto;
  padding-top: 66px;
  padding-bottom: 32px;
}
.changelog [hidden] {
  display: none;
}
.changelog-hero {
  text-align: center;
}
.changelog-hero .chapter {
  margin-bottom: 12px;
  letter-spacing: 0.14em;
}
.changelog-title {
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.25;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.changelog-title span {
  background: linear-gradient(110deg, var(--brand), #7776bb);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:lang(en) .changelog-title {
  letter-spacing: -0.035em;
}
.changelog-intro {
  margin-top: 16px;
  font-size: 0.9375rem;
}
.changelog-list {
  max-width: 1030px;
  margin: 48px auto 0;
}
/* Version and date stay beside the notes while a long release scrolls past. */
.release {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.release-meta {
  position: sticky;
  top: 118px;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.release-version {
  width: 100%;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.release-date {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.release-badge {
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--brand);
  background: #eef4fb;
  font-size: 0.6875rem;
  white-space: nowrap;
}
.release-badge.is-prerelease {
  color: #8a5a0b;
  background: #fbf3e4;
}
.release .release-name {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
}
.release-notes {
  color: #3d4d63;
  font-size: 0.9rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.release-notes > :first-child {
  margin-top: 0;
}
.release-notes p,
.release-notes ul,
.release-notes ol,
.release-notes dl,
.release-notes pre,
.release-notes table,
.release-notes blockquote,
.release-notes details,
.release-notes .markdown-alert {
  margin: 0 0 14px;
  color: inherit;
}
.release-notes h3,
.release-notes h4,
.release-notes h5,
.release-notes h6 {
  margin: 28px 0 10px;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.release-notes h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.release-notes h4 {
  font-size: 1rem;
  font-weight: 600;
}
.release-notes h5,
.release-notes h6 {
  font-size: 0.9rem;
  font-weight: 600;
}
.release-notes ul,
.release-notes ol {
  padding-left: 1.4em;
}
.release-notes li + li,
.release-notes li > ul,
.release-notes li > ol {
  margin-top: 4px;
}
.release-notes li > ul,
.release-notes li > ol {
  margin-bottom: 0;
}
.release-notes li:has(> input[type="checkbox"]) {
  list-style: none;
}
.release-notes input[type="checkbox"] {
  margin: 0 6px 0 -1.3em;
  vertical-align: -1px;
}
.release-notes a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: #1d4d8740;
  text-underline-offset: 3px;
}
.release-notes a:hover {
  text-decoration-color: currentColor;
}
.release-notes strong,
.release-notes b {
  color: var(--text);
  font-weight: 600;
}
.release-notes code,
.release-notes kbd,
.release-notes samp,
.release-notes tt {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: #f0f2f8;
  font:
    0.85em/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
.release-notes pre {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fc;
  overflow-x: auto;
}
.release-notes pre code {
  padding: 0;
  background: none;
  font-size: 0.8125rem;
}
.release-notes blockquote {
  padding-left: 14px;
  border-left: 3px solid #d9e3f2;
  color: var(--muted);
}
.release-notes .markdown-alert {
  padding: 10px 14px;
  border-left: 3px solid #91acd0;
  border-radius: 0 8px 8px 0;
  background: #f4f7fc;
}
.release-notes .markdown-alert-warning,
.release-notes .markdown-alert-caution {
  border-left-color: #d9a24a;
  background: #fdf8ef;
}
.release-notes .markdown-alert-title {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}
.release-notes .markdown-alert > :last-child {
  margin-bottom: 0;
}
.release-notes table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.release-notes th,
.release-notes td {
  padding: 6px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.release-notes th {
  background: #f7f8fc;
  font-weight: 600;
}
.release-notes img,
.release-notes video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.release-notes hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.release-notes summary {
  color: var(--text);
  cursor: pointer;
}
.release .release-empty {
  color: var(--muted);
}
.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 22px;
  font-size: 0.8125rem;
}
.release-download {
  padding: 7px 16px;
  border-radius: 100px;
  color: white;
  background: var(--brand);
  font-weight: 500;
  transition: background 0.2s;
}
.release-download:hover {
  background: #163e70;
}
.release-github {
  color: #536782;
}
.release-github:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.changelog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  max-width: 1030px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.changelog.has-releases .changelog-footer {
  justify-content: space-between;
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.changelog-status-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.changelog .changelog-status {
  margin: 0;
  font-size: inherit;
}
.changelog-footer a,
.changelog-retry {
  color: #536782;
}
.changelog-footer a:hover,
.changelog-retry:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.changelog-retry {
  background: none;
  padding: 0;
  font-size: inherit;
  white-space: nowrap;
}
.changelog noscript p {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
}
.changelog-page .site-footer {
  margin-top: 64px;
}
@media (max-width: 760px) {
  .changelog-main {
    padding-top: 38px;
  }
  .changelog-title {
    font-size: 2.65rem;
  }
  .changelog-list {
    margin-top: 32px;
  }
  .release {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
  }
  .release-meta {
    position: static;
  }
  .release-version {
    width: auto;
    font-size: 1.25rem;
  }
  .changelog.has-releases .changelog-footer {
    justify-content: center;
  }
  .changelog-page .site-footer {
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .release-download {
    transition: none;
  }
}
