/* Changelog page (scoped via the invisible .page-changelog marker): turn the
   right table of contents into a release "Archive" list only the version
   headings (hide the Added/Improved subsections) and rename the panel title. */
.md-main__inner:has(.page-changelog) .md-nav--secondary .md-nav__item .md-nav {
  display: none;
}
.md-main__inner:has(.page-changelog) .md-nav--secondary .md-nav__title {
  position: relative;
  padding-right: 1.6rem;
  font-size: 0;
  cursor: pointer;
}
.md-main__inner:has(.page-changelog) .md-nav--secondary .md-nav__title::after {
  content: "Archive";
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
/* Chevron that collapses / expands the archive list (see changelog-toc.js). */
.cl-arch-toggle {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--md-default-fg-color--light);
}
.cl-arch-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.md-nav--secondary.cl-arch-collapsed .cl-arch-toggle svg {
  transform: rotate(-90deg);
}
.md-nav--secondary.cl-arch-collapsed .md-nav__list {
  display: none;
}

/* Changelog "jump to version" search (see changelog-jump.js): a discreet
   pill-shaped search field with a magnifier icon and a soft dropdown of
   matching versions. */
/* Put the search on the same line as the "Changelog" title: the H1 becomes a
   flex row with the title on the left and the search on the right. */
.md-typeset h1.cl-has-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cl-jump {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  max-width: 48%;
}
/* Reset the inherited H1 typography inside the control. */
.cl-jump,
.cl-jump * {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.cl-jump__input {
  width: 100%;
  padding: 0.5rem 2.1rem 0.5rem 0.9rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 999px;
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Chevron toggle that opens the full version list. */
.cl-jump__toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--md-default-fg-color--light);
}
.cl-jump__toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease;
}
.cl-jump.is-open .cl-jump__toggle svg {
  transform: rotate(180deg);
}
.cl-jump__input::placeholder {
  color: var(--md-default-fg-color--light);
}
.cl-jump__input:focus {
  border-color: var(--mx-muted);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mx-muted) 22%, transparent);
}
.cl-jump__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.cl-jump__results[hidden],
.cl-jump__results li[hidden] {
  display: none;
}
.cl-jump__result {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--md-default-fg-color) !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.cl-jump__result:hover,
.cl-jump__result:focus {
  background: color-mix(in srgb, var(--md-primary-fg-color) 14%, transparent);
  color: var(--md-primary-fg-color) !important;
}

/* Release notes (What's new and Archive): each version a plain bold heading, the releases
   separated by a hairline rule, as changelogs usually read. */
.md-typeset:has(.page-releasenotes) h2 {
  /* Release-notes pages (What's new + Archive): give each version heading a soft
  tinted chip so the versions stand out especially in light mode. Overrides
  the global h2 hairline-rule treatment. */
  display: inline-block;
  margin-top: 2em;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--md-primary-fg-color) 10%, transparent);
  letter-spacing: 0;
  display: block;
  margin-top: 2.2em;
  padding: 1.4em 0 0;
  border: none;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0;
  background: none;
  font-weight: 700; /* over the site-wide heading weight */
}
.md-typeset:has(.page-releasenotes) h1 + h2,
.md-typeset:has(.page-releasenotes) h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
