/*!
 * Naija Money Guide News — main.css
 * Core layout and component styles. Mobile-first, desktop overrides
 * live in responsive.css. Dark mode overrides live in dark-mode.css.
 */

/* ============ COLOR & LAYOUT VARIABLES ============
 * The authoritative source of truth for these custom properties — this
 * file is always enqueued on every page, unlike style.css (which WordPress
 * only reads for theme metadata and does not load on the front end unless
 * separately enqueued). Keeping the definitions here guarantees every
 * var(--nmg-*) reference across main.css, responsive.css and dark-mode.css
 * always resolves to a real value.
 */
:root {
	--nmg-green: #0b5e3e;
	--nmg-green-dark: #08432c;
	--nmg-white: #ffffff;
	--nmg-black: #12141a;
	--nmg-gray-100: #f6f7f8;
	--nmg-gray-200: #eceef0;
	--nmg-gray-400: #c7ccd1;
	--nmg-gray-600: #6b7280;
	--nmg-gray-800: #2b2f36;
	--nmg-accent: #d4a017;
	--nmg-border: #e3e6e8;
	--nmg-radius: 6px;
	--nmg-header-height: 76px;
	--nmg-header-height-mobile: 56px;
	--nmg-drawer-width: min(86vw, 390px);
	--nmg-transition: 220ms ease;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nmg-black);
	background: var(--nmg-white);
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.nmg-skip-link {
	position: absolute; left: 8px; top: -60px;
	background: var(--nmg-green); color: #fff;
	padding: 10px 16px; border-radius: var(--nmg-radius);
	z-index: 10000; transition: top var(--nmg-transition);
}
.nmg-skip-link:focus { top: 8px; }

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

/* ============ HEADER ============ */
.nmg-site-header {
	position: relative;
	border-bottom: 1px solid var(--nmg-border);
	z-index: 900;
}
.nmg-site-header.is-sticky {
	position: sticky;
	top: 0;
}
.nmg-mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nmg-header-height-mobile);
	padding: 0 14px;
}
.nmg-mobile-header-right { display: flex; align-items: center; gap: 4px; }
.nmg-desktop-header { display: none; }

.nmg-logo-link { display: inline-flex; align-items: center; }
.nmg-logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--nmg-green); }
.nmg-logo-link img { max-height: 100%; width: auto; }

.nmg-icon-btn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: none; border-radius: 50%;
	color: inherit;
}
.nmg-icon-btn:hover { background: var(--nmg-gray-100); }
.nmg-icon-search::before { content: "\1F50D"; }
.nmg-icon-moon::before { content: "\263D"; }
.nmg-icon-hamburger { position: relative; width: 20px; height: 14px; display: inline-block; }
.nmg-icon-hamburger::before, .nmg-icon-hamburger::after, .nmg-icon-hamburger {
	background: currentColor;
}
.nmg-icon-hamburger { background: none; }
.nmg-icon-hamburger::before, .nmg-icon-hamburger::after {
	content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nmg-icon-hamburger::before { top: 0; box-shadow: 0 6px 0 currentColor; }
.nmg-icon-hamburger::after { bottom: 0; }
.nmg-icon-home::before { content: "\2302"; }
.nmg-icon-categories::before { content: "\2261"; }
.nmg-icon-svg { display: inline-flex; width: 22px; height: 22px; }
.nmg-icon-svg svg { width: 100%; height: 100%; display: block; }

/* ============ MOBILE DRAWER ============ */
.nmg-mobile-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 1000;
}
.nmg-mobile-drawer {
	position: fixed;
	top: 0; bottom: 0;
	width: var(--nmg-drawer-width);
	max-width: 92vw;
	background: var(--nmg-white);
	z-index: 1001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform var(--nmg-transition);
	box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.nmg-mobile-drawer.nmg-drawer-full { max-width: 100vw; box-shadow: none; }
.nmg-mobile-drawer.nmg-drawer-left {
	left: 0; right: auto;
	transform: translateX(-100%);
	box-shadow: 8px 0 24px rgba(0,0,0,0.15);
}
.nmg-mobile-drawer.nmg-drawer-right { right: 0; }
.nmg-mobile-drawer.is-open { transform: translateX(0); }

.nmg-drawer-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid var(--nmg-border);
}
.nmg-drawer-close { background: none; border: none; font-size: 1.5rem; width: 44px; height: 44px; color: var(--nmg-drawer-text-color, inherit) !important; }
.nmg-drawer-search { padding: 12px 20px; border-bottom: 1px solid var(--nmg-border); }
.nmg-drawer-search-input {
	width: 100%; padding: 10px 12px; border: 1px solid var(--nmg-border);
	border-radius: var(--nmg-radius); font-size: 1rem;
}
.nmg-drawer-nav { flex: 1; overflow-y: auto; }
.nmg-mobile-menu-item { border-bottom: 1px solid rgba(128,128,128,0.25); }
.nmg-mobile-menu-link {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; padding: 18px 20px 18px 32px; min-height: 44px;
	background: none; border: none; text-align: left;
	font-size: 1.3rem; font-weight: 700;
	color: var(--nmg-drawer-text-color, inherit) !important;
}
.nmg-chevron { font-size: 1.2rem; color: var(--nmg-drawer-text-color, inherit) !important; opacity: 0.7; }
.nmg-drawer-footer { padding: 16px; border-top: 1px solid var(--nmg-border); }
.nmg-drawer-whatsapp-cta, .nmg-article-whatsapp-cta a {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	text-align: center; padding: 12px 16px;
	background: #25D366; color: #fff; border-radius: var(--nmg-radius); font-weight: 600;
}
.nmg-drawer-whatsapp-cta .nmg-whatsapp-icon,
.nmg-article-whatsapp-cta .nmg-whatsapp-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ============ MOBILE CATEGORY PANEL ============ */
.nmg-mobile-category-panel {
	position: fixed; top: 0; bottom: 0;
	right: 0;
	width: var(--nmg-drawer-width);
	max-width: 92vw;
	background: var(--nmg-white);
	z-index: 1002;
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform var(--nmg-transition);
}
.nmg-mobile-category-panel.nmg-drawer-full { max-width: 100vw; }
.nmg-mobile-category-panel.is-open { transform: translateX(0); }
.nmg-category-panel-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid rgba(128,128,128,0.25);
}
.nmg-category-panel-back {
	background: none; border: none; display: flex; align-items: center; gap: 4px;
	font-size: 1.1rem; font-weight: 700; min-height: 44px;
	color: var(--nmg-drawer-text-color, inherit) !important;
}
.nmg-category-panel-close { background: none; border: none; font-size: 1.5rem; width: 44px; height: 44px; color: var(--nmg-drawer-text-color, inherit) !important; }
.nmg-category-panel-body { flex: 1; overflow-y: auto; }
.nmg-category-panel-body a, .nmg-category-panel-body button {
	display: block; width: 100%; text-align: left; padding: 18px 20px 18px 32px; min-height: 44px;
	border-bottom: 1px solid rgba(128,128,128,0.25); background: none; border-left: none; border-right: none; border-top: none;
	color: var(--nmg-drawer-text-color, inherit) !important; font-size: 1.3rem; font-weight: 700;
}

/* ============ MOBILE BOTTOM NAV ============ */
.nmg-mobile-bottom-nav {
	position: fixed; bottom: 0; left: 0; right: 0;
	display: flex;
	background: var(--nmg-white);
	border-top: 1px solid var(--nmg-border);
	z-index: 800;
	padding-bottom: env(safe-area-inset-bottom);
}
.nmg-bottom-nav-item {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; padding: 8px 2px; min-height: 56px; background: none; border: none;
	font-size: 0.7rem; color: inherit; text-align: center; line-height: 1.15;
}
/* ============ SEARCH OVERLAY ============ */
.nmg-search-overlay {
	position: fixed; inset: 0; background: rgba(255,255,255,0.98);
	z-index: 1100; padding: 20px; overflow-y: auto;
}
.nmg-search-overlay-inner { max-width: 640px; margin: 40px auto 0; position: relative; }
.nmg-search-close { position: absolute; right: 0; top: -8px; font-size: 2rem; background: none; border: none; }
.nmg-search-input {
	width: 100%; padding: 14px 16px; font-size: 1.1rem;
	border: 2px solid var(--nmg-green); border-radius: var(--nmg-radius);
}
.nmg-search-results { margin-top: 16px; }
.nmg-search-result-item {
	display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nmg-border);
}
.nmg-search-result-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }

/* ============ BREAKING NEWS ============ */
.nmg-breaking-news {
	display: flex; align-items: center; gap: 12px;
	background: var(--nmg-green-dark); color: #fff;
	padding: 8px 14px; overflow: hidden;
}
.nmg-breaking-label {
	background: var(--nmg-accent); color: #12141a; font-weight: 800;
	font-size: 0.75rem; padding: 3px 8px; border-radius: 3px; flex-shrink: 0;
}
.nmg-breaking-track { overflow: hidden; flex: 1; }
.nmg-breaking-list { display: flex; gap: 40px; white-space: nowrap; animation: nmg-ticker var(--nmg-ticker-speed) linear infinite; }
.nmg-breaking-list a { color: #fff; font-size: 0.9rem; }
@keyframes nmg-ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ============ NEWS CARDS ============ */
.nmg-news-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.nmg-news-card { display: flex; flex-direction: column; }
.nmg-news-card-media { position: relative; display: block; overflow: hidden; border-radius: var(--nmg-radius); background: var(--nmg-gray-100); }
.nmg-news-card-media img { width: 100%; height: auto; display: block; }
.nmg-news-card-body { padding-top: 10px; }
.nmg-news-card-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--nmg-green); letter-spacing: 0.03em; }
.nmg-news-card-title { font-size: 1.05rem; margin: 6px 0; }
.nmg-news-card-excerpt { color: var(--nmg-gray-600); font-size: 0.9rem; margin: 4px 0; }
.nmg-news-card-meta { font-size: 0.78rem; color: var(--nmg-gray-600); }
.nmg-dot { margin: 0 4px; }

.nmg-badge {
	position: absolute; top: 10px; left: 10px;
	font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
	padding: 3px 8px; border-radius: 3px; color: #fff;
}
.nmg-badge-breaking { background: #b32d2e; }
.nmg-badge-featured { background: var(--nmg-accent); color: #12141a; }
.nmg-badge-analysis { background: #2a5aa0; }
.nmg-badge-guide { background: var(--nmg-green); }
.nmg-badge-opinion { background: #6b4fa0; }

/* ============ SECTION HEADERS ============ */
.nmg-section-title { font-size: 1.35rem; }
.nmg-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.nmg-view-all { font-size: 0.85rem; font-weight: 600; color: var(--nmg-green); white-space: nowrap; }

/* ============ HOMEPAGE ============ */
.nmg-homepage { padding: 16px; max-width: 1280px; margin: 0 auto; }
.nmg-homepage-layout { display: block; }
.nmg-homepage-main > * { margin-bottom: 40px; }
.nmg-homepage-sidebar > *,
.nmg-article-sidebar > *,
.nmg-archive-sidebar > * { margin-bottom: 24px; }
.nmg-homepage-sidebar > *:last-child,
.nmg-article-sidebar > *:last-child,
.nmg-archive-sidebar > *:last-child { margin-bottom: 0; }
.nmg-article-sidebar, .nmg-archive-sidebar, .nmg-homepage-sidebar { max-width: 100%; overflow-x: hidden; }

/* HERO */
.nmg-hero { margin-bottom: 32px; }
.nmg-hero-main { margin-bottom: 16px; }
.nmg-hero-media { position: relative; display: block; border-radius: var(--nmg-radius); overflow: hidden; background: var(--nmg-gray-100); }
.nmg-hero-media img { width: 100%; height: auto; display: block; }
.nmg-hero-cat { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--nmg-green); }
.nmg-hero-title { font-size: 1.6rem; margin: 8px 0; }
.nmg-hero-excerpt { color: var(--nmg-gray-600); }
.nmg-hero-secondary { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* TRENDING */
.nmg-trending-list { display: flex; flex-direction: column; gap: 14px; }
.nmg-trending-item { display: flex; align-items: center; gap: 12px; }
.nmg-trending-rank { font-size: 1.6rem; font-weight: 800; color: var(--nmg-gray-400); width: 30px; flex-shrink: 0; }
.nmg-trending-thumb { flex-shrink: 0; width: 72px; height: 54px; border-radius: 4px; overflow: hidden; }
.nmg-trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nmg-trending-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--nmg-green); }
.nmg-trending-title { font-size: 0.95rem; margin: 2px 0; }
.nmg-trending-item time { font-size: 0.75rem; color: var(--nmg-gray-600); }

/* CATEGORY SECTIONS */
.nmg-category-section-layout { display: block; }
.nmg-category-list { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }

/* MOST READ */
.nmg-most-read-list { display: flex; flex-direction: column; gap: 10px; }
.nmg-most-read-list li { display: flex; gap: 10px; align-items: baseline; }
.nmg-most-read-rank { font-weight: 800; color: var(--nmg-gray-400); }

/* NEWSLETTER */
.nmg-newsletter { background: var(--nmg-gray-100); padding: 20px; border-radius: var(--nmg-radius); }
.nmg-newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.nmg-newsletter-form input { padding: 12px; border: 1px solid var(--nmg-border); border-radius: var(--nmg-radius); font-size: 1rem; }

/* BUTTONS */
.nmg-btn {
	display: inline-block; padding: 12px 20px; border-radius: var(--nmg-radius);
	font-weight: 600; text-align: center; border: none; min-height: 44px;
}
.nmg-btn-primary { background: var(--nmg-green); color: #fff; }
.nmg-btn-secondary { background: var(--nmg-gray-200); color: var(--nmg-black); }

/* ============ WHATSAPP ============ */

/* Floating button — icon-only round style */
.nmg-whatsapp-floating-icon {
	position: fixed; bottom: 76px; right: 16px;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25D366; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 700;
}
.nmg-whatsapp-floating-icon .nmg-whatsapp-icon { width: 28px; height: 28px; }

/* Floating button — pill style with icon + label, matching the reference design */
.nmg-whatsapp-floating-pill {
	position: fixed; bottom: 76px; right: 16px;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px;
	background: #1f7a4d; color: #fff; font-weight: 700; font-size: 0.95rem;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25); z-index: 700; white-space: nowrap;
}
.nmg-whatsapp-floating-pill .nmg-whatsapp-icon { width: 20px; height: 20px; }
.nmg-whatsapp-floating-pill:hover { background: #186640; }

.nmg-whatsapp-icon { display: inline-flex; color: #fff; width: 28px; height: 28px; flex-shrink: 0; }
.nmg-whatsapp-icon svg { width: 100%; height: 100%; display: block; }

/* Popup — matches the reference: eyebrow label, bold heading, description, pill button */
.nmg-whatsapp-popup {
	position: fixed; left: 16px; right: 16px; bottom: 76px;
	margin: 0 auto; max-width: 400px;
	max-height: calc(100vh - 110px); overflow-y: auto;
	background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.25);
	padding: 20px; z-index: 900;
}
.nmg-whatsapp-popup-eyebrow {
	margin: 0 0 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--nmg-accent);
}
.nmg-whatsapp-popup-heading {
	margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; font-weight: 800; color: var(--nmg-black);
	padding-right: 24px;
}
.nmg-whatsapp-popup-description { margin: 0 0 14px; font-size: 0.9rem; color: var(--nmg-gray-600); line-height: 1.5; }
.nmg-whatsapp-popup-btn-wrap { position: relative; display: inline-block; }
.nmg-whatsapp-popup-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px;
	background: var(--nmg-green) !important; color: #fff !important; font-weight: 700;
}
.nmg-whatsapp-popup-btn:hover { background: var(--nmg-green-dark) !important; }
.nmg-whatsapp-popup-btn .nmg-whatsapp-icon { width: 18px; height: 18px; color: #fff !important; }
.nmg-whatsapp-popup-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--nmg-gray-600); }

.nmg-whatsapp-popup-nudge {
	position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
	font-size: 1.6rem; line-height: 1; color: var(--nmg-green);
	animation: nmg-nudge-bounce 1.2s ease-in-out infinite;
}
@keyframes nmg-nudge-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
	.nmg-whatsapp-popup-nudge { animation: none; }
}

/* ============ ARTICLE ============ */
.nmg-reading-progress {
	position: fixed; top: 0; left: 0; height: 3px;
	background: var(--nmg-accent); width: 0; z-index: 1200;
	transition: width 100ms linear;
}
.nmg-breadcrumbs { padding: 14px 16px 0; font-size: 0.82rem; color: var(--nmg-gray-600); }
.nmg-breadcrumbs ol { display: flex; flex-wrap: wrap; }
.nmg-breadcrumb-sep { margin: 0 6px; }

.nmg-article-page { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.nmg-article-header { padding: 16px 0; }
.nmg-article-cat { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--nmg-green); margin-right: 8px; }
.nmg-article-title { font-size: 1.8rem; margin: 10px 0; }
.nmg-article-subtitle { font-size: 1.05rem; color: var(--nmg-gray-600); }
.nmg-article-meta { font-size: 0.85rem; color: var(--nmg-gray-600); margin: 10px 0; }
.nmg-article-featured-image { margin: 16px 0; }
.nmg-article-featured-image img { border-radius: var(--nmg-radius); width: 100%; }
.nmg-article-featured-image figcaption { font-size: 0.8rem; color: var(--nmg-gray-600); margin-top: 6px; }

.nmg-article-content {
	max-width: 760px; margin: 0 auto;
	font-size: 1.08rem; line-height: 1.75;
}
.nmg-article-content h2, .nmg-article-content h3 { margin-top: 1.6em; }
.nmg-article-content p { margin: 0 0 1.2em; }
.nmg-article-content img { border-radius: var(--nmg-radius); }
.nmg-article-content blockquote {
	border-left: 4px solid var(--nmg-green); margin: 1.5em 0; padding: 0.5em 1.2em;
	font-style: italic; color: var(--nmg-gray-800);
}
.nmg-article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.nmg-article-content table th, .nmg-article-content table td { border: 1px solid var(--nmg-border); padding: 8px; }

.nmg-toc {
	border-radius: var(--nmg-radius); overflow: hidden;
	margin-bottom: 20px; max-width: 760px; margin-left: auto; margin-right: auto;
	background: var(--nmg-gray-100);
}
.nmg-toc-toggle {
	background: var(--nmg-green); color: var(--nmg-accent);
	font-weight: 700; width: 100%; text-align: left;
	padding: 14px 16px; border: none;
}
.nmg-toc-list { margin: 0; padding: 12px 16px 14px 34px; list-style: decimal; display: none; }
.nmg-toc.is-open .nmg-toc-list { display: block; }
.nmg-toc-list a { display: block; padding: 4px 0; color: inherit; }

.nmg-article-sources, .nmg-article-disclaimer { max-width: 760px; margin: 20px auto; font-size: 0.85rem; color: var(--nmg-gray-600); }

.nmg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; margin: 24px auto; }
.nmg-share-btn {
	padding: 8px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
	background: var(--nmg-gray-100); border: none;
}

.nmg-author-box {
	display: flex; gap: 14px; max-width: 760px; margin: 24px auto;
	background: var(--nmg-gray-100); padding: 16px; border-radius: var(--nmg-radius);
}
.nmg-author-box img { border-radius: 50%; flex-shrink: 0; }
.nmg-author-links { display: flex; gap: 12px; margin-top: 8px; font-size: 0.85rem; }

/* ============ CALCULATORS ============ */
.nmg-calculator {
	border: 1px solid var(--nmg-border); border-radius: var(--nmg-radius);
	padding: 20px; margin: 20px 0; background: var(--nmg-white);
}
.nmg-calculator-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.nmg-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.nmg-field input, .nmg-field select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--nmg-border);
	border-radius: var(--nmg-radius); font-size: 1rem;
}
.nmg-calculator-actions { display: flex; gap: 10px; }
.nmg-calculator-result {
	margin-top: 16px; padding: 14px; background: var(--nmg-gray-100); border-radius: var(--nmg-radius);
}
.nmg-calculator-disclaimer, .nmg-calculator-note { font-size: 0.78rem; color: var(--nmg-gray-600); margin-top: 10px; }
.nmg-calculator-method-label { font-size: 0.85rem; font-weight: 700; color: var(--nmg-green); margin: 0 0 8px; }
.nmg-calculator-method {
	margin-top: 14px; padding: 12px 14px; border: 1px solid var(--nmg-border); border-radius: var(--nmg-radius);
	font-size: 0.85rem; color: var(--nmg-gray-600);
}
.nmg-calculator-method summary { font-weight: 700; cursor: pointer; color: var(--nmg-black); }
.nmg-calculator-method p { margin: 8px 0 0; }
.nmg-calculator-related { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--nmg-border); }
.nmg-calculator-related h4 { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nmg-gray-600); }
.nmg-calculator-related ul { list-style: none; margin: 0; padding: 0; }
.nmg-calculator-related li { margin-bottom: 6px; }
.nmg-calculator-related a { color: var(--nmg-green); font-weight: 600; }
.nmg-calculator-related a:hover { text-decoration: underline; }

/* ============ FINANCIAL TOOLS LANDING PAGE ============ */
.nmg-tools-page { max-width: 900px; margin: 0 auto; padding: 0 16px 40px; }
.nmg-tools-hero { text-align: center; padding: 32px 0 24px; }
.nmg-tools-title { font-size: 2rem; font-weight: 800; margin: 0 0 10px; color: var(--nmg-black); }
.nmg-tools-subtitle { font-size: 1.05rem; color: var(--nmg-gray-600); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.nmg-tools-editor-content { margin-bottom: 24px; }

.nmg-tools-featured { margin-bottom: 32px; }
.nmg-tools-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.nmg-tools-featured-card {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 24px 16px; background: var(--nmg-gray-100); border-radius: 12px;
	text-align: center; font-weight: 700; color: var(--nmg-black);
	border: 1px solid var(--nmg-border); transition: border-color 150ms ease, transform 150ms ease;
}
.nmg-tools-featured-card:hover { border-color: var(--nmg-green); transform: translateY(-2px); }
.nmg-tools-featured-icon { font-size: 2rem; line-height: 1; }

.nmg-tools-calculators { display: flex; flex-direction: column; gap: 24px; }
.nmg-tools-more { margin-top: 40px; }
.nmg-tools-disclaimer {
	margin-top: 40px; padding: 16px 18px; background: var(--nmg-gray-100);
	border-left: 3px solid var(--nmg-accent); border-radius: var(--nmg-radius);
	font-size: 0.85rem; color: var(--nmg-gray-600); line-height: 1.6;
}
.nmg-tools-disclaimer strong { color: var(--nmg-black); }

@media (min-width: 768px) {
	.nmg-tools-calculators { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
}
.nmg-calculator-method-label { font-size: 0.85rem; font-weight: 600; color: var(--nmg-green); margin: 0 0 10px; }
.nmg-calculator-method {
	margin-top: 14px; padding: 12px 14px; background: var(--nmg-gray-100); border-radius: var(--nmg-radius);
	font-size: 0.85rem; color: var(--nmg-gray-800);
}
.nmg-calculator-method summary { cursor: pointer; font-weight: 700; color: var(--nmg-black); }
.nmg-calculator-method p { margin: 8px 0 0; line-height: 1.5; }

.nmg-calculator-related { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--nmg-border); }
.nmg-calculator-related h4 { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--nmg-gray-600); }
.nmg-calculator-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nmg-calculator-related a { color: var(--nmg-green); font-weight: 600; font-size: 0.92rem; }
.nmg-calculator-related a:hover { text-decoration: underline; }

/* ============ FINANCIAL TOOLS LANDING PAGE ============ */
.nmg-tools-page { max-width: 960px; margin: 0 auto; padding: 16px; }
.nmg-tools-hero { text-align: center; padding: 24px 0 8px; }
.nmg-tools-title { font-size: 2rem; font-weight: 800; margin: 0 0 10px; color: var(--nmg-black); }
.nmg-tools-subtitle { font-size: 1rem; color: var(--nmg-gray-600); max-width: 620px; margin: 0 auto; line-height: 1.6; }
.nmg-tools-editor-content { max-width: 700px; margin: 16px auto; }

.nmg-tools-featured { margin: 28px 0; }
.nmg-tools-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.nmg-tools-featured-card {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 22px 16px; border-radius: 14px; background: var(--nmg-white);
	border: 1px solid var(--nmg-border); text-align: center; color: var(--nmg-black);
	transition: transform 150ms ease, box-shadow 150ms ease;
}
.nmg-tools-featured-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.nmg-tools-featured-icon { font-size: 2rem; line-height: 1; }
.nmg-tools-featured-label { font-weight: 700; }

.nmg-tools-calculators { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
.nmg-tools-more { margin-top: 40px; }

.nmg-tools-disclaimer {
	margin: 32px 0 16px; padding: 16px; background: var(--nmg-gray-100);
	border-left: 4px solid var(--nmg-accent); border-radius: var(--nmg-radius);
	font-size: 0.85rem; color: var(--nmg-gray-800); line-height: 1.6;
}
.nmg-calculator-notice { color: var(--nmg-gray-600); }

/* ============ FOOTER ============ */
.nmg-footer { background: var(--nmg-gray-100); margin-top: 40px; padding-bottom: 60px; }
.nmg-footer-inner { max-width: 1280px; margin: 0 auto; padding: 32px 16px; display: block; }
.nmg-footer-inner > * { margin-bottom: 28px; }
.nmg-footer-about { color: var(--nmg-gray-600); font-size: 0.9rem; margin-top: 12px; }
.nmg-footer-social { display: flex; gap: 14px; margin-top: 12px; font-size: 0.85rem; }
.nmg-footer-menu { display: flex; flex-direction: column; gap: 10px; }
.nmg-footer-bottom { text-align: center; padding: 16px; font-size: 0.8rem; color: var(--nmg-gray-600); border-top: 1px solid var(--nmg-border); }

/* ============ 404 / SEARCH ============ */
.nmg-404-hero { text-align: center; padding: 60px 20px; }
.nmg-404-code { font-size: 4rem; font-weight: 800; color: var(--nmg-gray-400); margin: 0; }
.nmg-search-page-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto; }
.nmg-search-page-form input { flex: 1; padding: 12px; border: 1px solid var(--nmg-border); border-radius: var(--nmg-radius); }
.nmg-search-page-form button { padding: 12px 20px; background: var(--nmg-green); color: #fff; border: none; border-radius: var(--nmg-radius); }
.nmg-404-section { max-width: 1100px; margin: 20px auto; padding: 0 16px; }

/* ============ COMMENTS ============ */
.nmg-comments { max-width: 760px; margin: 30px auto; }
.nmg-comment-form textarea, .nmg-comment-form input[type="text"], .nmg-comment-form input[type="email"], .nmg-comment-form input[type="url"] {
	width: 100%; padding: 10px; border: 1px solid var(--nmg-border); border-radius: var(--nmg-radius); margin-bottom: 12px;
}

/* ============ ADS ============ */
.nmg-ad-slot { text-align: center; margin: 20px 0; overflow: hidden; }
.nmg-hide-mobile { display: none; }
.nmg-hide-desktop { display: block; }

/* ============ UTILITIES ============ */
.nmg-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.nmg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; border-radius: var(--nmg-radius); border: 1px solid var(--nmg-border);
}
.nmg-pagination .page-numbers.current { background: var(--nmg-green); color: #fff; border-color: var(--nmg-green); }
