/* ==========================================================================
   E-Maps theme — layout & components
   Colours and fonts come from theme.json (var(--wp--preset--…)).
   Design: "E-Maps Website Redesign" canvas. Signature: the faint lat/long
   graticule (.em-grat) and amber map-pin dots.
   ========================================================================== */

:root {
	--em-ink: var(--wp--preset--color--ink, #0B1F33);
	--em-blue: var(--wp--preset--color--blue, #025593);
	--em-blue-deep: var(--wp--preset--color--blue-deep, #013F6E);
	--em-navy: var(--wp--preset--color--navy, #022E4F);
	--em-navy-line: #1D4A6E;
	--em-sky: var(--wp--preset--color--sky, #5DADDD);
	--em-sky-light: var(--wp--preset--color--sky-light, #E3F1FA);
	--em-amber: var(--wp--preset--color--amber, #E8A33A);
	--em-green: var(--wp--preset--color--green, #9FD5B7);
	--em-cell: #EEF6EF;
	--em-ground: var(--wp--preset--color--ground, #F3F6F9);
	--em-line: var(--wp--preset--color--line, #D8E1EA);
	--em-line-soft: #E1E7ED;
	--em-body: var(--wp--preset--color--body, #3A4F66);
	--em-muted: var(--wp--preset--color--muted, #56697E);
	--em-on-dark: var(--wp--preset--color--on-dark, #C5D6E6);
	--em-display: var(--wp--preset--font-family--display, Archivo, sans-serif);
	--em-text: var(--wp--preset--font-family--text, "Source Sans 3", sans-serif);
	--em-mono: var(--wp--preset--font-family--mono, "IBM Plex Mono", monospace);
	--em-gutter: 24px;
	--em-max: 1240px;
	--em-radius: 14px;
	--em-shadow: 0 40px 80px -40px rgba(2, 46, 79, .45);
	--em-shadow-sm: 0 12px 30px -16px rgba(2, 46, 79, .5);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks p, .wp-site-blocks li, .wp-site-blocks td { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-stretch: 108%; }

/* ---------- Building blocks -------------------------------------------- */

.em-container { max-width: var(--em-max); margin-inline: auto !important; padding-inline: var(--em-gutter); box-sizing: border-box; width: 100%; }
.em-container--narrow { max-width: 1000px; }
.em-section { padding-block: clamp(64px, 8vw, 96px); margin: 0 !important; }
.em-section--top0 { padding-top: 0; }
.em-section--top-sm { padding-top: clamp(40px, 5vw, 56px); }
.em-section--tight { padding-block: clamp(32px, 4vw, 40px); }
.em-section--top0.em-section--tight { padding-top: 0; }
.em-white { background: #FFFFFF; border-block: 1px solid var(--em-line); }
.em-dark { background: var(--em-navy); color: #FFFFFF; }
.em-dark p, .em-dark li, .em-dark .em-lead { color: var(--em-on-dark); }
.em-dark h1, .em-dark h2, .em-dark h3 { color: #FFFFFF; }
.em-grat { background-image: linear-gradient(rgba(2, 85, 147, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(2, 85, 147, .07) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; }
.em-dark.em-grat { background-image: linear-gradient(rgba(93, 173, 221, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 173, 221, .13) 1px, transparent 1px); }
.em-section.em-grat:not(.em-dark) { border-bottom: 1px solid var(--em-line); }

.em-stack { display: flex; flex-direction: column; gap: 20px; }
.em-stack--xs { gap: 6px; }
.em-stack--sm { gap: 14px; }
.em-stack--lg { gap: 24px; }
.em-stack--xl { gap: clamp(36px, 4vw, 52px); }
.em-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: flex-start; }
.em-row > * { flex: 1 1 420px; min-width: 0; }
.em-row--center { align-items: center; }
.em-row--end { align-items: flex-end; }
.em-row--reverse { flex-direction: row-reverse; }
.em-grid { display: grid; gap: 20px; }
.em-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.em-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.em-push { margin-top: auto !important; }

/* Neutralise WordPress flow-layout margins inside our layout containers. */
.em-section [class*="em-"] > *, .em-section .wp-block-details > * { margin-block: 0; }

.em-section h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.em-section h3 { margin: 0; }
.em-h-md { font-size: clamp(22px, 2.2vw, 26px) !important; }
.em-h-sm { font-size: 22px !important; line-height: 1.2 !important; }
.em-lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--em-body); max-width: 640px; margin: 0; }
.em-small, .em-section .em-small { font-size: 14px; line-height: 1.5; color: var(--em-muted); margin: 0; }
.em-dark .em-small { color: #9FB6CB; }
.em-mono { font-family: var(--em-mono); font-size: 13px !important; }
.em-section p { margin: 0; }
.em-section a:not(.wp-block-button__link) { text-underline-offset: 3px; }

.em-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--em-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--em-blue) !important; margin: 0; }
.em-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--em-amber); box-shadow: 0 0 0 4px rgba(232, 163, 58, .25); flex: none; }
.em-dark .em-eyebrow { color: #9FD0EE !important; }

.em-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.em-section-head > .em-stack { flex: 1 1 520px; max-width: 720px; }
.em-section-head > .em-lead { flex: 0 1 460px; max-width: 460px; font-size: 18px; }
.em-section-head--center { flex-direction: column; align-items: center; text-align: center; }
.em-section-head--center > .em-stack { flex: none; align-items: center; }
.em-section-head--center .em-eyebrow { align-self: center; }
.em-section-head--center > .em-lead { flex: none; max-width: 640px; }

/* ---------- Buttons ---------------------------------------------------- */

.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; box-sizing: border-box; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.wp-block-buttons { gap: 12px; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--em-ink); border: 1.5px solid #9DB0C3; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--em-ink); color: var(--em-ink); }
.wp-block-button.is-style-light .wp-block-button__link { background: #FFFFFF; color: var(--em-navy); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--em-sky-light); color: var(--em-navy); }
.wp-block-button.is-style-line .wp-block-button__link { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .55); }
.wp-block-button.is-style-line .wp-block-button__link:hover { border-color: #FFFFFF; color: #FFFFFF; }
.wp-block-button__link:focus-visible, .em-btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, .em-tab:focus-visible { outline: 3px solid var(--em-amber); outline-offset: 2px; }
.em-btns-wide .wp-block-button { flex: 1; }
.em-btns-wide .wp-block-button__link { width: 100%; min-height: 54px; font-size: 17px; }

.em-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; background: var(--em-blue); color: #FFFFFF !important; font: 600 16px/1 var(--em-text); text-decoration: none; white-space: nowrap; }
.em-btn:hover { background: var(--em-blue-deep); }

/* ---------- Lists, tags, chips ------------------------------------------ */

.em-checks, .em-dots, .em-links, .em-specs, .em-toc { list-style: none; padding: 0; margin: 0; }
.em-checks, .em-dots { display: flex; flex-direction: column; gap: 10px; color: var(--em-body); }
/* Bullets are positioned, not flex: a flex <li> would split inline links into separate columns. */
.em-checks li, .em-dots li { position: relative; padding-left: 24px; line-height: 1.5; }
.em-checks li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--em-blue); border-bottom: 2.5px solid var(--em-blue); transform: rotate(-45deg); }
.em-dots li { padding-left: 18px; }
.em-dots li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--em-amber); }
.em-dark .em-checks li::before { border-color: var(--em-sky); }

.em-ui { font: 600 .92em var(--em-text); background: var(--em-sky-light); color: var(--em-blue-deep); padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.em-dark .em-ui { background: #0D4470; color: #FFFFFF; }
.em-tag, .em-section .em-tag { display: inline-block; font: 600 12px/1.4 var(--em-mono); letter-spacing: .02em; color: var(--em-blue-deep); background: var(--em-sky-light); padding: 3px 8px; border-radius: 5px; white-space: nowrap; vertical-align: 1px; }
.em-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.em-more { font-weight: 600; }
.em-more a { text-decoration: none; }
.em-more a:hover { text-decoration: underline; }

/* ---------- Icons (CSS masks, so editors never touch SVG) -------------- */

.em-icon::before { content: ""; display: block; width: 30px; height: 30px; flex: none; background: var(--em-blue); -webkit-mask: var(--em-i) center / contain no-repeat; mask: var(--em-i) center / contain no-repeat; }
.em-card--dark.em-icon::before { background: var(--em-sky); }
.em-icon--car, .em-icon--traffic { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16v-4l2-5h14l2 5v4z'/%3E%3Ccircle cx='7.5' cy='16.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='16.5' r='1.8'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E"); }
.em-icon--traffic { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17v-4l2-5h14l2 5v4z'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3Cpath d='M12 2v3M8 3l1 2M16 3l-1 2'/%3E%3C/svg%3E"); }
.em-icon--transit { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='14' rx='3'/%3E%3Cpath d='M5 11h14M8 21l2-4M16 21l-2-4'/%3E%3Ccircle cx='9' cy='14' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3C/svg%3E"); }
.em-icon--walk { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13' cy='4' r='2'/%3E%3Cpath d='M10 21l2-6-3-3 1-4 4 3 3 1M9 12l-2 3'/%3E%3C/svg%3E"); }
.em-icon--bike { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='16.5' r='3.5'/%3E%3Ccircle cx='18.5' cy='16.5' r='3.5'/%3E%3Cpath d='M5.5 16.5l4-7h6l3 7M9.5 9.5l3 7h3M14 6h2.5l-1 3.5'/%3E%3C/svg%3E"); }
.em-icon--install { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }
.em-icon--layers { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.em-icon--thematic { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v8l6 5'/%3E%3C/svg%3E"); }
.em-icon--select { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8' stroke-dasharray='3 2'/%3E%3Cpath d='M12 12h8'/%3E%3C/svg%3E"); }
.em-icon--export { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 14h6M9 17h4'/%3E%3C/svg%3E"); }
.em-icon--video { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M10 9l5 3-5 3z'/%3E%3C/svg%3E"); }
.em-icon--sales { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v12H4z'/%3E%3Cpath d='M9 7V5h6v2M4 12h16'/%3E%3C/svg%3E"); }
.em-icon--support { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .8-1 1.5V14M12 17h.01'/%3E%3C/svg%3E"); }
.em-icon--demo { --em-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4M10 8l5 2.5-5 2.5z'/%3E%3C/svg%3E"); }

/* ---------- Cards ------------------------------------------------------ */

.em-card, .wp-block-group.is-style-card { background: #FFFFFF; border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.em-card p { color: var(--em-body); }
.em-card--dark { background: var(--em-navy); border-color: var(--em-navy); color: #FFFFFF; }
.em-card--dark h2, .em-card--dark h3 { color: #FFFFFF; }
.em-card--dark p { color: var(--em-on-dark) !important; }

/* ---------- Header ----------------------------------------------------- */

.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.em-header { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--em-line); margin: 0 !important; }
.em-header__inner { max-width: var(--em-max); margin: 0 auto; padding: 10px var(--em-gutter); display: flex; align-items: center; gap: 32px; box-sizing: border-box; }
.em-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; text-decoration: none; color: var(--em-ink); }
.em-logo { display: block; flex: none; }
.em-brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.em-brand__name { font: 800 22px/1 var(--em-display); font-stretch: 110%; color: var(--em-blue); }
.em-brand__tag { font: 600 11px/1 var(--em-mono); letter-spacing: .04em; color: var(--em-muted); }
.em-header__panel { display: flex; align-items: center; gap: 24px; flex: 1; }
.em-nav { flex: 1; }
.em-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.em-menu > li { position: relative; }
.em-menu a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--em-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.em-menu a:hover, .em-menu .current-menu-item > a, .em-menu .current_page_item > a { color: var(--em-blue); }
.em-menu > .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--em-blue); }
.em-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: -12px; top: 100%; min-width: 230px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 12px; box-shadow: var(--em-shadow-sm); display: none; z-index: 5; }
.em-menu .sub-menu a { width: 100%; padding: 0 12px; border-radius: 6px; box-sizing: border-box; font-weight: 500; box-shadow: none; }
.em-menu .sub-menu a:hover { background: var(--em-ground); }
.em-menu li:hover > .sub-menu, .em-menu li:focus-within > .sub-menu { display: block; }
.em-header__actions { display: flex; align-items: center; gap: 18px; }
.em-lang { display: flex; align-items: center; gap: 6px; font: 600 13px var(--em-mono); color: var(--em-muted); }
.em-lang a { color: var(--em-muted); text-decoration: none; display: inline-flex; min-height: 44px; min-width: 28px; align-items: center; justify-content: center; }
.em-lang a:hover { color: var(--em-blue); }
.em-lang [aria-current] { color: var(--em-ink); }
.em-sub-toggle { display: none; }
.em-nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--em-ink); border-radius: 8px; background: transparent; color: var(--em-ink); font: 600 15px var(--em-text); cursor: pointer; }

@media (max-width: 1080px) {
	.em-nav-toggle { display: inline-flex; }
	.em-header__inner { flex-wrap: wrap; gap: 12px; }
	.em-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 16px; }
	/* The open panel fills the screen below the bar and scrolls on its own (height set by emaps.js).
	   Only <html> is locked: overflow on <body> too makes the sticky header jump off screen. */
	.em-header.is-open .em-header__panel { display: flex; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	html.em-menu-open { overflow: hidden; }
	.em-header.is-open { background: #FFFFFF; }
	.em-menu { flex-direction: column; gap: 0; }
	.em-menu > li { border-bottom: 1px solid var(--em-line); display: flex; flex-wrap: wrap; align-items: center; }
	.em-menu > li > a { flex: 1; box-shadow: none !important; }
	.em-menu a { font-size: 17px; min-height: 52px; }
	.em-menu .sub-menu,
	.em-menu li:hover > .sub-menu,
	.em-menu li:focus-within > .sub-menu { display: none; position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px 12px; background: transparent; }
	.em-menu li.is-expanded > .sub-menu { display: block; }
	.em-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; background: transparent; color: var(--em-ink); cursor: pointer; }
	.em-sub-toggle svg { transition: transform .2s; }
	.em-menu li.is-expanded > .em-sub-toggle svg { transform: rotate(180deg); }
	.em-header__actions { justify-content: space-between; flex-wrap: wrap; }
}

/* ---------- Footer ----------------------------------------------------- */

.em-footer { background: var(--em-navy); color: #FFFFFF; margin: 0 !important; }
.em-footer__inner { max-width: var(--em-max); margin: 0 auto; padding: 64px var(--em-gutter) 32px; display: flex; flex-direction: column; gap: 40px; box-sizing: border-box; }
.em-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.em-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.em-brand--footer { color: #FFFFFF; align-self: flex-start; }
.em-brand--footer .em-logo { background: #FFFFFF; border-radius: 6px; padding: 3px; }
.em-brand--footer .em-brand__name { color: #FFFFFF; }
.em-brand--footer .em-brand__tag { color: #9FB6CB; }
.em-footer p { margin: 0; color: var(--em-on-dark); line-height: 1.6; }
.em-footer .em-footer__title { font: 600 12px var(--em-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--em-sky); margin-bottom: 8px; }
.em-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.em-footer a { color: var(--em-on-dark); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.em-footer a:hover { color: #FFFFFF; }
.em-footer__contact { display: flex; flex-direction: column; color: var(--em-on-dark); }
.em-footer__contact address { font-style: normal; line-height: 1.6; margin-bottom: 6px; }
.em-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--em-navy-line); color: #9FB6CB; font-size: 14px; }
@media (max-width: 780px) {
	.em-footer a { min-height: 44px; }
	.em-footer__menu { gap: 0; }
}

/* ---------- Hero and intros --------------------------------------------- */

.em-hero__title { font-size: clamp(40px, 5.2vw, 70px) !important; line-height: 1 !important; letter-spacing: -0.028em; font-stretch: 112%; max-width: 900px; margin: 0; }
.em-intro__title { font-size: clamp(38px, 4.6vw, 62px) !important; line-height: 1.02 !important; letter-spacing: -0.026em; font-stretch: 112%; max-width: 900px; margin: 0; }
.em-intro .em-lead { max-width: 700px; }
.em-search { max-width: 620px; }
.em-search .wp-block-search__inside-wrapper { gap: 8px; border: 0; padding: 0; }
.em-search .wp-block-search__input { min-height: 50px; border: 1.5px solid #9DB0C3; border-radius: 8px; padding: 0 16px; font: 17px var(--em-text); background: #FFFFFF; }
.em-search .wp-block-search__button { margin: 0; min-height: 50px; border-radius: 8px; border: 0; background: var(--em-blue); color: #FFFFFF; font: 600 16px var(--em-text); padding: 0 22px; cursor: pointer; }
.em-search .wp-block-search__button:hover { background: var(--em-blue-deep); }

/* ---------- Facts, steps, features ------------------------------------- */

.em-section--tight.em-white .em-facts { padding-block: 4px; }
.em-fact { display: flex; flex-direction: column; gap: 6px; }
.em-fact__num { font: 800 34px/1.1 var(--em-display) !important; font-stretch: 110%; color: var(--em-blue) !important; }
.em-fact p:not(.em-fact__num) { color: var(--em-body); line-height: 1.55; }
.em-step { gap: 16px; }
.em-step__num { font: 500 13px var(--em-mono); color: var(--em-muted) !important; }

.em-tabs { display: flex; flex-direction: column; gap: 28px; }
.em-tab { margin: 0; }
.em-tab p { margin: 0; }
.em-tabs.is-enhanced .em-tab { cursor: pointer; }
.em-tabs.is-enhanced .em-tabpanel[hidden] { display: none; }
.em-tabs:not(.is-enhanced) .em-tablist { display: none; }
.em-tabs:not(.is-enhanced) .em-tabpanel + .em-tabpanel { border-top: 1px solid var(--em-line); padding-top: 28px; }
.em-tabs--side { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.em-tabs--side > .em-tablist { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.em-tabs--side > .em-tabpanel { flex: 999 1 600px; min-width: 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.em-tabpanel > .em-stack { flex: 1 1 280px; min-width: 0; gap: 18px; }
.em-tabpanel__visual { flex: 1 1 340px; min-width: 0; display: flex; }
.em-tabpanel__visual > * { flex: 1; }
.em-tab { border: 1.5px solid var(--em-line); background: #FFFFFF; border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-height: 44px; box-sizing: border-box; }
.em-tab__label { font: 700 19px/1.2 var(--em-display); font-stretch: 104%; color: var(--em-ink); }
.em-tab__line { color: var(--em-muted); font-size: 15px; }
.em-tab:hover { border-color: var(--em-blue); }
.em-tab[aria-selected="true"] { background: var(--em-navy); border-color: var(--em-navy); }
.em-tab[aria-selected="true"] .em-tab__label { color: #FFFFFF; }
.em-tab[aria-selected="true"] .em-tab__line { color: var(--em-on-dark); }

/* Images (real E-Maps exports, inc/sections/_image.php) */
.em-shot { margin: 0 !important; border-radius: 12px; overflow: hidden; border: 1px solid var(--em-line); }
.em-shot img { display: block; width: 100%; height: auto; }
.em-shot--cover { min-height: 360px; position: relative; }
.em-shot--cover img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 60%; }
.em-shot--fit { display: flex; align-items: center; background: #FFFFFF; box-shadow: var(--em-shadow-sm); }
.em-sample__img { border-radius: 10px; }
.em-sample__img img { height: 170px; object-fit: cover; object-position: center; }
.em-part > .em-shot { max-width: 560px; }

/* ---------- Background maps, plans, bands ------------------------------- */

.em-map { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--em-line); border-radius: 12px; background: var(--em-ground); }
.em-map__img { margin: 0 !important; flex: none; }
.em-map__img img { display: block; width: 88px; height: 88px; border-radius: 6px; border: 1px solid var(--em-line); }
.em-map__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.em-map__name { font-size: 17px !important; }
.em-plan { gap: 16px; position: relative; }
.em-plan--featured { border: 2px solid var(--em-blue); }
.em-plan__flag { position: absolute; top: -13px; left: 26px; font: 600 12px/1.4 var(--em-mono); background: #FCEBD0; color: #7A4A06 !important; padding: 4px 9px; border-radius: 5px; }
.em-plan__name { font-size: 24px !important; }
.em-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.em-price strong { font: 800 38px/1 var(--em-display); font-stretch: 108%; color: var(--em-ink); }
.em-price span { font-size: 14px; color: var(--em-muted); }
.em-band { border-radius: 16px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.em-band > .em-stack { flex: 1 1 480px; max-width: 760px; }
.em-band__title { font-size: 22px !important; }
.em-cta { border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.em-cta > .em-stack { flex: 1 1 420px; max-width: 640px; }

/* ---------- FAQ (Details blocks) ---------------------------------------- */

.em-faq { display: flex; flex-direction: column; }
.em-faq .wp-block-details { border-bottom: 1px solid var(--em-line); padding: 20px 0; }
.em-faq summary { cursor: pointer; font: 700 19px/1.35 var(--em-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after { content: "+"; font: 500 26px/1 var(--em-text); color: var(--em-blue); flex: none; }
.em-faq details[open] summary::after { content: "\2013"; }
.em-faq details p { margin-top: 12px !important; line-height: 1.65; color: var(--em-body); }
.em-faq .em-more { margin-top: 20px !important; }
.em-faq--card { background: #FFFFFF; border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 4px 24px; }
.em-faq--card .wp-block-details:last-child { border-bottom: 0; }
.em-faq--card summary { font-size: 18px; }

/* ---------- Tables (comparison, editions) ------------------------------- */

.em-compare { display: flex; flex-direction: column; gap: 16px; }
.em-table { margin: 0 !important; overflow-x: auto; border: 1px solid var(--em-line); border-radius: var(--em-radius); background: #FFFFFF; }
.em-table table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; }
.em-table th, .em-table td { padding: 13px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--em-line-soft); }
.em-table tbody tr:last-child td { border-bottom: 0; }
.em-table thead th { font: 600 12px var(--em-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--em-blue); background: var(--em-ground); }
.em-table thead th + th { font: 800 16px var(--em-display); letter-spacing: 0; text-transform: none; color: var(--em-ink); }
.em-table th + th, .em-table td + td { text-align: center; width: 160px; }
.em-table--plain table { min-width: 0; }
.em-table--plain th + th, .em-table--plain td + td { text-align: left; width: auto; }
.em-table--plain thead th + th { font: 600 12px var(--em-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--em-blue); }
.em-part > .em-dots, .em-part > .em-tags { margin: 0; }
.em-table__price { font: 600 22px var(--em-mono); color: var(--em-blue); }
.em-yes { display: inline-block; width: 14px; height: 8px; border-left: 2.5px solid var(--em-blue); border-bottom: 2.5px solid var(--em-blue); transform: rotate(-45deg) translateY(-2px); }
.em-no { color: #9DB0C3; }
.em-val { font: 600 15px var(--em-mono); color: var(--em-ink); }

/* ---------- Steps, download, samples ------------------------------------ */

.em-num { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: em-n; }
.em-num li { counter-increment: em-n; position: relative; padding: 16px 18px 16px 64px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 12px; line-height: 1.55; color: var(--em-body); }
.em-num li::before { content: counter(em-n); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px; border-radius: 8px; background: var(--em-blue); color: #FFFFFF; font: 700 15px/32px var(--em-display); text-align: center; }
.em-num strong { color: var(--em-ink); }

.em-file { gap: 20px; padding: 32px; box-shadow: var(--em-shadow); }
.em-file__head { display: flex; gap: 16px; align-items: center; }
.em-file__ext { width: 52px; height: 60px; flex: none; border-radius: 6px; background: var(--em-sky-light); color: var(--em-blue-deep) !important; display: grid; place-items: center; font: 600 12px var(--em-mono); }
.em-file__name { font-size: 22px !important; letter-spacing: -0.01em !important; }
.em-specs { display: flex; flex-direction: column; gap: 10px; }
.em-specs li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; line-height: 1.5; color: var(--em-ink); }
.em-specs strong { font: 600 12px/1.9 var(--em-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--em-muted); }
@media (max-width: 480px) { .em-specs li { grid-template-columns: 1fr; gap: 0; } }
.em-sample { gap: 10px; }
.em-note { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.em-note > .em-stack { flex: 1 1 420px; max-width: 760px; }

/* ---------- Tutorials, articles ----------------------------------------- */

.em-featured { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 2px solid var(--em-blue); }
.em-featured > .em-stack { flex: 1 1 480px; max-width: 760px; }
.em-links { display: flex; flex-direction: column; }
.em-links li { border-top: 1px solid var(--em-line-soft); }
.em-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; color: var(--em-ink); text-decoration: none; font-weight: 600; }
.em-links a::after { content: "→"; color: #9DB0C3; font-weight: 500; }
.em-links a:hover, .em-links a:hover::after { color: var(--em-blue); }

.em-article__layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: flex-start; }
.em-article__side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.em-article__body { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
@media (max-width: 960px) { .em-article__side { position: static; } }
.em-article__title { font-size: clamp(36px, 4.4vw, 54px) !important; line-height: 1.04 !important; font-stretch: 112%; margin: 0; }
.em-crumb { font-size: 14px; color: var(--em-muted); }
.em-toc__title { font: 600 12px var(--em-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--em-muted); }
.em-toc { display: flex; flex-direction: column; border-left: 2px solid var(--em-line); }
.em-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--em-body); text-decoration: none; font-weight: 600; }
.em-toc a:hover { color: var(--em-blue); border-left-color: var(--em-blue); }
.em-works { padding: 16px; border: 1px solid var(--em-line); border-radius: 12px; background: #FFFFFF; font-size: 14px; color: var(--em-muted); display: flex; flex-direction: column; gap: 6px; }
.em-works strong { color: var(--em-ink); }
.em-part { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; }
.em-part h2 { font-size: clamp(26px, 2.6vw, 30px) !important; }
.em-part > p { font-size: 18px; line-height: 1.7; color: var(--em-body); }
.em-part__steps { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.em-part__steps > .em-num { flex: 1 1 340px; min-width: 0; }
.em-part__steps > .em-visual { flex: 1 1 300px; min-width: 0; }
.em-tip { position: relative; padding: 18px 20px 18px 52px !important; border-radius: 12px; background: #FFF6E6; border: 1px solid #F1D49C; color: #5B3A06 !important; line-height: 1.6; }
.em-tip::before { content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; background: #8A5A0E; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.em-tip a { color: #6B4208; }
.em-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; padding-top: 12px; border-top: 1px solid var(--em-line); }
.em-pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--em-line); border-radius: 12px; background: #FFFFFF; text-decoration: none; color: var(--em-ink); font: 700 18px var(--em-display); }
.em-pager a span { font: 400 14px var(--em-text); color: var(--em-muted); }
.em-pager a:hover { border-color: var(--em-blue); }
.em-pager__next a { text-align: right; }

/* ---------- Updates, contact -------------------------------------------- */

.em-latest { flex: 0 1 340px !important; padding: 24px; gap: 10px; }
.em-latest__version { font: 800 30px/1.1 var(--em-display) !important; font-stretch: 108%; color: var(--em-ink) !important; }
.em-releases { display: flex; flex-direction: column; }
.em-release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-top: 1px solid var(--em-line); }
.em-release__version { display: flex; flex-direction: column; gap: 4px; }
.em-release__number { font-size: 24px !important; }
@media (max-width: 640px) { .em-release { grid-template-columns: 1fr; } }
.em-releases > .wp-block-buttons { padding-top: 32px; border-top: 1px solid var(--em-line); }
.em-company { gap: 20px; }
.em-company .em-specs li { grid-template-columns: 140px 1fr; }

/* ---------- Standard pages & posts -------------------------------------- */

.em-prose { padding: clamp(40px, 6vw, 72px) var(--em-gutter) clamp(64px, 8vw, 96px); max-width: 760px; margin: 0 auto !important; box-sizing: content-box; }
.em-prose .wp-block-post-content > * { max-width: 760px; }
.em-page-title { font-size: clamp(34px, 4vw, 52px) !important; margin: 0 0 24px; }
.em-post-image { margin: 24px 0 32px; border-radius: var(--em-radius); overflow: hidden; }
.em-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--em-line); }
.em-archive { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); }
.em-pagination { margin-top: 32px; gap: 12px; }
.em-post__date { font-size: 14px; color: var(--em-muted); }

/* ==========================================================================
   Drawings of the add-in ([em_visual], inc/visuals/)
   ========================================================================== */

.em-visual { position: relative; min-width: 0; }
.em-visual svg { display: block; }

/* Excel window */
.em-win { margin: 0; background: #FFFFFF; border: 1px solid #C9D6E2; border-radius: var(--em-radius); overflow: hidden; box-shadow: var(--em-shadow); color: var(--em-ink); }
.em-win--flat { box-shadow: none; border-color: var(--em-line); border-radius: 10px; }
.em-win__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; background: #E9EEF3; border-bottom: 1px solid var(--em-line); font: 500 12px var(--em-mono); color: var(--em-muted); }
.em-xl-tabs { display: flex; gap: 22px; padding: 8px 16px 0; font: 500 13px var(--em-text); color: var(--em-muted); border-bottom: 1px solid var(--em-line-soft); overflow: hidden; }
.em-xl-tabs span { padding-bottom: 8px; }
.em-xl-tabs .is-on { color: var(--em-blue); font-weight: 700; border-bottom: 2.5px solid var(--em-blue); padding-bottom: 6px; }
.em-ribbon { display: flex; padding: 10px 4px; border-bottom: 1px solid var(--em-line-soft); overflow-x: auto; scrollbar-width: none; background: #FBFCFD; }
.em-ribbon__group { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; flex: none; border-right: 1px solid var(--em-line-soft); }
.em-ribbon__group:last-child { border-right: 0; }
.em-ribbon__btns { display: flex; gap: 2px; }
.em-ribbon__btn { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 54px; padding: 0 1px; text-align: center; font: 500 11px/1.2 var(--em-text); color: #33475C; }
.em-ribbon__btn i { font-style: normal; font-size: 9px; color: var(--em-muted); }
.em-ribbon__find { display: flex; flex-direction: column; gap: 4px; width: 150px; font: 500 11px/1.2 var(--em-text); color: #33475C; }
.em-ribbon__box { height: 18px; border: 1px solid #9DB0C3; border-radius: 3px; background: #FFFFFF; }
.em-ribbon__small { display: flex; align-items: center; gap: 4px; }
.em-ribbon__small img { width: 16px; height: 16px; }
.em-ribbon__btn img { width: 32px; height: 32px; display: block; }
.em-ribbon__label { font: 500 10px var(--em-text); color: #7A8A9B; text-align: center; }
.em-win__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.em-sheet { overflow: hidden; border-right: 1px solid var(--em-line-soft); }
.em-sheet__fx { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--em-line-soft); font: 500 12px var(--em-mono); color: var(--em-muted); }
.em-sheet__fx span:first-child { padding: 2px 8px; border: 1px solid var(--em-line); background: #FFFFFF; }
.em-sheet__fx span:last-child { color: var(--em-ink); }
.em-sheet__scroll { overflow-x: auto; }
.em-xl { border-collapse: collapse; width: 100%; font: 13px var(--em-text); color: var(--em-ink); }
.em-xl--lg { font-size: 14px; }
.em-xl td, .em-xl th { border-right: 1px solid var(--em-line-soft); border-bottom: 1px solid var(--em-line-soft); padding: 5px 8px; white-space: nowrap; text-align: left; }
.em-xl th { background: #F1F4F7; color: var(--em-muted); font-weight: 500; text-align: center; }
.em-xl td.b { font-weight: 700; }
.em-xl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.em-xl td.add { background: var(--em-cell); color: #1F5A33; }
.em-xl tr.sel td { background: #FFF1D6; }
.em-sheet__note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin: 0; font-size: 12px; color: var(--em-muted); }
.em-sheet__key { width: 10px; height: 10px; flex: none; background: var(--em-cell); border: 1px solid var(--em-green); }
.em-mapwin { position: relative; min-height: 420px; background: #C9C6F2; overflow: hidden; }
.em-mapwin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.em-mapwin__tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; background: rgba(255, 255, 255, .95); border: 1px solid var(--em-line); border-radius: 8px; padding: 4px; }
.em-mapwin__tools span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--em-blue); border-radius: 5px; }
.em-mapwin__tools span.is-on { color: #FFFFFF; background: var(--em-blue); }
.em-mapwin__tools svg { width: 18px; height: 18px; }
.em-mapwin__scale { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .95); border-radius: 6px; padding: 6px 10px; font: 500 11px var(--em-mono); color: #33475C; }
.em-mapwin__scale i { width: 60px; height: 5px; border: 1.5px solid var(--em-ink); border-top: 0; }
.em-layers { position: absolute; top: 12px; right: 12px; width: 210px; background: rgba(255, 255, 255, .97); border: 1px solid var(--em-line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--em-shadow-sm); }
.em-layers__title { font: 700 13px var(--em-display); padding: 2px 4px 4px; }
.em-layer { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; background: var(--em-ground); font: 500 12px var(--em-text); }
.em-layer__box { width: 11px; height: 11px; border-radius: 2px; background: var(--em-blue); flex: none; }
.em-layer__key { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.em-layer__key--pin { background: var(--em-amber); border: 1.5px solid #FFFFFF; box-shadow: 0 0 0 1px #B87A1E; }
.em-layer__key--pie { background: conic-gradient(#D9534F 0 30%, #4E7BD6 30% 55%, #5BAE4C 55%); }
.em-layer__key--heat { width: 18px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #6E7FE0, #5BC8A8, #F2D54A, #E0675E); }
.em-layer__key--area { border-radius: 0; border: 1.5px solid var(--em-ink); }
@media (max-width: 560px) { .em-layers { display: none; } .em-mapwin { min-height: 300px; } }

/* Small step drawings */
.em-mini { height: 150px; border-radius: 10px; background: var(--em-ground); border: 1px solid var(--em-line-soft); overflow: hidden; position: relative; }
.em-mini > svg { width: 100%; height: 150px; }
.em-mini--cells { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 18px; }
.em-cells { display: grid; gap: 6px; font: 500 12px var(--em-mono); color: #33475C; }
.em-cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.em-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-cells span { background: #FFFFFF; border: 1px solid var(--em-line); padding: 5px 7px; }
.em-cells--add span { background: var(--em-cell); border-color: var(--em-green); color: #1F5A33; }
.em-cells__arrow { display: flex; align-items: center; gap: 8px; font: 500 12px var(--em-mono); color: var(--em-blue); }
.em-mini__badge { position: absolute; right: 10px; bottom: 10px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 6px; padding: 4px 8px; font: 500 11px var(--em-mono); color: #33475C; }

/* Map drawings */
.em-mapart { position: relative; min-height: 360px; height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--em-line); background: #EEF2F5; }
.em-mapart--tall { min-height: 420px; }
.em-mapart--office { min-height: 300px; }
.em-mapart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.em-mapart__label { position: absolute; left: 14px; top: 14px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 8px; padding: 6px 10px; font: 600 12px var(--em-text); color: var(--em-blue); }
.em-stats { position: absolute; right: 14px; bottom: 14px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: auto auto; gap: 4px 18px; font: 500 12px var(--em-mono); color: #33475C; box-shadow: var(--em-shadow-sm); }
.em-stats span:nth-child(odd):not(.em-stats__title) { color: var(--em-muted); }
.em-stats span:nth-child(even) { text-align: right; }
.em-stats__title { grid-column: 1 / -1; font: 700 13px var(--em-display); color: var(--em-ink); margin-bottom: 4px; }
.em-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 18px; font: 500 12px var(--em-mono); color: #33475C; }
.em-legend span { display: flex; gap: 6px; align-items: center; }
.em-legend i { width: 14px; height: 10px; flex: none; }
.em-legend--box { position: absolute; left: 14px; bottom: 14px; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 10px; padding: 12px 14px; }
.em-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.em-pin__label { background: var(--em-navy); color: #FFFFFF; font: 600 13px var(--em-text); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }

/* Panels and swatches */
.em-panel { margin: 0; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: var(--em-radius); overflow: hidden; }
.em-panel > svg { width: 100%; height: auto; }
.em-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--em-line-soft); font-family: var(--em-display); font-size: 14px; }
.em-panel__brand { display: flex; align-items: center; gap: 10px; }
.em-swatch { height: 130px; border-radius: 10px; border: 1px solid var(--em-line); overflow: hidden; }
.em-swatch svg { width: 100%; height: 130px; }

/* Dialogs (labels as in the add-in) */
.em-dialog { margin: 0; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 10px; overflow: hidden; box-shadow: 0 16px 36px -22px rgba(2, 46, 79, .5); color: var(--em-ink); font-size: 14px; }
.em-dialog__title { padding: 12px 16px; font: 700 14px var(--em-display); border-bottom: 1px solid var(--em-line-soft); background: var(--em-ground); }
.em-dialog__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--em-line-soft); }
.em-dialog__row span { font: 500 12px var(--em-mono); color: var(--em-muted); }
.em-dialog__row.is-on { background: var(--em-sky-light); color: var(--em-blue-deep); font-weight: 600; }
.em-dialog__row.is-on span { color: var(--em-blue-deep); }
.em-dialog__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.em-dialog__label { font-weight: 600; }
.em-dialog__hint { font-size: 14px; }
.em-dialog__rule { height: 1px; background: var(--em-line-soft); }
.em-dialog__field { border: 1px solid var(--em-line); border-radius: 6px; padding: 8px 10px; font: 500 13px var(--em-mono); color: #33475C; }
.em-dialog__buttons { display: flex; justify-content: flex-end; gap: 8px; }
.em-dialog__btn { border: 1px solid #9DB0C3; border-radius: 6px; padding: 9px 18px; color: var(--em-body); }
.em-dialog__buttons .em-dialog__ok { align-self: auto; }
.em-choice__input--off { background: var(--em-ground); color: var(--em-muted); }
.em-dialog__ok { align-self: flex-end; background: var(--em-blue); color: #FFFFFF; border-radius: 6px; padding: 9px 22px; font-weight: 600; }
.em-opt, .em-radio { display: flex; align-items: center; gap: 10px; }
.em-opt i { width: 15px; height: 15px; border: 1.5px solid #9DB0C3; border-radius: 3px; background: #FFFFFF; flex: none; box-sizing: border-box; }
.em-opt i.is-on { background: var(--em-blue); border-color: var(--em-blue); }
.em-radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.em-radio i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #9DB0C3; box-sizing: border-box; flex: none; }
.em-radio.is-on i { border: 4.5px solid var(--em-blue); }
.em-field { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; }
.em-select { border: 1px solid #9DB0C3; border-radius: 5px; padding: 6px 10px; display: flex; justify-content: space-between; }
.em-select::after { content: "▾"; color: var(--em-muted); }
.em-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.em-seg span { border: 1px solid var(--em-line); border-radius: 6px; padding: 8px; text-align: center; color: var(--em-muted); }
.em-seg span.is-on { border: 1.5px solid var(--em-blue); color: var(--em-blue); font-weight: 600; }
.em-share { display: flex; flex-direction: column; gap: 12px; justify-content: center; padding: 28px; border-radius: 12px; background: var(--em-ground); border: 1px solid var(--em-line); height: 100%; box-sizing: border-box; }
.em-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.em-formats span { background: #FFFFFF; border: 1px solid var(--em-line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.em-formats i { font: 500 12px var(--em-mono); color: var(--em-muted); font-style: normal; }
.em-formats b { font: 700 14px var(--em-display); }

/* Mobility: sheet + Travel Distance window */
.em-mob { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.em-mob__sheet { flex: 999 1 600px; min-width: 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.em-mob > .em-dialog { flex: 1 1 280px; min-width: 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.em-mob .em-xl { font-size: 13.5px; }

/* Activation window */
.em-activate__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.em-choice { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--em-line); border-radius: 10px; color: var(--em-muted); }
.em-choice > i, .em-choice__line i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #9DB0C3; flex: none; box-sizing: border-box; }
.em-choice.is-on { flex-direction: column; align-items: stretch; gap: 10px; border: 2px solid var(--em-blue); background: #F5FAFD; color: var(--em-ink); }
.em-choice__line { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.em-choice.is-on .em-choice__line i { border: 5px solid var(--em-blue); }
.em-choice__label { font-size: 14px; font-weight: 600; }
.em-choice__input { min-height: 44px; display: flex; align-items: center; border: 1px solid #9DB0C3; border-radius: 6px; padding: 0 12px; background: #FFFFFF; }
.em-choice__note { font-size: 14px; color: var(--em-muted); }

/* ---------- Cookie consent (inc/consent.php) ---------------------------- */

.em-consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; padding: 18px 20px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: #FFFFFF; border: 1px solid var(--em-line); border-radius: var(--em-radius); box-shadow: var(--em-shadow); }
.em-consent-banner[hidden] { display: none; }
.em-consent-banner p { flex: 1 1 320px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--em-body); }
.em-consent-banner a { color: var(--em-blue); white-space: nowrap; }
.em-consent-banner__buttons { display: flex; gap: 10px; flex: none; }
.em-consent-banner .wp-element-button { min-height: 44px; padding: 0 22px; border: 0; cursor: pointer; }
.em-consent-banner .em-consent-banner__no { background: #FFFFFF; color: var(--em-blue); box-shadow: inset 0 0 0 1.5px var(--em-blue); }
.em-consent-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.em-consent-link { margin: 0; }
.em-consent-link .em-consent-open { color: var(--em-blue); font-weight: 600; }

/* ---------- Privacy statement (inc/sections/legal.php) ------------------ */

.em-legal { padding-top: clamp(40px, 6vw, 72px); }
.em-legal__inner { max-width: 820px; display: flex; flex-direction: column; gap: 40px; }
.em-legal__head { gap: 18px !important; }
.em-legal__part h2 { font-size: clamp(24px, 2.4vw, 30px) !important; scroll-margin-top: 96px; }
.em-legal__part h3 { margin: 12px 0 0; font-size: 19px; }
.em-legal__part p { margin: 0; color: var(--em-body); line-height: 1.6; }
.em-legal__part p a, .em-legal__part li a { color: var(--em-blue); }
.em-legal__part strong { color: var(--em-ink); }
.em-legal__updated { margin: 0; font-size: 14px; color: var(--em-muted); }
.em-legal__toc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.em-legal__toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--em-line); border-radius: 8px; background: #FFFFFF; color: var(--em-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.em-legal__toc a:hover { border-color: var(--em-blue); color: var(--em-blue); }

/* ---------- Office map on Contact ([em_map], same as [fe_map] in themes/element) -- */

.em-map-box { border-radius: var(--em-radius); overflow: hidden; border: 1px solid var(--em-line); align-self: stretch; }
.em-map-frame { position: relative; aspect-ratio: 4 / 3; background: #F1F3F4; }
.em-map-frame .em-visual--office-map { width: 100%; height: 100%; }
.em-map-frame .em-visual--office-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.em-map-frame__load { position: absolute; inset: auto 12px 12px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; background: rgba(255, 255, 255, .94); border-radius: 12px; box-shadow: var(--em-shadow-sm); }
.em-map-frame__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.em-map-frame__button { min-height: 40px; padding: 0 16px; border: 0; cursor: pointer; font-size: 15px; }
.em-map-frame__open { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-size: 15px; text-decoration: none; background: #FFFFFF !important; color: var(--em-blue) !important; box-shadow: inset 0 0 0 1.5px var(--em-blue); }
.em-map-frame__note { margin: 0; flex: 1 1 200px; font-size: 13px; line-height: 1.4; color: var(--em-muted); }
.em-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- E-Maps PDOK: licence card next to the feature list ---------- */

.em-row > .em-pdok-card { flex: 0 1 360px; }
