/* ==========================================================================
   Design System & Tokens
   ========================================================================== */

:root {
	/* Minimal UI tokens */
	--np-fg-primary: var(--np-setting-heading-color, #111111);
	--np-fg-secondary: var(--np-setting-text-color, #525252);

	--np-bg-base: var(--np-setting-site-background, #ffffff);
	--np-bg-elevated: var(--np-setting-content-background, #ffffff);
	--np-bg-elevated-hover: var(--np-setting-content-hover-background, #fafafa);

	--np-brand-base: var(--np-setting-brand-color, #111111);
	--np-brand-strong: var(--np-setting-brand-strong, #000000);
	--np-content-link: var(--np-setting-content-link-color, #111111);
	--np-content-link-hover: var(--np-setting-content-link-hover-color, #000000);
	--np-border-strong: var(--np-setting-border-color, #eaeaea);
	--np-border-subtle: var(--np-setting-border-color, #eaeaea);
	--np-header-bg: var(--np-setting-header-background, #ffffff);
	--np-header-text: var(--np-setting-header-text-color, #111111);
	--np-header-nav: var(--np-setting-header-nav-color, #525252);
	--np-header-nav-hover: var(--np-setting-header-nav-hover-color, #111111);
	--np-header-dropdown-border: var(--np-setting-header-dropdown-border, #eaeaea);
	--np-footer-bg: var(--np-setting-footer-background, #ffffff);
	--np-footer-text: var(--np-setting-footer-text-color, #737373);
	--np-footer-link: var(--np-setting-footer-link-color, #111111);
	--np-footer-link-hover: var(--np-setting-footer-link-hover-color, #000000);
	--np-topbar-bg: var(--np-setting-brand-color, #111111);
	--np-topbar-text: #ffffff;
	--np-button-bg: var(--np-setting-button-background, #111111);
	--np-button-text: var(--np-setting-button-text-color, #ffffff);
	--np-button-bg-hover: var(--np-setting-button-hover-background, #000000);
	--np-button-text-hover: var(--np-setting-button-hover-text-color, #ffffff);
	--np-font-sans: var(--np-setting-font-family-base, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--np-font-heading: var(--np-setting-font-family-heading, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--np-font-weight-base: var(--np-setting-font-weight-base, 400);
	--np-base-font-size: var(--np-setting-font-size-base, 16px);
	--np-base-font-size-mobile: var(--np-setting-font-size-base-mobile, 15px);
	--np-h1-size: var(--np-setting-h1-size, 36px);
	--np-h2-size: var(--np-setting-h2-size, 28px);
	--np-h3-size: var(--np-setting-h3-size, 22px);
	--np-h4-size: var(--np-setting-h4-size, 18px);
	--np-h5-size: var(--np-setting-h5-size, 16px);
	--np-h6-size: var(--np-setting-h6-size, 15px);
	--np-base-font-size-tablet: var(--np-setting-font-size-base-tablet, 16px);
	--np-h1-size-tablet: var(--np-setting-h1-size-tablet, 32px);
	--np-h2-size-tablet: var(--np-setting-h2-size-tablet, 26px);
	--np-h3-size-tablet: var(--np-setting-h3-size-tablet, 20px);
	--np-h4-size-tablet: var(--np-setting-h4-size-tablet, 18px);
	--np-h5-size-tablet: var(--np-setting-h5-size-tablet, 16px);
	--np-h6-size-tablet: var(--np-setting-h6-size-tablet, 15px);
	--np-h1-size-mobile: var(--np-setting-h1-size-mobile, 28px);
	--np-h2-size-mobile: var(--np-setting-h2-size-mobile, 24px);
	--np-h3-size-mobile: var(--np-setting-h3-size-mobile, 20px);
	--np-h4-size-mobile: var(--np-setting-h4-size-mobile, 17px);
	--np-h5-size-mobile: var(--np-setting-h5-size-mobile, 16px);
	--np-h6-size-mobile: var(--np-setting-h6-size-mobile, 15px);
	--np-h1-weight: var(--np-setting-h1-weight, 650);
	--np-h2-weight: var(--np-setting-h2-weight, 650);
	--np-h3-weight: var(--np-setting-h3-weight, 600);
	--np-h4-weight: var(--np-setting-h4-weight, 600);
	--np-h5-weight: var(--np-setting-h5-weight, 600);
	--np-h6-weight: var(--np-setting-h6-weight, 600);
	--np-shadow-sm: none;
	--np-shadow-md: none;
	--np-button-shadow-soft: none;
	--np-button-shadow-strong: none;

	--np-container-max: var(--np-setting-container-width, 1080px);
	--radius-base: var(--np-setting-border-radius, 6px);
	--np-image-radius: var(--np-setting-image-border-radius, 4px);
	--np-border-soft: color-mix(in srgb, var(--np-border-strong) 65%, white);
	--archive-grid-cols: var(--np-archive-grid-cols, 2);

	--np-space-1: 4px;
	--np-space-2: 8px;
	--np-space-3: 12px;
	--np-space-4: 16px;
	--np-space-5: 24px;
	--np-space-6: 32px;
	--np-space-8: 48px;
	--np-space-10: 64px;

	--np-container-padding: var(--np-setting-container-padding, 24px);
	--np-container-padding-tablet: var(--np-setting-container-padding-tablet, 20px);
	--np-container-padding-mobile: var(--np-setting-container-padding-mobile, 16px);
	--np-header-padding-y: var(--np-setting-header-padding-y, 16px);
	--np-footer-padding-y: var(--np-setting-footer-padding-y, 28px);
	--np-header-height: 64px;

	--np-transition-smooth: 0.15s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: var(--np-font-sans);
	font-size: var(--np-base-font-size);
	font-weight: var(--np-font-weight-base);
	background-color: var(--np-bg-base);
	color: var(--np-fg-secondary);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/*
 * Full-viewport shell for posts, pages, archives, products, etc.
 * Keeps the footer pinned to the bottom when content is short.
 */
.np-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.admin-bar .np-site {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .np-site {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

.np-site-content {
	flex: 1 0 auto;
	width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--np-fg-primary);
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.2;
	font-family: var(--np-font-heading);
}

h1 {
	font-size: var(--np-h1-size);
	font-weight: var(--np-h1-weight);
}

h2 {
	font-size: var(--np-h2-size);
	font-weight: var(--np-h2-weight);
}

h3 {
	font-size: var(--np-h3-size);
	font-weight: var(--np-h3-weight);
}

h4 {
	font-size: var(--np-h4-size);
	font-weight: var(--np-h4-weight);
}

h5 {
	font-size: var(--np-h5-size);
	font-weight: var(--np-h5-weight);
}

h6 {
	font-size: var(--np-h6-size);
	font-weight: var(--np-h6-weight);
}

@media screen and (max-width: 768px) {
	body {
		font-size: var(--np-base-font-size-mobile);
	}

	h1 {
		font-size: var(--np-h1-size-mobile);
	}

	h2 {
		font-size: var(--np-h2-size-mobile);
	}

	h3 {
		font-size: var(--np-h3-size-mobile);
	}

	h4 {
		font-size: var(--np-h4-size-mobile);
	}

	h5 {
		font-size: var(--np-h5-size-mobile);
	}

	h6 {
		font-size: var(--np-h6-size-mobile);
	}
}

a {
	color: var(--np-content-link);
	text-decoration: none;
	transition: color var(--np-transition-smooth), box-shadow var(--np-transition-smooth);
}

a:hover {
	color: var(--np-content-link-hover);
}

a:focus-visible {
	outline: 2px solid var(--np-brand-base);
	outline-offset: 2px;
}

.np-entry-content a:not(.np-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.np-entry-content a:not(.np-button):hover {
	text-decoration-thickness: 2px;
}

/*
 * Scope CTA styles — never style bare `button` globally.
 * Product gallery / lightbox triggers are <button>s; painting them with
 * brand blue caused the solid blue hover/backdrop on product pages.
 */
.np-button,
.np-error-404__button,
.np-entry-content input[type="submit"],
.np-entry-content .button,
.wp-block-button__link {
	background-color: var(--np-button-bg);
	color: var(--np-button-text);
	border: 1px solid var(--np-border-strong);
	border-radius: calc(var(--radius-base) - 2px);
}

.np-button:hover,
.np-error-404__button:hover,
.np-entry-content input[type="submit"]:hover,
.np-entry-content .button:hover,
.wp-block-button__link:hover {
	background-color: var(--np-button-bg-hover);
	color: var(--np-button-text-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Layout Utils
   ========================================================================== */

.np-container {
	max-width: var(--np-container-max);
	margin: 0 auto;
	padding: 0 var(--np-container-padding);
	width: 100%;
	box-sizing: border-box;
}

.np-container--shell-full {
	max-width: none;
}

@media screen and (max-width: 991px) {
	.np-container {
		padding: 0 var(--np-container-padding-tablet);
	}
}

@media screen and (max-width: 767px) {
	.np-container {
		padding: 0 var(--np-container-padding-mobile);
	}
}

.np-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.np-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 16px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	border-radius: 0 0 8px 0;
	font-weight: 600;
}

.np-skip-link:focus {
	left: 0;
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Header & Navigation — minimal flat shell
   ========================================================================== */

.np-topbar {
	background: var(--np-topbar-bg);
	color: var(--np-topbar-text);
}

.np-topbar-inner {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.np-topbar-text {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
}

.np-site-header {
	background-color: var(--np-header-bg);
	border-bottom: 1px solid var(--np-border-subtle);
	z-index: 100;
}

body.has-sticky-header .np-site-header {
	position: sticky;
	top: 0;
	box-shadow: none;
}

.np-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(16px, 2.5vw, 32px);
	min-height: var(--np-header-height);
	height: auto;
	padding-top: var(--np-header-padding-y);
	padding-bottom: var(--np-header-padding-y);
	box-sizing: border-box;
}

body.np-nav-open {
	overflow: hidden;
}

.np-site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo,
.np-site-branding .custom-logo,
.np-site-footer .custom-logo {
	display: block;
	width: min(var(--np-setting-logo-width, 180px), 100%, calc(var(--np-container-max) * 0.45));
	max-width: 100%;
	height: auto;
	max-height: var(--np-setting-logo-max-height, 72px);
	object-fit: contain;
}

@media (max-width: 991px) {
	.custom-logo,
	.np-site-branding .custom-logo,
	.np-site-footer .custom-logo {
		width: min(var(--np-setting-logo-width-tablet, 150px), 100%, calc(var(--np-container-max) * 0.5));
		max-height: var(--np-setting-logo-max-height-tablet, 64px);
	}
}

@media (max-width: 767px) {
	.custom-logo,
	.np-site-branding .custom-logo,
	.np-site-footer .custom-logo {
		width: min(var(--np-setting-logo-width-mobile, 120px), 100%, calc(var(--np-container-max) * 0.55));
		max-height: var(--np-setting-logo-max-height-mobile, 56px);
	}
}

.np-site-title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.25vw, 1.25rem);
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.np-site-title a {
	color: var(--np-header-text);
}

.np-site-title a:hover {
	color: var(--np-header-nav-hover);
}

.np-site-description {
	margin: 0;
	font-size: 0.875rem;
	color: var(--np-fg-secondary);
}

/* Main Navigation */

.np-main-navigation {
	display: flex;
	align-items: center;
}

.np-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-base);
	color: var(--np-header-nav);
	cursor: pointer;
	transition: color var(--np-transition-smooth);
	line-height: 0;
	z-index: 10001;
}

.np-menu-toggle:hover,
.np-menu-toggle:focus-visible {
	color: var(--np-header-nav-hover);
	background: transparent;
	border-color: transparent;
}

.np-menu-toggle__box {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}

.np-menu-toggle__line {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.np-menu-toggle__line:nth-child(1) {
	top: 0;
}

.np-menu-toggle__line:nth-child(2) {
	top: 6px;
}

.np-menu-toggle__line:nth-child(3) {
	top: 12px;
}

.np-main-navigation.is-toggled .np-menu-toggle__line:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.np-main-navigation.is-toggled .np-menu-toggle__line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.4);
}

.np-main-navigation.is-toggled .np-menu-toggle__line:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

.np-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: clamp(14px, 1.6vw, 28px);
	align-items: center;
}

.np-menu-list li {
	position: relative;
}

.np-menu-list a {
	display: block;
	color: var(--np-header-nav);
	font-weight: 450;
	font-size: 0.9375rem;
	letter-spacing: -0.01em;
	padding: 4px 0;
	transition: color var(--np-transition-smooth);
}

.np-menu-list a:hover,
.np-menu-list .current-menu-item>a {
	color: var(--np-header-nav-hover);
}

/* ---- Dropdown / Sub-menu (Desktop) ---- */

/* Flex on parent link so chevron stays vertically centered */
.np-menu-list li.menu-item-has-children>a {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Static chevron — no animation */
.np-menu-list li.menu-item-has-children>a::after {
	content: '';
	display: block;
	width: 5px;
	height: 5px;
	flex-shrink: 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.45;
	margin-top: -2px;
}

/* Dropdown panel — flat hairline */
.np-menu-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 6px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin-top: 8px;
	background: var(--np-setting-header-dropdown-bg, var(--np-bg-elevated));
	border: 1px solid var(--np-header-dropdown-border);
	border-radius: var(--radius-base);
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease, visibility 0.12s;
	z-index: 1000;
}





/* Invisible hover bridge — fills the margin gap above the panel */
.np-menu-list .sub-menu::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}

/* Show on hover — parent li hover keeps sub-menu alive */
.np-menu-list li.menu-item-has-children:hover>.sub-menu,
.np-menu-list li.menu-item-has-children.is-open>.sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Right-align last items to prevent overflow */
.np-menu-list li:last-child>.sub-menu,
.np-menu-list li:nth-last-child(2)>.sub-menu {
	left: auto;
	right: 0;
}

/* Sub-menu links — border-radius clips hover bg inside panel */
.np-menu-list .sub-menu a {
	display: block;
	padding: 9px 14px;
	font-size: 15px;
	font-weight: 400;
	color: var(--np-setting-header-dropdown-text, var(--np-header-nav));
	white-space: nowrap;
	border-radius: calc(var(--radius-base) - 3px);
	transition: background 0.1s ease, color 0.1s ease;
}

.np-menu-list .sub-menu a:hover {
	background: var(--np-setting-header-dropdown-hover-bg, var(--np-bg-elevated-hover));
	color: var(--np-setting-header-dropdown-hover-text, var(--np-header-nav-hover));
}

/* No inherited chevron on sub-items */
.np-menu-list .sub-menu li>a {
	display: block;
}

.np-menu-list .sub-menu li>a::after {
	display: none;
}

/* Mega menu panel */
.np-menu-list li.mega-menu>.sub-menu {
	min-width: 400px;
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	padding: 10px;
}

.np-menu-list li:last-child.mega-menu>.sub-menu {
	left: auto;
	right: 0;
}

.np-menu-list li.mega-menu .sub-menu a {
	white-space: normal;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
	.np-site-header {
		position: relative;
		--np-header-height: 64px;
	}

	.np-menu-toggle {
		display: inline-flex;
	}

	.np-menu-toggle[hidden] {
		display: none !important;
	}

	.np-main-navigation .np-menu-list {
		display: flex;
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: 100dvh;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: calc(var(--np-header-height) + 12px) var(--np-container-padding) 32px;
		gap: 0;
		background: var(--np-header-bg);
		z-index: 9999;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translate3d(0, -10px, 0);
		transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
	}

	.np-main-navigation.is-toggled .np-menu-list {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translate3d(0, 0, 0);
	}

	.np-menu-list li {
		width: 100%;
		text-align: left;
	}

	.np-menu-list > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 16px 2px;
		border-bottom: 1px solid rgba(128, 128, 128, 0.14);
		font-size: 1.0625rem;
		font-weight: 600;
		color: var(--np-header-nav);
		border-radius: 0;
		text-align: left;
		transition: color 0.18s ease;
	}

	.np-menu-list > li:last-child > a {
		border-bottom: none;
	}

	.np-menu-list li.menu-item-has-children > a::after {
		width: 8px;
		height: 8px;
		margin-top: 0;
		flex-shrink: 0;
		opacity: 0.55;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transition: transform 0.22s ease;
	}

	.np-menu-list li.menu-item-has-children.is-open > a::after {
		transform: rotate(-135deg);
		margin-top: 4px;
	}

	.np-menu-list .sub-menu {
		position: static;
		margin-top: 0;
		left: auto;
		box-shadow: none;
		border: none;
		border-radius: 0;
		background: transparent;
		opacity: 1;
		visibility: visible;
		pointer-events: none;
		display: block;
		max-height: 0;
		overflow: hidden;
		padding: 0 0 0 12px;
		min-width: 0;
		transition: max-height 0.3s ease, padding 0.3s ease;
	}

	.np-menu-list .sub-menu::before {
		display: none;
	}

	.np-menu-list li.is-open > .sub-menu {
		max-height: 640px;
		padding-bottom: 6px;
		pointer-events: auto;
	}

	.np-menu-list .sub-menu > li > a {
		display: block;
		font-size: 0.9375rem;
		font-weight: 500;
		padding: 11px 0;
		border-radius: 0;
		border-bottom: 1px solid rgba(128, 128, 128, 0.1);
		background: transparent !important;
		color: var(--np-header-nav);
		white-space: normal;
		text-align: left;
		opacity: 0.88;
	}

	.np-menu-list .sub-menu > li:last-child > a {
		border-bottom: none;
	}

	.np-menu-list li.mega-menu > .sub-menu {
		min-width: 0;
		padding-left: 12px;
	}

	@media (prefers-reduced-motion: reduce) {
		.np-menu-toggle__line,
		.np-main-navigation .np-menu-list,
		.np-menu-list .sub-menu,
		.np-menu-list li.menu-item-has-children > a::after {
			transition: none !important;
		}
	}
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.np-site-main {
	padding-top: clamp(24px, 3vw, 40px);
	padding-bottom: clamp(32px, 4vw, 56px);
}

@media screen and (max-width: 768px) {
	.np-site-main {
		overflow-x: hidden;
	}
}

.np-container--singular {
	max-width: min(760px, var(--np-container-max));
}

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

.np-container--wide {
	max-width: min(1400px, calc(var(--np-container-max) + 200px));
}

body.np-layout-full .np-container--full,
body.np-layout-full .np-container--singular {
	max-width: 100%;
}

.np-content-shell {
	display: block;
}

.np-content-shell--has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 3vw, 36px);
	align-items: start;
}

body.np-sidebar-right .np-content-shell--has-sidebar,
body.np-sidebar-left .np-content-shell--has-sidebar {
	grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.7fr);
}

body.np-sidebar-left .np-content-shell--has-sidebar {
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
}

body.np-sidebar-left .np-content-shell--has-sidebar .np-sidebar {
	order: -1;
}

.np-content-primary {
	min-width: 0;
}

.np-sidebar {
	min-width: 0;
}

.np-widget {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--np-border-subtle);
	border-radius: calc(var(--radius-base) + 2px);
	background: var(--np-bg-elevated);
}

.np-widget-title {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 800;
}

@media (max-width: 900px) {
	body.np-sidebar-right .np-content-shell--has-sidebar,
	body.np-sidebar-left .np-content-shell--has-sidebar {
		grid-template-columns: 1fr;
	}

	body.np-sidebar-left .np-content-shell--has-sidebar .np-sidebar {
		order: 0;
	}
}

.np-entry-header {
	margin: 0 0 clamp(24px, 3.5vw, 36px);
	padding: 0;
	border-bottom: 0;
}

.np-entry-title {
	font-size: var(--np-h1-size);
	font-weight: var(--np-h1-weight);
	margin: 0 0 12px;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--np-fg-primary);
}

.np-entry-media {
	margin: 0 0 clamp(20px, 3vw, 32px);
	border-radius: var(--np-image-radius);
	overflow: hidden;
	background: #f5f5f5;
	box-shadow: none;
}

.np-entry-media__img {
	width: 100%;
	height: auto;
	display: block;
}

.np-entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--np-fg-secondary);
}

.np-singular {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.np-entry-content > *:first-child {
	margin-top: 0;
}

.np-entry-content > *:last-child {
	margin-bottom: 0;
}

.np-no-posts {
	padding: clamp(24px, 4vw, 40px) 0;
	color: var(--np-fg-secondary);
}

.np-entry-content a {
	color: var(--np-content-link);
}

.np-entry-content a:hover {
	color: var(--np-content-link-hover);
}

/* Typography Elements (Lists, Quotes, Tables, Images) */
.np-entry-content h1,
.np-entry-content h2,
.np-entry-content h3,
.np-entry-content h4,
.np-entry-content h5,
.np-entry-content h6 {
	margin-top: 20px;
	margin-bottom: 20px;
	line-height: 1.3;
}

.np-entry-content ul,
.np-entry-content ol {
	margin: 0 0 var(--np-space-5) 24px;
	padding: 0;
}

.np-entry-content li {
	margin-bottom: var(--np-space-2);
}

.np-entry-content li:last-child {
	margin-bottom: 0;
}

.np-entry-content blockquote {
	margin: var(--np-space-5) 0;
	padding: var(--np-space-4) var(--np-space-5);
	background: var(--np-bg-elevated);
	border-left: 4px solid var(--np-brand-base);
	border-radius: 0 var(--radius-base) var(--radius-base) 0;
	font-style: italic;
	color: var(--np-fg-secondary);
}

.np-entry-content blockquote p {
	margin-bottom: 0;
}

.np-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* ---- Tables ---- */

/* Block editor table: the figure IS the scroll container */
.np-entry-content .wp-block-table {
	display: block;
	/* enables overflow to work on a figure element */
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: var(--np-space-5) 0;
	border-radius: var(--radius-base);
	box-shadow: var(--np-shadow-sm);
}

/* Table base */
.np-entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
}

/* Cells — no background, just borders */
.np-entry-content th,
.np-entry-content td {
	padding: 12px 16px;
	border-right: 1px solid var(--np-border-strong);
	border-bottom: 1px solid var(--np-border-strong);
	text-align: left;
	vertical-align: middle;
	word-break: break-word;
	background: transparent;
}

/* First column left border */
.np-entry-content th:first-child,
.np-entry-content td:first-child {
	border-left: 1px solid var(--np-border-strong);
}

/* First row top border */
.np-entry-content tr:first-child th,
.np-entry-content tr:first-child td {
	border-top: 1px solid var(--np-border-strong);
}

/* Header row — only this gets a background */
.np-entry-content thead th,
.np-entry-content thead td,
.np-entry-content table:not(:has(thead)) > tbody > tr:first-child > th,
.np-entry-content table:not(:has(thead)) > tbody > tr:first-child > td {
	background: var(--np-bg-elevated);
	font-weight: 700;
	color: var(--np-fg-primary);
}

/* Classic bare <table> (not inside .wp-block-table figure) */
.np-entry-content>table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--radius-base);
	box-shadow: var(--np-shadow-sm);
}

/* Mobile: prevent text from wrapping inside cells so the table
   keeps its natural width and the wrapper scrolls horizontally */
@media (max-width: 768px) {

	.np-entry-content th,
	.np-entry-content td {
		padding: 10px 12px;
		font-size: 0.875rem;
		white-space: nowrap;
		/* forces table to stay wide → wrapper scrolls */
	}

	.np-entry-content .wp-block-table {
		border-radius: 8px;
	}

	.np-entry-content>table {
		border-radius: 8px;
	}
}




.np-entry-content>img,
.np-entry-content p>img,
.np-entry-content figure>img {
	max-width: 100%;
	height: auto;
	border-radius: var(--np-image-radius, 8px);
	margin: var(--np-space-5) 0;
	display: block;
}

/* Clean responsive table override */
.np-entry-content .wp-block-table,
.np-entry-content>table {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: var(--np-space-5) 0;
	border: 1px solid var(--np-border-strong);
	border-radius: var(--radius-base);
	background: var(--np-bg-base);
	box-shadow: var(--np-shadow-sm);
}

.np-entry-content .wp-block-table table,
.np-entry-content>table {
	width: 100%;
	min-width: 0;
	display: table;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	background: transparent;
}

.np-entry-content th,
.np-entry-content td {
	padding: 14px 16px;
	border-top: 0;
	border-right: 0;
	border-left: 0;
	border-bottom: 1px solid var(--np-border-strong);
	text-align: left;
	vertical-align: middle;
	word-break: normal;
	background: transparent;
}

.np-entry-content th:first-child,
.np-entry-content td:first-child {
	border-left: 0;
}

.np-entry-content th+th,
.np-entry-content td+td {
	border-left: 1px solid color-mix(in srgb, var(--np-border-strong) 70%, white);
}

.np-entry-content thead th,
.np-entry-content thead td,
.np-entry-content table:not(:has(thead)) > tbody > tr:first-child > th,
.np-entry-content table:not(:has(thead)) > tbody > tr:first-child > td {
	border-top: 0;
	background: var(--np-bg-elevated);
	font-weight: 700;
	color: var(--np-fg-primary);
}

.np-entry-content tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--np-bg-elevated) 55%, white);
}

.np-entry-content tbody tr:last-child td,
.np-entry-content tbody tr:last-child th,
.np-entry-content table tr:last-child td,
.np-entry-content table tr:last-child th {
	border-bottom: none;
}

@media (max-width: 768px) {
	.np-entry-content .wp-block-table,
	.np-entry-content>table {
		border-radius: 8px;
	}

	.np-entry-content .wp-block-table table,
	.np-entry-content>table {
		min-width: 560px;
		table-layout: auto;
	}

	.np-entry-content th,
	.np-entry-content td {
		padding: 11px 12px;
		font-size: 0.875rem;
		white-space: nowrap;
	}
}

/* Final table system */
.np-entry-content .wp-block-table,
.np-entry-content .np-table-scroll {
	width: 100%;
	max-width: 100%;
	margin: var(--np-space-5) 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--np-border-strong);
	border-radius: var(--radius-base);
	background: var(--np-bg-base);
	box-shadow: var(--np-shadow-sm);
}

.np-entry-content .wp-block-table table,
.np-entry-content .np-table-scroll table {
	width: 100%;
	min-width: 0;
	margin: 0;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	table-layout: fixed;
	background: transparent;
}

.np-entry-content .wp-block-table tbody,
.np-entry-content .np-table-scroll tbody {
	background: color-mix(in srgb, var(--np-bg-base) 92%, var(--np-bg-elevated));
}

.np-entry-content .wp-block-table th,
.np-entry-content .wp-block-table td,
.np-entry-content .np-table-scroll th,
.np-entry-content .np-table-scroll td {
	padding: 14px 16px;
	border: 0 !important;
	border-bottom: 1px solid var(--np-border-strong) !important;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
	overflow-wrap: anywhere;
	background: transparent;
	font-weight: 500;
	color: var(--np-fg-primary);
}

.np-entry-content .wp-block-table th + th,
.np-entry-content .wp-block-table td + td,
.np-entry-content .np-table-scroll th + th,
.np-entry-content .np-table-scroll td + td {
	border-left: 1px solid color-mix(in srgb, var(--np-border-strong) 70%, white) !important;
}

.np-entry-content .wp-block-table thead th,
.np-entry-content .wp-block-table thead td,
.np-entry-content .np-table-scroll thead th,
.np-entry-content .np-table-scroll thead td {
	background: color-mix(in srgb, var(--np-bg-elevated) 85%, white);
	color: var(--np-fg-primary);
	font-weight: 700;
	border-top: 0 !important;
}

.np-entry-content .wp-block-table table:has(thead) tbody tr:first-child th,
.np-entry-content .wp-block-table table:has(thead) tbody tr:first-child td,
.np-entry-content .np-table-scroll table:has(thead) tbody tr:first-child th,
.np-entry-content .np-table-scroll table:has(thead) tbody tr:first-child td {
	background: transparent !important;
	font-weight: 500 !important;
	color: var(--np-fg-primary) !important;
}

.np-entry-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td,
.np-entry-content .np-table-scroll table:not(:has(thead)) tbody tr:first-child td {
	background: color-mix(in srgb, var(--np-bg-elevated) 85%, white) !important;
	font-weight: 700 !important;
}

.np-entry-content .wp-block-table tbody tr:nth-child(even) td,
.np-entry-content .np-table-scroll tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--np-bg-base) 96%, var(--np-bg-elevated));
}

.np-entry-content .wp-block-table tbody tr:last-child td,
.np-entry-content .wp-block-table tbody tr:last-child th,
.np-entry-content .np-table-scroll tbody tr:last-child td,
.np-entry-content .np-table-scroll tbody tr:last-child th {
	border-bottom: 0 !important;
}

@media (max-width: 768px) {
	.np-entry-content .wp-block-table,
	.np-entry-content .np-table-scroll {
		border-radius: 8px;
	}

	.np-entry-content .wp-block-table table,
	.np-entry-content .np-table-scroll table {
		min-width: 560px;
		table-layout: auto;
	}

	.np-entry-content .wp-block-table th,
	.np-entry-content .wp-block-table td,
	.np-entry-content .np-table-scroll th,
	.np-entry-content .np-table-scroll td {
		padding: 11px 12px;
		font-size: 0.875rem;
		white-space: nowrap;
	}
}

/* Author & Meta Area */
.np-author-meta {
	display: flex !important;
	/* Force flex to prevent stacking */
	flex-direction: row;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.np-author-photo img,
.np-author-photo .avatar {
	width: 42px !important;
	height: 42px !important;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
}

.np-author-details {
	display: flex;
	align-items: center;
	gap: 8px;
}

.np-meta-author-name {
	font-weight: 600;
	color: var(--np-fg-secondary);
	font-size: 1rem;
	text-decoration: none;
}

.np-meta-sep {
	width: 3px;
	height: 3px;
	background: var(--np-border-strong);
	border-radius: 50%;
	flex-shrink: 0;
}

.np-author-date {
	font-weight: 600;
	font-size: 1rem;
	color: var(--np-fg-secondary);
}

@media screen and (max-width: 768px) {
	.np-author-meta {
		gap: 12px;
		margin-bottom: 16px;
	}

	.np-author-photo img,
	.np-author-photo .avatar {
		width: 42px !important;
		height: 42px !important;
	}

	.np-author-details {
		flex-direction: column;
		align-items: flex-start;
		gap: 1px;
	}

	.np-meta-sep {
		display: none;
	}

	.np-meta-author-name {
		font-size: 0.875rem;
		line-height: 1.3;
	}

	.np-author-date {
		font-size: 0.875rem;
		line-height: 1.3;
	}
}

/* ==========================================================================
   Footer — minimal single band
   ========================================================================== */

.np-site-footer {
	background-color: var(--np-footer-bg);
	border-top: 1px solid var(--np-border-subtle);
	padding: var(--np-footer-padding-y) 0;
	margin-top: auto;
}

.np-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px 32px;
}

.np-footer-navigation {
	width: auto;
}

.np-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-footer-menu a {
	color: var(--np-footer-link);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color var(--np-transition-smooth);
}

.np-footer-menu a:hover,
.np-footer-menu a:focus-visible {
	color: var(--np-footer-link-hover);
}

.np-footer-brand-block {
	max-width: 28rem;
	min-width: 0;
}

.np-footer-brand {
	display: flex;
	align-items: center;
	min-width: 0;
	margin-bottom: 8px;
}

.np-footer-brand-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.np-footer-site-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--np-fg-primary);
}

.np-footer-info {
	margin: 0 0 8px;
	color: var(--np-footer-text);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.np-site-info {
	margin: 0;
	color: var(--np-footer-text);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.np-site-info a {
	color: var(--np-footer-link);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.np-site-footer a {
	color: var(--np-footer-link);
}

.np-site-footer a:hover {
	color: var(--np-footer-link-hover);
}

@media (max-width: 767px) {
	.np-footer-inner {
		flex-direction: column;
		gap: 16px;
	}

	.np-footer-menu {
		gap: 8px 14px;
	}
}

/* ==========================================================================
   Author Archive Page Redesign
   ========================================================================== */

.np-author-archive-wrap {
	padding-top: 12px;
}

/* Breadcrumb Styling Refined */
.np-breadcrumb-nav {
	margin-bottom: 24px;
	font-size: 0.9375rem;
	font-weight: 500;
}

.np-breadcrumb-inner {
	display: flex;
	align-items: center;
	gap: 8px;
}

.np-breadcrumb-home {
	color: var(--np-fg-secondary);
	text-decoration: none;
}

.np-breadcrumb-separator {
	color: var(--np-fg-secondary);
	display: flex;
	align-items: center;
}

.np-breadcrumb-current {
	color: var(--np-fg-secondary);
}

/* Author Header Refined */
.np-author-header-refined {
	margin-bottom: 48px;
}

.np-author-profile-grid {
	display: flex;
	align-items: center;
	gap: 32px;
}

.np-author-avatar-big img {
	width: 180px;
	height: 180px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--np-bg-elevated);
}

.np-author-info-stack {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.np-author-name {
	font-size: 2.75rem;
	font-weight: 800;
	margin: 0;
	color: var(--np-fg-primary);
	line-height: 1;
}

h6 {
	font-family: var(--np-font-heading);
	color: var(--np-fg-primary);
	line-height: 1.2;
	margin: 0;
}

@media screen and (max-width: 1024px) {
	body {
		font-size: var(--np-base-font-size-tablet);
	}

	h1 {
		font-size: var(--np-h1-size-tablet);
	}

	h2 {
		font-size: var(--np-h2-size-tablet);
	}

	h3 {
		font-size: var(--np-h3-size-tablet);
	}

	h4 {
		font-size: var(--np-h4-size-tablet);
	}

	h5 {
		font-size: var(--np-h5-size-tablet);
	}

	h6 {
		font-size: var(--np-h6-size-tablet);
	}
}

.np-author-role {
	font-size: 1rem;
	color: var(--np-fg-secondary);
	font-weight: 500;
}

.np-author-badge-row {
	margin-top: 4px;
}

.np-articles-counter {
	display: inline-flex;
	align-items: center;
	background: var(--np-bg-elevated);
	color: var(--np-fg-primary);
	font-weight: 700;
	font-size: 0.8125rem;
	padding: 6px 16px;
	border-radius: 8px;
}

.np-author-bio-refined {
	margin-top: 32px;
	max-width: 100%;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--np-fg-secondary);
}

/* Main Layout Grid */
.np-author-main-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 60px;
}

@media screen and (max-width: 992px) {
	.np-author-main-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.np-archive-title-section {
	font-size: 2.25rem;
	font-weight: 800;
	margin-top: 16px;
	margin-bottom: 32px;
	color: var(--np-fg-primary);
}


.np-page-header {
	margin: 0 0 clamp(24px, 3.5vw, 40px);
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid var(--np-border-subtle);
	border-radius: calc(var(--radius-base) + 4px);
	background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--np-brand-base) 5%, #ffffff) 100%);
	box-shadow: 0 10px 28px -26px rgba(15, 23, 42, 0.3);
}

.np-page-title {
	margin: 0 0 10px;
	line-height: 1.15;
	letter-spacing: -0.035em;
	font-weight: 800;
	color: var(--np-fg-primary);
}

.np-archive-description {
	margin: 0;
	color: var(--np-fg-secondary);
	line-height: 1.65;
	max-width: 42rem;
}

.np-pagination-nav {
	margin: 36px 0 8px;
}

.np-pagination-nav .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.np-pagination-nav a,
.np-pagination-nav span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--np-border-strong);
	border-radius: 8px;
	background: var(--np-bg-elevated);
	color: var(--np-fg-primary);
	text-decoration: none;
	font-weight: 600;
}

.np-pagination-nav a:hover,
.np-pagination-nav a:focus-visible {
	border-color: var(--np-brand-base);
	color: var(--np-brand-strong);
}

.np-pagination-nav .current {
	background: var(--np-brand-base);
	border-color: var(--np-brand-base);
	color: #fff;
}

/* Article Cards Grid — flat minimal */
.np-post-cards-grid {
	display: grid;
	grid-template-columns: repeat(var(--archive-grid-cols), minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 32px);
}

.np-post-cards-grid.is-list-layout {
	grid-template-columns: 1fr;
}

.np-post-cards-grid.is-list-layout .np-article-card-minimal {
	padding: 0;
}

.np-post-cards-grid.has-columns-1 {
	grid-template-columns: 1fr;
}

.np-post-cards-grid.has-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-post-cards-grid.has-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.np-article-card {
	margin: 0;
	min-width: 0;
}

.np-article-card-minimal {
	display: flex;
	flex-direction: column;
	background: transparent;
	border-radius: 0;
	padding: 0;
	overflow: hidden;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border: none;
	box-shadow: none;
	transition: opacity var(--np-transition-smooth);
}

.np-article-card-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f5f5f5;
	border-radius: var(--np-image-radius);
}

.np-article-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.np-article-card-minimal:hover,
.np-article-card-minimal:focus-visible {
	opacity: 0.92;
}

.np-article-card-minimal:focus-visible {
	outline: 2px solid var(--np-brand-base);
	outline-offset: 3px;
}

.np-article-card-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
	gap: 0;
	box-sizing: border-box;
	padding: 14px 0 0;
}

.np-post-cards-grid.is-list-layout .np-article-card-minimal {
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

.np-post-cards-grid.is-list-layout .np-article-card-media {
	flex: 0 0 min(240px, 36%);
	aspect-ratio: auto;
	min-height: 140px;
}

.np-post-cards-grid.is-list-layout .np-article-card-inner {
	flex: 1;
	padding: 0;
}

.np-article-title {
	font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
	font-weight: 650;
	margin: 0 0 8px;
	color: var(--np-fg-primary);
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.np-article-card-minimal:hover .np-article-title {
	color: var(--np-brand-strong);
}

.np-article-excerpt {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--np-fg-secondary);
	margin: 0 0 12px;
	flex: 1;
}

.np-article-footer-meta {
	margin-top: auto;
	font-size: 0.75rem;
	color: var(--np-fg-secondary);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	font-weight: 450;
}

.np-meta-dot {
	opacity: 0.4;
}

@media screen and (max-width: 991px) {
	.np-post-cards-grid.has-columns-3,
	.np-post-cards-grid.has-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 640px) {
	.np-post-cards-grid,
	.np-post-cards-grid.has-columns-2,
	.np-post-cards-grid.has-columns-3,
	.np-post-cards-grid.has-columns-4 {
		grid-template-columns: 1fr;
	}
}

/* Refined Sidebar Widget */
.np-sidebar-widget-refined {
	position: sticky;
	top: 40px;
}

.np-sidebar-widget-refined .np-widget-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 12px;
	color: var(--np-fg-primary);
}

.np-sidebar-authors-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.np-sidebar-author-item {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	padding: 12px;
	border-radius: 12px;
	transition: background 0.2s;
}

.np-sidebar-author-item:hover {
	background: var(--np-bg-elevated);
}

.np-sidebar-author-item.is-active {
	background: var(--np-bg-elevated);
}

.np-sidebar-avatar-small img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--np-bg-elevated);
}

.np-sidebar-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.np-sidebar-name {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--np-fg-primary);
}

.np-sidebar-meta-stack {
	display: flex;
	flex-direction: column;
}

.np-sidebar-role-meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--np-fg-secondary);
	font-weight: 500;
}

.np-sidebar-count-meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--np-fg-secondary);
}

/* Pagination Refined */
.np-pagination-nav {
	grid-column: 1 / -1;
	margin-top: 40px;
	display: flex;
	justify-content: flex-start;
	gap: 12px;
}

.np-pagination-nav .page-numbers {
	padding: 8px 16px;
	background: var(--np-bg-elevated);
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--np-fg-secondary);
	text-decoration: none;
}

.np-pagination-nav .current {
	background: var(--np-fg-primary);
	color: var(--np-bg-base);
}

/* Responsive Author Archive */
@media screen and (max-width: 1024px) {
	.np-author-main-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.np-sidebar-widget-refined {
		position: static;
	}
}

@media screen and (max-width: 768px) {
	.np-post-cards-grid {
		grid-template-columns: 1fr;
	}

	.np-author-header-refined {
		margin-bottom: 24px;
	}

	.np-author-profile-grid {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 12px;
	}

	.np-author-avatar-big img {
		width: 80px;
		height: 80px;
		border-radius: 8px;
	}

	.np-author-info-stack {
		gap: 4px;
	}

	.np-author-name {
		font-size: 1.6rem;
		line-height: 1.05;
	}

	.np-author-role {
		font-size: 0.8125rem;
		line-height: 1.2;
	}

	.np-author-badge-row {
		margin-top: 0;
	}

	.np-articles-counter {
		font-size: 0.6875rem;
		padding: 4px 10px;
		border-radius: 6px;
	}

	.np-archive-title-section {
		font-size: 1.75rem;
		margin-top: 0;
		margin-bottom: 20px;
	}

	.np-author-bio-refined {
		margin-top: 14px;
		font-size: 0.9375rem;
	}
}

.np-error-404 {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 0 96px;
	text-align: center;
}

.np-error-404__eyebrow {
	margin: 0 0 12px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-brand-base);
}

.np-error-404__title {
	margin-bottom: 16px;
}

.np-error-404__text {
	max-width: 620px;
	margin: 0 auto 28px;
	font-size: 1.0625rem;
	color: var(--np-fg-secondary);
}

.np-error-404__actions {
	display: flex;
	justify-content: center;
}

.np-error-404__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: var(--radius-base);
	background: var(--np-button-bg);
	color: var(--np-button-text) !important;
	font-weight: 600;
	box-shadow: none;
}

.np-error-404__button:hover {
	background: var(--np-button-bg-hover);
	color: var(--np-button-text-hover) !important;
	box-shadow: none;
}
