/* Cloud Notch — the release history (releases.html). Loads after style.css and legal.css. */

.releases { max-width: 860px; }
.releases .updated { margin-bottom: 36px; max-width: 60ch; }

/* The list as a whole, in four figures. Values in ink, never in a colour:
   nothing here is good or bad, it is only how things stand. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 48px;
}
.stats[hidden] { display: none; }
.stat {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: var(--card);
}
.stat dt { font-size: 13px; color: var(--ink-3); }
.stat dd { margin: 0; }
.stat dd:not(.stat-note) {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
}
.stat .stat-note { font-size: 13px; color: var(--ink-2); min-height: 1.5em; }

.rel-state { color: var(--ink-2); margin: 0 0 40px; }
.rel-state:empty { display: none; }

/* One release */
.rel {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--menubar) + 16px);
}
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.rel-head h2 { font-size: 28px; margin: 0; }
.rel-head time { margin-left: auto; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.rel-tag {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transform: translateY(-3px);
}
.rel-tag.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.rel.withdrawn .rel-head h2 { text-decoration: line-through; color: var(--ink-3); }

.rel-notes { max-width: 68ch; }
.rel-notes ul { margin: 10px 0; }
.rel-notes code { font-size: .86em; }

.rel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.rel-facts div { display: flex; gap: 6px; }
.rel-facts dt { color: var(--ink-3); }
.rel-facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

.rel-sha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.rel-sha code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.rel-copy {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.rel-copy:hover { background: var(--card); }

.rel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 14px; }
.rel-actions .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.rel-actions a:not(.btn) { color: var(--ink-2); }

.rel-source { margin: 16px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }
.rel-source h2 { font-size: 20px; }
.rel-maintainer { font-size: 13px; color: var(--ink-3); }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel-head time { margin-left: 0; flex-basis: 100%; }
}
