/*
Theme Name: Nomad
Theme URI:
Author: Nomad Trails
Author URI:
Description: A nomadic map-path inspired WordPress theme with compass navigation, milestone markers and earth-tone aesthetics.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nomad
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
	--nmd-brown: #b45309;
	--nmd-green: #15803d;
	--nmd-sand: #fef3c7;
	--nmd-dark: #1c1917;
	--nmd-bg: #fffbeb;
	--nmd-path: #d97706;
	--nmd-brown-light: #d97706;
	--nmd-text: #292524;
	--nmd-text-muted: #78716c;
	--nmd-border: #e7e5e4;
	--nmd-radius: 6px;
	--nmd-container: 1200px;
	--nmd-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--nmd-font-head: Georgia, "Times New Roman", serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	font-family: var(--nmd-font-body);
	color: var(--nmd-text);
	background: var(--nmd-bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nmd-brown); text-decoration: none; transition: color .2s; }
a:hover { color: var(--nmd-path); }
h1,h2,h3,h4,h5,h6 { font-family: var(--nmd-font-head); color: var(--nmd-dark); line-height: 1.25; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.nmd-container { max-width: var(--nmd-container); margin: 0 auto; padding: 0 24px; }
.nmd-container--narrow { max-width: 860px; }

/* ===== Utility ===== */
.nmd-sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
.nmd-icon { width:20px;height:20px;vertical-align:middle;flex-shrink:0; }

/* ===== Header / Nav ===== */
.nmd-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--nmd-bg);
	border-bottom: 1px solid var(--nmd-border);
	backdrop-filter: blur(8px);
}
.nmd-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 64px; gap: 24px;
}
.nmd-logo { font-family: var(--nmd-font-head); font-size: 1.4rem; font-weight: 700; color: var(--nmd-dark); }
.nmd-logo span { color: var(--nmd-brown); }
.nmd-nav__list { display: flex; align-items: center; gap: 6px; }
.nmd-nav__list a {
	display: block; padding: 8px 14px; border-radius: var(--nmd-radius);
	font-size: .9rem; font-weight: 500; color: var(--nmd-text);
	transition: background .2s, color .2s;
}
.nmd-nav__list a:hover { background: var(--nmd-sand); color: var(--nmd-brown); }
.nmd-header__actions { display: flex; align-items: center; gap: 12px; }

/* ===== Buttons ===== */
.nmd-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 22px; border-radius: var(--nmd-radius); font-size: .9rem; font-weight: 600;
	border: none; cursor: pointer; transition: all .2s; text-decoration: none;
}
.nmd-btn--primary { background: var(--nmd-brown); color: #fff; }
.nmd-btn--primary:hover { background: #92400e; color: #fff; }
.nmd-btn--outline { background: transparent; border: 2px solid var(--nmd-brown); color: var(--nmd-brown); }
.nmd-btn--outline:hover { background: var(--nmd-brown); color: #fff; }
.nmd-btn--ghost { background: transparent; color: var(--nmd-text); padding: 8px 14px; }
.nmd-btn--ghost:hover { color: var(--nmd-brown); background: var(--nmd-sand); }
.nmd-btn--dark { background: var(--nmd-dark); color: #fff; }
.nmd-btn--dark:hover { background: #292524; color: #fff; }

/* ===== Mobile nav ===== */
.nmd-burger { display:none;background:none;border:none;cursor:pointer;padding:8px;color:var(--nmd-dark); }
.nmd-mobile-nav {
	display:none;position:fixed;inset:0;z-index:950;background:var(--nmd-bg);
	flex-direction:column;align-items:center;justify-content:center;gap:16px;
}
.nmd-mobile-nav.is-open { display:flex; }
.nmd-mobile-nav a { font-size:1.3rem;font-family:var(--nmd-font-head);color:var(--nmd-dark);padding:12px 0; }
.nmd-mobile-nav__close { position:absolute;top:20px;right:20px;background:none;border:none;cursor:pointer;color:var(--nmd-dark); }

/* ===== Hero ===== */
.nmd-hero {
	position: relative; overflow: hidden; padding: 100px 0 80px;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(180,83,9,.04) 39px, rgba(180,83,9,.04) 40px),
		repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(180,83,9,.04) 39px, rgba(180,83,9,.04) 40px),
		var(--nmd-bg);
}
.nmd-hero__inner { display:grid; grid-template-columns:1fr 340px; gap:60px; align-items:center; }
.nmd-hero__eyebrow {
	display:inline-flex;align-items:center;gap:8px;
	font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;
	color:var(--nmd-green);margin-bottom:16px;
}
.nmd-hero__eyebrow::before { content:'';width:24px;height:2px;background:var(--nmd-green); }
.nmd-hero__title { font-size:clamp(2.2rem,5vw,3.4rem);margin-bottom:20px; }
.nmd-hero__title em { font-style:normal;color:var(--nmd-brown); }
.nmd-hero__sub { font-size:1.1rem;color:var(--nmd-text-muted);max-width:540px;margin-bottom:32px;line-height:1.8; }
.nmd-hero__ctas { display:flex;flex-wrap:wrap;gap:14px; }
.nmd-hero__compass { position:relative;display:flex;align-items:center;justify-content:center; }
.nmd-hero__compass svg { width:100%;max-width:300px;height:auto;opacity:.85; }

/* ===== Path Features ===== */
.nmd-path-section { padding:80px 0; }
.nmd-path-section__head { text-align:center;margin-bottom:56px; }
.nmd-path-section__head h2 { font-size:2rem;margin-bottom:12px; }
.nmd-path-section__head p { color:var(--nmd-text-muted);max-width:560px;margin:0 auto; }
.nmd-path-track { position:relative;padding-left:48px; }
.nmd-path-track::before {
	content:'';position:absolute;left:18px;top:0;bottom:0;width:2px;
	border-left:2px dashed var(--nmd-path);
}
.nmd-path-node { position:relative;margin-bottom:40px; }
.nmd-path-node:last-child { margin-bottom:0; }
.nmd-path-node__dot {
	position:absolute;left:-38px;top:6px;width:14px;height:14px;border-radius:50%;
	background:var(--nmd-bg);border:3px solid var(--nmd-path);
	transition:transform .3s,box-shadow .3s;
}
.nmd-path-node.is-visible .nmd-path-node__dot {
	transform:scale(1.4);box-shadow:0 0 0 6px rgba(217,119,6,.15);
}
.nmd-path-node__card {
	background:#fff;border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);
	padding:24px 28px;box-shadow:0 2px 8px rgba(0,0,0,.03);transition:box-shadow .3s;
}
.nmd-path-node__card:hover { box-shadow:0 6px 20px rgba(0,0,0,.06); }
.nmd-path-node__tag {
	display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;
	letter-spacing:.06em;padding:3px 10px;border-radius:3px;margin-bottom:10px;
	background:var(--nmd-sand);color:var(--nmd-brown);
}
.nmd-path-node__card h3 { font-size:1.15rem;margin-bottom:8px; }
.nmd-path-node__card p { font-size:.92rem;color:var(--nmd-text-muted);line-height:1.7; }

/* ===== Milestone (dark section) ===== */
.nmd-milestone { background:var(--nmd-dark);padding:80px 0;position:relative;overflow:hidden; }
.nmd-milestone::before {
	content:'';position:absolute;top:50%;left:0;right:0;height:2px;
	background:repeating-linear-gradient(90deg,var(--nmd-path) 0,var(--nmd-path) 12px,transparent 12px,transparent 24px);
	opacity:.4;
}
.nmd-milestone__head { text-align:center;margin-bottom:48px;position:relative; }
.nmd-milestone__head h2 { color:#fff;font-size:2rem;margin-bottom:10px; }
.nmd-milestone__head p { color:#a8a29e; }
.nmd-milestone__row { display:grid;grid-template-columns:repeat(3,1fr);gap:32px;position:relative; }
.nmd-milestone__item { text-align:center; }
.nmd-milestone__flag { display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:rgba(217,119,6,.15);margin-bottom:16px; }
.nmd-milestone__flag .nmd-icon { color:var(--nmd-path);width:24px;height:24px; }
.nmd-milestone__val { font-size:2.2rem;font-weight:700;color:#fff;font-family:var(--nmd-font-head);margin-bottom:4px; }
.nmd-milestone__label { font-size:.85rem;color:#a8a29e; }

/* ===== Product cards ===== */
.nmd-products { padding:80px 0; }
.nmd-products__head { text-align:center;margin-bottom:48px; }
.nmd-products__head h2 { font-size:2rem;margin-bottom:10px; }
.nmd-products__grid { display:grid;grid-template-columns:repeat(2,1fr);gap:28px; }
.nmd-product-card {
	position:relative;background:#fff;border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);
	padding:32px 28px;overflow:hidden;transition:box-shadow .3s,transform .3s;
}
.nmd-product-card:hover { box-shadow:0 8px 28px rgba(0,0,0,.07);transform:translateY(-2px); }
.nmd-product-card__pin {
	position:absolute;top:16px;right:16px;width:28px;height:28px;border-radius:50%;
	background:var(--nmd-sand);display:flex;align-items:center;justify-content:center;
}
.nmd-product-card__pin .nmd-icon { width:14px;height:14px;color:var(--nmd-brown); }
.nmd-product-card__region {
	display:inline-block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;
	color:var(--nmd-green);margin-bottom:10px;padding:3px 8px;background:rgba(21,128,61,.07);border-radius:3px;
}
.nmd-product-card h3 { font-size:1.2rem;margin-bottom:10px; }
.nmd-product-card p { font-size:.9rem;color:var(--nmd-text-muted);margin-bottom:16px;line-height:1.7; }
.nmd-product-card__list { margin-bottom:20px; }
.nmd-product-card__list li { position:relative;padding-left:20px;font-size:.88rem;margin-bottom:6px;color:var(--nmd-text); }
.nmd-product-card__list li::before { content:'';position:absolute;left:0;top:8px;width:8px;height:8px;border-radius:50%;background:var(--nmd-sand);border:2px solid var(--nmd-path); }

/* ===== Post cards (article journey) ===== */
.nmd-posts { padding:80px 0;background:#fff; }
.nmd-posts__head { text-align:center;margin-bottom:48px; }
.nmd-posts__head h2 { font-size:2rem;margin-bottom:10px; }
.nmd-posts__head p { color:var(--nmd-text-muted); }
.nmd-posts__grid { display:grid;grid-template-columns:repeat(3,1fr);gap:24px; }
.nmd-postcard {
	background:var(--nmd-bg);border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);
	overflow:hidden;transition:box-shadow .3s,transform .3s;
}
.nmd-postcard:hover { box-shadow:0 6px 20px rgba(0,0,0,.06);transform:translateY(-3px); }
.nmd-postcard__coord {
	padding:10px 16px 0;font-size:.68rem;color:var(--nmd-text-muted);letter-spacing:.05em;
	font-family:monospace;
}
.nmd-postcard__thumb { position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--nmd-sand); }
.nmd-postcard__thumb img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.nmd-postcard:hover .nmd-postcard__thumb img { transform:scale(1.04); }
.nmd-postcard__pin {
	position:absolute;top:10px;left:10px;width:26px;height:26px;border-radius:50%;
	background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;
	box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.nmd-postcard__pin .nmd-icon { width:13px;height:13px;color:var(--nmd-brown); }
.nmd-postcard__body { padding:18px 16px 20px; }
.nmd-postcard__cat { font-size:.72rem;font-weight:600;text-transform:uppercase;color:var(--nmd-green);letter-spacing:.04em;margin-bottom:6px; }
.nmd-postcard__title { font-size:1rem;margin-bottom:8px;line-height:1.4; }
.nmd-postcard__title a { color:var(--nmd-dark); }
.nmd-postcard__title a:hover { color:var(--nmd-brown); }
.nmd-postcard__excerpt { font-size:.85rem;color:var(--nmd-text-muted);margin-bottom:12px;line-height:1.6; }
.nmd-postcard__meta { display:flex;align-items:center;gap:12px;font-size:.78rem;color:var(--nmd-text-muted); }
.nmd-postcard__author {
	display:inline-flex;align-items:center;justify-content:center;
	width:24px;height:24px;border-radius:50%;background:var(--nmd-sand);
	font-size:.65rem;font-weight:700;color:var(--nmd-brown);
}

/* ===== FAQ path ===== */
.nmd-faq { padding:80px 0; }
.nmd-faq__head { text-align:center;margin-bottom:48px; }
.nmd-faq__head h2 { font-size:2rem;margin-bottom:10px; }
.nmd-faq-track { position:relative;padding-left:48px;max-width:760px;margin:0 auto; }
.nmd-faq-track::before {
	content:'';position:absolute;left:18px;top:0;bottom:0;width:2px;
	border-left:2px dashed var(--nmd-path);opacity:.5;
}
.nmd-faq-item { position:relative;margin-bottom:20px; }
.nmd-faq-item:last-child { margin-bottom:0; }
.nmd-faq-item__dot {
	position:absolute;left:-38px;top:18px;width:12px;height:12px;border-radius:50%;
	background:var(--nmd-bg);border:3px solid var(--nmd-path);
}
.nmd-faq-item__q {
	width:100%;background:#fff;border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);
	padding:18px 48px 18px 22px;font-size:1rem;font-weight:600;text-align:left;
	cursor:pointer;position:relative;color:var(--nmd-dark);font-family:var(--nmd-font-head);
	transition:border-color .2s;
}
.nmd-faq-item__q:hover { border-color:var(--nmd-path); }
.nmd-faq-item__q::after {
	content:'';position:absolute;right:20px;top:50%;transform:translateY(-50%);
	width:8px;height:8px;border-right:2px solid var(--nmd-text-muted);border-bottom:2px solid var(--nmd-text-muted);
	transform:translateY(-50%) rotate(45deg);transition:transform .3s;
}
.nmd-faq-item.is-open .nmd-faq-item__q::after { transform:translateY(-50%) rotate(-135deg); }
.nmd-faq-item__a {
	max-height:0;overflow:hidden;transition:max-height .4s ease,padding .3s;
	padding:0 22px;font-size:.92rem;color:var(--nmd-text-muted);line-height:1.8;
	background:#fff;border:1px solid transparent;border-top:none;border-radius:0 0 var(--nmd-radius) var(--nmd-radius);
}
.nmd-faq-item.is-open .nmd-faq-item__a { max-height:400px;padding:16px 22px 20px;border-color:var(--nmd-border); }

/* ===== CTA band ===== */
.nmd-cta-band { padding:80px 0;background:var(--nmd-brown);text-align:center;position:relative;overflow:hidden; }
.nmd-cta-band::before {
	content:'';position:absolute;inset:0;
	background:repeating-linear-gradient(45deg,transparent,transparent 20px,rgba(255,255,255,.03) 20px,rgba(255,255,255,.03) 40px);
}
.nmd-cta-band h2 { color:#fff;font-size:2rem;margin-bottom:14px;position:relative; }
.nmd-cta-band p { color:rgba(255,255,255,.85);margin-bottom:32px;font-size:1.05rem;position:relative; }
.nmd-cta-band .nmd-btn { position:relative; }
.nmd-cta-band__btns { display:flex;justify-content:center;gap:16px;flex-wrap:wrap;position:relative; }

/* ===== Footer ===== */
.nmd-footer { background:var(--nmd-dark);padding:64px 0 0;color:#d6d3d1; }
.nmd-footer__grid { display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-bottom:48px; }
.nmd-footer__col { position:relative;padding-top:32px; }
.nmd-footer__pin {
	position:absolute;top:0;left:0;width:24px;height:24px;border-radius:50%;
	background:rgba(217,119,6,.15);display:flex;align-items:center;justify-content:center;
}
.nmd-footer__pin .nmd-icon { width:12px;height:12px;color:var(--nmd-path); }
.nmd-footer__col h4 { font-size:.9rem;font-weight:600;color:#fff;margin-bottom:14px;padding-left:34px; }
.nmd-footer__col ul { padding-left:34px; }
.nmd-footer__col li { margin-bottom:8px; }
.nmd-footer__col a { font-size:.85rem;color:#a8a29e;transition:color .2s; }
.nmd-footer__col a:hover { color:var(--nmd-path); }
.nmd-footer__bottom {
	border-top:1px solid rgba(255,255,255,.08);padding:20px 0;text-align:center;
	font-size:.8rem;color:#78716c;
}
.nmd-footer__risk { max-width:700px;margin:0 auto 10px;font-size:.78rem;color:#78716c;line-height:1.6; }

/* ===== Compass FAB ===== */
.nmd-compass-fab {
	position:fixed;bottom:32px;right:32px;width:56px;height:56px;border-radius:50%;
	background:var(--nmd-brown);box-shadow:0 4px 16px rgba(0,0,0,.2);z-index:1000;
	display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;
	transition:transform .3s,background .3s;
}
.nmd-compass-fab:hover { transform:scale(1.08);background:#92400e; }
.nmd-compass-fab .nmd-icon { width:26px;height:26px;color:#fff; }
.nmd-compass-fab.is-open { transform:rotate(45deg); }
.nmd-compass-menu {
	position:fixed;bottom:100px;right:24px;z-index:999;
	display:flex;flex-direction:column;align-items:flex-end;gap:10px;
	opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .3s,transform .3s;
}
.nmd-compass-menu.is-open { opacity:1;pointer-events:auto;transform:translateY(0); }
.nmd-compass-menu__item {
	display:flex;align-items:center;gap:10px;padding:10px 18px;border-radius:var(--nmd-radius);
	background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.1);font-size:.88rem;font-weight:500;
	color:var(--nmd-dark);white-space:nowrap;transition:background .2s,color .2s;text-decoration:none;
}
.nmd-compass-menu__item:hover { background:var(--nmd-sand);color:var(--nmd-brown); }
.nmd-compass-menu__item .nmd-icon { width:16px;height:16px;color:var(--nmd-brown); }

/* ===== Breadcrumb ===== */
.nmd-crumb-bar { background:var(--nmd-sand);border-bottom:1px solid var(--nmd-border);padding:12px 0; }
.nmd-crumb { display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:.82rem;color:var(--nmd-text-muted); }
.nmd-crumb a { color:var(--nmd-text-muted); }
.nmd-crumb a:hover { color:var(--nmd-brown); }
.nmd-crumb__sep { color:var(--nmd-path);margin:0 2px; }
.nmd-crumb__current { color:var(--nmd-dark);font-weight:500; }

/* ===== Page head banner ===== */
.nmd-pagehead { padding:48px 0 40px;background:var(--nmd-bg);border-bottom:1px solid var(--nmd-border);position:relative;overflow:hidden; }
.nmd-pagehead::before {
	content:'';position:absolute;inset:0;
	background:repeating-linear-gradient(0deg,transparent,transparent 39px,rgba(180,83,9,.03) 39px,rgba(180,83,9,.03) 40px),
		repeating-linear-gradient(90deg,transparent,transparent 39px,rgba(180,83,9,.03) 39px,rgba(180,83,9,.03) 40px);
}
.nmd-pagehead h1 { font-size:1.8rem;position:relative;margin-bottom:8px; }
.nmd-pagehead p { color:var(--nmd-text-muted);position:relative;font-size:.95rem; }

/* ===== Single / Page content ===== */
.nmd-single { padding:56px 0 80px; }
.nmd-single__layout { display:grid;grid-template-columns:1fr 300px;gap:48px;align-items:start; }
.nmd-entry { position:relative;padding-left:40px; }
.nmd-entry::before {
	content:'';position:absolute;left:14px;top:0;bottom:0;width:2px;
	border-left:2px dashed var(--nmd-path);opacity:.35;
}
.nmd-entry h2 { position:relative;margin:40px 0 16px;font-size:1.5rem;padding-left:20px; }
.nmd-entry h2::before {
	content:'';position:absolute;left:-33px;top:8px;width:12px;height:12px;border-radius:50%;
	background:var(--nmd-bg);border:3px solid var(--nmd-path);
}
.nmd-entry h2:first-child { margin-top:0; }
.nmd-entry h3 { margin:28px 0 12px;font-size:1.2rem; }
.nmd-entry p { margin-bottom:16px;line-height:1.85; }
.nmd-entry ul,.nmd-entry ol { margin:0 0 16px 20px; }
.nmd-entry li { margin-bottom:6px;line-height:1.7; }
.nmd-entry ul li { list-style:disc; }
.nmd-entry ol li { list-style:decimal; }
.nmd-entry blockquote {
	border-left:3px solid var(--nmd-path);padding:16px 20px;margin:24px 0;
	background:var(--nmd-sand);border-radius:0 var(--nmd-radius) var(--nmd-radius) 0;
	font-style:italic;color:var(--nmd-text-muted);
}
.nmd-entry img { border-radius:var(--nmd-radius);margin:20px 0; }
.nmd-entry a { text-decoration:underline;text-underline-offset:2px; }

/* Sidebar / TOC */
.nmd-sidebar { position:sticky;top:80px; }
.nmd-toc { background:#fff;border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);padding:20px;margin-bottom:24px; }
.nmd-toc__title { font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--nmd-text-muted);margin-bottom:12px; }
.nmd-toc__list a { display:block;padding:5px 0;font-size:.85rem;color:var(--nmd-text-muted);border-left:2px solid transparent;padding-left:10px; }
.nmd-toc__list a:hover,.nmd-toc__list a.is-active { color:var(--nmd-brown);border-left-color:var(--nmd-brown); }
.nmd-meta-box { background:#fff;border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);padding:20px; }
.nmd-meta-box__row { display:flex;justify-content:space-between;font-size:.84rem;padding:6px 0;border-bottom:1px solid var(--nmd-border); }
.nmd-meta-box__row:last-child { border-bottom:none; }
.nmd-meta-box__label { color:var(--nmd-text-muted); }

/* ===== Archive / Index ===== */
.nmd-archive { padding:48px 0 80px; }
.nmd-archive__grid { display:grid;grid-template-columns:repeat(3,1fr);gap:24px; }
.nmd-pagination { display:flex;justify-content:center;gap:8px;margin-top:48px; }
.nmd-pagination a,.nmd-pagination span {
	display:inline-flex;align-items:center;justify-content:center;
	width:36px;height:36px;border-radius:var(--nmd-radius);font-size:.85rem;font-weight:500;
	border:1px solid var(--nmd-border);color:var(--nmd-text);background:#fff;transition:all .2s;
}
.nmd-pagination a:hover { border-color:var(--nmd-brown);color:var(--nmd-brown); }
.nmd-pagination .current { background:var(--nmd-brown);color:#fff;border-color:var(--nmd-brown); }

/* ===== Search ===== */
.nmd-search-form { display:flex;gap:8px;max-width:480px; }
.nmd-search-form input[type="search"] {
	flex:1;padding:10px 16px;border:1px solid var(--nmd-border);border-radius:var(--nmd-radius);
	font-size:.9rem;background:#fff;outline:none;transition:border-color .2s;
}
.nmd-search-form input[type="search"]:focus { border-color:var(--nmd-brown); }

/* ===== 404 ===== */
.nmd-404 { padding:120px 0;text-align:center; }
.nmd-404 h1 { font-size:4rem;color:var(--nmd-path);margin-bottom:16px;font-family:var(--nmd-font-head); }
.nmd-404 p { color:var(--nmd-text-muted);margin-bottom:32px;font-size:1.05rem; }

/* ===== Language switcher ===== */
.nmd-langswitch { display:flex;gap:4px; }
.nmd-langswitch__pill {
	padding:4px 10px;border-radius:3px;font-size:.78rem;font-weight:600;
	color:var(--nmd-text-muted);transition:all .2s;
}
.nmd-langswitch__pill:hover { color:var(--nmd-brown);background:var(--nmd-sand); }
.nmd-langswitch__pill.active { color:#fff;background:var(--nmd-brown); }

/* ===== Section eyebrows ===== */
.nmd-eyebrow {
	display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:600;
	text-transform:uppercase;letter-spacing:.07em;color:var(--nmd-brown);margin-bottom:12px;
}
.nmd-eyebrow::before { content:'';width:20px;height:2px;background:var(--nmd-path);border-radius:1px; }

/* ===== Post nav (prev/next) ===== */
.nmd-postnav { display:flex;justify-content:space-between;gap:20px;margin-top:48px;padding-top:32px;border-top:1px solid var(--nmd-border); }
.nmd-postnav a { display:flex;align-items:center;gap:8px;font-size:.88rem;font-weight:500;color:var(--nmd-text-muted); }
.nmd-postnav a:hover { color:var(--nmd-brown); }

/* ===== Comments ===== */
.nmd-comments { margin-top:48px;padding-top:32px;border-top:1px solid var(--nmd-border); }
.nmd-comments h3 { font-size:1.2rem;margin-bottom:20px; }

/* ===== Reveal animation ===== */
.nmd-reveal { opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease; }
.nmd-reveal.is-visible { opacity:1;transform:translateY(0); }

/* ===== RESPONSIVE — must stay at end ===== */
@media (max-width:1024px) {
	.nmd-hero__inner { grid-template-columns:1fr;gap:40px; }
	.nmd-hero__compass { display:none; }
	.nmd-single__layout { grid-template-columns:1fr; }
	.nmd-sidebar { position:static; }
	.nmd-posts__grid { grid-template-columns:repeat(2,1fr); }
	.nmd-archive__grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
	.nmd-nav__list { display:none; }
	.nmd-burger { display:block; }
	.nmd-header__actions .nmd-btn--primary { display:none; }
	.nmd-hero { padding:60px 0 50px; }
	.nmd-hero__title { font-size:1.8rem; }
	.nmd-milestone__row { grid-template-columns:1fr;gap:24px; }
	.nmd-products__grid { grid-template-columns:1fr; }
	.nmd-posts__grid { grid-template-columns:1fr; }
	.nmd-footer__grid { grid-template-columns:1fr;gap:28px; }
	.nmd-archive__grid { grid-template-columns:1fr; }
	.nmd-cta-band { padding:56px 0; }
	.nmd-pagehead h1 { font-size:1.4rem; }
	.nmd-compass-fab { bottom:20px;right:20px;width:48px;height:48px; }
	.nmd-compass-menu { bottom:80px;right:16px; }
}
@media (max-width:480px) {
	.nmd-container { padding:0 16px; }
	.nmd-hero__ctas { flex-direction:column; }
	.nmd-postnav { flex-direction:column; }
	.nmd-path-track { padding-left:36px; }
	.nmd-entry { padding-left:28px; }
}

/* QODER page banner strip */
.nmd-page-banner{width:100%;margin:0 0 24px;overflow:hidden;border-radius:12px;}
.nmd-page-banner img{display:block;width:100%;height:clamp(180px,30vw,360px);object-fit:cover;}
