/*
 * Dedicated presentation for /log/.
 * All selectors are scoped so ordinary posts and pages remain unchanged.
 */
.site-changelog {
  --log-accent: #3b82f6;
  --log-accent-soft: rgba(59, 130, 246, 0.12);
  --log-line: rgba(59, 130, 246, 0.25);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.site-changelog .changelog-intro {
  margin-bottom: 42px;
  text-align: center;
}

.site-changelog .changelog-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid var(--log-line);
  border-radius: 999px;
  background: var(--log-accent-soft);
  color: var(--log-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-changelog .changelog-intro h2 {
  margin: 0 0 12px;
  color: var(--font-color);
  font-size: clamp(25px, 4vw, 36px);
}

.site-changelog .changelog-intro p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--font-color);
  line-height: 1.8;
  opacity: 0.76;
}

.site-changelog .changelog-entry {
  position: relative;
  padding-left: 34px;
}

.site-changelog .changelog-entry::before {
  position: absolute;
  top: 8px;
  bottom: -20px;
  left: 8px;
  width: 2px;
  background: linear-gradient(var(--log-accent), transparent);
  content: '';
}

.site-changelog .changelog-marker {
  position: absolute;
  top: 5px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 4px solid var(--card-bg);
  border-radius: 50%;
  background: var(--log-accent);
  box-shadow: 0 0 0 3px var(--log-accent-soft);
}

.site-changelog .changelog-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--log-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, var(--log-accent-soft), transparent 34%),
    var(--card-bg);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.09);
}

.site-changelog .changelog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--font-color);
  font-size: 13px;
  opacity: 0.7;
}

.site-changelog .changelog-meta span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--log-accent);
  color: #fff;
  opacity: 1;
}

.site-changelog .changelog-card > h2 {
  margin: 0 0 14px;
  color: var(--font-color);
  font-size: clamp(23px, 3.6vw, 32px);
  line-height: 1.35;
}

.site-changelog .changelog-summary {
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--log-line);
  color: var(--font-color);
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.82;
}

.site-changelog .changelog-section {
  margin-top: 26px;
}

.site-changelog .changelog-section h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 11px;
  color: var(--font-color);
  font-size: 18px;
}

.site-changelog .changelog-section h3 i {
  width: 24px;
  color: var(--log-accent);
  text-align: center;
}

.site-changelog .changelog-section ul {
  margin: 0;
  padding-left: 24px;
}

.site-changelog .changelog-section li {
  margin: 7px 0;
  color: var(--font-color);
  line-height: 1.8;
}

.site-changelog .changelog-section li::marker {
  color: var(--log-accent);
}

.site-changelog .changelog-section code {
  color: var(--log-accent);
}

.site-changelog .changelog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed var(--log-line);
  color: var(--font-color);
  font-size: 13px;
  opacity: 0.68;
}

.site-changelog .changelog-footer i {
  margin-right: 5px;
  color: var(--log-accent);
}

[data-theme='dark'] .site-changelog {
  --log-accent: #73adff;
  --log-accent-soft: rgba(78, 145, 238, 0.14);
  --log-line: rgba(115, 173, 255, 0.24);
}

[data-theme='dark'] .site-changelog .changelog-card {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

@media (max-width: 600px) {
  .site-changelog .changelog-intro {
    margin-bottom: 30px;
  }

  .site-changelog .changelog-entry {
    padding-left: 24px;
  }

  .site-changelog .changelog-entry::before {
    left: 5px;
  }

  .site-changelog .changelog-marker {
    left: -2px;
    width: 15px;
    height: 15px;
  }

  .site-changelog .changelog-card {
    border-radius: 15px;
  }

  .site-changelog .changelog-summary {
    font-size: 15px;
  }

  .site-changelog .changelog-section h3 {
    font-size: 17px;
  }
}
