/*!
 * Niche Blog professional design layer.
 */

:root {
	--nb-accent: #2c7dfa;
	--nb-radius: 14px;
	--nb-container: 1200px;
	--nb-font-scale: 1;
	--nb-bg: #ffffff;
	--nb-bg-soft: #f6f8fb;
	--nb-text: #1f2933;
	--nb-muted: #667085;
	--nb-border: #e4e7ec;
	--nb-card: #ffffff;
	--nb-shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
	--nb-shadow-hover: 0 20px 45px rgba(16, 24, 40, 0.12);
}

html[data-theme="dark"] {
	--nb-bg: #0f172a;
	--nb-bg-soft: #111c31;
	--nb-text: #e5e7eb;
	--nb-muted: #a5adba;
	--nb-border: #24324a;
	--nb-card: #131f36;
	--nb-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
	--nb-shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.38);
	color-scheme: dark;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--nb-bg);
	color: var(--nb-text);
	font-size: calc(16px * var(--nb-font-scale));
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--nb-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--nb-accent);
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid var(--nb-accent);
	outline-offset: 3px;
}

img {
	max-width: 100%;
	border-radius: var(--nb-radius);
}

.container {
	max-width: var(--nb-container);
}

.container-full {
	width: 100%;
	max-width: none;
	padding-left: clamp(16px, 4vw, 48px);
	padding-right: clamp(16px, 4vw, 48px);
}

.container-narrow {
	max-width: 820px;
}

/* Header -------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 40;
	background: var(--nb-bg);
	background-color: var(--nb-bg);
	border-bottom: 1px solid var(--nb-border);
}

body.nb-sticky-header {
	overflow-x: clip;
}

body.nb-sticky-header .site-header {
	position: sticky !important;
	top: 0;
	z-index: 60;
	backdrop-filter: blur(14px);
	background: color-mix(in srgb, var(--nb-bg) 92%, transparent);
	background-color: color-mix(in srgb, var(--nb-bg) 92%, transparent);
}

body.admin-bar.nb-sticky-header .site-header {
	top: 32px;
}

.nb-header-actions {
	position: absolute;
	top: 18px;
	right: max(20px, calc((100vw - var(--nb-container)) / 2));
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 70;
}

.nb-icon-button {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--nb-border);
	border-radius: 50%;
	background: var(--nb-bg);
	color: var(--nb-text);
	cursor: pointer;
	transition: all 0.2s ease;
}

.nb-icon-button:hover,
.nb-icon-button:focus {
	color: #ffffff;
	background: var(--nb-accent);
	border-color: var(--nb-accent);
	text-decoration: none;
}

.nb-icon-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nb-theme-icon-moon,
html[data-theme="dark"] .nb-theme-icon-sun {
	display: none;
}

html[data-theme="dark"] .nb-theme-icon-moon {
	display: inline-flex;
}

.nb-search-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	padding: 26px 0;
	background: var(--nb-bg);
	border-bottom: 1px solid var(--nb-border);
	box-shadow: var(--nb-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-100%);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.nb-search-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nb-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nb-search-field {
	flex: 1;
	min-width: 0;
	padding: 14px 18px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg-soft);
	color: var(--nb-text);
	font-size: 1rem;
}

.nb-search-submit {
	padding: 14px 24px;
	border: 0;
	border-radius: var(--nb-radius);
	background: var(--nb-accent);
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
}

.nb-search-close {
	flex: 0 0 auto;
}

.nb-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 45;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.menu-open .nb-menu-backdrop {
	opacity: 1;
	visibility: visible;
}

.nb-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100;
	background: transparent;
}

.nb-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--nb-accent);
	transition: width 0.1s linear;
}

/* Breadcrumbs --------------------------------------------------------- */
.nb-breadcrumbs {
	background: var(--nb-bg-soft);
	border-bottom: 1px solid var(--nb-border);
}

.nb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	max-width: var(--nb-container);
	margin: 0 auto;
	padding: 12px clamp(16px, 4vw, 48px);
	list-style: none;
}

.nb-breadcrumbs li {
	font-size: 0.85rem;
	color: var(--nb-muted);
}

.nb-breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--nb-muted);
}

.nb-breadcrumbs a {
	color: var(--nb-muted);
}

.nb-breadcrumbs a:hover {
	color: var(--nb-accent);
}

/* Content ------------------------------------------------------------- */
.page-title,
.entry-title {
	color: var(--nb-text);
	letter-spacing: -0.03em;
}

.single .entry-title {
	font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content {
	font-size: 1.05rem;
}

.entry-content img {
	height: auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2em;
	scroll-margin-top: 100px;
}

.entry-content blockquote {
	margin: 32px 0;
	padding: 24px 28px;
	border-left: 4px solid var(--nb-accent);
	border-radius: var(--nb-radius);
	background: var(--nb-bg-soft);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border: 1px solid var(--nb-border);
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	background: var(--nb-bg-soft);
	border-radius: 8px;
}

.entry-content pre {
	padding: 20px;
	overflow-x: auto;
}

/* Archive cards ------------------------------------------------------- */
.nb-layout-grid .blog-archive {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.nb-layout-grid .blog-archive article {
	float: none !important;
	clear: none !important;
	width: 100%;
	margin: 0;
}

.nb-layout-grid .blog-post-item {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
	box-shadow: var(--nb-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nb-layout-grid .blog-post-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--nb-shadow-hover);
	border-color: color-mix(in srgb, var(--nb-accent) 35%, var(--nb-border));
}

.nb-layout-grid .blog-post-item .featured-image {
	overflow: hidden;
}

.nb-layout-grid .blog-post-item .featured-image a,
.nb-layout-grid .blog-post-item .featured-image img {
	display: block;
	width: 100%;
}

.nb-layout-grid .blog-post-item .featured-image img {
	border-radius: 0;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nb-layout-grid .blog-post-item:hover .featured-image img {
	transform: scale(1.04);
}

.nb-layout-grid .blog-post-item .entry-container {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.nb-layout-grid .blog-post-item .entry-title {
	font-size: 1.35rem;
	line-height: 1.35;
}

.nb-layout-grid .blog-post-item .entry-title a {
	color: var(--nb-text);
}

.nb-layout-grid .blog-post-item .entry-title a:hover {
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-layout-grid .blog-post-item .entry-content {
	margin-top: 12px;
	color: var(--nb-muted);
	font-size: 0.98rem;
}

.nb-layout-grid .blog-post-item .nb-read-more {
	margin-top: auto;
}

/* Archive grid — replace the legacy float/clearfix layout. */
.nb-layout-grid .blog-archive,
.nb-layout-list .blog-archive {
	margin: 0;
}

.nb-layout-grid .blog-archive::before,
.nb-layout-grid .blog-archive::after,
.nb-layout-list .blog-archive::before,
.nb-layout-list .blog-archive::after {
	display: none !important;
	content: none !important;
}

.nb-layout-grid .blog-archive {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(16px, 2.2vw, 24px);
}

.nb-layout-grid .blog-archive > article,
.nb-layout-list .blog-archive > article {
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.nb-layout-list .blog-archive > article {
	margin-bottom: 24px !important;
}

@media screen and (min-width: 600px) {
	.nb-layout-grid .blog-archive.columns-2,
	.nb-layout-grid .blog-archive.columns-3,
	.nb-layout-grid .blog-archive.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 980px) {
	.nb-layout-grid .blog-archive.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nb-layout-grid .blog-archive.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media screen and (min-width: 567px) {
	.nb-layout-grid .columns-2 article { width: calc(50% - 12px); }
	.nb-layout-grid .columns-3 article { width: calc(50% - 12px); }
	.nb-layout-grid .columns-4 article { width: calc(50% - 12px); }
}

@media screen and (min-width: 900px) {
	.nb-layout-grid .columns-3 article { width: calc(33.333% - 16px); }
	.nb-layout-grid .columns-4 article { width: calc(25% - 18px); }
}

.nb-layout-list .blog-archive {
	display: block;
}

.nb-layout-list .blog-archive article {
	float: none !important;
	width: 100% !important;
	clear: none !important;
	margin-bottom: 24px;
}

.nb-layout-list .blog-post-item {
	display: flex;
	gap: 26px;
	padding: 22px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
	box-shadow: var(--nb-shadow);
}

.nb-layout-list .featured-image {
	flex: 0 0 280px;
	position: relative;
	overflow: hidden;
	border-radius: var(--nb-radius);
}

.nb-layout-list .featured-image a,
.nb-layout-list .featured-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.nb-layout-list .featured-image img {
	border-radius: 0;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.nb-layout-list .entry-container {
	flex: 1;
}

.nb-layout-list .entry-title {
	font-size: 1.6rem;
}

@media screen and (max-width: 700px) {
	.nb-layout-list .blog-post-item {
		flex-direction: column;
	}

	.nb-layout-list .featured-image {
		flex-basis: auto;
		width: 100%;
	}
}

.nb-category {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nb-accent) 12%, transparent);
	color: var(--nb-accent);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nb-category:hover {
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--nb-accent);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
}

.nb-reading-time,
.nb-updated-date {
	display: inline-flex;
	align-items: center;
	margin-right: 14px;
	color: var(--nb-muted);
	font-size: 0.84rem;
}

.nb-reading-time svg {
	width: 15px;
	height: 15px;
	margin-right: 5px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.nb-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	color: var(--nb-accent);
	font-weight: 800;
}

.nb-read-more:hover {
	text-decoration: none;
}

.nb-read-more span:last-child {
	transition: transform 0.2s ease;
}

.nb-read-more:hover span:last-child {
	transform: translateX(4px);
}

/* Single post extras -------------------------------------------------- */
.nb-toc {
	margin: 28px 0;
	padding: 22px 24px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg-soft);
}

.nb-toc strong {
	display: block;
	margin-bottom: 10px;
	font-weight: 800;
}

.nb-toc ol {
	margin: 0;
	padding-left: 20px;
}

.nb-toc li {
	margin: 4px 0;
}

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

.nb-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 36px 0;
	padding: 20px 0;
	border-top: 1px solid var(--nb-border);
	border-bottom: 1px solid var(--nb-border);
}

.nb-share-label {
	margin-right: 4px;
	font-weight: 800;
}

.nb-share-link,
.nb-share-copy {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid var(--nb-border);
	border-radius: 999px;
	background: var(--nb-bg);
	color: var(--nb-text);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nb-share-link:hover,
.nb-share-copy:hover {
	border-color: var(--nb-accent);
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-share-copy svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.nb-author-box {
	display: flex;
	gap: 22px;
	margin: 36px 0;
	padding: 28px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
	box-shadow: var(--nb-shadow);
}

.nb-author-avatar img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.nb-author-body h2 {
	margin-top: 0;
	font-size: 1.4rem;
}

.nb-author-body p {
	margin-bottom: 12px;
	color: var(--nb-muted);
}

.nb-author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.85rem;
	font-weight: 700;
}

.nb-related {
	margin: 48px 0 8px;
}

.nb-related > h2 {
	margin-bottom: 22px;
}

.nb-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.nb-related-card {
	overflow: hidden;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
	box-shadow: var(--nb-shadow);
}

.nb-related-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.nb-related-image img,
.nb-related-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.nb-related-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--nb-bg-soft);
	color: var(--nb-muted);
	font-weight: 700;
	text-align: center;
}

.nb-related-body {
	padding: 18px;
}

.nb-related-date {
	color: var(--nb-muted);
	font-size: 0.78rem;
}

.nb-related-body h3 {
	margin: 6px 0 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.nb-related-body h3 a {
	color: var(--nb-text);
}

@media screen and (max-width: 800px) {
	.nb-related-grid {
		grid-template-columns: 1fr;
	}
}

/* Widgets and footer -------------------------------------------------- */
.widget {
	margin-bottom: 28px;
	padding: 24px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
	box-shadow: var(--nb-shadow);
}

.widget-title {
	position: relative;
	padding-bottom: 12px;
	font-size: 1.1rem;
}

.widget-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 38px;
	height: 3px;
	border-radius: 3px;
	background: var(--nb-accent);
}

.nb-about-widget {
	text-align: center;
}

.nb-about-avatar {
	width: 96px;
	height: 96px;
	margin-bottom: 14px;
	border-radius: 50%;
	object-fit: cover;
}

.nb-about-links,
.nb-author-links {
	flex-wrap: wrap;
}

.nb-about-links a {
	margin: 0 6px;
	font-size: 0.85rem;
	font-weight: 700;
}

.nb-footer-cta {
	padding: 54px 0;
	background: linear-gradient(135deg, var(--nb-accent), #7b5cfa);
	color: #ffffff;
	text-align: center;
}

.nb-footer-cta .widget {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #ffffff;
}

.nb-footer-cta .widget-title::after {
	background: #ffffff;
}

.site-footer {
	background: var(--nb-bg-soft);
	border-top: 1px solid var(--nb-border);
}

.site-info {
	padding: 24px 0;
	color: var(--nb-muted);
	font-size: 0.9rem;
}

/* 404 ------------------------------------------------------------------ */
.nb-404-suggestions {
	margin-top: 34px;
	padding: 24px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
}

.nb-404-suggestions ul {
	margin: 0;
	padding-left: 20px;
}

/* Comments ------------------------------------------------------------- */
.comment-list li {
	padding: 18px 0;
	border-bottom: 1px solid var(--nb-border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg);
	color: var(--nb-text);
}

.comment-form input[type="submit"] {
	padding: 12px 24px;
	border: 0;
	border-radius: var(--nb-radius);
	background: var(--nb-accent);
	color: #ffffff;
	font-weight: 800;
	cursor: pointer;
}

/* Landing template ----------------------------------------------------- */
.nb-landing .entry-header {
	padding: 30px 0;
	text-align: center;
}

.nb-landing-intro {
	color: var(--nb-muted);
	font-size: 1.15rem;
}

/* Dark theme corrections ---------------------------------------------- */
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] .site-content,
html[data-theme="dark"] #content-wrap {
	background: var(--nb-bg);
	color: var(--nb-text);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .main-navigation,
html[data-theme="dark"] .footer-navigation,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .nb-search-panel {
	background: var(--nb-bg-soft);
	border-color: var(--nb-border);
	color: var(--nb-text);
}

html[data-theme="dark"] .niche-blog-navigation-menu a,
html[data-theme="dark"] .site-title a,
html[data-theme="dark"] .site-identity-description {
	color: var(--nb-text);
}

html[data-theme="dark"] .blog-post-item,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .nb-author-box,
html[data-theme="dark"] .nb-related-card,
html[data-theme="dark"] .nb-breadcrumbs,
html[data-theme="dark"] .nb-toc,
html[data-theme="dark"] .nb-404-suggestions {
	background: var(--nb-card);
	border-color: var(--nb-border);
	color: var(--nb-text);
}

html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content p,
html[data-theme="dark"] .site-info,
html[data-theme="dark"] .nb-reading-time,
html[data-theme="dark"] .nb-updated-date {
	color: var(--nb-muted);
}

html[data-theme="dark"] .niche-blog-navigation-menu,
html[data-theme="dark"] .site-header {
	border-top-color: var(--nb-border);
}

/* Scroll reveal -------------------------------------------------------- */
body.js-reveal .nb-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

body.js-reveal .nb-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	body.js-reveal .nb-reveal {
		opacity: 1;
		transform: none;
	}
}


/* Keyboard focus visibility ------------------------------------------- */
/* The legacy stylesheets target input[type="search"]:focus and similar
   selectors, which outrank a generic :focus rule. Keep this final rule
   authoritative so links, buttons and form fields always show a clear
   keyboard focus indicator. The skip-link target is the deliberate
   exception: it does not receive a ring. */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
summary:focus,
[tabindex]:focus {
	outline: 3px solid var(--nb-accent) !important;
	outline-offset: 3px !important;
}

#content[tabindex="-1"]:focus {
	outline: 0 !important;
}

/* Keep the skip link above the toolbar, sticky header and search panel. */
.skip-link:focus {
	z-index: 100001;
}

/* Form controls in dark mode must remain visually distinct when focused. */
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
	border-color: var(--nb-accent);
}



/* Entry title and meta ---------------------------------------------- */
.entry-title {
	margin: 0 0 8px;
	font-weight: 800;
	letter-spacing: -0.025em;
}

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

.entry-title a:hover,
.entry-title a:focus {
	color: var(--nb-accent);
	text-decoration: none;
}

.blog-archive .entry-header {
	box-sizing: border-box;
	padding: 18px 20px 12px;
}

.blog-archive .entry-header .entry-title,
.blog-archive .blog-post-item .entry-title {
	margin: 0;
	font-size: 1.32rem;
	font-weight: 800;
	line-height: 1.3;
}

.blog-archive .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	box-sizing: border-box;
	margin: 0 20px 16px;
	color: var(--nb-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.blog-archive .entry-meta > span,
.single .entry-meta > span,
.single .entry-meta .byline {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.blog-archive .entry-meta a,
.single .entry-meta a {
	color: inherit;
	text-decoration: none;
}

.blog-archive .entry-meta a:hover,
.blog-archive .entry-meta a:focus,
.single .entry-meta a:hover,
.single .entry-meta a:focus {
	color: var(--nb-accent);
}

/* Optional separated title treatment. */
.nb-entry-title-style .blog-archive .entry-header {
	padding-bottom: 16px;
}

.nb-entry-title-style .blog-archive .entry-header .entry-title,
.nb-entry-title-style .blog-archive .blog-post-item .entry-title {
	position: relative;
	padding-bottom: 12px;
}

.nb-entry-title-style .blog-archive .entry-header .entry-title::after,
.nb-entry-title-style .blog-archive .blog-post-item .entry-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: 999px;
	background: var(--nb-accent);
}

/* Optional separated meta treatment. */
.nb-entry-meta-style .blog-archive .entry-meta {
	padding: 9px 12px;
	border: 1px solid var(--nb-border);
	border-radius: 10px;
	background: var(--nb-bg-soft);
}

.nb-entry-meta-style .blog-archive .entry-meta > span + span::before {
	content: "\2022";
	margin-right: 9px;
	color: var(--nb-border);
}

.nb-layout-grid .blog-post-item .entry-container {
	padding: 0;
}

.nb-layout-grid .blog-post-item .nb-category {
	margin: 16px 20px 0;
}

.nb-layout-grid .blog-post-item .entry-content {
	margin: 0;
	padding: 18px 20px;
}

.nb-layout-grid .blog-post-item .nb-read-more {
	margin: auto 20px 20px;
}

.single .entry-container {
	padding: 0;
}

.single .entry-header {
	margin: 0 0 14px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--nb-border);
}

.single .entry-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
}

.single .blog-post-item .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 0 0 24px;
	color: var(--nb-muted);
	font-size: 0.85rem;
	line-height: 1.45;
}

/* Optional separated title treatment on single posts. */
.nb-entry-title-style.single .entry-header {
	margin-bottom: 12px;
	padding: 22px 24px;
	border: 1px solid var(--nb-border);
	border-bottom: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-bg-soft);
}

.nb-entry-title-style.single .entry-title {
	position: relative;
	padding-bottom: 14px;
}

.nb-entry-title-style.single .entry-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 999px;
	background: var(--nb-accent);
}

/* Optional separated meta treatment on single posts. */
.nb-entry-meta-style.single .blog-post-item .entry-meta {
	padding: 14px 18px;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-card);
}

.nb-entry-meta-style.single .entry-meta > span + span::before {
	content: "\2022";
	margin-right: 12px;
	color: var(--nb-border);
}


/* Dark mode heading fix ------------------------------------------------ */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .widget-title,
html[data-theme="dark"] .site-title {
	color: var(--nb-text);
}

html[data-theme="dark"] .entry-title a,
html[data-theme="dark"] .page-title a,
html[data-theme="dark"] .comments-title a {
	color: var(--nb-text);
}


/* Dark mode header override for #masthead. */
html[data-theme="dark"] #masthead,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] body.nb-sticky-header #masthead,
html[data-theme="dark"] body.nb-sticky-header .site-header {
	background-color: var(--nb-bg-soft);
	color: var(--nb-text);
	border-color: var(--nb-border);
}

html[data-theme="dark"] body.nb-sticky-header #masthead,
html[data-theme="dark"] body.nb-sticky-header .site-header {
	background-color: color-mix(in srgb, var(--nb-bg-soft) 92%, transparent);
}
