body.single-chapter {
	background: var(--reader-bg, #f7f1e3);
}

.single-chapter .is-site-header,
.single-chapter .is-bottom-nav,
.single-chapter .is-footer {
	display: none;
}

.is-reader {
	min-height: 100vh;
	background: var(--reader-bg, #f7f1e3);
	color: var(--reader-text, #1f2328);
}

.is-reader[data-theme="eye"] {
	--reader-bg: #edf4e4;
	--reader-text: #1f2328;
}

.is-reader[data-theme="white"] {
	--reader-bg: #ffffff;
	--reader-text: #1f2328;
}

.is-reader[data-theme="dark"] {
	--reader-bg: #1f1f1f;
	--reader-text: #e8e0d2;
}

.is-reader-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	min-height: 52px;
	padding: 0 10px;
	background: color-mix(in srgb, var(--reader-bg) 94%, #fff 6%);
	border-bottom: 1px solid rgba(107, 100, 92, .18);
}

.is-reader-top a {
	display: grid;
	place-items: center;
}

.is-reader-top strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	font-size: 14px;
}

.is-reader-content {
	width: min(100%, 760px);
	margin: 0 auto;
	padding: 26px 18px 80px;
}

.is-reader-content h1 {
	margin: 0 0 8px;
	font-size: 25px;
	line-height: 1.35;
	text-align: center;
}

.is-reader-sub {
	margin: 0 0 28px;
	color: #6b645c;
	text-align: center;
}

.is-reader[data-theme="dark"] .is-reader-sub {
	color: #bbb2a8;
}

.is-reader-prose {
	font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
	font-size: var(--reader-font-size, 18px);
	line-height: var(--reader-line-height, 1.8);
}

.is-reader-prose p {
	margin: 0 0 1.1em;
}

.is-author-note {
	margin: 28px 0;
	padding: 14px;
	border: 1px solid rgba(107, 100, 92, .22);
	border-radius: 12px;
}

.is-reader-prevnext {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 28px;
}

.is-reader-prevnext a,
.is-reader-prevnext span {
	display: grid;
	place-items: center;
	min-height: 42px;
	border: 1px solid rgba(107, 100, 92, .22);
	border-radius: 999px;
}

.is-reader-prevnext span {
	opacity: .45;
}

.is-reader-fab {
	position: fixed;
	right: 18px;
	bottom: 24px;
	z-index: 30;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(107, 100, 92, .24);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 35, 40, .12);
	cursor: pointer;
}

.is-reader-panel {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 35;
	background: #fff;
	border-top: 1px solid var(--is-border);
	box-shadow: 0 -12px 30px rgba(31, 35, 40, .12);
}

.is-reader-panel-inner {
	width: min(100%, 760px);
	margin: 0 auto;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
	display: grid;
	gap: 14px;
}

.is-reader-row {
	display: grid;
	gap: 8px;
}

.is-reader-row > span {
	color: var(--is-muted);
	font-size: 13px;
}

.is-segmented,
.is-stepper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.is-stepper {
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
}

.is-segmented button,
.is-stepper button,
.is-stepper strong {
	min-height: 38px;
	border: 1px solid var(--is-border);
	border-radius: 10px;
	background: #fff;
	color: var(--is-text);
	text-align: center;
}

.is-stepper strong {
	display: grid;
	place-items: center;
}

.is-segmented button.is-active {
	border-color: var(--is-brand-2);
	background: #edf4e4;
	color: var(--is-brand-2);
	font-weight: 700;
}

@media (min-width: 768px) {
	.is-reader-content {
		padding-top: 42px;
	}

	.is-reader-content h1 {
		font-size: 32px;
	}
}
