/*
 * Service (single-service.php) and article (single.php) templates.
 * Hero, then the reading layout: the gold thread in the left rail, the text, the side column with the
 * table of contents, and at the end the person of contact, where the thread turns in.
 * Without JavaScript the thread is a plain hairline. Colours come from tokens.css through data-theme.
 * Selectors carry .kl-single where the Elementor Kit styles headings and links.
 */

.kl-single {
	--kl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--kl-wide: var(--wrap-max);
	--kl-top: 112px; /* Room under the sticky header */
}

/* ---------- Breadcrumbs ---------- */

.kl-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) 0;
	margin: 0 0 var(--space-5);
	padding: 0;
	list-style: none;
	color: var(--fg-muted);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-line);
	letter-spacing: var(--type-caption-tracking);
}
.kl-crumbs li + li::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 1px;
	margin: 0 10px;
	vertical-align: middle;
	background: var(--rule);
}
.kl-single .kl-crumbs a {
	color: var(--fg-muted);
	text-decoration: none;
}
.kl-single .kl-crumbs a:hover { color: var(--fg); text-decoration: underline; }
.kl-crumbs [aria-current] {
	display: inline-block;
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* ---------- Portrait in the double frame of the shield ---------- */

.kl-portrait {
	display: inline-block;
	flex: none;
	padding: 3px;
	border: 1px solid var(--rule);
	line-height: 0;
}
.kl-portrait img {
	display: block;
	width: 100%;
	height: 100%;
	border: 1px solid var(--rule);
	object-fit: cover;
	object-position: 50% 20%;
}
.kl-portrait .kl-portrait__shield {
	object-fit: contain;
	padding: 18%;
	background: var(--burgundy);
}
.kl-portrait--sm { width: 56px; height: 56px; }
.kl-portrait--lg { width: 100%; max-width: 220px; aspect-ratio: 4 / 5; }

/* ---------- Byline ---------- */

.kl-byline {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.kl-byline__text {
	display: block;
	margin: 0;
	line-height: 1.35;
}
.kl-byline__label {
	display: block;
	margin-bottom: 2px;
	color: var(--eyebrow);
	font-size: 12px;
	font-weight: var(--type-eyebrow-weight);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}
.kl-byline__name { font-weight: 600; }
.kl-byline__role { color: var(--fg-muted); }

/* ---------- Service hero ---------- */

.kl-hero-s {
	position: relative;
	overflow: hidden;
	padding-block: var(--space-7);
}
.kl-hero-s__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--space-6);
	max-width: var(--kl-wide);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.kl-hero-s__text { max-width: 52rem; }
.kl-single .kl-hero-s__eyebrow { margin-bottom: var(--space-3); }
.kl-single .kl-hero-s__eyebrow a { color: inherit; text-decoration: none; }
.kl-single .kl-hero-s__eyebrow a:hover { text-decoration: underline; }
.kl-single .kl-hero-s__title {
	max-width: 22em;
	margin: 0;
	color: var(--heading);
	font-family: var(--font-serif);
}
.kl-hero-s__lead {
	max-width: 36em;
	margin: var(--space-4) 0 0;
	font-size: var(--type-lead-size);
	line-height: var(--type-lead-line);
}
.kl-hero-s__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4) var(--space-6);
	margin-top: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border);
}
.kl-hero-s__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* The chapter number, drawn in a gold hairline */
.kl-hero-s__num {
	margin: 0 0 -0.12em;
	color: transparent;
	font-size: clamp(120px, 16vw, 240px);
	font-weight: 400;
	line-height: 0.8;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums;
	-webkit-text-stroke: 1px var(--rule);
	opacity: 0.7;
	user-select: none;
}
.kl-single--service:not(.kl-single--hub) .kl-hero-s__num { font-size: clamp(96px, 12vw, 180px); }

/* ---------- Article hero and cover ---------- */

.kl-hero-a {
	background: var(--bg-alt);
	padding-block: var(--space-7);
}
.kl-hero-a.has-photo { padding-bottom: calc(var(--space-8) + var(--space-6)); }
.kl-hero-a__inner {
	max-width: var(--kl-wide);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.kl-single .kl-hero-a__eyebrow a { color: inherit; text-decoration: none; }
.kl-single .kl-hero-a__eyebrow a:hover { text-decoration: underline; }
.kl-single .kl-hero-a__title {
	max-width: 24em;
	margin: var(--space-3) 0 0;
	color: var(--heading);
	font-family: var(--font-serif);
}
.kl-hero-a__lead {
	max-width: 40em;
	margin: var(--space-4) 0 0;
	font-size: var(--type-lead-size);
	line-height: var(--type-lead-line);
}
.kl-hero-a__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4) var(--space-6);
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border);
}

.kl-facts {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
}
.kl-facts > div {
	padding: 0 var(--space-4);
	border-left: 1px solid var(--border);
	line-height: 1.35;
}
.kl-facts dt {
	margin-bottom: 2px;
	color: var(--eyebrow);
	font-size: 12px;
	font-weight: var(--type-eyebrow-weight);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}
.kl-facts dd { margin: 0; }

.kl-cover {
	position: relative;
	max-width: calc(var(--kl-wide) - 2 * var(--gutter));
	margin: calc(-1 * (var(--space-8) + var(--space-5))) auto 0;
	padding-inline: var(--gutter);
}
.kl-cover__frame {
	position: relative;
	display: block;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: var(--bg-alt);
}
.kl-cover__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* The inner frame of the shield, as a hairline inside the photograph */
.kl-cover__frame::after {
	content: "";
	position: absolute;
	inset: var(--space-3);
	border: 1px solid var(--gold);
	pointer-events: none;
}
.kl-cover__caption {
	margin-top: var(--space-2);
	color: var(--fg-muted);
	font-size: var(--type-caption-size);
	font-style: italic;
}

/* ---------- Reading layout ---------- */

.kl-read {
	--kl-rail: 24px;
	--kl-fill: 0;
	--kl-end-y: 100%;
	--kl-turn: 0px;
	position: relative;
	display: grid;
	grid-template-columns: var(--kl-rail) minmax(0, 46rem) minmax(220px, 280px);
	grid-template-areas:
		"rail main side"
		"rail end end";
	column-gap: var(--space-6);
	justify-content: center;
	max-width: var(--kl-wide);
	margin-inline: auto;
	padding: var(--space-7) var(--gutter) var(--space-8);
}
.kl-read__main { grid-area: main; min-width: 0; }
.kl-read__side { grid-area: side; min-width: 0; }
.kl-read__end { grid-area: end; min-width: 0; margin-top: var(--space-7); }

/* The thread */
.kl-read__thread {
	grid-area: rail;
	position: relative;
	z-index: 1;
	height: var(--kl-end-y);
	pointer-events: none;
}
.kl-read__line,
.kl-read__fill {
	position: absolute;
	top: 0;
	left: 50%;
	height: 100%;
	transform-origin: top;
}
.kl-read__line {
	width: 1px;
	margin-left: -0.5px;
	background: var(--border);
}
.kl-read__fill {
	width: 2px;
	margin-left: -1px;
	background: var(--rule);
	transform: scaleY(var(--kl-fill));
	display: none;
}
.kl-read.is-ready .kl-read__fill { display: block; }

/* The turn into the person of contact */
.kl-read__turn {
	position: absolute;
	top: 100%;
	left: 50%;
	width: var(--kl-turn);
	height: 2px;
	margin-top: -1px;
	background: var(--rule);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.8s var(--kl-ease);
}
.kl-read.is-arrived .kl-read__turn { transform: scaleX(1); }

.kl-read__node {
	position: absolute;
	left: 50%;
	width: 11px;
	height: 11px;
	margin: -5.5px 0 0 -5.5px;
	border: 1.5px solid var(--rule);
	border-radius: 50%;
	background: var(--bg);
	transition: background-color 0.4s linear, border-color 0.4s linear, transform 0.5s var(--kl-ease);
}
.kl-read__node.is-passed { background: var(--rule); }
.kl-read__node.is-active {
	background: var(--accent);
	border-color: var(--accent);
	transform: scale(1.45);
}

/* ---------- Side column ---------- */

.kl-side {
	position: sticky;
	top: var(--kl-top);
	display: grid;
	gap: var(--space-6);
	max-height: calc(100vh - var(--kl-top) - var(--space-4));
	overflow-y: auto;
	scrollbar-width: thin;
}
.kl-side:empty { display: none; }
.kl-single .kl-side__title {
	margin: 0 0 var(--space-3);
	color: var(--eyebrow);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-line);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}
.kl-single .kl-side__title a { color: inherit; text-decoration: none; }
.kl-single .kl-side__title a:hover { text-decoration: underline; }

.kl-toc__list,
.kl-area__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--border);
}
.kl-single .kl-toc__link,
.kl-single .kl-area__link {
	position: relative;
	display: block;
	padding: 7px 0 7px var(--space-3);
	color: var(--fg-muted);
	font-size: 16px;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.3s linear;
}
.kl-toc__link::before,
.kl-area__link::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--rule);
	transform: scaleY(0);
	transition: transform 0.4s var(--kl-ease);
}
.kl-single .kl-toc__link:hover,
.kl-single .kl-area__link:hover { color: var(--fg); }
.kl-single .kl-toc__link.is-active,
.kl-single .kl-area__link[aria-current] { color: var(--heading); }
.kl-toc__link.is-active::before,
.kl-area__link[aria-current]::before { transform: scaleY(1); }
.kl-single .kl-area__link[aria-current] { font-weight: 600; }

.kl-area__link {
	display: grid !important;
	grid-template-columns: 3.2em minmax(0, 1fr);
}
.kl-area__ref {
	color: var(--eyebrow);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	line-height: 1.6;
}

/* On this page, folded: under 1024px, where there is no side column */
.kl-toc-fold {
	display: none;
	margin-bottom: var(--space-5);
	border: 1px solid var(--border);
}
.kl-toc-fold summary {
	position: relative;
	padding: var(--space-3) 48px var(--space-3) var(--space-3);
	color: var(--eyebrow);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}
.kl-toc-fold summary::-webkit-details-marker { display: none; }
.kl-toc-fold summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.kl-toc-fold[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.kl-toc--fold { padding: 0 var(--space-3) var(--space-3); }
.kl-toc--fold .kl-side__title { display: none; }

/* ---------- Text ---------- */

.kl-read__date {
	margin: 0 0 var(--space-4);
	color: var(--fg-muted);
	font-size: var(--type-caption-size);
	font-style: italic;
}

.kl-prose {
	font-size: 18px;
	line-height: 1.7;
}
.kl-prose > :first-child { margin-top: 0; }
.kl-prose p,
.kl-prose ul,
.kl-prose ol { margin: 0 0 1.1em; }
.kl-single .kl-prose h2 {
	margin: var(--space-7) 0 var(--space-4);
	color: var(--heading);
	font-family: var(--font-serif);
	scroll-margin-top: var(--kl-top);
}
.kl-single .kl-prose h3 {
	margin: var(--space-5) 0 var(--space-2);
	color: var(--heading);
	font-family: var(--font-serif);
	scroll-margin-top: var(--kl-top);
}
.kl-prose strong { font-weight: 600; }
.kl-single .kl-prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: var(--rule);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.kl-single .kl-prose a:hover { text-decoration-color: currentColor; }

.kl-prose ul { padding: 0; list-style: none; }
.kl-prose ul > li {
	position: relative;
	margin-bottom: 0.5em;
	padding-left: 1.4em;
}
.kl-prose ul > li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.68em;
	width: 6px;
	height: 6px;
	background: var(--rule);
}
.kl-prose ol { padding-left: 1.6em; }
.kl-prose ol > li { margin-bottom: 0.5em; padding-left: 0.3em; }
.kl-prose ol > li::marker { color: var(--heading); font-weight: 600; }

.kl-prose blockquote {
	margin: var(--space-5) 0;
	padding: 0 0 0 var(--space-4);
	border-left: 2px solid var(--rule);
	font-size: var(--type-quote-size);
	line-height: var(--type-quote-line);
	font-style: italic;
}

.kl-prose img { display: block; height: auto; }
.kl-prose figure { margin: var(--space-5) 0; }
.kl-prose figcaption { margin-top: var(--space-2); color: var(--fg-muted); font-size: var(--type-caption-size); }

/* Summary box: "In a nutshell", "The short answer" */
.kl-summary {
	position: relative;
	margin: 0 0 var(--space-6);
	padding: var(--space-5);
	background: var(--bg-alt);
	border-top: 2px solid var(--rule);
	font-size: 19px;
	line-height: 1.6;
}
.kl-summary p:last-child { margin-bottom: 0; }
.kl-summary .kl-summary__label {
	margin: 0 0 var(--space-2);
	color: var(--eyebrow);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-line);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}

.kl-prose .kl-note {
	margin-top: var(--space-5);
	padding-top: var(--space-3);
	border-top: 1px solid var(--border);
	color: var(--fg-muted);
	font-size: 16px;
}

/* Tables */
.kl-table {
	margin: var(--space-5) 0;
	overflow-x: auto;
	border: 1px solid var(--border);
}
.kl-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.45;
}
.kl-table th,
.kl-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.kl-table tr:last-child td { border-bottom: 0; }
.kl-table th,
.kl-table thead td {
	background: var(--bg-alt);
	color: var(--heading);
	font-weight: 600;
}

/* Frequently asked questions */
.kl-faq { border-top: 1px solid var(--border); }
.kl-faq:last-of-type { border-bottom: 1px solid var(--border); }
.kl-faq + :not(.kl-faq) { margin-top: var(--space-5); }
.kl-faq__q {
	position: relative;
	padding: var(--space-3) 48px var(--space-3) 0;
	color: var(--heading);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}
.kl-faq__q::-webkit-details-marker { display: none; }
.kl-faq__q::before,
.kl-faq__q::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 14px;
	height: 1.5px;
	background: var(--accent);
	transition: transform 0.3s var(--kl-ease);
}
.kl-faq__q::after { transform: rotate(90deg); }
.kl-faq[open] .kl-faq__q::after { transform: rotate(0deg); }
.kl-faq__a { padding: 0 48px var(--space-3) 0; }
.kl-faq__a p { margin: 0; }

/* ---------- Pages of a chapter ---------- */

.kl-chapter { margin-bottom: var(--space-7); }
.kl-single .kl-chapter__title { margin: 0 0 var(--space-4); color: var(--heading); font-family: var(--font-serif); }
.kl-single .kl-chapter__group {
	margin: var(--space-5) 0 var(--space-2);
	color: var(--eyebrow);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-line);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}
.kl-chapter__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--border);
}
.kl-chapter__list li { border-bottom: 1px solid var(--border); }
.kl-single .kl-chapter__link {
	display: grid;
	grid-template-columns: 3.4em minmax(0, 1fr) auto;
	align-items: baseline;
	gap: var(--space-3);
	padding: 14px var(--space-2);
	background: linear-gradient(var(--bg-alt), var(--bg-alt)) no-repeat 0 0 / 0 100%;
	color: var(--fg);
	text-decoration: none;
	transition: background-size 0.45s var(--kl-ease), color 0.3s ease;
}
.kl-single .kl-chapter__link:hover,
.kl-single .kl-chapter__link:focus-visible {
	background-size: 100% 100%;
	color: var(--heading);
}
.kl-chapter__ref {
	color: var(--eyebrow);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.kl-chapter__name { font-size: 19px; line-height: 1.35; }
.kl-arrow {
	flex: none;
	align-self: center;
	color: var(--accent);
	transition: transform 0.3s ease;
}
a:hover > .kl-arrow,
a:focus-visible > .kl-arrow { transform: translateX(4px); }

/* ---------- Related services ---------- */

.kl-related { margin-top: var(--space-7); }
.kl-single .kl-related__title { margin: 0 0 var(--space-4); color: var(--heading); font-family: var(--font-serif); }
.kl-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}
.kl-related__list li { display: flex; }
.kl-single .kl-related__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr;
	gap: var(--space-1) var(--space-3);
	width: 100%;
	padding: var(--space-4);
	border: 1px solid var(--border);
	background: linear-gradient(var(--bg-alt), var(--bg-alt)) no-repeat 0 0 / 0 100%;
	color: var(--fg);
	text-decoration: none;
	transition: background-size 0.45s var(--kl-ease), border-color 0.3s ease;
}
.kl-single .kl-related__link:hover,
.kl-single .kl-related__link:focus-visible {
	background-size: 100% 100%;
	border-color: var(--rule);
}
.kl-related__area {
	grid-column: 1 / -1;
	color: var(--eyebrow);
	font-size: 12px;
	font-weight: var(--type-eyebrow-weight);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}
.kl-related__name { color: var(--heading); font-size: 19px; line-height: 1.3; }
.kl-related__link .kl-arrow { align-self: end; }

/* ---------- Previous and next ---------- */

.kl-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: var(--space-7);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.kl-single .kl-pager__link {
	display: grid;
	gap: var(--space-1);
	padding: var(--space-4) var(--space-3);
	color: var(--fg);
	text-decoration: none;
}
.kl-pager__link--next { grid-column: 2; text-align: right; border-left: 1px solid var(--border); }
.kl-pager__dir {
	color: var(--eyebrow);
	font-size: 12px;
	font-weight: var(--type-eyebrow-weight);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}
.kl-pager__link--prev .kl-pager__dir::before { content: "\2190\00a0\00a0"; }
.kl-pager__link--next .kl-pager__dir::after { content: "\00a0\00a0\2192"; }
.kl-pager__name { color: var(--heading); font-size: 19px; line-height: 1.3; }
.kl-single .kl-pager__link:hover .kl-pager__name { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

/* ---------- Filed under ---------- */

.kl-filed {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin: var(--space-6) 0 0;
	font-size: var(--type-caption-size);
}
.kl-filed__label { margin-right: var(--space-2); color: var(--fg-muted); font-style: italic; }
.kl-single .kl-filed a,
.kl-filed__tag {
	padding: 3px 10px;
	border: 1px solid var(--border);
	color: var(--fg-muted);
	text-decoration: none;
}
.kl-single .kl-filed a { border-color: var(--border-strong); color: var(--accent); }
.kl-single .kl-filed a:hover { border-color: var(--accent); }

/* ---------- Person of contact ---------- */

.kl-panel {
	display: grid;
	grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
	gap: var(--space-6);
	align-items: start;
	padding: var(--space-6);
	background: var(--bg-alt);
	border-top: 2px solid var(--rule);
	scroll-margin-top: var(--kl-top);
}
.kl-single .kl-panel__name { margin: var(--space-3) 0 0; color: var(--heading); font-size: 20px; font-weight: 600; line-height: 1.3; }
.kl-panel__role { margin: 2px 0 0; color: var(--fg-muted); font-size: 16px; line-height: 1.4; }
.kl-single .kl-panel__title { margin: 0; color: var(--heading); font-family: var(--font-serif); }
.kl-panel__text { max-width: 36em; margin: var(--space-4) 0 0; }
.kl-panel__ways {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-5);
	margin: var(--space-4) 0 var(--space-5);
	padding: 0;
	list-style: none;
}
.kl-panel__ways li { display: flex; align-items: center; gap: var(--space-2); }
.kl-panel__ways svg { flex: none; color: var(--accent); }
.kl-single .kl-panel__ways a { color: var(--fg); text-decoration: none; }
.kl-single .kl-panel__ways a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- More insights ---------- */

.kl-journal .kl-more__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--space-3);
}

/* Three equal cards: no lead, unlike the page of all articles */
@media (min-width: 768px) {
	.kl-more .kl-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kl-more .kl-more__grid .kl-journal__cell.kl-journal__cell:nth-child(n) { grid-column: auto; }
	.kl-more .kl-more__grid .kl-journal__cell:nth-child(3) { display: none; }
}
@media (min-width: 1024px) {
	.kl-more .kl-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kl-more .kl-more__grid .kl-journal__cell:nth-child(3) { display: flex; }
	.kl-more .kl-more__grid .kl-journal__cell:nth-child(2) .kl-card__photo { flex: none; }
	.kl-more .kl-more__grid .kl-journal__cell:nth-child(2) .kl-card__body { flex: 1 1 auto; }
}

/* ---------- Entrances ---------- */

.kl-read.is-ready [data-kl-rise] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--kl-ease), transform 0.8s var(--kl-ease);
}
.kl-read.is-ready [data-kl-rise].is-in { opacity: 1; transform: none; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1023px) {
	.kl-read {
		grid-template-columns: var(--kl-rail) minmax(0, 46rem);
		grid-template-areas:
			"rail main"
			"rail side"
			"rail end";
		column-gap: var(--space-5);
	}
	.kl-toc-fold { display: block; }
	.kl-toc--side { display: none; }
	.kl-side {
		position: static;
		max-height: none;
		overflow: visible;
		margin-top: var(--space-7);
	}
	.kl-read__side:not(:has(.kl-area)) { display: none; }
	.kl-hero-s__num { font-size: 120px; }
	.kl-panel { grid-template-columns: minmax(0, 1fr); }
	.kl-portrait--lg { max-width: 180px; }
}

@media (max-width: 767px) {
	.kl-single { --kl-top: 88px; }
	.kl-hero-s,
	.kl-hero-a { padding-block: var(--space-6); }
	.kl-hero-a.has-photo { padding-bottom: calc(var(--space-7) + var(--space-5)); }
	.kl-cover { margin-top: calc(-1 * var(--space-7)); }
	.kl-cover__frame { aspect-ratio: 4 / 3; }
	.kl-cover__frame::after { inset: var(--space-2); }
	/* Breadcrumbs: only the way up, one level */
	.kl-crumbs li { display: none; }
	.kl-crumbs li:nth-last-child(2) { display: block; }
	.kl-crumbs li:nth-last-child(2)::before {
		content: "\2190";
		width: auto;
		height: auto;
		margin: 0 8px 0 0;
		background: none;
		color: var(--rule);
	}
	.kl-crumbs ol { margin-bottom: var(--space-4); }
	/* On a page of an area the way up already names the area */
	.kl-single--service:not(.kl-single--hub) .kl-hero-s__eyebrow,
	.kl-hero-a__eyebrow { display: none; }
	.kl-single .kl-hero-a__title { margin-top: 0; }
	.kl-hero-s__lead,
	.kl-hero-a__lead { font-size: 18px; }

	.kl-hero-s__inner { grid-template-columns: minmax(0, 1fr); }
	.kl-hero-s__text { position: relative; z-index: 1; }
	.kl-hero-s__num {
		position: absolute;
		top: calc(-1 * var(--space-3));
		right: var(--space-3);
		font-size: 112px;
		opacity: 0.35;
	}
	.kl-single--service:not(.kl-single--hub) .kl-hero-s__num { font-size: 88px; }
	.kl-hero-s__actions,
	.kl-hero-s__actions .btn { width: 100%; }
	.kl-facts > div:first-child { padding-left: 0; border-left: 0; }

	/* The thread needs width the text cannot spare on a phone */
	.kl-read {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "main" "side" "end";
		padding-block: var(--space-6);
	}
	.kl-read__thread { display: none; }
	.kl-prose { font-size: 17px; }
	.kl-summary { padding: var(--space-4); font-size: 18px; }
	.kl-panel { gap: var(--space-5); padding: var(--space-5) var(--space-4); }
	/* Portrait beside the name, so the heading stays near the top */
	.kl-panel__person {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: var(--space-3);
		align-content: center;
	}
	.kl-panel__person .kl-portrait--lg { grid-row: span 2; width: 96px; }
	.kl-single .kl-panel__name { align-self: end; margin-top: 0; }
	.kl-panel__role { align-self: start; }
	.kl-panel .btn.btn { width: 100%; padding-inline: var(--space-3); white-space: nowrap; }
	.kl-pager { grid-template-columns: minmax(0, 1fr); }
	.kl-pager__link--next { grid-column: 1; border-left: 0; border-top: 1px solid var(--border); }
	.kl-chapter__link { grid-template-columns: 2.8em minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
	.kl-read__node,
	.kl-read__turn,
	.kl-toc__link::before,
	.kl-area__link::before,
	.kl-chapter__link,
	.kl-related__link,
	.kl-arrow,
	.kl-faq__q::after { transition: none; }
	.kl-read.is-ready [data-kl-rise] { opacity: 1; transform: none; transition: none; }
}
