/* Changelog page — page-specific styles. Tokens, base form controls, button
   variants, and the .rb-topnav primitive come from /shared/brand.css. */

html, body { min-height: 100%; }
body { background: var(--rb-black-05); }

#app {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#page-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 4px 0;
}
#page-head h1 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.page-sub {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}

.cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cl-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.cl-entry:first-child { border-top: none; padding-top: 8px; }

.cl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.cl-date time { display: block; }

.cl-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cl-changes > li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
}

.cl-tag {
  display: inline-block;
  align-self: start;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.cl-tag-added    { color: var(--state-success); }
.cl-tag-improved { color: var(--accent); }
.cl-tag-fixed    { color: var(--state-error); }

.cl-text {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
}
.cl-text strong {
  font-weight: 700;
  color: var(--fg);
}

@media (max-width: 640px) {
  .cl-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cl-changes > li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cl-tag { justify-self: start; }
}
