/* المروة فودز — تصميم وتطوير Ar4ho.com */
:root {
	--em-deep: #134212;
	--em-deep-2: #0d300d;
	--em-leaf: #80b03a;
	--em-leaf-d: #5f8a22;
	--em-cream: #f4ead5;
	--em-mint: #f1f8e8;
	--em-brown: #6c3428;
	--em-ink: #1d2a1c;
	--em-mute: #56634f;
	--em-line: #e3e9dc;
	--em-bg: #fff; --em-card: #fff; --em-card2: #f7f9f3; --em-bd: #cfdac6; --em-field: #fbfdf9; --em-cat1: #e7f1d8; --em-cat2: #efe5dc; --em-ok-bg: #e4f2d4; --em-bad-bg: #f8e3dd; --em-bad: #8e2c17; --em-deep-t: #134212; --em-leaf-t: #476b12; --em-brown-t: #6c3428;
	--em-r: 18px;
	--em-head: "Noto Kufi Arabic", Tahoma, sans-serif;
	--em-body: Tajawal, Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--em-body); font-size: 17px; line-height: 1.8; color: var(--em-ink); background: var(--em-bg); direction: rtl; text-align: right; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--em-deep-t); }
a:hover { color: var(--em-leaf-t); }
:focus-visible { outline: 3px solid var(--em-leaf); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--em-head); line-height: 1.45; margin: 0 0 12px; color: var(--em-ink); }
p { margin: 0 0 14px; }
bdi { unicode-bidi: isolate; direction: ltr; }
.em-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.em-skip { position: absolute; right: -9999px; top: 0; background: var(--em-card); padding: 8px 14px; z-index: 100; }
.em-skip:focus { right: 10px; }
.em-muted { color: var(--em-mute); }
.em-en { direction: ltr; text-align: right; font-size: 12.5px; letter-spacing: .04em; color: var(--em-mute); margin: 0 0 6px; font-family: Tahoma, sans-serif; }
.em-en-lg { font-size: 14px; }
.em-ico { width: 20px; height: 20px; flex: none; }

/* Buttons */
.em-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--em-deep); color: #fff; font-family: var(--em-head); font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--em-deep); cursor: pointer; transition: background .15s, color .15s; }
.em-btn:hover { background: var(--em-deep-2); border-color: var(--em-deep-2); color: #fff; }
.em-btn-leaf { background: var(--em-leaf); border-color: var(--em-leaf); color: var(--em-deep-2); }
.em-btn-leaf:hover { background: #93c44a; border-color: #93c44a; color: var(--em-deep-2); }
.em-btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.em-btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.em-btn-ghost { background: var(--em-card); color: var(--em-deep-t); }
.em-btn-ghost:hover { background: var(--em-mint); color: var(--em-deep-t); }
.em-btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Top bar + header */
.em-topbar { background: var(--em-deep); color: #e4f0d6; font-size: 13.5px; }
.em-topbar .em-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.em-topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.em-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.em-topbar .em-ico { width: 16px; height: 16px; color: var(--em-leaf); }
.em-header { background: var(--em-card); border-bottom: 1px solid var(--em-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .em-header { top: 32px; }
.em-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.em-brand img { max-height: 64px; width: auto; }
.em-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--em-deep-t); }
.em-wordmark strong { display: block; font-family: var(--em-head); font-size: 26px; font-weight: 800; line-height: 1.2; }
.em-wordmark small { display: block; font-size: 10.5px; letter-spacing: .18em; color: var(--em-leaf-t); font-weight: 700; direction: ltr; text-align: right; }
.em-leaf { width: 34px; height: 34px; border-radius: 0 60% 0 60%; background: var(--em-leaf); box-shadow: inset -8px -8px 0 var(--em-deep); }
.em-brand-light .em-wordmark, .em-brand-light .em-wordmark strong { color: #fff; }
.em-brand-light img { background: #ffffff; border-radius: 12px; padding: 6px 10px; }
.em-nav { display: flex; align-items: center; gap: 18px; }
.em-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.em-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-family: var(--em-head); font-weight: 700; font-size: 14.5px; color: var(--em-ink); text-decoration: none; }
.em-menu a:hover { background: var(--em-mint); color: var(--em-deep-t); }
.em-menu .current-menu-item > a, .em-menu .current_page_item > a, .em-menu .current-menu-ancestor > a { color: var(--em-deep-t); box-shadow: inset 0 -3px 0 var(--em-leaf); border-radius: 0; }
.em-burger { display: none; width: 48px; height: 48px; border: 1px solid var(--em-line); border-radius: 12px; background: var(--em-card); color: var(--em-deep-t); cursor: pointer; align-items: center; justify-content: center; }
.em-burger .em-ico { width: 24px; height: 24px; }

/* Hero */
.em-hero { background: var(--em-deep); color: #fff; overflow: hidden; position: relative; }
.em-hero::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 0 60% 0 60%; background: rgba(128,176,58,.14); }
.em-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; position: relative; z-index: 1; }
.em-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.em-hero-text > p { color: #dbe9cf; font-size: 18.5px; max-width: 580px; }
.em-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.em-hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #e9f3de; font-size: 15px; }
.em-hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.em-hero-points .em-ico { color: var(--em-leaf); margin-top: 4px; }
.em-hero-visual { position: relative; }
.em-hero-photo, .em-hero-visual > img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 28px 28px 28px 120px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.em-hero-jars { background: var(--em-cream); border-radius: 28px 28px 28px 120px; aspect-ratio: 4/3.4; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; }
.em-hero-jars .em-jar { width: 40%; }
.em-hero-badge { position: absolute; bottom: 18px; right: 18px; background: var(--em-leaf); color: var(--em-deep-2); border-radius: 18px; padding: 12px 20px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.em-hero-badge strong { font-family: var(--em-head); font-size: 30px; line-height: 1.2; }
.em-hero-badge span { font-size: 13px; font-weight: 700; }
.em-kicker { display: inline-block; font-family: var(--em-head); font-size: 13px; font-weight: 700; color: var(--em-leaf-t); background: var(--em-mint); padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.em-kicker-light { background: rgba(255,255,255,.12); color: #cfe7b0; }

/* Stats */
.em-stats { background: var(--em-cream); }
.em-stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 34px; padding-bottom: 34px; text-align: center; }
.em-stats strong { display: block; font-family: var(--em-head); font-size: clamp(28px, 3.4vw, 40px); color: var(--em-deep-t); line-height: 1.3; direction: ltr; }
.em-stats span { color: var(--em-brown-t); font-weight: 700; font-size: 15px; }

/* Sections */
.em-sec { padding: 80px 0; }
.em-sec-tint { background: var(--em-mint); }
.em-sec-top0 { padding-top: 24px; }
.em-sec-head { margin-bottom: 32px; max-width: 720px; }
.em-sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--em-deep-t); margin: 0; }
.em-sec-head p { margin-top: 10px; color: var(--em-mute); }
.em-sec-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.em-sec-row .em-sec-head { margin-bottom: 0; }
.em-h2 { font-size: 24px; color: var(--em-deep-t); }
.em-h3 { font-size: 17px; margin-top: 22px; }
.em-lead { font-size: 20px; color: var(--em-ink); }
.em-narrow { max-width: 820px; }

/* Categories */
.em-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.em-cat { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--em-r); background: var(--em-cream); text-decoration: none; color: var(--em-ink); border: 1px solid transparent; transition: transform .15s, border-color .15s; }
.em-cat:hover { transform: translateY(-3px); border-color: var(--em-leaf); color: var(--em-ink); }
.em-cat-green-olives { background: var(--em-cat1); }
.em-cat-black-olives { background: var(--em-cat2); }
.em-cat-art { width: 84px; flex: none; }
.em-cat-text strong { display: block; font-family: var(--em-head); font-size: 20px; color: var(--em-deep-t); }
.em-cat-text small { color: var(--em-mute); font-size: 14px; }

/* Product grid + card */
.em-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.em-card { background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.em-card:hover { box-shadow: 0 16px 36px rgba(19,66,18,.12); transform: translateY(-3px); }
.em-card-img { display: block; background: var(--em-card2); aspect-ratio: 1; }
.em-card-img img, .em-card-img .em-jar { width: 100%; height: 100%; object-fit: cover; }
.em-card-img .em-jar { padding: 18%; }
.em-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.em-card h3 { font-size: 16.5px; margin: 6px 0 2px; }
.em-card h3 a { color: var(--em-ink); text-decoration: none; }
.em-card h3 a:hover { color: var(--em-deep-t); }
.em-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--em-head); font-size: 13.5px; font-weight: 700; text-decoration: none; min-height: 32px; }
.em-card-link .em-ico { width: 16px; height: 16px; }
.em-tag { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--em-mint); color: var(--em-leaf-t); }

/* Split blocks */
.em-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.em-split-top { align-items: start; }
.em-split-media img { width: 100%; border-radius: 120px 28px 28px 28px; aspect-ratio: 4/3.3; object-fit: cover; }
.em-media-ph { background: var(--em-cream); border-radius: 120px 28px 28px 28px; aspect-ratio: 4/3.3; display: flex; align-items: center; justify-content: center; }
.em-media-ph .em-jar { width: 34%; }
.em-checks { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; }
.em-checks li { display: flex; gap: 10px; align-items: flex-start; }
.em-checks .em-ico { color: #fff; background: var(--em-leaf); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 4px; }
.em-checks-sm { font-size: 15px; margin-bottom: 0; }

/* Export band */
.em-export-band { background: var(--em-brown); color: #fff; }
.em-export-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.em-export-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.em-countries { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.em-countries li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 700; font-size: 15px; }
.em-countries .em-ico { width: 16px; height: 16px; color: var(--em-leaf); }
.em-countries-dark li { background: var(--em-mint); color: var(--em-deep-t); }

/* CTA */
.em-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--em-cream); border-radius: 28px; padding: 40px 44px; }
.em-cta h2 { color: var(--em-deep-t); font-size: clamp(22px, 2.6vw, 30px); }
.em-cta p { margin: 0; color: var(--em-brown-t); }
.em-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page hero + filters */
.em-page-hero { background: var(--em-deep); color: #fff; padding: 56px 0 50px; position: relative; overflow: hidden; }
.em-page-hero::after { content: ""; position: absolute; left: -60px; top: -80px; width: 260px; height: 260px; border-radius: 0 60% 0 60%; background: rgba(128,176,58,.16); }
.em-page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 0; }
.em-page-hero p { color: #d7e7c8; margin: 8px 0 0; font-size: 18px; }
.em-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.em-filter a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; border: 1px solid var(--em-line); text-decoration: none; font-family: var(--em-head); font-weight: 700; font-size: 14px; color: var(--em-ink); }
.em-filter a.is-active, .em-filter a:hover { background: var(--em-deep); border-color: var(--em-deep); color: #fff; }
.em-pager { margin-top: 36px; }
.em-pager .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.em-pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--em-line); text-decoration: none; padding: 0 12px; }
.em-pager .current { background: var(--em-deep); color: #fff; border-color: var(--em-deep); }
.em-empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.em-crumbs { padding-top: 22px; font-size: 14px; color: var(--em-mute); }
.em-crumbs a { text-decoration: none; }

/* Single product */
.em-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: start; }
.em-product-media { background: var(--em-card2); border-radius: 28px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--em-line); }
.em-product-media img { width: 100%; height: 100%; object-fit: cover; }
.em-product-media .em-jar { width: 100%; height: 100%; padding: 20%; }
.em-product-info h1 { font-size: clamp(26px, 3vw, 38px); color: var(--em-deep-t); margin: 10px 0 2px; }
.em-sizes { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.em-sizes li { padding: 6px 16px; border-radius: 10px; border: 1px solid var(--em-line); background: var(--em-card); font-weight: 700; font-size: 15px; }
.em-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.em-prose { font-size: 17.5px; }

/* Boxes, branches, gallery, certificates */
.em-two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.em-box { background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-r); padding: 28px; }
.em-box > .em-ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--em-mint); color: var(--em-deep-t); margin-bottom: 12px; }
.em-box h2 { font-size: 21px; color: var(--em-deep-t); }
.em-box p:last-child { margin: 0; }
.em-box a { display: block; font-weight: 700; text-decoration: none; margin-top: 4px; }
.em-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.em-branch { border: 1px solid var(--em-line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.em-branch strong { font-family: var(--em-head); color: var(--em-deep-t); font-size: 17px; }
.em-branch span, .em-branch a { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--em-mute); text-decoration: none; }
.em-branch .em-ico { width: 17px; height: 17px; color: var(--em-leaf-t); }
.em-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.em-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.em-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 30px; }
.em-cert { margin: 0; background: var(--em-card); border: 1px solid var(--em-line); border-radius: var(--em-r); padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.em-cert img { max-height: 320px; width: auto; }
.em-cert-ph { flex-direction: column; gap: 12px; background: var(--em-mint); text-align: center; font-family: var(--em-head); font-weight: 700; color: var(--em-deep-t); }
.em-cert-ph .em-ico { width: 56px; height: 56px; color: var(--em-leaf-t); }
.em-contact-cards { display: grid; gap: 16px; }

/* Forms */
.em-form-card { background: var(--em-card); border: 1px solid var(--em-line); border-radius: 24px; padding: 30px; box-shadow: 0 20px 50px rgba(19,66,18,.07); }
.em-form { display: grid; gap: 14px; }
.em-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.em-form input, .em-form textarea { width: 100%; font: inherit; font-weight: 400; border: 1px solid var(--em-bd); border-radius: 12px; padding: 10px 14px; min-height: 48px; background: var(--em-field); color: var(--em-ink); }
.em-form input:focus, .em-form textarea:focus { border-color: var(--em-leaf-d); outline: 3px solid rgba(128,176,58,.25); outline-offset: 0; }
.em-form .em-btn { justify-self: start; }
.em-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.em-hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }
.em-form-msg { padding: 12px 16px; border-radius: 12px; font-weight: 700; margin: 0; }
.em-form-msg.ok { background: var(--em-ok-bg); color: var(--em-deep-t); }
.em-form-msg.bad { background: var(--em-bad-bg); color: var(--em-bad); }

/* Footer */
.em-footer { background: var(--em-deep-2); color: #c9dbbd; font-size: 15.5px; }
.em-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 44px; padding-top: 64px; padding-bottom: 48px; }
.em-footer h2 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.em-footer a { color: #fff; text-decoration: none; }
.em-footer a:hover { color: var(--em-leaf); }
.em-footer-about p { margin-top: 16px; }
.em-slogan { color: var(--em-leaf); font-family: var(--em-head); font-weight: 700; }
.em-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.em-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.em-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.em-contact-list .em-ico { color: var(--em-leaf); margin-top: 4px; width: 18px; height: 18px; }
.em-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.em-footer-bottom .em-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.em-footer-bottom a { color: var(--em-leaf); font-weight: 700; }
.em-wa-float { position: fixed; left: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,.25); z-index: 60; }
.em-wa-float .em-ico { width: 30px; height: 30px; }
.em-wa-float:hover { color: #fff; background: #1fb457; }

/* Responsive */
@media (max-width: 1080px) {
	.em-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.em-menu a { padding: 0 8px; font-size: 14px; }
}
@media (max-width: 900px) {
	.em-burger { display: inline-flex; }
	.em-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--em-card); border-bottom: 1px solid var(--em-line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 10px; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
	.em-nav.is-open { display: flex; }
	.em-menu { flex-direction: column; }
	.em-menu a { width: 100%; padding: 0 12px; }
	.em-header-in { position: relative; min-height: 72px; }
	.em-hero-in, .em-split, .em-product, .em-two-cards { grid-template-columns: 1fr; gap: 34px; }
	.em-hero-in { padding-top: 48px; padding-bottom: 64px; }
	.em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.em-stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.em-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.em-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.em-sec { padding: 56px 0; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.em-wrap { padding-left: 16px; padding-right: 16px; }
	.em-topbar span:first-child { display: none; }
	.em-grid-2 { grid-template-columns: 1fr; }
	.em-cta { padding: 28px 22px; }
	.em-card-body { padding: 12px 12px 14px; }
	.em-card h3 { font-size: 15px; }
	.em-brand img { max-height: 52px; }
	.em-form-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) {
	.em-wa-float { width: 50px; height: 50px; left: 14px; bottom: 14px; }
	.em-wa-float .em-ico { width: 26px; height: 26px; }
}

/* ===== Header tools: dark / light switch + account menu ===== */
.em-tools { display: flex; align-items: center; gap: 8px; }
.em-tool { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--em-bd); background: var(--em-card); color: var(--em-deep-t); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.em-tool:hover { border-color: var(--em-leaf-d); }
.em-tool svg { width: 20px; height: 20px; }
.em-tool .i-sun, html[data-theme=dark] .em-tool .i-moon { display: none; }
html[data-theme=dark] .em-tool .i-sun { display: block; color: #f2c14e; }
.em-credit a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .em-tools { margin-inline-start: auto; } }

/* ===== Dark mode: white surfaces turn black, brand green stays ===== */
html[data-theme=dark] {
	--em-bg: #0b0b0b; --em-card: #161616; --em-card2: #1c1c1c; --em-bd: #3d3d3d; --em-field: #0f0f0f;
	--em-ink: #f2f2f2; --em-mute: #b5b5b5; --em-line: #2a2a2a; --em-mint: #171717; --em-cream: #1c1c1c;
	--em-cat1: #1c1c1c; --em-cat2: #1c1c1c; --em-ok-bg: #13301a; --em-bad-bg: #3a1512; --em-bad: #ff9a8a;
	--em-deep-t: #a6d36a; --em-leaf-t: #a6d36a; --em-brown-t: #e8b4a4;
	color-scheme: dark;
}
html[data-theme=dark] .em-header .custom-logo { background: #fff; border-radius: 12px; padding: 6px 10px; }
html[data-theme=dark] .em-btn { border-color: #2f6b3a; }
html[data-theme=dark] .em-btn-ghost { background: transparent; border-color: #a6d36a; }
html[data-theme=dark] .em-card:hover { box-shadow: 0 0 0 1px #3d3d3d; }
html[data-theme=dark] .em-form-card { box-shadow: none; }
html[data-theme=dark] ::placeholder { color: #8a8a8a; }
html[data-theme=dark] .em-filter a.is-active, html[data-theme=dark] .em-filter a:hover, html[data-theme=dark] .em-pager .current { color: #fff; }
