/*
Theme Name: Гид по кровле
Theme URI: https://gidpokrovle.ru/
Description: Светлая тема-путеводитель для информационного блога о кровле. Снежный фон с топографическими изолиниями и координатной сеткой, глубокий индиго, коралловая пунктирная линия маршрута и пронумерованные остановки. Верхняя строка рубрик в виде маршрута, этапы «с чего начать» и главы-рубрики на главной, правая колонка с популярным и оглавлением, липкий «Маршрут по статье» во внутренних записях.
Author: Гид по кровле
Author URI: https://gidpokrovle.ru/
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpk
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ============================================================
   1. Tokens
   ============================================================ */

:root {
	/* Snow: page and surfaces */
	--snow: #f3f7fb;
	--snow-2: #e7eef5;
	--paper: #ffffff;
	--frost: #d4e0ea;
	--frost-soft: #e4ecf3;

	/* Indigo: the ink of the map */
	--indigo: #232f73;
	--indigo-2: #34429a;
	--indigo-deep: #121a42;
	--indigo-night: #0b1133;
	--indigo-mist: #b9c2e6;
	--indigo-tint: #e5e9f7;

	/* Route: signal coral of the trail */
	--route: #e8553f;
	--route-ink: #c0392b;
	--route-deep: #a52e22;
	--route-2: #ff8b74;
	--route-tint: #fde6e1;

	/* Lichen: moss on the slate */
	--lichen: #6f9a3e;
	--lichen-ink: #4b6b2a;
	--lichen-tint: #e6efd9;

	/* Sky: winter sky above the ridge */
	--sky: #7cbde3;
	--sky-ink: #1d6a98;
	--sky-tint: #dcedf8;

	/* Text */
	--ink: #18204a;
	--ink-soft: #4a5578;
	--ink-faint: #6b7594;

	/* Focus rings */
	--focus: var(--sky-ink);
	--focus-dark: var(--route-2);

	/* Translucent helpers */
	--contour-ink: rgba(35, 47, 115, .12);
	--contour-sky: rgba(29, 106, 152, .2);
	--contour-lichen: rgba(75, 107, 42, .22);
	--contour-route: rgba(192, 57, 43, .18);
	--contour-dark: rgba(185, 194, 230, .1);
	--grid-line: rgba(35, 47, 115, .045);
	--veil-indigo: rgba(18, 26, 66, .35);
	--veil-line: rgba(185, 194, 230, .18);

	/* Layout */
	--wrap: 1240px;
	--gut: 24px;
	--side: 320px;

	/* Shape */
	--r-xs: 4px;
	--r-sm: 6px;
	--r: 8px;
	--r-lg: 12px;
	--r-pill: 999px;

	/* Type */
	--font-head: "Rubik", "Segoe UI", Arial, sans-serif;
	--font-body: "Commissioner", "Segoe UI", Arial, sans-serif;
	--font-mono: "PT Mono", Consolas, "Courier New", monospace;

	/* Depth */
	--shadow: 0 1px 2px rgba(18, 26, 66, .05), 0 12px 28px -18px rgba(18, 26, 66, .3);
	--shadow-hover: 0 1px 2px rgba(18, 26, 66, .06), 0 22px 40px -22px rgba(18, 26, 66, .42);

	/* Patterns: dashed route and trail lines */
	--route-dash: repeating-linear-gradient(90deg, var(--route) 0 9px, transparent 9px 15px);
	--route-dash-y: repeating-linear-gradient(180deg, var(--route) 0 7px, transparent 7px 12px);
	--trail-dash: repeating-linear-gradient(90deg, var(--frost) 0 6px, transparent 6px 11px);
	--trail-dash-y: repeating-linear-gradient(180deg, var(--frost) 0 5px, transparent 5px 9px);
	--trail-dash-dark: repeating-linear-gradient(90deg, var(--indigo-2) 0 5px, transparent 5px 9px);
	--trail-dash-dark-y: repeating-linear-gradient(180deg, var(--indigo-2) 0 5px, transparent 5px 9px);

	/* Pattern: coordinate grid of the map */
	--map-grid:
		linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 72px 72px,
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 72px 72px;

	/* Pattern: topographic contour lines, used as a mask (colour comes from tokens) */
	--contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360' fill='none' stroke='black' stroke-width='1.3'%3E%3Cdefs%3E%3Cpath id='c' vector-effect='non-scaling-stroke' d='M-100-8C-96-60-40-92 12-88 70-84 104-44 98 6 92 58 44 96-8 92-62 88-104 44-100-8Z'/%3E%3C/defs%3E%3Cuse href='%23c' transform='translate(180 180) scale(1.2)'/%3E%3Cuse href='%23c' transform='translate(186 175) rotate(12) scale(.94)'/%3E%3Cuse href='%23c' transform='translate(192 170) rotate(22) scale(.7)'/%3E%3Cuse href='%23c' transform='translate(197 166) rotate(34) scale(.46)'/%3E%3Cuse href='%23c' transform='translate(201 164) rotate(46) scale(.22)'/%3E%3Cg id='k'%3E%3Cuse href='%23c' transform='rotate(-30) scale(.56)'/%3E%3Cuse href='%23c' transform='translate(4 -3) rotate(-18) scale(.36)'/%3E%3Cuse href='%23c' transform='translate(7 -5) rotate(-6) scale(.16)'/%3E%3C/g%3E%3Cuse href='%23k' x='360'/%3E%3Cuse href='%23k' y='360'/%3E%3Cuse href='%23k' x='360' y='360'/%3E%3C/svg%3E");
}

/* ============================================================
   2. Reset and base
   ============================================================ */

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

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

body {
	margin: 0;
	background: var(--snow);
	color: var(--ink);
	font: 400 17px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

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

svg {
	flex-shrink: 0;
}

a {
	color: var(--indigo-2);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .15s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--indigo-deep);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

::selection {
	background: var(--route-tint);
	color: var(--indigo-deep);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

.meta-mono {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: .02em;
}

/* Signature divider: dashed route with a start ring and a finish pin */
.seam {
	--seam-bg: var(--snow);
	position: relative;
	display: block;
	width: 100%;
	height: 22px;
	background: var(--route-dash) center / calc(100% - 30px) 2px no-repeat;
}

.seam::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 3px solid var(--route);
	border-radius: 50%;
	background: var(--seam-bg);
}

.seam::after {
	content: "";
	position: absolute;
	right: 2px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -14px;
	border-radius: 50% 50% 50% 0;
	background: radial-gradient(circle, var(--seam-bg) 0 3px, var(--route) 3.5px);
	transform: rotate(-45deg);
}

.seam--wide {
	width: auto;
	margin: 0 var(--gut);
}

.seam--paper {
	--seam-bg: var(--paper);
}

.seam--dark {
	--seam-bg: var(--indigo-deep);
}

/* Map marks shared by header and footer */
.mark__pin {
	fill: var(--indigo);
}

.mark__house {
	fill: var(--paper);
}

.mark__roof {
	fill: none;
	stroke: var(--route);
	stroke-width: 3.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mark__door {
	fill: var(--indigo);
}

.mark--light .mark__pin {
	fill: var(--route);
}

.mark--light .mark__roof {
	stroke: var(--indigo-deep);
}

.mark--light .mark__door {
	fill: var(--route);
}

.compass {
	color: var(--indigo);
}

.compass__n {
	fill: var(--route);
}

.compass__s {
	fill: var(--indigo-mist);
}

/* ============================================================
   3. Topline and header
   ============================================================ */

.site-head {
	position: relative;
	z-index: 20;
	display: flex;
	flex-direction: column;
}

/* Topline: the route of rubrics with stops + contacts */
.topline {
	position: relative;
	background: var(--indigo-deep);
	color: var(--indigo-mist);
	font-size: 13.5px;
}

.topline :focus-visible {
	outline-color: var(--focus-dark);
}

.topline__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 46px;
}

.topline__label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--route-2);
}

.topline__label::before {
	content: "";
	width: 11px;
	height: 11px;
	border-radius: 50% 50% 50% 0;
	background: var(--route-2);
	transform: rotate(-45deg);
}

.site-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.nav-list {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
	display: none;
}

.nav-list > li {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.nav-list > li + li::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 2px;
	margin: 0 8px;
	background: var(--trail-dash-dark);
}

.nav-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 2px;
	color: var(--snow);
	text-decoration: none;
	white-space: nowrap;
}

.nav-list a::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border: 2px solid var(--indigo-mist);
	border-radius: 50%;
	background: var(--indigo-deep);
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nav-list a:hover {
	color: var(--paper);
	text-decoration: underline;
	text-decoration-color: var(--route-2);
}

.nav-list a:hover::before {
	border-color: var(--route-2);
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a,
.nav-list a[aria-current="page"] {
	color: var(--paper);
	font-weight: 600;
}

.nav-list .current-menu-item > a::before,
.nav-list .current-menu-parent > a::before,
.nav-list a[aria-current="page"]::before {
	border-color: var(--route-2);
	background: var(--route-2);
	box-shadow: 0 0 0 4px var(--veil-line);
}

.nav-list .sub-menu {
	display: none;
}

.topline__contacts {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
	margin-left: auto;
}

.topline__item {
	white-space: nowrap;
}

.topline__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--paper);
	text-decoration: none;
	white-space: nowrap;
}

.topline__phone:hover {
	color: var(--route-2);
}

.topline__icon {
	color: var(--route-2);
}

/* Main bar: brand, search, call to action */
.site-head__bar {
	position: relative;
	background: var(--paper);
	border-bottom: 1px solid var(--frost);
}

.site-head__bar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--route-dash);
	opacity: .5;
}

.site-head__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	color: var(--indigo-deep);
	text-decoration: none;
}

.brand:hover {
	color: var(--indigo-deep);
}

.brand__mark {
	display: block;
	width: 40px;
	height: 48px;
}

.brand__mark .mark {
	display: block;
	width: 100%;
	height: 100%;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand__name {
	font-family: var(--font-head);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.brand__name em {
	font-style: normal;
	color: var(--route-ink);
}

.brand__sub {
	margin-top: 5px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .03em;
	color: var(--ink-soft);
}

.custom-logo {
	display: block;
	max-height: 52px;
	width: auto;
}

.searchform--head {
	flex: 1 1 auto;
	max-width: 460px;
	margin-left: auto;
}

.site-head__cta {
	flex-shrink: 0;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px 0 12px;
	border: 1.5px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--indigo-deep);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
}

.nav-toggle:hover {
	border-color: var(--indigo-2);
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: background-color .2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* Reading progress */
.read-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 4px;
	background: var(--indigo-tint);
	pointer-events: none;
}

.read-bar__fill {
	display: block;
	height: 100%;
	background: var(--route);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ============================================================
   4. Lead block (home hero)
   ============================================================ */

.lead {
	position: relative;
	overflow: hidden;
	padding: 56px 0 64px;
	background: var(--map-grid), var(--snow);
	border-bottom: 1px solid var(--frost);
}

.lead::before,
.page-head::before,
.entry-head::before,
.site-foot::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--contour-ink);
	-webkit-mask: var(--contours) 0 0 / 360px 360px repeat;
	mask: var(--contours) 0 0 / 360px 360px repeat;
	pointer-events: none;
}

.lead > .wrap {
	position: relative;
	z-index: 1;
}

.lead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.lead__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 6px 14px 6px 10px;
	border: 1px solid var(--frost);
	border-radius: var(--r-pill);
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--route-ink);
}

.lead__kicker::before {
	content: "";
	width: 12px;
	height: 12px;
	margin-left: 2px;
	border-radius: 50% 50% 50% 0;
	background: var(--route);
	transform: rotate(-45deg);
}

.lead__title {
	margin: 0 0 22px;
	font-size: clamp(34px, 4.6vw, 58px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.02em;
}

.lead__title-line {
	display: block;
}

.lead__title-accent {
	display: block;
	color: var(--route-ink);
}

.lead__title-accent::after {
	content: "";
	display: block;
	width: min(300px, 70%);
	height: 3px;
	margin-top: 16px;
	background: var(--route-dash);
}

.lead__text {
	max-width: 620px;
	margin: 0 0 28px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-soft);
}

.lead__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Legend card with key figures */
.lead__legend {
	position: relative;
	padding: 22px 26px 22px;
	border: 1px solid var(--frost);
	border-radius: var(--r-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.lead__legend-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--frost);
}

.lead__legend-title {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.specs__row {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 6px;
	padding: 16px 0 14px;
	border-bottom: 1px dashed var(--frost);
}

.specs__row:nth-child(even) {
	padding-left: 20px;
	border-left: 1px dashed var(--frost);
}

.specs__key {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.35;
	color: var(--ink-soft);
}

.specs__val {
	margin: 0;
	font-family: var(--font-head);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: var(--indigo);
}

.specs__val small {
	font-size: .55em;
	font-weight: 500;
	color: var(--route-ink);
}

.lead__legend-note {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.lead__legend-note::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border: 2px solid var(--lichen);
	border-radius: 50%;
}

/* Stages: numbered stops of the route */
.stages {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}

.stages::before {
	content: "";
	position: absolute;
	top: 25px;
	left: 26px;
	right: calc((100% - 60px) / 4 - 26px);
	height: 3px;
	background: var(--route-dash);
}

.stage {
	position: relative;
	display: flex;
	flex-direction: column;
}

.stage__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border: 3px solid var(--route);
	border-radius: 50%;
	background: var(--paper);
	box-shadow: 0 0 0 6px var(--snow);
	font-family: var(--font-mono);
	font-size: 18px;
	color: var(--indigo-deep);
}

.stage--finish .stage__num {
	border-color: var(--route-ink);
	background: var(--route-ink);
	color: var(--paper);
}

.stage__card {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 18px;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stage__card:hover {
	transform: translateY(-3px);
	border-color: var(--indigo-mist);
	box-shadow: var(--shadow-hover);
	color: var(--ink);
}

.stage__label {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--route-ink);
}

.stage__title {
	margin: 6px 0 8px;
	font-size: 20px;
	line-height: 1.25;
}

.stage__card:hover .stage__title {
	color: var(--route-ink);
}

.stage__text {
	flex: 1;
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-soft);
}

.stage__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--indigo-2);
}

.stage__more::after {
	content: "→";
	transition: transform .2s ease;
}

.stage__card:hover .stage__more::after {
	transform: translateX(4px);
}

/* ============================================================
   5. Section heads
   ============================================================ */

.section-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.section-head__title {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 72%;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	letter-spacing: -.01em;
}

.section-head__title::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 3px solid var(--route);
	border-radius: 50%;
	background: var(--paper);
}

.section-head__rule {
	flex: 1 1 24px;
	min-width: 24px;
	height: 2px;
	background: var(--trail-dash);
}

.section-head__note {
	flex-shrink: 0;
	color: var(--ink-soft);
	white-space: nowrap;
}

.section-head__link {
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--indigo-2);
	white-space: nowrap;
}

/* Archive, search and page heads */
.page-head {
	position: relative;
	overflow: hidden;
	padding: 30px 0 38px;
	background: var(--map-grid), var(--snow);
	border-bottom: 1px solid var(--frost);
}

.page-head > .wrap {
	position: relative;
	z-index: 1;
}

.page-head__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--route-ink);
}

.page-head__title {
	max-width: 900px;
	margin: 0 0 12px;
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.015em;
}

.page-head__text {
	max-width: 720px;
	margin: 0;
	font-size: 17.5px;
	color: var(--ink-soft);
}

.page-head__text p:last-child {
	margin-bottom: 0;
}

.page-head__count {
	display: inline-block;
	margin-top: 14px;
	color: var(--ink-soft);
}

/* ============================================================
   6. Grid and cards
   ============================================================ */

/* Chapters: rubric tiles on the home page */
.chapters {
	padding: 56px 0 48px;
	background: var(--paper);
	border-bottom: 1px solid var(--frost);
}

.chapter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chapter-grid + .seam {
	margin-top: 44px;
}

.chapter {
	display: flex;
}

.chapter__link {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 20px 20px 18px;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--snow);
	color: var(--ink);
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.chapter__link:hover {
	transform: translateY(-2px);
	border-color: var(--indigo-mist);
	background: var(--paper);
	box-shadow: var(--shadow-hover);
	color: var(--ink);
}

.chapter__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.chapter__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: var(--r-sm);
	background: var(--indigo-tint);
	color: var(--indigo);
}

.chapter__icon svg {
	width: 24px;
	height: 24px;
}

.chapter--sky .chapter__icon {
	background: var(--sky-tint);
	color: var(--sky-ink);
}

.chapter--lichen .chapter__icon {
	background: var(--lichen-tint);
	color: var(--lichen-ink);
}

.chapter--route .chapter__icon {
	background: var(--route-tint);
	color: var(--route-deep);
}

.chapter__num {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.chapter__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.25;
}

.chapter__link:hover .chapter__title {
	color: var(--route-ink);
}

.chapter__text {
	flex: 1;
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.chapter__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--route-ink);
}

.chapter__count::before {
	content: "";
	width: 18px;
	height: 2px;
	background: var(--route-dash);
}

/* Two-column layout: content + right sidebar */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--side);
	gap: 40px;
	padding: 48px 0 72px;
}

.layout__main {
	min-width: 0;
}

.layout--entry {
	padding-top: 36px;
}

/* Card grid */
.grid {
	display: grid;
	gap: 24px;
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Card */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
	transform: translateY(-3px);
	border-color: var(--indigo-mist);
	box-shadow: var(--shadow-hover);
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--snow-2);
}

.card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.card:hover .card__img {
	transform: scale(1.03);
}

.card__index {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 7px;
	border: 2px solid var(--route);
	border-radius: var(--r-pill);
	background: var(--paper);
	box-shadow: 0 3px 8px -3px var(--veil-indigo);
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1;
	color: var(--indigo-deep);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 16px;
}

.card__cat {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 7px;
	margin-bottom: 10px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--route-ink);
	text-decoration: none;
}

.card__cat::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--route);
}

.card__cat:hover {
	color: var(--route-deep);
	text-decoration: underline;
}

.card__title {
	margin: 0 0 10px;
	font-size: 18.5px;
	font-weight: 600;
	line-height: 1.3;
}

.card__title a {
	color: var(--indigo-deep);
	text-decoration: none;
}

/* Stretched link: the whole card is clickable */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--r);
}

.card__title a:focus-visible {
	outline: none;
}

.card__title a:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: -3px;
}

.card:hover .card__title a {
	color: var(--route-ink);
}

.card__text {
	display: -webkit-box;
	margin: 0 0 16px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-soft);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed var(--frost);
	color: var(--ink-soft);
}

.card__time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.card__time::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--indigo-mist);
}

.card__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--indigo-2);
}

.card__go::after {
	content: "→";
	transition: transform .2s ease;
}

.card:hover .card__go::after {
	transform: translateX(4px);
}

/* Placeholder when a post has no thumbnail */
.thumb-blank {
	--tb-bg: var(--sky-tint);
	--tb-line: var(--contour-sky);
	--tb-pin: var(--route);
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background: var(--tb-bg);
}

.thumb-blank::before {
	content: "";
	position: absolute;
	inset: -30px;
	background: var(--tb-line);
	-webkit-mask: var(--contours) 0 0 / 260px 260px repeat;
	mask: var(--contours) 0 0 / 260px 260px repeat;
}

.thumb-blank::after {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	top: 64%;
	height: 3px;
	background: var(--route-dash);
	transform: rotate(-8deg);
}

.thumb-blank__pin {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 40px;
	height: 40px;
	margin: -34px 0 0 -20px;
	border-radius: 50% 50% 50% 0;
	background: var(--tb-pin);
	transform: rotate(-45deg);
	box-shadow: -4px 4px 12px -4px var(--veil-indigo);
}

.thumb-blank__pin::after {
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: 50%;
	background: var(--paper);
}

.thumb-blank--lichen {
	--tb-bg: var(--lichen-tint);
	--tb-line: var(--contour-lichen);
	--tb-pin: var(--indigo);
}

.thumb-blank--indigo {
	--tb-bg: var(--indigo);
	--tb-line: var(--contour-dark);
	--tb-pin: var(--route);
}

.thumb-blank--route {
	--tb-bg: var(--route-tint);
	--tb-line: var(--contour-route);
	--tb-pin: var(--indigo);
}

.thumb-blank--snow {
	--tb-bg: var(--snow-2);
	--tb-line: var(--contour-ink);
	--tb-pin: var(--lichen-ink);
}

/* Sidebar and widgets */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.sidebar--sticky {
	position: sticky;
	top: 20px;
	align-self: start;
	max-height: calc(100vh - 40px);
	padding: 3px;
	margin: -3px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--frost) transparent;
}

.widget {
	padding: 20px 20px 18px;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
}

.widget--sticky {
	position: sticky;
	top: 20px;
}

.widget__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding-bottom: 12px;
	background: var(--trail-dash) left bottom / 100% 2px no-repeat;
	font-size: 16.5px;
	font-weight: 600;
}

.widget__title::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	margin: 0 2px 3px;
	border-radius: 50% 50% 50% 0;
	background: var(--route);
	transform: rotate(-45deg);
}

.widget__foot {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px dashed var(--frost);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink-soft);
}

.widget__more {
	display: inline-flex;
	gap: 6px;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 12.5px;
}

/* Dark widget: article route */
.widget--dark {
	border-color: var(--indigo-deep);
	background: var(--indigo-deep);
	color: var(--indigo-mist);
}

.widget--dark .widget__title {
	background-image: var(--trail-dash-dark);
	color: var(--paper);
}

.widget--dark .widget__title::before {
	background: var(--route-2);
}

.widget--dark .widget__foot {
	border-top-color: var(--indigo-2);
	color: var(--indigo-mist);
}

.widget--dark :focus-visible {
	outline-color: var(--focus-dark);
}

/* Table of contents: numbered stops on a dashed trail */
.toc {
	--toc-ink: var(--ink);
	--toc-strong: var(--indigo-deep);
	--toc-soft: var(--ink-soft);
	--toc-ring: var(--frost);
	--toc-dot: var(--paper);
	--toc-hover: var(--route-ink);
	--toc-halo: var(--route-tint);
	--toc-trail: var(--trail-dash-y);
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.toc::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 18px;
	bottom: 18px;
	width: 2px;
	margin-left: -1px;
	background: var(--toc-trail);
}

.widget--dark .toc {
	--toc-ink: var(--snow);
	--toc-strong: var(--paper);
	--toc-soft: var(--indigo-mist);
	--toc-ring: var(--indigo-2);
	--toc-dot: var(--indigo-deep);
	--toc-hover: var(--route-2);
	--toc-halo: var(--veil-line);
	--toc-trail: var(--trail-dash-dark-y);
}

.toc__item {
	position: relative;
	margin: 0;
	padding: 0;
}

.toc__link {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 6px 0;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--toc-ink);
	text-decoration: none;
}

.toc__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid var(--toc-ring);
	border-radius: 50%;
	background: var(--toc-dot);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--toc-soft);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.toc__text {
	padding-top: 4px;
}

.toc__link:hover {
	color: var(--toc-hover);
}

.toc__link:hover .toc__num {
	border-color: var(--route);
}

.toc__item.is-passed .toc__num {
	border-color: var(--route);
	color: var(--toc-ink);
}

.toc__item.is-active .toc__num {
	border-color: var(--route-ink);
	background: var(--route-ink);
	box-shadow: 0 0 0 4px var(--toc-halo);
	color: var(--paper);
}

.toc__item.is-active .toc__text {
	font-weight: 600;
	color: var(--toc-strong);
}

/* Popular / similar posts list */
.pop-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pop-list__item + .pop-list__item {
	border-top: 1px dashed var(--frost);
}

.pop-list__link {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 4px 12px;
	padding: 12px 0;
	color: var(--ink);
	text-decoration: none;
}

.pop-list__item:first-child .pop-list__link {
	padding-top: 2px;
}

.pop-list__item:last-child .pop-list__link {
	padding-bottom: 2px;
}

.pop-list__num {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--route-tint);
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--route-deep);
}

.pop-list__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--indigo-deep);
}

.pop-list__link:hover .pop-list__title {
	color: var(--route-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.pop-list__meta {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--ink-soft);
}

/* Rubric list */
.cat-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-list__link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -10px;
	padding: 8px 10px;
	border-radius: var(--r-sm);
	font-size: 15px;
	color: var(--ink);
	text-decoration: none;
}

.cat-list__link::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border: 2px solid var(--indigo-mist);
	border-radius: 50%;
}

.cat-list__link:hover {
	background: var(--snow);
	color: var(--indigo-2);
}

.cat-list__link:hover::before {
	border-color: var(--route);
}

.cat-list__name {
	flex: 1;
	min-width: 0;
}

.cat-list__count {
	min-width: 30px;
	padding: 2px 8px;
	border-radius: var(--r-pill);
	background: var(--snow-2);
	font-family: var(--font-mono);
	font-size: 12px;
	text-align: center;
	color: var(--ink-soft);
}

.cat-list__item--current .cat-list__link {
	background: var(--indigo-tint);
	font-weight: 600;
	color: var(--indigo-deep);
}

.cat-list__item--current .cat-list__link::before {
	border-color: var(--route);
	background: var(--route);
}

.cat-list__item--current .cat-list__count {
	background: var(--paper);
}

/* ============================================================
   7. Entry (single / page)
   ============================================================ */

.entry-head {
	position: relative;
	overflow: hidden;
	padding: 26px 0 40px;
	background: var(--map-grid), var(--snow);
	border-bottom: 1px solid var(--frost);
}

.entry-head > .wrap {
	position: relative;
	z-index: 1;
}

.entry-head__inner {
	max-width: 920px;
}

/* Breadcrumbs */
.crumbs {
	margin-bottom: 22px;
}

.crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--ink-soft);
}

.crumbs__item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.crumbs__item + .crumbs__item::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	margin: 0 8px;
	border-top: 2px dotted var(--ink-faint);
}

.crumbs a {
	color: var(--indigo-2);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--route-ink);
	text-decoration: underline;
}

.crumbs__now {
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.entry-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 5px 13px 5px 9px;
	border-radius: var(--r-pill);
	background: var(--indigo);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--paper);
	text-decoration: none;
}

.entry-tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--route-2);
}

.entry-tag:hover {
	background: var(--route-ink);
	color: var(--paper);
}

.entry-title {
	margin: 0 0 18px;
	font-size: clamp(30px, 4.2vw, 50px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.entry-lede {
	max-width: 780px;
	margin: 0 0 24px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-soft);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink);
}

.entry-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.entry-meta__item::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border: 2px solid var(--route);
	border-radius: 50%;
}

.entry-meta__key {
	color: var(--ink-soft);
}

.entry-meta a {
	color: var(--indigo-2);
}

/* Cover */
.entry-cover {
	margin: 0 0 32px;
	overflow: hidden;
	border: 1px solid var(--frost);
	border-radius: var(--r-lg);
	background: var(--paper);
}

.entry-cover__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--snow-2);
}

.entry-cover__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-cover__cap {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 11px 16px;
	border-top: 1px solid var(--frost);
	color: var(--ink-soft);
}

.entry-cover__cap::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 2px;
	transform: translateY(-3px);
	background: var(--route-dash);
}

/* Mobile route of the article (collapsible) */
.toc-drop {
	display: none;
	margin: 0 0 28px;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
}

.toc-drop__sum {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	list-style: none;
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 16.5px;
	font-weight: 600;
	color: var(--indigo-deep);
}

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

.toc-drop__sum::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	margin: 0 2px 3px;
	border-radius: 50% 50% 50% 0;
	background: var(--route);
	transform: rotate(-45deg);
}

.toc-drop__sum::after {
	content: "";
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	margin: -4px 4px 0 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.toc-drop[open] .toc-drop__sum::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.toc-drop__count {
	margin-left: auto;
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--ink-soft);
}

.toc-drop .toc {
	margin: 0 18px;
	padding: 4px 0 16px;
	border-top: 1px dashed var(--frost);
}

.toc-drop .toc::before {
	top: 22px;
}

/* Body typography */
.entry-body {
	font-size: 18px;
	line-height: 1.72;
	color: var(--ink);
	counter-reset: stop;
}

.entry-body::after {
	content: "";
	display: table;
	clear: both;
}

.entry-body > *:first-child {
	margin-top: 0;
}

.entry-body p {
	margin: 0 0 1.15em;
}

.entry-body a {
	color: var(--indigo-2);
	text-decoration-color: var(--route);
	text-decoration-thickness: 2px;
}

.entry-body a:hover {
	color: var(--route-ink);
}

.entry-body h2 {
	position: relative;
	min-height: 40px;
	margin: 1.9em 0 .7em;
	padding: 3px 0 0 56px;
	font-size: clamp(24px, 2.6vw, 31px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -.01em;
	counter-increment: stop;
	scroll-margin-top: 24px;
}

.entry-body h2::before {
	content: counter(stop, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--route-ink);
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--paper);
}

.entry-body h3 {
	margin: 1.6em 0 .6em;
	font-size: 22px;
	line-height: 1.3;
	scroll-margin-top: 24px;
}

.entry-body h3::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 3px;
	margin-right: 12px;
	vertical-align: .3em;
	background: var(--route-dash);
}

.entry-body h4 {
	margin: 1.4em 0 .5em;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 700;
}

.entry-body ul,
.entry-body ol {
	margin: 0 0 1.3em;
	padding: 0;
	list-style: none;
}

.entry-body li {
	position: relative;
	margin: .5em 0;
}

.entry-body ul > li {
	padding-left: 28px;
}

.entry-body ul > li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .58em;
	width: 11px;
	height: 11px;
	border: 2.5px solid var(--route);
	border-radius: 50%;
}

.entry-body ol {
	counter-reset: li;
}

.entry-body ol > li {
	padding-left: 42px;
	counter-increment: li;
}

.entry-body ol > li::before {
	content: counter(li);
	position: absolute;
	left: 0;
	top: .15em;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--indigo);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1;
	color: var(--paper);
}

.entry-body li > ul,
.entry-body li > ol {
	margin: .4em 0 0;
}

.entry-body strong {
	font-weight: 700;
	color: var(--indigo-deep);
}

.entry-body blockquote,
.entry-body .wp-block-quote {
	position: relative;
	margin: 1.9em 0;
	padding: 24px 28px 22px 68px;
	border-radius: var(--r);
	background: var(--indigo-tint);
	font-size: 19px;
	line-height: 1.6;
	color: var(--indigo-deep);
}

.entry-body blockquote::before {
	content: "«";
	position: absolute;
	left: 20px;
	top: 6px;
	font-family: var(--font-head);
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	color: var(--route);
}

.entry-body blockquote p:last-of-type {
	margin-bottom: 0;
}

.entry-body blockquote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-style: normal;
	color: var(--ink-soft);
}

.entry-body blockquote cite::before {
	content: "— ";
}

/* Tables */
.entry-body .wp-block-table {
	margin: 1.8em 0;
	overflow-x: auto;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
}

.entry-body table {
	width: 100%;
	margin: 1.8em 0;
	border: 1px solid var(--frost);
	border-collapse: collapse;
	background: var(--paper);
	font-size: 15.5px;
	line-height: 1.5;
}

.entry-body .wp-block-table table {
	min-width: 540px;
	margin: 0;
	border: 0;
}

.entry-body th {
	padding: 12px 14px;
	background: var(--indigo);
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 600;
	text-align: left;
	vertical-align: bottom;
	color: var(--paper);
}

.entry-body td {
	padding: 11px 14px;
	border-top: 1px solid var(--frost);
	vertical-align: top;
}

.entry-body tbody tr:nth-child(even) td {
	background: var(--snow);
}

.entry-body td:first-child {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--indigo-deep);
}

.entry-body .wp-block-table figcaption {
	margin: 0;
	padding: 10px 14px;
	border-top: 1px solid var(--frost);
}

/* Figures and media */
.entry-body figure {
	margin: 1.9em 0;
}

.entry-body img {
	border-radius: var(--r);
}

.entry-body figcaption,
.entry-body .wp-caption-text,
.entry-body .wp-element-caption {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.entry-body figcaption::before,
.entry-body .wp-caption-text::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 2px;
	transform: translateY(-3px);
	background: var(--route-dash);
}

.entry-figure__art {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
}

/* Code */
.entry-body code,
.entry-body kbd {
	padding: .1em .35em;
	border-radius: var(--r-xs);
	background: var(--indigo-tint);
	font-family: var(--font-mono);
	font-size: .88em;
	color: var(--indigo-deep);
}

.entry-body pre {
	margin: 1.8em 0;
	padding: 18px 20px;
	overflow-x: auto;
	border-radius: var(--r);
	background: var(--indigo-deep);
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.6;
	color: var(--snow);
}

.entry-body pre code {
	padding: 0;
	background: none;
	font-size: inherit;
	color: inherit;
}

.entry-body mark {
	padding: 0 .15em;
	background: var(--sky-tint);
	color: var(--indigo-deep);
}

.entry-body hr {
	height: 2px;
	margin: 2.4em 0;
	border: 0;
	background: var(--route-dash);
}

/* Tip callout */
.tip {
	margin: 1.9em 0;
	padding: 18px 22px 18px;
	border-left: 4px solid var(--lichen);
	border-radius: 0 var(--r) var(--r) 0;
	background: var(--lichen-tint);
	font-size: 16.5px;
	line-height: 1.6;
}

.tip .tip__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lichen-ink);
}

.tip__title::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	margin: 0 2px 3px;
	border-radius: 50% 50% 50% 0;
	background: var(--lichen-ink);
	transform: rotate(-45deg);
}

.tip p:last-child {
	margin-bottom: 0;
}

.tip--warn {
	border-left-color: var(--route);
	background: var(--route-tint);
}

.tip--warn .tip__title {
	color: var(--route-deep);
}

.tip--warn .tip__title::before {
	background: var(--route-deep);
}

/* Inline related block inside the text */
.inline-related {
	margin: 2em 0;
	padding: 20px 22px 16px;
	border: 1px solid var(--frost);
	border-top: 3px solid var(--route);
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.inline-related .inline-related__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--indigo-deep);
}

.inline-related__title::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	margin: 0 2px 3px;
	border-radius: 50% 50% 50% 0;
	background: var(--route);
	transform: rotate(-45deg);
}

.inline-related .inline-related__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.inline-related__list::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 20px;
	bottom: 20px;
	width: 2px;
	margin-left: -1px;
	background: var(--trail-dash-y);
}

.inline-related .inline-related__item {
	position: relative;
	margin: 0;
	padding: 0 0 0 30px;
}

.inline-related .inline-related__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	z-index: 1;
	width: 14px;
	height: 14px;
	border: 3px solid var(--route);
	border-radius: 50%;
	background: var(--paper);
}

.inline-related .inline-related__link {
	display: block;
	padding: 8px 0;
	text-decoration: none;
}

.inline-related__cat {
	display: block;
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--route-ink);
}

.inline-related__text {
	display: block;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--indigo-deep);
}

.inline-related__link:hover .inline-related__text {
	color: var(--route-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* Tags */
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 36px 0 0;
	padding-top: 22px;
	background: var(--trail-dash) left top / 100% 2px no-repeat;
}

.entry-tags__key {
	margin-right: 4px;
	color: var(--ink-soft);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 32px;
	padding: 3px 13px;
	border: 1px solid var(--frost);
	border-radius: var(--r-pill);
	background: var(--paper);
	font-size: 14px;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}

.chip::before {
	content: "#";
	font-family: var(--font-mono);
	color: var(--route-ink);
}

.chip:hover {
	border-color: var(--indigo-2);
	color: var(--indigo-2);
}

.chip--cat {
	border-color: var(--indigo);
	background: var(--indigo);
	color: var(--paper);
}

.chip--cat::before {
	content: none;
}

.chip--cat:hover {
	border-color: var(--route-ink);
	background: var(--route-ink);
	color: var(--paper);
}

/* Previous / next */
.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}

.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	border: 1px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.post-nav__item:hover {
	border-color: var(--indigo-mist);
	box-shadow: var(--shadow-hover);
	color: var(--ink);
}

.post-nav__item--next {
	align-items: flex-end;
	text-align: right;
}

.post-nav__item--next:only-child {
	grid-column: 2;
}

.post-nav__dir {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--route-ink);
}

.post-nav__title {
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--indigo-deep);
}

.post-nav__item:hover .post-nav__title {
	color: var(--route-ink);
}

/* ============================================================
   8. Related block
   ============================================================ */

.related {
	padding: 48px 0 72px;
	background: var(--paper);
	border-top: 1px solid var(--frost);
}

.related .seam {
	margin-bottom: 36px;
}

.related .card {
	background: var(--snow);
}

.related .card:hover {
	background: var(--paper);
}

/* ============================================================
   9. Forms, buttons, pagination, states
   ============================================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--r);
	font-family: var(--font-head);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--route {
	background: var(--route-ink);
	color: var(--paper);
}

.btn--route:hover {
	background: var(--route-deep);
	color: var(--paper);
}

.btn--indigo {
	background: var(--indigo);
	color: var(--paper);
}

.btn--indigo:hover {
	background: var(--indigo-2);
	color: var(--paper);
}

.btn--ghost {
	border-color: var(--frost);
	background: var(--paper);
	color: var(--indigo-deep);
}

.btn--ghost:hover {
	border-color: var(--indigo-2);
	color: var(--indigo-2);
}

.btn--sm {
	min-height: 42px;
	padding: 8px 16px;
	font-size: 14.5px;
}

/* Search form */
.searchform {
	position: relative;
	display: flex;
	align-items: center;
}

.searchform__field {
	width: 100%;
	height: 46px;
	padding: 0 54px 0 16px;
	border: 1.5px solid var(--frost);
	border-radius: var(--r);
	background: var(--snow);
	font-size: 15px;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}

.searchform__field::placeholder {
	color: var(--ink-faint);
	opacity: 1;
}

.searchform__field:hover {
	border-color: var(--indigo-mist);
}

.searchform__field:focus {
	border-color: var(--indigo-2);
	background: var(--paper);
}

.searchform__btn {
	position: absolute;
	top: 5px;
	right: 5px;
	bottom: 5px;
	display: grid;
	place-items: center;
	width: 42px;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--indigo);
	color: var(--paper);
	transition: background-color .2s ease;
}

.searchform__btn:hover {
	background: var(--route-ink);
}

.searchform--foot .searchform__field {
	border-color: var(--indigo-2);
	background: var(--indigo-night);
	color: var(--snow);
}

.searchform--foot .searchform__field::placeholder {
	color: var(--indigo-mist);
}

.searchform--foot .searchform__field:focus {
	border-color: var(--route-2);
	background: var(--indigo-night);
}

.searchform--foot .searchform__btn {
	background: var(--route-ink);
}

.searchform--foot .searchform__btn:hover {
	background: var(--route-deep);
}

/* Generic fields (comments, forms inside content) */
.field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--frost);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--ink);
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--ink-soft);
}

.comment-form .submit {
	min-height: 48px;
	padding: 10px 22px;
	border: 0;
	border-radius: var(--r);
	background: var(--route-ink);
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--paper);
}

.comment-form .submit:hover {
	background: var(--route-deep);
}

/* Pagination: numbered stops on the trail */
.navigation.pagination {
	margin-top: 44px;
}

.nav-links {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.nav-links::before {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	background: var(--trail-dash);
}

.page-numbers {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid var(--frost);
	border-radius: var(--r-pill);
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--indigo-deep);
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

a.page-numbers:hover {
	border-color: var(--indigo-2);
	color: var(--indigo-2);
}

.page-numbers.current {
	border-color: var(--route-ink);
	background: var(--route-ink);
	color: var(--paper);
}

.page-numbers.dots {
	min-width: 30px;
	padding: 0;
	border-color: transparent;
	background: var(--snow);
}

.page-numbers.prev,
.page-numbers.next {
	padding: 0 18px;
	font-family: var(--font-body);
	font-weight: 600;
}

.page-numbers.next {
	margin-left: auto;
}

.page-numbers.prev {
	margin-right: auto;
}

/* Empty states: 404 and no search results */
.state {
	position: relative;
	padding: 64px 0 80px;
	text-align: center;
}

.state__code {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 18px;
	font-family: var(--font-head);
	font-size: clamp(72px, 12vw, 128px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--indigo);
}

.state__code em {
	font-style: normal;
	color: var(--route-ink);
}

.state__title {
	max-width: 720px;
	margin: 0 auto 12px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
}

.state__text {
	max-width: 620px;
	margin: 0 auto 26px;
	font-size: 17.5px;
	color: var(--ink-soft);
}

.state__search {
	max-width: 480px;
	margin: 0 auto 22px;
}

.state__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* ============================================================
   10. Footer
   ============================================================ */

.site-foot {
	position: relative;
	overflow: hidden;
	background: var(--indigo-deep);
	color: var(--indigo-mist);
	font-size: 15px;
}

.site-foot::before {
	background: var(--contour-dark);
}

.site-foot > * {
	position: relative;
	z-index: 1;
}

.site-foot :focus-visible {
	outline-color: var(--focus-dark);
}

.site-foot a {
	color: var(--snow);
}

.site-foot a:hover {
	color: var(--route-2);
}

.site-foot__seam {
	padding-top: 30px;
}

.site-foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.15fr);
	gap: 40px;
	padding-top: 34px;
	padding-bottom: 44px;
}

.foot-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--paper);
	text-decoration: none;
}

.foot-brand__mark {
	display: block;
	width: 36px;
	height: 43px;
}

.foot-brand__mark .mark {
	display: block;
	width: 100%;
	height: 100%;
}

.foot-brand__name {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	color: var(--paper);
}

.foot-brand__name em {
	font-style: normal;
	color: var(--route-2);
}

.foot-text {
	max-width: 380px;
	margin: 16px 0 18px;
	line-height: 1.6;
}

.foot-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 17px;
	text-decoration: none;
}

.site-foot .foot-phone {
	color: var(--paper);
}

.foot-phone svg {
	color: var(--route-2);
}

.foot-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--paper);
}

.foot-title::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border: 2px solid var(--route-2);
	border-radius: 50%;
}

.foot-menu {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot-menu--cols {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
}

.site-foot .foot-menu a {
	color: var(--indigo-mist);
	text-decoration: none;
}

.site-foot .foot-menu a:hover {
	color: var(--paper);
	text-decoration: underline;
	text-decoration-color: var(--route-2);
}

.foot-facts {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.foot-facts li {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 10px;
}

.foot-facts__key {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.9;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.foot-facts__val {
	color: var(--snow);
}

.foot-bottom {
	border-top: 1px solid var(--veil-line);
	background: var(--indigo-night);
}

.foot-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 13.5px;
}

.foot-copy,
.foot-note {
	margin: 0;
}

.foot-up {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 12.5px;
	text-decoration: none;
}

.site-foot .foot-up {
	color: var(--route-2);
}

.foot-up::before {
	content: "↑";
}

/* ============================================================
   11. Responsive
   ============================================================ */

@media (max-width: 1440px) {
	.topline__item--hours {
		display: none;
	}
}

@media (min-width: 1181px) {
	/* Narrow 3-column cards next to the sidebar: keep only the arrow */
	.layout .grid--3 .card__go {
		font-size: 0;
	}

	.layout .grid--3 .card__go::after {
		font-size: 16px;
	}
}

@media (max-width: 1180px) {
	:root {
		--side: 290px;
	}

	.layout {
		gap: 32px;
	}

	.layout .grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lead__grid {
		gap: 36px;
	}

	.site-foot__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.sidebar--sticky {
		position: static;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.widget--sticky {
		position: static;
	}

	/* On narrow screens the route of the article moves above the text */
	.sidebar .widget--toc {
		display: none;
	}

	.toc-drop {
		display: block;
	}

	.lead__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lead__legend {
		max-width: 620px;
	}

	.stages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 28px;
	}

	.stages::before {
		display: none;
	}

	.chapter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	/* Header: the route strip becomes a collapsible panel under the bar */
	.nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.site-head__inner {
		flex-wrap: wrap;
		gap: 12px 16px;
		min-height: 0;
		padding-top: 12px;
		padding-bottom: 14px;
	}

	.searchform--head {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
		margin: 0;
	}

	.site-head__bar {
		order: 1;
	}

	.topline {
		order: 2;
		display: none;
	}

	.topline.is-open {
		display: block;
		box-shadow: 0 18px 30px -18px var(--veil-indigo);
	}

	.topline__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-top: 16px;
		padding-bottom: 18px;
	}

	.topline__label {
		margin-bottom: 6px;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		overflow: visible;
	}

	.nav-list > li {
		flex-direction: column;
		align-items: stretch;
	}

	.nav-list > li + li::before {
		width: 2px;
		height: 12px;
		margin: 0 0 0 5px;
		background: var(--trail-dash-dark-y);
	}

	.nav-list a {
		gap: 14px;
		padding: 9px 0;
		font-size: 16.5px;
	}

	.topline__contacts {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		margin: 14px 0 0;
		padding-top: 14px;
		border-top: 1px solid var(--veil-line);
	}

	.topline__item--hours {
		display: inline;
	}

	.topline__phone {
		font-size: 16px;
	}

	.related .grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lead {
		padding: 40px 0 48px;
	}
}

@media (max-width: 640px) {
	:root {
		--gut: 16px;
	}

	body {
		font-size: 16px;
	}

	.site-head__cta {
		display: none;
	}

	.brand__name {
		font-size: 21px;
	}

	.brand__mark {
		width: 34px;
		height: 41px;
	}

	.grid--3,
	.grid--2,
	.layout .grid--3,
	.related .grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.grid {
		gap: 18px;
	}

	.lead__text,
	.entry-lede {
		font-size: 17px;
	}

	.lead__actions .btn {
		flex: 1 1 100%;
	}

	.lead__legend {
		padding: 18px 18px 18px;
	}

	.specs__val {
		font-size: 27px;
	}

	.specs__row:nth-child(even) {
		padding-left: 14px;
	}

	.stages {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		margin-top: 40px;
	}

	.stages::before {
		display: block;
		top: 26px;
		bottom: 26px;
		left: 25px;
		right: auto;
		width: 3px;
		height: auto;
		background: var(--route-dash-y);
	}

	.stage {
		display: grid;
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 14px;
		align-items: start;
	}

	.stage__num {
		margin: 0;
	}

	.chapters {
		padding: 40px 0 36px;
	}

	.chapter-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.section-head {
		flex-wrap: wrap;
		gap: 10px 14px;
		margin-bottom: 22px;
	}

	.section-head__title {
		max-width: 100%;
	}

	.section-head__rule {
		order: 3;
		flex-basis: 100%;
	}

	.section-head__note {
		white-space: normal;
	}

	.layout {
		padding: 36px 0 56px;
	}

	.sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-head {
		padding: 20px 0 30px;
	}

	.crumbs__now {
		max-width: 24ch;
	}

	.entry-meta {
		gap: 8px 18px;
		font-size: 12.5px;
	}

	.entry-body {
		font-size: 17px;
	}

	.entry-body h2 {
		min-height: 34px;
		padding: 2px 0 0 46px;
	}

	.entry-body h2::before {
		width: 34px;
		height: 34px;
		font-size: 12.5px;
	}

	.entry-body h3 {
		font-size: 20px;
	}

	.entry-body blockquote,
	.entry-body .wp-block-quote {
		padding: 44px 20px 20px;
		font-size: 17.5px;
	}

	.entry-body blockquote::before {
		left: 18px;
		top: 2px;
		font-size: 52px;
	}

	.entry-cover {
		margin-bottom: 24px;
	}

	.inline-related {
		padding: 18px 16px 12px;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav__item--next {
		align-items: flex-start;
		text-align: left;
	}

	.post-nav__item--next:only-child {
		grid-column: auto;
	}

	.nav-links::before {
		display: none;
	}

	.page-numbers.prev,
	.page-numbers.next {
		margin: 0;
	}

	.site-foot__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.foot-up {
		margin-left: 0;
	}
}

@media (max-width: 400px) {
	.brand__sub {
		display: none;
	}

	.brand__name {
		font-size: 19px;
	}

	.nav-toggle {
		padding: 0 10px;
	}

	.lead__title {
		font-size: 30px;
	}

	.specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.specs__row:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}

	.card__body {
		padding: 16px 16px 14px;
	}

	.entry-title {
		font-size: 27px;
	}

	.foot-menu--cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* ============================================================
   12. WordPress core classes
   ============================================================ */

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: var(--shadow-hover);
	font-size: 15px;
	font-weight: 600;
	color: var(--indigo-deep);
	text-decoration: none;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 100000;
	padding: 12px 18px;
	border-radius: var(--r);
	background: var(--indigo-deep);
	font-weight: 600;
	color: var(--paper);
	text-decoration: none;
}

.skip-link:focus {
	top: 8px;
	outline: 3px solid var(--focus-dark);
	outline-offset: 2px;
	color: var(--paper);
}

.alignleft {
	float: left;
	margin: .4em 1.6em 1em 0;
}

.alignright {
	float: right;
	margin: .4em 0 1em 1.6em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	max-width: none;
	margin-left: -24px;
	margin-right: -24px;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.alignfull img {
	border-radius: 0;
}

.wp-caption {
	max-width: 100%;
}

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

.gallery-caption {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink-soft);
}

.bypostauthor {
	display: block;
}

.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}

.sticky .card__index,
.card.sticky .card__index {
	border-color: var(--route-ink);
	background: var(--route-ink);
	color: var(--paper);
}

.sticky .card__cat::after {
	content: " · закреплено";
	color: var(--ink-soft);
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 28px 0 0;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-soft);
}

.page-links a,
.page-links > .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 2px solid var(--frost);
	border-radius: var(--r-pill);
	background: var(--paper);
	color: var(--indigo-deep);
	text-decoration: none;
}

.page-links .current {
	border-color: var(--route-ink);
	background: var(--route-ink);
	color: var(--paper);
}

.admin-bar .sidebar--sticky,
.admin-bar .widget--sticky {
	top: 52px;
}

.admin-bar .read-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .read-bar {
		top: 46px;
	}
}
