/* ── Story page ──────────────────────────────────────── */
.story-page {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 24px 60px;
}

.story-article {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 36px 40px;
}

.story-header { margin-bottom: 28px; border-bottom: 2px solid #e8e4de; padding-bottom: 20px; }
.story-date { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #5a7a9a; margin: 0 0 8px; }
.story-title { font-size: 1.8rem; font-weight: 700; color: #1a2a3a; margin: 0; line-height: 1.25; }

.story-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 1.2em;
}

.story-lines {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 1.2em;
}

.story-figure {
  margin: 1.5em 0;
  text-align: center;
}
.story-figure img {
  height: 224px; /* 8 text lines */
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.story-figure video {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.story-footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.story-back { font-size: 0.875rem; color: #5a7a9a; text-decoration: none; font-weight: 600; }
.story-back:hover { color: #1a2a3a; }
.story-footer-links { display: flex; align-items: center; gap: 14px; }
.story-edit-link { font-size: 0.8rem; color: #888; text-decoration: none; }
.story-edit-link:hover { color: #5a7a9a; text-decoration: underline; }
.story-delete-link {
  font-size: 0.8rem;
  color: #a94442;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.story-delete-link:hover { color: #7a2e2e; text-decoration: underline; }

@media (max-width: 767px) {
  .story-page { margin: 12px auto; padding: 0 12px 40px; }
  .story-article { padding: 20px; }
  .story-title { font-size: 1.4rem; }
}

/* ── Recent Changes page ─────────────────────────────── */
.changelog-entry { margin-bottom: 2em; }
.changelog-entry:last-child { margin-bottom: 0; }
.changelog-list { margin: 0.8em 0 0; padding-left: 1.3em; }
.changelog-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0.7em;
}
.changelog-list li:last-child { margin-bottom: 0; }
