/**
 * Easymyday — main stylesheet (mobile-first)
 * Base styles are for phones. Wider screens are added with min-width queries.
 */

:root {
	--emd-bg: #ffffff;
	--emd-bg-alt: #f7f9fc;
	--emd-card: #ffffff;
	--emd-card-hi: #f8fafc;
	--emd-line: rgba(15, 23, 42, 0.08);
	--emd-line-strong: rgba(15, 23, 42, 0.14);
	--emd-ink: #0b1220;
	--emd-text: #1e293b;
	--emd-text-2: #475569;
	--emd-muted: #64748b;
	--emd-primary: #047857;
	--emd-primary-2: #065f46;
	--emd-indigo: #4f46e5;
	--emd-amber: #b45309;
	--emd-wa: #25d366;
	--emd-radius: 18px;
	--emd-header-h: 56px;
	--emd-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	--emd-shadow-hi: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(15, 23, 42, 0.12);
	--emd-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.emd-lock { overflow: hidden; }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main,
.emd-main { margin: 0; display: block; }

img, svg, video { max-width: 100%; }
a { text-underline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}

/* Default pages / posts built with core blocks keep a comfortable gutter */
main.wp-block-group:not(.emd-main) {
	padding: 2rem 1rem 3rem;
}
main.wp-block-group:not(.emd-main) .wp-block-post-title { font-size: clamp(1.7rem, 6vw, 2.5rem); }

.emd-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 1rem;
	box-sizing: border-box;
}
.emd-narrow {
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 1rem;
	box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.emd-btn,
.emd-hero__cta .wp-block-button__link,
.emd-wa-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 46px;
	padding: 0.65rem 1.2rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid var(--emd-line-strong);
	color: var(--emd-text);
	background: rgba(15, 23, 42, 0.04);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}
.emd-btn:hover { background: rgba(15, 23, 42, 0.09); color: var(--emd-ink); }
.emd-btn--primary,
.emd-fill .wp-block-button__link {
	background: linear-gradient(135deg, #0b1220, #1e293b);
	color: #ffffff;
	border-color: transparent;
}
.emd-btn--primary:hover,
.emd-fill .wp-block-button__link:hover { background: linear-gradient(135deg, #047857, #065f46); color: #ffffff; transform: translateY(-1px); }
.emd-ghost .wp-block-button__link { background: transparent; color: var(--emd-text); border-color: var(--emd-line-strong); }
.emd-ghost .wp-block-button__link:hover { border-color: var(--emd-primary); color: var(--emd-primary); }
.emd-btn--wa,
.emd-wa-btn .wp-block-button__link { background: var(--emd-wa); color: #04210f; border-color: transparent; }
.emd-btn--wa:hover,
.emd-wa-btn .wp-block-button__link:hover { background: #3ee37f; color: #04210f; transform: translateY(-1px); }

/* ---------- Header ---------- */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header { top: 46px; } }

.emd-header {
	position: relative;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--emd-line);
}
.emd-header__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	height: var(--emd-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.emd-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--emd-ink);
	text-decoration: none;
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}
.emd-brand:hover { color: var(--emd-ink); }
.emd-brand__logo { max-height: 40px; width: auto; }
.emd-brand__text {
	background: linear-gradient(90deg, #0b1220, #047857);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.emd-mark { flex: none; }

.emd-burger {
	width: 46px; height: 46px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(15, 23, 42, 0.05);
	border: 1px solid var(--emd-line-strong);
	border-radius: 12px;
	cursor: pointer;
	padding: 0;
	color: var(--emd-ink);
}
.emd-burger__bars { display: grid; gap: 5px; width: 20px; }
.emd-burger__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.emd-header.is-open .emd-burger__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.emd-header.is-open .emd-burger__bars i:nth-child(2) { opacity: 0; }
.emd-header.is-open .emd-burger__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.emd-nav {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: #ffffff;
	border-bottom: 1px solid var(--emd-line);
	max-height: calc(100vh - var(--emd-header-h));
	max-height: calc(100dvh - var(--emd-header-h));
	overflow-y: auto;
	padding: 0.5rem 1rem 1.25rem;
	box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14);
}
.emd-header.is-open .emd-nav { display: block; }
.emd-nav__list { list-style: none; margin: 0; padding: 0; }
.emd-nav__item { border-bottom: 1px solid var(--emd-line); }
.emd-nav__link {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 0.5rem 0.25rem;
	background: none; border: 0;
	color: var(--emd-text);
	font: inherit; font-weight: 700; font-size: 1.02rem;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
}
.emd-nav__link:hover { color: var(--emd-primary); }
.emd-mega-toggle .emd-ico { transition: transform 0.2s ease; }
.emd-has-mega.is-open .emd-mega-toggle .emd-ico { transform: rotate(180deg); }

.emd-mega { display: none; padding: 0.25rem 0 1rem; }
.emd-has-mega.is-open > .emd-mega { display: block; }
.emd-mega__inner { display: grid; gap: 1.25rem; }
.emd-mega__title {
	margin: 0 0 0.5rem;
	font-size: 0.72rem; font-weight: 800;
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--emd-muted);
}
.emd-mega__links { list-style: none; margin: 0; padding: 0; }
.emd-mega__links a {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
	min-height: 44px; padding: 0.35rem 0.6rem;
	color: var(--emd-text); text-decoration: none; font-weight: 600; font-size: 0.97rem;
	border-radius: 10px;
}
.emd-mega__links a:hover { background: rgba(4, 120, 87, 0.08); color: var(--emd-primary); }
.emd-mega__links a span {
	font-size: 0.75rem; font-weight: 700; color: var(--emd-muted);
	background: rgba(15, 23, 42, 0.06); padding: 0.1rem 0.5rem; border-radius: 99px;
}
.emd-mega__all a { color: var(--emd-primary); }
.emd-mega__empty { color: var(--emd-muted); font-size: 0.9rem; margin: 0.25rem 0; list-style: none; }

.emd-mega__cards { display: grid; gap: 0.5rem; }
.emd-mini {
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.5rem;
	border: 1px solid var(--emd-line); border-radius: 14px;
	background: rgba(15, 23, 42, 0.02);
	text-decoration: none; color: var(--emd-text);
}
.emd-mini:hover { border-color: rgba(4, 120, 87, 0.5); background: rgba(4, 120, 87, 0.06); }
.emd-mini img, .emd-mini__ph {
	width: 56px; height: 56px; flex: none;
	border-radius: 10px; object-fit: cover;
}
.emd-mini__ph {
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(4, 120, 87, 0.25), rgba(79, 70, 229, 0.25));
	font-weight: 800; font-size: 1.3rem; color: var(--emd-ink);
}
.emd-mini__txt { display: grid; gap: 0.1rem; min-width: 0; }
.emd-mini__txt small { color: var(--emd-primary); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.emd-mini__txt strong { font-size: 0.93rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.emd-mega__promo {
	background: linear-gradient(145deg, rgba(4, 120, 87, 0.12), rgba(79, 70, 229, 0.12));
	border: 1px solid var(--emd-line-strong);
	border-radius: 16px; padding: 1rem;
}
.emd-mega__promo p { margin: 0 0 0.75rem; color: var(--emd-text); font-size: 0.93rem; }
.emd-mega__promo .emd-mega__title { color: var(--emd-ink); }

.emd-nav__actions { display: grid; gap: 0.75rem; margin-top: 1rem; }
.emd-nav__actions .emd-btn { width: 100%; }
.emd-search { display: flex; position: relative; }
.emd-search input {
	width: 100%; min-height: 48px;
	background: var(--emd-card); color: var(--emd-text);
	border: 1px solid var(--emd-line-strong); border-radius: 12px;
	padding: 0 3rem 0 1rem; font: inherit; font-size: 1rem;
}
.emd-search input::placeholder { color: var(--emd-muted); }
.emd-search button {
	position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; color: var(--emd-muted); cursor: pointer; border-radius: 9px;
}
.emd-search button:hover { color: var(--emd-primary); }

/* ---------- Desktop navigation ---------- */
@media (min-width: 960px) {
	.emd-burger { display: none; }
	.emd-nav {
		display: flex; position: static;
		flex: 1; align-items: center; justify-content: space-between; gap: 1rem;
		background: none; border: 0; box-shadow: none;
		max-height: none; overflow: visible; padding: 0; margin-left: 1.5rem;
	}
	.emd-nav__list { display: flex; align-items: center; gap: 0.15rem; }
	.emd-nav__item { border: 0; }
	.emd-nav__link {
		width: auto; min-height: var(--emd-header-h);
		padding: 0 0.9rem; gap: 0.35rem; justify-content: center;
		font-size: 0.97rem; color: var(--emd-text-2); border-radius: 0;
	}
	.emd-has-mega.is-open .emd-nav__link { color: var(--emd-primary); }

	.emd-mega {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #ffffff;
		border-top: 1px solid var(--emd-line); border-bottom: 1px solid var(--emd-line);
		box-shadow: 0 30px 50px rgba(15, 23, 42, 0.14);
		padding: 0;
	}
	.emd-mega__inner {
		max-width: 1200px; margin: 0 auto; padding: 1.75rem 1rem 2rem;
		grid-template-columns: 1fr 1.25fr 1fr; gap: 2rem;
	}
	.emd-mega--small .emd-mega__inner { grid-template-columns: minmax(220px, 320px); }
	.emd-mega__col--wide { grid-column: span 2; }
	.emd-mega__cards { grid-template-columns: 1fr; }
	.emd-mega__col--wide .emd-mega__cards { grid-template-columns: repeat(3, 1fr); }
	.emd-mini { flex-direction: row; }

	.emd-nav__actions { display: flex; align-items: center; margin: 0; gap: 0.75rem; }
	.emd-nav__actions .emd-btn { width: auto; min-height: 42px; padding: 0.5rem 1rem; }
	.emd-search input { min-height: 42px; width: 210px; transition: width 0.2s ease; font-size: 0.9rem; }
	.emd-search input:focus { width: 270px; }
	.emd-search button { width: 34px; top: 4px; bottom: 4px; }
}
@media (min-width: 1100px) {
	.emd-search input { width: 250px; }
	.emd-search input:focus { width: 310px; }
}

/* ---------- Hero ---------- */
.emd-hero {
	position: relative;
	overflow: hidden;
	padding: 2.25rem 0 2.5rem;
	background:
		radial-gradient(60% 50% at 85% 0%, rgba(79, 70, 229, 0.22), transparent 70%),
		radial-gradient(55% 45% at 5% 15%, rgba(4, 120, 87, 0.2), transparent 70%),
		var(--emd-bg);
}
.emd-hero__grid { display: grid; gap: 2rem; align-items: center; }
.emd-pill {
	display: inline-block; margin: 0 0 1rem;
	padding: 0.4rem 0.9rem; border-radius: 99px;
	font-size: 0.78rem; font-weight: 700;
	color: var(--emd-primary);
	background: rgba(4, 120, 87, 0.1);
	border: 1px solid rgba(4, 120, 87, 0.28);
}
.emd-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 9vw, 3.9rem);
	line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; color: var(--emd-ink);
}
.emd-grad {
	background: linear-gradient(90deg, var(--emd-primary), var(--emd-indigo));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.emd-lead { color: var(--emd-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 1.25rem; max-width: 60ch; }
.emd-hero__cta { display: grid; gap: 0.75rem; margin: 0 0 1.25rem; }
.emd-hero__cta .wp-block-button { width: 100%; }
.emd-hero__cta .wp-block-button__link { width: 100%; min-height: 52px; font-size: 1rem; }
.emd-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; color: var(--emd-muted); font-size: 0.88rem; font-weight: 600; }
.emd-trust li::before { content: "✓"; color: var(--emd-primary); margin-right: 0.4rem; font-weight: 800; }

.emd-hero__visual { position: relative; max-width: 420px; width: 100%; margin: 0.5rem auto 0; }
.emd-checkcard {
	position: relative; z-index: 1;
	background: linear-gradient(160deg, var(--emd-card-hi), var(--emd-card));
	border: 1px solid var(--emd-line-strong); border-radius: 22px;
	padding: 1.25rem; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}
.emd-checkcard__title { margin: 0 0 0.9rem; font-weight: 800; color: var(--emd-ink); }
.emd-checkcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.emd-checkcard li { display: flex; align-items: center; gap: 0.75rem; color: var(--emd-text); font-weight: 600; font-size: 0.95rem; }
.emd-checkcard li i { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid #cbd5e1; position: relative; }
.emd-checkcard li.is-done { color: var(--emd-muted); text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.5); }
.emd-checkcard li.is-done i { background: var(--emd-primary); border-color: var(--emd-primary); }
.emd-checkcard li.is-done i::after {
	content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px;
	border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.emd-checkcard__foot { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--emd-line-strong); color: var(--emd-primary); font-weight: 700; font-size: 0.85rem; }
.emd-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; z-index: 0; }
.emd-orb--a { width: 160px; height: 160px; background: var(--emd-primary); top: -30px; right: -20px; }
.emd-orb--b { width: 140px; height: 140px; background: var(--emd-indigo); bottom: -30px; left: -20px; }

@media (min-width: 640px) {
	.emd-hero__cta { display: flex; flex-wrap: wrap; }
	.emd-hero__cta .wp-block-button, .emd-hero__cta .wp-block-button__link { width: auto; }
}
@media (min-width: 900px) {
	.emd-hero { padding: 4.5rem 0 5rem; }
	.emd-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
	.emd-hero__visual { margin: 0 0 0 auto; }
}

/* ---------- Sections ---------- */
.emd-section { padding: 2.5rem 0; background: var(--emd-bg); }
.emd-section--alt { background: var(--emd-bg-alt); border-block: 1px solid var(--emd-line); }
.emd-eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--emd-primary);
}
.emd-h2 { margin: 0 0 1.25rem; font-size: clamp(1.45rem, 5.5vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--emd-ink); }
.emd-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.25rem; }
.emd-sechead .emd-h2 { margin-bottom: 0; }
.emd-more { margin: 0; }
.emd-more a { color: var(--emd-primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.emd-more a:hover { text-decoration: underline; }
.emd-empty { color: var(--emd-muted); padding: 2rem 0; }
@media (min-width: 900px) { .emd-section { padding: 4rem 0; } }

/* Topic tiles */
.emd-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.emd-tiles li { margin: 0; }
.emd-tiles a {
	display: flex; flex-direction: column; gap: 0.2rem; height: 100%; box-sizing: border-box;
	padding: 1rem; text-decoration: none;
	background: var(--emd-card); border: 1px solid var(--emd-line); border-radius: var(--emd-radius);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.emd-tiles a:hover { transform: translateY(-2px); border-color: rgba(4, 120, 87, 0.55); background: var(--emd-card-hi); }
.emd-tiles__ico { font-size: 1.7rem; line-height: 1; margin-bottom: 0.4rem; }
.emd-tiles strong { color: var(--emd-ink); font-size: 1rem; }
.emd-tiles small { color: var(--emd-muted); font-size: 0.8rem; }
@media (min-width: 640px) { .emd-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .emd-tiles { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* Features */
.emd-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.emd-features li {
	margin: 0; padding: 1.25rem;
	background: var(--emd-card); border: 1px solid var(--emd-line); border-radius: var(--emd-radius);
}
.emd-features li > span { font-size: 1.6rem; display: block; margin-bottom: 0.5rem; }
.emd-features h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--emd-ink); }
.emd-features p { margin: 0; color: var(--emd-muted); font-size: 0.93rem; line-height: 1.55; }
@media (min-width: 640px) { .emd-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .emd-features { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* CTA */
.emd-cta {
	text-align: center; padding: 2rem 1.25rem;
	border-radius: 24px; border: 1px solid var(--emd-line-strong);
	background:
		radial-gradient(80% 120% at 100% 0%, rgba(79, 70, 229, 0.25), transparent 60%),
		radial-gradient(80% 120% at 0% 100%, rgba(4, 120, 87, 0.22), transparent 60%),
		var(--emd-card);
}
.emd-cta .emd-lead { margin-inline: auto; }
.emd-cta .wp-block-buttons { justify-content: center; }
.emd-cta .wp-block-button__link { min-height: 52px; font-size: 1rem; }
@media (min-width: 900px) { .emd-cta { padding: 3.5rem 2rem; } }

/* ---------- Page heads (blog / tools / archives) ---------- */
.emd-pagehead {
	padding: 1.75rem 0 1.25rem;
	background:
		radial-gradient(60% 90% at 90% 0%, rgba(79, 70, 229, 0.18), transparent 70%),
		radial-gradient(50% 80% at 0% 0%, rgba(4, 120, 87, 0.16), transparent 70%),
		var(--emd-bg);
	border-bottom: 1px solid var(--emd-line);
}
.emd-title { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--emd-ink); }
.emd-pagehead .emd-lead { margin-bottom: 1rem; }
.emd-pagehead .emd-tiles { margin-top: 1rem; }
@media (min-width: 900px) { .emd-pagehead { padding: 3.25rem 0 2rem; } }

/* Search box (core search block) */
.emd-searchbox { max-width: 560px; margin: 0 0 0.25rem; }
.emd-searchbox .wp-block-search__inside-wrapper { display: flex; gap: 0.5rem; border: 0; padding: 0; }
.emd-searchbox .wp-block-search__input {
	flex: 1; min-width: 0; min-height: 50px;
	background: var(--emd-card); color: var(--emd-text);
	border: 1px solid var(--emd-line-strong); border-radius: 12px;
	padding: 0 1rem; font: inherit; font-size: 1rem;
}
.emd-searchbox .wp-block-search__input:focus { border-color: var(--emd-primary); outline: none; }
.emd-searchbox .wp-block-search__button {
	min-height: 50px; min-width: 50px; margin: 0; padding: 0 1rem;
	background: linear-gradient(135deg, #0b1220, #1e293b); color: #ffffff;
	border: 0; border-radius: 12px; font-weight: 700; cursor: pointer;
}
.emd-searchbox .wp-block-search__button svg { fill: currentColor; }

/* Category chips: horizontal scroll on phones */
.emd-chips { margin-top: 1rem; }
.emd-chips ul {
	list-style: none; margin: 0 -1rem; padding: 0.25rem 1rem 0.5rem;
	display: flex; gap: 0.5rem; overflow-x: auto;
	scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.emd-chips ul::-webkit-scrollbar { display: none; }
.emd-chips li { margin: 0; flex: none; scroll-snap-align: start; }
.emd-chips a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
	border-radius: 99px; white-space: nowrap;
	border: 1px solid var(--emd-line-strong); color: var(--emd-text-2);
	font-weight: 700; font-size: 0.9rem; text-decoration: none;
	background: rgba(15, 23, 42, 0.03);
}
.emd-chips a:hover { border-color: var(--emd-primary); color: var(--emd-primary); }
.emd-chips a.is-active { background: var(--emd-primary); border-color: var(--emd-primary); color: #ffffff; }
@media (min-width: 900px) { .emd-chips ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* ---------- Card grid ---------- */
.wp-block-post-template.emd-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr; gap: 0.85rem;
}
.wp-block-post-template.emd-grid > li { margin: 0 !important; min-width: 0; }

.emd-card {
	display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
	background: var(--emd-card); border: 1px solid var(--emd-line); border-radius: var(--emd-radius);
	overflow: hidden; transition: transform 0.15s ease, border-color 0.15s ease;
}
.emd-card:hover { border-color: rgba(4, 120, 87, 0.45); }
.emd-card__media { margin: 0 !important; overflow: hidden; background: #ffffff; }
.emd-card__media a { display: block; }
.emd-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.emd-card:hover .emd-card__media img { transform: scale(1.04); }
.emd-card__body { display: flex !important; flex-direction: column; flex: 1; gap: 0.45rem; padding: 1rem; box-sizing: border-box; }
.emd-card__body > * { margin: 0 !important; }
.emd-card__row { display: flex !important; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.emd-card__cat { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.emd-card__cat a { color: var(--emd-primary); text-decoration: none; }
.emd-card__cat .wp-block-post-terms__separator { display: none; }
.emd-card__cat a + a { margin-left: 0.5rem; }
.emd-card__title { font-size: 1.1rem !important; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.emd-card__title a { color: var(--emd-ink); text-decoration: none; }
.emd-card__title a:hover { color: var(--emd-primary); }
.emd-card__excerpt { color: var(--emd-muted); font-size: 0.92rem; line-height: 1.55; }
.emd-card__excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.emd-card__excerpt .wp-block-post-excerpt__more-link { display: none; }
.emd-card__meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; color: var(--emd-muted); font-size: 0.8rem; margin-top: auto !important; padding-top: 0.25rem !important; }
.emd-card__meta > * + *::before { content: "·"; margin-right: 0.6rem; opacity: 0.6; }
.emd-card__meta a { color: inherit; text-decoration: none; }
.emd-readtime { white-space: nowrap; }
.emd-badge {
	font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
	padding: 0.15rem 0.55rem; border-radius: 99px;
	background: rgba(251, 191, 36, 0.14); color: var(--emd-amber); border: 1px solid rgba(251, 191, 36, 0.3);
}
.emd-toolbtns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.5rem; }
.emd-tool-card .emd-toolbtns .emd-btn { flex: 1; }

/* Phones: compact horizontal list cards for the blog feed */
@media (max-width: 639px) {
	.emd-post-card { display: grid; grid-template-columns: 112px 1fr; }
	.emd-post-card:not(:has(.emd-card__media)) { grid-template-columns: 1fr; }
	.emd-post-card .emd-card__media { height: 100%; min-height: 120px; }
	.emd-post-card .emd-card__media img { aspect-ratio: 1 / 1 !important; }
	.emd-post-card .emd-card__body { padding: 0.8rem 0.9rem; gap: 0.3rem; }
	.emd-post-card .emd-card__title { font-size: 1rem !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.emd-post-card .emd-card__excerpt { display: none; }
}
@media (min-width: 640px) {
	.wp-block-post-template.emd-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}
@media (min-width: 1024px) {
	.wp-block-post-template.emd-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
	.emd-card:hover { transform: translateY(-3px); }
}

/* Pagination */
.emd-pager {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
	margin-top: 1.75rem;
}
.emd-pager a, .emd-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; min-width: 46px; padding: 0 1rem; box-sizing: border-box;
	border: 1px solid var(--emd-line-strong); border-radius: 12px;
	color: var(--emd-text); text-decoration: none; font-weight: 700;
	background: rgba(15, 23, 42, 0.03);
}
.emd-pager a:hover { border-color: var(--emd-primary); color: var(--emd-primary); }
.emd-pager .wp-block-query-pagination-numbers { display: none; gap: 0.4rem; }
.emd-pager .page-numbers.current { background: var(--emd-primary); border-color: var(--emd-primary); color: #ffffff; }
@media (min-width: 640px) {
	.emd-pager { justify-content: center; gap: 0.5rem; }
	.emd-pager .wp-block-query-pagination-numbers { display: flex; }
}

/* ---------- Articles ---------- */
.emd-article-head { padding: 1.75rem 0 0.5rem; background: var(--emd-bg); }
.emd-title--article { font-size: clamp(1.7rem, 6.5vw, 2.7rem); margin-top: 0.5rem; }
.emd-article { padding: 0.5rem 0 2.5rem; background: var(--emd-bg); }
.emd-article__hero { margin: 0.75rem 0 1rem !important; }
.emd-article__hero img { display: block; width: 100%; border-radius: 16px; }
.emd-prose { font-size: 1.0625rem; line-height: 1.8; color: var(--emd-text); overflow-wrap: anywhere; }
.emd-prose > * + * { margin-top: 1.1em; }
.emd-prose h2, .emd-prose h3, .emd-prose h4 { color: var(--emd-ink); line-height: 1.25; margin-top: 1.8em; scroll-margin-top: calc(var(--emd-header-h) + 1rem); }
.emd-prose h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
.emd-prose h3 { font-size: clamp(1.2rem, 4.2vw, 1.4rem); }
.emd-prose a { color: var(--emd-primary); }
.emd-prose img { height: auto; border-radius: 12px; }
.emd-prose blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--emd-primary); color: var(--emd-ink); font-size: 1.1rem; }
.emd-prose pre { overflow-x: auto; padding: 1rem; background: #0f172a; border: 1px solid var(--emd-line); border-radius: 12px; font-size: 0.9rem; line-height: 1.6; }
.emd-prose code { font-size: 0.92em; }
.emd-prose :not(pre) > code { background: rgba(15, 23, 42, 0.08); padding: 0.15em 0.4em; border-radius: 6px; }
.emd-prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.emd-prose th, .emd-prose td { border: 1px solid var(--emd-line-strong); padding: 0.6rem 0.8rem; text-align: left; }
.emd-prose ul, .emd-prose ol { padding-left: 1.3rem; }
.emd-prose li + li { margin-top: 0.4em; }
.emd-tags { margin: 1.5rem 0 0; font-size: 0.9rem; color: var(--emd-muted); }
.emd-tags a { color: var(--emd-primary); text-decoration: none; margin-right: 0.35rem; }

.emd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.1rem 0; }
.emd-share__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emd-muted); margin-right: 0.25rem; }
.emd-share__btn {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.95rem;
	border-radius: 99px; border: 1px solid var(--emd-line-strong);
	color: var(--emd-text); background: rgba(15, 23, 42, 0.03);
	font: inherit; font-weight: 700; font-size: 0.85rem; text-decoration: none; cursor: pointer;
}
.emd-share__btn:hover { border-color: var(--emd-primary); color: var(--emd-primary); }
.emd-share__btn--wa { background: var(--emd-wa); color: #04210f; border-color: transparent; }
.emd-share__btn--wa:hover { background: #3ee37f; color: #04210f; }

.emd-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--emd-primary), var(--emd-indigo)); pointer-events: none; }
.admin-bar .emd-progress { top: 32px; }

.emd-comments { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--emd-line); }
.emd-comment { padding: 1rem; margin-bottom: 0.75rem; background: var(--emd-card); border: 1px solid var(--emd-line); border-radius: 14px; }
.emd-comments input[type="text"], .emd-comments input[type="email"], .emd-comments input[type="url"], .emd-comments textarea {
	width: 100%; box-sizing: border-box; background: var(--emd-card); color: var(--emd-text);
	border: 1px solid var(--emd-line-strong); border-radius: 10px; padding: 0.7rem 0.9rem; font: inherit;
}
.emd-comments .wp-block-button__link, .emd-comments input[type="submit"] {
	min-height: 46px; padding: 0 1.25rem; border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(135deg, #0b1220, #1e293b); color: #ffffff; font-weight: 700;
}

/* 404 + password form + gradients from the original theme */
.gradient-cyan { background: linear-gradient(90deg, var(--emd-primary), var(--emd-indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.emd-footer { background: var(--emd-bg-alt); border-top: 1px solid var(--emd-line); color: var(--emd-muted); }
.emd-footer__cta { padding: 1.5rem 0 0; }
.emd-footer__cta-in {
	display: grid; gap: 1rem; align-items: center;
	padding: 1.5rem 1.25rem; border-radius: 22px;
	background:
		radial-gradient(70% 140% at 100% 0%, rgba(37, 211, 102, 0.2), transparent 60%),
		radial-gradient(70% 140% at 0% 100%, rgba(79, 70, 229, 0.2), transparent 60%),
		var(--emd-card);
	border: 1px solid var(--emd-line-strong);
	max-width: calc(1200px - 2rem);
	width: calc(100% - 2rem);
	padding-inline: 1.25rem;
}
.emd-footer__cta h2 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--emd-ink); }
.emd-footer__cta p { margin: 0; font-size: 0.93rem; }
.emd-footer__cta .emd-btn { width: 100%; min-height: 50px; }

.emd-footer__grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem;
	padding-block: 2.5rem 2rem;
}
.emd-footer__brand { grid-column: 1 / -1; }
.emd-footer__brand p { margin: 0.9rem 0 0; font-size: 0.93rem; line-height: 1.6; max-width: 42ch; }
.emd-social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; }
.emd-social li { margin: 0; }
.emd-social a {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.9rem;
	border: 1px solid var(--emd-line-strong); border-radius: 99px;
	color: var(--emd-text); font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.emd-social a:hover { border-color: var(--emd-primary); color: var(--emd-primary); }
.emd-footer__col h3 { margin: 0 0 0.75rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emd-ink); font-weight: 800; }
.emd-footer__col ul { list-style: none; margin: 0; padding: 0; }
.emd-footer__col li { margin: 0; }
.emd-footer__col a { display: inline-block; padding: 0.4rem 0; color: var(--emd-muted); text-decoration: none; font-size: 0.93rem; }
.emd-footer__col a:hover { color: var(--emd-primary); }

.emd-footer__bottom { border-top: 1px solid var(--emd-line); padding: 1.25rem 0 5.5rem; }
.emd-footer__bottom-in { display: grid; gap: 0.6rem; justify-items: center; text-align: center; font-size: 0.88rem; }
.emd-footer__bottom p { margin: 0; }
.emd-credit strong {
	font-weight: 800;
	background: linear-gradient(90deg, var(--emd-primary), var(--emd-amber));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.emd-totop {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid var(--emd-line-strong); background: rgba(15, 23, 42, 0.04);
	color: var(--emd-text); cursor: pointer;
}
.emd-totop:hover { border-color: var(--emd-primary); color: var(--emd-primary); }

@media (min-width: 640px) {
	.emd-footer__cta-in { grid-template-columns: 1fr auto; padding: 1.75rem 2rem; }
	.emd-footer__cta .emd-btn { width: auto; }
	.emd-footer__bottom { padding-bottom: 1.5rem; }
	.emd-footer__bottom-in { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
	.emd-credit { justify-self: center; }
	.emd-totop { justify-self: end; }
}
@media (min-width: 900px) {
	.emd-footer__cta { padding-top: 2.5rem; }
	.emd-footer__cta-in { margin-inline: auto; }
	.emd-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
	.emd-footer__brand { grid-column: auto; }
}
@media (min-width: 1232px) { .emd-footer__cta-in { width: 100%; } }

/* ---------- WhatsApp floating button ---------- */
.emd-wa {
	position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-width: 58px; height: 58px; padding: 0 16px; box-sizing: border-box;
	border-radius: 99px; background: var(--emd-wa); color: #fff; text-decoration: none;
	box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(15, 23, 42, 0.1);
	font-weight: 800; font-size: 0.95rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.emd-wa--right { right: calc(1rem + env(safe-area-inset-right, 0px)); }
.emd-wa--left { left: calc(1rem + env(safe-area-inset-left, 0px)); }
.emd-wa:hover { color: #fff; transform: translateY(-2px) scale(1.03); }
.emd-wa .emd-ico { flex: none; }
.emd-wa__label { display: none; }
.emd-wa::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	border: 2px solid var(--emd-wa); opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
	.emd-wa::after { animation: emd-pulse 2.6s ease-out infinite; }
}
@keyframes emd-pulse {
	0% { transform: scale(1); opacity: 0.65; }
	80%, 100% { transform: scale(1.5); opacity: 0; }
}
@media (min-width: 640px) {
	.emd-wa { padding: 0 20px 0 16px; }
	.emd-wa__label { display: inline; }
}

/* ---------- Misc ---------- */
.post-password-form {
	max-width: 28rem; margin: 3rem auto; padding: 1.5rem;
	background: var(--emd-card); border: 1px solid var(--emd-line-strong); border-radius: 14px;
}
.post-password-form input[type="password"] {
	width: 100%; box-sizing: border-box; padding: 0.75rem 1rem; margin: 0.5rem 0 1rem;
	background: var(--emd-bg); color: var(--emd-text);
	border: 1px solid var(--emd-line-strong); border-radius: 10px; font: inherit;
}
.post-password-form input[type="submit"] {
	min-height: 46px; padding: 0 1.4rem; border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(135deg, #0b1220, #1e293b); color: #ffffff; font-weight: 700;
}
:focus-visible { outline: 2px solid var(--emd-primary); outline-offset: 2px; }
::selection { background: var(--emd-primary); color: #ffffff; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.wp-site-blocks > header, .emd-footer, .emd-wa, .emd-share, .emd-progress { display: none !important; }
	body { background: #fff; color: #000; }
}


/* ---------- v1.1: split menu links, editable menu, collections ---------- */
.emd-nav__split { display: flex; align-items: center; }
.emd-nav__split .emd-nav__link { flex: 1; }
.emd-nav__split .emd-mega-toggle {
	flex: none; width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(15, 23, 42, 0.05); border: 1px solid var(--emd-line); border-radius: 12px;
	color: var(--emd-text); cursor: pointer; padding: 0;
}
.emd-nav__link.is-current { color: var(--emd-primary); }
.emd-mega__title a { color: inherit; text-decoration: none; }
.emd-mega__title a:hover { color: var(--emd-primary); }
@media (min-width: 960px) {
	.emd-nav__split .emd-nav__link { flex: none; padding-right: 0.15rem; }
	.emd-nav__split .emd-mega-toggle { width: 26px; height: 26px; background: none; border: 0; border-radius: 6px; margin-right: 0.5rem; color: var(--emd-text-2); }
	.emd-nav__split .emd-mega-toggle:hover { color: var(--emd-primary); }
	.emd-mega__inner--auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

.emd-section--coll { padding-bottom: 0.5rem; }
.emd-colls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.emd-colls li { margin: 0; }
.emd-coll {
	display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden;
	background: var(--emd-card); border: 1px solid var(--emd-line); border-radius: var(--emd-radius);
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.emd-coll:hover { border-color: rgba(4, 120, 87, 0.55); transform: translateY(-2px); }
.emd-coll__img { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.emd-coll__img--ph {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(4, 120, 87, 0.28), rgba(79, 70, 229, 0.28));
	font-size: 2rem; font-weight: 800; color: var(--emd-primary);
}
.emd-coll__txt { display: grid; gap: 0.1rem; padding: 0.75rem 0.85rem 0.9rem; }
.emd-coll__txt strong { color: var(--emd-ink); font-size: 0.98rem; line-height: 1.3; }
.emd-coll__txt small { color: var(--emd-primary); font-weight: 700; font-size: 0.78rem; }
@media (min-width: 640px) { .emd-colls { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .emd-colls { grid-template-columns: repeat(4, 1fr); } }


/* ==========================================================================
   v1.2 — app feel, photos, tags, install, notifications
   ========================================================================== */
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; }
@media (min-width: 960px) { :root { --emd-header-h: 64px; } }

/* Photo cards (always show a photo or a branded placeholder) */
.emd-card__media { position: relative; aspect-ratio: 16 / 10; }
.emd-card__media a, .emd-card__media img, .emd-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.emd-card__media img { object-fit: cover; }
.emd-ph {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(4, 120, 87, 0.32), rgba(79, 70, 229, 0.32));
	font-size: 2.6rem; font-weight: 800; color: var(--emd-primary);
}
@media (max-width: 639px) {
	.emd-post-card .emd-card__media { aspect-ratio: auto; min-height: 124px; height: 100%; }
}

/* Tags */
.emd-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.emd-card__tags a, .emd-tags a, .emd-tagcloud a {
	display: inline-flex; align-items: center; gap: 0.35rem;
	min-height: 28px; padding: 0 0.65rem; box-sizing: border-box;
	font-size: 0.78rem; font-weight: 700; text-decoration: none;
	color: var(--emd-text-2); background: rgba(15, 23, 42, 0.05);
	border: 1px solid var(--emd-line); border-radius: 99px;
}
.emd-card__tags a:hover, .emd-tags a:hover, .emd-tagcloud a:hover { color: var(--emd-primary); border-color: rgba(4, 120, 87, 0.5); }
.emd-tagcloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.emd-tagcloud a { min-height: 36px; padding: 0 0.9rem; font-size: 0.88rem; }
.emd-tagcloud a small { color: var(--emd-muted); font-weight: 700; }
.emd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 1.5rem 0 0; color: var(--emd-muted); }
.emd-tags a { margin: 0; }
.emd-h3 { margin: 1.5rem 0 0.75rem; font-size: 1.05rem; color: var(--emd-ink); }
@media (max-width: 639px) { .emd-post-card .emd-card__tags { display: none; } }

/* Breadcrumbs */
.emd-crumbs ol {
	list-style: none; display: flex; flex-wrap: nowrap; gap: 0.35rem; margin: 0 0 0.9rem; padding: 0;
	overflow-x: auto; white-space: nowrap; scrollbar-width: none;
	font-size: 0.82rem; color: var(--emd-muted);
}
.emd-crumbs ol::-webkit-scrollbar { display: none; }
.emd-crumbs li { margin: 0; }
.emd-crumbs li + li::before { content: "›"; margin-right: 0.35rem; opacity: 0.6; }
.emd-crumbs a { color: var(--emd-muted); text-decoration: none; }
.emd-crumbs a:hover { color: var(--emd-primary); }
.emd-crumbs [aria-current] span { color: var(--emd-text); }

/* Header buttons: install + bell */
.emd-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
	min-height: 46px; padding: 0 1rem; box-sizing: border-box;
	background: rgba(15, 23, 42, 0.04); color: var(--emd-text);
	border: 1px solid var(--emd-line-strong); border-radius: 12px;
	font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer;
}
.emd-iconbtn:hover { border-color: var(--emd-primary); color: var(--emd-primary); }
.emd-iconbtn.is-on { color: var(--emd-primary); border-color: rgba(4, 120, 87, 0.6); }
.emd-ai { flex: none; }
@media (min-width: 960px) {
	.emd-iconbtn { min-height: 42px; padding: 0 0.85rem; }
	.emd-iconbtn--bell { padding: 0 0.7rem; }
}

/* ---------- App bar (phones) ---------- */
.emd-appbar { display: none; }
@media (max-width: 959px) {
	.emd-has-appbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.emd-appbar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: rgba(255, 255, 255, 0.94);
		-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
		border-top: 1px solid var(--emd-line-strong);
		box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.1);
	}
	.emd-appbar__tab {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 64px; padding: 6px 2px; box-sizing: border-box;
		background: none; border: 0; color: var(--emd-muted);
		font: inherit; font-size: 0.68rem; font-weight: 700; text-decoration: none; cursor: pointer;
		position: relative; transition: color 0.15s ease;
	}
	.emd-appbar__tab:active { transform: scale(0.94); }
	.emd-appbar__tab.is-active { color: var(--emd-primary); }
	.emd-appbar__tab.is-active::before {
		content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px;
		border-radius: 0 0 4px 4px; background: var(--emd-primary);
	}
	.emd-has-appbar .emd-wa { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.emd-has-appbar .emd-footer__bottom { padding-bottom: 1.5rem; }
	.emd-card:active, .emd-tiles a:active, .emd-coll:active { transform: scale(0.985); }
}

/* ---------- Bottom sheets ---------- */
.emd-sheet { position: fixed; inset: 0; z-index: 200; }
.emd-sheet__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); opacity: 0; transition: opacity 0.2s ease; }
.emd-sheet.is-open .emd-sheet__backdrop { opacity: 1; }
.emd-sheet__panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
	margin-inline: auto; max-width: 560px; box-sizing: border-box;
	background: #ffffff; border: 1px solid var(--emd-line-strong); border-bottom: 0;
	border-radius: 24px 24px 0 0;
	padding: 0.9rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
	transform: translateY(100%); transition: transform 0.24s ease;
}
.emd-sheet__panel--top { bottom: auto; top: 0; border-radius: 0 0 24px 24px; border: 1px solid var(--emd-line-strong); border-top: 0; transform: translateY(-100%); padding-top: 1rem; }
.emd-sheet.is-open .emd-sheet__panel { transform: none; }
.emd-sheet__grab { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--emd-line-strong); margin: 0 auto 0.8rem; }
.emd-sheet__title { margin: 0 0 0.9rem; font-weight: 800; font-size: 1.1rem; color: var(--emd-ink); }
.emd-sheet__close {
	position: absolute; top: 0.6rem; right: 0.6rem; width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(15, 23, 42, 0.05); border: 0; border-radius: 50%; color: var(--emd-text); cursor: pointer;
}
.emd-search--big { margin: 2.5rem 0 1rem; }
.emd-search--big input { min-height: 54px; font-size: 1.05rem; }
.emd-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.emd-action {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
	min-height: 84px; padding: 0.6rem; box-sizing: border-box; text-align: center;
	background: var(--emd-card); border: 1px solid var(--emd-line); border-radius: 16px;
	color: var(--emd-text); font: inherit; font-weight: 700; font-size: 0.85rem; text-decoration: none; cursor: pointer;
}
.emd-action:active { transform: scale(0.97); }
.emd-action.is-on { color: var(--emd-primary); border-color: rgba(4, 120, 87, 0.5); }
.emd-action--wa { color: #04210f; background: var(--emd-wa); border-color: transparent; }
.emd-action--wa .emd-ico { width: 24px; height: 24px; }
.emd-sheet__links { list-style: none; margin: 0; padding: 0; }
.emd-sheet__links li { margin: 0; border-top: 1px solid var(--emd-line); }
.emd-sheet__links a { display: flex; align-items: center; min-height: 50px; color: var(--emd-text); text-decoration: none; font-weight: 600; }
.emd-ios-hint { margin: 0.9rem 0 0; padding: 0.8rem 0.9rem; font-size: 0.88rem; line-height: 1.5; color: var(--emd-text); background: rgba(4, 120, 87, 0.1); border: 1px solid rgba(4, 120, 87, 0.3); border-radius: 12px; }
@media (min-width: 960px) { .emd-sheet { display: none !important; } }

/* ---------- Install banner ---------- */
.emd-install {
	position: fixed; z-index: 120; display: flex; align-items: center; gap: 0.75rem;
	left: 0.75rem; right: 0.75rem; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	padding: 0.7rem 0.8rem; box-sizing: border-box;
	background: #ffffff; border: 1px solid var(--emd-line-strong); border-radius: 18px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.emd-install img { border-radius: 11px; flex: none; }
.emd-install__txt { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.emd-install__txt strong { color: var(--emd-ink); font-size: 0.95rem; }
.emd-install__txt span { color: var(--emd-muted); font-size: 0.8rem; }
.emd-install .emd-btn { min-height: 40px; padding: 0.4rem 1rem; }
.emd-install__x { background: none; border: 0; color: var(--emd-muted); cursor: pointer; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
@media (min-width: 960px) {
	.emd-install { left: auto; right: 1.25rem; bottom: 1.25rem; width: 390px; }
}

/* ---------- Installed app mode ---------- */
.emd-standalone [data-emd-install], .emd-standalone .emd-install { display: none !important; }
.emd-standalone body { overscroll-behavior-y: contain; }
@media (display-mode: standalone) and (max-width: 959px) {
	.emd-header__bar { height: 52px; }
	:root { --emd-header-h: 52px; }
}

/* ==========================================================================
   v1.3 — premium white, blog-first
   ========================================================================== */
body { background: #ffffff; color: var(--emd-text); }
h1, h2, h3, h4 { color: var(--emd-ink); }
.emd-header { box-shadow: 0 1px 0 var(--emd-line), 0 8px 24px rgba(15, 23, 42, 0.04); }

/* Soft premium shadows */
.emd-card, .emd-tiles a, .emd-coll, .emd-features li, .emd-side, .emd-trend a { box-shadow: var(--emd-shadow); }
.emd-card:hover, .emd-tiles a:hover, .emd-coll:hover { box-shadow: var(--emd-shadow-hi); border-color: rgba(4, 120, 87, 0.35); }
.emd-card { border-radius: var(--emd-radius); }

/* Hero (blog first) */
.emd-hero {
	padding: 2.5rem 0 1.75rem;
	background:
		radial-gradient(55% 60% at 12% 0%, rgba(4, 120, 87, 0.10), transparent 70%),
		radial-gradient(50% 60% at 92% 10%, rgba(79, 70, 229, 0.10), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
	border-bottom: 1px solid var(--emd-line);
}
.emd-hero__center { max-width: 860px; text-align: center; }
.emd-hero__title {
	font-family: var(--emd-serif); font-weight: 700; letter-spacing: -0.02em;
	font-size: clamp(2.25rem, 10vw, 4.6rem); line-height: 1.06; margin: 0.4rem 0 1rem; color: var(--emd-ink);
}
.emd-hero__center .emd-lead { margin-inline: auto; font-size: clamp(1.02rem, 3.6vw, 1.2rem); }
.emd-hero__center .emd-searchbox { margin-inline: auto; max-width: 640px; }
.emd-hero__center .emd-chips ul { justify-content: flex-start; }
.emd-pill--sm { padding: 0.25rem 0.7rem; font-size: 0.72rem; margin: 0; justify-self: start; }
.emd-section--tight { padding-top: 1.75rem; }
@media (min-width: 900px) {
	.emd-hero { padding: 4.5rem 0 3rem; }
	.emd-hero__center .emd-chips ul { justify-content: center; }
	.emd-section--tight { padding-top: 3rem; }
}
.emd-searchbox .wp-block-search__input { background: #ffffff; box-shadow: var(--emd-shadow); }

/* Featured story */
.emd-featured { display: grid; gap: 1.25rem; }
.emd-feature {
	display: flex; flex-direction: column; overflow: hidden;
	background: #ffffff; border: 1px solid var(--emd-line); border-radius: 24px; box-shadow: var(--emd-shadow-hi);
}
.emd-feature .emd-card__media { aspect-ratio: 16 / 10; }
.emd-feature__body { display: grid; gap: 0.7rem; align-content: start; padding: 1.25rem 1.25rem 1.5rem; }
.emd-feature__title { margin: 0; font-family: var(--emd-serif); font-size: clamp(1.55rem, 6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
.emd-feature__title a { color: var(--emd-ink); text-decoration: none; }
.emd-feature__title a:hover { color: var(--emd-primary); }
.emd-feature__text { margin: 0; color: var(--emd-text-2); font-size: 1.02rem; line-height: 1.65; }
.emd-feature__meta { display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; color: var(--emd-muted); }
.emd-feature__meta span { display: grid; line-height: 1.35; }
.emd-feature__meta strong { color: var(--emd-ink); }
.emd-feature .emd-btn { justify-self: start; margin-top: 0.25rem; }
.emd-avatar { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; flex: none; }
.emd-feature-side { display: grid; gap: 0.7rem; align-content: start; }
.emd-side { display: flex; gap: 0.8rem; padding: 0.6rem; background: #ffffff; border: 1px solid var(--emd-line); border-radius: 16px; text-decoration: none; }
.emd-side:hover { border-color: rgba(4, 120, 87, 0.35); }
.emd-side img, .emd-side__ph { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.emd-side__ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(4, 120, 87, 0.15), rgba(79, 70, 229, 0.15)); font-weight: 800; font-size: 1.6rem; color: var(--emd-primary); }
.emd-side__txt { display: grid; gap: 0.15rem; align-content: center; min-width: 0; }
.emd-side__txt small { color: var(--emd-primary); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.emd-side__txt strong { color: var(--emd-ink); font-size: 0.95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.emd-side__txt em { color: var(--emd-muted); font-size: 0.78rem; font-style: normal; }
@media (min-width: 960px) {
	.emd-featured { grid-template-columns: 1.7fr 1fr; gap: 1.75rem; align-items: start; }
	.emd-feature-side .emd-mega__title { margin-bottom: 0.25rem; }
}

/* Trending */
.emd-trend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.emd-trend li { margin: 0; }
.emd-trend a { display: flex; gap: 1rem; align-items: center; padding: 0.9rem 1rem; background: #ffffff; border: 1px solid var(--emd-line); border-radius: 16px; text-decoration: none; }
.emd-trend a:hover { border-color: rgba(4, 120, 87, 0.35); }
.emd-trend__n { font-family: var(--emd-serif); font-size: 2rem; font-weight: 700; line-height: 1; color: rgba(15, 23, 42, 0.18); min-width: 2.2rem; }
.emd-trend__t { display: grid; gap: 0.1rem; min-width: 0; }
.emd-trend__t small { color: var(--emd-primary); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.emd-trend__t strong { color: var(--emd-ink); font-size: 1rem; line-height: 1.3; }
.emd-trend__t em { color: var(--emd-muted); font-style: normal; font-size: 0.8rem; }
@media (min-width: 720px) { .emd-trend { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; } }
@media (min-width: 1024px) { .emd-trend { grid-template-columns: repeat(3, 1fr); } }

/* Articles: editorial feel */
.emd-title--article { font-family: var(--emd-serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.emd-prose { font-family: var(--emd-serif); font-size: 1.125rem; line-height: 1.85; color: #1e293b; }
.emd-prose h2, .emd-prose h3, .emd-prose h4 { font-family: var(--wp--preset--font-family--manrope), -apple-system, 'Segoe UI', sans-serif; color: var(--emd-ink); }
.emd-prose pre { color: #e2e8f0; }
.emd-prose blockquote { font-family: var(--emd-serif); font-style: italic; font-size: 1.2rem; color: var(--emd-ink); background: var(--emd-bg-alt); padding: 1rem 1.25rem; border-radius: 0 14px 14px 0; }
.emd-views { white-space: nowrap; }

/* Table of contents (built by JS) */
.emd-toc { margin: 0 0 1.75rem; padding: 0.9rem 1.1rem; background: var(--emd-bg-alt); border: 1px solid var(--emd-line); border-radius: 16px; font-family: var(--wp--preset--font-family--manrope), -apple-system, 'Segoe UI', sans-serif; }
.emd-toc summary { cursor: pointer; font-weight: 800; color: var(--emd-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.emd-toc summary::-webkit-details-marker { display: none; }
.emd-toc summary::after { content: "−"; color: var(--emd-muted); font-size: 1.2rem; }
.emd-toc:not([open]) summary::after { content: "+"; }
.emd-toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.2rem; }
.emd-toc li { margin: 0; font-size: 0.95rem; }
.emd-toc a { display: inline-block; padding: 0.25rem 0; color: var(--emd-text-2); text-decoration: none; }
.emd-toc a:hover { color: var(--emd-primary); }
.emd-toc .emd-toc__sub { margin-left: 1rem; list-style: circle; }

/* Author box, WhatsApp CTA, prev/next */
.emd-author { display: flex; gap: 1rem; align-items: flex-start; margin: 1.75rem 0; padding: 1.1rem; background: var(--emd-bg-alt); border: 1px solid var(--emd-line); border-radius: 18px; }
.emd-author .emd-avatar { width: 64px; height: 64px; }
.emd-author__label { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emd-muted); }
.emd-author__name { margin: 0.1rem 0 0.3rem; font-weight: 800; font-size: 1.1rem; }
.emd-author__name a { color: var(--emd-ink); text-decoration: none; }
.emd-author__bio { margin: 0; color: var(--emd-text-2); font-size: 0.95rem; line-height: 1.6; }
.emd-wacta { display: grid; gap: 0.9rem; align-items: center; margin: 1.5rem 0; padding: 1.1rem 1.2rem; background: #effcf4; border: 1px solid rgba(37, 211, 102, 0.45); border-radius: 18px; }
.emd-wacta strong { display: block; color: #064e2b; font-size: 1.05rem; }
.emd-wacta span { color: #166534; font-size: 0.92rem; }
.emd-wacta .emd-btn { width: 100%; }
@media (min-width: 640px) { .emd-wacta { grid-template-columns: 1fr auto; } .emd-wacta .emd-btn { width: auto; } }
.emd-pn { gap: 0.75rem; margin: 1.75rem 0; }
.emd-pn .wp-block-post-navigation-link { flex: 1 1 240px; padding: 0.9rem 1rem; border: 1px solid var(--emd-line); border-radius: 14px; box-shadow: var(--emd-shadow); font-size: 0.82rem; color: var(--emd-muted); box-sizing: border-box; }
.emd-pn .post-navigation-link-next { text-align: right; }
.emd-pn a { display: block; margin-top: 0.15rem; color: var(--emd-ink); text-decoration: none; font-weight: 800; font-size: 0.98rem; line-height: 1.35; }
.emd-pn a:hover { color: var(--emd-primary); }

/* WhatsApp: header button + admin setup hint */
.emd-iconbtn--wa { background: #effcf4; color: #0a6b35; border-color: rgba(37, 211, 102, 0.55); }
.emd-iconbtn--wa:hover { background: var(--emd-wa); color: #fff; border-color: transparent; }
.emd-iconbtn--wa .emd-ico { width: 20px; height: 20px; }
@media (min-width: 960px) and (max-width: 1199px) { .emd-iconbtn--wa span { display: none; } }
.emd-wa--setup { background: #0b1220; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3); height: auto; min-height: 58px; padding: 0.5rem 1rem 0.5rem 0.85rem; border-radius: 18px; }
.emd-wa--setup .emd-wa__label { display: inline; font-size: 0.78rem; line-height: 1.25; max-width: 170px; text-align: left; }
.emd-wa--setup::after { display: none; }

/* Footer on white */
.emd-footer { background: var(--emd-bg-alt); }
.emd-footer__bottom { background: #ffffff; }
.emd-footer__cta-in { background: #ffffff; box-shadow: var(--emd-shadow-hi); }
.emd-totop { background: #ffffff; }

/* Misc polish */
.emd-mega { box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12); }
.emd-mini { background: #ffffff; }
.emd-sheet__panel { box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.18); }
.emd-install { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18); }
.emd-btn--primary, .emd-fill .wp-block-button__link { box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18); }
.emd-btn--wa { box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }
.emd-card__cat a { color: var(--emd-primary); }
.emd-badge { background: #fffbeb; }
::selection { background: rgba(4, 120, 87, 0.2); color: var(--emd-ink); }
