/* ==========================================================================
   money2use Child – main styles
   ========================================================================== */

:root {
	--m2u-primary: #047857;
	--m2u-primary-dark: #064e3b;
	--m2u-accent: #d97706;
	--m2u-text: #0f172a;
	--m2u-muted: #64748b;
	--m2u-border: #e2e8f0;
	--m2u-bg: #ffffff;
	--m2u-bg-alt: #f8fafc;
	--m2u-radius: 14px;
	--m2u-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
	--m2u-shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 12px 28px rgba(15, 23, 42, .10);
	--m2u-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
	font-family: var(--m2u-font);
	color: var(--m2u-text);
	background: var(--m2u-bg-alt);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--m2u-font);
	color: var(--m2u-text);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
}
a { color: var(--m2u-primary); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--m2u-primary-dark); }
:focus-visible { outline: 3px solid rgba(4, 120, 87, .45); outline-offset: 2px; border-radius: 4px; }
img { border-radius: 0; }

.m2u-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header & navigation ---------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--m2u-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.main-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.main-title a, .main-title a:hover { color: var(--m2u-text); }
.site-description { color: var(--m2u-muted); font-size: 13px; }
.site-logo img, .header-image { max-height: 48px; width: auto; }

.main-navigation,
.main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	color: var(--m2u-text);
	font-weight: 600;
	font-size: 15px;
	padding-left: 14px;
	padding-right: 14px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--m2u-primary); background: transparent; }
.main-navigation ul ul {
	background: #fff;
	border: 1px solid var(--m2u-border);
	border-radius: 10px;
	box-shadow: var(--m2u-shadow);
}
.main-navigation .menu-toggle { color: var(--m2u-text); font-weight: 600; }
.main-navigation .main-nav ul li.m2u-cta > a,
.main-navigation .main-nav ul li.m2u-cta > a:hover {
	background: var(--m2u-primary);
	color: #fff;
	border-radius: 999px;
	line-height: 38px;
	margin: auto 0 auto 8px;
}

/* ---------- Content containers ---------- */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header {
	background: #fff;
	border: 1px solid var(--m2u-border);
	border-radius: var(--m2u-radius);
	box-shadow: var(--m2u-shadow);
}
.separate-containers .inside-article { padding: 40px; }
@media (max-width: 768px) { .separate-containers .inside-article { padding: 22px; } }

.site-main > .m2u-breadcrumbs { margin-bottom: 16px; }
.m2u-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--m2u-muted); }
.m2u-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #94a3b8; }
.m2u-breadcrumbs a { color: var(--m2u-muted); }
.m2u-breadcrumbs a:hover { color: var(--m2u-primary); }
.m2u-breadcrumbs [aria-current] { color: var(--m2u-text); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Single posts & pages ---------- */
.entry-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; }
.archive .entry-title, .blog .entry-title, .search .entry-title { font-size: 22px; }
.entry-meta { color: var(--m2u-muted); font-size: 14px; margin-top: 10px; }
.entry-meta a { color: var(--m2u-muted); }
.entry-meta > span + span::before,
.entry-header .entry-meta .m2u-reading-time::before { content: "·"; margin: 0 8px; }
.post-image img, .featured-image img { border-radius: 12px; }
.single .featured-image { margin-bottom: 24px; }

.entry-content { font-size: 18px; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 26px; margin: 1.8em 0 .6em; padding-top: .2em; }
.entry-content h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.entry-content p, .entry-content li { color: #1e293b; }
.entry-content ul, .entry-content ol { margin-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content blockquote {
	border-left: 4px solid var(--m2u-primary);
	background: #ecfdf5;
	padding: 16px 20px;
	border-radius: 0 10px 10px 0;
	font-style: normal;
}
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	display: block;
	overflow-x: auto;
	border: 1px solid var(--m2u-border);
	border-radius: 10px;
}
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--m2u-border); padding: 12px 14px; text-align: left; }
.entry-content th { background: var(--m2u-bg-alt); font-weight: 600; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content img { border-radius: 10px; height: auto; }

/* Ad-friendly breathing room around auto ads */
.entry-content .google-auto-placed,
.entry-content ins.adsbygoogle { margin: 28px auto !important; }

.m2u-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 22px;
	background: var(--m2u-bg-alt);
	border: 1px solid var(--m2u-border);
	border-radius: var(--m2u-radius);
}
.m2u-author-box img { border-radius: 50%; flex-shrink: 0; }
.m2u-author-box p { margin: 0; }
.m2u-author-box__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--m2u-muted); font-weight: 600; }
.m2u-author-box__name { font-size: 18px; font-weight: 700; }
.m2u-author-box__name a { color: var(--m2u-text); }
.m2u-author-box__bio { color: #334155; font-size: 15px; margin-top: 6px !important; }

.m2u-disclaimer-note {
	margin-top: 18px;
	font-size: 14px;
	color: var(--m2u-muted);
	padding: 12px 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
}

.m2u-related { margin-top: 44px; }
.m2u-related__title { font-size: 22px; margin-bottom: 18px; }

.post-navigation, .entry-meta.cat-links, footer.entry-meta { font-size: 14px; }
.cat-links a, .tags-links a {
	display: inline-block;
	background: var(--m2u-bg-alt);
	border: 1px solid var(--m2u-border);
	border-radius: 999px;
	padding: 2px 10px;
	margin: 2px 2px;
	color: #334155;
}

/* ---------- Sidebar ---------- */
.sidebar .widget {
	background: #fff;
	border: 1px solid var(--m2u-border);
	border-radius: var(--m2u-radius);
	box-shadow: var(--m2u-shadow);
	padding: 24px;
}
.sidebar .widget-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; text-transform: none; }
.sidebar .widget ul li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 15px; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget a { color: #334155; }
.sidebar .widget a:hover { color: var(--m2u-primary); }
@media (min-width: 1025px) { .inside-right-sidebar { position: sticky; top: 96px; } }

/* ---------- Forms & buttons ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea, select {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	padding: 10px 14px;
	color: var(--m2u-text);
}
input:focus, textarea:focus, select:focus { border-color: var(--m2u-primary); background: #fff; }
button, .button, input[type="submit"], .wp-block-button__link {
	background: var(--m2u-primary);
	color: #fff;
	border-radius: 10px;
	font-weight: 600;
	padding: 11px 20px;
	border: 0;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--m2u-primary-dark); color: #fff; }

/* ---------- Archive / pagination ---------- */
.page-header { padding: 28px 32px; }
.page-header h1 { font-size: 30px; margin: 0; }
.taxonomy-description { color: var(--m2u-muted); margin-top: 8px; }
.paging-navigation .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 6px 12px;
	border: 1px solid var(--m2u-border);
	border-radius: 8px;
	text-align: center;
	color: #334155;
}
.paging-navigation .page-numbers.current { background: var(--m2u-primary); border-color: var(--m2u-primary); color: #fff; }

/* ==========================================================================
   Shared components
   ========================================================================== */
.m2u-pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--m2u-primary);
	background: #ecfdf5;
	border-radius: 999px;
	padding: 3px 10px;
	line-height: 1.5;
}
.m2u-pill:hover { background: #d1fae5; color: var(--m2u-primary-dark); }

.m2u-grid { display: grid; gap: 22px; }
.m2u-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .m2u-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .m2u-grid--3 { grid-template-columns: 1fr; } }

.m2u-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--m2u-border);
	border-radius: var(--m2u-radius);
	overflow: hidden;
	box-shadow: var(--m2u-shadow);
	transition: transform .18s ease, box-shadow .18s ease;
}
.m2u-card:hover { transform: translateY(-3px); box-shadow: var(--m2u-shadow-hover); }
.m2u-card__media { display: block; aspect-ratio: 16 / 9; background: #e2e8f0; overflow: hidden; }
.m2u-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m2u-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 160px;
	font-size: 56px;
	font-weight: 800;
	color: rgba(255, 255, 255, .9);
	background: linear-gradient(135deg, var(--m2u-primary) 0%, #0f766e 55%, var(--m2u-accent) 140%);
}
.m2u-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.m2u-card__title { font-size: 18px; margin: 0; line-height: 1.35; }
.m2u-card__title a { color: var(--m2u-text); }
.m2u-card__title a:hover { color: var(--m2u-primary); }
.m2u-card__excerpt { font-size: 15px; color: #475569; margin: 0; line-height: 1.6; }
.m2u-card__meta { margin-top: auto; display: flex; gap: 14px; font-size: 13px; color: var(--m2u-muted); }

/* ==========================================================================
   Homepage
   ========================================================================== */
.m2u-home .site-content { padding: 0; }
.m2u-home .content-area, .m2u-home .site-main { margin: 0; width: 100%; }
.m2u-home-main { margin: 0 !important; }

.m2u-hero {
	background:
		radial-gradient(1000px 400px at 85% -10%, rgba(245, 158, 11, .20), transparent 60%),
		radial-gradient(900px 500px at 0% 0%, rgba(16, 185, 129, .30), transparent 60%),
		linear-gradient(160deg, #022c22 0%, #064e3b 55%, #047857 100%);
	color: #fff;
	padding: 84px 0 76px;
	text-align: center;
}
.m2u-hero__inner { max-width: 860px; }
.m2u-hero__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	padding: 5px 14px;
	margin-bottom: 20px;
}
.m2u-hero__title { color: #fff; font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.m2u-hero__lead { color: #cbd5e1; font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 30px; }

.m2u-search {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	padding: 8px;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(2, 6, 23, .35);
}
.m2u-search input[type="search"] { flex: 1; border: 0; font-size: 16px; padding: 12px 14px; min-width: 0; }
.m2u-search input[type="search"]:focus { outline: none; }
.m2u-search button { background: var(--m2u-accent); padding: 12px 24px; font-size: 16px; }
.m2u-search button:hover { background: #b45309; }

.m2u-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.m2u-chips a {
	display: inline-block;
	color: #e2e8f0;
	font-size: 14px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
}
.m2u-chips a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.m2u-section { padding: 64px 0; background: var(--m2u-bg-alt); }
.m2u-section--alt { background: #fff; border-top: 1px solid var(--m2u-border); border-bottom: 1px solid var(--m2u-border); }
.m2u-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.m2u-section__head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.m2u-section__desc { color: var(--m2u-muted); margin: -12px 0 24px; max-width: 70ch; }
.m2u-more { font-weight: 600; font-size: 15px; white-space: nowrap; }

.m2u-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.m2u-cat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--m2u-border);
	border-radius: var(--m2u-radius);
	box-shadow: var(--m2u-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.m2u-cat:hover { transform: translateY(-3px); box-shadow: var(--m2u-shadow-hover); border-color: #a7f3d0; }
.m2u-cat__icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	font-size: 24px;
	background: #ecfdf5;
	border-radius: 12px;
	margin-bottom: 10px;
}
.m2u-cat__name { font-weight: 700; color: var(--m2u-text); font-size: 17px; line-height: 1.3; }
.m2u-cat__count { font-size: 14px; color: var(--m2u-muted); }

.m2u-latest { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .m2u-latest { grid-template-columns: 1fr; } }
.m2u-feature {
	background: #fff;
	border: 1px solid var(--m2u-border);
	border-radius: var(--m2u-radius);
	overflow: hidden;
	box-shadow: var(--m2u-shadow);
}
.m2u-feature__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e2e8f0; }
.m2u-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m2u-feature__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.m2u-feature__title { font-size: clamp(22px, 2.6vw, 28px); margin: 0; }
.m2u-feature__title a { color: var(--m2u-text); }
.m2u-feature__title a:hover { color: var(--m2u-primary); }

.m2u-latest__list { display: flex; flex-direction: column; border: 1px solid var(--m2u-border); border-radius: var(--m2u-radius); background: #fff; overflow: hidden; }
.m2u-row { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--m2u-border); transition: background .15s; }
.m2u-row:last-child { border-bottom: 0; }
.m2u-row:hover { background: var(--m2u-bg-alt); }
.m2u-row__title { color: var(--m2u-text); font-weight: 600; line-height: 1.4; }
.m2u-row:hover .m2u-row__title { color: var(--m2u-primary); }
.m2u-row__meta { font-size: 13px; color: var(--m2u-muted); }

.m2u-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 800px) { .m2u-trust { grid-template-columns: 1fr; } }
.m2u-trust__item { padding-left: 18px; border-left: 3px solid var(--m2u-accent); }
.m2u-trust__item h3 { font-size: 18px; margin: 0 0 6px; }
.m2u-trust__item p { color: #475569; margin: 0; font-size: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.m2u-footer { background: #0b1512; color: #94a3b8; padding: 56px 0 36px; }
.m2u-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .m2u-footer__grid { grid-template-columns: 1fr 1fr; } .m2u-footer__about { grid-column: 1 / -1; } }
.m2u-footer p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.m2u-footer__brand { color: #fff; font-size: 20px !important; font-weight: 800; }
.m2u-footer__heading { color: #fff; font-weight: 700; font-size: 14px !important; text-transform: uppercase; letter-spacing: .08em; }
.m2u-footer a { color: #cbd5e1; }
.m2u-footer a:hover { color: #fff; }
.m2u-links { list-style: none; margin: 0; padding: 0; }
.m2u-links li { margin: 0 0 8px; font-size: 15px; }

.site-info { background: #060d0b; color: #64748b; font-size: 13px; border-top: 1px solid #1e293b; }
.site-info a { color: #94a3b8; }
.inside-site-info { padding-top: 18px; padding-bottom: 18px; }

/* Hide GP footer widgets area when empty duplicates our footer */
.footer-widgets:empty { display: none; }

/* ---------- Misc ---------- */
.screen-reader-text:focus { background: #fff; color: var(--m2u-text); }
@media (prefers-reduced-motion: reduce) {
	.m2u-card, .m2u-cat { transition: none; }
	.m2u-card:hover, .m2u-cat:hover { transform: none; }
}

/* ---------- money2use: tame inline styles inside articles ---------- */
.entry-content figure.wp-block-image img { border-radius: 12px; }
.entry-content figcaption { font-size: 14px !important; color: var(--m2u-muted) !important; }
.m2u-card__media img, .m2u-feature__media img { aspect-ratio: 16 / 9; }
