/* ── Changelog page layout ── */
.changelog-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", sans-serif;
  background: #fff;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Header ── */
.cl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  height: 56px;
  display: flex;
  align-items: center;
}

.cl-header-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cl-site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a2e;
}

.cl-site-title img {
  height: 28px;
  width: auto;
}

.cl-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.cl-nav a {
  text-decoration: none;
  color: #6b7280;
  transition: color 0.15s;
}

.cl-nav a:hover {
  color: #1a1a2e;
}

.cl-nav a[aria-current="page"] {
  color: rgb(93, 95, 239);
  font-weight: 500;
}

/* ── Content ── */
.cl-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Hero ── */
.cl-hero {
  margin-bottom: 32px;
}

.cl-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cl-hero p {
  font-size: 16px;
  color: #6b7280;
}

/* ── RSS ── */
.cl-rss {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.12s;
  margin-bottom: 32px;
}

.cl-rss:hover {
  color: #f97316;
}

.cl-rss svg {
  width: 14px;
  height: 14px;
}

/* ── Filters ── */
.cl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
}

.cl-filter-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cl-filter-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.cl-filter-btn.active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.cl-filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ── Milestone ── */
.cl-milestone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 12px 6px 8px;
  background: #f5f3ff;
  border: 1px solid #e0dafb;
  border-radius: 8px;
}

.cl-milestone-version {
  font-size: 12px;
  font-weight: 700;
  color: rgb(93, 95, 239);
  background: #fff;
  border: 1px solid #e0dafb;
  border-radius: 4px;
  padding: 1px 6px;
}

.cl-milestone-name {
  font-size: 13px;
  font-weight: 600;
  color: #4c1d95;
}

/* ── Week group ── */
.cl-week {
  margin-bottom: 40px;
}

.cl-week + .cl-week {
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.cl-week-date {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ── Entries ── */
.cl-entries {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.cl-entries li {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 16px;
  position: relative;
}

.cl-entries li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d5db;
}

.cl-entry-text {
  flex: 1;
}

.cl-entries li strong {
  color: #1a1a2e;
  font-weight: 600;
}

.cl-entries li code {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #374151;
}

.cl-entries li a {
  color: rgb(93, 95, 239);
  font-weight: 500;
  text-decoration: none;
}

.cl-entries li a:hover {
  text-decoration: underline;
}

/* ── Tags ── */
.cl-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 1px 7px;
  border-radius: 4px;
  text-transform: lowercase;
  white-space: nowrap;
}

.cl-tag-new {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.cl-tag-improved {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cl-tag-fixed {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.cl-tag-api {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.cl-tag-breaking {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ── Footer ── */
.cl-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.cl-footer p {
  font-size: 14px;
  color: #9ca3af;
}

.cl-footer a {
  color: rgb(93, 95, 239);
  font-weight: 500;
  text-decoration: none;
}

.cl-footer a:hover {
  text-decoration: underline;
}

/* ── Filtering states ── */
.cl-entries li[data-hidden] {
  display: none;
}

.cl-week[data-hidden] {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .cl-content {
    padding: 32px 16px 64px;
  }

  .cl-hero h1 {
    font-size: 26px;
  }

  .cl-nav {
    gap: 16px;
    font-size: 13px;
  }
}
