/* The release notes page. Builds on the firmware store's home.css and store.css. */
[hidden] { display: none !important; }
.updates-header-links { display: flex; gap: 18px; }
.updates-wrap { padding-bottom: 72px; }
.updates-wrap h2 { margin: 0; font-size: 20px; font-weight: 630; }

.updates-current { padding: 26px 0 30px; border-top: 1px solid var(--s-ink); }
.updates-current-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.updates-current-item { display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--s-line); background: var(--bg); color: var(--s-ink); text-decoration: none; }
.updates-current-item:hover { border-color: var(--s-ink); }
.updates-current-item b { font-size: 14px; font-weight: 620; }
.updates-current-item span { color: var(--s-muted); font-size: 12px; }
.updates-current-item.retired { opacity: .6; }
.updates-version { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

.updates-log { padding: 26px 0 0; border-top: 1px solid var(--s-line); }
.updates-log-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.updates-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.updates-filter button { min-height: 34px; padding: 5px 11px; border: 1px solid var(--s-line); background: transparent; color: var(--s-muted); font: inherit; font-size: 12px; cursor: pointer; }
.updates-filter button[aria-pressed='true'] { border-color: var(--s-ink); background: var(--s-ink); color: var(--s-paper); }
.updates-filter button:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; }

.updates-day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 24px; padding: 22px 0; border-bottom: 1px solid var(--s-line); }
.updates-day:first-child { margin-top: 10px; }
.updates-date { padding-top: 2px; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--s-muted); }
.updates-entries { display: grid; gap: 20px; }
.updates-entry { scroll-margin-top: 20px; }
.updates-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.updates-feature { font-size: 13px; font-weight: 620; }
.updates-kind { padding: 2px 7px; border: 1px solid currentColor; font-size: 11px; line-height: 1.4; }
.updates-kind.new { color: var(--ok); }
.updates-kind.fix { color: var(--s-accent); }
.updates-kind.improve { color: var(--ink); }
.updates-kind.retired { color: var(--s-muted); }
.updates-entry h3 { margin: 7px 0 0; font-size: 16px; font-weight: 620; line-height: 1.5; }
.updates-entry p { max-width: 68ch; margin: 5px 0 0; color: var(--ink); font-size: 14px; line-height: 1.75; }
.updates-entry h4 { margin: 12px 0 0; font-size: 14px; font-weight: 620; line-height: 1.5; }
.updates-list { max-width: 68ch; margin: 4px 0 0; padding-left: 1.4em; color: var(--ink); font-size: 14px; line-height: 1.75; }
.updates-list li + li { margin-top: 2px; }
.updates-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--s-muted); font-size: 12px; }
.updates-meta .reflash { color: var(--s-accent); }
.updates-empty { margin: 18px 0 0; color: var(--s-muted); font-size: 14px; }

@media (max-width: 640px) {
  .updates-day { grid-template-columns: 1fr; gap: 8px; }
  .updates-header-links { gap: 12px; }
}

/* v2: filter chips are pills; the pressed one is paper with black text. */
.updates-filter button { min-height: 36px; padding: 0 14px; border-color: var(--rule); border-radius: 999px; color: var(--muted); transition: border-color var(--t-feedback) var(--ease-out), color var(--t-feedback) var(--ease-out); }
.updates-filter button:hover { border-color: var(--muted); color: var(--ink); }
.updates-filter button[aria-pressed='true'] { border-color: var(--paper); background: var(--paper); color: var(--ink-on-light); }
.updates-filter button:focus-visible { outline-color: var(--amber); }

/* ── 2026-10 layout: homepage chrome, display opening, one centred column ── */
body { background: var(--bg); }
.updates-wrap { padding-bottom: 0; }
.updates-wrap > :not(.store-intro) { max-width: 880px; margin-left: auto; margin-right: auto; }
.store-intro.gx-open { display: block; padding-bottom: clamp(48px, 6vw, 88px); }
.updates-wrap h2 { font-size: clamp(28px, 1rem + 2.7vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
:lang(en) .updates-wrap h2 { text-transform: lowercase; }
.updates-current { padding: 0 0 clamp(48px, 6vw, 88px); border: 0; }
.updates-current-grid { margin-top: 24px; min-height: 172px; }
.updates-current-item { border-color: var(--rule); border-radius: var(--r-m); background: var(--surface-2); }
.updates-log { padding: 0; border: 0; }
.updates-log-head { margin-bottom: 12px; }
/* Reserve room for the list the script renders, so the footer does not jump into view and back (CLS). */
#releaseList { min-height: 100vh; }
#releaseList:not(:empty) { min-height: 0; }
.updates-day { border-color: var(--rule); }
@media (max-width: 700px) { .updates-current-grid { min-height: 290px; } }
