/* ==========================================================================
   JeffXL Terminal — single posts, pages, code blocks, TOC and comments.
   Loaded on singular views only.
   ========================================================================== */

/* Entry header ------------------------------------------------------------ */
.entry-header,
.entry-footer,
.post-navigation,
.comments-area {
	max-width: var(--measure);
	margin-inline: auto;
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1rem;
	color: var(--muted);
	font: 500 0.82rem/1.4 var(--font-mono);
}

.entry-crumbs a {
	color: var(--muted);
	text-decoration: none;
}

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

.entry-title {
	margin-bottom: 1rem;
	font-size: clamp(1.85rem, 1.2rem + 3vw, 2.75rem);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--muted);
	font: 500 0.82rem/1.4 var(--font-mono);
}

.entry-meta .avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.entry-author {
	color: var(--text);
}

/* Same block as the header, so the image's left edge lines up with the title. */
.entry-thumb {
	max-width: var(--measure);
	margin: 0 auto 2.5rem;
}

.entry-thumb img {
	display: block;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

/* Layout with optional sticky TOC ----------------------------------------- */
.entry-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	max-width: var(--measure);
	margin-inline: auto;
}

@media (min-width: 1200px) {
	/* Keep header, footer, navigation and comments on the same left edge as the text column. */
	.single-container:has(.toc:not([hidden])) :is(.entry-header, .entry-footer, .post-navigation, .comments-area) {
		max-width: calc(var(--measure) + 230px + 3rem);
		padding-right: calc(230px + 3rem);
	}

	/* The image spans the text and TOC columns: left edge on the text, right edge on the TOC. */
	.single-container:has(.toc:not([hidden])) .entry-thumb {
		max-width: calc(var(--measure) + 230px + 3rem);
	}

	.entry-layout:has(> .toc:not([hidden])) {
		grid-template-columns: minmax(0, var(--measure)) 230px;
		column-gap: 3rem;
		max-width: calc(var(--measure) + 230px + 3rem);
	}

	.entry-layout > .toc {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		grid-row: 1;
		grid-column: 2;
		align-self: start;
		max-height: calc(100vh - var(--header-h) - 48px);
		overflow-y: auto;
	}
}

.toc details {
	padding: 0.8rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.toc summary {
	color: var(--muted);
	font: 600 0.75rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

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

.toc summary::before {
	content: "▸ ";
	color: var(--accent);
}

.toc details[open] summary::before {
	content: "▾ ";
}

.toc ol {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.toc li {
	margin: 0.15rem 0;
}

.toc .toc-h3 {
	padding-left: 0.85rem;
}

.toc a {
	display: block;
	padding: 0.2rem 0 0.2rem 0.65rem;
	border-left: 2px solid var(--border);
	color: var(--muted);
	line-height: 1.4;
	text-decoration: none;
}

.toc a:hover {
	color: var(--text-strong);
}

.toc a.is-active {
	border-left-color: var(--accent);
	color: var(--accent);
}

@media (min-width: 1200px) {
	.toc details {
		padding: 0;
		border: 0;
		background: none;
	}
}

/* Prose ------------------------------------------------------------------- */
.prose {
	min-width: 0;
	color: var(--text);
	font-size: 1.0625rem;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.prose > * {
	margin-block: 0;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2 {
	margin-top: 2.4em;
	font-size: 1.55rem;
}

.prose h3 {
	margin-top: 2em;
	font-size: 1.25rem;
}

.prose h4 {
	margin-top: 1.75em;
	font-size: 1.05rem;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
	margin-top: 0.75em;
}

.prose h2::before,
.prose h3::before {
	color: var(--accent);
	font-family: var(--font-mono);
	font-weight: 500;
}

.prose h2::before {
	content: "## ";
	content: "## " / "";
}

.prose h3::before {
	content: "### ";
	content: "### " / "";
}

.prose a {
	color: var(--accent);
	text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.prose a:hover {
	text-decoration-color: currentColor;
}

.prose strong {
	color: var(--text-strong);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.35em;
}

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

.prose ol li::marker {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.prose blockquote {
	margin-inline: 0;
	padding: 0.9rem 1.2rem;
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--bg-elev);
}

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

.prose blockquote cite {
	color: var(--muted);
	font-size: 0.85rem;
	font-style: normal;
}

.prose hr {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px dashed var(--border-strong);
}

.prose img {
	border-radius: var(--radius-sm);
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 0.6rem;
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
}

.prose :not(pre) > code {
	padding: 0.12em 0.4em;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg-soft);
	color: var(--text-strong);
	font: 0.86em var(--font-mono);
	overflow-wrap: anywhere;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.prose > table,
.prose .wp-block-table {
	display: block;
	overflow-x: auto;
}

.prose .wp-block-table table {
	min-width: 100%;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.prose th {
	color: var(--muted);
	font: 600 0.78rem/1.4 var(--font-mono);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.prose iframe,
.prose embed,
.prose object {
	max-width: 100%;
}

.prose .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.3em 1.5em 1em 0;
}

.prose .alignright {
	float: right;
	max-width: 50%;
	margin: 0.3em 0 1em 1.5em;
}

.prose .aligncenter {
	display: block;
	margin-inline: auto;
}

.prose .alignwide,
.prose .alignfull {
	width: 100%;
}

.prose::after {
	content: "";
	display: table;
	clear: both;
}

.prose h1 {
	margin-top: 1.5em;
	font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
	line-height: 1.2;
}

/* Phones: reading mode — larger text, shorter headings, readable metadata. */
@media (max-width: 719px) {
	.prose {
		font-size: 1.125rem;
		line-height: 1.72;
	}

	.prose > * + *,
	.prose p + p {
		margin-top: 1.1em;
	}

	.prose h1 {
		font-size: 1.5rem;
	}

	.prose h2 {
		margin-top: 2em;
		font-size: 1.35rem;
		line-height: 1.3;
	}

	.prose h3 {
		font-size: 1.18rem;
		line-height: 1.35;
	}

	.prose ul,
	.prose ol {
		padding-left: 1.2em;
	}

	.prose li + li {
		margin-top: 0.5em;
	}

	.prose figcaption,
	.prose .wp-element-caption,
	.prose blockquote cite {
		font-size: 0.9rem;
	}

	.prose pre {
		font-size: 0.875rem;
	}

	.entry-title {
		font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.1rem);
		line-height: 1.2;
	}

	.entry-meta,
	.entry-crumbs {
		font-size: 0.875rem;
	}

	.author-bio,
	.comment-meta {
		font-size: 0.95rem;
	}
}

@media (max-width: 559px) {
	.prose .alignleft,
	.prose .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 1em;
	}
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2rem;
	font-family: var(--font-mono);
}

/* Code blocks (always dark, like a terminal) ------------------------------- */
.prose pre {
	margin-block: 1.6em;
	padding: 1rem 1.1rem;
	overflow-x: auto;
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	background: var(--code-bg);
	color: var(--code-text);
	font: 0.86rem/1.65 var(--font-mono);
	tab-size: 2;
	-webkit-overflow-scrolling: touch;
}

.prose pre code,
.prose .wp-block-code code {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	white-space: pre;
	overflow-wrap: normal;
}

.code-block {
	margin-block: 1.6em;
	overflow: hidden;
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	background: var(--code-bg);
}

.prose > .code-block + * {
	margin-top: 1.6em;
}

.code-block pre,
.prose .code-block pre {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.code-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.45rem 0.6rem 0.45rem 0.85rem;
	border-bottom: 1px solid var(--code-border);
	background: var(--code-bar);
}

.code-bar .dots i {
	width: 10px;
	height: 10px;
}

.code-lang {
	margin-right: auto;
	color: #8b949e;
	font: 500 0.72rem/1 var(--font-mono);
	text-transform: lowercase;
}

.code-copy {
	padding: 0.4rem 0.65rem;
	border: 1px solid #30363d;
	border-radius: 5px;
	background: transparent;
	color: #c9d1d9;
	font: 500 0.72rem/1 var(--font-mono);
	cursor: pointer;
}

.code-copy:hover {
	border-color: #4ade80;
	color: #4ade80;
}

.hljs {
	background: transparent;
	color: var(--code-text);
}

.hljs-comment,
.hljs-quote {
	color: #7d8590;
	font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-doctag,
.hljs-meta .hljs-keyword {
	color: #c792ea;
}

.hljs-string,
.hljs-regexp,
.hljs-meta .hljs-string {
	color: #a5e075;
}

.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
	color: #f78c6c;
}

.hljs-title,
.hljs-title.function_,
.hljs-section {
	color: #82aaff;
}

.hljs-built_in,
.hljs-type,
.hljs-title.class_ {
	color: #ffcb6b;
}

.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-selector-class,
.hljs-selector-id {
	color: #89ddff;
}

.hljs-variable,
.hljs-template-variable,
.hljs-params {
	color: #f2c48d;
}

.hljs-tag,
.hljs-name,
.hljs-meta {
	color: #ff757f;
}

.hljs-addition {
	background: rgb(46 160 67 / 0.18);
	color: #7ee787;
}

.hljs-deletion {
	background: rgb(248 81 73 / 0.18);
	color: #ffa198;
}

.hljs-emphasis {
	font-style: italic;
}

.hljs-strong {
	font-weight: 700;
}

/* Entry footer ------------------------------------------------------------ */
.entry-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--border);
}

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.author-box .avatar {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

.author-name {
	margin: 0 0 0.25rem;
	font: 700 0.95rem/1.4 var(--font-mono);
}

.author-name a {
	color: var(--text-strong);
	text-decoration: none;
}

.author-bio {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.post-navigation {
	margin-top: 2.5rem;
}

.post-navigation .nav-links {
	display: grid;
	gap: 1rem;
	justify-content: stretch;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--accent);
}

.nav-label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-mono);
}

.nav-title {
	color: var(--text-strong);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Comments ---------------------------------------------------------------- */
.comments-area {
	margin-top: 3rem;
}

.comments-title,
.comment-reply-title {
	font: 700 1.05rem/1.3 var(--font-mono);
	letter-spacing: 0;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 0.5rem;
	padding-left: 1rem;
	border-left: 1px dashed var(--border);
}

@media (min-width: 720px) {
	.comment-list .children {
		padding-left: 1.5rem;
	}
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--border);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.88rem;
}

.comment-author .avatar {
	margin-right: 0.5rem;
	border-radius: 50%;
	vertical-align: middle;
}

.comment-author .fn {
	color: var(--text-strong);
	font-style: normal;
	font-weight: 600;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--muted);
	font: 500 0.75rem/1.4 var(--font-mono);
	text-decoration: none;
}

.comment-content {
	margin-top: 0.5rem;
	overflow-wrap: break-word;
}

.reply a {
	font: 600 0.75rem/1 var(--font-mono);
	text-decoration: none;
}

.comment-respond {
	margin-top: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.comment-form p {
	margin: 0 0 1rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--muted);
	font: 500 0.8rem/1.4 var(--font-mono);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
}

.comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: 0.85rem;
}

/* Terminal sessions (```console blocks): "$" prompt, dimmed output ----------- */
.prose pre.is-console .ps1 {
	color: #4ade80;
	user-select: none;
}

.prose pre.is-console .term-cmd {
	color: var(--code-text);
}

.prose pre.is-console .term-out {
	color: #8b949e;
}

/* Details block (FAQ accordions) --------------------------------------------- */
.prose .wp-block-details {
	margin-block: 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	transition: border-color 0.15s;
}

.prose .wp-block-details[open],
.prose .wp-block-details:hover {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.prose .wp-block-details > summary {
	padding: 0.85rem 1rem;
	color: var(--text-strong);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.prose .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.prose .wp-block-details > summary::before {
	content: "+ ";
	content: "+ " / "";
	color: var(--accent);
	font-family: var(--font-mono);
}

.prose .wp-block-details[open] > summary::before {
	content: "− ";
	content: "− " / "";
}

.prose .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 1rem 0.9rem 2.1rem;
	color: var(--text);
}

/* Read mode (phones) -------------------------------------------------------
   Book-like reading toggled by the "Read mode" button: serif text, paper or
   night colors, adjustable size, distractions hidden. main.js sets
   data-read / data-read-tone / data-read-size on <html>. */
.read-fab,
.read-mode {
	display: none;
}

@media (max-width: 719px) {
	.read-fab {
		position: fixed;
		right: var(--gutter);
		bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
		z-index: 40;
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		padding: 0.7rem 1rem;
		border: 1px solid var(--border-strong);
		border-radius: 999px;
		background: var(--bg-elev);
		color: var(--text-strong);
		font: 600 0.9rem/1 var(--font-sans);
		box-shadow: var(--shadow);
		cursor: pointer;
	}

	.read-fab .icon {
		color: var(--accent);
	}

	:root[data-read="on"] body.single {
		--read-bg: #f4ecd8;
		--read-text: #3b3024;
		--read-muted: #7c6b56;
		--read-accent: #8a4f1d;
		--read-border: #e0d3b8;
		--read-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
		background: var(--read-bg);
		color: var(--read-text);
		color-scheme: light;
	}

	:root[data-read="on"][data-read-tone="night"] body.single {
		--read-bg: #15130f;
		--read-text: #d8cebd;
		--read-muted: #978b78;
		--read-accent: #d9a066;
		--read-border: #2d2721;
		color-scheme: dark;
	}

	:root[data-read="on"] body.single :is(.site-banner, .site-header, .site-footer, .entry-crumbs, .tag-list, .toc, .entry-footer, .post-navigation, .comments-area, .read-fab) {
		display: none;
	}

	:root[data-read="on"] body.single .read-mode {
		display: block;
	}

	:root[data-read="on"] body.single .site-main {
		padding-top: 1.5rem;
		padding-bottom: 6rem;
	}

	:root[data-read="on"] body.single :is(.entry-title, .prose h1, .prose h2, .prose h3, .prose h4) {
		color: var(--read-text);
		font-family: var(--read-serif);
		letter-spacing: 0;
	}

	:root[data-read="on"] body.single .entry-meta {
		color: var(--read-muted);
	}

	:root[data-read="on"] body.single .entry-author {
		color: var(--read-text);
	}

	:root[data-read="on"] body.single .prose {
		color: var(--read-text);
		font-family: var(--read-serif);
		font-size: 1.1875rem;
		line-height: 1.75;
		text-wrap: pretty;
	}

	:root[data-read="on"][data-read-size="0"] body.single .prose {
		font-size: 1.0625rem;
	}

	:root[data-read="on"][data-read-size="2"] body.single .prose {
		font-size: 1.3125rem;
	}

	:root[data-read="on"][data-read-size="3"] body.single .prose {
		font-size: 1.4375rem;
	}

	:root[data-read="on"][data-read-size="4"] body.single .prose {
		font-size: 1.5625rem;
	}

	:root[data-read="on"] body.single .prose :is(h2, h3)::before {
		content: none;
	}

	:root[data-read="on"] body.single .prose :is(strong, a) {
		color: inherit;
	}

	:root[data-read="on"] body.single .prose a {
		text-decoration-color: var(--read-accent);
	}

	:root[data-read="on"] body.single .prose :is(ul li, ol li)::marker {
		color: var(--read-accent);
	}

	:root[data-read="on"] body.single .prose blockquote {
		border-left-color: var(--read-accent);
		background: transparent;
		font-style: italic;
	}

	:root[data-read="on"] body.single .prose :not(pre) > code {
		border-color: var(--read-border);
		background: color-mix(in srgb, var(--read-text) 7%, transparent);
		color: var(--read-text);
	}

	:root[data-read="on"] body.single .prose hr {
		border-top-color: var(--read-border);
	}

	.read-progress {
		position: fixed;
		inset: 0 0 auto;
		z-index: 41;
		height: 3px;
		background: var(--read-border);
	}

	.read-progress span {
		display: block;
		width: 0;
		height: 100%;
		background: var(--read-accent);
	}

	.read-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 41;
		display: flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--read-border);
		background: var(--read-bg);
	}

	.read-btn {
		min-width: 44px;
		min-height: 44px;
		padding: 0 0.75rem;
		border: 1px solid var(--read-border);
		border-radius: var(--radius-sm);
		background: transparent;
		color: var(--read-text);
		font: 600 0.95rem/1 var(--read-serif);
		cursor: pointer;
	}

	.read-btn--big {
		font-size: 1.15rem;
	}

	.read-btn .icon {
		vertical-align: middle;
	}

	.read-percent {
		margin-left: auto;
		color: var(--read-muted);
		font: 500 0.85rem/1 var(--font-mono);
	}

	.read-exit {
		font-family: var(--font-sans);
	}
}/* ==========================================================================
   JeffXL Terminal — About and Legal page templates, index cards, editor block styles
   (Cards, Chips, Callout) and Contact Form 7. Loaded on singular views.
   ========================================================================== */

/* About: hero --------------------------------------------------------------- */
.about-hero {
	max-width: 960px;
	margin: 0 auto 3rem;
}

.about-hero-body {
	display: grid;
	gap: 1.5rem;
	justify-items: center;
	padding: 1.75rem 1.25rem;
	text-align: center;
}

@media (min-width: 720px) {
	.about-hero-body {
		grid-template-columns: 168px minmax(0, 1fr);
		align-items: center;
		justify-items: start;
		gap: 2.25rem;
		padding: 2.25rem 2.5rem;
		text-align: left;
	}
}

.about-avatar img,
.about-monogram {
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px var(--bg-elev), 0 0 0 6px var(--accent), 0 12px 40px var(--glow);
}

@media (min-width: 720px) {
	.about-avatar img,
	.about-monogram {
		width: 168px;
		height: 168px;
	}
}

.about-monogram {
	display: grid;
	place-items: center;
	background: var(--bg-soft);
	color: var(--accent);
	font: 700 3.5rem/1 var(--font-mono);
}

.about-title {
	margin: 0.25rem 0 0.75rem;
	font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.about-lead {
	max-width: 56ch;
	margin: 0 0 1.25rem;
	color: var(--text);
	font-size: 1.12rem;
	line-height: 1.6;
}

.about-intro .social-links {
	justify-content: center;
}

@media (min-width: 720px) {
	.about-intro .social-links {
		justify-content: flex-start;
	}
}

.about-intro .social-links .icon-btn {
	border-color: var(--border);
	background: var(--bg-soft);
}

.about-stats {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;
	border-top: 1px solid var(--border);
}

/* Number above label; dt stays first in the markup for screen readers. */
.about-stats > div {
	display: flex;
	flex-direction: column-reverse;
	padding: 1rem 0.5rem;
	text-align: center;
}

.about-stats > div + div {
	border-left: 1px dashed var(--border);
}

.about-stats dt {
	color: var(--muted);
	font: 500 0.72rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.about-stats dd {
	margin: 0;
	color: var(--accent);
	font: 700 1.6rem/1.2 var(--font-mono);
}

/* About: content and latest posts ------------------------------------------ */
.about-content {
	max-width: var(--measure);
	margin-inline: auto;
}

.about-content > h2:first-child {
	margin-top: 0;
}

/* About: profile told as a terminal session (Custom HTML block in the page content). */
.prose .about-term {
	margin-block: 2em;
}

.about-term .terminal-cmd:not(:first-child) {
	margin-top: 1.6rem;
}

.about-term-status {
	margin: 0 0 0.9rem;
	color: var(--muted);
	font: 500 0.85rem/1.6 var(--font-mono);
	overflow-wrap: anywhere;
}

.about-term-status > span {
	display: block;
}

.about-term-status > span + span {
	padding-left: 1.2em;
}

.about-term-status .is-up {
	color: var(--accent);
}

.about-term-caret {
	display: inline-block;
	width: 0.6em;
	height: 1.1em;
	vertical-align: text-bottom;
	background: var(--accent);
	animation: about-blink 1.1s steps(1) infinite;
}

@keyframes about-blink {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-term-caret {
		animation: none;
	}
}

/* Beats ".section:first-child { margin-top: 0 }": this section is first in its own container. */
.section.latest-posts {
	max-width: 960px;
	margin-inline: auto;
	margin-top: 4rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1rem;
}

/* Buttons ------------------------------------------------------------------- */
.prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.prose .wp-block-button__link {
	color: var(--accent-contrast);
	text-decoration: none;
}

.prose .is-style-outline .wp-block-button__link {
	border: 1px solid var(--accent);
	background: transparent;
	color: var(--accent);
}

.prose .is-style-outline .wp-block-button__link:hover {
	background: var(--accent-soft);
	color: var(--accent);
	filter: none;
}

/* Block style: Columns → Cards ---------------------------------------------- */
.prose .wp-block-columns.is-style-cards {
	gap: 1rem;
	margin-block: 1.25em;
}

.prose .is-style-cards > .wp-block-column {
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	transition: border-color 0.15s;
}

.prose .is-style-cards > .wp-block-column:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.prose .is-style-cards > .wp-block-column > * {
	margin-block: 0;
}

.prose .is-style-cards > .wp-block-column > * + * {
	margin-top: 0.5em;
}

.prose .is-style-cards h3 {
	font-size: 1.05rem;
}

.prose .is-style-cards h3::before {
	content: "> ";
	content: "> " / "";
}

.prose .is-style-cards p {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Block style: List → Chips -------------------------------------------------- */
.prose ul.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}

.prose ul.is-style-chips li {
	margin: 0;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-elev);
	color: var(--text);
	font: 500 0.82rem/1 var(--font-mono);
}

.prose ul.is-style-chips li::before {
	content: "#";
	margin-right: 0.15rem;
	color: var(--accent);
}

/* Block style: Group → Callout ----------------------------------------------- */
.prose .wp-block-group.is-style-callout,
.legal-summary {
	padding: 1rem 1.25rem;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
	border-radius: var(--radius);
	background: var(--accent-soft);
}

.prose .is-style-callout > * {
	margin-block: 0;
}

.prose .is-style-callout > * + * {
	margin-top: 0.6em;
}

/* Legal template ------------------------------------------------------------ */
.legal-summary {
	margin-top: 1.5rem;
}

.legal-summary p {
	margin: 0;
}

.legal-summary .legal-summary-label {
	margin-bottom: 0.35rem;
	color: var(--accent);
	font: 700 0.75rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.legal .prose {
	counter-reset: legal-section;
}

.legal .prose h2 {
	counter-increment: legal-section;
	padding-top: 1.75rem;
	border-top: 1px dashed var(--border);
}

.legal .prose h2::before {
	content: counter(legal-section, decimal-leading-zero) "  ";
	content: counter(legal-section, decimal-leading-zero) "  " / "";
}

.legal .prose h3::before {
	content: none;
}

.legal .prose table {
	font-size: 0.9rem;
}

.legal .prose td:first-child {
	font-family: var(--font-mono);
	font-size: 0.85em;
	white-space: nowrap;
}

/* Contact Form 7 ------------------------------------------------------------- */
.prose .wpcf7 {
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.prose .wpcf7 form > p,
.prose .wpcf7 form > div > p {
	margin: 0 0 1rem;
}

.prose .wpcf7 label {
	display: block;
	color: var(--muted);
	font: 500 0.8rem/1.4 var(--font-mono);
}

.prose .wpcf7 label .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
	font: 400 1rem/1.5 var(--font-sans);
}

.prose .wpcf7 textarea {
	min-height: 140px;
}

.prose .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	color: #f87171;
	font: 500 0.78rem/1.4 var(--font-mono);
}

.prose .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
}

.prose .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--accent);
	color: var(--accent);
}

.prose .wpcf7 form.invalid .wpcf7-response-output,
.prose .wpcf7 form.failed .wpcf7-response-output {
	border-color: #f87171;
	color: #f87171;
}

/* Terminal cards (Cheatsheets and Tutorials index templates) ------------------
   Every card has the same size on both pages: one-line title, a description box
   of exactly four lines (longer text ends in "…") and equal-height grid rows. */
.term-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	grid-auto-rows: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.term-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}

.term-card:hover {
	border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
	color: var(--text);
	transform: translateY(-2px);
}

.term-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
}

.term-card .terminal-cmd {
	margin: 0;
}

.term-card-title {
	color: var(--text-strong);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.term-card-desc {
	display: -webkit-box;
	height: 6.4em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.term-card-meta {
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--accent);
	font: 500 0.78rem/1.4 var(--font-mono);
}

@media (prefers-reduced-motion: reduce) {
	.term-card,
	.term-card:hover {
		transform: none;
	}
}

/* Roadmap route colors ------------------------------------------------------ */
/* Each roadmap has its own route color (the "color" field in roadmaps/*.json), used by
   its ticket on the Roadmaps index and by its roadmap page, like lines on a transit map.
   Green is the site accent; the derived tokens are repeated because custom properties
   resolve where they are declared. Violet and amber are taken by the 2027 and 2026 badges. */
.rm-color--sky {
	--accent: #38bdf8;
	--accent-contrast: #03131d;
	--accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
	--glow: color-mix(in srgb, var(--accent) 10%, transparent);
}

:root[data-theme="light"] .rm-color--sky {
	--accent: #0369a1;
	--accent-contrast: #ffffff;
	--accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
	--glow: color-mix(in srgb, var(--accent) 8%, transparent);
}/* ==========================================================================
   JeffXL Terminal — Roadmap page template: legend panel, the diagram (stages on
   a main line, topics on both sides), topic guide and topic dialog.
   ========================================================================== */

.roadmap {
	--rm-new: #fbbf24;
	--rm-next: #a78bfa;
	--rm-legacy: var(--muted);
	--rm-line: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
}

:root[data-theme="light"] .roadmap {
	--rm-new: #a16207;
	--rm-next: #6d28d9;
}

.roadmap [hidden] {
	display: none !important;
}

.rm-head {
	max-width: var(--measure);
}

/* Buttons ------------------------------------------------------------------- */
.rm-btn {
	padding: 0.5rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-elev);
	color: var(--muted);
	font: 500 0.78rem/1 var(--font-mono);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.rm-btn:hover,
.rm-btn.is-active,
.rm-btn[aria-pressed="true"] {
	border-color: var(--accent);
	color: var(--accent);
}

/* Legend, highlight filter and progress panel ------------------------------- */
.rm-panel {
	margin-bottom: 2.5rem;
}

.rm-panel-body {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 960px) {
	.rm-panel-body {
		grid-template-columns: 1.4fr 1fr 1fr;
		align-items: start;
	}
}

.rm-legend-title {
	margin: 0 0 0.6rem;
	color: var(--muted);
	font: 500 0.72rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rm-legend ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
}

.rm-legend li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.rm-swatch {
	display: inline-block;
	width: 1.6rem;
	height: 0.95rem;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 4px;
	background: var(--bg-elev);
}

.rm-focus {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rm-focus .rm-legend-title {
	flex-basis: 100%;
}

.rm-progress-text {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
}

.rm-progress-text strong {
	color: var(--accent);
	font-family: var(--font-mono);
}

.rm-progress-track {
	display: block;
	height: 6px;
	margin-bottom: 0.75rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--bg-soft);
}

.rm-progress-bar {
	display: block;
	width: 0;
	height: 100%;
	background: var(--accent);
	transition: width 0.3s;
}

/* Diagram -------------------------------------------------------------------
   Phones: one column with the main line on the left. Wide screens: the stage
   sits on a centred main line with its topics split to the left and right. */
.rm-map {
	position: relative;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

.rm-map::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 1.05rem;
	border-left: 2px dashed var(--rm-line);
}

.rm-stage {
	position: relative;
	display: grid;
	gap: 0.75rem;
	padding: 0 0 2rem 2.75rem;
}

.rm-stage-node {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.75rem 0.95rem;
	border: 2px solid var(--accent);
	border-radius: var(--radius);
	background: var(--bg-elev);
	box-shadow: 0 0 0 4px var(--bg), 0 8px 24px var(--glow);
	color: var(--text-strong);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.rm-stage-node::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(-2.75rem + 0.55rem);
	width: 1.05rem;
	height: 1.05rem;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--bg);
	transform: translateY(-50%);
}

.rm-stage.is-complete .rm-stage-node::before {
	background: var(--accent);
}

.rm-stage-node:hover {
	color: var(--text-strong);
	background: var(--accent-soft);
}

.rm-step {
	color: var(--accent);
	font: 700 0.85rem/1 var(--font-mono);
}

.rm-stage-title {
	flex: 1;
}

.rm-stage-count {
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--muted);
	font: 500 0.72rem/1 var(--font-mono);
	white-space: nowrap;
}

.rm-side {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Topic nodes: solid = learn it, outlined = alternative, dashed = good to know. */
.rm-topic {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--bg-elev);
	color: var(--text);
	font-size: 0.88rem;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s, opacity 0.2s;
}

.rm-topic:hover {
	border-color: var(--accent);
	color: var(--text-strong);
}

.rm-topic--core {
	border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
	background: var(--accent-soft);
	color: var(--text-strong);
	font-weight: 600;
}

.rm-topic--optional {
	border-style: dashed;
	background: transparent;
	color: var(--muted);
}

.rm-topic.is-done {
	border-color: var(--accent);
}

.rm-topic.is-done .rm-topic-title {
	text-decoration: line-through;
	text-decoration-color: var(--accent);
}

.rm-topic.is-done::before {
	content: "✓";
	content: "✓" / "";
	color: var(--accent);
	font-weight: 700;
}

.rm-badge {
	padding: 0.15rem 0.4rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font: 600 0.62rem/1 var(--font-mono);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.rm-badge--new {
	color: var(--rm-new);
}

.rm-badge--next {
	color: var(--rm-next);
}

.rm-badge--legacy {
	color: var(--rm-legacy);
}

/* Highlight filter: dim everything that does not match. */
.rm-map[data-rm-focus="core"] .rm-topic:not(.rm-topic--core),
.rm-map[data-rm-focus="new"] .rm-topic:not(.has-tag-new),
.rm-map[data-rm-focus="next"] .rm-topic:not(.has-tag-next) {
	opacity: 0.28;
}

@media (min-width: 900px) {
	.rm-map::before {
		left: 50%;
		transform: translateX(-1px);
	}

	.rm-stage {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(0, 1fr);
		align-items: center;
		gap: 0 2.5rem;
		padding: 0 0 2.25rem;
	}

	.rm-stage-node {
		grid-column: 2;
		grid-row: 1;
		flex-direction: column;
		gap: 0.35rem;
		text-align: center;
	}

	.rm-stage-node::before {
		content: none;
	}

	.rm-side {
		position: relative;
		grid-row: 1;
	}

	.rm-side--left {
		grid-column: 1;
		justify-content: flex-end;
	}

	.rm-side--right {
		grid-column: 3;
	}

	/* Connectors from each side to the stage. */
	.rm-side--left::after,
	.rm-side--right::before {
		content: "";
		position: absolute;
		top: 50%;
		width: 2.5rem;
		border-top: 1px dashed var(--rm-line);
	}

	.rm-side--left::after {
		right: -2.5rem;
	}

	.rm-side--right::before {
		left: -2.5rem;
	}
}

/* Page content and topic guide ---------------------------------------------- */
.rm-content {
	max-width: var(--measure);
	margin: 0 auto 3rem;
}

.rm-guide {
	max-width: var(--measure);
	margin: 0 auto;
}

.rm-guide-title {
	margin: 0 0 1.5rem;
	font-size: 1.55rem;
}

.rm-guide-stage {
	margin-bottom: 2.25rem;
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.rm-guide-stage-title {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

.rm-guide-summary {
	margin: 0 0 1rem;
	color: var(--muted);
}

.rm-entries {
	display: grid;
	gap: 0.6rem;
}

.rm-entry {
	padding: 0.85rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-elev);
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Same encoding as the diagram nodes: green outline = learn it, dashed = good to know. */
.rm-entry--core {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.rm-entry--optional {
	border-style: dashed;
	border-color: var(--border-strong);
}

.rm-entry:target {
	border-color: var(--accent);
}

.rm-entry-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.6rem;
	margin-bottom: 0.35rem;
}

.rm-entry-title {
	margin: 0;
	font-size: 1rem;
}

.rm-entry.is-done .rm-entry-title::before {
	content: "✓ ";
	content: "✓ " / "";
	color: var(--accent);
}

.rm-entry-type {
	color: var(--muted);
	font: 500 0.72rem/1 var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rm-entry-desc {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.65;
}

.rm-entry-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
}

.rm-entry-links a::before {
	content: "→ ";
	content: "→ " / "";
}

/* Topic dialog ------------------------------------------------------------- */
.rm-dialog {
	width: min(560px, calc(100vw - 2rem));
	max-height: calc(100vh - 4rem);
	padding: 0;
	color: var(--text);
}

.rm-dialog::backdrop {
	background: rgb(0 0 0 / 0.6);
	backdrop-filter: blur(2px);
}

.rm-dialog .terminal-bar {
	position: sticky;
	top: 0;
}

.rm-dialog-close {
	margin-left: auto;
}

.rm-dialog-body .rm-entry {
	padding: 0;
	border: 0;
	background: none;
}

.rm-dialog-body .rm-entry-title {
	font-size: 1.3rem;
}

@media (prefers-reduced-motion: reduce) {
	.rm-progress-bar,
	.rm-topic {
		transition: none;
	}
}