/*
Theme Name: Moneyline
Theme URI: https://moneyline.co.in
Author: Moneyline
Description: A fintech theme for live COMEX and MCX gold and silver rates, with a parity calculator, event desk, AI assistant panel, daily brief and learning guides. Includes light and dark modes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: moneyline
Tags: finance, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

/* ---------------------------------------------------------------
 * Design tokens
 * ------------------------------------------------------------- */
:root {
	--green: #12c07f;
	--green-600: #0a9d66;
	--green-700: #067a52;
	--green-50: #e8f8f1;
	--red: #e5484d;
	--amber: #f5a524;
	--blue: #3b82f6;

	--bg: #f4f6f5;
	--surface: #ffffff;
	--surface-2: #f7f9f8;
	--ink: #0d1f18;
	--ink-2: #4b5b54;
	--ink-3: #7b8982;
	--line: #e2e8e5;

	--hero-bg: #08150f;
	--hero-ink: #ffffff;
	--hero-mute: #c9d6cf;

	--radius: 10px;
	--radius-lg: 14px;
	--shadow: 0 1px 2px rgba(10, 30, 20, .04), 0 4px 14px rgba(10, 30, 20, .05);
	--shadow-lg: 0 10px 40px rgba(0, 0, 0, .28);

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container: 1280px;
}

:root[data-theme="dark"] {
	--bg: #0a1210;
	--surface: #101b17;
	--surface-2: #14221d;
	--ink: #eaf3ee;
	--ink-2: #a9b9b1;
	--ink-3: #7f8f87;
	--line: #1f2f29;
	--green-50: #12281f;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
}

/* ---------------------------------------------------------------
 * Base
 * ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	background: #fff; color: #000; padding: 10px 14px; z-index: 1000; border-radius: 6px;
}

.ml-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.ml-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.ml-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
	border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
	white-space: nowrap;
}
.ml-btn:active { transform: translateY(1px); }
.ml-btn--primary { background: var(--green); color: #04150d; }
.ml-btn--primary:hover { background: #17d38d; color: #04150d; }
.ml-btn--outline { background: transparent; border-color: var(--green-600); color: var(--green-700); }
.ml-btn--outline:hover { background: var(--green-600); color: #fff; }
:root[data-theme="dark"] .ml-btn--outline { color: var(--green); border-color: var(--green); }
:root[data-theme="dark"] .ml-btn--outline:hover { background: var(--green); color: #04150d; }
.ml-btn--ghost { background: transparent; border-color: rgba(18, 192, 127, .7); color: #fff; }
.ml-btn--ghost:hover { background: rgba(18, 192, 127, .15); color: #fff; }

.ml-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
:root[data-theme="dark"] .ml-link { color: var(--green); }
.ml-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.ml-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.ml-header__inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }

.ml-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 23px; letter-spacing: -.03em; color: var(--ink); }
.ml-logo:hover { color: var(--ink); }
.ml-logo__mark { width: 38px; height: 26px; }
.ml-logo--light, .ml-logo--light:hover { color: #fff; }
.custom-logo { max-height: 38px; width: auto; }

.ml-menu { display: flex; gap: 4px; align-items: center; }
.ml-menu a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; font-weight: 500; border-radius: 6px; color: var(--ink); }
.ml-menu a:hover { background: var(--surface-2); color: var(--green-700); }
.ml-menu .menu-item-has-children > a::after {
	content: ""; width: 5px; height: 5px; margin-left: 2px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.ml-menu li { position: relative; }
.ml-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line);
	border-radius: 8px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 20;
}
.ml-menu li:hover > .sub-menu, .ml-menu li:focus-within > .sub-menu { display: block; }
.ml-menu .sub-menu a { display: flex; width: 100%; }

.ml-search { position: relative; margin-left: auto; width: 100%; max-width: 300px; }
.ml-search input {
	width: 100%; height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 8px;
	background: var(--surface-2); font-size: 12.5px;
}
.ml-search input::placeholder { color: var(--ink-3); }
.ml-search button { position: absolute; right: 0; top: 0; height: 40px; width: 40px; background: none; border: 0; color: var(--ink-2); }

.ml-theme-toggle { background: none; border: 0; width: 38px; height: 38px; border-radius: 8px; color: var(--ink-2); display: grid; place-items: center; }
.ml-theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.ml-theme-toggle .ml-icon { width: 20px; height: 20px; }

.ml-nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; position: relative; }
.ml-nav-toggle__bars, .ml-nav-toggle__bars::before, .ml-nav-toggle__bars::after {
	content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s;
}
.ml-nav-toggle__bars { top: 19px; }
.ml-nav-toggle__bars::before { left: 0; right: 0; top: -6px; }
.ml-nav-toggle__bars::after { left: 0; right: 0; top: 6px; }

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.ml-hero { background: var(--hero-bg); color: var(--hero-ink); padding: 44px 0 40px; position: relative; overflow: hidden; }
.ml-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 80% at 15% 0%, rgba(18, 192, 127, .16), transparent 60%), radial-gradient(40% 60% at 90% 100%, rgba(18, 192, 127, .08), transparent 60%);
}
.ml-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 40px; align-items: start; }

.ml-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; color: var(--hero-mute); }
.ml-eyebrow--dark { color: var(--ink-3); }
.ml-hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; max-width: 14em; }
.ml-accent { color: var(--green); }
.ml-hero__sub { font-size: 18px; line-height: 1.4; color: #eaf3ee; margin-bottom: 26px; }
.ml-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.ml-hero__cta .ml-btn { padding: 12px 20px; }
.ml-hero__feats { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 11.5px; color: var(--hero-mute); }
.ml-hero__feats li { display: inline-flex; align-items: center; gap: 8px; }
.ml-hero__feats .ml-icon { color: var(--green); width: 22px; height: 22px; padding: 3px; border: 1.5px solid var(--green); border-radius: 5px; }

/* Cards */
.ml-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; }

/* Parity calculator */
.ml-calc { color: #0d1f18; background: #fff; padding: 18px 22px 14px; box-shadow: var(--shadow-lg); border: 0; --ink: #0d1f18; --ink-2: #4b5b54; --ink-3: #7b8982; --line: #dfe6e2; --surface: #fff; --surface-2: #f4f7f5; }
.ml-calc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ml-calc__head h2 { font-size: 18px; font-weight: 700; }
.ml-calc__head .ml-link { margin-left: auto; color: var(--green-700); }
.ml-calc__icon, .ml-card__icon {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--green-700); color: #fff; flex: none;
}
.ml-card__icon { width: 30px; height: 30px; }
.ml-card__icon--blue { background: #3b6fe0; }
.ml-card__icon--ai { background: #efeaff; color: #6a4cf0; }
:root[data-theme="dark"] .ml-card__icon--ai { background: #231d45; color: #a592ff; }

.ml-seg { display: inline-flex; background: var(--surface-2); border-radius: 6px; overflow: hidden; width: 185px; margin-bottom: 14px; border: 1px solid var(--line); }
.ml-seg button { flex: 1; border: 0; background: transparent; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ml-seg button.is-active { background: var(--green-700); color: #fff; }
.ml-seg--sm { width: 160px; margin: 0; }
.ml-seg--sm button { padding: 6px 10px; font-size: 11px; }

.ml-calc__body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ml-calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.ml-calc__fields label { display: block; }
.ml-calc__fields span { display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 5px; }
.ml-calc__fields input {
	width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px;
}
.ml-calc__fields input:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px rgba(18, 192, 127, .2); }

.ml-calc__out { margin: 0; background: #f0f6f3; border-radius: 10px; padding: 14px 16px; display: grid; gap: 12px; }
.ml-calc__out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; }
.ml-calc__out dt { color: var(--ink-2); }
.ml-calc__out dd { margin: 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.ml-calc__out .is-total { border-top: 1px solid #d3e0d9; padding-top: 12px; margin-top: 4px; }
.ml-calc__out .is-total dt { color: var(--ink); font-weight: 600; }
.ml-calc__out .is-total dd { font-size: 18px; font-weight: 800; }
.ml-calc__note { text-align: right; font-size: 10.5px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------------------------------------------------------------
 * Three-column sections
 * ------------------------------------------------------------- */
.ml-trio { display: grid; grid-template-columns: 1.15fr 1.45fr 1fr; gap: 14px; margin-top: 14px; align-items: stretch; }
.ml-trio--content { grid-template-columns: 1.1fr 1.1fr 1fr; margin-top: 14px; margin-bottom: 14px; }
.ml-card__head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.ml-card__head h2 { font-size: 15px; font-weight: 700; }
.ml-card__head p { font-size: 11.5px; color: var(--ink-2); margin: 3px 0 0; line-height: 1.4; }
.ml-card__head .ml-link { margin-left: auto; font-size: 11.5px; }

/* Event table */
.ml-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ml-table th { text-align: left; background: var(--surface-2); font-weight: 500; color: var(--ink-2); padding: 9px 10px; font-size: 10.5px; line-height: 1.25; vertical-align: bottom; }
.ml-table th small { font-size: 9.5px; color: var(--ink-3); }
.ml-table td { padding: 11px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.ml-table td:nth-child(2) { white-space: normal; min-width: 130px; }
.ml-table td a:hover { text-decoration: underline; }
.ml-impact { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.ml-impact::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.ml-impact--high { color: var(--red); }
.ml-impact--medium { color: var(--amber); }
.ml-impact--low { color: #12a36b; }
.ml-impact { color: inherit; }
.ml-impact--high::before { background: var(--red); }
.ml-impact--medium::before { background: var(--amber); }
.ml-impact--low::before { background: #12a36b; }

/* AI assistant */
.ml-ai { background: linear-gradient(180deg, #faf8ff 0, var(--surface) 90px); }
:root[data-theme="dark"] .ml-ai { background: linear-gradient(180deg, #17142c 0, var(--surface) 90px); }
.ml-ai .ml-card__head { align-items: center; }
.ml-badge { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #6a4cf0; border: 1px solid #b9aaff; border-radius: 4px; padding: 2px 6px; background: #f2eeff; }
:root[data-theme="dark"] .ml-badge { background: #231d45; color: #b6a8ff; border-color: #473a94; }
.ml-ai__lead { font-size: 12px; color: var(--ink-2); margin-bottom: 14px; }
.ml-ai__form { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; margin-bottom: 14px; }
.ml-ai__form input { flex: 1; min-width: 0; height: 46px; border: 0; padding: 0 14px; background: transparent; font-size: 12px; }
.ml-ai__form input:focus { outline: 0; }
.ml-ai__form:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 192, 127, .15); }
.ml-ai__form button { width: 42px; height: 34px; margin-right: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; }
.ml-ai__form button:hover { background: var(--green); color: #04150d; border-color: var(--green); }
.ml-ai__try { font-size: 11.5px; margin-bottom: 8px; }
.ml-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ml-chips button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 11px; color: var(--ink-2); text-align: left; }
.ml-chips button:hover { border-color: var(--green); color: var(--green-700); }
.ml-ai__meta { font-size: 10.5px; color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------
 * Sponsor
 * ------------------------------------------------------------- */
.ml-sponsor {
	margin-top: 14px; border: 1px solid #dce9e1; border-radius: var(--radius-lg); padding: 14px 20px; display: flex; align-items: center; gap: 22px;
	background-color: #f0f8f3;
	background-image: linear-gradient(90deg, #f0f8f3 0, #f0f8f3 45%, rgba(240, 248, 243, 0) 80%), var(--sponsor-img, linear-gradient(135deg, #f0f8f3 30%, #e8c97a 70%, #b8892b 100%));
	background-size: cover; background-position: right center;
}
:root[data-theme="dark"] .ml-sponsor { border-color: var(--line); background-color: #0f1f18; background-image: linear-gradient(90deg, #0f1f18 0, #0f1f18 45%, rgba(15, 31, 24, 0) 80%), var(--sponsor-img, linear-gradient(135deg, #0f1f18 30%, #7a5f1e 80%, #b8892b 100%)); }
.ml-sponsor__tag { font-size: 10.5px; background: rgba(0, 0, 0, .08); border-radius: 5px; padding: 6px 12px; color: var(--ink-2); font-weight: 500; }
.ml-sponsor__copy { flex: 1; min-width: 0; }
.ml-sponsor__copy strong { display: block; font-size: 14px; font-weight: 700; }
.ml-sponsor__copy span { font-size: 11.5px; color: var(--ink-2); }
.ml-sponsor .ml-btn { background: rgba(255, 255, 255, .85); padding: 9px 22px; }

/* ---------------------------------------------------------------
 * Brief / Learn / Compare
 * ------------------------------------------------------------- */
.ml-brief { display: grid; gap: 0; }
.ml-brief li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ml-brief li:first-child { border-top: 0; padding-top: 4px; }
.ml-brief a { font-weight: 600; font-size: 12.5px; display: block; }
.ml-brief small { display: block; color: var(--ink-3); font-size: 10.5px; margin-top: 3px; }
.ml-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.ml-dot--blue { background: var(--blue); }
.ml-dot--green { background: #12a36b; }
.ml-dot--red { background: var(--red); }

.ml-guides { counter-reset: g; }
.ml-guides li { counter-increment: g; display: flex; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.ml-guides li:first-child { border-top: 0; }
.ml-guides li::before { content: counter(g) "."; color: var(--ink-2); width: 16px; flex: none; text-align: right; }
.ml-guides a:hover { text-decoration: underline; }

.ml-compare li { border-top: 1px solid var(--line); }
.ml-compare li:first-child { border-top: 0; }
.ml-compare a { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ml-compare a > span:nth-child(2) { flex: 1; }
.ml-compare strong { display: block; font-size: 12.5px; }
.ml-compare small { color: var(--ink-3); font-size: 10.5px; }
.ml-compare__icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--amber); }
.ml-compare__icon .ml-icon { width: 24px; height: 24px; }
.ml-compare a > .ml-icon:last-child { color: var(--ink-2); }

/* ---------------------------------------------------------------
 * Alerts bar
 * ------------------------------------------------------------- */
.ml-alerts { background: var(--surface); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 14px; }
.ml-alerts__grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 28px; align-items: center; }
.ml-alerts__intro { display: flex; gap: 14px; align-items: center; }
.ml-alerts__intro h2 { font-size: 15px; font-weight: 700; color: var(--green-700); }
:root[data-theme="dark"] .ml-alerts__intro h2 { color: var(--green); }
.ml-alerts__intro p { font-size: 11px; color: var(--ink-2); margin: 3px 0 0; }
.ml-alerts__bell { width: 42px; height: 42px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.ml-alerts__bell .ml-icon { width: 24px; height: 24px; }

.ml-form { display: flex; gap: 0; }
.ml-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--surface); font-size: 12px; }
.ml-form input:focus { outline: 0; border-color: var(--green); }
.ml-form .ml-btn { border-radius: 0 8px 8px 0; height: 46px; }
.ml-form__msg { font-size: 11.5px; margin: 6px 0 0; min-height: 1.2em; }
.ml-form__msg.is-ok { color: #12a36b; }
.ml-form__msg.is-err { color: var(--red); }

.ml-telegram { display: flex; align-items: center; gap: 12px; }
.ml-telegram__icon { width: 36px; height: 36px; border-radius: 50%; background: #2aa3e5; color: #fff; display: grid; place-items: center; flex: none; }
.ml-telegram strong { display: block; font-size: 13px; }
.ml-telegram small { font-size: 10.5px; color: var(--ink-2); }
.ml-telegram > span:nth-child(2) { flex: 1; }
.ml-telegram__go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.ml-footer { background: var(--hero-bg); color: #c9d6cf; padding: 22px 0 18px; font-size: 11.5px; }
.ml-footer__grid { display: grid; grid-template-columns: 1.1fr 2.1fr 1.1fr; gap: 36px; align-items: start; }
.ml-footer p { margin: 8px 0; color: #c9d6cf; }
.ml-footer__brand .ml-logo { font-size: 20px; }
.ml-social { display: flex; gap: 14px; margin: 12px 0; }
.ml-social a { color: #fff; opacity: .9; }
.ml-social a:hover { color: var(--green); opacity: 1; }
.ml-social .ml-icon { width: 17px; height: 17px; }
.ml-footer__copy { font-size: 10.5px; opacity: .8; }
.ml-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ml-footer h4 { color: #fff; font-size: 11.5px; font-weight: 700; margin-bottom: 10px; }
.ml-footer li { margin-bottom: 6px; }
.ml-footer a:hover { color: var(--green); }
.ml-footer__news p { font-size: 10.5px; margin: 0 0 10px; }
.ml-footer .ml-form input { height: 34px; border-radius: 6px 0 0 6px; background: #fff; color: #0d1f18; border-color: #fff; font-size: 11px; }
.ml-form--footer button { width: 38px; height: 34px; border: 0; background: #fff; color: #0d1f18; border-radius: 0 6px 6px 0; display: grid; place-items: center; }
.ml-form--footer button:hover { background: var(--green); }
.ml-footer__disclaimer { margin-top: 12px !important; line-height: 1.45; font-size: 10px !important; color: #a8b9b0 !important; }

/* ---------------------------------------------------------------
 * Inner pages
 * ------------------------------------------------------------- */
.ml-page { padding-top: 40px; padding-bottom: 60px; }
.ml-page--narrow { max-width: 860px; }
.ml-page__head { margin-bottom: 26px; }
.ml-page__head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ml-page__head h1 span { color: var(--green-600); }
.ml-page__head p { color: var(--ink-2); margin-top: 8px; }

.ml-layout { display: block; }
.ml-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.ml-posts { display: grid; gap: 16px; }
.ml-post-card { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px; }
.ml-post-card:not(:has(.ml-post-card__thumb)) { grid-template-columns: 1fr; }
.ml-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.ml-post-card__meta { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.ml-post-card h2 { font-size: 19px; margin-bottom: 8px; }
.ml-post-card h2 a:hover { color: var(--green-600); }
.ml-post-card__excerpt { color: var(--ink-2); font-size: 13px; }
.ml-post-card__excerpt p { margin-bottom: .7em; }

.ml-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ml-pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 600; font-size: 12.5px; }
.ml-pagination .page-numbers.current { background: var(--green-700); color: #fff; border-color: var(--green-700); }

.ml-empty { text-align: center; padding: 40px 24px; }
.ml-empty h1 { font-size: 64px; color: var(--green); font-weight: 800; }
.ml-empty h2 { margin-bottom: 8px; }
.ml-empty form { margin: 16px auto; max-width: 360px; }

.ml-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 40px; box-shadow: var(--shadow); }
.ml-article__head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; line-height: 1.12; }
.ml-article__img { margin: 0 0 24px; }
.ml-article__img img { border-radius: 10px; width: 100%; }
.ml-event-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 24px; }
.ml-event-meta div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.ml-event-meta dt { font-size: 10.5px; color: var(--ink-3); }
.ml-event-meta dd { margin: 2px 0 0; font-weight: 700; }

.ml-content { font-size: 16px; line-height: 1.75; color: var(--ink); }
.ml-content h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.ml-content h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.ml-content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.ml-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--green); color: var(--ink-2); }
.ml-content ul, .ml-content ol { padding-left: 1.4em; margin-bottom: 1em; list-style: revert; }
.ml-content table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 1.2em 0; }
.ml-content th, .ml-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.ml-content th { background: var(--surface-2); }
.ml-content img { border-radius: 8px; }
.ml-content pre { overflow-x: auto; background: var(--surface-2); padding: 14px; border-radius: 8px; font-size: 13px; }
.ml-disclaimer { margin-top: 30px; padding: 12px 14px; background: var(--surface-2); border-radius: 8px; font-size: 12px; color: var(--ink-2); }

.ml-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
.ml-widget__title { font-size: 14px; margin-bottom: 10px; }
.ml-widget ul { display: grid; gap: 8px; }

.ml-comments { margin-top: 40px; }
.ml-comments h2 { font-size: 20px; margin-bottom: 16px; }
.ml-comments__list { display: grid; gap: 14px; margin-bottom: 24px; }
.ml-comments input[type="text"], .ml-comments input[type="email"], .ml-comments input[type="url"], .ml-comments textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ml-comments input[type="submit"] { background: var(--green); color: #04150d; border: 0; padding: 11px 20px; border-radius: 8px; font-weight: 600; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------- */
@media (max-width: 1180px) {
	.ml-hero__grid { grid-template-columns: 1fr; }
	.ml-calc { max-width: 620px; }
	.ml-trio { grid-template-columns: 1fr 1fr; }
	.ml-trio > .ml-ai { grid-column: 1 / -1; }
	.ml-trio--content { grid-template-columns: 1fr 1fr; }
	.ml-trio--content > :last-child { grid-column: 1 / -1; }
	.ml-footer__grid { grid-template-columns: 1fr 1fr; }
	.ml-footer__cols { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 980px) {
	.ml-nav-toggle { display: block; margin-left: auto; }
	.ml-search { display: none; }
	.ml-theme-toggle { order: 2; }
	.ml-header__inner { flex-wrap: wrap; gap: 10px; }
	.ml-nav { display: none; width: 100%; order: 10; border-top: 1px solid var(--line); padding: 8px 0; }
	.ml-nav.is-open { display: block; }
	.ml-menu { flex-direction: column; align-items: stretch; }
	.ml-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 14px; }
	.ml-alerts__grid { grid-template-columns: 1fr; gap: 16px; }
	.ml-layout.has-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.ml-trio, .ml-trio--content { grid-template-columns: 1fr; }
	.ml-calc__body { grid-template-columns: 1fr; }
	.ml-hero { padding: 30px 0; }
	.ml-hero__sub { font-size: 16px; }
	.ml-sponsor { flex-wrap: wrap; }
	.ml-post-card { grid-template-columns: 1fr; }
	.ml-article { padding: 22px 18px; }
	.ml-article__head h1 { font-size: 26px; }
	.ml-header .ml-btn--outline { display: none; }
	.ml-footer__cols { grid-template-columns: 1fr 1fr; }
	.ml-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Third-party widgets (e.g. Investing.com) */
.ml-widget-embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; overflow-x: auto; }
.ml-widget-embed iframe { max-width: 100%; border: 0; display: block; }
.ml-widget-credit { font-size: 10.5px; color: var(--ink-3); margin: 6px 2px 0; }

/* Widget-first layout */
.ml-duo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.ml-desk { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.ml-trio3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.ml-trio3 > .ml-widget-credit { grid-column: 1 / -1; margin: 0; }
.ml-duo > *, .ml-desk > *, .ml-trio3 > * { min-width: 0; }
.ml-wcard .ml-seg--sm { margin-left: auto; flex: none; }
.ml-wcard .ml-card__head .ml-link { margin-left: auto; }
.ml-embed { min-height: 120px; overflow-x: auto; border-radius: 8px; }
.ml-embed iframe { display: block; width: 100% !important; max-width: 100%; border: 0; }
.ml-embed .poweredBy, .ml-embed .poweredBy a { font-size: 11px; color: var(--ink-3); }
.ml-slot {
	min-height: var(--h, 300px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	text-align: center; padding: 20px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 12px;
}
.ml-slot strong { color: var(--ink); font-size: 14px; }
.ml-slot small { color: var(--ink-3); font-size: 11px; max-width: 34em; }

@media (max-width: 1180px) {
	.ml-duo, .ml-desk { grid-template-columns: 1fr; }
	.ml-trio3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.ml-trio3 { grid-template-columns: 1fr; }
	.ml-wcard .ml-card__head { flex-wrap: wrap; }
}
