/* The changelog page (changelog.html). Layers on the tokens in style.css, in the same look as
   news.css: a panel head with the gold wash, then one block per update on the plain ground. */

/* ---------- Head ---------- */
.cl-head {
  border-bottom: 1px solid var(--line-faint);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(200, 169, 94, 0.08), transparent 60%),
    var(--bg-panel);
}
.cl-head-inner { max-width: 860px; margin: 0 auto; padding: 56px 24px 32px; }
.cl-head-inner h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 14px; }
.cl-lede { color: var(--muted); max-width: 60ch; margin: 0 0 26px; }

.cl-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  margin: 0 0 10px;
}
.cl-kicker a { color: var(--gold); text-decoration: none; }
.cl-kicker a::before { content: "\2190"; letter-spacing: 0; margin-right: 8px; }
.cl-kicker a:hover { color: var(--gold-bright); }
.cl-kicker a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

/* ---------- Search and filters ---------- */
.cl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin: 0 0 18px;
  color-scheme: dark;                     /* native dropdowns and the search clear button stay dark */
}
.cl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 0 1 220px; }
.cl-field-search { flex: 1 1 280px; }
.cl-field[hidden] { display: none; }
.cl-field label {
  font-family: Cinzel, serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.cl-field input,
.cl-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-field);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  line-height: 1.3;
  min-height: 44px;                       /* the search box and the selects line up, and are easy to hit */
}
.cl-field select { cursor: pointer; }
.cl-field input::placeholder { color: var(--disabled-ink); }
.cl-field input:focus-visible,
.cl-field select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; border-color: var(--gold-deep); }
.cl-field input:disabled,
.cl-field select:disabled { opacity: 0.55; cursor: default; }
.cl-field option { background: var(--bg-panel); color: var(--ink); }

.cl-reset {
  font-family: Cinzel, serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.cl-reset[hidden] { display: none; }
.cl-reset:hover { color: var(--gold-bright); border-color: var(--gold-deep); }
.cl-reset:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.cl-summary { color: var(--ink); margin: 0; min-height: 1.65em; }
.cl-fresh { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }

/* ---------- The updates ---------- */
.cl-list { max-width: 860px; margin: 0 auto; padding: 8px 24px 24px; }
.cl-state { color: var(--muted); padding: 40px 0; text-align: center; margin: 0; }
.cl-empty { text-align: center; padding: 8px 0 40px; }
.cl-empty .cl-state { padding-bottom: 18px; }

.cl-release {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-faint);
  scroll-margin-top: 90px;                /* clear of the sticky nav when opened by its link */
}
.cl-release:last-child { border-bottom: none; }
.cl-release:focus { outline: none; }
.cl-release:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 8px; border-radius: 4px; }
.cl-release:target .cl-title { color: var(--gold-bright); }

.cl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}
.cl-utc {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.cl-local { color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-kind {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.cl-version {
  font-family: Consolas, "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--line-faint);
  border-radius: 4px;
  padding: 1px 7px;
}
.cl-permalink {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 3px;
}
.cl-permalink:hover { color: var(--gold-bright); }
.cl-permalink:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.cl-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.cl-note p { color: var(--muted); margin: 0 0 12px; overflow-wrap: anywhere; }

.cl-group { margin: 18px 0 0; }
.cl-group-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.cl-lines { margin: 0; padding-left: 22px; }
.cl-lines li {
  color: var(--muted);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.cl-lines li::marker { color: var(--gold-deep); }
.cl-topic {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--line-faint);
  border-radius: 4px;
  padding: 0 6px;
  white-space: nowrap;
}
.cl-partial { color: var(--muted); font-size: 0.82rem; font-style: italic; margin: 10px 0 0; }

.cl-release mark {
  color: var(--ink);
  background: var(--gold-wash);
  border-bottom: 1px solid var(--gold);
  padding: 0 1px;
}

.cl-more-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 80px; text-align: center; }
.cl-more { font-size: 0.74rem; padding: 10px 22px; }
.cl-more[hidden] { display: none; }

@media (max-width: 560px) {
  .cl-head-inner { padding: 40px 16px 26px; }
  .cl-list { padding: 4px 16px 16px; }
  .cl-more-wrap { padding: 0 16px 60px; }
  .cl-field,
  .cl-field-search { flex: 1 1 100%; }
  .cl-release { padding: 28px 0; }
  .cl-lines { padding-left: 18px; }
  .cl-topic { white-space: normal; }
}
