.changelog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.changelog-summary article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius-md);
  background: rgba(248, 243, 235, 0.96);
  color: var(--text-light);
  box-shadow: var(--shadow-soft);
}

.changelog-summary span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--accent);
  font-weight: 900;
}

.changelog-summary h3 {
  margin: 24px 0 8px;
  color: var(--primary-dark);
}

.changelog-summary p {
  margin: 0;
  color: var(--text-light);
  font-weight: 700;
}

.changelog-compare {
  margin: 0 0 48px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  background: rgba(248, 243, 235, 0.94);
  color: var(--text-light);
  box-shadow: 0 24px 60px rgba(29, 28, 23, 0.18);
}

.changelog-compare header h3 {
  margin: 0 0 6px;
  color: var(--primary-dark);
}

.changelog-compare header p {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.compare-slot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(92, 0, 24, 0.14);
  border-radius: var(--radius-md);
  background: var(--surface-white);
}

.compare-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.compare-slot img {
  width: 100%;
  height: clamp(440px, 52vw, 720px);
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--surface-light);
}

.change-notes {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

.change-notes li {
  margin-bottom: 6px;
}

.change-notes code,
.change-card code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(92, 0, 24, 0.08);
  color: var(--primary-dark);
  font-family: var(--font-code);
  font-size: 0.85em;
}

.change-card {
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  background: rgba(248, 243, 235, 0.94);
  color: var(--text-light);
  box-shadow: 0 18px 48px rgba(29, 28, 23, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 270px;
}

.change-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.change-card h3 {
  margin: 0;
  color: var(--primary-dark);
}

.change-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.change-why {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 0, 24, 0.14);
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.new-screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  background: rgba(248, 243, 235, 0.94);
  color: var(--text-light);
  box-shadow: 0 18px 48px rgba(29, 28, 23, 0.16);
}

.new-screen img {
  width: 100%;
  height: clamp(420px, 42vw, 620px);
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--surface-light);
}

.new-screen figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.new-screen figcaption strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.new-screen figcaption span {
  font-size: 0.9rem;
  line-height: 1.5;
}

.unchanged-list {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  background: rgba(248, 243, 235, 0.94);
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.7;
  list-style: none;
  overflow: hidden;
}

.unchanged-list li {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(92, 0, 24, 0.1);
}

.unchanged-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .changelog-summary {
    grid-template-columns: 1fr;
  }

  .changelog-summary article {
    min-height: auto;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-slot img,
  .new-screen img {
    height: auto;
    max-height: 680px;
  }
}
