/* Shared reader layout: contents on the left, reading progress bar, pager. Used by blog posts and stories. */
/* Chapter reader */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 50; }
.chapter-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 2.5rem; justify-content: center; align-items: start; }
.chapter-toc { position: sticky; top: 5rem; font-size: .9rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
.chapter-toc ol { list-style: none; margin: .8rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.chapter-toc li a { display: block; padding: .3rem .8rem; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; }
.chapter-toc li a:hover, .chapter-toc li a.on { color: var(--accent); border-left-color: var(--accent); }
.toc-back { color: var(--muted); text-decoration: none; font-weight: 600; }
.toc-back:hover { color: var(--accent); }

.chapter-head h1 { margin: 0 0 .8rem; font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.epigraph { margin: 0 0 1rem; padding-left: 1rem; border-left: 4px solid var(--accent); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.15rem; color: var(--muted); }

.chapter-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

@media (max-width: 900px) {
  .chapter-layout { grid-template-columns: minmax(0, 1fr); }
  .chapter-toc { display: none; }
}
.toc-sep { color: var(--muted); }
