/* Serial Story — mobile-first chapter layout. Scoped to .ss-* so the theme is untouched. */
.ss-story {
	--ss-accent: #c2410c;
	--ss-accent-ink: #fff;
	--ss-ink: #1f2328;
	--ss-muted: #5f6b76;
	--ss-line: #e5e7eb;
	--ss-soft: #f7f5f2;
	color: var(--ss-ink);
}
.ss-reading .ss-story {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}
.ss-reading .ss-body {
	font-size: 19px;
	line-height: 1.75;
	letter-spacing: 0.003em;
}
.ss-reading .ss-story .ss-body p { margin: 0 0 1.15em; text-align: left; hyphens: manual; }
.ss-story .ss-footer, .ss-story .ss-header { text-align: left; }
/* Beats themes that force `.post-page-content a { text-decoration: underline !important }` (Graceful). */
.ss-story a.ss-continue, .ss-story a.ss-continue *, .ss-story a.ss-series-name { text-decoration: none !important; }
@media (min-width: 768px) {
	.ss-reading .ss-body { font-size: 20px; }
}

/* Header */
.ss-header { margin: 0 0 1.5em; }
.ss-series-name {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ss-accent);
	text-decoration: none;
}
.ss-story .ss-chapter-title { margin: 0 0 4px; font: 700 22px/1.3 Georgia, "Times New Roman", serif; color: var(--ss-ink); text-align: left; }
.ss-meta { margin-top: 4px; font-size: 14px; color: var(--ss-muted); }
.ss-dot { margin: 0 6px; }
.ss-progress { margin-top: 10px; height: 4px; border-radius: 2px; background: var(--ss-line); overflow: hidden; }
.ss-progress span { display: block; height: 100%; background: var(--ss-accent); }

/* Ads */
.ss-ad { margin: 1.6em 0; text-align: center; min-height: 100px; clear: both; }
.ss-ad::before {
	content: "Advertisement";
	display: block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ss-muted);
	margin-bottom: 6px;
}
.ss-ad-placeholder {
	display: flex; align-items: center; justify-content: center;
	min-height: 250px; background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px);
	color: #6b7280; font: 600 14px/1.2 system-ui, sans-serif; border-radius: 6px;
}

/* Footer: Continue button, prev link, chapter list */
.ss-footer { margin-top: 2em; }
.ss-continue {
	display: block;
	margin: 1.2em 0 0.8em;
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--ss-accent);
	color: var(--ss-accent-ink) !important;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(194, 65, 12, 0.28);
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.ss-continue:hover, .ss-continue:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(194, 65, 12, 0.36); }
.ss-continue:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.ss-continue-label { display: block; font: 800 20px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; }
.ss-continue-title { display: block; margin-top: 4px; font-size: 14px; opacity: 0.92; }
.ss-prev { display: inline-block; margin: 0.4em 0 1em; font-size: 15px; color: var(--ss-muted); }
.ss-end {
	margin: 1.4em 0 0.6em; text-align: center;
	font: 800 24px/1.2 Georgia, "Times New Roman", serif; color: var(--ss-ink);
}
.ss-toc {
	margin: 1.2em 0; padding: 12px 16px; border: 1px solid var(--ss-line);
	border-radius: 10px; background: var(--ss-soft); font-size: 16px;
}
.ss-toc summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.ss-toc ol { margin: 8px 0 4px 1.4em; padding: 0; }
.ss-toc li { margin: 6px 0; line-height: 1.4; }
.ss-toc li a { text-decoration: none; }
.ss-toc li.ss-read a { color: var(--ss-muted); }
.ss-toc li.ss-current span { font-weight: 700; }
.ss-more { margin: 1.4em 0; }
.ss-more-title { font-weight: 800; margin-bottom: 6px; }
.ss-more ul { margin: 0 0 0 1.2em; padding: 0; }
.ss-more li { margin: 6px 0; }
.ss-more li span { color: var(--ss-muted); font-size: 14px; }

/* Thin reading-progress bar at the top of the viewport (chapter scroll). */
.ss-scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ss-accent, #c2410c); z-index: 99999; }
.admin-bar .ss-scrollbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ss-scrollbar { top: 46px; } }

@media (prefers-reduced-motion: reduce) { .ss-continue { transition: none; } }
