/*
 * longread.css — the longread content type's own stylesheet, loaded only by
 * src/_includes/longread.njk via base.njk's `head` block. Loaded after
 * style.css and before a book's own stylesheets (docs/content.md).
 *
 * Deliberately minimal: navigation and wide tables only. Reader design
 * (serif, measure, colours) is not part of the content type yet.
 */

.longread table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; }
.longread th, .longread td { padding: 0.25rem 0.6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.longread figure { margin: 1.5rem 0; }
.longread figure img { max-width: 100%; height: auto; display: block; }
.longread figcaption { color: var(--muted); font-size: 0.9em; margin-top: 0.4rem; }

.longread-toc { margin-top: 2rem; }
.longread-toc ol { padding-left: 1.4rem; }
.longread-toc li { margin: 0.5rem 0; }
.longread-toc-summary { display: block; color: var(--muted); font-size: 0.9em; }

.longread-pager { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.longread-pager span { display: block; color: var(--muted); font-size: 0.8em; }
.longread-next { text-align: right; }
