/* Reusable options layered over the stable editorial base. */
body {
	font-family: var(--knc-font-body);
	font-size: var(--knc-font-size);
	line-height: var(--knc-line-height);
}
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.main-navigation {
	font-family: var(--knc-font-heading);
}
h1, h2, h3, h4, h5, h6,
.entry-title {
	font-weight: var(--knc-heading-weight);
}

body.knc-static-header #masthead {
	position: relative;
	top: auto;
}
body.knc-compact-header #masthead .site-header-row-container-inner,
body.knc-compact-header #masthead .site-mobile-header-wrap .site-header-row-container-inner {
	min-height: 56px;
}
body.knc-header-centered #masthead .site-main-header-inner-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: var(--knc-space-lg);
}
body.knc-header-centered #masthead .site-branding { justify-content: center; }
body.knc-header-split #masthead .site-main-header-inner-wrap { column-gap: var(--knc-space-xl); }
body.knc-header-split #masthead .main-navigation .primary-menu-container > ul { gap: var(--knc-space-md); }

@media (max-width: 1024px) {
	body.knc-mobile-320 #mobile-drawer.popup-drawer-layout-sidepanel .drawer-inner { width: min(320px, 92vw); }
	body.knc-mobile-360 #mobile-drawer.popup-drawer-layout-sidepanel .drawer-inner { width: min(360px, 94vw); }
	body.knc-mobile-full #mobile-drawer.popup-drawer-layout-sidepanel .drawer-inner { width: 100%; max-width: none; }
	body.knc-mobile-accent-primary #mobile-drawer .mobile-navigation li.current-menu-item > .drawer-nav-drop-wrap,
	body.knc-mobile-accent-primary #mobile-drawer .mobile-navigation li.current-menu-ancestor > .drawer-nav-drop-wrap,
	body.knc-mobile-accent-primary .mobile-navigation ul li.current-menu-item > a,
	body.knc-mobile-accent-primary .mobile-navigation ul li.current-menu-ancestor > a {
		box-shadow: inset 4px 0 0 var(--knc-primary);
	}
	body.knc-mobile-accent-minimal #mobile-drawer .mobile-navigation li.current-menu-item > .drawer-nav-drop-wrap,
	body.knc-mobile-accent-minimal #mobile-drawer .mobile-navigation li.current-menu-ancestor > .drawer-nav-drop-wrap,
	body.knc-mobile-accent-minimal .mobile-navigation ul li.current-menu-item > a,
	body.knc-mobile-accent-minimal .mobile-navigation ul li.current-menu-ancestor > a {
		box-shadow: none;
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 5px;
	}
}

/* Dark preset needs explicit readable overlay and form surfaces. */
body.knc-preset-dark input,
body.knc-preset-dark textarea,
body.knc-preset-dark select { color: var(--knc-ink); background: var(--knc-card); border-color: var(--knc-line); }
body.knc-preset-dark .knc-feature-overlay,
body.knc-preset-dark .knc-feature-overlay a { color: var(--knc-hero-title); }
