/*
Theme Name: Europheus Terminal Notebook
Theme URI: https://www.europheus.com/
Description: Plain, fast notebook theme for europheus.com. Light and dark modes, dark code blocks with copy buttons (Prism), reading progress on posts, and a right rail that drops below the posts on phones.
Author: Europheus
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: europheus
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #f6f6f2;
	--surface: #ffffff;
	--ink: #16181b;
	--ink2: #33363b;
	--text: #26292e;
	--muted: #5d6168;
	--line: #dcdcd4;
	--line2: #c4c4ba;
	--accent: #146c43;
	--accent-hover: #0b4a2d;
	--accent-soft: #e4f2ea;
	--inline-code: #ebebe4;
	--code-bg: #16181b;
	--code-ink: #d8dde3;
	--code-line: #2c3036;
	--code-muted: #9aa3ad;
	--shadow: 0 10px 30px rgba(22, 24, 27, 0.12);
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 10px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #111315;
		--surface: #181b1f;
		--ink: #eceef0;
		--ink2: #c9cdd2;
		--text: #d6dade;
		--muted: #99a0a8;
		--line: #2a2e33;
		--line2: #3a3f46;
		--accent: #5cc48d;
		--accent-hover: #86d9ab;
		--accent-soft: #163626;
		--inline-code: #23272c;
		--code-bg: #0b0c0e;
		--code-line: #262a30;
		--shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #111315;
	--surface: #181b1f;
	--ink: #eceef0;
	--ink2: #c9cdd2;
	--text: #d6dade;
	--muted: #99a0a8;
	--line: #2a2e33;
	--line2: #3a3f46;
	--accent: #5cc48d;
	--accent-hover: #86d9ab;
	--accent-soft: #163626;
	--inline-code: #23272c;
	--code-bg: #0b0c0e;
	--code-line: #262a30;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; }

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

.tn-skip {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--bg);
	border-radius: 6px;
	font-family: var(--mono);
}
.tn-skip:focus { top: 12px; color: var(--bg); }

.tn-accent { color: var(--accent); }

.tn-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 32px;
}

.tn-label {
	margin: 0;
	font-family: var(--mono);
	font-weight: 500;
	font-size: 14px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.tn-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
}
.tn-meta a { color: var(--muted); }
.tn-meta a:hover { color: var(--accent); }

.tn-tags { font-family: var(--mono); font-size: 13px; }
.tn-tags a, .tn-meta .tn-tags a { color: var(--accent); text-decoration: none; margin-right: 6px; }
.tn-tags a:last-child { margin-right: 0; }
.tn-tags a:hover { text-decoration: underline; }

.tn-badge {
	color: var(--accent);
	background: var(--accent-soft);
	padding: 3px 8px;
	border-radius: 4px;
}

.tn-mono-link {
	font-family: var(--mono);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	display: inline-block;
	padding: 6px 0;
}
.tn-mono-link:hover { text-decoration: underline; }

.tn-button {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--bg);
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.tn-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------- Header ---------- */
.tn-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.admin-bar .tn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tn-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tn-header { top: 0; } }

.tn-header__in {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.tn-brand {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
	text-decoration: none;
	color: var(--ink);
}
.tn-brand:hover { color: var(--ink); }
.tn-brand__name { font-family: var(--mono); font-weight: 600; font-size: 22px; white-space: nowrap; }
.tn-brand__tag { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tn-header__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.tn-nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tn-nav__list a {
	display: block;
	padding: 12px 10px;
	font-family: var(--mono);
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 6px;
}
.tn-nav__list a:hover { background: var(--accent-soft); color: var(--accent); }
.tn-nav__list .current-menu-item > a,
.tn-nav__list a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

.tn-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
}
.tn-icon:hover { border-color: var(--line2); color: var(--accent); }

/* The toggle needs JS; hide it until the head script marks JS as running. */
.tn-theme-toggle { display: none; }
.tn-js .tn-theme-toggle { display: flex; }
.tn-icon-sun { display: none; }
:root[data-theme="dark"] .tn-icon-sun { display: block; }
:root[data-theme="dark"] .tn-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tn-icon-sun { display: block; }
	:root:not([data-theme="light"]) .tn-icon-moon { display: none; }
}

/* Search and phone menu are <details> popovers, so they work without JS. */
.tn-pop { position: relative; }
.tn-pop > summary { list-style: none; }
.tn-pop > summary::-webkit-details-marker { display: none; }
.tn-pop[open] > summary { border-color: var(--accent); color: var(--accent); }
.tn-pop__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: 380px;
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.tn-pop--menu { display: none; }

.tn-menu__list { margin: 0; padding: 0; list-style: none; }
.tn-menu__list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 12px;
	font-family: var(--mono);
	font-size: 16px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 6px;
}
.tn-menu__list a:hover, .tn-menu__list .current-menu-item > a, .tn-menu__list a[aria-current] { background: var(--accent-soft); color: var(--accent); }

.tn-progress { height: 3px; background: transparent; }
.tn-progress span { display: block; height: 3px; width: 0; background: var(--accent); }

/* ---------- Search form ---------- */
.tn-search { display: flex; align-items: center; gap: 8px; }
.tn-search__prompt { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.tn-search__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line2);
	background: var(--bg);
	color: var(--ink);
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 16px;
}
.tn-search__input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* ---------- Layout ---------- */
.tn-main {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
	padding-top: 48px;
	padding-bottom: 64px;
}
.tn-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.tn-rail { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* ---------- Featured card ---------- */
.tn-feature {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.tn-feature__head { padding: 28px 32px 24px; display: flex; flex-direction: column; gap: 14px; }
.tn-feature__title { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.tn-feature__title a { color: var(--ink); text-decoration: none; }
.tn-feature__title a:hover { color: var(--accent); }
.tn-feature__excerpt { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink2); }
.tn-feature__code {
	margin: 0;
	background: var(--code-bg);
	color: var(--code-ink);
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.7;
	padding: 18px 32px 20px;
	white-space: pre;
	overflow-x: auto;
}
.tn-feature__foot { padding: 10px 32px; border-top: 1px solid var(--line); }

/* ---------- Lists ---------- */
.tn-list { display: flex; flex-direction: column; }
.tn-list > .tn-label { margin-bottom: 8px; }

.tn-row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 24px;
	padding: 22px 0;
	border-top: 1px solid var(--line);
}
.tn-row__date { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
.tn-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tn-row__title { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
.tn-row__title a { color: var(--ink); text-decoration: none; }
.tn-row__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tn-row__excerpt { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tn-row .tn-tags { margin: 0; }

.tn-page-head { display: flex; flex-direction: column; gap: 10px; }
.tn-page-head__title { margin: 0; font-family: var(--mono); font-size: 32px; font-weight: 600; line-height: 1.2; word-break: break-word; }
.tn-page-head__desc { color: var(--ink2); }
.tn-page-head__desc p { margin: 0; }
.tn-page-head .tn-search { margin-top: 8px; max-width: 520px; }

.tn-none { display: flex; flex-direction: column; gap: 24px; }
.tn-none__msg {
	margin: 0;
	padding: 14px 16px;
	background: var(--code-bg);
	color: var(--code-ink);
	border-radius: 8px;
	font-family: var(--mono);
	font-size: 14px;
	white-space: pre-wrap;
}
.tn-none__msg::before { content: "$ "; color: #7fd1a3; }
.tn-none > .tn-search { max-width: 520px; }

/* Pagination */
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
}
.navigation.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.navigation.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.navigation.pagination .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ---------- Rail ---------- */
.tn-rail__block { display: flex; flex-direction: column; gap: 10px; }
.tn-rail__bio { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.tn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tn-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	font-family: var(--mono);
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 6px;
}
.tn-chip:hover, .tn-chip.is-current { border-color: var(--accent); color: var(--accent); }
.tn-chip__n { color: var(--muted); font-size: 12px; }
.tn-years { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.tn-years a { display: inline-block; padding: 8px 0; font-family: var(--mono); font-size: 15px; text-decoration: none; }
.tn-years a:hover, .tn-years a[aria-current] { text-decoration: underline; }
.tn-rail .widget ul { margin: 0; padding-left: 18px; }

/* ---------- Single post ---------- */
.tn-post__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.tn-post__title { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.tn-post__image { margin: 0 0 28px; }
.tn-post__image img { display: block; width: 100%; border-radius: var(--radius); }
.tn-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.tn-post__tags .tn-label { font-size: 12px; margin-right: 4px; }

.tn-entry { font-size: 18px; line-height: 1.7; color: var(--text); }
.tn-entry > :first-child { margin-top: 0; }
.tn-entry p, .tn-entry ul, .tn-entry ol, .tn-entry blockquote, .tn-entry table, .tn-entry figure { margin: 0 0 1.15em; }
.tn-entry h2 { font-size: 26px; margin: 1.6em 0 0.5em; }
.tn-entry h3 { font-size: 21px; margin: 1.5em 0 0.5em; }
.tn-entry h4, .tn-entry h5, .tn-entry h6 { font-size: 18px; margin: 1.4em 0 0.4em; }
.tn-entry a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tn-entry b, .tn-entry strong { color: var(--ink); font-weight: 600; }
.tn-entry ul, .tn-entry ol { padding-left: 1.4em; }
.tn-entry li + li { margin-top: 0.35em; }
.tn-entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.tn-entry img { border-radius: 6px; }
.tn-entry center { display: block; text-align: left; }

.tn-entry blockquote,
.tn-entry .callout {
	display: block;
	padding: 14px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: 8px;
	color: var(--ink2);
	font-size: 16px;
}
.tn-entry blockquote > :last-child, .tn-entry .callout > :last-child { margin-bottom: 0; }

.tn-entry :not(pre) > code, .tn-entry kbd, .tn-feature__excerpt code, .tn-row__excerpt code {
	font-family: var(--mono);
	font-size: 0.88em;
	background: var(--inline-code);
	padding: 0.1em 0.35em;
	border-radius: 4px;
	color: var(--ink);
}

.tn-entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.tn-entry th, .tn-entry td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tn-entry th { background: var(--surface); font-weight: 600; }

/* WordPress alignment and captions */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1em; } }

/* Code blocks: pre on its own gets the dark look; JS wraps it with a label bar and a copy button. */
.tn-entry pre {
	margin: 1.5em 0;
	padding: 14px 16px;
	background: var(--code-bg);
	color: var(--code-ink);
	border: 1px solid var(--code-line);
	border-radius: 8px;
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.7;
	white-space: pre;
	overflow-x: auto;
	tab-size: 4;
}
.tn-code {
	margin: 1.5em 0;
	background: var(--code-bg);
	border: 1px solid var(--code-line);
	border-radius: 8px;
	overflow: hidden;
}
.tn-code > pre, .tn-entry .tn-code > pre { margin: 0; border: 0; border-radius: 0; }
.tn-code__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 40px;
	padding: 0 4px 0 14px;
	border-bottom: 1px solid var(--code-line);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--code-muted);
}
.tn-code__copy {
	height: 40px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: transparent;
	color: var(--code-ink);
	font-family: var(--mono);
	font-size: 13px;
	cursor: pointer;
	border-radius: 6px;
}
.tn-code__copy:hover { color: #7fd1a3; }
.tn-code__copy:focus-visible { outline-color: #7fd1a3; outline-offset: -2px; }

/* Previous / next */
.tn-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-postnav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--ink);
}
.tn-postnav__link:hover { border-color: var(--accent); color: var(--ink); }
.tn-postnav__link--next { grid-column: 2; text-align: right; }
.tn-postnav__dir { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tn-postnav__title { font-weight: 600; font-size: 16px; line-height: 1.35; }

/* ---------- Comments ---------- */
.tn-comments { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.tn-comments__list, .tn-comments__list .children { list-style: none; margin: 0; padding: 0; }
.tn-comments__list .children { margin-left: 24px; padding-left: 16px; border-left: 2px solid var(--line); }
.tn-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tn-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tn-comments .comment-author .avatar { border-radius: 50%; }
.tn-comments .comment-author .says { display: none; }
.tn-comments .comment-metadata { font-family: var(--mono); font-size: 12px; margin-top: 2px; }
.tn-comments .comment-metadata a { color: var(--muted); text-decoration: none; }
.tn-comments .comment-content { color: var(--text); }
.tn-comments .reply a { font-family: var(--mono); font-size: 13px; }
.comment-respond { display: flex; flex-direction: column; gap: 12px; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--line2);
	background: var(--surface);
	color: var(--ink);
	border-radius: 6px;
	font: inherit;
	font-size: 16px;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-family: var(--sans); font-size: 14px; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.tn-footer { border-top: 1px solid var(--line); }
.tn-footer__in {
	padding-top: 28px;
	padding-bottom: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
}
.tn-footer__list { display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tn-footer__list a { display: inline-block; padding: 10px 0; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
	.tn-nav, .tn-brand__tag { display: none; }
	.tn-pop--menu { display: block; }
}

@media (max-width: 760px) {
	html { scroll-padding-top: 72px; }
	.tn-wrap { padding: 0 16px; }
	.tn-header__in { height: 60px; gap: 12px; }
	.tn-brand__name { font-size: 19px; }
	.tn-header__tools { gap: 4px; }
	.tn-icon { border-color: transparent; background: transparent; }
	.tn-pop__panel { position: fixed; left: 16px; right: 16px; top: 68px; width: auto; }
	.admin-bar .tn-pop__panel { top: 114px; }

	.tn-main { gap: 40px; padding-top: 24px; padding-bottom: 40px; }
	.tn-content { gap: 32px; }

	.tn-feature__head { padding: 20px 18px 18px; }
	.tn-feature__title { font-size: 28px; }
	.tn-feature__excerpt { font-size: 17px; }
	.tn-feature__code { padding: 14px 18px; font-size: 13px; }
	.tn-feature__foot { padding: 6px 18px; }

	.tn-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
	.tn-row__date { padding-top: 0; font-size: 13px; }
	.tn-row__title { font-size: 19px; }

	.tn-post__title { font-size: 31px; line-height: 1.18; }
	.tn-page-head__title { font-size: 26px; }
	.tn-entry { font-size: 17px; }
	.tn-entry h2 { font-size: 22px; }
	.tn-entry h3 { font-size: 19px; }
	.tn-entry pre { font-size: 13.5px; padding: 14px; }
	.tn-entry > pre, .tn-entry > center > pre, .tn-code { margin-left: -4px; margin-right: -4px; }

	.tn-postnav { grid-template-columns: minmax(0, 1fr); }
	.tn-postnav__link--next { grid-column: auto; text-align: left; }
}

/* ---------- Print ---------- */
@media print {
	.tn-header, .tn-rail, .tn-footer, .tn-postnav, .tn-comments, .tn-code__bar, .tn-skip { display: none !important; }
	body { background: #fff; color: #000; }
	.tn-main { display: block; padding: 0; }
	.tn-entry pre, .tn-code { background: #f4f4f4 !important; color: #000 !important; border-color: #ccc !important; white-space: pre-wrap; }
	.tn-entry pre * { color: #000 !important; }
}

@media (prefers-reduced-motion: no-preference) {
	.tn-progress span { transition: width 80ms linear; }
}
