/* GeekerHub WP — technical blog UI (pixel-tuned) */

:root {
	--gh-ink: #0b1220;
	--gh-ink-soft: #1a2438;
	--gh-muted: #4b5a73;
	--gh-muted-2: #5f6e86;
	--gh-line: #d9e0ec;
	--gh-line-soft: #e8eef6;
	--gh-paper: #f3f6fa;
	--gh-surface: #ffffff;
	--gh-accent: #0d9488;
	--gh-accent-deep: #0f766e;
	--gh-accent-soft: #ccfbf1;
	--gh-code-bg: #0f172a;
	--gh-code-fg: #e2e8f0;
	--gh-ok: #047857;
	--gh-danger: #b91c1c;
	--gh-radius: 16px;
	--gh-radius-sm: 10px;
	--gh-shadow: 0 12px 40px rgba(11, 18, 32, 0.07);
	--gh-shadow-sm: 0 4px 16px rgba(11, 18, 32, 0.05);
	--gh-font: "IBM Plex Sans", "Segoe UI", sans-serif;
	--gh-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--gh-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
	--gh-measure: 42rem;
	--gh-container: 1120px;
	--gh-toc: 220px;
	--gh-layout-gap: 2.25rem;
	--gh-header-h: 68px;
	--gh-space: 1.25rem;
	--gh-gutter: 1rem;
	/* Type scale */
	--gh-fs-xs: 0.8125rem;   /* 13 */
	--gh-fs-sm: 0.875rem;    /* 14 */
	--gh-fs-md: 0.9375rem;   /* 15 */
	--gh-fs-base: 1rem;      /* 16 UI */
	--gh-fs-body: 1.125rem;  /* 18 reading */
	--gh-fs-lg: 1.25rem;     /* 20 */
	--gh-lh-tight: 1.2;
	--gh-lh-snug: 1.35;
	--gh-lh-body: 1.75;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--gh-font);
	font-size: var(--gh-fs-base);
	line-height: 1.6;
	font-weight: 400;
	color: var(--gh-ink);
	background-color: var(--gh-paper);
	background-image:
		radial-gradient(980px 420px at 8% -8%, rgba(13, 148, 136, 0.11), transparent 58%),
		radial-gradient(820px 380px at 92% 0%, rgba(26, 36, 56, 0.07), transparent 52%),
		linear-gradient(180deg, #eef3f8 0%, var(--gh-paper) 32%, #eef2f6 100%);
	background-attachment: fixed;
	min-height: 100vh;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-kerning: normal;
	font-optical-sizing: auto;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	opacity: 0.28;
	background-image:
		linear-gradient(rgba(26, 36, 56, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26, 36, 56, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
	z-index: 0;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

iframe,
embed,
object,
.wp-block-embed__wrapper,
.wp-block-video video {
	width: 100%;
}

a {
	color: var(--gh-accent-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--gh-ink);
}

:focus-visible {
	outline: 2px solid var(--gh-accent);
	outline-offset: 2px;
}

.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;
}

.gh-skip {
	position: absolute;
	left: 1rem;
	top: -120px;
	z-index: 100;
	background: var(--gh-ink);
	color: #fff;
	padding: 0.65rem 1rem;
	border-radius: 8px;
	text-decoration: none;
}

.gh-skip:focus {
	top: 1rem;
}

.gh-shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.gh-main {
	flex: 1 0 auto;
	padding-bottom: 4.5rem;
	width: 100%;
}

.gh-container {
	width: min(100% - (var(--gh-gutter) * 2), var(--gh-container));
	margin-inline: auto;
	padding-inline: 0;
}

/* ---------- Header ---------- */
.gh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(1.2) blur(14px);
	-webkit-backdrop-filter: saturate(1.2) blur(14px);
	background: rgba(243, 246, 250, 0.88);
	border-bottom: 1px solid rgba(217, 224, 236, 0.9);
}

.gh-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--gh-header-h);
}

.gh-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--gh-ink);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -0.025em;
	flex-shrink: 0;
}

.gh-brand:hover {
	color: var(--gh-ink);
	opacity: 0.88;
}

.gh-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	background: var(--gh-ink);
	color: var(--gh-accent-soft);
	font-family: var(--gh-mono);
	font-size: 0.72rem;
	line-height: 1;
	flex-shrink: 0;
}

.gh-brand__text {
	font-size: 1.125rem;
	line-height: 1;
	white-space: nowrap;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.custom-logo-link img {
	max-height: 36px;
	width: auto;
}

.gh-nav {
	display: flex;
	align-items: center;
	gap: 1.15rem;
	min-width: 0;
}

.gh-nav__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-nav__list > li {
	margin: 0;
}

.gh-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0 0.7rem;
	color: var(--gh-ink-soft);
	text-decoration: none;
	font-family: var(--gh-font);
	font-weight: 500;
	font-size: var(--gh-fs-md);
	letter-spacing: -0.01em;
	line-height: 1.2;
	border-radius: 8px;
	white-space: nowrap;
}

.gh-nav__list a:hover,
.gh-nav__list .current-menu-item > a,
.gh-nav__list .current_page_item > a {
	color: var(--gh-accent-deep);
	background: rgba(13, 148, 136, 0.08);
}

.gh-nav__list .sub-menu {
	display: none;
}

.gh-nav-toggle {
	display: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--gh-line);
	border-radius: 10px;
	background: var(--gh-surface);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.gh-nav-toggle span {
	display: block;
	width: 1.1rem;
	height: 2px;
	margin: 0 auto;
	background: var(--gh-ink);
	box-shadow: 0 5px 0 var(--gh-ink), 0 -5px 0 var(--gh-ink);
}

.gh-search {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: var(--gh-surface);
	border: 1px solid var(--gh-line);
	border-radius: 999px;
	padding: 0.2rem 0.22rem 0.2rem 0.85rem;
	min-width: 0;
	box-shadow: var(--gh-shadow-sm);
	position: relative;
}

.gh-search__wrap {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

.gh-search__input {
	border: 0;
	background: transparent;
	outline: none;
	font-family: var(--gh-font);
	font-size: var(--gh-fs-md);
	font-weight: 400;
	line-height: 1.3;
	width: 9rem;
	max-width: 100%;
	color: var(--gh-ink);
	min-width: 0;
	flex: 1;
}

.gh-search__input::placeholder {
	color: var(--gh-muted-2);
	font-weight: 400;
}

.gh-search__btn {
	border: 0;
	border-radius: 999px;
	background: var(--gh-ink);
	color: #fff;
	padding: 0.45rem 0.9rem;
	font-family: var(--gh-font);
	font-size: var(--gh-fs-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	flex-shrink: 0;
	line-height: 1.2;
}

.gh-search__btn:hover {
	background: var(--gh-accent-deep);
}

.gh-search__suggest {
	position: absolute;
	top: calc(100% + 0.55rem);
	left: -0.85rem;
	right: -0.22rem;
	z-index: 60;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: var(--gh-surface);
	border: 1px solid var(--gh-line);
	border-radius: 14px;
	box-shadow: var(--gh-shadow);
	max-height: min(70vh, 22rem);
	overflow-y: auto;
	min-width: 16rem;
}

.gh-search__suggest [role="option"] {
	display: grid;
	gap: 0.15rem;
	padding: 0.7rem 0.8rem;
	border-radius: 10px;
	cursor: pointer;
	color: var(--gh-ink);
}

.gh-search__suggest [role="option"]:hover,
.gh-search__suggest [role="option"].is-active {
	background: rgba(13, 148, 136, 0.1);
}

.gh-search__suggest-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.gh-search__suggest-title mark {
	background: rgba(13, 148, 136, 0.22);
	color: inherit;
	border-radius: 3px;
	padding: 0 0.1em;
}

.gh-search__suggest-meta {
	font-size: 0.75rem;
	color: var(--gh-muted);
	text-transform: capitalize;
	font-family: var(--gh-mono);
	letter-spacing: 0.02em;
}

.gh-search__status {
	padding: 0.75rem 0.85rem;
	color: var(--gh-muted);
	font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.gh-btn,
button.gh-btn,
input[type="submit"].gh-btn,
.gh-comment-form input[type="submit"],
.gh-contact__form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.3rem;
	border-radius: 999px;
	font-family: var(--gh-font);
	font-weight: 600;
	font-size: var(--gh-fs-base);
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
	cursor: pointer;
	line-height: var(--gh-lh-tight);
}

.gh-comment-form input[type="submit"],
.gh-contact__form button[type="submit"] {
	background: var(--gh-ink);
	color: #fff;
}

.gh-comment-form input[type="submit"]:hover,
.gh-contact__form button[type="submit"]:hover {
	background: var(--gh-accent-deep);
	color: #fff;
}

.gh-btn:hover {
	transform: translateY(-1px);
}

.gh-btn--primary {
	background: var(--gh-ink);
	color: #fff;
}

.gh-btn--primary:hover {
	background: var(--gh-accent-deep);
	color: #fff;
}

.gh-btn--ghost {
	background: rgba(255, 255, 255, 0.72);
	border-color: var(--gh-line);
	color: var(--gh-ink);
}

.gh-btn--ghost:hover {
	border-color: var(--gh-accent);
	color: var(--gh-accent-deep);
}

/* ---------- Hero + featured composition ---------- */
.gh-hero {
	position: relative;
	padding: 3.25rem 0 2rem;
	overflow: clip;
}

.gh-hero__inner {
	position: relative;
	z-index: 1;
}

.gh-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.85rem;
	font-family: var(--gh-mono);
	font-size: var(--gh-fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gh-accent-deep);
	font-weight: 500;
	line-height: 1.3;
}

.gh-hero__eyebrow::before {
	content: "";
	width: 1.35rem;
	height: 2px;
	background: var(--gh-accent);
	border-radius: 2px;
}

.gh-hero__brand {
	margin: 0 0 0.9rem;
	font-family: var(--gh-font);
	font-size: clamp(2.5rem, 6vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: var(--gh-ink);
	font-weight: 700;
	max-width: 18ch;
}

.gh-hero__lead {
	margin: 0 0 1.5rem;
	font-family: var(--gh-font);
	font-size: var(--gh-fs-lg);
	line-height: 1.55;
	font-weight: 400;
	color: var(--gh-muted);
	max-width: min(100%, 36rem);
}

.gh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.gh-hero__grid {
	position: absolute;
	right: -8%;
	top: -20%;
	width: min(58vw, 620px);
	height: 140%;
	background:
		radial-gradient(circle at 36% 42%, rgba(13, 148, 136, 0.22), transparent 46%),
		linear-gradient(145deg, rgba(11, 18, 32, 0.05), transparent 55%);
	transform: rotate(-9deg);
	pointer-events: none;
	z-index: 0;
}

@keyframes gh-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.gh-hero__brand,
.gh-hero__lead,
.gh-hero__actions {
	animation: gh-rise 0.65s ease both;
}

.gh-hero__lead { animation-delay: 0.06s; }
.gh-hero__actions { animation-delay: 0.12s; }

/* Featured */
.gh-featured {
	padding: 0.5rem 0 2.75rem;
	position: relative;
	z-index: 2;
}

.gh-featured__card {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--gh-line);
	border-radius: calc(var(--gh-radius) + 2px);
	background: var(--gh-surface);
	box-shadow: var(--gh-shadow);
	margin: 0;
}

.gh-featured__card--text {
	grid-template-columns: 1fr;
}

.gh-featured__media {
	display: block;
	min-height: 100%;
	min-height: 300px;
	background:
		linear-gradient(145deg, #152033, #0b1220 60%),
		radial-gradient(circle at 70% 30%, rgba(13, 148, 136, 0.35), transparent 50%);
	overflow: hidden;
}

.gh-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 300px;
}

.gh-featured__body {
	padding: clamp(1.35rem, 3vw, 2.15rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.55rem;
	min-width: 0;
}

.gh-featured__title {
	margin: 0;
	font-family: var(--gh-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	line-height: 1.28;
	letter-spacing: -0.025em;
	font-weight: 700;
	overflow-wrap: anywhere;
	color: var(--gh-ink);
}

.gh-featured__title a {
	color: inherit;
	text-decoration: none;
}

.gh-featured__title a:hover {
	color: var(--gh-accent-deep);
}

.gh-featured__excerpt {
	margin: 0;
	color: var(--gh-muted);
	font-size: var(--gh-fs-base);
	line-height: 1.6;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Topics / latest */
.gh-topics {
	padding: 1.25rem 0 0.25rem;
}

.gh-latest {
	padding: 1.75rem 0 0.5rem;
}

.gh-section-title {
	margin: 0 0 1.1rem;
	font-family: var(--gh-serif);
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	letter-spacing: -0.025em;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gh-ink);
}

.gh-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.15rem;
}

.gh-topics__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.gh-topics__list li {
	min-width: 0;
}

.gh-topics__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	min-height: 3.15rem;
	padding: 0.8rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--gh-line);
	background: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	color: var(--gh-ink);
	font-family: var(--gh-font);
	font-weight: 600;
	font-size: var(--gh-fs-md);
	letter-spacing: -0.01em;
	line-height: 1.3;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: var(--gh-shadow-sm);
}

.gh-topics__list a:hover {
	border-color: rgba(13, 148, 136, 0.45);
	transform: translateY(-2px);
	box-shadow: var(--gh-shadow);
	color: var(--gh-ink);
}

.gh-topics__list a span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.gh-topics__list em {
	font-style: normal;
	font-family: var(--gh-mono);
	font-size: 0.75rem;
	color: var(--gh-muted);
	flex-shrink: 0;
}

.gh-empty {
	margin: 0;
	padding: 1.25rem 1.35rem;
	border: 1px dashed var(--gh-line);
	border-radius: var(--gh-radius-sm);
	color: var(--gh-muted);
	background: rgba(255, 255, 255, 0.55);
}

/* Cards / grid */
.gh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.gh-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius);
	overflow: hidden;
	background: var(--gh-surface);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	margin: 0;
	min-width: 0;
	box-shadow: var(--gh-shadow-sm);
}

.gh-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--gh-shadow);
	border-color: rgba(13, 148, 136, 0.28);
}

.gh-card__media {
	aspect-ratio: 16 / 9;
	background: #152033;
	overflow: hidden;
	flex-shrink: 0;
}

.gh-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.gh-card:hover .gh-card__media img {
	transform: scale(1.03);
}

.gh-card__media--empty {
	display: grid;
	place-items: center;
	color: rgba(204, 251, 241, 0.9);
	font-family: var(--gh-mono);
	font-size: 1.35rem;
	text-decoration: none;
	background:
		radial-gradient(circle at 70% 25%, rgba(13, 148, 136, 0.28), transparent 45%),
		linear-gradient(160deg, #1a2740, #0b1220);
}

.gh-card__body {
	padding: 1.05rem 1.15rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1;
	min-width: 0;
}

.gh-card__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.4;
	letter-spacing: -0.02em;
	font-weight: 600;
	font-family: var(--gh-font);
}

.gh-card__title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.gh-card__title a:hover {
	color: var(--gh-accent-deep);
}

.gh-card__excerpt {
	margin: 0;
	color: var(--gh-muted);
	font-size: var(--gh-fs-sm);
	line-height: 1.55;
	font-weight: 400;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-cats a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: var(--gh-accent-soft);
	color: var(--gh-accent-deep);
	font-family: var(--gh-font);
	font-size: var(--gh-fs-xs);
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gh-cats a:hover {
	background: #99f6e4;
	color: var(--gh-ink);
}

.gh-meta {
	margin: 0;
	margin-top: auto;
	padding-top: 0.2rem;
	font-size: var(--gh-fs-sm);
	font-weight: 400;
	color: var(--gh-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.4rem;
	align-items: center;
	line-height: 1.4;
}

/* Archive */
.gh-archive-head {
	padding: 2.35rem 0 1.4rem;
}

.gh-archive-head__title {
	margin: 0.3rem 0 0.45rem;
	font-family: var(--gh-serif);
	font-size: clamp(1.85rem, 3.5vw, 2.5rem);
	letter-spacing: -0.03em;
	line-height: 1.18;
	font-weight: 700;
	overflow-wrap: anywhere;
	color: var(--gh-ink);
}

.gh-archive-head__desc {
	color: var(--gh-muted);
	max-width: 38rem;
	margin: 0;
	font-size: var(--gh-fs-md);
	line-height: 1.55;
}

.gh-archive-head .gh-search {
	margin-top: 1rem;
	max-width: 22rem;
}

.gh-archive-head .gh-search__input {
	flex: 1;
	width: auto;
}

/* Article — one container edge; title + body share the same left axis */
.gh-article__header {
	padding: 2.25rem 0 1.35rem;
}

.gh-article__header-inner {
	max-width: none;
}

.gh-article__title {
	margin: 0.45rem 0 0.75rem;
	font-family: var(--gh-serif);
	font-optical-sizing: auto;
	font-size: clamp(1.85rem, 4vw, 2.5rem);
	line-height: 1.18;
	letter-spacing: -0.025em;
	font-weight: 700;
	max-width: min(100%, calc(var(--gh-toc) + var(--gh-layout-gap) + var(--gh-measure)));
	overflow-wrap: anywhere;
	color: var(--gh-ink);
}

.gh-article__hero {
	margin: 0 0 1.85rem;
}

.gh-article__hero img {
	width: 100%;
	border-radius: var(--gh-radius);
	border: 1px solid var(--gh-line);
	box-shadow: var(--gh-shadow-sm);
}

.gh-article__layout {
	display: grid;
	grid-template-columns: var(--gh-toc) minmax(0, 1fr);
	gap: var(--gh-layout-gap);
	align-items: start;
}

.gh-article__layout--solo {
	grid-template-columns: minmax(0, 1fr);
}

.gh-article__layout--solo .gh-article__content {
	max-width: var(--gh-measure);
}

.gh-article__aside {
	position: sticky;
	top: calc(var(--gh-header-h) + 1rem);
	align-self: start;
	width: 100%;
}

.gh-article__aside:empty {
	display: none;
}

.gh-toc {
	padding: 0.95rem 1rem;
	border: 1px solid var(--gh-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: var(--gh-shadow-sm);
}

.gh-toc__label {
	margin: 0 0 0.7rem;
	font-family: var(--gh-mono);
	font-size: var(--gh-fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gh-muted);
	font-weight: 500;
	line-height: 1.3;
}

.gh-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gh-toc__item {
	margin: 0 0 0.45rem;
}

.gh-toc__item:last-child {
	margin-bottom: 0;
}

.gh-toc__item a {
	color: var(--gh-ink-soft);
	text-decoration: none;
	font-family: var(--gh-font);
	font-size: var(--gh-fs-sm);
	font-weight: 500;
	line-height: 1.4;
	display: block;
	overflow-wrap: anywhere;
}

.gh-toc__item a:hover,
.gh-toc__item.is-active a {
	color: var(--gh-accent-deep);
}

.gh-toc__item--h3 {
	padding-left: 0.8rem;
}

.gh-article__content,
.gh-page__content {
	max-width: var(--gh-measure);
	min-width: 0;
	width: 100%;
}

.entry-content {
	overflow-wrap: anywhere;
	word-break: break-word;
	font-family: var(--gh-font);
	font-size: var(--gh-fs-body);
	line-height: var(--gh-lh-body);
	font-weight: 400;
	color: var(--gh-ink-soft);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--gh-serif);
	font-optical-sizing: auto;
	letter-spacing: -0.02em;
	line-height: 1.28;
	scroll-margin-top: calc(var(--gh-header-h) + 1rem);
	font-weight: 700;
	color: var(--gh-ink);
}

/* In-body H1 (if author pastes title again) matches section heading scale */
.entry-content h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 2.2vw, 1.55rem);
}

.entry-content h2 {
	margin: 2.35rem 0 0.85rem;
	font-size: clamp(1.35rem, 2.2vw, 1.55rem);
}

.entry-content h3 {
	margin: 1.75rem 0 0.7rem;
	font-size: clamp(1.15rem, 1.8vw, 1.3rem);
}

.entry-content h4 {
	margin: 1.45rem 0 0.55rem;
	font-size: 1.0625rem;
	font-family: var(--gh-font);
	letter-spacing: -0.015em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content li + li {
	margin-top: 0.4rem;
}

.entry-content a {
	font-weight: 500;
	text-underline-offset: 0.2em;
}

.entry-content pre,
.entry-content code,
.entry-content kbd,
.entry-content .gh-code {
	font-family: var(--gh-mono);
}

.entry-content p code,
.entry-content li code,
.entry-content td code,
.entry-content kbd {
	font-size: 0.86em;
	background: rgba(13, 148, 136, 0.1);
	padding: 0.12em 0.38em;
	border-radius: 5px;
	font-weight: 500;
	color: var(--gh-ink);
	overflow-wrap: break-word;
	word-break: break-word;
}

.entry-content pre,
.entry-content pre.gh-code {
	background: var(--gh-code-bg);
	color: var(--gh-code-fg);
	padding: 1.15rem 1.25rem;
	border-radius: 12px;
	overflow-x: auto;
	margin: 0 0 1.5rem;
	border: 1px solid #1e293b;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	line-height: 1.65;
	overflow-wrap: normal;
	word-break: normal;
	tab-size: 4;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.entry-content pre code,
.entry-content pre.gh-code code {
	display: block;
	background: transparent;
	padding: 0;
	margin: 0;
	color: #e2e8f0;
	font-size: 0.875rem;
	line-height: 1.7;
	white-space: pre;
	font-weight: 400;
	overflow-wrap: normal;
	word-break: normal;
	border-radius: 0;
}

/* Light token colors (works with or without a JS highlighter) */
.entry-content pre code .token.comment,
.entry-content pre .token.comment {
	color: #94a3b8;
}

.entry-content pre code .token.keyword,
.entry-content pre .token.keyword {
	color: #7dd3fc;
}

.entry-content pre code .token.string,
.entry-content pre .token.string {
	color: #86efac;
}

.entry-content pre code .token.function,
.entry-content pre .token.function {
	color: #fde68a;
}

.entry-content pre code .token.number,
.entry-content pre .token.number {
	color: #fdba74;
}

.entry-content blockquote {
	margin: 0 0 1.4rem;
	padding: 0.2rem 0 0.2rem 1.1rem;
	border-left: 3px solid var(--gh-accent);
	color: var(--gh-ink-soft);
	font-family: var(--gh-serif);
	font-size: 1.2rem;
	line-height: 1.55;
	font-weight: 500;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.35rem;
	font-size: 0.9375rem;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--gh-line);
	padding: 0.55rem 0.7rem;
	text-align: left;
	vertical-align: top;
}

.entry-content figure {
	margin: 0 0 1.35rem;
	max-width: 100%;
}

.entry-content figcaption {
	margin-top: 0.45rem;
	font-size: 0.875rem;
	color: var(--gh-muted);
}

.entry-content .alignleft,
.entry-content .alignright,
.entry-content .aligncenter {
	max-width: 100%;
}

.entry-content .alignwide,
.entry-content .alignfull {
	max-width: 100%;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	border-radius: 10px;
}

.entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0 0 1.2rem;
}

.gh-tags {
	margin: 2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--gh-line);
	color: var(--gh-muted);
	font-size: 0.9rem;
}

.gh-tags span {
	font-weight: 600;
	color: var(--gh-ink);
	margin-right: 0.35rem;
}

.gh-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	margin: 1.5rem 0;
	font-size: 0.9rem;
}

/* Author / related / comments */
.gh-author {
	display: flex;
	gap: 1rem;
	margin: 2.35rem 0;
	padding: 1.2rem 1.25rem;
	border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: var(--gh-shadow-sm);
	max-width: calc(var(--gh-toc) + var(--gh-layout-gap) + var(--gh-measure));
}

.gh-author__avatar {
	flex-shrink: 0;
}

.gh-author__avatar img {
	border-radius: 50%;
	width: 72px;
	height: 72px;
}

.gh-author__body {
	min-width: 0;
}

.gh-author__name {
	margin: 0 0 0.3rem;
	font-size: 1.0625rem;
}

.gh-author__name a {
	color: inherit;
	text-decoration: none;
}

.gh-author__bio {
	margin: 0;
	color: var(--gh-muted);
	font-size: 0.95rem;
}

.gh-related {
	margin: 2rem 0 2.75rem;
	max-width: none;
}

.gh-comments {
	margin: 1.5rem 0 0.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gh-line);
	max-width: var(--gh-measure);
}

.gh-comments__title {
	margin: 0 0 1rem;
	font-family: var(--gh-font);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.gh-comments__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.gh-comments__list .comment {
	padding: 1rem 0;
	border-bottom: 1px solid var(--gh-line-soft);
}

.gh-comments__list .children {
	list-style: none;
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--gh-line-soft);
}

.gh-comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.gh-comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.gh-comment-form input[type="text"],
.gh-comment-form input[type="email"],
.gh-comment-form input[type="url"],
.gh-comment-form textarea,
.gh-contact__form input,
.gh-contact__form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--gh-line);
	border-radius: 10px;
	font: inherit;
	background: var(--gh-surface);
	color: var(--gh-ink);
}

.gh-comment-form textarea,
.gh-contact__form textarea {
	resize: vertical;
	min-height: 8rem;
}

.gh-contact {
	max-width: 32rem;
}

.gh-contact__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.gh-contact__notice--success {
	color: var(--gh-ok);
}

.gh-contact__notice--error {
	color: var(--gh-danger);
}

/* Breadcrumbs / pagination / 404 / page */
.gh-breadcrumbs {
	margin-bottom: 0.7rem;
}

.gh-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--gh-fs-sm);
	font-weight: 400;
	color: var(--gh-muted);
	line-height: 1.4;
}

.gh-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-width: 0;
}

.gh-breadcrumbs li:not(:last-child)::after {
	content: "/";
	opacity: 0.45;
	margin-left: 0.05rem;
}

.gh-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.gh-breadcrumbs a:hover {
	color: var(--gh-accent-deep);
}

.gh-breadcrumbs [aria-current="page"] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 28ch;
}

.gh-pagination {
	margin-top: 2rem;
}

.gh-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-pagination a,
.gh-pagination span {
	display: inline-flex;
	min-width: 2.4rem;
	min-height: 2.4rem;
	justify-content: center;
	align-items: center;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	border: 1px solid var(--gh-line);
	background: var(--gh-surface);
	text-decoration: none;
	color: var(--gh-ink);
	font-size: 0.875rem;
}

.gh-pagination .current {
	background: var(--gh-ink);
	color: #fff;
	border-color: var(--gh-ink);
}

.gh-page__header {
	padding: 2.35rem 0 1rem;
}

.gh-page__title {
	margin: 0.3rem 0 0;
	font-family: var(--gh-serif);
	font-size: clamp(1.85rem, 3.5vw, 2.5rem);
	letter-spacing: -0.03em;
	line-height: 1.18;
	font-weight: 700;
	overflow-wrap: anywhere;
	max-width: var(--gh-measure);
	color: var(--gh-ink);
}

.gh-404 {
	padding: 4rem 0;
	text-align: center;
	max-width: 30rem;
	margin-inline: auto;
}

.gh-404__code {
	margin: 0;
	font-family: var(--gh-mono);
	font-size: clamp(3rem, 8vw, 4rem);
	color: var(--gh-accent);
	line-height: 1;
	font-weight: 500;
}

.gh-404__title {
	font-family: var(--gh-serif);
	font-size: clamp(1.8rem, 4vw, 2.2rem);
	margin: 0.55rem 0;
}

.gh-404__text {
	color: var(--gh-muted);
	margin: 0 0 1.25rem;
}

.gh-404 .gh-search {
	margin: 0 auto 1.25rem;
	max-width: 22rem;
	justify-content: center;
}

.gh-404 .gh-search__input {
	flex: 1;
	width: auto;
	text-align: left;
}

.gh-empty-state {
	padding: 2rem 0;
}

.gh-empty-state h2 {
	margin: 0 0 0.5rem;
	font-family: var(--gh-serif);
}

.gh-empty-state p {
	color: var(--gh-muted);
}

/* Footer */
.gh-footer {
	margin-top: auto;
	border-top: 1px solid rgba(148, 163, 184, 0.18);
	background: #0b1220;
	color: #cbd5e1;
	padding: 2.5rem 0 1.35rem;
}

.gh-footer a {
	color: #e2e8f0;
	text-decoration: none;
}

.gh-footer a:hover {
	color: var(--gh-accent-soft);
}

.gh-footer .gh-brand {
	color: #fff;
}

.gh-footer .gh-brand:hover {
	opacity: 1;
	color: #fff;
}

.gh-footer .gh-brand__mark {
	background: var(--gh-accent);
	color: var(--gh-ink);
}

.gh-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin-bottom: 1.75rem;
}

.gh-footer__tagline {
	color: #94a3b8;
	max-width: 28rem;
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.gh-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.gh-footer__widgets .widget {
	margin: 0 0 1rem;
}

.gh-footer__widgets .widget-title {
	margin: 0 0 0.55rem;
	font-size: 0.95rem;
	color: #fff;
}

.gh-footer__bar {
	padding-top: 1rem;
	border-top: 1px solid rgba(148, 163, 184, 0.22);
	font-size: 0.875rem;
	color: #94a3b8;
}

.gh-footer__bar p {
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.gh-topics__list,
	.gh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gh-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.gh-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.gh-featured__card {
		grid-template-columns: 1fr;
	}

	.gh-featured__media,
	.gh-featured__media img {
		min-height: 220px;
		max-height: 280px;
	}

	.gh-article__layout {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.gh-article__aside {
		position: static;
	}

	.gh-article__title,
	.gh-page__title,
	.gh-author {
		max-width: none;
	}
}

@media (max-width: 720px) {
	body {
		font-size: var(--gh-fs-base);
	}

	.entry-content {
		font-size: 1.0625rem;
		line-height: 1.7;
	}

	.gh-nav-toggle {
		display: inline-grid;
		place-items: center;
		order: 2;
	}

	.gh-header__inner {
		flex-wrap: wrap;
	}

	.gh-brand {
		order: 1;
	}

	.gh-nav {
		display: none;
		order: 3;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.85rem;
		padding: 0.35rem 0 0.85rem;
		border-top: 1px solid var(--gh-line-soft);
		margin-top: 0.15rem;
	}

	.gh-nav.is-open {
		display: flex;
	}

	.gh-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.gh-nav__list a {
		min-height: 2.6rem;
		padding: 0.55rem 0.75rem;
	}

	.gh-search {
		width: 100%;
	}

	.gh-search__input {
		flex: 1;
		width: auto;
	}

	.gh-hero {
		padding: 2.35rem 0 1.5rem;
	}

	.gh-hero__grid {
		opacity: 0.55;
		width: 70vw;
		right: -20%;
	}

	.gh-featured {
		padding-bottom: 2rem;
	}

	.gh-topics__list,
	.gh-grid,
	.gh-footer__grid {
		grid-template-columns: 1fr;
	}

	.gh-footer__brand {
		grid-column: auto;
	}

	.gh-author {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
