/* ==========================================================================
   NEXTGEN MANUFACTURER — PARENT THEME BASE
   --------------------------------------------------------------------------
   Brand-neutral scaffold: tokens (fallbacks — see ngm_theme_base_tokens),
   reset, layout, default chrome, content, forms.
   Child themes load their layer after this file and override freely.
   ========================================================================== */

:root {
	--ngm-bg: #f7f4ef;
	--ngm-surface: #ffffff;
	--ngm-ink: #14181f;
	--ngm-ink-dim: #5c6470;
	--ngm-border: rgba(20,24,31,.12);
	--ngm-accent: #267997;
	--ngm-wrap: 1240px;
	--ngm-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ngm-mono: ui-monospace, "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ngm-bg);
	color: var(--ngm-ink);
	font-family: var(--ngm-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--ngm-accent); }

.ngm-wrap { max-width: var(--ngm-wrap); margin: 0 auto; padding: 0 28px; }
.ngm-site { display: flex; flex-direction: column; min-height: 100vh; }
.ngm-main { flex: 1 1 auto; }

.ngm-skip {
	position: absolute; left: 16px; top: -52px; z-index: 200;
	background: var(--ngm-ink); color: #fff; padding: 10px 16px;
	border-radius: 3px; text-decoration: none; transition: top .2s ease;
}
.ngm-skip:focus { top: 12px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap;
}

/* ── default chrome ── */
.ngm-header {
	background: var(--ngm-surface);
	border-bottom: 1px solid var(--ngm-border);
	position: sticky; top: 0; z-index: 40;
}
.ngm-header__inner { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.ngm-brand { flex: none; }
.ngm-brand__name { font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.ngm-nav { margin-left: auto; }
.ngm-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.ngm-menu a {
	display: inline-block; padding: 10px 12px; text-decoration: none;
	font-size: 13.5px; font-weight: 500;
}
.ngm-menu .sub-menu {
	position: absolute; min-width: 200px; background: var(--ngm-surface);
	border: 1px solid var(--ngm-border); border-radius: 6px; padding: 8px;
	list-style: none; margin: 6px 0 0; box-shadow: 0 20px 40px -20px rgba(20,24,31,.28);
	display: none; z-index: 50;
}
.ngm-menu li { position: relative; }
.ngm-menu li:hover > .sub-menu,
.ngm-menu li:focus-within > .sub-menu { display: block; }
.ngm-burger {
	display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ngm-border);
	background: none; border-radius: 50%; cursor: pointer; padding: 0;
	align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.ngm-burger span { display: block; width: 16px; height: 2px; background: var(--ngm-ink); }

.ngm-footer { background: var(--ngm-ink); color: #f7f4ef; margin-top: 64px; }
.ngm-footer__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.ngm-menu--footer { gap: 14px; }
.ngm-menu--footer a { color: rgba(247,244,239,.8); padding: 6px 0; }
.ngm-menu--footer a:hover { color: #fff; }
.ngm-footer__note { margin: 0; font-size: 12.5px; color: rgba(247,244,239,.6); }

/* ── content ── */
.ngm-content { padding: 48px 28px 24px; }
.ngm-content--center { text-align: center; }
.ngm-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 12px; }
.ngm-kicker { font-family: var(--ngm-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ngm-accent); margin: 0 0 8px; }
.ngm-lede { color: var(--ngm-ink-dim); max-width: 60ch; margin: 0 0 20px; }
.ngm-entry__body > * + * { margin-top: 1em; }
.ngm-entry__body h2 { font-size: 24px; margin-top: 1.4em; }
.ngm-entry__body h3 { font-size: 19px; margin-top: 1.2em; }
.ngm-entry__body blockquote { border-left: 3px solid var(--ngm-accent); margin: 1.2em 0; padding: 4px 0 4px 18px; color: var(--ngm-ink-dim); }
.ngm-entry__meta { font-family: var(--ngm-mono); font-size: 11px; letter-spacing: .06em; color: var(--ngm-ink-dim); }

.ngm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 26px 0; }
.ngm-card { background: var(--ngm-surface); border: 1px solid var(--ngm-border); border-radius: 10px; overflow: hidden; }
.ngm-card__media { display: block; }
.ngm-card__media img { display: block; width: 100%; }
.ngm-card__title { font-size: 17px; margin: 14px 16px 6px; }
.ngm-card__title a { text-decoration: none; }
.ngm-card__meta { margin: 0 16px 8px; font-family: var(--ngm-mono); font-size: 10.5px; color: var(--ngm-ink-dim); }
.ngm-card__excerpt { margin: 0 16px 16px; font-size: 14px; color: var(--ngm-ink-dim); }
.ngm-empty { color: var(--ngm-ink-dim); }

/* ── forms & buttons ── */
.ngm-btn, button.ngm-btn, input[type="submit"] {
	display: inline-block; background: var(--ngm-accent); color: #fff; border: 0;
	border-radius: 3px; padding: 11px 18px; font-size: 13.5px; font-weight: 600;
	cursor: pointer; text-decoration: none;
}
.ngm-btn:hover { filter: brightness(1.06); color: #fff; }
.ngm-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.ngm-search__input {
	flex: 1 1 260px; padding: 11px 14px; border: 1px solid var(--ngm-border);
	border-radius: 3px; background: var(--ngm-surface); color: var(--ngm-ink); font-size: 14px;
}
.ngm-search__input:focus { outline: 2px solid var(--ngm-accent); outline-offset: 1px; }
.pagination, .navigation.pagination { margin: 26px 0; }
.pagination .page-numbers { display: inline-block; padding: 7px 12px; border: 1px solid var(--ngm-border); border-radius: 3px; margin-right: 6px; text-decoration: none; }
.pagination .page-numbers.current { background: var(--ngm-ink); color: #fff; border-color: var(--ngm-ink); }

/* ── responsive ── */
@media (max-width: 900px) {
	.ngm-burger { display: inline-flex; }
	.ngm-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--ngm-surface); border-bottom: 1px solid var(--ngm-border);
		padding: 10px 20px 18px;
	}
	body.ngm-nav-open .ngm-nav { display: block; }
	.ngm-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ngm-menu a { padding: 13px 4px; border-bottom: 1px solid var(--ngm-border); }
	.ngm-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px 14px; margin: 0; }
	.ngm-header__inner { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
