@font-face {
	font-family: "Anuphan";
	src: url("fonts/anuphan-thai-wght-normal.woff2") format("woff2");
	font-weight: 100 700;
	font-display: swap;
	unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
	font-family: "Anuphan";
	src: url("fonts/anuphan-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "Noto Serif Thai";
	src: url("fonts/noto-serif-thai-thai-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
	font-family: "Noto Serif Thai";
	src: url("fonts/noto-serif-thai-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root { --reader-size: 20px; }
.nvs-app {
	--nvs-accent: #0b7a63;
	--paper: #fff;
	--ink: #14171c;
	--muted: #626a76;
	--line: #e6e8ec;
	--wash: #f5f6f7;
	--sans: "Anuphan", "Noto Sans Thai", "Leelawadee UI", sans-serif;
	--serif: "Noto Serif Thai", "Noto Serif", Georgia, serif;
	--page: #f3f4f6;
	--radius: 14px;
	--lift: 0 1px 2px rgba(20, 23, 28, .05), 0 3px 10px rgba(20, 23, 28, .06);
	--lift-hover: 0 2px 4px rgba(20, 23, 28, .06), 0 8px 20px rgba(20, 23, 28, .1);
	--done-bg: #e4f3ec;
	--done-fg: #0b6a4f;
}
/* Follows a theme's dark mode; site.js sets .is-dark from the page background. */
.nvs-app.is-dark,
.options_dark_skin .nvs-app--theme {
	--paper: #202327;
	--ink: #eceef1;
	--muted: #a3a9b3;
	--line: #353a41;
	--wash: #2b2f35;
	--page: transparent;
	--lift: 0 0 0 1px #2c3036;
	--lift-hover: 0 0 0 1px #474d55, 0 8px 20px rgba(0, 0, 0, .3);
	--done-bg: #173a2f;
	--done-fg: #7fd6b4;
}

.nvs-app *, .nvs-app *::before, .nvs-app *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.nvs {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
}
.nvs-app img { display: block; max-width: 100%; height: auto; }
.nvs-app :focus-visible { outline: 2px solid var(--nvs-accent); outline-offset: 2px; }
.nvs-app [hidden] { display: none !important; }

/*
 * Inside a theme's header and footer the theme's own element styles reach our
 * markup. These resets use :where() so they stay below every rule further down.
 */
.nvs-app--theme { background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.6; }
.nvs-app :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, label):not(:where(.rd-content *, .nvs-detail__text *)) {
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	clear: none;
}
.nvs-app :where(h1, h2, h3, h4, h5, h6):not(:where(.rd-content *, .nvs-detail__text *)) { font-weight: 700; }
.nvs-app :where(a) { color: inherit; text-decoration: none; transition: none; }
.nvs-app :where(a):hover { color: inherit; }
/* Buttons take colours from variables: some themes force them with !important. */
.nvs-app :where(button) {
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--btn-bg, none);
	color: var(--btn-fg, inherit) !important;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	box-shadow: none;
	transition: none;
	cursor: pointer;
}
.nvs-app :where(button):hover { background-color: var(--btn-bg-hover, var(--btn-bg, transparent)) !important; }

.nvs-app .nvs-wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 20px; }
.nvs-app .nvs-main { flex: 1 0 auto; padding-block: 28px 72px; }
.nvs-app .nvs-muted { color: var(--muted); }

/* Our own admin-bar offset, because core's block styles are not loaded here. */
.admin-bar { --wp-admin--admin-bar--height: 32px; }
@media (max-width: 782px) { .admin-bar { --wp-admin--admin-bar--height: 46px; } }

/* Header */
.nvs-app .nvs-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.nvs-app .nvs-header__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.nvs-app .nvs-brand { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.2; flex: none; }
.nvs-app .nvs-brand img { max-height: 40px; width: auto; }
.nvs-app .nvs-header__link { color: var(--muted); font-weight: 500; flex: none; }
.nvs-app .nvs-header__link:hover { color: var(--ink); }
.nvs-app .nvs-search { margin-left: auto; flex: 0 1 280px; min-width: 0; }
.nvs-app .nvs-search input {
	width: 100%;
	max-width: none;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid transparent;
	box-shadow: none;
	border-radius: 20px;
	background: var(--wash);
	color: inherit;
	font: inherit;
	font-size: 15px;
	appearance: none;
}
.nvs-app .nvs-search input:focus { background: var(--paper); border-color: var(--line); outline: 2px solid var(--nvs-accent) !important; outline-offset: 1px; }

/* Novel bar under a theme's header */
.nvs-app .nvs-subnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nvs-app .nvs-subnav__row { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.nvs-app .nvs-subnav__brand { flex: none; font-size: 18px; font-weight: 700; }
.nvs-app .nvs-subnav a:not(.nvs-subnav__brand) { flex: none; color: var(--muted); font-weight: 500; }
.nvs-app .nvs-subnav a:not(.nvs-subnav__brand):hover, .nvs-app .nvs-subnav a[aria-current] { color: var(--ink); }
.nvs-app .nvs-subnav .nvs-search { flex-basis: 260px; }

/* Button */
.nvs-app .nvs-button {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 8px 24px;
	border-radius: 6px;
	background: var(--nvs-accent);
	color: #fff !important;
	font-weight: 600;
}
.nvs-app .nvs-button:hover { filter: brightness(.9); }
.nvs-app .nvs-link-button { --btn-fg: var(--nvs-accent); font-weight: 500; }

/* Covers */
.nvs-app .nvs-cover { display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: var(--wash); }
.nvs-app .nvs-cover img { width: 100%; height: 100%; object-fit: cover; }
.nvs-app .nvs-cover--type {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	padding: 10% 9%;
	background: var(--c-bg);
	color: var(--c-fg);
	container-type: inline-size;
}
.nvs-app .nvs-cover__title {
	font-family: var(--serif);
	font-size: clamp(13px, 12.5cqw, 44px);
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nvs-app .nvs-cover__author { font-size: clamp(10px, 6.5cqw, 18px); opacity: .8; }

/* Cards */
.nvs-app .nvs-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.nvs-app .nvs-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--lift);
	transition: box-shadow .16s ease-out;
}
.nvs-app .nvs-card:hover { box-shadow: var(--lift-hover); }
.nvs-app .nvs-card .nvs-cover { aspect-ratio: 3 / 4; border-radius: 0; }
.nvs-app .nvs-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px 14px 16px; }
.nvs-app .nvs-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nvs-app .nvs-pill {
	display: inline-block;
	padding: 0 10px;
	border-radius: 12px;
	background: var(--pill);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 22px;
	white-space: nowrap;
}
.nvs-app .nvs-tag { padding: 0 9px; border-radius: 12px; background: var(--wash); color: var(--muted); font-size: 13px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.nvs-app .nvs-tag--done { background: var(--done-bg); color: var(--done-fg); }
.nvs-app .nvs-card__title {
	max-width: 100%;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nvs-app .nvs-card__author { color: var(--muted); font-size: 14px; }
.nvs-app .nvs-card__text {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Ranked cards */
.nvs-app .nvs-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nvs-app .nvs-card__art { position: relative; display: block; }
.nvs-app .nvs-rank {
	position: absolute;
	left: 14px;
	bottom: 4px;
	color: rgba(255, 255, 255, .22);
	font-size: clamp(64px, 9vw, 96px);
	font-weight: 700;
	line-height: 1.1;
	-webkit-text-stroke: 3px #fff;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
}
.nvs-app .nvs-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), auto); grid-auto-flow: column; gap: 12px 16px; margin-top: 16px; }
.nvs-app .nvs-card--row { flex-direction: row; }
.nvs-app .nvs-card--top .nvs-cover__author { display: none; }
.nvs-app .nvs-card--row .nvs-card__art { flex: 0 0 148px; }
.nvs-app .nvs-card--row .nvs-card__art { min-height: 92px; }
.nvs-app .nvs-card--row .nvs-cover { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; padding: 0; }
.nvs-app .nvs-card--row .nvs-cover span { display: none; }
.nvs-app .nvs-card--row .nvs-rank { left: 10px; bottom: 2px; font-size: 44px; -webkit-text-stroke-width: 2px; }
.nvs-app .nvs-card--row .nvs-card__body { justify-content: center; gap: 4px; padding: 10px 14px; }
.nvs-app .nvs-card--row .nvs-card__title { font-size: 16px; -webkit-line-clamp: 1; }

/* Home */
.nvs-app .nvs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nvs-app .nvs-tagline { margin: 0 0 24px; color: var(--muted); font-size: 18px; }

.nvs-app .nvs-hero { position: relative; overflow: hidden; border-radius: 18px; background: var(--ink); aspect-ratio: 7 / 3; container-type: inline-size; }
.nvs-app .nvs-hero__track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.nvs-app .nvs-slide { position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden; background: var(--c-bg); color: #fff; }
.nvs-app .nvs-slide__image { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.nvs-app .nvs-slide__blur { position: absolute; inset: -40px; display: block; width: calc(100% + 80px); max-width: none !important; height: calc(100% + 80px) !important; object-fit: cover; filter: blur(28px) brightness(.55); }
.nvs-app .nvs-slide__blur--type {
	background:
		radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--c-fg) 55%, var(--c-bg)), transparent 45%),
		radial-gradient(circle at 78% 75%, color-mix(in srgb, var(--c-fg) 30%, var(--c-bg)), transparent 50%),
		var(--c-bg);
	filter: blur(28px) brightness(.8);
}
.nvs-app .nvs-slide--auto { --cover-left: max(7cqw, 72px); --cover-w: 24cqw; }
.nvs-app .nvs-slide__cover { position: absolute; top: 8%; bottom: 8%; left: var(--cover-left); z-index: 1; width: var(--cover-w); pointer-events: none; }
.nvs-app .nvs-slide__cover .nvs-cover { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.nvs-app .nvs-slide__body {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 40px;
	background: linear-gradient(transparent 50%, rgba(0, 0, 0, .68));
}
.nvs-app .nvs-slide--auto .nvs-slide__body { padding-left: calc(var(--cover-left) + var(--cover-w) + 32px); background: linear-gradient(transparent 40%, rgba(0, 0, 0, .6)); }
.nvs-app .nvs-slide__text { min-width: 0; }
.nvs-app .nvs-slide h2 { margin: 0; font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.nvs-app .nvs-slide h2 a::after { content: ""; position: absolute; inset: 0; }
.nvs-app .nvs-slide p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 15px; }
.nvs-app .nvs-slide__read {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px 0 16px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 10px;
	background: rgba(40, 42, 46, .72);
	color: #fff;
	font-weight: 600;
}
.nvs-app .nvs-slide__read:hover { background: rgba(40, 42, 46, .9); }
.nvs-app .nvs-slide__read svg, .nvs-app .nvs-hero__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nvs-app .nvs-hero__arrow {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	--btn-bg: rgba(255, 255, 255, .28);
	--btn-bg-hover: rgba(255, 255, 255, .45);
	--btn-fg: #fff;
}
.nvs-app .nvs-hero__arrow--prev { left: 14px; }
.nvs-app .nvs-hero__arrow--next { right: 14px; }
.nvs-app .nvs-hero__dots { position: absolute; left: 32px; right: 32px; bottom: 8px; display: flex; gap: 6px; }
.nvs-app .nvs-hero__dots button { flex: 1; height: 24px; }
.nvs-app .nvs-hero__dots i { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.nvs-app .nvs-hero__dots i::before { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.nvs-app .nvs-hero__dots .is-done i::before { transform: none; }
.nvs-app .nvs-hero__dots .is-active i::before { animation: nvs-fill 6s linear forwards; }
.nvs-app .nvs-hero.is-paused .is-active i, .nvs-app .nvs-hero.is-paused .is-active i::before { animation-play-state: paused; }
@keyframes nvs-fill { to { transform: none; } }


.nvs-app .nvs-section { margin-top: 44px; }
.nvs-app .nvs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.nvs-app .nvs-head__icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--nvs-accent) 12%, var(--paper)); color: var(--nvs-accent); }
.nvs-app .nvs-head__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nvs-app .nvs-head__text { min-width: 0; }
.nvs-app .nvs-head h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }
.nvs-app .nvs-head p { margin: 0; color: var(--muted); font-size: 14px; }
.nvs-app .nvs-head__all { flex: none; margin-left: auto; color: var(--muted); font-weight: 500; }
.nvs-app .nvs-head__all:hover { color: var(--ink); }
.nvs-app .nvs-head__all::after { content: " ›"; }
.nvs-app .nvs-head--toc { justify-content: space-between; }

.nvs-app .nvs-continue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nvs-app .nvs-continue a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--lift); }
.nvs-app .nvs-continue img { width: 40px; height: 60px; object-fit: cover; border-radius: 2px; flex: none; }
.nvs-app .nvs-continue span { min-width: 0; }
.nvs-app .nvs-continue strong, .nvs-app .nvs-continue small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvs-app .nvs-continue strong { font-weight: 600; }
.nvs-app .nvs-continue small { color: var(--muted); font-size: 14px; }

.nvs-app .nvs-empty { padding: 72px 0; text-align: center; color: var(--muted); }
.nvs-app .nvs-empty h1 { margin: 0 0 8px; color: var(--ink); font-size: 28px; }

/* Listing */
.nvs-app .nvs-page-title { margin: 0 0 16px; font-size: 30px; line-height: 1.35; }
.nvs-app .nvs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.nvs-app .nvs-chips a { padding: 5px 14px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.nvs-app .nvs-chips a:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.nvs-app .nvs-chips a[aria-current] { background: var(--ink); color: var(--paper); }
.nvs-app .nvs-chips--small { margin: 12px 0 0; }
.nvs-app .nvs-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.nvs-app .nvs-pagination .page-numbers { padding: 6px 14px; border-radius: 6px; background: var(--paper); }
.nvs-app .nvs-pagination .current { background: var(--ink); color: var(--paper); }

/* Novel page */
.nvs-app .nvs-detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; padding: 20px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--lift); }
.nvs-app .nvs-detail h1 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.35; }
.nvs-app .nvs-detail__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; color: var(--muted); }
.nvs-app .nvs-detail__text { max-width: 62ch; margin: 18px 0 24px; font-size: 17px; line-height: 1.8; }
.nvs-app .nvs-detail__text p { margin: 0 0 1em; }
.nvs-app .nvs-toc { padding: 20px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--lift); }
.nvs-app .nvs-toc__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.nvs-app .nvs-toc__list a { display: flex; justify-content: space-between; gap: 20px; min-height: 52px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.nvs-app .nvs-toc__list a:hover span { color: var(--nvs-accent); }
.nvs-app .nvs-toc__list a.is-read span { color: var(--muted); }
.nvs-app .nvs-toc__list time { flex: none; color: var(--muted); font-size: 14px; line-height: 1.8; }

.nvs-app .nvs-footer { padding: 24px 0; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Reader */
:root, [data-reader-theme="light"] {
	--rd-bg: #fff;
	--rd-fg: #1c1f24;
	--rd-soft: #626a76;
	--rd-line: #e6e8ec;
	--rd-raise: #fff;
	--rd-wash: #f2f3f5;
}
[data-reader-theme="sepia"] {
	--rd-bg: #f4ecd8;
	--rd-fg: #43372a;
	--rd-soft: #75664f;
	--rd-line: #e0d5bc;
	--rd-raise: #fbf5e6;
	--rd-wash: #eadfc6;
}
[data-reader-theme="dark"] {
	--rd-bg: #16181c;
	--rd-fg: #d3d6db;
	--rd-soft: #969ca6;
	--rd-line: #2e3238;
	--rd-raise: #212429;
	--rd-wash: #2a2e34;
}
body.nvs:not(.nvs-reader) { display: flex; flex-direction: column; min-height: 100vh; }
body.nvs-reader { background: var(--rd-bg); color: var(--rd-fg); transition: background-color .2s, color .2s; }
.nvs-app .rd-top {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 0 16px;
	background: var(--rd-bg);
	border-bottom: 1px solid var(--rd-line);
	transition: background-color .2s;
}
.nvs-app .rd-top__back { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--rd-soft); font-weight: 500; }
.nvs-app .rd-top__back:hover { color: var(--rd-fg); }
.nvs-app .rd-top__back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvs-app .rd-top__back svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nvs-app .rd-top__tools { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--rd-line); border-radius: 19px; --btn-bg: transparent; --btn-fg: var(--rd-fg); font-weight: 500; }
.nvs-app .rd-top__tools[aria-expanded="true"] { --btn-bg: var(--rd-wash); }
.nvs-app .rd-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.nvs-app .rd-progress span { display: block; height: 100%; background: var(--nvs-accent); transform: scaleX(0); transform-origin: left; }

.nvs-app .rd-panel {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px);
	right: 16px;
	z-index: 30;
	width: min(340px, calc(100vw - 32px));
	padding: 8px 18px;
	border: 1px solid var(--rd-line);
	border-radius: 10px;
	background: var(--rd-raise);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}
.nvs-app .rd-panel__row { padding: 12px 0; }
.nvs-app .rd-panel__row + .rd-panel__row { border-top: 1px solid var(--rd-line); }
.nvs-app .rd-panel__row > span { display: block; margin-bottom: 10px; color: var(--rd-soft); font-size: 14px; }
.nvs-app .rd-stepper { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; text-align: center; }
.nvs-app .rd-stepper button { height: 44px; border-radius: 6px; --btn-bg: var(--rd-wash); --btn-fg: var(--rd-fg); }
.nvs-app .rd-stepper button:disabled { opacity: .4; cursor: default; }
.nvs-app .rd-stepper output { font-size: 18px; font-weight: 600; }
.nvs-app .rd-a { font-family: var(--serif); font-weight: 600; }
.nvs-app .rd-a--s { font-size: 15px; }
.nvs-app .rd-a--l { font-size: 24px; }
.nvs-app .rd-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nvs-app .rd-themes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 6px; border: 2px solid transparent; border-radius: 8px; --btn-fg: var(--rd-fg); font-size: 15px; }
.nvs-app .rd-themes button[aria-pressed="true"] { border-color: var(--nvs-accent); }
.nvs-app .rd-themes i { width: 44px; height: 44px; border: 1px solid var(--rd-line); border-radius: 50%; }
.nvs-app [data-theme="light"] i { background: #fff; }
.nvs-app [data-theme="sepia"] i { background: #f4ecd8; }
.nvs-app [data-theme="dark"] i { background: #16181c; }

.nvs-app .rd-page { width: min(700px, 100%); margin-inline: auto; padding: 44px 22px 72px; }
.nvs-app .rd-title { margin: 0 0 32px; font-family: var(--serif); font-size: calc(var(--reader-size) * 1.45); font-weight: 700; line-height: 1.4; }
.nvs-app .rd-content { font-family: var(--serif); font-size: var(--reader-size); line-height: 2; overflow-wrap: break-word; }
.nvs-app .rd-content p { margin: 0 0 1.1em; }
.nvs-app .rd-content img { border-radius: 4px; }
.nvs-app .rd-content hr { width: 72px; margin: 2.2em auto; border: 0; border-top: 1px solid var(--rd-line); }
.nvs-app .rd-content :where(h2, h3, h4) { margin: 1.8em 0 .7em; font-family: var(--serif); font-weight: 700; line-height: 1.4; }
.nvs-app .rd-content h2 { font-size: 1.3em; }
.nvs-app .rd-content :where(h3, h4) { font-size: 1.1em; }
.nvs-app .rd-content :where(ul, ol) { margin: 0 0 1.1em; padding-left: 1.4em; }
.nvs-app .rd-content blockquote { margin: 1.4em 0; padding: 0 0 0 1em; border-left: 3px solid var(--rd-line); color: var(--rd-soft); }
.nvs-app .rd-content figure { margin: 1.6em 0; }
.nvs-app .rd-content figcaption { margin-top: .5em; color: var(--rd-soft); font-family: var(--sans); font-size: 14px; line-height: 1.5; text-align: center; }
.nvs-app .rd-content .has-text-align-center { text-align: center; }
.nvs-app .rd-content .has-text-align-right { text-align: right; }

.nvs-app .rd-nav { margin-top: 56px; }
.nvs-app .rd-next {
	display: block;
	padding: 16px 20px;
	border-radius: 8px;
	background: var(--nvs-accent);
	color: #fff !important;
	text-align: center;
}
.nvs-app .rd-next:hover { filter: brightness(.9); }
.nvs-app .rd-next strong { display: block; font-size: 18px; font-weight: 600; }
.nvs-app .rd-next span { display: block; font-size: 15px; opacity: .9; }
.nvs-app .rd-end { margin: 0; padding: 16px; border-radius: 8px; background: var(--rd-wash); text-align: center; }
.nvs-app .rd-nav__row { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--rd-soft); font-weight: 500; }
.nvs-app .rd-nav__row a { padding: 8px 4px; }
.nvs-app .rd-nav__row a:only-child { margin-left: auto; }
.nvs-app .rd-nav__row a:hover { color: var(--rd-fg); }

@media (max-width: 1000px) {
	.nvs-app .nvs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.nvs-app .nvs-hero { aspect-ratio: 2 / 1; }
	.nvs-app .nvs-slide--auto { --cover-w: 28cqw; }
	.nvs-app .nvs-card--row .nvs-card__art { flex-basis: 112px; }
}
@media (max-width: 720px) {
	.nvs-app .nvs-wrap { padding-inline: 16px; }
	.nvs-app .nvs-main { padding-block: 20px 56px; }
	.nvs-app .nvs-header__row { gap: 12px; min-height: 58px; }
	.nvs-app .nvs-header__link { display: none; }
	.nvs-app .nvs-subnav__row { flex-wrap: wrap; gap: 4px 16px; padding-block: 10px; }
	.nvs-app .nvs-subnav .nvs-search { flex: 1 0 100%; order: 3; margin-left: 0; }
	.nvs-app .nvs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.nvs-app .nvs-card__body { padding: 10px 12px 14px; }
	.nvs-app .nvs-card__title { font-size: 16px; }
	.nvs-app .nvs-hero { aspect-ratio: 4 / 3; border-radius: 14px; }
	.nvs-app .nvs-hero__arrow { display: none; }
	.nvs-app .nvs-slide__body { gap: 12px; padding: 16px 16px 30px; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .72)); }
	.nvs-app .nvs-slide--auto { --cover-left: 16px; --cover-w: 38cqw; }
	.nvs-app .nvs-slide__cover { top: 7%; bottom: 14%; }
	.nvs-app .nvs-slide--auto .nvs-slide__body { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-left: calc(var(--cover-left) + var(--cover-w) + 16px); }
	.nvs-app .nvs-slide h2 { font-size: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.nvs-app .nvs-slide p { font-size: 14px; }
	.nvs-app .nvs-slide__read { min-height: 40px; padding: 0 8px 0 12px; font-size: 15px; }
	.nvs-app .nvs-hero__dots { left: 16px; right: 16px; bottom: 4px; gap: 4px; }
	.nvs-app .nvs-top { display: flex; gap: 12px; margin-inline: -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
	.nvs-app .nvs-top::-webkit-scrollbar { display: none; }
	.nvs-app .nvs-card--top { flex: 0 0 62%; scroll-snap-align: start; }
	.nvs-app .nvs-rows { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; margin-top: 8px; }
	.nvs-app .nvs-card--row .nvs-card__art { flex-basis: 112px; }
	.nvs-app .nvs-section { margin-top: 32px; }
	.nvs-app .nvs-continue { grid-template-columns: minmax(0, 1fr); }
	.nvs-app .nvs-detail { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
	.nvs-app .nvs-toc { padding: 14px; }
	.nvs-app .nvs-detail__text, .nvs-app .nvs-detail .nvs-button { grid-column: 1 / -1; }
	.nvs-app .nvs-detail__body { display: contents; }
	.nvs-app .nvs-detail__body > h1, .nvs-app .nvs-detail__body > .nvs-detail__meta, .nvs-app .nvs-detail__body > .nvs-chips { grid-column: 2; }
	.nvs-app .nvs-detail__cover { grid-row: 1 / span 3; }
	.nvs-app .nvs-detail h1 { font-size: 24px; }
	.nvs-app .nvs-detail__text { margin: 4px 0 0; }
	.nvs-app .nvs-detail .nvs-button { justify-content: center; }
	.nvs-app .nvs-chips--small { margin-top: 0; }
	.nvs-app .rd-page { padding: 32px 20px 56px; }
}
@media (prefers-reduced-motion: reduce) {
	body.nvs-reader, .nvs-app .rd-top, .nvs-app .nvs-card, .nvs-app .nvs-hero__track { transition: none; }
	.nvs-app .nvs-hero__dots .is-active i, .nvs-app .nvs-hero__dots .is-active i::before { animation: none; }
	.nvs-app .nvs-hero__dots .is-active i::before { transform: none; }
}
