/* Yukimi 雪见 — styles beyond theme.json: the frosted cards, the dark scheme, the page frame around the
   Winter Scene, and the HTML older posts are written in. Colours come from the theme.json palette
   (--wp--preset--color--*); the dark scheme redefines them under html[data-theme="dark"]. */

/* ── Tokens ─────────────────────────────────────────────────────────────────────────────────────────── */

:root {
	--yk-radius: var(--wp--custom--radius, 18px);
	--yk-radius-small: var(--wp--custom--radius-small, 10px);
	--yk-shadow: var(--wp--custom--shadow, 0 12px 32px -8px rgba(35, 55, 105, 0.22));
	--yk-blur: var(--wp--custom--blur, blur(24px) saturate(1.5));
	/* see-through glass: a little more opaque at the top left, as if lit; a bright line along the top edge */
	--yk-glass: linear-gradient(150deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.34) 100%);
	--yk-glass-sheen: rgba(255, 255, 255, 0.7);
	--yk-glass-strong: rgba(255, 255, 255, 0.86);
	--yk-glass-edge: rgba(255, 255, 255, 0.6);
	--yk-code-ink: #145a73;
	--yk-table-head: var(--wp--preset--color--ice-soft);
	--yk-note-information: #1f5f78;
	--yk-note-information-bg: #e8f6fb;
	--yk-note-attention: #8a4a12;
	--yk-note-attention-bg: #fdf1e3;
	--yk-note-check: #2d6a3a;
	--yk-note-check-bg: #e9f5ea;
	--yk-note-edit: #6a5413;
	--yk-note-edit-bg: #fbf4dc;
	--yk-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
	--yk-i-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a2 2 0 0 1 2-2h3.8l2 2h7.2a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	--yk-i-comment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M4.5 5h15A1.5 1.5 0 0 1 21 6.5v9a1.5 1.5 0 0 1-1.5 1.5H10l-4.5 3.5V17h-1A1.5 1.5 0 0 1 3 15.5v-9A1.5 1.5 0 0 1 4.5 5z'/%3E%3C/svg%3E");
	--yk-i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.8 12 5.8 21.5 12 21.5 12 18 18.2 12 18.2 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3C/svg%3E");
	--yk-i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.2V4.8a1.3 1.3 0 0 1 1.3-1.3h7.4l8.3 8.3-8.7 8.7z'/%3E%3Ccircle cx='8' cy='8' r='1.3'/%3E%3C/svg%3E");
	--yk-i-information: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.1'/%3E%3C/svg%3E");
	--yk-i-attention: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.8 21.2 19.5H2.8z'/%3E%3Cpath d='M12 9.6v4.6M12 16.9v.1'/%3E%3C/svg%3E");
	--yk-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m7.8 12.3 2.8 2.8 5.6-5.8'/%3E%3C/svg%3E");
	--yk-i-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 4.5 19.5 8.5 9 19H5v-4z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E");
	color-scheme: light;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
	--wp--preset--color--base: #0c1325;
	--wp--preset--color--surface: rgba(15, 23, 43, 0.56);
	--wp--preset--color--surface-solid: #141d33;
	--yk-glass: linear-gradient(150deg, rgba(26, 37, 66, 0.56) 0%, rgba(12, 19, 37, 0.38) 100%);
	--yk-glass-sheen: rgba(200, 220, 255, 0.12);
	--wp--preset--color--ink: #eef3ff;
	--wp--preset--color--text: #cdd6e6;
	--wp--preset--color--muted: #96a3bb;
	--wp--preset--color--line: rgba(200, 220, 255, 0.13);
	--wp--preset--color--accent: #7fd3ea;
	--wp--preset--color--accent-strong: #a9e4f3;
	--wp--preset--color--ice: #5cc8e2;
	--wp--preset--color--ice-soft: rgba(92, 200, 226, 0.15);
	--wp--preset--color--rose: #ff8fa3;
	--wp--preset--color--on-accent: #0c1325;
	--yk-glass-strong: rgba(15, 23, 43, 0.88);
	--yk-glass-edge: rgba(150, 180, 230, 0.18);
	--yk-shadow: 0 16px 38px -10px rgba(0, 0, 0, 0.55);
	--yk-code-ink: #a6e3f3;
	--yk-note-information: #bfe8f4;
	--yk-note-information-bg: rgba(92, 200, 226, 0.12);
	--yk-note-attention: #ffd2a6;
	--yk-note-attention-bg: rgba(255, 170, 90, 0.12);
	--yk-note-check: #bfe8c6;
	--yk-note-check-bg: rgba(120, 210, 140, 0.11);
	--yk-note-edit: #f3e2a6;
	--yk-note-edit-bg: rgba(240, 210, 110, 0.11);
	color-scheme: dark;
}

/* Other languages. Noto Sans comes first everywhere (one family for Latin and every CJK script, where the
   visitor has it; Android does by default), then the theme's own copy of Noto Sans SC (assets/fonts, fetched
   piece by piece for the characters on the page), then each system's own fonts. The default stack is for simplified
   Chinese, which would draw Japanese kanji and traditional characters in mainland shapes: pages (html lang)
   and passages (lang="…" in a post) in those languages get the matching Noto and system fonts. */
html:lang(ja),
html:lang(ja) body {
	--wp--preset--font-family--system: "Noto Sans", "Noto Sans JP", "Noto Sans CJK JP", "Source Han Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
html:is(:lang(zh-TW), :lang(zh-HK), :lang(zh-Hant)),
html:is(:lang(zh-TW), :lang(zh-HK), :lang(zh-Hant)) body {
	--wp--preset--font-family--system: "Noto Sans", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", system-ui, sans-serif;
}
html:lang(ko),
html:lang(ko) body {
	--wp--preset--font-family--system: "Noto Sans", "Noto Sans KR", "Noto Sans CJK KR", "Source Han Sans K", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
html:lang(en),
html:lang(en) body {
	--wp--preset--font-family--system: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans CJK SC", "Yukimi Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}
.yk-content [lang|="ja"],
.yk-footer [lang|="ja"] {
	font-family: "Noto Sans JP", "Noto Sans CJK JP", "Source Han Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
.yk-content :is([lang="zh-TW"], [lang="zh-HK"], [lang="zh-Hant"]) {
	font-family: "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif;
}
.yk-content [lang|="ko"] {
	font-family: "Noto Sans KR", "Noto Sans CJK KR", "Source Han Sans K", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* the moment the switch is flipped, colours ease over instead of jumping */
html.yk-scheme-easing *,
html.yk-scheme-easing *::before {
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease !important;
}

/* ── Page frame ─────────────────────────────────────────────────────────────────────────────────────── */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* behind the scene's edges, and the whole page on phones, where the scene is off */
@media (max-width: 650px) {
	body {
		background: linear-gradient(180deg, #dbe6f7 0%, #eaf0fa 45%, #f2f5fb 100%) fixed;
	}
	html[data-theme="dark"] body {
		background: linear-gradient(180deg, #131d38 0%, #0c1325 60%) fixed;
	}
}
html[data-theme="dark"] body {
	background-color: #0c1325 !important; /* above the scene plugin's own light colour */
}

.wp-site-blocks {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 20px 28px;
}

/* with the winter scene on a wide screen, the column moves right and leaves the left to the scene,
   clear of the floating buttons at the right edge */
@media (min-width: 1400px) {
	body.yk-has-scene .wp-site-blocks {
		margin-right: 96px;
		margin-left: auto;
		max-width: 1080px;
	}
}

.wp-site-blocks > * + * {
	margin-block-start: 1.25rem;
}

.yk-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 1.5rem;
	align-items: start;
}
.yk-shell > * {
	margin-block-start: 0 !important;
}
.yk-main,
.yk-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}
.yk-main > *,
.yk-sidebar > * {
	margin-block: 0 !important;
}
.yk-entries {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.yk-loop {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.yk-loop > * {
	margin-block: 0 !important;
}

@media (max-width: 960px) {
	.yk-shell {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Cards ──────────────────────────────────────────────────────────────────────────────────────────── */

.yk-card {
	box-sizing: border-box;
	background: var(--yk-glass);
	-webkit-backdrop-filter: var(--yk-blur);
	backdrop-filter: var(--yk-blur);
	border: 1px solid var(--yk-glass-edge);
	border-radius: var(--yk-radius);
	box-shadow: var(--yk-shadow), inset 0 1px 0 var(--yk-glass-sheen);
}

/* ── Header ─────────────────────────────────────────────────────────────────────────────────────────── */

.yk-header {
	padding: 1.15rem 1.6rem;
	gap: 0.6rem 1.5rem;
}
.yk-brand .wp-block-site-title {
	margin: 0;
}
.yk-brand .wp-block-site-tagline {
	margin: 0;
}
.yk-nav .wp-block-navigation__container {
	gap: 0.25rem;
}
.yk-nav .wp-block-navigation-item__content {
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.yk-nav .wp-block-navigation-item__content:hover,
.yk-nav .current-menu-item > .wp-block-navigation-item__content,
.yk-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--ice-soft);
}
.yk-nav .wp-block-navigation__responsive-container-open,
.yk-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
}
.yk-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--yk-glass-strong) !important;
	-webkit-backdrop-filter: var(--yk-blur);
	backdrop-filter: var(--yk-blur);
	color: var(--wp--preset--color--ink) !important;
}
.yk-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem 1.25rem 1.5rem !important;
}
.yk-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
}
.yk-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0.35rem;
	width: 100%;
}
.yk-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
}
.yk-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1.1rem;
	border-radius: 14px;
	font-size: 1.15rem;
}

/* the dark-mode switch: a small track with a sliding knob carrying a sun or a moon */
.yk-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.35rem 0.25rem 0.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	cursor: pointer;
}
.yk-switch:hover .yk-switch-track {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ice);
}
.yk-switch:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.yk-switch-track {
	position: relative;
	display: block;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: var(--wp--preset--color--ice-soft);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
	transition: background-color 0.25s;
}
.yk-switch-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	color: #e2a21b;
	box-shadow: 0 1px 3px rgba(20, 30, 60, 0.3);
	transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1), background-color 0.25s, color 0.25s;
}
.yk-switch-knob .yk-icon {
	width: 14px;
	height: 14px;
	grid-area: 1 / 1;
	transition: opacity 0.2s;
}
.yk-switch-knob .yk-icon-moon {
	opacity: 0;
}
.yk-switch[aria-checked="true"] .yk-switch-track {
	background: #2b3d66;
}
.yk-switch[aria-checked="true"] .yk-switch-knob {
	transform: translateX(20px);
	background: #0f1830;
	color: #cfe6ff;
}
.yk-switch[aria-checked="true"] .yk-icon-sun {
	opacity: 0;
}
.yk-switch[aria-checked="true"] .yk-icon-moon {
	opacity: 1;
}

/* ── Posts ──────────────────────────────────────────────────────────────────────────────────────────── */

.yk-entry {
	padding: 1.6rem 1.8rem 1.25rem;
}
.yk-entry > * {
	margin-block: 0;
}
.yk-entry > * + * {
	margin-block-start: 0.9rem;
}
.yk-entry-title {
	margin: 0;
	font-size: 1.5rem;
}
.yk-single .yk-entry-title {
	font-size: 1.7rem;
}
.yk-entry-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--ice);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* Status posts (inc/formats.php): a short note without a title, its words in a note card, in lists and on its
   own page. The heading (the note's own words) stays for screen readers; the whole note is shown, so no
   "Read more". */
.yk-status .yk-entry-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.yk-status > .yk-entry-title + * {
	margin-block-start: 0;
}
.yk-status .yk-content {
	position: relative;
	padding: 1.05rem 1.4rem 1.05rem 3.3rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--ice) 32%, transparent);
	border-radius: 14px;
	background: color-mix(in srgb, var(--wp--preset--color--ice) 16%, transparent);
	color: var(--wp--preset--color--ink);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.6;
}
.yk-status .yk-content::before {
	content: "\201C";
	position: absolute;
	top: 0.3rem;
	left: 1rem;
	color: var(--wp--preset--color--ice);
	font: 700 3rem/1 Georgia, "Times New Roman", serif;
}
.yk-status .yk-content > :first-child {
	margin-top: 0;
}
.yk-status .yk-content > :last-child {
	margin-bottom: 0;
}
.yk-status .yk-read-more {
	display: none;
}

.yk-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}
.yk-meta > * {
	display: inline-flex;
	align-items: center;
	margin: 0;
}
.yk-meta > *::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	margin-right: 0.3rem;
	background: currentColor;
	-webkit-mask: var(--yk-i) center / contain no-repeat;
	mask: var(--yk-i) center / contain no-repeat;
	opacity: 0.8;
}
.yk-meta-date { --yk-i: var(--yk-i-clock); }
.yk-meta-category { --yk-i: var(--yk-i-folder); }
.yk-meta-comments { --yk-i: var(--yk-i-comment); }
.yk-meta-views { --yk-i: var(--yk-i-eye); }
.yk-meta a {
	color: inherit;
	text-decoration: none;
}
.yk-meta a:hover {
	color: var(--wp--preset--color--accent);
}
.yk-meta-category a {
	color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--ice-soft);
	border-radius: 999px;
	padding: 0.05rem 0.6rem;
}

.yk-entry-foot {
	margin-block-start: 1.25rem !important;
	padding-top: 0.9rem;
	border-top: 1px solid var(--wp--preset--color--line);
	gap: 0.75rem;
}
.yk-read-more {
	display: inline-flex;
	padding: 0.35rem 1.1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}
.yk-read-more:hover {
	background: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--on-accent);
}
/* the list's own "read more" button replaces the link WordPress puts after the "more" mark */
.yk-entries .more-link {
	display: none;
}

.yk-like {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--rose) 40%, transparent);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--rose);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}
.yk-like .yk-icon {
	width: 1.05em;
	height: 1.05em;
}
.yk-like:hover {
	background: color-mix(in srgb, var(--wp--preset--color--rose) 10%, transparent);
}
.yk-like[aria-pressed="true"] {
	cursor: default;
	background: color-mix(in srgb, var(--wp--preset--color--rose) 12%, transparent);
}
.yk-like[aria-pressed="true"] .yk-icon path {
	fill: currentColor;
}
.yk-like-pop .yk-icon {
	animation: yk-pop 0.45s ease;
}
@keyframes yk-pop {
	40% { transform: scale(1.35); }
}
.yk-views {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.yk-tags {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.yk-tags::before {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--yk-i-tag) center / contain no-repeat;
	mask: var(--yk-i-tag) center / contain no-repeat;
}
.yk-tags .wp-block-post-terms__prefix {
	display: none;
}
.yk-tags a {
	padding: 0.05rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ice-soft);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.yk-tags .wp-block-post-terms__separator {
	display: none;
}

.yk-post-nav {
	gap: 1rem;
	font-size: var(--wp--preset--font-size--small);
}
.yk-post-nav > * {
	max-width: 48%;
}
.yk-post-nav .post-navigation-link-next {
	margin-left: auto;
	text-align: right;
}
.yk-post-nav a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.yk-post-nav a:hover {
	color: var(--wp--preset--color--accent);
}
.yk-post-nav [class*="__arrow"] {
	color: var(--wp--preset--color--accent);
}

/* ── Text of posts (much of it hand-written HTML) ───────────────────────────────────────────────────── */

.yk-content {
	color: var(--wp--preset--color--text);
	overflow-wrap: break-word;
}
.yk-content > * {
	margin-block: 0 0.95rem;
}
.yk-content > *:last-child {
	margin-block-end: 0;
}
.yk-content a {
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 3px;
}
.yk-content a:hover {
	text-decoration-color: currentColor;
}
.yk-content a:has(> img) {
	text-decoration: none;
}
.yk-content h2 {
	margin: 2rem 0 0.85rem;
	padding-left: 0.75rem;
	border-left: 4px solid var(--wp--preset--color--ice);
	line-height: 1.35;
}
.yk-content h3 {
	margin: 1.5rem 0 0.6rem;
}
.yk-content h4 {
	margin: 1.2rem 0 0.5rem;
}
.yk-content ul,
.yk-content ol {
	padding-left: 1.5em;
}
.yk-content li {
	margin: 0.3rem 0;
}
.yk-content li::marker {
	color: var(--wp--preset--color--ice);
}
.yk-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--yk-radius-small);
}
.yk-content figure {
	margin-inline: 0;
}
.yk-content figcaption,
.yk-content .wp-caption-text {
	margin-top: 0.4rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}
.yk-content .wp-caption {
	max-width: 100%;
}
.yk-content blockquote {
	margin-inline: 0;
	padding: 0.2rem 0 0.2rem 1rem;
	border-left: 4px solid var(--wp--preset--color--ice);
	color: var(--wp--preset--color--muted);
}
.yk-content hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 1.6rem 0;
}
.yk-content code,
.yk-content kbd {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.86em;
	color: var(--yk-code-ink);
	background: var(--wp--preset--color--ice-soft);
	border: 0;
	border-radius: 6px;
	padding: 0.12em 0.42em;
	overflow-wrap: anywhere;
}
.yk-content pre:not([class*="lang:"]):not(.urvanov-syntax-highlighter-plain) {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.88rem;
	line-height: 1.6;
	padding: 0.9rem 1.1rem;
	overflow-x: auto;
	border-radius: var(--yk-radius-small);
	background: color-mix(in srgb, var(--wp--preset--color--surface-solid) 88%, transparent);
	border: 1px solid var(--wp--preset--color--line);
}
.yk-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}
.yk-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	overflow: hidden;
	background: color-mix(in srgb, var(--wp--preset--color--surface-solid) 45%, transparent);
	font-size: 0.95em;
}
.yk-content th,
.yk-content td {
	padding: 0.55rem 0.85rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}
.yk-content th {
	background: var(--yk-table-head);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
.yk-content tr:last-child > td {
	border-bottom: 0;
}
.yk-content .wp-block-table {
	overflow-x: auto;
}

/* note boxes: [information] and friends in older posts, the Group block's note styles in new ones */
.yk-note,
.wp-block-group[class*="is-style-yk-note-"] {
	position: relative;
	margin-block: 1rem;
	padding: 0.85rem 1.1rem 0.85rem 2.9rem;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--yk-n) 22%, transparent);
	background: var(--yk-n-bg);
	color: var(--yk-n);
	font-size: 0.95em;
	line-height: 1.8;
}
.yk-note::before,
.wp-block-group[class*="is-style-yk-note-"]::before {
	content: "";
	position: absolute;
	left: 0.95rem;
	top: 1.05rem;
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: var(--yk-n-i) center / contain no-repeat;
	mask: var(--yk-n-i) center / contain no-repeat;
}
.yk-note > :first-child,
.wp-block-group[class*="is-style-yk-note-"] > :first-child {
	margin-top: 0;
}
.yk-note > :last-child,
.wp-block-group[class*="is-style-yk-note-"] > :last-child {
	margin-bottom: 0;
}
.yk-note a,
.wp-block-group[class*="is-style-yk-note-"] a {
	color: inherit;
}
.yk-note strong {
	color: inherit;
}
.is-style-yk-note-information { --yk-n: var(--yk-note-information); --yk-n-bg: var(--yk-note-information-bg); --yk-n-i: var(--yk-i-information); }
.is-style-yk-note-attention { --yk-n: var(--yk-note-attention); --yk-n-bg: var(--yk-note-attention-bg); --yk-n-i: var(--yk-i-attention); }
.is-style-yk-note-check { --yk-n: var(--yk-note-check); --yk-n-bg: var(--yk-note-check-bg); --yk-n-i: var(--yk-i-check); }
.is-style-yk-note-edit { --yk-n: var(--yk-note-edit); --yk-n-bg: var(--yk-note-edit-bg); --yk-n-i: var(--yk-i-edit); }

/* table of contents (Table of Contents Plus, whose own styles are switched off) */
.yk-content #toc_container {
	display: table;
	margin: 1rem 0 1.25rem;
	padding: 0.8rem 1.3rem 0.9rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--surface-solid) 60%, transparent);
	font-size: 0.93em;
}
.yk-content #toc_container .toc_title {
	margin: 0 0 0.3rem;
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	text-align: left;
}
.yk-content #toc_container ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}
.yk-content #toc_container ul ul {
	padding-left: 1.2rem;
}
.yk-content #toc_container li {
	margin: 0.15rem 0;
}
.yk-content #toc_container a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.yk-content #toc_container a:hover {
	color: var(--wp--preset--color--accent);
}
.yk-content #toc_container .toc_number {
	color: var(--wp--preset--color--accent);
	margin-right: 0.35rem;
}
.yk-content #toc_container .toc_toggle {
	font-size: 0.85em;
	font-weight: 400;
}

/* code blocks (Urvanov Syntax Highlighter): its frame in the theme's shapes and lines */
.yk-content .urvanov-syntax-highlighter-syntax {
	border-radius: var(--yk-radius-small);
	overflow: hidden;
	border-color: var(--wp--preset--color--line) !important;
}
.yk-content .urvanov-syntax-highlighter-syntax .crayon-toolbar {
	border-bottom-color: var(--wp--preset--color--line) !important;
}

/* ── Single post: related posts and comments ───────────────────────────────────────────────────────── */

.yk-section-title {
	margin: 0 0 0.9rem;
	font-size: 1.12rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}
.yk-section-title::before,
.yk-widget-title::before {
	content: "";
	width: 4px;
	height: 1.05em;
	border-radius: 2px;
	background: var(--wp--preset--color--ice);
}

.yk-related {
	padding: 1.3rem 1.8rem 1.4rem;
}
.yk-related ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 0.45rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.yk-related li {
	display: flex;
	gap: 0.5rem;
	min-width: 0;
}
.yk-related li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 0.75em;
	border-radius: 50%;
	background: var(--wp--preset--color--ice);
}
.yk-related a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.yk-related a:hover {
	color: var(--wp--preset--color--accent);
}

.yk-comments {
	padding: 1.3rem 1.8rem 1.5rem;
}
.yk-comments > * {
	margin-block: 0;
}
.yk-comments .wp-block-comment-template {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}
.yk-comments .wp-block-comment-template li {
	margin: 0;
}
.yk-comments .wp-block-comment-template > li + li,
.yk-comments .children > li {
	border-top: 1px solid var(--wp--preset--color--line);
}
.yk-comments .children {
	margin: 0 0 0 3.4rem;
	padding: 0;
	list-style: none;
}
.yk-comments .children .children {
	margin-left: 1.5rem;
}
.yk-comment {
	padding: 0.95rem 0;
}
.yk-comment-avatar img {
	border-radius: 50%;
	display: block;
}
.yk-comment-main {
	flex: 1;
	min-width: 0;
}
.yk-comment-head {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.yk-comment-head > * {
	margin: 0;
}
.yk-comment-head .wp-block-comment-author-name {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	font-size: 0.95rem;
}
.yk-comment-head .wp-block-comment-author-name a {
	color: inherit;
	text-decoration: none;
}
.yk-comment-head a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.yk-comment-head .wp-block-comment-reply-link a {
	color: var(--wp--preset--color--accent);
}
.yk-comment-main .wp-block-comment-content {
	margin-top: 0.3rem;
	font-size: 0.95rem;
}
.yk-comment-main .wp-block-comment-content p {
	margin: 0 0 0.5rem;
}
.yk-comment-main .wp-block-comment-content > :last-child {
	margin-bottom: 0;
}
.yk-comments .wp-block-comments-pagination {
	margin-bottom: 1rem;
	gap: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
}

/* the comment form: name, e-mail and website side by side, then the message */
.yk-comments .comment-respond {
	margin-top: 0.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.yk-comments .comment-reply-title {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0 0 0.6rem;
	font-size: 1.12rem;
}
.yk-comments .comment-reply-title small a {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}
.yk-comments .comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem 1rem;
}
.yk-comments .comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}
.yk-comments .comment-form > .comment-form-author,
.yk-comments .comment-form > .comment-form-email,
.yk-comments .comment-form > .comment-form-url {
	grid-column: auto;
}
.yk-comments .comment-notes,
.yk-comments .logged-in-as {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.yk-comments .comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.yk-comments .comment-form .required {
	color: var(--wp--preset--color--rose);
}
.yk-comments .comment-form input[type="text"],
.yk-comments .comment-form input[type="email"],
.yk-comments .comment-form input[type="url"],
.yk-comments .comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--yk-radius-small);
	background: color-mix(in srgb, var(--wp--preset--color--surface-solid) 75%, transparent);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.95rem;
}
.yk-comments .comment-form textarea {
	height: 8rem;
	min-height: 5rem;
	resize: vertical;
}
.yk-comments .comment-form input:focus,
.yk-comments .comment-form textarea:focus {
	outline: 2px solid color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	outline-offset: 0;
	border-color: transparent;
}
.yk-comments .comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.yk-comments .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
}
/* Turnstile's box (when it shows) on the left, the button on the right */
.yk-comments .form-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
}
.yk-comments .form-submit .cf-turnstile {
	margin-right: auto;
}
.yk-comments .form-submit br {
	display: none;
}
.yk-comments .form-submit [type="submit"] {
	flex: none;
	align-self: center;
	height: auto;
	min-height: 0;
	padding: 0.5rem 1.4rem;
	cursor: pointer;
}

@media (max-width: 650px) {
	.yk-comments .comment-form {
		grid-template-columns: minmax(0, 1fr);
	}
	.yk-comments .children {
		margin-left: 1.2rem;
	}
}

/* ── Sidebar ────────────────────────────────────────────────────────────────────────────────────────── */

.yk-widget {
	padding: 1.15rem 1.3rem 1.25rem;
	font-size: 0.92rem;
}
.yk-widget > * {
	margin-block: 0;
}
.yk-widget > * + * {
	margin-block-start: 0.75rem;
}
.yk-widget-title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 1rem;
	letter-spacing: 0.05em;
}

.yk-profile {
	position: relative;
	padding: 0 1.3rem 1.1rem;
	overflow: hidden;
	text-align: center;
}
.yk-profile-banner {
	height: 104px;
	margin: 0 -1.3rem;
	background-size: cover;
	background-position: 55% 70%;
}
html[data-theme="dark"] .yk-profile-banner {
	filter: brightness(0.55) saturate(0.85);
}
.yk-profile-avatar {
	position: relative;
	display: block;
	width: 88px;
	height: 88px;
	margin: -46px auto 0.5rem;
	padding: 4px;
	border-radius: 50%;
	background: linear-gradient(135deg, #bfe9f5, #ffffff);
	box-shadow: 0 6px 16px -6px rgba(35, 55, 105, 0.4);
}
html[data-theme="dark"] .yk-profile-avatar {
	background: linear-gradient(135deg, #2c5a7a, #0f172b);
}
.yk-profile-name {
	margin: 0;
	font-size: 1.12rem;
}
.yk-profile-bio {
	margin: 0.2rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.yk-profile-links {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin: 0.9rem 0 0;
	padding: 0.8rem 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	list-style: none;
}
.yk-profile-links a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--ice-soft);
	color: var(--wp--preset--color--accent);
	transition: background-color 0.2s, color 0.2s;
}
.yk-profile-links a:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}
.yk-profile-links .yk-icon {
	width: 18px;
	height: 18px;
}

.wp-block-search__inside-wrapper {
	position: relative;
	display: flex;
	padding: 0;
	border: 0;
}
.wp-block-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: 0 5.2rem 0 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--surface-solid) 75%, transparent);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.92rem;
}
.wp-block-search__input:focus {
	outline: 2px solid color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	border-color: transparent;
}
.wp-block-search__button {
	position: absolute;
	top: 4px;
	right: 4px;
	bottom: 4px;
	margin: 0;
	padding: 0 1rem;
}

.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
}
.wp-block-tag-cloud a {
	margin: 0 !important;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ice-soft);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
/* also in the sidebar, whose plain link colours (".yk-widget a:hover", further down) would otherwise put the
   text in the colour of this background */
.wp-block-tag-cloud a:hover,
.yk-widget .wp-block-tag-cloud a:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

.yk-widget .wp-block-categories,
.yk-links,
.yk-sitemap ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.yk-widget .wp-block-categories li,
.yk-links li {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.3rem 0;
	color: var(--wp--preset--color--muted);
}
.yk-widget .wp-block-categories li + li,
.yk-links li + li {
	border-top: 1px dashed var(--wp--preset--color--line);
}
.yk-widget a,
.yk-sitemap a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.yk-widget a:hover,
.yk-sitemap a:hover {
	color: var(--wp--preset--color--accent);
}

.wp-block-latest-comments {
	margin: 0;
	padding: 0;
}
.wp-block-latest-comments__comment {
	display: flex;
	gap: 0.7rem;
	margin: 0;
	padding: 0.6rem 0;
	line-height: 1.55;
	min-height: 0;
}
.wp-block-latest-comments__comment + .wp-block-latest-comments__comment {
	border-top: 1px dashed var(--wp--preset--color--line);
}
.wp-block-latest-comments__comment-avatar {
	flex: none;
	width: 36px;
	height: 36px;
	margin: 0.1rem 0 0 !important;
	border-radius: 50%;
}
.has-avatars .wp-block-latest-comments__comment article,
.wp-block-latest-comments__comment article {
	margin: 0;
	min-width: 0;
}
.wp-block-latest-comments .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,
.wp-block-latest-comments .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt {
	margin-left: 0;
}
.wp-block-latest-comments__comment-meta {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}
.wp-block-latest-comments__comment-author {
	color: var(--wp--preset--color--ink) !important;
	font-weight: 700;
}
.wp-block-latest-comments__comment-excerpt p {
	margin: 0.15rem 0 0 !important;
	font-size: 0.88rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* the same space under every box's title: the blocks above zero their own margins, and lists start
   without the padding that separates their rows */
.yk-widget > .yk-widget-title + * {
	margin-block-start: 0.8rem;
}
.yk-widget .wp-block-categories > li:first-child,
.yk-links > li:first-child,
.wp-block-latest-comments > .wp-block-latest-comments__comment:first-child {
	padding-top: 0;
}

/* ── Section index (blocks/toc, assets/js/toc.js) ──────────────────────────────────────────────────── */

/* Beside a post on wide screens it follows the reader down to the end of the column, so the sidebar
   stretches that far and the site's own boxes, which would pass under it, are left out. Narrow screens
   put the sidebar below the post, where an index is no use: there the boxes stay as they were. */
@media (min-width: 961px) {
	.yk-shell:has(.yk-toc) > .yk-sidebar {
		align-self: stretch;
	}
	.yk-shell:has(.yk-toc) .yk-widget-site {
		display: none;
	}
}
.yk-toc {
	position: sticky;
	top: calc(1rem + var(--wp-admin--admin-bar--height, 0px));
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2rem - var(--wp-admin--admin-bar--height, 0px));
}
/* Narrow screens: the contents button among the floating buttons (shown by toc.js on pages with an index)
   opens it as a panel to the left of the buttons, along the bottom of the window. */
.yk-tool[hidden] {
	display: none;
}
@media (min-width: 961px) {
	.yk-tools .yk-toc-button {
		display: none;
	}
}
@media (max-width: 960px) {
	.yk-toc {
		display: none;
	}
	.yk-toc.is-open {
		display: flex;
		position: fixed;
		top: auto;
		right: 80px;
		bottom: 28px;
		z-index: 60;
		width: min(340px, calc(100vw - 94px));
		max-height: min(70vh, calc(100vh - 56px));
		background: var(--wp--preset--color--surface-solid); /* over the text, which glass would let through */
		box-shadow: var(--yk-shadow);
	}
}
@media (max-width: 650px) {
	.yk-toc.is-open {
		right: 68px;
		bottom: 18px;
		width: min(340px, calc(100vw - 80px));
		max-height: min(70vh, calc(100vh - 36px));
	}
}
.yk-toc-list,
.yk-toc-list ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.yk-toc-list {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--wp--preset--color--muted) 45%, transparent) transparent;
}
.yk-toc-list ol {
	margin-left: 0.8rem;
}
.yk-toc-list a {
	display: block;
	padding: 0.32rem 0.65rem;
	border-left: 2px solid var(--wp--preset--color--line);
	border-radius: 0 6px 6px 0;
	color: var(--wp--preset--color--muted);
	line-height: 1.45;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.yk-toc-list ol a {
	font-size: 0.86rem;
}
.yk-toc-list a:hover {
	color: var(--wp--preset--color--accent);
}
.yk-toc-list a[aria-current] {
	color: var(--wp--preset--color--ink);
	border-left-color: var(--wp--preset--color--ice);
	background: color-mix(in srgb, var(--wp--preset--color--ice) 16%, transparent);
}
/* a title jumped to stops a little below the top of the window */
.yk-content :is(h2, h3, h4)[id] {
	scroll-margin-top: calc(1rem + var(--wp-admin--admin-bar--height, 0px));
}

/* ── Lists of posts: archive heading, page numbers, nothing found ──────────────────────────────────── */

.yk-archive-head,
.yk-empty {
	padding: 1.3rem 1.8rem;
}
.yk-archive-head > *,
.yk-empty > * {
	margin-block: 0;
}
.yk-archive-head > * + *,
.yk-empty > * + * {
	margin-block-start: 0.75rem;
}
.yk-archive-head .wp-block-query-title {
	font-size: 1.4rem;
}
.yk-archive-head .wp-block-term-description {
	color: var(--wp--preset--color--muted);
}

.yk-pagination {
	padding: 0.7rem 1rem;
	gap: 0.35rem;
	font-size: 0.92rem;
}
.yk-pagination:not(:has(a)) {
	display: none;
}
.yk-pagination a,
.yk-pagination .page-numbers,
.wp-block-comments-pagination a,
.wp-block-comments-pagination .page-numbers {
	display: inline-flex;
	min-width: 2.1rem;
	justify-content: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.yk-pagination a:hover,
.wp-block-comments-pagination a:hover {
	background: var(--wp--preset--color--ice-soft);
	color: var(--wp--preset--color--accent);
}
.yk-pagination .page-numbers.current,
.wp-block-comments-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-weight: 600;
}

/* ── Sitemap and 404 ────────────────────────────────────────────────────────────────────────────────── */

.yk-sitemap-grid {
	margin-top: 1.4rem !important;
	gap: 1.25rem 2rem;
	align-items: start;
}
.yk-sitemap-grid h2 {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
}
.yk-sitemap-grid > * > * + h2 {
	margin-top: 1.2rem;
}
.yk-sitemap-wide {
	grid-column: 1 / -1;
}
.yk-sitemap li {
	padding: 0.25rem 0;
	color: var(--wp--preset--color--muted);
}
.yk-sitemap .wp-block-latest-posts__list {
	columns: 2 18rem;
	column-gap: 2rem;
}
.yk-sitemap .wp-block-latest-posts__list li {
	break-inside: avoid;
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
}
.yk-sitemap .wp-block-latest-posts__post-date {
	flex: none;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.yk-not-found .wp-block-search {
	max-width: 420px;
}

/* ── Footer and the floating buttons ────────────────────────────────────────────────────────────────── */

.yk-footer {
	padding: 0.9rem 1.6rem;
	gap: 0.4rem 1.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.yk-footer p,
.yk-footer .wp-block-site-title {
	margin: 0;
}
.yk-footer .wp-block-site-title {
	font-size: inherit;
	font-weight: 600;
	letter-spacing: 0;
}
.yk-footer a,
.yk-footer .wp-block-site-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.yk-footer a:hover {
	color: var(--wp--preset--color--accent);
}
/* the background art's credit: its own quiet line (not on phones, where the scene is not shown) */
.yk-footer .yk-footer-art {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.75rem;
	opacity: 0.85;
	text-align: right;
}
@media (max-width: 650px) {
	.yk-footer .yk-footer-art {
		display: none;
	}
}

.yk-tools {
	position: fixed;
	right: 24px;
	bottom: 28px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0 !important;
}
.yk-tool {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--yk-glass-edge);
	border-radius: 50%;
	background: var(--yk-glass-strong);
	-webkit-backdrop-filter: var(--yk-blur);
	backdrop-filter: var(--yk-blur);
	box-shadow: var(--yk-shadow);
	color: var(--wp--preset--color--accent);
	cursor: pointer;
	transition: transform 0.2s, opacity 0.25s, visibility 0.25s;
}
.yk-tool:hover {
	transform: translateY(-2px);
}
.yk-tool .yk-icon {
	width: 21px;
	height: 21px;
}
.yk-top {
	opacity: 0;
	visibility: hidden;
}
.yk-tools.is-scrolled .yk-top {
	opacity: 1;
	visibility: visible;
}
.yk-qr {
	position: relative;
}
.yk-qr-panel {
	position: absolute;
	right: calc(100% + 12px);
	bottom: 0;
	width: 150px;
	padding: 14px 14px 10px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--yk-shadow);
	text-align: center;
}
.yk-qr-panel img {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto;
}
.yk-qr-panel p {
	margin: 0.4rem 0 0;
	color: #3a4254;
	font-size: 0.78rem;
}
@media (max-width: 650px) {
	.yk-qr {
		display: none;
	}
	.yk-tools {
		right: 14px;
		bottom: 18px;
	}
}

/* ── Picture viewer ─────────────────────────────────────────────────────────────────────────────────── */

.yk-viewer {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}
.yk-viewer::backdrop {
	background: rgba(8, 14, 30, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.yk-viewer-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 3.5rem 4.5rem 2.5rem;
}
.yk-viewer-figure img {
	max-width: 100%;
	max-height: calc(100% - 2.5rem);
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.yk-viewer-figure figcaption {
	margin-top: 0.8rem;
	color: #dfe7f5;
	font-size: 0.9rem;
	text-align: center;
}
.yk-viewer-button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
}
.yk-viewer-button:hover {
	background: rgba(255, 255, 255, 0.26);
}
.yk-viewer-close {
	top: 14px;
	right: 14px;
}
.yk-viewer-prev,
.yk-viewer-next {
	top: 50%;
	transform: translateY(-50%);
}
.yk-viewer-prev {
	left: 14px;
}
.yk-viewer-next {
	right: 14px;
}
.yk-viewer.is-single .yk-viewer-prev,
.yk-viewer.is-single .yk-viewer-next {
	display: none;
}
@media (max-width: 650px) {
	.yk-viewer-figure {
		padding: 3.5rem 0.75rem 1.5rem;
	}
	.yk-viewer-prev,
	.yk-viewer-next {
		top: auto;
		bottom: 14px;
		transform: none;
	}
}

/* ── Night ──────────────────────────────────────────────────────────────────────────────────────────── */
/* The Winter Scene plugin (1.3+) turns its scene to a lamp-lit night itself when <html data-theme="dark">. */

/* pictures drawn on white stay legible but stop glaring */
html[data-theme="dark"] .yk-content img {
	filter: brightness(0.93);
}

/* code blocks at night: Urvanov's classic colours, darkened */
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax,
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-pre,
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-plain {
	background: #101a30 !important;
	color: #d6deeb !important;
}
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-toolbar,
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-info {
	background: #18233d !important;
	color: #96a3bb !important;
}
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-title {
	color: #cdd6e6 !important;
}
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-nums,
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-striped-num {
	background: #14203a !important;
	color: #5f7aa8 !important;
}
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-striped-line {
	background: #13203a !important;
}
html[data-theme="dark"] .yk-content .urvanov-syntax-highlighter-syntax .crayon-button {
	background-color: transparent !important;
}
html[data-theme="dark"] .yk-content .crayon-pre .crayon-c { color: #f3a65f !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-s { color: #8fd694 !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-p { color: #e7b072 !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-ta { color: #ff8c8c !important; }
html[data-theme="dark"] .yk-content .crayon-pre :is(.crayon-k, .crayon-st, .crayon-r, .crayon-t, .crayon-m) { color: #d7a2f5 !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-i { color: #e6ecf7 !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-e { color: #82b4ff !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-v { color: #9cc3ff !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-cn { color: #ff9b8a !important; }
html[data-theme="dark"] .yk-content .crayon-pre :is(.crayon-o, .crayon-h) { color: #7fd3ea !important; }
html[data-theme="dark"] .yk-content .crayon-pre .crayon-sy { color: #c3ccdc !important; }
html[data-theme="dark"] .yk-content .crayon-pre :is(.crayon-n, .crayon-f) { color: #8b97ad !important; }

/* ── Phones ─────────────────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 650px) {
	.wp-site-blocks {
		padding: 0 0 20px;
	}
	.wp-site-blocks > * + * {
		margin-block-start: 0.9rem;
	}
	/* no blur here: a blurred box would hold the menu's full-screen panel inside itself */
	.yk-header {
		border-radius: 0 0 var(--yk-radius) var(--yk-radius);
		border-top: 0;
		padding: 0.8rem 1rem;
		flex-wrap: nowrap !important;
		background: var(--yk-glass-strong);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	.yk-brand .wp-block-site-title {
		font-size: 1.35rem;
	}
	.yk-brand .wp-block-site-tagline,
	.yk-switch-label {
		display: none;
	}
	.yk-shell,
	.yk-site-footer {
		padding: 0 10px;
	}
	.yk-shell {
		gap: 0.9rem;
	}
	.yk-main,
	.yk-sidebar,
	.yk-loop,
	.yk-entries {
		gap: 0.9rem;
	}
	.yk-entry {
		padding: 1.15rem 1.1rem 1rem;
	}
	.yk-entry-title {
		font-size: 1.25rem;
	}
	.yk-single .yk-entry-title {
		font-size: 1.4rem;
	}
	.yk-content {
		font-size: 0.97rem;
	}
	/* narrow tables: no column squeezed to one character a line */
	.yk-content th,
	.yk-content td {
		min-width: 3.2em;
		padding: 0.5rem 0.6rem;
	}
	.yk-related,
	.yk-comments,
	.yk-archive-head,
	.yk-empty {
		padding: 1.1rem 1.1rem 1.2rem;
	}
	.yk-post-nav {
		flex-wrap: wrap !important;
	}
	.yk-post-nav > * {
		max-width: 100%;
	}
	.yk-footer {
		padding: 0.8rem 1.1rem;
	}
}

/* ── Page changes in place (assets/js/navigate.js) ─────────────────────────────────────────────────── */
/* The cards fade, not the column: a faded parent would cut the cards' glass off from the scene behind it. */

.yk-shell .yk-card {
	transition: opacity 0.22s ease;
}
html.yk-navigating .yk-shell .yk-card {
	opacity: 0.55;
}
.yk-shell.yk-arriving .yk-card {
	opacity: 0;
	transition: none;
}
/* a thin line of ice running along the top while the next page loads */
html.yk-navigating::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--ice) 45%, transparent 90%) 0 0 / 50% 100% no-repeat;
	animation: yk-loading 0.9s linear infinite;
	pointer-events: none;
}
@keyframes yk-loading {
	from { background-position: -50% 0; }
	to { background-position: 150% 0; }
}
.yk-shell [tabindex="-1"]:focus {
	outline: none;
}

/* ── Accessibility and motion ───────────────────────────────────────────────────────────────────────── */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
:where(a, button, input, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before {
		transition: none !important;
		animation: none !important;
	}
}
/* solid cards for those who ask for less transparency (blur is also the costly part without graphics acceleration) */
@media (prefers-reduced-transparency: reduce) {
	.yk-card,
	.yk-tool,
	.yk-nav .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--surface-solid) !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
	}
}

/* ── In the editors ─────────────────────────────────────────────────────────────────────────────────── */

.yk-stand-in {
	opacity: 0.85;
}
.editor-styles-wrapper .yk-shell {
	display: grid;
}
