/*
Theme Name: nextDash Terminal
Theme URI: https://github.com/jordibrouwer/nextdash
Author: Jordi Brouwer
Author URI: https://www.jordibrw.nl
Description: Een terminal-thema voor het nextDash open-source project. Zwart scherm, phosphor-groene Source Code Pro, CRT-scanlines, boot-sequence en typemachine-animaties. Gemaakt voor devlogs en release notes.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextdash-terminal
Tags: blog, dark, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ============================================================
   00. VARIABELEN
   ============================================================ */

:root {
	--nd-bg:            #050705;
	--nd-bg-window:     #0a0e0a;
	--nd-bg-chrome:     #101610;
	--nd-bg-inset:      #0d120d;
	--nd-green:         #00ff41;
	--nd-green-dim:     #00b32d;
	--nd-green-faint:   #0a5c1c;
	--nd-green-glow:    rgba(0, 255, 65, 0.35);
	--nd-text:          #b8ffc8;
	--nd-muted:         #4e8f5e;
	--nd-amber:         #ffb000;
	--nd-red:           #ff4d4d;
	--nd-cyan:          #35f0d0;
	--nd-border:        #1c3a22;

	--nd-font:          'Source Code Pro', 'SFMono-Regular', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	--nd-fs:            15px;
	--nd-lh:            1.75;
	--nd-max:           980px;
	--nd-radius:        4px;

	/* Horizontale padding van het venster. De menubalk gebruikt dit om
	   full-bleed over de volle breedte te lopen. */
	--nd-pad:           1.75rem;
}

/* ============================================================
   01. RESET
   ============================================================ */

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

html {
	font-size: var(--nd-fs);
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--nd-green-faint) var(--nd-bg);
}

body {
	margin: 0;
	padding: 0;
	background: var(--nd-bg);
	color: var(--nd-text);
	font-family: var(--nd-font);
	font-size: 1rem;
	line-height: var(--nd-lh);
	font-variant-ligatures: none;
	overflow-x: hidden;
	text-shadow: 0 0 1px rgba(0, 255, 65, 0.25);
}

img, svg, video, iframe, embed, object { max-width: 100%; height: auto; }
figure { margin: 2rem 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--nd-bg); }
::-webkit-scrollbar-thumb { background: var(--nd-green-faint); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--nd-green-dim); }

::selection { background: var(--nd-green); color: #000; text-shadow: none; }

/* ============================================================
   02. CRT-OVERLAY (scanlines + vignette + flicker)
   ============================================================ */

.nd-crt,
.nd-vignette {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
}

.nd-crt {
	background: repeating-linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0px,
		rgba(0, 0, 0, 0) 2px,
		rgba(0, 0, 0, 0.22) 3px,
		rgba(0, 0, 0, 0.22) 4px
	);
	opacity: 0.55;
	mix-blend-mode: multiply;
}

.nd-crt::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 255, 65, 0) 0%,
		rgba(0, 255, 65, 0.05) 50%,
		rgba(0, 255, 65, 0) 100%
	);
	height: 30vh;
	animation: nd-sweep 9s linear infinite;
}

.nd-vignette {
	background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%);
	z-index: 9998;
}

@keyframes nd-sweep {
	0%   { transform: translateY(-40vh); }
	100% { transform: translateY(140vh); }
}

@keyframes nd-flicker {
	0%, 100% { opacity: 1; }
	97%      { opacity: 1; }
	97.5%    { opacity: 0.86; }
	98%      { opacity: 1; }
	98.6%    { opacity: 0.93; }
	99%      { opacity: 1; }
}

.nd-shell { animation: nd-flicker 12s infinite steps(1, end); }

/* ============================================================
   03. BOOT SEQUENCE
   ============================================================ */

#nd-boot {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: var(--nd-bg);
	padding: 6vh 6vw;
	font-size: 0.9rem;
	color: var(--nd-green);
	overflow: hidden;
}

#nd-boot .nd-boot-line {
	white-space: pre-wrap;
	opacity: 0;
	animation: nd-boot-in 0.05s forwards;
}

#nd-boot .nd-ok  { color: var(--nd-green); }
#nd-boot .nd-warn { color: var(--nd-amber); }

@keyframes nd-boot-in { to { opacity: 1; } }

#nd-boot.nd-boot-done {
	opacity: 0;
	transition: opacity 0.35s ease-out;
	pointer-events: none;
}

/* ============================================================
   04. LAYOUT / TERMINALVENSTER
   ============================================================ */

.nd-shell {
	max-width: var(--nd-max);
	margin: 2.5rem auto 4rem;
	padding: 0 1.25rem;
}

.nd-window {
	background: var(--nd-bg-window);
	border: 1px solid var(--nd-border);
	border-radius: var(--nd-radius);
	box-shadow:
		0 0 0 1px rgba(0, 255, 65, 0.06),
		0 0 60px rgba(0, 255, 65, 0.05),
		0 24px 70px rgba(0, 0, 0, 0.9);
	overflow: hidden;
}

/* Titelbalk */
.nd-titlebar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.9rem;
	background: var(--nd-bg-chrome);
	border-bottom: 1px solid var(--nd-border);
	font-size: 0.78rem;
	color: var(--nd-muted);
	user-select: none;
}

.nd-dots { display: flex; gap: 0.45rem; }
.nd-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.nd-dot--r { background: #ff5f56; }
.nd-dot--y { background: #ffbd2e; }
.nd-dot--g { background: #27c93f; }

.nd-titlebar-title {
	flex: 1;
	text-align: center;
	letter-spacing: 0.03em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nd-titlebar-meta { font-size: 0.72rem; opacity: 0.7; }

.nd-window-body { padding: 1.75rem var(--nd-pad) 2.25rem; }

@media (max-width: 640px) {
	:root { --nd-pad: 1rem; }
	.nd-shell { margin: 1rem auto 2rem; padding: 0 0.6rem; }
	.nd-window-body { padding: 1.1rem var(--nd-pad) 1.5rem; }
	.nd-titlebar-meta { display: none; }
}

/* ============================================================
   05. HEADER
   ============================================================ */

.nd-masthead { margin-bottom: 2rem; }

.nd-ascii {
	color: var(--nd-green);
	font-size: clamp(0.42rem, 1.55vw, 0.82rem);
	line-height: 1.15;
	margin: 0 0 0.75rem;
	white-space: pre;
	overflow-x: auto;
	text-shadow: 0 0 8px var(--nd-green-glow);
}

.nd-site-title {
	font-size: 1.35rem;
	margin: 0;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.nd-site-title a { color: var(--nd-green); text-decoration: none; }
.nd-site-title a:hover { text-shadow: 0 0 12px var(--nd-green-glow); }

/* Klikbaar logo */
.nd-ascii-link {
	display: inline-block;
	text-decoration: none;
	border-radius: var(--nd-radius);
	transition: filter 0.18s;
}

.nd-ascii-link:hover .nd-ascii,
.nd-ascii-link:focus-visible .nd-ascii { text-shadow: 0 0 16px var(--nd-green-glow); }

.nd-ascii-link:focus-visible,
.nd-logo a:focus-visible {
	outline: 1px dashed var(--nd-green-dim);
	outline-offset: 4px;
}

.nd-logo a { display: inline-block; text-decoration: none; }

.nd-tagline {
	color: var(--nd-muted);
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
}

.nd-tagline::before { content: "# "; opacity: 0.6; }

/* Prompt-regel met typemachine */
.nd-promptline {
	margin: 1.25rem 0 0;
	font-size: 0.95rem;
	color: var(--nd-text);
	min-height: 1.75em;
}

.nd-user  { color: var(--nd-cyan); }
.nd-host  { color: var(--nd-green); }
.nd-path  { color: var(--nd-amber); }
.nd-sym   { color: var(--nd-muted); }

.nd-typed { color: var(--nd-text); }

.nd-cursor {
	display: inline-block;
	width: 0.6em;
	height: 1.05em;
	background: var(--nd-green);
	vertical-align: text-bottom;
	margin-left: 2px;
	animation: nd-blink 1.05s steps(1) infinite;
	box-shadow: 0 0 8px var(--nd-green-glow);
}

@keyframes nd-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ============================================================
   06. NAVIGATIE
   ============================================================ */

/* De menubalk loopt full-bleed over de volle breedte van het venster:
   negatieve marges heffen de padding van .nd-window-body op. De
   streepjeslijn sluit het blok eronder af. */
.nd-nav {
	position: relative;
	margin: 1.25rem calc(var(--nd-pad) * -1) 0;
	padding: 0 0 0.6rem;
	border-bottom: 1px dashed var(--nd-border);
}

.nd-nav-label {
	color: var(--nd-muted);
	font-size: 0.82rem;
	display: block;
	margin-bottom: 0.4rem;
}

/* WordPress-menu (alleen als de Customizer-optie daarvoor aan staat) */
.nd-nav .nd-menu,
.nd-nav .nd-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.4rem;
}

.nd-nav .nd-menu li { position: relative; }

.nd-nav .nd-menu a {
	color: var(--nd-green-dim);
	text-decoration: none;
	font-size: 0.9rem;
	padding: 0.15rem 0;
	display: inline-block;
	transition: color 0.12s, text-shadow 0.12s;
}

.nd-nav .nd-menu a::before { content: "./"; color: var(--nd-muted); }

.nd-nav .nd-menu a:hover,
.nd-nav .nd-menu a:focus-visible,
.nd-nav .nd-menu .current-menu-item > a {
	color: var(--nd-green);
	text-shadow: 0 0 10px var(--nd-green-glow);
	outline: none;
}

.nd-nav .nd-menu .current-menu-item > a::after { content: "*"; margin-left: 0.25rem; }

/* ------------------------------------------------------------
   Menubalk van één regel
   ------------------------------------------------------------ */

.nd-bar {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0 2.2rem;
	width: 100%;
	padding: 0.4rem var(--nd-pad);
	border-top: 1px solid var(--nd-border);
	border-bottom: 1px solid var(--nd-border);
	background: var(--nd-bg-chrome);
	font-size: 0.92rem;
	line-height: 1.6;
	overflow-x: auto;
	scrollbar-width: none;
}

.nd-bar::-webkit-scrollbar { display: none; }

.nd-bar-item {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	white-space: nowrap;
	flex: none;
}

.nd-bar-link {
	color: var(--nd-green-dim);
	text-decoration: none;
	padding: 0.1rem 0.15rem;
	border-radius: 2px;
	transition: color 0.12s, text-shadow 0.12s;
}

a.nd-bar-link:hover,
a.nd-bar-link:focus-visible {
	color: var(--nd-green);
	text-shadow: 0 0 10px var(--nd-green-glow);
	outline: none;
}

.nd-bar-label { color: var(--nd-muted); }

.nd-bar-item.nd-current > .nd-bar-link {
	color: var(--nd-green);
	text-shadow: 0 0 10px var(--nd-green-glow);
}

/* Duw de hint naar rechts, zodat de balk de volle breedte vult */
.nd-bar-hint {
	margin-left: auto;
	padding-left: 1.5rem;
	color: var(--nd-green-faint);
	font-size: 0.78rem;
	white-space: nowrap;
	flex: none;
}

/* Driehoekje dat het paneel opent */
.nd-caret-btn {
	background: none;
	border: none;
	padding: 0 0.15rem;
	margin: 0;
	cursor: pointer;
	color: var(--nd-muted);
	font-family: inherit;
	font-size: inherit;
	line-height: 1;
	transition: color 0.12s;
}

.nd-caret-btn:hover,
.nd-caret-btn:focus-visible { color: var(--nd-green); background: none; outline: none; }

.nd-caret-btn:focus-visible { outline: 1px dashed var(--nd-green-dim); outline-offset: 2px; }

/* Vaste breedte: ▸ en ▾ mogen de balk niet laten verspringen, ook niet
   als de browser ze uit een fallback-font haalt. */
.nd-caret {
	display: inline-block;
	width: 1ch;
	text-align: center;
	overflow: hidden;
	user-select: none;
}

.nd-caret::before { content: "\25B8"; }                                  /* ▸ */
.nd-caret-btn[aria-expanded="true"] .nd-caret::before { content: "\25BE"; } /* ▾ */

/* Uitklappaneel.
   Ligt altijd als ondoorzichtig blok OVER de inhoud eronder. Het staat
   nooit in de flow, dus openklappen verschuift niets op de pagina.
   De <noscript>-regels in header.php zetten het terug in de flow voor
   bezoekers zonder JavaScript. */
.nd-bar-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	margin-top: -1px;
	padding: 0.75rem var(--nd-pad) 0.85rem calc(var(--nd-pad) + 0.5rem);
	background: var(--nd-bg-window);
	border: 1px solid var(--nd-border);
	border-top-color: var(--nd-green-faint);
	border-radius: 0 0 var(--nd-radius) var(--nd-radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.nd-bar-panel.is-open { display: block; }

/* Item waarvan een subpagina de huidige is */
.nd-bar-item.nd-has-current > .nd-caret-btn { color: var(--nd-green-dim); }

/* ------------------------------------------------------------
   Boommenu (tree) — gebruikt in de uitklappanelen
   ------------------------------------------------------------ */

.nd-tree {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	font-size: 0.92rem;
	line-height: 1.65;
}

.nd-tree--sub { margin: 0; padding: 0; }

.nd-tree-item {
	margin: 0;
	white-space: nowrap;
	position: static;
}

.nd-branch {
	color: var(--nd-green-faint);
	white-space: pre;
	user-select: none;
}

.nd-tree a {
	color: var(--nd-green-dim);
	text-decoration: none;
	padding: 0 0.15rem;
	border-radius: 2px;
	transition: color 0.12s, text-shadow 0.12s;
}

.nd-tree a:hover,
.nd-tree a:focus-visible {
	color: var(--nd-green);
	text-shadow: 0 0 10px var(--nd-green-glow);
	outline: none;
}

.nd-tree .nd-current > a {
	color: var(--nd-green);
	text-shadow: 0 0 10px var(--nd-green-glow);
}

.nd-cur { color: var(--nd-amber); user-select: none; }

.nd-tree-label { color: var(--nd-muted); }

/* Submenu's van een WordPress-menu */
.nd-nav .sub-menu,
.nd-nav .children {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	background: var(--nd-bg-chrome);
	border: 1px solid var(--nd-border);
	padding: 0.5rem 0.85rem;
	min-width: 190px;
	flex-direction: column;
	gap: 0.2rem;
	box-shadow: 0 12px 30px rgba(0,0,0,0.8);
}

.nd-nav li:hover > .sub-menu,
.nd-nav li:focus-within > .sub-menu,
.nd-nav li:hover > .children,
.nd-nav li:focus-within > .children { display: flex; }

/* Mobiele toggle */
.nd-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--nd-border);
	color: var(--nd-green);
	font-family: inherit;
	font-size: 0.85rem;
	padding: 0.3rem 0.7rem;
	cursor: pointer;
	border-radius: var(--nd-radius);
}

@media (max-width: 700px) {
	.nd-nav-toggle { display: inline-block; margin-bottom: 0.6rem; }

	.nd-nav .nd-menu { display: none; flex-direction: column; gap: 0.1rem; }
	.nd-nav.nd-open .nd-menu { display: flex; }

	.nd-bar {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.15rem;
		overflow-x: visible;
	}

	.nd-nav.nd-open .nd-bar { display: flex; }

	.nd-bar-hint { display: none; }
	.nd-bar-item { width: 100%; justify-content: space-between; }

	/* Ook hier valt het paneel over de inhoud, zodat er niets verspringt. */
	.nd-nav:not(.nd-open) .nd-bar-panel { display: none; }

	.nd-nav .sub-menu,
	.nd-nav .children { position: static; display: flex; border: none; padding: 0 0 0 1.25rem; box-shadow: none; background: none; }

	/* Ruimere raakvlakken op touch */
	.nd-tree { font-size: 0.95rem; line-height: 1.95; }
	.nd-tree a { padding: 0.2rem 0.25rem; }
}

/* ============================================================
   07. POSTLIJST (ls -la stijl)
   ============================================================ */

.nd-listing-head {
	color: var(--nd-muted);
	font-size: 0.82rem;
	border-bottom: 1px dashed var(--nd-border);
	padding-bottom: 0.4rem;
	margin-bottom: 1.25rem;
}

.nd-post-card {
	border-left: 2px solid var(--nd-border);
	padding: 0 0 0 1.1rem;
	margin: 0 0 2.25rem;
	transition: border-color 0.18s;
}

.nd-post-card:hover { border-left-color: var(--nd-green); }

.nd-post-meta {
	color: var(--nd-muted);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.9rem;
	margin-bottom: 0.3rem;
}

.nd-post-meta .nd-perm { color: var(--nd-green-faint); }

.nd-entry-title {
	font-size: 1.18rem;
	line-height: 1.4;
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.nd-entry-title a { color: var(--nd-green); text-decoration: none; }

.nd-entry-title a::before {
	content: "$ cat ";
	color: var(--nd-muted);
	font-weight: 400;
}

.nd-entry-title a:hover {
	text-shadow: 0 0 12px var(--nd-green-glow);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nd-excerpt { color: var(--nd-text); font-size: 0.92rem; margin: 0 0 0.6rem; }
.nd-excerpt p { margin: 0 0 0.6rem; }

.nd-more {
	color: var(--nd-cyan);
	text-decoration: none;
	font-size: 0.85rem;
	border-bottom: 1px dotted currentColor;
}

.nd-more:hover { color: var(--nd-green); }
.nd-more::after { content: " \2192"; }

.nd-thumb {
	display: block;
	margin: 0 0 0.9rem;
	border: 1px solid var(--nd-border);
	filter: saturate(0.35) contrast(1.05);
	transition: filter 0.25s;
}

.nd-post-card:hover .nd-thumb,
.nd-thumb:hover { filter: saturate(1) contrast(1); }

/* ============================================================
   08. ARTIKELINHOUD
   ============================================================ */

.nd-entry-content { font-size: 0.97rem; }

.nd-entry-content > * { max-width: 100%; }

.nd-entry-content h1,
.nd-entry-content h2,
.nd-entry-content h3,
.nd-entry-content h4,
.nd-entry-content h5,
.nd-entry-content h6 {
	color: var(--nd-green);
	font-weight: 600;
	line-height: 1.35;
	margin: 2.25rem 0 0.85rem;
	letter-spacing: 0.01em;
}

.nd-entry-content h1 { font-size: 1.5rem; }
.nd-entry-content h2 { font-size: 1.28rem; }
.nd-entry-content h3 { font-size: 1.12rem; }
.nd-entry-content h4 { font-size: 1rem; }
.nd-entry-content h5,
.nd-entry-content h6 { font-size: 0.92rem; }

.nd-entry-content h2::before { content: "## "; color: var(--nd-muted); font-weight: 400; }
.nd-entry-content h3::before { content: "### "; color: var(--nd-muted); font-weight: 400; }
.nd-entry-content h4::before { content: "#### "; color: var(--nd-muted); font-weight: 400; }

.nd-entry-content p { margin: 0 0 1.35rem; }

.nd-entry-content a {
	color: var(--nd-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--nd-green-faint);
}

.nd-entry-content a:hover {
	color: var(--nd-green);
	text-decoration-color: currentColor;
	text-shadow: 0 0 10px var(--nd-green-glow);
}

.nd-entry-content ul,
.nd-entry-content ol { margin: 0 0 1.35rem; padding-left: 1.6rem; }
.nd-entry-content li { margin-bottom: 0.35rem; }

.nd-entry-content ul { list-style: none; padding-left: 1.2rem; }
.nd-entry-content ul > li::before {
	content: "\2022 ";
	color: var(--nd-green);
	margin-left: -1.2rem;
	display: inline-block;
	width: 1.2rem;
}

.nd-entry-content ol { list-style: decimal; }
.nd-entry-content ol::marker { color: var(--nd-green); }

.nd-entry-content blockquote {
	margin: 1.75rem 0;
	padding: 0.4rem 0 0.4rem 1.1rem;
	border-left: 2px solid var(--nd-green-dim);
	color: var(--nd-muted);
	font-style: normal;
}

.nd-entry-content blockquote p::before { content: "> "; color: var(--nd-green-faint); }

.nd-entry-content hr {
	border: 0;
	border-top: 1px dashed var(--nd-border);
	margin: 2.5rem 0;
}

.nd-entry-content strong { color: var(--nd-green); font-weight: 600; }
.nd-entry-content em { color: var(--nd-amber); font-style: normal; }

.nd-entry-content mark {
	background: var(--nd-green-faint);
	color: var(--nd-text);
	padding: 0 0.2em;
}

/* Code */
.nd-entry-content code,
.nd-entry-content kbd,
.nd-entry-content samp {
	font-family: var(--nd-font);
	font-size: 0.88em;
	background: var(--nd-bg-inset);
	border: 1px solid var(--nd-border);
	border-radius: 3px;
	padding: 0.08em 0.35em;
	color: var(--nd-amber);
}

.nd-entry-content kbd {
	color: var(--nd-green);
	box-shadow: 0 2px 0 var(--nd-border);
}

.nd-entry-content pre {
	background: var(--nd-bg-inset);
	border: 1px solid var(--nd-border);
	border-left: 2px solid var(--nd-green-dim);
	border-radius: var(--nd-radius);
	padding: 1.1rem 1.2rem;
	overflow-x: auto;
	margin: 0 0 1.6rem;
	font-size: 0.85rem;
	line-height: 1.65;
	position: relative;
}

.nd-entry-content pre::before {
	content: "\2500\2500 stdout \2500\2500";
	position: absolute;
	top: -0.72rem;
	left: 0.9rem;
	background: var(--nd-bg-window);
	color: var(--nd-muted);
	font-size: 0.68rem;
	padding: 0 0.45rem;
	letter-spacing: 0.06em;
}

.nd-entry-content pre code {
	background: none;
	border: none;
	padding: 0;
	color: var(--nd-text);
	font-size: inherit;
}

/* Tabellen */
.nd-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.75rem;
	font-size: 0.87rem;
}

.nd-entry-content th,
.nd-entry-content td {
	border: 1px solid var(--nd-border);
	padding: 0.5rem 0.7rem;
	text-align: left;
	vertical-align: top;
}

.nd-entry-content th {
	background: var(--nd-bg-chrome);
	color: var(--nd-green);
	font-weight: 600;
}

.nd-entry-content tr:hover td { background: rgba(0, 255, 65, 0.03); }

/* Afbeeldingen / captions */
.nd-entry-content img { border: 1px solid var(--nd-border); }

.wp-caption-text,
.nd-entry-content figcaption {
	color: var(--nd-muted);
	font-size: 0.8rem;
	text-align: left;
	margin-top: 0.5rem;
}

.wp-caption-text::before,
.nd-entry-content figcaption::before { content: "// "; opacity: 0.7; }

/* WP core alignment */
.alignleft  { float: left;  margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image { margin: 2rem 0; }
.sticky .nd-entry-title a::after { content: " [PINNED]"; color: var(--nd-amber); font-size: 0.72em; }

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

.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 100000;
	background: var(--nd-green);
	color: #000;
	padding: 0.5rem 1rem;
	height: auto; width: auto;
	text-decoration: none;
}

/* ============================================================
   09. SINGLE POST HEADER / FOOTER
   ============================================================ */

.nd-single-header {
	border-bottom: 1px dashed var(--nd-border);
	padding-bottom: 1.1rem;
	margin-bottom: 1.75rem;
}

.nd-single-title {
	font-size: 1.55rem;
	line-height: 1.32;
	color: var(--nd-green);
	margin: 0.45rem 0 0.6rem;
	text-shadow: 0 0 14px var(--nd-green-glow);
}

.nd-file-meta {
	color: var(--nd-muted);
	font-size: 0.79rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.1rem;
}

.nd-entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.1rem;
	border-top: 1px dashed var(--nd-border);
	font-size: 0.84rem;
	color: var(--nd-muted);
}

.nd-tags a,
.nd-cats a {
	color: var(--nd-green-dim);
	text-decoration: none;
	margin-right: 0.55rem;
	white-space: nowrap;
}

.nd-tags a::before { content: "#"; }
.nd-tags a:hover, .nd-cats a:hover { color: var(--nd-green); }

/* Post-navigatie */
.nd-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 2rem;
	font-size: 0.86rem;
	flex-wrap: wrap;
}

.nd-post-nav a { color: var(--nd-cyan); text-decoration: none; }
.nd-post-nav a:hover { color: var(--nd-green); }
.nd-post-nav span { display: block; color: var(--nd-muted); font-size: 0.76rem; }

/* Paginering */
.nd-pagination {
	margin-top: 2.5rem;
	padding-top: 1.1rem;
	border-top: 1px dashed var(--nd-border);
	font-size: 0.88rem;
}

.nd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.nd-pagination .page-numbers {
	color: var(--nd-green-dim);
	text-decoration: none;
	border: 1px solid var(--nd-border);
	padding: 0.15rem 0.6rem;
	border-radius: 3px;
}

.nd-pagination .page-numbers:hover,
.nd-pagination .page-numbers.current {
	color: #000;
	background: var(--nd-green);
	border-color: var(--nd-green);
	text-shadow: none;
}

/* ============================================================
   10. WIDGETS / SIDEBAR
   ============================================================ */

.nd-sidebar {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--nd-border);
	font-size: 0.88rem;
}

.nd-sidebar .widget { margin-bottom: 2rem; }

.nd-sidebar .widget-title {
	color: var(--nd-green);
	font-size: 0.95rem;
	margin: 0 0 0.7rem;
	font-weight: 600;
}

.nd-sidebar .widget-title::before { content: "$ "; color: var(--nd-muted); font-weight: 400; }

.nd-sidebar ul { list-style: none; margin: 0; padding: 0; }
.nd-sidebar li { margin-bottom: 0.3rem; }
.nd-sidebar li::before { content: "\2514\2500 "; color: var(--nd-green-faint); }
.nd-sidebar a { color: var(--nd-green-dim); text-decoration: none; }
.nd-sidebar a:hover { color: var(--nd-green); }

/* ============================================================
   11. ZOEKFORMULIER & FORMULIEREN
   ============================================================ */

.nd-search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--nd-bg-inset);
	border: 1px solid var(--nd-border);
	border-radius: var(--nd-radius);
	padding: 0.35rem 0.65rem;
}

.nd-search-form:focus-within { border-color: var(--nd-green-dim); box-shadow: 0 0 0 1px var(--nd-green-faint); }

.nd-search-form .nd-search-prompt { color: var(--nd-green); flex: none; }

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
	font-family: var(--nd-font);
	font-size: 0.9rem;
	background: var(--nd-bg-inset);
	border: 1px solid var(--nd-border);
	border-radius: var(--nd-radius);
	color: var(--nd-text);
	padding: 0.45rem 0.6rem;
	width: 100%;
	caret-color: var(--nd-green);
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--nd-green-dim);
	box-shadow: 0 0 0 1px var(--nd-green-faint);
}

::placeholder { color: var(--nd-green-faint); opacity: 1; }

.nd-search-form input[type="search"] {
	border: none;
	background: none;
	padding: 0.15rem 0;
	box-shadow: none;
}

.nd-search-form input[type="search"]:focus { box-shadow: none; }

button,
input[type="submit"],
.nd-btn {
	font-family: var(--nd-font);
	font-size: 0.88rem;
	background: transparent;
	color: var(--nd-green);
	border: 1px solid var(--nd-green-dim);
	border-radius: var(--nd-radius);
	padding: 0.4rem 1rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

button:hover,
input[type="submit"]:hover,
.nd-btn:hover {
	background: var(--nd-green);
	color: #000;
	text-shadow: none;
}

/* ============================================================
   12. REACTIES
   ============================================================ */

.nd-comments {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--nd-border);
}

.nd-comments-title {
	color: var(--nd-green);
	font-size: 1.05rem;
	margin: 0 0 1.25rem;
}

.nd-comments-title::before { content: "$ "; color: var(--nd-muted); }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1rem 0 0; padding-left: 1.4rem; border-left: 1px dashed var(--nd-border); }

.comment-body {
	background: var(--nd-bg-inset);
	border: 1px solid var(--nd-border);
	border-radius: var(--nd-radius);
	padding: 0.9rem 1.1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.comment-meta { font-size: 0.78rem; color: var(--nd-muted); margin-bottom: 0.5rem; }
.comment-author .fn { color: var(--nd-cyan); font-style: normal; font-weight: 600; }
.comment-author .fn::before { content: "@"; }
.comment-author img.avatar { border: 1px solid var(--nd-border); margin-right: 0.5rem; vertical-align: middle; filter: saturate(0.3); }
.comment-metadata a { color: var(--nd-muted); text-decoration: none; }
.comment-content p { margin: 0 0 0.7rem; }
.reply a { color: var(--nd-green-dim); text-decoration: none; font-size: 0.82rem; }
.reply a:hover { color: var(--nd-green); }
.reply a::before { content: "\21B3 "; }

.comment-respond { margin-top: 2rem; }
.comment-reply-title { color: var(--nd-green); font-size: 1rem; margin: 0 0 0.9rem; }
.comment-form label { display: block; color: var(--nd-muted); font-size: 0.8rem; margin-bottom: 0.25rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-notes, .form-allowed-tags { color: var(--nd-muted); font-size: 0.78rem; }

/* ============================================================
   13. 404 / GEEN RESULTATEN
   ============================================================ */

.nd-error-block {
	font-size: 0.95rem;
	line-height: 1.85;
}

.nd-error-code {
	color: var(--nd-red);
	font-size: clamp(0.45rem, 1.7vw, 0.9rem);
	line-height: 1.1;
	white-space: pre;
	overflow-x: auto;
	margin-bottom: 1.5rem;
	text-shadow: 0 0 10px rgba(255, 77, 77, 0.35);
}

.nd-error-line { margin: 0 0 0.35rem; }
.nd-error-line .nd-err { color: var(--nd-red); }

.nd-404-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.nd-404-list li::before { content: "\2514\2500 "; color: var(--nd-green-faint); }
.nd-404-list li { margin-bottom: 0.2rem; }

/* ============================================================
   14. FOOTER
   ============================================================ */

.nd-footer {
	margin-top: 1.5rem;
	font-size: 0.8rem;
	color: var(--nd-muted);
	text-align: left;
	line-height: 1.9;
}

.nd-footer a { color: var(--nd-green-dim); text-decoration: none; }
.nd-footer a:hover { color: var(--nd-green); }

.nd-footer-sep { color: var(--nd-green-faint); }

.nd-footer-menu {
	list-style: none;
	margin: 0.6rem 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.2rem;
}

.nd-footer-menu a::before { content: "./"; color: var(--nd-green-faint); }

.nd-featured { margin: 0 0 1.75rem; }
.nd-featured img { border: 1px solid var(--nd-border); }

.nd-edit a { color: var(--nd-amber); text-decoration: none; }
.nd-edit a:hover { color: var(--nd-green); }

.nd-logo img { max-height: 80px; width: auto; margin-bottom: 0.75rem; }

.nd-statusbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
	background: var(--nd-bg-chrome);
	border-top: 1px solid var(--nd-border);
	padding: 0.45rem 0.9rem;
	font-size: 0.74rem;
	color: var(--nd-muted);
}

.nd-statusbar .nd-status-ok { color: var(--nd-green); }

/* ============================================================
   15. GEREDUCEERDE BEWEGING
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.nd-crt::after { display: none; }
	.nd-cursor { animation: none; opacity: 1; }
}

/* ============================================================
   16. PRINT
   ============================================================ */

@media print {
	.nd-crt, .nd-vignette, .nd-titlebar, .nd-nav, .nd-statusbar, #nd-boot { display: none !important; }
	body { background: #fff; color: #000; text-shadow: none; }
	.nd-window { border: none; box-shadow: none; background: #fff; }
	.nd-entry-content a { color: #000; }
}
