/* /whats-new — the announcement history.
   Entry bodies reuse the .whatsnew__* rules from components.css (the same ones
   the popup uses), so a bullet looks identical in both places. Only the
   collapsible shell is defined here. */

.whatsnew-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.whatsnew-page__empty {
  padding: 24px;
  text-align: center;
}

.whatsnew-entry {
  padding: 0;
}

.whatsnew-entry__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-ui);
}

/* Safari still paints its own disclosure triangle without this. */
.whatsnew-entry__summary::-webkit-details-marker {
  display: none;
}

.whatsnew-entry__summary:hover {
  background: #d2d2d2;
}

.whatsnew-entry__summary:focus-visible {
  outline: 3px solid var(--mc-aqua);
  outline-offset: -3px;
}

.whatsnew-entry__heading {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.whatsnew-entry__title {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

/* The caret is drawn on the meta block so it stays at the end of the row on
   every width, instead of tracking the (wrapping) title. */
.whatsnew-entry__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/*
 * The version and the date sit next to each other, so they must not share a
 * look — in the same pixel font at the same size they read as one string
 * ("v1.2.0 1 ส.ค. 2026"). The version becomes a recessed slot-style chip and
 * the date drops to plain muted body text.
 */
.whatsnew-entry__version {
  flex: none;
  padding: 2px 8px;
  background: var(--mc-slot);
  border: 2px solid var(--mc-outline);
  box-shadow: var(--bevel-inset);
  color: #23262a;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.whatsnew-entry__date {
  flex: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}

.whatsnew-entry__meta::after {
  content: "▾";
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: transform 0.12s steps(2);
}

.whatsnew-entry[open] .whatsnew-entry__meta::after {
  transform: rotate(180deg);
}

.whatsnew-entry__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
  border-top: 2px solid rgba(0, 0, 0, 0.18);
  padding-top: 14px;
}

@media (max-width: 560px) {
  .whatsnew-entry__meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}
