/* =========================================================================
   Krakti — single.css
   Single-article + long-form prose styles. Registered always, enqueued
   ONLY when is_single() (handle 'krakti-single', deps: krakti-utilities).

   The reading experience: serif prose at an editorial measure (~68ch),
   lead-paragraph emphasis, designed blockquotes/pullquotes, figures with
   captions, accent links, list rhythm, in-prose subheads, and the article
   furniture (breadcrumb, byline, share, tags, author box, related).

   Tokens only — every color/space/size resolves to a CSS custom property
   defined in tokens.css. No literal fallbacks: if a token is ever removed
   the cascade fails loudly instead of silently diverging from the system.
   Mobile-first; min-width breakpoints at ~640px and ~1024px (--k-bp-lg).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. ARTICLE SHELL
   single.php wraps content in .k-content-grid (main + sidebar). On mobile
   the article is a single column; the sticky desktop share rail and the
   sidebar only appear at the large breakpoint.
   ------------------------------------------------------------------------- */

.k-article {
	/* Local reading measure used by the header + prose children. */
	--k-article-measure: var(--k-measure);
	position: relative;
	margin-block-end: var(--k-space-section);
}

/* Center the article's in-flow blocks on a comfortable measure while the
   featured figure and full-bleed media can break out (handled below). */
.k-article__header,
.k-article__body,
.k-article__footer {
	width: 100%;
	max-width: var(--k-article-measure);
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
   2. ARTICLE HEADER
   Breadcrumb -> eyebrow -> H1 -> dek -> byline -> featured figure.
   Intentional vertical rhythm: tight between kicker and title, generous
   before the byline, larger gap before the LCP image.
   ------------------------------------------------------------------------- */

.k-article__header {
	padding-block-start: var(--k-space-md);
	padding-block-end: var(--k-space-md);
}

/* RHYTHM CONTRACT (breathe around top-level structure): put the single loose
   breath between the header block and the body on the LAST header element so
   it doesn't STACK with a child's own bottom margin. When a featured figure
   closes the header it owns that gap; otherwise the byline does. */
.k-article__header > :last-child {
	margin-block-end: 0;
}

.k-article__header .k-figure:last-child,
.k-article__header .k-byline:last-child {
	margin-block-end: var(--k-rhythm-loose);
}

/* Breadcrumb (Home / Categorie / Titel) */
.k-breadcrumb {
	margin-block-end: var(--k-space-sm);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	line-height: var(--k-lh-meta);
	color: var(--k-color-muted);
}

.k-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--k-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.k-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: var(--k-space-2xs);
}

.k-breadcrumb__link {
	color: var(--k-color-muted);
	text-decoration: none;
	transition: color var(--k-dur-fast) var(--k-ease-standard);
}

.k-breadcrumb__link:hover,
.k-breadcrumb__link:focus-visible {
	color: var(--k-color-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.k-breadcrumb__sep {
	color: var(--k-color-faint);
	user-select: none;
}

.k-breadcrumb__current {
	color: var(--k-color-soft);
	/* Keep the current crumb from blowing out the line on long titles. */
	max-width: 22ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Category eyebrow / kicker above the headline. */
.k-article__eyebrow,
.k-eyebrow {
	display: inline-block;
	margin-block-end: var(--k-space-2xs);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-meta);
	font-weight: var(--k-weight-bold);
	letter-spacing: var(--k-ls-label);
	line-height: 1;
	text-transform: uppercase;
	color: var(--k-color-accent);
	text-decoration: none;
}

/* The HEADLINE kicker (article header only) gets a short accent tick so it
   reads as a deliberate editorial mark, not just coloured text. Scoped to the
   header eyebrow so related-card kickers stay clean. */
.k-article__header .k-article__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--k-space-2xs);
	margin-block-end: var(--k-space-xs);
}

.k-article__header .k-article__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 1.5rem;
	block-size: 2px;
	background: currentColor;
	border-radius: var(--k-radius-pill);
	transition: inline-size var(--k-dur-fast) var(--k-ease-standard);
}

a.k-article__eyebrow:hover,
a.k-article__eyebrow:focus-visible,
a.k-eyebrow:hover,
a.k-eyebrow:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* The header kicker is inline-flex (so text-decoration won't render); give it a
   flex-native hover instead — the accent tick extends and the colour deepens. */
.k-article__header a.k-article__eyebrow:hover,
.k-article__header a.k-article__eyebrow:focus-visible {
	color: var(--k-color-accent-strong);
	text-decoration: none;
}

.k-article__header a.k-article__eyebrow:hover::before,
.k-article__header a.k-article__eyebrow:focus-visible::before {
	inline-size: 2.25rem;
}

/* Big serif display headline — one h1 per page. */
.k-article__title {
	margin-block: 0 var(--k-space-sm);
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-h1);
	font-weight: var(--k-weight-display);
	line-height: var(--k-lh-display);
	letter-spacing: var(--k-ls-tight);
	color: var(--k-color-ink);
	text-wrap: balance;
}

/* Standfirst / dek */
.k-article__dek {
	margin-block: 0 var(--k-space-md);
	max-width: 60ch;
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-dek);
	font-weight: var(--k-weight-regular);
	line-height: var(--k-lh-snug);
	color: var(--k-color-soft);
	text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   3. BYLINE
   author (avatar + link) · date · leestijd · relatief. Sans, muted, with
   dot separators. Wraps gracefully on narrow screens.
   ------------------------------------------------------------------------- */

.k-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--k-space-2xs) var(--k-space-xs);
	margin-block: 0 var(--k-space-md);
	padding-block: var(--k-space-sm);
	border-block: 1px solid var(--k-color-rule);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	line-height: var(--k-lh-meta);
	color: var(--k-color-muted);
}

.k-byline__avatar,
.k-byline__avatar-img {
	flex: 0 0 auto;
	width: var(--k-avatar-sm);
	height: var(--k-avatar-sm);
	border-radius: var(--k-radius-round);
	object-fit: cover;
	background: var(--k-color-accent-soft);
	/* Hairline ring so the avatar reads as a placed element, not a floating
	   crop, against the warm paper. */
	box-shadow: 0 0 0 1px var(--k-color-rule);
}

.k-byline__author {
	font-weight: var(--k-weight-semibold);
	color: var(--k-color-ink);
	text-decoration: none;
}

.k-byline__author:hover,
.k-byline__author:focus-visible {
	color: var(--k-color-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.k-byline__sep {
	color: var(--k-color-faint);
	user-select: none;
}

.k-byline__date,
.k-byline__time {
	color: var(--k-color-muted);
}

.k-byline__readtime {
	display: inline-flex;
	align-items: center;
	gap: var(--k-space-3xs);
	color: var(--k-color-soft);
}

.k-readtime {
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	color: var(--k-color-muted);
}

/* -------------------------------------------------------------------------
   4. FEATURED FIGURE (LCP)
   Breaks out slightly wider than the prose measure for editorial impact,
   with a hairline-topped caption + credit. Explicit aspect prevents CLS.
   ------------------------------------------------------------------------- */

.k-figure {
	/* Pull the hero figure wider than the reading measure on large screens. */
	margin-block: var(--k-space-md) var(--k-space-lg);
	margin-inline: 0;
}

.k-figure__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--k-radius-md);
	background: var(--k-color-accent-soft);
	/* The LCP figure is the lead plane of the article — rest it at sm so it
	   reads as a surface above the paper, not a flat inline image (ELEVATION
	   CONTRACT: one resting surface, the rest of the prose stays flat). */
	box-shadow: var(--k-shadow-sm);
}

.k-figure__caption {
	margin-block-start: var(--k-space-2xs);
	padding-block-start: var(--k-space-2xs);
	border-block-start: 1px solid var(--k-color-rule);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-meta);
	line-height: var(--k-lh-snug);
	color: var(--k-color-muted);
}

/* -------------------------------------------------------------------------
   5. PROSE — the editorial body
   Serif body, comfortable measure, paragraph rhythm via flow spacing.
   ------------------------------------------------------------------------- */

.k-prose {
	max-width: var(--k-article-measure, var(--k-measure));
	margin-inline: auto;
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-prose);
	line-height: var(--k-lh-prose);
	color: var(--k-color-ink);
	/* Better hyphenation/justification feel without forcing justify. */
	text-wrap: pretty;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

/* Vertical rhythm: flow spacing between direct children. */
.k-prose > * + * {
	margin-block-start: var(--k-prose-flow);
}

.k-prose > p {
	margin-block: 0;
}

/* Lead / drop paragraph emphasis: the first paragraph reads a clear step
   larger than body so the article OPENS with weight, and a refined drop-cap
   anchors that opening. The step is composed off the prose clamp (not a fixed
   px) so it scales with the body and stays calm on a 360px column. Disabled
   for short locales via the :first-letter guard (browsers ignore on empty). */
.k-prose > p:first-of-type {
	font-size: calc(var(--k-fs-prose) * 1.08);
	line-height: var(--k-lh-snug);
	color: var(--k-color-ink);
	text-wrap: pretty;
}

.k-prose > p:first-of-type::first-letter {
	float: left;
	/* Optical inset: a serif cap reads better nudged off the left margin and
	   sitting flush to the first two lines. */
	margin-inline: -0.04em 0.08em;
	margin-block-start: 0.04em;
	padding-inline-end: 0.02em;
	font-family: var(--k-font-serif);
	font-size: 3.3em;
	font-weight: var(--k-weight-display);
	line-height: 0.66;
	letter-spacing: var(--k-ls-display);
	color: var(--k-color-accent);
}

/* In-prose subheads. Asymmetric rhythm: generous space ABOVE (a real section
   break), tighter BELOW so the heading visibly belongs to the text it
   introduces. The following paragraph's flow margin is trimmed to bind the
   pair. */
.k-prose h2 {
	margin-block-start: var(--k-space-xl);
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-h3);
	font-weight: var(--k-weight-display);
	line-height: var(--k-lh-heading);
	letter-spacing: var(--k-ls-heading);
	color: var(--k-color-ink);
	text-wrap: balance;
}

.k-prose h3 {
	margin-block-start: var(--k-space-lg);
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-h4);
	font-weight: var(--k-weight-semibold);
	line-height: var(--k-lh-snug);
	letter-spacing: var(--k-ls-heading);
	color: var(--k-color-ink);
	text-wrap: balance;
}

/* Bind a subhead to the paragraph it introduces (tighter than the default
   prose flow). */
.k-prose h2 + *,
.k-prose h3 + *,
.k-prose h4 + * {
	margin-block-start: var(--k-space-sm);
}

.k-prose h4 {
	margin-block-start: var(--k-space-md);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-body);
	font-weight: var(--k-weight-bold);
	letter-spacing: 0.01em;
	color: var(--k-color-soft);
}

/* Links inside prose: accent underline with refined offset. */
.k-prose a {
	color: var(--k-color-accent);
	text-decoration: underline;
	text-decoration-thickness: from-font;
	text-underline-offset: 0.18em;
	text-decoration-color: color-mix(in oklch, var(--k-color-accent) 45%, transparent);
	transition: text-decoration-color var(--k-dur-fast) var(--k-ease-standard),
		color var(--k-dur-fast) var(--k-ease-standard);
}

.k-prose a:hover,
.k-prose a:focus-visible {
	text-decoration-color: currentColor;
	color: var(--k-color-accent-strong);
}

/* Emphasis */
.k-prose strong,
.k-prose b {
	font-weight: var(--k-weight-bold);
}

.k-prose em,
.k-prose i {
	font-style: italic;
}

/* Lists */
.k-prose ul,
.k-prose ol {
	margin-block: 0;
	padding-inline-start: var(--k-space-md);
}

.k-prose li + li {
	margin-block-start: 0.5em;
}

.k-prose ul > li::marker {
	color: var(--k-color-accent);
}

.k-prose ol > li::marker {
	font-family: var(--k-font-sans);
	font-weight: var(--k-weight-bold);
	color: var(--k-color-accent);
}

.k-prose li > ul,
.k-prose li > ol {
	margin-block-start: 0.5em;
}

/* Blockquote — left accent rule + a faint paper well and an oversized opening
   quotation mark, so a pulled quote reads as a designed callout rather than an
   indented paragraph. The mark is decorative (aria-hidden by nature of ::before
   generated content) and tinted to a low-emphasis accent. */
.k-prose blockquote {
	position: relative;
	margin-block: var(--k-space-lg);
	margin-inline: 0;
	padding-block: var(--k-space-sm);
	padding-inline: var(--k-space-md);
	border-inline-start: var(--k-rule-accent) solid var(--k-color-accent);
	border-start-end-radius: var(--k-radius-md);
	border-end-end-radius: var(--k-radius-md);
	background: var(--k-color-surface-2);
	font-size: var(--k-fs-quote);
	font-style: italic;
	line-height: var(--k-lh-snug);
	color: var(--k-color-soft);
}

/* A serif opening quote seated in the left padding band (between the accent
   rule and the text column) — narrow enough to live in the gutter, so it adds
   character without colliding with the quote body or clipping at the viewport
   edge on mobile. */
.k-prose blockquote::before {
	content: "\201C"; /* left double quotation mark */
	position: absolute;
	inset-block-start: 0.04em;
	inset-inline-start: 0.12em;
	font-family: var(--k-font-serif);
	font-size: 1.7em;
	font-weight: var(--k-weight-display);
	line-height: 1;
	color: color-mix(in oklch, var(--k-color-accent) 50%, transparent);
	pointer-events: none;
}

.k-prose blockquote p {
	margin-block: 0;
}

.k-prose blockquote p + p {
	margin-block-start: 0.7em;
}

.k-prose blockquote cite {
	display: block;
	margin-block-start: 0.6em;
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	font-style: normal;
	font-weight: var(--k-weight-semibold);
	color: var(--k-color-muted);
}

.k-prose blockquote cite::before {
	content: "\2014\00a0"; /* em dash + nbsp */
}

/* Standalone pull quote (.k-pullquote) — display-scale, accent rule both
   sides on wide screens, centered emphasis. */
.k-pullquote {
	margin-block: var(--k-space-lg);
	margin-inline: 0;
	padding-block: var(--k-space-sm);
	padding-inline: 0;
	border-block: var(--k-rule-accent) solid var(--k-color-accent);
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-pull);
	font-weight: var(--k-weight-medium);
	line-height: var(--k-lh-display);
	letter-spacing: var(--k-ls-heading);
	color: var(--k-color-ink);
	text-wrap: balance;
}

.k-pullquote cite {
	display: flex;
	align-items: center;
	gap: var(--k-space-2xs);
	margin-block-start: var(--k-space-sm);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	font-style: normal;
	font-weight: var(--k-weight-semibold);
	letter-spacing: var(--k-ls-label);
	text-transform: uppercase;
	color: var(--k-color-accent);
}

/* Lead rule for the attribution — echoes the header kicker tick so the
   pullquote signs off with the same editorial mark. */
.k-pullquote cite::before {
	content: "";
	inline-size: 1.5rem;
	block-size: 2px;
	background: currentColor;
	border-radius: var(--k-radius-pill);
}

/* Inline figures / images inside the body fill the measure. */
.k-prose figure {
	margin-block: var(--k-space-md);
	margin-inline: 0;
}

.k-prose img,
.k-prose video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--k-radius-md);
	background: var(--k-color-accent-soft);
}

.k-prose figure > figcaption,
.k-prose .wp-caption-text {
	margin-block-start: var(--k-space-2xs);
	padding-block-start: var(--k-space-2xs);
	border-block-start: 1px solid var(--k-color-rule);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-meta);
	line-height: var(--k-lh-snug);
	color: var(--k-color-muted);
}

/* WordPress alignment helpers within prose. */
.k-prose .alignleft {
	float: left;
	margin-inline: 0 var(--k-space-md);
	margin-block: 0.2em var(--k-space-xs);
	max-width: 50%;
}

.k-prose .alignright {
	float: right;
	margin-inline: var(--k-space-md) 0;
	margin-block: 0.2em var(--k-space-xs);
	max-width: 50%;
}

.k-prose .aligncenter {
	margin-inline: auto;
}

/* Inline code + preformatted blocks. */
.k-prose code,
.k-prose kbd,
.k-prose samp {
	padding: 0.1em 0.35em;
	font-family: var(--k-font-mono);
	font-size: 0.875em;
	background: var(--k-color-surface-sunk);
	border-radius: var(--k-radius-sm);
}

.k-prose pre {
	overflow-x: auto;
	padding: var(--k-space-sm);
	font-family: var(--k-font-mono);
	font-size: var(--k-fs-small);
	line-height: var(--k-lh-snug);
	color: var(--k-color-on-ink);
	background: var(--k-color-ink-deep);
	border-radius: var(--k-radius-md);
}

.k-prose pre code {
	padding: 0;
	font-size: 1em;
	background: transparent;
	color: inherit;
}

/* Tables */
.k-prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
}

.k-prose th,
.k-prose td {
	padding: var(--k-space-2xs) var(--k-space-xs);
	text-align: start;
	border-block-end: 1px solid var(--k-color-rule);
}

.k-prose thead th {
	font-weight: var(--k-weight-bold);
	color: var(--k-color-ink);
	border-block-end-width: 2px;
}

/* Horizontal rule between thoughts — a centered editorial mark rather than a
   plain full-bleed line, so a section break reads as intentional. */
.k-prose hr {
	margin-block: var(--k-space-xl);
	margin-inline: auto;
	border: 0;
	block-size: var(--k-rule-accent);
	inline-size: var(--k-space-2xl);
	background: var(--k-color-accent);
	border-radius: var(--k-radius-pill);
	opacity: 0.85;
}

/* Footnotes (WordPress core footnotes block + classic [ref] anchors).
   In-text marker: a compact accent superscript number that reads as a cited
   reference (accent colour carries the affordance; the underline is dropped so
   it doesn't disrupt the line, and returns on hover/focus).
   Reference list: a quiet, smaller sans block set off by a hairline. */
.k-prose sup {
	font-size: 0.7em;
	line-height: 0;
}

.k-prose sup a {
	font-weight: var(--k-weight-bold);
	text-decoration-color: transparent;
}

.k-prose sup a:hover,
.k-prose sup a:focus-visible {
	text-decoration-color: currentColor;
}

.k-prose .wp-block-footnotes {
	margin-block-start: var(--k-space-xl);
	padding-block-start: var(--k-space-md);
	border-block-start: 1px solid var(--k-color-rule);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	line-height: var(--k-lh-body);
	color: var(--k-color-muted);
}

.k-prose .wp-block-footnotes li {
	margin-block-start: var(--k-space-2xs);
}

.k-prose .wp-block-footnotes li::marker {
	color: var(--k-color-accent);
}

/* Return-to-text arrow on each footnote. */
.k-prose .wp-block-footnotes a[href^="#footnote-anchor"] {
	color: var(--k-color-accent);
}

/* Multi-page article links (wp_link_pages). */
.k-article__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--k-space-2xs);
	margin-block-start: var(--k-space-md);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
}

.k-article__pages-label {
	color: var(--k-color-muted);
}

/* Each page chip (current page = bare text in the span; other pages = an <a>
   inside the span). The span carries the chip shell; the inner link inherits. */
.k-article__page-link {
	display: inline-flex;
	min-width: var(--k-tap-sm);
	min-height: var(--k-tap-sm);
	align-items: center;
	justify-content: center;
	padding-inline: var(--k-space-2xs);
	font-weight: var(--k-weight-semibold);
	border: 1px solid var(--k-color-rule);
	border-radius: var(--k-radius-sm);
	color: var(--k-color-ink);
	transition: background var(--k-dur-fast) var(--k-ease-standard),
		border-color var(--k-dur-fast) var(--k-ease-standard),
		color var(--k-dur-fast) var(--k-ease-standard);
}

.k-article__page-link a {
	display: contents;
	color: inherit;
	text-decoration: none;
}

/* Hover/focus the linkable chips (those containing an anchor). */
.k-article__page-link:has(a):hover,
.k-article__page-link:has(a):focus-within {
	color: var(--k-color-accent-strong);
	background: var(--k-color-accent-soft);
	border-color: var(--k-color-accent);
}

/* The current page renders as a span WITHOUT an inner anchor — fill it so the
   reader sees where they are. */
.k-article__page-link:not(:has(a)) {
	font-weight: var(--k-weight-bold);
	color: var(--k-color-on-accent);
	background: var(--k-color-accent);
	border-color: var(--k-color-accent);
}

/* -------------------------------------------------------------------------
   6. SHARE — single (labeled) variant + sticky rails
   Mobile: a fixed bottom bar puts WhatsApp front-and-center (culturally
   dominant). Desktop: a sticky left rail in the gutter.
   ------------------------------------------------------------------------- */

.k-article__share {
	margin-block: var(--k-space-md);
}

.k-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--k-space-xs);
}

.k-share__label {
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	font-weight: var(--k-weight-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--k-color-muted);
}

.k-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--k-space-2xs);
	min-width: var(--k-tap);
	min-height: var(--k-tap);
	padding-inline: var(--k-space-sm);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	font-weight: var(--k-weight-semibold);
	color: var(--k-color-ink);
	background: var(--k-color-surface);
	border: 1px solid var(--k-color-rule);
	border-radius: var(--k-radius-pill);
	cursor: pointer;
	text-decoration: none;
	transition: background var(--k-dur-fast) var(--k-ease-standard),
		border-color var(--k-dur-fast) var(--k-ease-standard),
		color var(--k-dur-fast) var(--k-ease-standard),
		box-shadow var(--k-dur-fast) var(--k-ease-standard),
		transform var(--k-dur-fast) var(--k-ease-standard);
}

.k-share__btn:hover {
	background: var(--k-color-accent-soft);
	border-color: var(--k-color-accent);
	color: var(--k-color-accent-strong);
	/* Tactile lift on hover (elevation language: hover = rise + shadow). */
	transform: translateY(-1px);
	box-shadow: var(--k-shadow-sm);
}

.k-share__btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.k-share__btn svg,
.k-share__icon {
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
	fill: currentColor;
}

/* WhatsApp — prominent, first in order, brand-green tint. */
.k-share__btn--whatsapp {
	color: var(--k-color-on-live);
	background: var(--k-color-live);
	border-color: var(--k-color-live);
}

.k-share__btn--whatsapp:hover {
	background: var(--k-color-live-strong);
	border-color: var(--k-color-live-strong);
	color: var(--k-color-on-live);
}

.k-share__btn--facebook:hover {
	color: var(--k-color-accent);
}

.k-share__btn--copy {
	position: relative;
}

.k-share__btn--copy.is-copied {
	color: var(--k-color-live);
	border-color: var(--k-color-live);
}

/* Copy-link feedback toast ("Link gekopieerd"). */
.k-share__feedback {
	display: inline-block;
	margin-inline-start: var(--k-space-2xs);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-meta);
	font-weight: var(--k-weight-semibold);
	color: var(--k-color-live);
	opacity: 0;
	transform: translateY(2px);
	transition: opacity var(--k-dur-normal) var(--k-ease-standard),
		transform var(--k-dur-normal) var(--k-ease-standard);
	pointer-events: none;
}

.k-share__feedback.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Single (article) variant shows labels and reads larger. */
.k-share--single {
	padding-block: var(--k-space-sm);
	border-block: 1px solid var(--k-color-rule);
}

/* The in-flow inline share (rendered in the footer) is the mobile default;
   the sticky variants are progressively enhanced at larger widths. */
.k-article__share--sticky {
	/* On mobile the sticky-marked row floats as a fixed bottom bar so the
	   prominent WhatsApp action is always reachable while reading. */
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: var(--k-z-share-bar);
	margin: 0;
	padding: var(--k-space-xs) var(--k-space-sm);
	padding-block-end: calc(var(--k-space-xs) + env(safe-area-inset-bottom, 0px));
	background: color-mix(in oklch, var(--k-color-surface) 92%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-block-start: 1px solid var(--k-color-rule);
	box-shadow: var(--k-shadow-bar);
}

.k-article__share--sticky .k-share {
	justify-content: center;
}

.k-article__share--sticky .k-share--single {
	padding-block: 0;
	border-block: 0;
}

/* Hide the bottom-bar label on mobile to keep the WhatsApp action dominant. */
.k-article__share--sticky .k-share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Keep the in-flow inline share clear of the fixed bar's footprint and
   avoid showing two identical rows at once on mobile. */
.k-article__share--inline {
	margin-block-end: var(--k-space-lg);
}

/* -------------------------------------------------------------------------
   7. TAGS
   ------------------------------------------------------------------------- */

.k-tags {
	margin-block: var(--k-space-lg);
	padding-block-start: var(--k-space-md);
	border-block-start: 1px solid var(--k-color-rule);
}

.k-tags__label {
	margin: 0 0 var(--k-space-xs);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	font-weight: var(--k-weight-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--k-color-muted);
}

.k-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--k-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.k-tags__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--k-tap-sm);
	padding-inline: var(--k-space-xs);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	font-weight: var(--k-weight-medium);
	color: var(--k-color-soft);
	background: transparent;
	border: 1px solid var(--k-color-rule);
	border-radius: var(--k-radius-pill);
	text-decoration: none;
	transition: background var(--k-dur-fast) var(--k-ease-standard),
		border-color var(--k-dur-fast) var(--k-ease-standard),
		color var(--k-dur-fast) var(--k-ease-standard),
		transform var(--k-dur-fast) var(--k-ease-standard);
}

.k-tags__link::before {
	content: "#";
	margin-inline-end: 0.15em;
	font-weight: var(--k-weight-bold);
	color: var(--k-color-accent);
}

.k-tags__link:hover,
.k-tags__link:focus-visible {
	color: var(--k-color-accent-strong);
	background: var(--k-color-accent-soft);
	border-color: var(--k-color-accent);
	transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   8. AUTHOR BOX
   Surface card: avatar + name + bio + link. Stacks on mobile, row on >=640.
   ------------------------------------------------------------------------- */

.k-authorbox {
	display: flex;
	flex-direction: column;
	gap: var(--k-space-sm);
	margin-block: var(--k-space-xl);
	padding: var(--k-space-md);
	background: var(--k-color-surface);
	border: 1px solid var(--k-color-rule);
	/* Accent top edge + resting elevation: the author box is a designed
	   callout, a plane above the paper, not a flat bordered div (ELEVATION
	   CONTRACT: sm = resting surface card). */
	border-block-start: 2px solid var(--k-color-accent);
	border-radius: var(--k-radius-lg);
	box-shadow: var(--k-shadow-sm);
}

.k-authorbox__avatar {
	flex: 0 0 auto;
}

.k-authorbox__avatar-img,
.k-authorbox__avatar img {
	width: var(--k-avatar-lg);
	height: var(--k-avatar-lg);
	border-radius: var(--k-radius-round);
	object-fit: cover;
	background: var(--k-color-accent-soft);
	/* Soft accent ring ties the author portrait to the brand. */
	box-shadow: 0 0 0 2px var(--k-color-surface),
		0 0 0 3px var(--k-color-accent-soft-2);
}

.k-authorbox__name {
	margin: 0 0 var(--k-space-2xs);
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-body);
	font-weight: var(--k-weight-bold);
	color: var(--k-color-ink);
}

.k-authorbox__name .k-authorbox__link {
	color: inherit;
	text-decoration: none;
}

.k-authorbox__bio {
	margin: 0;
	font-family: var(--k-font-sans);
	font-size: var(--k-fs-small);
	line-height: var(--k-lh-snug);
	color: var(--k-color-soft);
}

.k-authorbox__link {
	color: var(--k-color-accent);
	text-decoration: none;
	font-weight: var(--k-weight-semibold);
}

.k-authorbox__link:hover,
.k-authorbox__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.k-authorbox__more {
	display: inline-flex;
	align-items: center;
	gap: var(--k-space-3xs);
	margin-block-start: var(--k-space-xs);
	font-size: var(--k-fs-small);
}

.k-authorbox__more::after {
	content: "\2192"; /* rightwards arrow */
	transition: transform var(--k-dur-fast) var(--k-ease-standard);
}

.k-authorbox__more:hover::after,
.k-authorbox__more:focus-visible::after {
	transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   9. RELATED ("Gerelateerd")
   Single column on mobile; the grid columns kick in at the breakpoints.
   Card cosmetics live in components.css — here only block spacing + grid.
   ------------------------------------------------------------------------- */

.k-related {
	margin-block: var(--k-space-2xl) 0;
	padding-block-start: var(--k-rhythm-header);
	border-block-start: 1px solid var(--k-color-rule-strong);
}

/* "Gerelateerd" reads as a real section header: serif display + a short accent
   tick that echoes the article kicker, so the related block feels authored
   rather than a default WordPress appendage. */
.k-related__title {
	display: flex;
	align-items: center;
	gap: var(--k-space-xs);
	margin: 0 0 var(--k-rhythm-header);
	font-family: var(--k-font-serif);
	font-size: var(--k-fs-h3);
	font-weight: var(--k-weight-display);
	line-height: var(--k-lh-display);
	letter-spacing: var(--k-ls-heading);
	color: var(--k-color-ink);
	text-wrap: balance;
}

.k-related__title::before {
	content: "";
	flex: 0 0 auto;
	inline-size: var(--k-space-lg);
	block-size: var(--k-rule-accent);
	background: var(--k-color-accent);
	border-radius: var(--k-radius-pill);
}

.k-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--k-gap-grid);
}

/* -------------------------------------------------------------------------
   10. COMMENTS spacing (cosmetics live in components.css; here breathing).
   ------------------------------------------------------------------------- */

.k-comments {
	max-width: var(--k-article-measure, var(--k-measure));
	margin-inline: auto;
	margin-block-start: var(--k-space-2xl);
	padding-block-start: var(--k-rhythm-header);
	border-block-start: 1px solid var(--k-color-rule);
}

/* =========================================================================
   RESPONSIVE — small tablet ~640px
   ========================================================================= */

@media (min-width: 40em) {

	.k-authorbox {
		flex-direction: row;
		align-items: flex-start;
	}

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

	/* Drop-cap grows with the wider measure on tablet+. */
	.k-prose > p:first-of-type::first-letter {
		font-size: 3.7em;
	}
}

/* =========================================================================
   RESPONSIVE — desktop ~1024px (--k-bp-lg)
   Sticky left share rail; figure breaks out wider than the measure;
   related grid becomes 3-up; the mobile bottom share bar is retired.
   ========================================================================= */

@media (min-width: 64em) {

	/* Article body sits in a relative context so the share rail can stick
	   to the left gutter without overlapping the reading measure. */
	.k-article {
		padding-inline-start: var(--k-share-rail);
	}

	/* Featured figure escapes the measure for editorial impact. */
	.k-article__header .k-figure {
		width: calc(100% + var(--k-share-rail));
		margin-inline-start: calc(var(--k-share-rail) * -1);
	}

	/* Sticky desktop share rail: vertical, pinned in the left gutter. */
	.k-article__share--sticky {
		position: sticky;
		inset-block-start: var(--k-sticky-top);
		inset-inline: auto;
		inset-block-end: auto;
		float: left;
		width: var(--k-share-rail);
		margin-inline-start: calc(var(--k-share-rail) * -1);
		margin-block: 0;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.k-article__share--sticky .k-share {
		flex-direction: column;
		align-items: stretch;
		gap: var(--k-space-xs);
		justify-content: flex-start;
	}

	.k-article__share--sticky .k-share__btn {
		width: 100%;
		padding-inline: 0;
	}

	/* Restore the visible "Deel" label in the vertical rail. */
	.k-article__share--sticky .k-share__label {
		position: static;
		width: auto;
		height: auto;
		margin: 0 0 var(--k-space-2xs);
		clip-path: none;
		text-align: center;
		writing-mode: horizontal-tb;
	}

	/* Avoid duplicate share rows: with the rail visible, drop the in-flow
	   inline copy from the footer. */
	.k-article__share--inline {
		display: none;
	}

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

/* =========================================================================
   REDUCED MOTION — honour user preference for all transitions/animations.
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {

	.k-share__feedback,
	.k-share__btn,
	.k-authorbox__more::after,
	.k-breadcrumb__link,
	.k-prose a,
	.k-tags__link,
	.k-article__page-link {
		transition-duration: 0.01ms !important;
	}

	.k-authorbox__more:hover::after,
	.k-authorbox__more:focus-visible::after {
		transform: none;
	}

	/* Neutralise the tactile hover lifts so no residual translate persists. */
	.k-share__btn:hover,
	.k-tags__link:hover,
	.k-tags__link:focus-visible {
		transform: none;
	}
}

/* =========================================================================
   FOCUS VISIBLE — guarantee a visible ring on every interactive element in
   the article surface, even if base.css is overridden downstream.
   ========================================================================= */

.k-article a:focus-visible,
.k-article button:focus-visible,
.k-prose a:focus-visible,
.k-share__btn:focus-visible,
.k-tags__link:focus-visible,
.k-breadcrumb__link:focus-visible,
/* The page-link chip's anchor is display:contents (no own box), so the ring
   lands on the chip shell via :focus-within. */
.k-article__page-link:has(a):focus-within {
	outline: var(--k-focus-width) solid var(--k-color-accent);
	outline-offset: var(--k-focus-offset);
	border-radius: var(--k-radius-sm);
	box-shadow: var(--k-shadow-focus);
}

/* Print: drop the sharing furniture, restore full-width prose. */
@media print {

	.k-article__share,
	.k-article__share--sticky,
	.k-article__share--inline,
	.k-related,
	.k-comments {
		display: none !important;
	}

	.k-article {
		padding-inline-start: 0;
	}
}
