/*
Theme Name: Chill Nevo Việt
Theme URI: https://example.com/chill-nevo-vi
Description: Theme con Nevo tiếng Việt, tối ưu cho blog cá nhân và truyện nhiều chương.
Author: Chill Reads
Template: nevo
Version: 1.0.0
Requires at least: 5.2
Requires PHP: 7.4
Text Domain: chill-nevo-vi
License: GNU General Public License v2 or later
*/

:root {
	--chill-bg: oklch(0.98 0.003 250);
	--chill-surface: oklch(0.955 0.006 250);
	--chill-surface-strong: oklch(0.92 0.01 250);
	--chill-ink: oklch(0.22 0.03 250);
	--chill-muted: oklch(0.46 0.024 250);
	--chill-faint: oklch(0.58 0.018 250);
	--chill-border: oklch(0.84 0.014 250);
	--chill-teal: oklch(0.43 0.085 180);
	--chill-teal-soft: oklch(0.945 0.02 180);
	--chill-ochre: oklch(0.68 0.14 75);
	--chill-white: oklch(1 0 0);
	--chill-shadow: 0 4px 8px oklch(0.22 0.03 250 / 0.1);
	--chill-radius-sm: 4px;
	--chill-radius-md: 7px;
	--chill-radius-lg: 10px;
	--chill-content: 1220px;
	--chill-library-content: 980px;
	--chill-reader-content: 1360px;
	--chill-reading: 70ch;
	--chill-space-xs: 8px;
	--chill-space-sm: 16px;
	--chill-space-md: 24px;
	--chill-space-lg: 40px;
	--chill-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--chill-font-display: "Barlow", "Arial Narrow", sans-serif;
	--chill-header-height: 72px;
	--chill-z-header: 20;
	--chill-z-progress: 30;
	--chill-z-drawer: 80;
	--chill-z-scrim: 70;
}

html {
	background: var(--chill-bg);
	color-scheme: light;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--chill-bg);
	color: var(--chill-ink);
	font-family: var(--chill-font-ui);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.single-post {
	--chill-content: var(--chill-reader-content);
}

body.home,
body.blog,
body.archive {
	--chill-content: var(--chill-library-content);
}

[hidden] {
	display: none !important;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--chill-teal);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--chill-ink);
}

button,
input {
	font: inherit;
}

button {
	touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--chill-ochre);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	background: var(--chill-ink);
	color: var(--chill-white);
	z-index: 100;
}

.chill-shell {
	width: min(calc(100% - 40px), var(--chill-content));
	margin-inline: auto;
}

.chill-header {
	position: sticky;
	top: 0;
	z-index: var(--chill-z-header);
	background: oklch(1 0 0 / 0.96);
	border-bottom: 1px solid var(--chill-border);
	backdrop-filter: blur(10px);
}

.chill-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--chill-header-height);
}

.chill-header__identity {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	min-width: 0;
	gap: 10px;
}

.chill-brand {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: var(--chill-ink);
	font-family: var(--chill-font-display);
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 1;
	text-decoration: none;
}

.chill-header .chill-brand__name {
	max-width: min(44vw, 360px);
	overflow: hidden;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chill-brand__logo {
	display: block;
	width: auto;
	max-width: min(44vw, 220px);
	height: auto;
	max-height: 38px;
	object-fit: contain;
}

.chill-brand:hover {
	color: var(--chill-teal);
}

.chill-header__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.chill-icon-button,
.chill-menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--chill-radius-sm);
	background: transparent;
	color: var(--chill-ink);
	cursor: pointer;
}

.chill-icon-button:hover,
.chill-menu-toggle:hover {
	border-color: var(--chill-border);
	background: var(--chill-surface);
	color: var(--chill-teal);
}

.chill-icon {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.chill-menu-toggle {
	display: none;
}

.chill-search {
	position: relative;
}

.chill-search__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	display: flex;
	gap: 8px;
	width: min(360px, calc(100vw - 32px));
	padding: 10px;
	border: 1px solid var(--chill-border);
	border-radius: var(--chill-radius-md);
	background: var(--chill-white);
	box-shadow: var(--chill-shadow);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-5px);
	transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.chill-search.is-open .chill-search__panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.chill-search__panel input {
	min-width: 0;
	flex: 1;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--chill-border);
	border-radius: var(--chill-radius-sm);
	background: var(--chill-bg);
	color: var(--chill-ink);
}

.chill-search__panel button,
.chill-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 16px;
	border: 0;
	border-radius: var(--chill-radius-sm);
	background: var(--chill-teal);
	color: var(--chill-white);
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.chill-search__panel button:hover,
.chill-button:hover {
	background: var(--chill-ink);
	color: var(--chill-white);
}

.chill-drawer__scrim {
	position: fixed;
	inset: 0;
	z-index: var(--chill-z-scrim);
	background: oklch(0.18 0.03 250 / 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease-out;
}

.chill-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: var(--chill-z-drawer);
	display: flex;
	flex-direction: column;
	width: min(340px, 88vw);
	padding: 28px 24px;
	background: var(--chill-ink);
	color: var(--chill-white);
	overscroll-behavior: contain;
	transform: translateX(-100%);
	transition: transform 200ms ease-out;
}

.chill-drawer.is-open {
	transform: translateX(0);
}

.chill-drawer.is-open + .chill-drawer__scrim {
	opacity: 1;
	pointer-events: auto;
}

.chill-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 24px;
	border-bottom: 1px solid oklch(1 0 0 / 0.2);
}

.chill-drawer__top .chill-brand {
	color: var(--chill-white);
}

.chill-drawer__top .chill-brand__name {
	max-width: 220px;
	line-height: 1.15;
	text-transform: uppercase;
}

.chill-drawer__top .chill-brand__logo {
	max-width: 220px;
	max-height: 44px;
}

.chill-drawer__close {
	color: var(--chill-white);
}

.chill-drawer__nav {
	flex: 1;
	min-height: 0;
	margin-top: 22px;
	overflow-y: auto;
}

.chill-drawer__menu,
.chill-drawer__menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.chill-drawer__menu {
	display: grid;
	gap: 5px;
}

.chill-drawer__menu .sub-menu {
	padding-left: 18px;
}

.chill-drawer__nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 0;
	border-bottom: 1px solid oklch(1 0 0 / 0.12);
	color: var(--chill-white);
	font-family: var(--chill-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
}

.chill-drawer__nav a:hover {
	color: var(--chill-ochre);
}

.chill-drawer__nav .current-menu-item > a,
.chill-drawer__nav .current-menu-ancestor > a {
	color: var(--chill-ochre);
}

.chill-drawer__menu .sub-menu a {
	min-height: 42px;
	font-size: 1rem;
	font-weight: 600;
}

.chill-drawer__note {
	margin: 24px 0 0;
	color: oklch(1 0 0 / 0.68);
	font-size: 0.9rem;
}

.chill-page,
.chill-reader-page {
	padding-block: clamp(28px, 4vw, 56px) 72px;
}

.chill-library-header h1,
.chill-section-title,
.chill-story-header h1,
.chill-reader-copy h2,
.chill-not-found h1 {
	margin: 0;
	font-family: var(--chill-font-display);
	font-weight: 700;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.chill-library {
	max-width: var(--chill-library-content);
}

.chill-library-header {
	max-width: 700px;
	margin-bottom: clamp(24px, 4vw, 36px);
}

.chill-library-header h1 {
	font-size: clamp(2.6rem, 5.5vw, 4.2rem);
	line-height: 1;
}

.chill-library-header p {
	max-width: 58ch;
	margin: 12px 0 0;
	color: var(--chill-muted);
	font-size: 1.02rem;
	line-height: 1.55;
}

.chill-continue {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	padding: 14px 0;
	border-block: 1px solid var(--chill-border);
}

.chill-continue > div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.chill-continue__label {
	color: var(--chill-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.chill-continue strong {
	overflow: hidden;
	font-family: var(--chill-font-display);
	font-size: 1rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chill-continue a {
	flex: 0 0 auto;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 6px 0;
	color: var(--chill-teal);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.chill-continue a:hover {
	color: var(--chill-ink);
}

.chill-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.chill-section-heading p {
	max-width: 40ch;
	margin: 0;
	color: var(--chill-muted);
	font-size: 0.95rem;
	text-align: right;
}

.chill-section-title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1;
}

.chill-story-feed {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--chill-border);
	list-style: none;
}

.chill-story-feed__item {
	border-bottom: 1px solid var(--chill-border);
}

.chill-story-feed__item:nth-child(n+6) {
	content-visibility: auto;
	contain-intrinsic-size: 168px;
}

.chill-story-row > a {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	min-width: 0;
	padding: 20px 0;
	color: var(--chill-ink);
	text-decoration: none;
}

.chill-story-row > a:hover {
	color: var(--chill-ink);
}

.chill-story-row--no-image > a {
	grid-template-columns: 1fr;
}

.chill-story-row__image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 3px;
	background: var(--chill-surface-strong);
}

.chill-story-row__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chill-story-row__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.chill-story-row__body h2 {
	display: -webkit-box;
	overflow: hidden;
	margin: 7px 0 0;
	font-family: var(--chill-font-display);
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.008em;
	line-height: 1.1;
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.chill-story-row__meta {
	color: var(--chill-muted);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
}

.chill-story-row__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 10px;
	color: var(--chill-muted);
	font-size: 0.94rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.chill-story-row__cue {
	margin-top: auto;
	padding-top: 12px;
	color: var(--chill-teal);
	font-size: 0.88rem;
	font-weight: 700;
}

.chill-story-row > a:hover h2 {
	color: var(--chill-teal);
}

.chill-feed-ad {
	padding: 30px 0;
	border-bottom: 1px solid var(--chill-border);
}

.chill-feed-ad .chill-ad {
	margin: 0;
}

.navigation.pagination {
	margin-top: 30px;
}

.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: var(--chill-radius-sm);
	color: var(--chill-ink);
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--chill-teal-soft);
	color: var(--chill-ink);
}

.chill-ad {
	margin: 32px 0;
}

.chill-ad ins {
	display: block;
	width: 100%;
}

.chill-ad--live {
	min-height: 190px;
}

.chill-reader-page {
	--reader-bg: var(--chill-white);
	--reader-ink: var(--chill-ink);
	--reader-muted: var(--chill-muted);
	--reader-border: var(--chill-border);
	--reader-size: 20px;
	--reader-font: "Atkinson Hyperlegible", Arial, sans-serif;
}

.chill-reader-page[data-reader-font="book"] {
	--reader-font: Charter, "Bitstream Charter", "Sitka Text", Georgia, serif;
}

.chill-reader-page[data-reader-font="system"] {
	--reader-font: var(--chill-font-ui);
}

.chill-reader-page[data-reader-theme="paper"] {
	--reader-bg: oklch(0.965 0.025 85);
	--reader-ink: oklch(0.31 0.045 75);
	--reader-muted: oklch(0.49 0.045 75);
	--reader-border: oklch(0.86 0.035 85);
}

.chill-reader-page[data-reader-theme="night"] {
	--reader-bg: oklch(0.17 0.025 250);
	--reader-ink: oklch(0.93 0.018 250);
	--reader-muted: oklch(0.77 0.025 250);
	--reader-border: oklch(0.31 0.035 250);
}

.chill-reading-progress {
	position: fixed;
	top: calc(var(--chill-header-height) - 3px);
	right: 0;
	left: 0;
	z-index: var(--chill-z-progress);
	height: 3px;
	pointer-events: none;
}

.chill-reading-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--chill-teal);
	transform: scaleX(0);
	transform-origin: left center;
}

.chill-reader-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 264px;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
	width: min(calc(100% - 40px), var(--chill-reader-content));
}

.chill-reader-main {
	min-width: 0;
}

.chill-story-header {
	max-width: none;
	margin-bottom: var(--chill-space-sm);
}

.chill-story-header__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: var(--chill-space-sm);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.chill-story-header h1 {
	max-width: none;
	font-size: clamp(2.4rem, 3.65vw, 3.5rem);
	line-height: 1.05;
	text-wrap: wrap;
}

.chill-story-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 12px;
	color: var(--chill-muted);
	font-size: 0.95rem;
}

.chill-story-header__meta strong {
	color: var(--chill-ink);
	font-weight: 700;
}

.chill-chapter-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: var(--chill-space-md) 0 0;
	padding-block: 12px;
	border-top: 1px solid var(--chill-border);
	border-bottom: 1px solid var(--chill-border);
}

.chill-chapter-heading h2 {
	margin: 0;
	font-family: var(--chill-font-display);
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
}

.chill-chapter-heading__count {
	color: var(--chill-muted);
	font-size: 0.88rem;
	white-space: nowrap;
}

.chill-reader-settings {
	margin-bottom: var(--chill-space-sm);
	border-bottom: 1px solid var(--chill-border);
}

.chill-reader-settings > summary {
	display: flex;
	align-items: center;
	gap: var(--chill-space-sm);
	min-height: 52px;
	padding: 4px 0;
	color: var(--chill-ink);
	font-family: var(--chill-font-display);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.chill-reader-settings > summary::-webkit-details-marker {
	display: none;
}

.chill-reader-settings__action,
.chill-mobile-toc__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 34px;
	padding: 0 9px;
	border: 1px solid var(--chill-border);
	border-radius: 4px;
	color: var(--chill-teal);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: border-color 160ms ease-out, color 160ms ease-out;
}

.chill-reader-settings > summary:hover .chill-reader-settings__action,
.chill-mobile-toc summary:hover .chill-mobile-toc__action {
	border-color: var(--chill-teal);
}

.chill-reader-settings__action-open,
.chill-mobile-toc__action-open {
	display: none;
}

.chill-reader-settings__chevron,
.chill-mobile-toc__chevron {
	transition: transform 160ms ease-out;
}

.chill-reader-settings[open] .chill-reader-settings__action-closed {
	display: none;
}

.chill-reader-settings[open] .chill-reader-settings__action-open {
	display: inline;
}

.chill-reader-settings[open] .chill-reader-settings__chevron {
	transform: rotate(180deg);
}

.chill-mobile-toc__action {
	min-width: 122px;
}

.chill-mobile-toc .chill-toc[open] .chill-mobile-toc__action-closed {
	display: none;
}

.chill-mobile-toc .chill-toc[open] .chill-mobile-toc__action-open {
	display: inline;
}

.chill-mobile-toc .chill-toc[open] .chill-mobile-toc__chevron {
	transform: rotate(180deg);
}

.chill-reader-settings__current {
	margin-left: auto;
	color: var(--chill-muted);
	font-family: "Atkinson Hyperlegible", sans-serif;
	font-size: 0.8rem;
	font-weight: 400;
	white-space: nowrap;
}

.chill-reader-controls {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--chill-space-sm);
	margin: 0;
	padding: var(--chill-space-xs) 0 var(--chill-space-sm);
	border-top: 1px solid var(--chill-border);
}

.chill-control-group {
	display: grid;
	align-content: start;
	gap: var(--chill-space-xs);
	min-width: 0;
}

.chill-control-group__label {
	color: var(--chill-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.chill-control-options {
	display: flex;
	align-items: center;
	min-width: 0;
	width: fit-content;
	overflow: hidden;
	border: 1px solid var(--chill-border);
	border-radius: var(--chill-radius-sm);
	background: var(--chill-white);
}

.chill-control-button {
	min-width: 42px;
	height: 44px;
	padding: 6px 10px;
	border: 0;
	border-left: 1px solid var(--chill-border);
	border-radius: 0;
	background: transparent;
	color: var(--chill-ink);
	font-weight: 700;
	cursor: pointer;
}

.chill-control-button:first-child {
	border-left: 0;
}

.chill-control-button:focus-visible {
	position: relative;
	z-index: 1;
	outline-width: 2px;
	outline-offset: -3px;
}

.chill-control-button[data-reader-font="readable"] {
	font-family: "Atkinson Hyperlegible", Arial, sans-serif;
}

.chill-control-button[data-reader-font="book"] {
	font-family: Charter, "Bitstream Charter", "Sitka Text", Georgia, serif;
}

.chill-control-button[data-reader-font="system"] {
	font-family: var(--chill-font-ui);
}

.chill-control-button:hover,
.chill-control-button[aria-pressed="true"] {
	background: var(--chill-surface);
	color: var(--chill-ink);
}

.chill-control-button[aria-pressed="true"] {
	box-shadow: inset 0 -3px 0 var(--chill-teal);
}

.chill-control-button[data-reader-theme="paper"] {
	background: oklch(0.965 0.025 85);
	color: oklch(0.31 0.045 75);
}

.chill-control-button[data-reader-theme="night"] {
	background: oklch(0.17 0.025 250);
	color: oklch(0.93 0.018 250);
}

.chill-reader-size {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 44px;
	border-left: 1px solid var(--chill-border);
	color: var(--chill-ink);
	font-size: 0.92rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.chill-reader-surface {
	border: 1px solid var(--reader-border);
	border-radius: 0;
	background: var(--reader-bg);
	color: var(--reader-ink);
}

.chill-reader-copy {
	max-width: var(--chill-reading);
	margin-inline: auto;
	padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 68px);
	font-family: var(--reader-font);
	font-size: var(--reader-size);
	line-height: 1.72;
	text-wrap: pretty;
}

.chill-reader-copy h2 {
	margin: 0 0 24px;
	color: var(--reader-ink);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	line-height: 1.08;
	scroll-margin-top: 98px;
}

.chill-reader-copy p {
	max-width: 66ch;
	margin: 0 0 1.18em;
	-webkit-hyphens: manual;
	hyphens: manual;
	text-align: left;
	text-align-last: auto;
}

.chill-reader-page[data-reader-align="justify"] .chill-reader-copy p {
	-webkit-hyphens: auto;
	hyphens: auto;
	text-align: justify;
	text-align-last: left;
	text-justify: inter-word;
}

.chill-reader-page[data-reader-align="center"] .chill-reader-copy p {
	-webkit-hyphens: manual;
	hyphens: manual;
	text-align: center;
	text-align-last: auto;
}

.chill-reader-copy p:last-child {
	margin-bottom: 0;
}

.chill-reader-copy strong {
	font-weight: 700;
}

.chill-reader-copy em {
	font-style: italic;
}

.chill-reader-copy > .chill-ad {
	margin: 2.35em 0;
}

.chill-mobile-toc {
	display: none;
}

.chill-mobile-toc .chill-toc summary::after {
	display: none;
}

.chill-reader-aside {
	position: sticky;
	top: 96px;
}

.chill-toc {
	border-block: 1px solid var(--chill-border);
	background: transparent;
}

.chill-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: var(--chill-space-xs) 0;
	color: var(--chill-ink);
	font-family: var(--chill-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.chill-toc summary::-webkit-details-marker {
	display: none;
}

.chill-toc summary::after {
	content: "+";
	color: var(--chill-teal);
	font-size: 1.4rem;
	font-weight: 400;
}

.chill-toc[open] summary::after {
	content: "−";
}

.chill-toc__sub {
	display: block;
	margin-top: 3px;
	color: var(--chill-muted);
	font-family: "Atkinson Hyperlegible", sans-serif;
	font-size: 0.78rem;
	font-weight: 400;
}

.chill-toc__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--chill-border);
	list-style: none;
}

.chill-toc__item + .chill-toc__item {
	border-top: 1px solid var(--chill-border);
}

.chill-toc__link {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 9px 0;
	color: var(--chill-muted);
	font-size: 0.95rem;
	text-decoration: none;
}

.chill-toc__link:hover,
.chill-toc__link[aria-current="page"] {
	color: var(--chill-teal);
}

.chill-toc__number {
	color: var(--chill-muted);
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	text-align: right;
}

.chill-toc__link[aria-current="page"] .chill-toc__number {
	color: var(--chill-teal);
}

.chill-chapter-nav {
	display: flex;
	justify-content: space-between;
	margin-top: var(--chill-space-md);
	border-block: 1px solid var(--chill-border);
}

.chill-chapter-nav__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	gap: var(--chill-space-xs);
	max-width: 50%;
	min-width: 0;
	min-height: 80px;
	padding: var(--chill-space-sm) var(--chill-space-md) var(--chill-space-sm) 0;
	color: var(--chill-ink);
	text-decoration: none;
}

.chill-chapter-nav__link--next {
	align-items: flex-end;
	margin-left: auto;
	padding-right: 0;
	padding-left: var(--chill-space-md);
	text-align: right;
}

.chill-chapter-nav__link + .chill-chapter-nav__link {
	border-left: 1px solid var(--chill-border);
}

.chill-chapter-nav__link:hover {
	color: var(--chill-teal);
}

.chill-chapter-nav__eyebrow {
	color: var(--chill-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.chill-chapter-nav__title {
	display: block;
	max-width: 100%;
	font-family: var(--chill-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.22;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.chill-next-stories {
	margin-top: var(--chill-space-lg);
	padding-top: var(--chill-space-md);
	border-top: 1px solid var(--chill-border);
}

.chill-next-stories__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--chill-space-sm);
}

.chill-next-stories__header h2 {
	margin: 0;
	font-family: var(--chill-font-display);
	font-size: clamp(1.65rem, 3vw, 2rem);
	line-height: 1.08;
	text-wrap: pretty;
}

.chill-next-stories__header p {
	margin: 0;
	color: var(--chill-muted);
	font-size: 0.88rem;
}

.chill-next-stories__list {
	margin: var(--chill-space-sm) 0 0;
	padding: 0;
	border-bottom: 1px solid var(--chill-border);
	list-style: none;
}

.chill-next-story + .chill-next-story {
	border-top: 1px solid var(--chill-border);
}

.chill-next-story > a {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	align-items: center;
	gap: var(--chill-space-sm);
	padding: var(--chill-space-sm) 0;
	color: var(--chill-ink);
	text-decoration: none;
}

.chill-next-story--no-image > a {
	grid-template-columns: 1fr;
}

.chill-next-story > a:hover .chill-next-story__title {
	color: var(--chill-teal);
}

.chill-next-story__image {
	width: 132px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 3px;
}

.chill-next-story__body,
.chill-next-story__title {
	display: block;
	min-width: 0;
}

.chill-next-story__meta {
	display: block;
	color: var(--chill-muted);
	font-size: 0.76rem;
}

.chill-next-story__title {
	margin-top: 4px;
	font-family: var(--chill-font-display);
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.14;
	text-wrap: pretty;
}

.chill-next-story__cue {
	display: block;
	margin-top: var(--chill-space-xs);
	color: var(--chill-teal);
	font-size: 0.8rem;
	font-weight: 700;
}

.chill-site-footer {
	padding: 34px 0;
	border-top: 1px solid var(--chill-border);
	background: var(--chill-white);
	color: var(--chill-muted);
	font-size: 0.9rem;
}

.chill-site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.chill-site-footer p {
	margin: 0;
}

.chill-not-found {
	max-width: 620px;
	min-height: 55vh;
	padding-block: 14vh;
}

.chill-not-found h1 {
	font-size: clamp(3rem, 7vw, 6rem);
	line-height: 0.92;
}

.chill-not-found p {
	max-width: 42ch;
	margin: 22px 0 28px;
	color: var(--chill-muted);
	font-size: 1.1rem;
}

@media (max-width: 1020px) {
	.chill-reader-layout {
		grid-template-columns: minmax(0, 1fr) 252px;
		gap: 34px;
	}
}

@media (max-width: 860px) {
	:root {
		--chill-header-height: 64px;
	}

	.chill-shell {
		width: min(calc(100% - 32px), var(--chill-content));
	}

	.chill-menu-toggle {
		display: inline-grid;
	}

	.chill-brand {
		font-size: 1.05rem;
	}

	.chill-reader-layout {
		display: block;
	}

	.chill-reader-aside {
		display: none;
	}

	.chill-chapter-heading {
		display: none;
	}

	.chill-mobile-toc {
		display: block;
		margin: var(--chill-space-md) 0 0;
	}
}

@media (max-width: 620px) {
	.chill-page,
	.chill-reader-page {
		padding-block: 22px 52px;
	}

	.chill-library-header h1 {
		font-size: clamp(2.45rem, 11vw, 3rem);
	}

	.chill-library-header p {
		font-size: 0.98rem;
	}

	.chill-continue {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	.chill-continue a {
		align-self: flex-start;
		text-align: left;
	}

	.chill-section-heading {
		display: block;
	}

	.chill-section-heading p {
		margin-top: 8px;
		text-align: left;
	}

	.chill-story-row > a {
		grid-template-columns: 108px minmax(0, 1fr);
		gap: 14px;
		padding: 14px 0;
	}

	.chill-story-row__body h2 {
		margin-top: 5px;
		font-size: 1.17rem;
		line-height: 1.08;
		-webkit-line-clamp: 3;
	}

	.chill-story-row__meta {
		font-size: 0.74rem;
	}

	.chill-story-row__excerpt,
	.chill-story-row__cue {
		display: none;
	}

	.chill-feed-ad {
		padding-block: 24px;
	}

	.chill-story-header h1 {
		font-size: clamp(2rem, 8.5vw, 2.25rem);
		line-height: 1.05;
	}

	.chill-reader-settings > summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		gap: 2px 12px;
		min-height: 62px;
	}

	.chill-reader-settings__label {
		grid-column: 1;
		grid-row: 1;
	}

	.chill-reader-settings__current {
		grid-column: 1;
		grid-row: 2;
		margin-left: 0;
	}

	.chill-reader-settings__action {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.chill-reader-controls {
		grid-template-columns: 1fr;
		gap: var(--chill-space-xs);
		padding: var(--chill-space-xs) 0 var(--chill-space-sm);
	}

	.chill-control-group {
		grid-template-columns: 64px minmax(0, 1fr);
		align-items: center;
		width: 100%;
	}

	.chill-control-options > * {
		flex: 1 1 0;
		min-width: 0;
	}

	.chill-control-options {
		width: 100%;
	}

	.chill-control-button,
	.chill-reader-size {
		height: 48px;
	}

	.chill-control-button[data-reader-font] {
		padding-inline: 5px;
		font-size: 0.84rem;
	}

	.chill-reader-copy {
		padding: 28px 24px 36px;
		font-size: var(--reader-size);
		line-height: 1.78;
	}

	.chill-reader-copy h2 {
		font-size: 1.65rem;
		line-height: 1.1;
	}

	.chill-reader-surface {
		margin-inline: -16px;
		border-inline: 0;
	}

	.chill-ad--live {
		min-height: 250px;
	}

	.chill-chapter-nav {
		flex-direction: column;
	}

	.chill-chapter-nav__link {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
		min-height: 0;
		padding: var(--chill-space-sm) 0;
	}

	.chill-chapter-nav__link--next {
		align-items: flex-start;
		margin-left: 0;
		padding-left: 0;
		text-align: left;
	}

	.chill-chapter-nav__link + .chill-chapter-nav__link {
		border-top: 1px solid var(--chill-border);
		border-left: 0;
	}

	.chill-next-stories__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.chill-next-story > a {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
	}

	.chill-next-story__image {
		width: 96px;
	}

	.chill-next-story__title {
		font-size: 1.04rem;
		line-height: 1.16;
	}

	.chill-next-story__cue {
		display: none;
	}

	.chill-site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
