/* changelog.html - What's new, on the Signal study's #/updates page
   (navigation.css .updates-page / .release-feed / .release-entry): a
   heading, the surface chips, then one row per release with its date and
   surface tags on the left and the change on the right. signal-read.css
   carries the page top and the closing call; this sheet is the feed.
   Foundation tokens only; the selected chip is the ink fill. */

.page-changelog .page-hero > .container,
.changelog-container { max-width: 1040px; }
.page-changelog .page-hero { padding: 55px 0 12px; }
.page-changelog .page-hero h1 { max-width: 670px; font-size: clamp(42px, 5vw, 64px); }
.page-changelog .page-hero p { max-width: 570px; font-size: 16px; line-height: 1.7; }
.changelog-section { padding: 0 0 60px; }

/* Surface filter: All / Browser / Discord / Telegram. Real buttons with
   aria-pressed; the status line under them says what is shown. Hidden when
   JavaScript is off (changelog.html), where the page is the whole record. */
.cl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 32px; }
.cl-filter-label { margin-right: 4px; font-size: 12px; color: var(--muted); }
.cl-filter-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 25px; background: transparent; color: var(--muted); font: 500 12px/1.2 var(--sans); cursor: pointer; }
.cl-filter-btn:hover { color: var(--ink); border-color: #55565d; }
.cl-filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cl-filter-status { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* The feed. */
.changelog { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cl-entry { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 36px; padding: 35px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.cl-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cl-date { font-size: 12px; font-weight: 550; color: var(--ink); }
.cl-meta-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-meta-tags .cl-tag { padding: 3px 7px; line-height: 1.3; }
.cl-status { max-width: 150px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.cl-body h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; }
.cl-anchor { color: inherit; text-decoration: none; }
.cl-anchor:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cl-entry:target .cl-body h2 { color: var(--violet); }
.cl-lead { max-width: 64ch; margin: 0 0 6px; font-size: 14px; line-height: 1.75; color: var(--muted); }
/* "Read the update": the study's disclosure (navigation.css .release-copy
   details). A native <details>, so it opens without JavaScript. */
.cl-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; color: var(--violet); font: 550 12px/1.2 var(--sans); list-style: none; cursor: pointer; }
.cl-more > summary::-webkit-details-marker { display: none; }
.cl-more > summary:hover { color: #d3c9fb; }
.cl-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.cl-more[open] > summary .cl-chevron { transform: rotate(90deg); }
.cl-details { padding: 8px 0 4px; }
.cl-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cl-list > li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.cl-list > li > span:last-child { flex: 1 1 auto; min-width: 0; max-width: 66ch; }
.cl-list a:not([class]) { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
/* An item can carry more than one surface tag. */
.cl-tags { display: inline-flex; flex: 0 0 auto; flex-wrap: wrap; gap: 4px; max-width: 150px; padding-top: 3px; }
/* One column for the item text, whichever tag sits in front of it. */
.cl-list .cl-tags { min-width: 68px; }
.cl-tag { flex: 0 0 auto; padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.cl-note { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); }
.cl-try { max-width: 66ch; margin: 18px 0 0; }
.cl-try-label { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.cl-try blockquote { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--violet); border-radius: 0 8px 8px 0; background: var(--surface); font-size: 13.5px; font-style: normal; color: var(--ink); }
.cl-caveat { max-width: 66ch; margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

@media (max-width: 720px) {
  .cl-entry { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 26px 0; }
  .cl-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cl-date { position: static; }
  .cl-status { max-width: none; }
  .cl-body h2 { font-size: 23px; }
  .cl-tags { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) { .cl-filter-btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .cl-chevron { transition: none; } }
