/* ============================================================
   HOSTNER — SINGLE POST
   Only loaded on singular posts (is_singular('post'))
   ============================================================ */

:root {
	--sans: 'Inter', system-ui, sans-serif;
	--body: #C9C8C4;
}

/* ── READING PROGRESS BAR ──────────────────────────────────── */
#hn-prog {
	position: fixed; top: 0; left: 0; z-index: 999;
	height: 2px; width: 0;
	background: var(--green);
	transition: width 0.08s linear;
	pointer-events: none;
}

/* ── ARTICLE HEADER ────────────────────────────────────────── */
.art-head {
	background: var(--bg);
	padding: 32px 48px 56px;
	border-bottom: 1px solid var(--border);
}

/* Breadcrumb inside art-head — no max-width, no extra padding */
.art-breadcrumb {
	padding: 0 !important;
	margin: 0 0 24px !important;
	background: transparent;
}

.art-head-inner {
	display: grid;
	grid-template-columns: 5fr 5fr;
	gap: 0;
	align-items: stretch;
	margin-bottom: 28px;
}
.art-head-inner--no-thumb { grid-template-columns: 1fr; }

.art-head-thumb {
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}
.art-feat-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 347px;
	object-fit: contain;
	object-position: left top;
}

.art-eyebrow {
	display: flex; align-items: center; gap: 20px;
	margin-bottom: 28px; font-family: var(--font);
}
.art-cat       { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--green); }
.art-sep       { color: var(--border); }
.art-date,
.art-readtime  { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

.art-h1 {
	font-family: var(--font);
	font-size: clamp(28px, 4.2vw, 54px);
	font-weight: 700; line-height: 1.1;
	letter-spacing: -0.015em;
	margin-bottom: 24px;
}

.art-deck {
	font-family: var(--sans);
	font-size: 19px; color: var(--grey);
	line-height: 1.7;
	margin-bottom: 36px; font-weight: 400;
}

.art-head-inner--no-thumb .art-h1   { max-width: 840px; }
.art-head-inner--no-thumb .art-deck { max-width: 680px; }

.art-byline      { display: flex; align-items: center; gap: 14px; }
.byline-avatar   {
	width: 36px; height: 36px;
	background: var(--s2); border: 1px solid var(--border);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font); font-size: 13px; font-weight: 700;
	color: var(--green); flex-shrink: 0;
}
.byline-name         { font-family: var(--sans); font-size: 13px; color: var(--grey); }
.byline-name strong  { color: var(--white); display: block; font-weight: 600; }

/* ── COVER BAND ────────────────────────────────────────────── */
.art-cover {
	background: var(--s1); border-bottom: 1px solid var(--border);
	min-height: 260px; height: auto; padding: 20px 0;
	display: flex; align-items: center;
	position: relative; overflow: hidden;
}
.art-cover::before {
	content: ''; position: absolute; inset: 0;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 36px, rgba(34,197,94,0.025) 36px, rgba(34,197,94,0.025) 37px),
		repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(34,197,94,0.025) 36px, rgba(34,197,94,0.025) 37px);
}
.cover-terminal {
	position: relative; margin: 0 48px;
	width: min(640px, 90%);
	background: var(--bg); border: 1px solid var(--border); overflow: hidden;
}
.ct-bar {
	display: flex; align-items: center; gap: 7px; padding: 11px 16px;
	background: var(--s2); border-bottom: 1px solid var(--border);
}
.ct-dot   { width: 9px; height: 9px; border-radius: 50%; }
.ct-r     { background: #FF5F57; }
.ct-y     { background: #FFBD2E; }
.ct-g     { background: #28C840; }
.ct-title { font-family: var(--font); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; margin-left: 8px; }
.ct-body  { padding: 18px 20px; font-family: var(--font); font-size: 12px; line-height: 2; }
.c-ps     { color: var(--green); }
.c-cmd    { color: var(--white); }
.c-out    { color: var(--grey); }
.c-ok     { color: var(--green); }
.c-dim    { color: var(--muted); }
.cursor {
	display: inline-block; width: 7px; height: 14px;
	background: var(--green); vertical-align: -3px;
	animation: hn-blink 1.1s steps(1) infinite; margin-left: 2px;
}
@keyframes hn-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── ARTICLE BODY — grid wrapper, 1250px ───────────────────── */
.art-body {
	max-width: 1250px; margin: 0 auto;
	padding: 64px 48px 80px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 56px;
	align-items: start;
}

/* ── TABLE OF CONTENTS — matches category widget style ─────── */
.art-toc { position: sticky; top: 80px; }

.toc-label {
	font-family: var(--font); font-size: 10px; font-weight: 700;
	letter-spacing: 0.18em; color: var(--green);
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
	display: block;
}

.art-toc-list { list-style: none; padding: 0; margin: 0; }
.art-toc-list li { border-bottom: 1px solid var(--border); }

.toc-link {
	font-family: var(--sans); font-size: 13px; color: var(--grey);
	text-decoration: none; border: none !important;
	display: flex; align-items: center; justify-content: space-between;
	padding: 13px 0; gap: 8px;
	transition: color 0.15s;
	line-height: 1.3;
}
.toc-link:hover              { color: var(--white); }
.toc-link.is-active          { color: var(--green); }
.toc-link.is-active .toc-num { color: var(--green); }

.toc-num {
	font-family: var(--font); font-size: 10px;
	color: var(--muted); flex-shrink: 0; letter-spacing: 0.05em;
}

/* ── ARTICLE PROSE ─────────────────────────────────────────── */
.art-prose { min-width: 0; font-family: var(--sans); }

.art-prose p {
	color: var(--body); line-height: 1.9; margin-bottom: 26px; font-size: 17px;
}
.art-prose h2 {
	font-family: var(--font); font-size: 20px; font-weight: 700;
	color: var(--white); margin: 52px 0 18px;
	padding-left: 16px; border-left: 3px solid var(--green);
}
.art-prose h3 {
	font-family: var(--font); font-size: 15px; font-weight: 700;
	color: var(--white); margin: 32px 0 12px;
}
.art-prose strong { color: var(--white); font-weight: 600; }
.art-prose em     { color: var(--grey); font-style: italic; }
.art-prose a {
	color: var(--green); text-decoration: none;
	border-bottom: 1px solid rgba(34,197,94,0.3); transition: border-color 0.2s;
}
.art-prose a:hover { border-color: var(--green); }

.art-prose ul { margin: 0 0 26px; list-style: none; padding: 0; }
.art-prose ul li {
	color: var(--body); font-size: 17px; line-height: 1.9;
	padding-left: 20px; position: relative; margin-bottom: 8px;
}
.art-prose ul li::before {
	content: '*'; position: absolute; left: 0;
	color: var(--green); font-family: var(--font); font-weight: 700;
}
.art-prose ol { margin: 0 0 26px 20px; padding: 0; }
.art-prose ol li { color: var(--body); font-size: 17px; line-height: 1.9; margin-bottom: 8px; }
.art-prose hr  { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.art-prose img { max-width: 100%; height: auto; border: 1px solid var(--border); }

.art-prose :not(.cb-body) > code {
	font-family: var(--font); font-size: 13px;
	background: var(--s2); border: 1px solid var(--border);
	color: var(--green); padding: 2px 7px; white-space: nowrap;
}

/* ── CODE BLOCKS ───────────────────────────────────────────── */
.code-block {
	background: var(--bg); border: 1px solid var(--border);
	margin: 32px 0; overflow: hidden;
}
.cb-bar {
	display: flex; align-items: center; gap: 7px; padding: 11px 16px;
	background: var(--s2); border-bottom: 1px solid var(--border);
}
.cb-dot   { width: 9px; height: 9px; border-radius: 50%; }
.cb-r     { background: #FF5F57; }
.cb-y     { background: #FFBD2E; }
.cb-g     { background: #28C840; }
.cb-title { font-family: var(--font); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; margin-left: 8px; }
.cb-body  { padding: 20px 22px; overflow-x: auto; }
.cb-body code,
.cb-body pre {
	font-family: var(--font); font-size: 12.5px; color: var(--grey);
	line-height: 2; background: none; border: none; padding: 0; margin: 0;
	white-space: pre; display: block;
}

/* ── PULL QUOTE ────────────────────────────────────────────── */
.art-prose blockquote {
	border-left: 3px solid var(--green); padding: 24px 28px;
	margin: 40px 0; background: var(--s1);
}
.art-prose blockquote p {
	font-family: var(--sans); font-size: 18px; line-height: 1.7;
	color: var(--white); font-weight: 500; margin: 0;
}

/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-accordion { margin: 40px 0; }
.faq-item {
	border: 1px solid var(--border); margin-bottom: 8px;
	overflow: hidden; background: var(--s1);
}
.faq-q {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px; cursor: pointer; list-style: none; gap: 16px;
	font-family: var(--font); font-size: 13px; font-weight: 700;
	color: var(--white); letter-spacing: 0.02em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
	content: '+'; color: var(--green); font-size: 20px; font-weight: 300;
	flex-shrink: 0; transition: transform 0.2s ease; line-height: 1;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q        { color: var(--green); }
.faq-a {
	padding: 0 22px 20px; font-family: var(--sans);
	font-size: 15px; color: var(--body); line-height: 1.8;
}
.faq-a p { margin: 0; }

/* ── AUTHOR CARD ───────────────────────────────────────────── */
.author-card {
	border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
	background: var(--s1); padding: 40px 48px;
	display: flex; align-items: center; gap: 28px;
}
.author-avatar {
	width: 52px; height: 52px; flex-shrink: 0;
	background: var(--s2); border: 1px solid var(--border);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--green);
}
.author-info h4 { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.author-info p  { font-family: var(--sans); font-size: 13px; color: var(--grey); line-height: 1.7; max-width: 560px; margin: 0; }

/* ── RELATED ARTICLES ──────────────────────────────────────── */
.art-related {
	padding: 56px 48px; background: var(--bg); border-top: 1px solid var(--border);
}
.rel-tag {
	font-family: var(--font); font-size: 11px; font-weight: 700;
	letter-spacing: 0.18em; color: var(--green); margin-bottom: 28px;
	display: flex; align-items: center; gap: 16px;
}
.rel-tag::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card {
	background: var(--s1); border: 1px solid var(--border); padding: 28px;
	transition: border-color 0.2s; display: flex; flex-direction: column;
}
.rel-card:hover    { border-color: rgba(34,197,94,0.4); }
.rel-cat           { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--green); margin-bottom: 10px; }
.rel-title         { font-family: var(--font); font-size: 13px; font-weight: 700; line-height: 1.45; margin-bottom: 16px; flex: 1; }
.rel-title a       { color: var(--white); text-decoration: none; transition: color 0.2s; border: none; }
.rel-title a:hover { color: var(--green); }
.rel-meta          { font-family: var(--font); font-size: 10px; color: var(--muted); margin-bottom: 20px; }

/* ── RESPONSIVE → responsive.css ── */

/* ── RESPONSIVE (verplaatst uit responsive.css — laadt nu alleen op artikelen) ── */

@media (max-width: 1100px) {
	.art-body { grid-template-columns: 180px 1fr; padding: 48px 24px 80px; gap: 36px; }
}

@media (max-width: 1100px) {
	.art-head-inner { grid-template-columns: 1fr 340px; gap: 36px; }
}

@media (max-width: 768px) {
	.art-head    { padding: 24px 20px 40px; }
	.art-deck    { font-size: 16px; }
	.art-eyebrow { flex-wrap: wrap; gap: 10px; }
	.art-head-inner          { grid-template-columns: 1fr; gap: 28px; }
	.art-head-thumb          { aspect-ratio: 16 / 9; order: -1; }
	.art-head-inner--no-thumb .art-h1,
	.art-head-inner--no-thumb .art-deck { max-width: 100%; }

	.art-cover { min-height: 160px; padding: 20px 0; }
	.cover-terminal { margin: 0 20px; }
	.ct-body { font-size: 11px; }

	.art-body { grid-template-columns: 1fr; padding: 40px 20px 60px; gap: 0; }
	.art-toc  { display: none; }

	.art-prose p  { font-size: 16px; }
	.art-prose h2 { font-size: 17px; }
	.art-prose h3 { font-size: 14px; }

	.author-card { padding: 32px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
	.art-related { padding: 40px 20px; }
	.rel-grid    { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
	.art-h1 { font-size: 26px; }
}
