/*
 * Embedonix design system: shared colour tokens and the reusable article
 * components (code blocks, tables, figures, callouts), plus the search modal and
 * off-canvas menu. Loaded after theme-dark.css. Every colour below comes from a
 * token, and the dark scheme only redefines the tokens, so one rule serves both
 * schemes.
 *
 * Authoring reference for tables and code: .agent/templates/tables-and-code.md
 */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                            */
/* ------------------------------------------------------------------ */

:root {
	--emx-page: #f7f9fb;
	--emx-surface: #ffffff;
	--emx-surface-2: #f1f4f8;
	--emx-surface-3: #e8edf3;
	--emx-border: #dde4ec;
	--emx-border-strong: #c3cfdb;
	--emx-text: #2b3a4a;
	--emx-text-muted: #5b6b7c;
	--emx-heading: #0f1d2c;
	--emx-accent: #1559ed;
	--emx-accent-hover: #0f47c2;
	--emx-accent-text: #1559ed;
	--emx-accent-soft: #e9f0fe;
	--emx-accent-line: #b9cdfa;
	--emx-ok: #13664b;
	--emx-ok-soft: #e4f4ec;
	--emx-ok-line: #9fd2bb;
	--emx-info: #164f7a;
	--emx-info-soft: #e7f1fa;
	--emx-info-line: #a9c8e2;
	--emx-warn: #7a4f0e;
	--emx-warn-soft: #fdf3e0;
	--emx-warn-line: #e5c27f;
	--emx-danger: #a3202c;
	--emx-danger-soft: #fbe9eb;
	--emx-danger-line: #ebadb4;
	--emx-code-bg: #f6f8fa;
	--emx-code-text: #1f2a37;
	--emx-code-muted: #5f6d7e;
	--emx-code-keyword: #8b2fc9;
	--emx-code-type: #0e6f8e;
	--emx-code-string: #0b6b2f;
	--emx-code-number: #b34700;
	--emx-code-comment: #5f6d7e;
	--emx-code-preproc: #a3202c;
	--emx-code-entity: #1f4fbf;
	--emx-inline-code-bg: #eef2f6;
	--emx-inline-code-text: #233142;
	--emx-shadow: 0 1px 2px rgba(15, 29, 44, 0.05), 0 4px 16px rgba(15, 29, 44, 0.06);
	--emx-shadow-lift: 0 2px 6px rgba(15, 29, 44, 0.08), 0 12px 32px rgba(15, 29, 44, 0.1);
	--emx-radius: 10px;
	--emx-radius-sm: 6px;
	--emx-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", Menlo, monospace;
	--emx-backdrop: rgba(247, 249, 251, 0.97);
}

html[data-theme="dark"] {
	--emx-page: #0e1621;
	--emx-surface: #131d2b;
	--emx-surface-2: #172334;
	--emx-surface-3: #1d2b3f;
	--emx-border: #253549;
	--emx-border-strong: #34475f;
	--emx-text: #bccad8;
	--emx-text-muted: #8a9cb1;
	--emx-heading: #eef3f9;
	--emx-accent: #2f6fe8;
	--emx-accent-hover: #4a84f0;
	--emx-accent-text: #8ab8ff;
	--emx-accent-soft: #17284a;
	--emx-accent-line: #2d4d86;
	--emx-ok: #7ee0b5;
	--emx-ok-soft: #10302a;
	--emx-ok-line: #23614f;
	--emx-info: #9cc9f2;
	--emx-info-soft: #132b44;
	--emx-info-line: #2a4f74;
	--emx-warn: #f2c879;
	--emx-warn-soft: #33270f;
	--emx-warn-line: #6b5420;
	--emx-danger: #ff9aa4;
	--emx-danger-soft: #3a1a20;
	--emx-danger-line: #74323c;
	--emx-code-bg: #0b121c;
	--emx-code-text: #d7e1ec;
	--emx-code-muted: #7d8fa5;
	--emx-code-keyword: #d6a2ff;
	--emx-code-type: #6fd3e6;
	--emx-code-string: #9fe0a0;
	--emx-code-number: #ffb57a;
	--emx-code-comment: #7d8fa5;
	--emx-code-preproc: #ff9aa4;
	--emx-code-entity: #8ab8ff;
	--emx-inline-code-bg: #1b2738;
	--emx-inline-code-text: #dbe5f0;
	--emx-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
	--emx-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
	--emx-backdrop: rgba(10, 16, 25, 0.97);
}

/* ------------------------------------------------------------------ */
/* 2. Code blocks (Urvanov output) and inline code                     */
/* ------------------------------------------------------------------ */

/* The highlighter writes font size and line height as inline !important on its
   wrapper and .crayon-pre, which no stylesheet can beat. The lines themselves
   carry no inline size, so the size and leading are set there. */
html .urvanov-syntax-highlighter-syntax.urvanov-syntax-highlighter-syntax {
	position: relative;
	margin-top: 1.75em !important;
	margin-bottom: 1.75em !important;
	border: 1px solid var(--emx-border) !important;
	border-radius: var(--emx-radius);
	background: var(--emx-code-bg) !important;
	box-shadow: none;
	overflow: hidden;
}

html .urvanov-syntax-highlighter-syntax .urvanov-syntax-highlighter-main {
	padding: 14px 0 !important;
	background: transparent !important;
	scrollbar-width: thin;
	scrollbar-color: var(--emx-border-strong) transparent;
}

html .urvanov-syntax-highlighter-syntax .crayon-table {
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

html .urvanov-syntax-highlighter-syntax .crayon-table td.urvanov-syntax-highlighter-code {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

html .urvanov-syntax-highlighter-syntax .crayon-pre {
	padding: 0 18px !important;
	background: transparent !important;
	color: var(--emx-code-text) !important;
}

/* Urvanov's own `.crayon-pre .crayon-line` rule (font-size: inherit !important) outranks a
   two-class selector, which left plain and striped lines at different sizes and broke column
   alignment. Match it with .crayon-pre and make every token span inherit the same font. */
html .urvanov-syntax-highlighter-syntax .crayon-pre .crayon-line,
html .urvanov-syntax-highlighter-syntax .crayon-pre .crayon-line.crayon-striped-line {
	padding: 0 !important;
	background: transparent !important;
	font-family: var(--emx-mono) !important;
	font-size: 14.5px !important;
	line-height: 1.7 !important;
	height: auto !important;
}

html .urvanov-syntax-highlighter-syntax .crayon-pre .crayon-line span {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

html .urvanov-syntax-highlighter-syntax .crayon-line.emx-code-blank-edge {
	display: none !important;
}

/* Line numbers: a muted gutter that articles can refer to. Each number takes the same font,
   size and line height as a code line so the rows stay level. article-enhancements.js hides
   numbers of trimmed blank edge lines, renumbers from 1 and marks one-line blocks, which
   show no gutter. Numbers are not selectable, so a manual selection copies code only. */
html .urvanov-syntax-highlighter-syntax .crayon-table td.crayon-nums {
	display: table-cell !important;
	width: 1px;
	padding: 0 12px 0 16px !important;
	border: 0 !important;
	border-right: 1px solid var(--emx-border) !important;
	background: transparent !important;
	color: var(--emx-code-muted) !important;
	text-align: right;
	vertical-align: top;
	user-select: none;
	-webkit-user-select: none;
}
html .urvanov-syntax-highlighter-syntax .crayon-nums .crayon-num,
html .urvanov-syntax-highlighter-syntax .crayon-nums .crayon-num.crayon-striped-num {
	min-width: 2ch;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: var(--emx-code-muted) !important;
	font-family: var(--emx-mono) !important;
	font-size: 14.5px !important;
	line-height: 1.7 !important;
	height: auto !important;
	font-variant-numeric: tabular-nums;
}
html .urvanov-syntax-highlighter-syntax .crayon-nums .crayon-num.emx-code-blank-edge,
html .urvanov-syntax-highlighter-syntax.emx-code-single .crayon-table td.crayon-nums {
	display: none !important;
}

html .urvanov-syntax-highlighter-syntax .crayon-info,
html .urvanov-syntax-highlighter-syntax .crayon-toolbar {
	display: none !important;
}

html .urvanov-syntax-highlighter-syntax .crayon-marked-line,
html .urvanov-syntax-highlighter-syntax .crayon-marked-line.crayon-striped-line {
	background: var(--emx-warn-soft) !important;
	border-color: var(--emx-warn-line) !important;
}

/* Token colours, both schemes. */
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre,
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre :is(.crayon-ta, .crayon-i, .crayon-v, .crayon-o, .crayon-sy, .crayon-n, .crayon-f) {
	color: var(--emx-code-text) !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre :is(.crayon-k, .crayon-st, .crayon-r, .crayon-m) {
	color: var(--emx-code-keyword) !important;
	font-weight: 600 !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre .crayon-t {
	color: var(--emx-code-type) !important;
	font-weight: 600 !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre .crayon-s {
	color: var(--emx-code-string) !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre .crayon-cn {
	color: var(--emx-code-number) !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre .crayon-c {
	color: var(--emx-code-comment) !important;
	font-style: italic !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre .crayon-p {
	color: var(--emx-code-preproc) !important;
}
html .urvanov-syntax-highlighter-syntax.crayon-theme-eclipse .crayon-pre :is(.crayon-e, .crayon-h) {
	color: var(--emx-code-entity) !important;
}

/* Copy button, added by article-enhancements.js. */
.emx-code-copy {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 4px 10px;
	border: 1px solid var(--emx-border);
	border-radius: var(--emx-radius-sm);
	background: var(--emx-surface);
	color: var(--emx-text-muted);
	font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: 0.02em;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.emx-code-copy svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}
.urvanov-syntax-highlighter-syntax:hover .emx-code-copy,
.emx-code-copy:focus-visible,
.emx-code-copy.is-done {
	opacity: 1;
}
.emx-code-copy:hover {
	color: var(--emx-heading);
	border-color: var(--emx-border-strong);
}
.emx-code-copy:focus-visible {
	outline: 2px solid var(--emx-accent);
	outline-offset: 2px;
}
.emx-code-copy.is-done {
	color: var(--emx-ok);
	border-color: var(--emx-ok-line);
}
@media (hover: none) {
	.emx-code-copy {
		opacity: 1;
		padding: 4px 8px;
	}
	.emx-code-copy__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.emx-code-copy.is-done .emx-code-copy__label {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
	}
}

@media (max-width: 689px) {
	html .urvanov-syntax-highlighter-syntax .crayon-nums .crayon-num,
	html .urvanov-syntax-highlighter-syntax .crayon-nums .crayon-num.crayon-striped-num,
	html .urvanov-syntax-highlighter-syntax .crayon-pre .crayon-line,
	html .urvanov-syntax-highlighter-syntax .crayon-pre .crayon-line.crayon-striped-line {
		font-size: 13px !important;
		line-height: 1.65 !important;
	}
	html .urvanov-syntax-highlighter-syntax .crayon-pre {
		padding: 0 14px !important;
	}
	html .urvanov-syntax-highlighter-syntax.urvanov-syntax-highlighter-syntax {
		border-radius: 8px;
	}
}

/* A plain <pre> the highlighter did not take over. */
.entry-content pre:not(.urvanov-syntax-highlighter-plain) {
	margin: 1.75em 0;
	padding: 14px 18px;
	border: 1px solid var(--emx-border);
	border-radius: var(--emx-radius);
	background: var(--emx-code-bg);
	color: var(--emx-code-text);
	font-family: var(--emx-mono);
	font-size: 14.5px;
	line-height: 1.7;
	overflow-x: auto;
}

/* Inline code */
html .entry-content :not(pre) > code,
html .entry-content td code,
html .entry-content th code,
html .entry-content li code {
	padding: 0.12em 0.4em;
	border: 1px solid var(--emx-border);
	border-radius: 5px;
	background: var(--emx-inline-code-bg);
	color: var(--emx-inline-code-text);
	font-family: var(--emx-mono);
	font-size: 0.86em;
	white-space: break-spaces;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
html .entry-content h1 code,
html .entry-content h2 code,
html .entry-content h3 code {
	font-size: 0.82em;
}

/* ------------------------------------------------------------------ */
/* 3. Tables                                                            */
/* ------------------------------------------------------------------ */

/* Every article table gets one clean look. Wrapped in .embedonix-table-scroll
   by article-enhancements.js, which scrolls sideways on narrow screens. */
html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) {
	width: 100%;
	margin: 0;
	border: 1px solid var(--emx-border) !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border-radius: var(--emx-radius);
	background: var(--emx-surface) !important;
	color: var(--emx-text);
	font-size: 15.5px;
	line-height: 1.5;
	overflow: hidden;
}

html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) :is(th, td) {
	padding: 10px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--emx-border) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--emx-text) !important;
	vertical-align: top;
	text-align: left;
}

html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) tr:last-child > :is(th, td) {
	border-bottom: 0 !important;
}

html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) thead th,
html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) > tbody:first-child > tr:first-child > th {
	background: var(--emx-surface-2) !important;
	color: var(--emx-text-muted) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: bottom;
	border-bottom: 1px solid var(--emx-border-strong) !important;
}

html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) tbody th {
	color: var(--emx-heading) !important;
	font-weight: 600;
}

html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) tbody tr:hover > td {
	background: var(--emx-surface-2) !important;
}

html .entry-content figure.wp-block-table {
	margin: 1.75em 0;
}
html .entry-content figure.wp-block-table figcaption,
html .entry-content .emx-table-figure figcaption,
html .entry-content table caption {
	margin-top: 10px;
	color: var(--emx-text-muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	caption-side: bottom;
}

.embedonix-table-scroll {
	border-radius: var(--emx-radius);
	scrollbar-width: thin;
	scrollbar-color: var(--emx-border-strong) transparent;
	/* Edge shadows appear only while more columns are hidden. */
	background:
		linear-gradient(to right, var(--emx-page) 30%, transparent) left / 24px 100% no-repeat local,
		linear-gradient(to left, var(--emx-page) 30%, transparent) right / 24px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(15, 29, 44, 0.16), transparent) left / 10px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(15, 29, 44, 0.16), transparent) right / 10px 100% no-repeat scroll;
}
html[data-theme="dark"] .embedonix-table-scroll {
	background:
		linear-gradient(to right, var(--emx-page) 30%, transparent) left / 24px 100% no-repeat local,
		linear-gradient(to left, var(--emx-page) 30%, transparent) right / 24px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.6), transparent) left / 10px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.6), transparent) right / 10px 100% no-repeat scroll;
}

/* Class API for new tables. Cell tones mark meaning, not decoration. */
html .entry-content table :is(td, th).is-num {
	font-variant-numeric: tabular-nums;
	text-align: center !important;
}
html .entry-content table :is(td, th).is-mono,
html .entry-content table.emx-table--pins td.is-num {
	font-family: var(--emx-mono);
	font-size: 0.94em;
}
html .entry-content table td.is-key {
	color: var(--emx-heading) !important;
	font-weight: 700;
	white-space: nowrap;
}
html .entry-content table td.is-muted {
	color: var(--emx-text-muted) !important;
}
html .entry-content table :is(td, th).is-num:is(.is-ok, .is-info, .is-warn, .is-danger, .is-accent) {
	font-weight: 600;
}
html .entry-content table:not(.crayon-table) td.is-ok { background: var(--emx-ok-soft) !important; color: var(--emx-ok) !important; }
html .entry-content table:not(.crayon-table) td.is-info { background: var(--emx-info-soft) !important; color: var(--emx-info) !important; }
html .entry-content table:not(.crayon-table) td.is-warn { background: var(--emx-warn-soft) !important; color: var(--emx-warn) !important; }
html .entry-content table:not(.crayon-table) td.is-danger { background: var(--emx-danger-soft) !important; color: var(--emx-danger) !important; }
html .entry-content table:not(.crayon-table) td.is-accent { background: var(--emx-accent-soft) !important; color: var(--emx-accent-text) !important; }

html .entry-content table.emx-table--compact :is(th, td) {
	padding: 6px 10px !important;
	font-size: 14px;
}

/* Bit grids: one narrow centred column per bit, set bits highlighted. */
html .entry-content table.emx-table--bits td.is-bit,
html .entry-content table.emx-table--bits th.is-bit {
	width: 2.6em;
	padding-left: 4px !important;
	padding-right: 4px !important;
	font-family: var(--emx-mono);
	font-variant-numeric: tabular-nums;
	text-align: center !important;
	color: var(--emx-text-muted) !important;
}
html .entry-content table.emx-table--bits td.is-bit.is-set {
	background: var(--emx-ok-soft) !important;
	color: var(--emx-ok) !important;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--emx-ok-line);
}

/* Legacy tables written with inline colours (older posts). The inline palette
   is mapped onto the same tones, so they follow the scheme without a rewrite. */
html .entry-content table:not(.crayon-table) td[style*="#e6f2fb"] {
	background: var(--emx-info-soft) !important;
	color: var(--emx-info) !important;
}
html .entry-content table:not(.crayon-table) td[style*="#dff5eb"] {
	background: var(--emx-ok-soft) !important;
	color: var(--emx-ok) !important;
}
/* A 2px green border marked a set bit in the legacy bit grids. */
html .entry-content table:not(.crayon-table) td[style*="2px solid #1f7a5c"] {
	box-shadow: inset 0 0 0 1px var(--emx-ok-line);
	font-weight: 700;
}
html .entry-content table:not(.crayon-table) td[style*="#fff8e8"],
html .entry-content table:not(.crayon-table) td[style*="#fff0d8"] {
	background: var(--emx-warn-soft) !important;
	color: var(--emx-warn) !important;
}
html .entry-content table:not(.crayon-table) :is(td, th):is([style*="#f7fafc"], [style*="#0b1f33"]) {
	color: var(--emx-heading) !important;
}
/* Muted header labels in the legacy bit grids: #52616f is below 3:1 on the dark card. */
html .entry-content table:not(.crayon-table) th[style*="#52616f"] {
	color: var(--emx-text-muted) !important;
}
/* Pure red text from the old editor: AA on light, soft red on dark. */
html .entry-content [style*="color: #ff0000"],
html .entry-content [style*="color:#ff0000"] {
	color: var(--emx-danger) !important;
}
html .entry-content table:not(.crayon-table) td[style*="text-align: center"],
html .entry-content table:not(.crayon-table) th[style*="text-align: center"] {
	text-align: center;
}
html .entry-content table:not(.crayon-table) th[style*="text-align: center"] {
	text-align: center !important;
}
html .entry-content table:not(.crayon-table) td[style*="text-align: center"] {
	text-align: center !important;
	font-variant-numeric: tabular-nums;
}
/* Tables that centred their cells at table level keep that, except for cells
   that asked for left alignment (labels and descriptions). */
html .entry-content table:not(.crayon-table)[style*="text-align: center"] :is(th, td):not([style*="text-align: left"]) {
	text-align: center !important;
	font-variant-numeric: tabular-nums;
}
html .entry-content table:not(.crayon-table)[style*="border-spacing"] :is(th, td) {
	vertical-align: middle;
}
/* Bit-grid legacy tables used separated tiles with 2px borders; keep the grid
   readable as a flat table. */
html .entry-content table:not(.crayon-table)[style*="border-spacing"] td[style*="text-align: center"] {
	padding-left: 6px !important;
	padding-right: 6px !important;
}

/* Inline-styled diagram cards (white plates with a #d8e0e8 border) follow the
   scheme: surface colour and theme text, instead of a fixed light plate. */
html .entry-content [style*="d8e0e8"] {
	border-color: var(--emx-border) !important;
	border-radius: var(--emx-radius) !important;
	background: var(--emx-surface) !important;
	color: var(--emx-text) !important;
	color-scheme: inherit;
}
html .entry-content [style*="d8e0e8"] :is(h1, h2, h3, h4, h5, h6) {
	color: var(--emx-heading) !important;
}
html .entry-content [style*="d8e0e8"] :is(p, figcaption, li) {
	color: var(--emx-text) !important;
}

/* ------------------------------------------------------------------ */
/* 4. Figures, callouts and the contents box                            */
/* ------------------------------------------------------------------ */

html .entry-content figure > img,
html .entry-content figure > a > img,
html .entry-content .wp-block-image img {
	border-radius: 8px;
}
html .entry-content figure figcaption,
html .entry-content .wp-element-caption {
	color: var(--emx-text-muted) !important;
	font-size: 14.5px;
	line-height: 1.55;
}

html .entry-content blockquote:not(.wp-block-pullquote) {
	margin: 1.75em 0;
	padding: 18px 22px 18px 22px;
	border: 1px solid var(--emx-border);
	border-left: 4px solid var(--emx-accent);
	border-radius: var(--emx-radius-sm) var(--emx-radius) var(--emx-radius) var(--emx-radius-sm);
	background: var(--emx-surface);
	color: var(--emx-text);
	font-style: normal;
}
html .entry-content blockquote:not(.wp-block-pullquote) > :first-child {
	margin-top: 0;
}
html .entry-content blockquote:not(.wp-block-pullquote) > :last-child {
	margin-bottom: 0;
}
html .entry-content blockquote:not(.wp-block-pullquote) > p:first-child > strong:only-child,
html .entry-content blockquote:not(.wp-block-pullquote) > :is(h3, h4):first-child {
	display: block;
	color: var(--emx-heading);
	font-size: 15px;
	letter-spacing: 0.01em;
}
html .entry-content blockquote:not(.wp-block-pullquote) .urvanov-syntax-highlighter-syntax {
	margin-top: 1em !important;
	margin-bottom: 0 !important;
}

/* Callout tones for new content: <blockquote class="emx-note emx-note--warn"> */
html .entry-content blockquote.emx-note--ok { border-left-color: var(--emx-ok); background: var(--emx-ok-soft); }
html .entry-content blockquote.emx-note--warn { border-left-color: #d79a2b; background: var(--emx-warn-soft); }
html .entry-content blockquote.emx-note--danger { border-left-color: var(--emx-danger); background: var(--emx-danger-soft); }

/* ------------------------------------------------------------------ */
/* 5. Search modal and off-canvas menu                                  */
/* ------------------------------------------------------------------ */

/* The theme paints both panels near-black in every scheme. */
html [data-header*="type-1"] #search-modal,
html [data-header*="type-1"] #offcanvas .ct-panel-inner {
	background-color: var(--emx-backdrop);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

html [data-header*="type-1"] #search-modal .ct-search-form {
	--theme-link-initial-color: var(--emx-heading);
	--theme-link-hover-color: var(--emx-accent-text);
	--theme-form-text-initial-color: var(--emx-heading);
	--theme-form-text-focus-color: var(--emx-heading);
	--theme-form-field-border-initial-color: var(--emx-border-strong);
	--theme-form-field-border-focus-color: var(--emx-accent);
	--theme-form-field-background-initial-color: var(--emx-surface);
	--theme-form-field-background-focus-color: var(--emx-surface);
	--theme-button-text-initial-color: #ffffff;
	--theme-button-text-hover-color: #ffffff;
	--theme-button-background-initial-color: var(--emx-accent);
	--theme-button-background-hover-color: var(--emx-accent-hover);
}
html #search-modal .ct-search-form-inner {
	border-radius: 12px !important;
	background: var(--emx-surface) !important;
	box-shadow: var(--emx-shadow-lift);
}
html #search-modal .ct-search-form input.modal-field {
	color: var(--emx-heading) !important;
	font-size: 20px;
}
html #search-modal .ct-search-form input.modal-field::placeholder {
	color: var(--emx-text-muted);
	opacity: 1;
}
html #search-modal .ct-search-results {
	gap: 10px !important;
}
html #search-modal .ct-search-results .ct-search-item {
	padding: 10px !important;
	border: 1px solid var(--emx-border);
	border-radius: var(--emx-radius);
	background: var(--emx-surface);
	color: var(--emx-heading) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html #search-modal .ct-search-results .ct-search-item:hover,
html #search-modal .ct-search-results .ct-search-item:focus-visible {
	border-color: var(--emx-accent-line);
	box-shadow: var(--emx-shadow);
	color: var(--emx-accent-text) !important;
}
html #search-modal .ct-search-results .ct-media-container {
	border-radius: 6px;
	overflow: hidden;
}
html #search-modal .ct-search-more,
html #search-modal .ct-search-results ~ a,
html #search-modal [class*="ct-search-more"] {
	color: var(--emx-accent-text) !important;
}
html #search-modal .ct-toggle-close,
html #offcanvas .ct-toggle-close {
	--theme-icon-color: var(--emx-text-muted);
	--theme-icon-hover-color: var(--emx-heading);
}

html [data-header*="type-1"] #offcanvas {
	--theme-link-initial-color: var(--emx-heading);
	--theme-link-hover-color: var(--emx-accent-text);
	--theme-link-active-color: var(--emx-accent-text);
	--theme-text-color: var(--emx-text);
	--theme-icon-color: var(--emx-text-muted);
}
html [data-header*="type-1"] #offcanvas [data-id="mobile-menu"] {
	--theme-link-initial-color: var(--emx-heading);
	--theme-link-hover-color: var(--emx-accent-text);
	--theme-link-active-color: var(--emx-accent-text);
}
html [data-header*="type-1"] #offcanvas [data-id="mobile-menu"] .sub-menu {
	--theme-link-initial-color: var(--emx-text);
	--theme-font-size: 18px;
	--theme-font-weight: 600;
}
html [data-header*="type-1"] #offcanvas .mobile-menu li {
	border-color: var(--emx-border) !important;
}
html [data-header*="type-1"] #offcanvas .mobile-menu {
	--mobile-menu-divider: 1px solid var(--emx-border);
}

/* ------------------------------------------------------------------ */
/* 6. Buttons and forms                                                 */
/* ------------------------------------------------------------------ */

html .entry-content .wp-block-button__link,
html .entry-content .ff-btn-submit,
html .embedonix-home-hero__button {
	border-radius: 8px !important;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
html .entry-content .wp-block-button__link:active,
html .entry-content .ff-btn-submit:active {
	transform: translateY(1px);
}

html .entry-content .fluentform .ff-el-form-control {
	border: 1px solid var(--emx-border-strong) !important;
	border-radius: 8px !important;
	background: var(--emx-surface) !important;
	color: var(--emx-heading) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html .entry-content .fluentform .ff-el-form-control:focus {
	border-color: var(--emx-accent) !important;
	box-shadow: 0 0 0 3px var(--emx-accent-soft) !important;
	outline: none;
}
html .entry-content .fluentform .ff-el-input--label label {
	color: var(--emx-heading) !important;
	font-weight: 600;
	font-size: 15px;
}
html .entry-content .fluentform .ff-el-form-control::placeholder {
	color: var(--emx-text-muted);
	opacity: 0.85;
}

/* ------------------------------------------------------------------ */
/* 7. Page building blocks (Consulting, About, Contact)                 */
/* ------------------------------------------------------------------ */

/* Shared: panels, card grids, chips, check lists, numbered steps, link lists. */
.entry-content .emx-panel {
	margin-top: 56px;
	padding: clamp(22px, 4vw, 36px);
	border: 1px solid var(--emx-border);
	border-radius: 16px;
	background: var(--emx-surface);
	box-shadow: var(--emx-shadow);
}
.entry-content .emx-panel > :first-child {
	margin-top: 0;
}
.entry-content .emx-panel > :last-child {
	margin-bottom: 0;
}
.entry-content .emx-section {
	margin-top: 56px;
}
.entry-content .emx-section > h2:first-child {
	margin-top: 0;
}

.entry-content .emx-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
	margin-top: 18px;
}
.entry-content .emx-card {
	position: relative;
	margin: 0;
	padding: 24px 22px 22px;
	border: 1px solid var(--emx-border);
	border-radius: 12px;
	background: var(--emx-surface);
	box-shadow: var(--emx-shadow);
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.entry-content .emx-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--emx-accent);
}
.entry-content .emx-card:hover {
	border-color: var(--emx-accent-line);
}
.entry-content .emx-card h3 {
	margin: 0 0 8px !important;
	color: var(--emx-heading);
	font-size: 18px !important;
	line-height: 1.3;
}
.entry-content .emx-card p {
	margin: 0 !important;
	color: var(--emx-text-muted);
	font-size: 16px;
	line-height: 1.6;
}

.entry-content ul.emx-chips,
.entry-content ul.emx-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.entry-content ul.emx-chips li,
.entry-content ul.emx-tags li {
	margin: 0 !important;
	padding: 6px 12px;
	border: 1px solid var(--emx-border);
	border-radius: 999px;
	background: var(--emx-surface-2);
	color: var(--emx-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}
/* Consulting hero: the two short chips share a row, the long one follows, so
   the hero stays close to the home hero's height. */
.embedonix-consulting-hero ul.emx-chips li:nth-child(2) {
	order: 2;
}
.entry-content .embedonix-consulting-hero ul.emx-chips {
	margin-top: 14px !important;
}
.entry-content ul.emx-tags li {
	padding: 8px 14px;
	background: var(--emx-surface);
	font-weight: 500;
	font-size: 15px;
}

.entry-content ul.emx-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 10px 28px;
	margin-top: 18px !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.entry-content ul.emx-checklist li {
	position: relative;
	margin: 0 !important;
	padding: 2px 0 2px 34px;
	color: var(--emx-text);
	line-height: 1.55;
}
.entry-content ul.emx-checklist li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--emx-accent-soft);
	box-shadow: inset 0 0 0 1px var(--emx-accent-line);
}
.entry-content ul.emx-checklist li::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 7px;
	width: 8px;
	height: 5px;
	border-left: 2px solid var(--emx-accent-text);
	border-bottom: 2px solid var(--emx-accent-text);
	transform: rotate(-45deg);
}

.entry-content ol.emx-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-top: 18px !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	list-style: none;
	counter-reset: emx-step;
}
.entry-content ol.emx-steps li {
	position: relative;
	margin: 0 !important;
	padding: 52px 18px 18px;
	border: 1px solid var(--emx-border);
	border-radius: 12px;
	background: var(--emx-surface);
	color: var(--emx-text);
	font-size: 16px;
	line-height: 1.5;
	counter-increment: emx-step;
}
.entry-content ol.emx-steps li::before {
	content: counter(emx-step);
	position: absolute;
	top: 16px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--emx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
}

.entry-content ul.emx-links {
	margin-top: 18px !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	list-style: none;
	border-top: 1px solid var(--emx-border);
}
.entry-content ul.emx-links li {
	margin: 0 !important;
	border-bottom: 1px solid var(--emx-border);
}
.entry-content ul.emx-links a {
	position: relative;
	display: block;
	padding: 14px 36px 14px 34px;
	color: var(--emx-heading);
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
}
.entry-content ul.emx-links a::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 4px;
	width: 14px;
	height: 18px;
	border: 1.5px solid var(--emx-text-muted);
	border-radius: 2px 6px 2px 2px;
}
.entry-content ul.emx-links a::after {
	content: "\2197";
	position: absolute;
	top: 13px;
	right: 8px;
	color: var(--emx-text-muted);
	transition: transform 0.15s ease, color 0.15s ease;
}
.entry-content ul.emx-links a:hover {
	color: var(--emx-accent-text);
}
.entry-content ul.emx-links a:hover::after {
	color: var(--emx-accent-text);
	transform: translate(2px, -2px);
}

/* Static page headings */
body.embedonix-enhancement-static-page .entry-content h2 {
	color: var(--emx-heading);
	letter-spacing: -0.01em;
}

/* Consulting */
/* The hero is a framed card now, so it keeps its own inner padding on phones. */
body.embedonix-enhancement-consulting-page .entry-content .embedonix-consulting-hero {
	padding: clamp(22px, 3.5vw, 40px) !important;
	border: 1px solid var(--emx-border);
	border-radius: 18px;
	background:
		radial-gradient(120% 80% at 0% 0%, var(--emx-accent-soft), transparent 60%),
		var(--emx-surface);
	box-shadow: var(--emx-shadow);
}
body.embedonix-enhancement-consulting-page .embedonix-consulting-hero h1 {
	margin-bottom: 10px;
	color: var(--emx-heading);
	font-size: clamp(28px, 2.8vw, 36px);
	line-height: 1.15;
	letter-spacing: -0.015em;
}
body.embedonix-enhancement-consulting-page .embedonix-consulting-hero .has-large-font-size {
	color: var(--emx-text-muted);
	font-size: clamp(16px, 1.4vw, 18px) !important;
	line-height: 1.5;
}
body.embedonix-enhancement-consulting-page .embedonix-consulting-hero .wp-block-buttons {
	margin-top: 18px;
}
body.embedonix-enhancement-consulting-page .embedonix-consulting-hero__portrait img {
	display: block;
	border-radius: 14px;
	/* The photo is tall and shows the bench. The frame follows the photo, at the
	   height the hero already had, so nothing is cropped. */
	width: auto !important;
	max-width: 100%;
	height: 280px !important;
	margin-right: auto;
	margin-left: auto;
	box-shadow: var(--emx-shadow-lift);
}
@media (min-width: 782px) {
	body.embedonix-enhancement-consulting-page .embedonix-consulting-hero__columns {
		align-items: center !important;
	}
}
body.embedonix-enhancement-consulting-page .emx-enquiry .fluentform {
	margin-top: 22px;
}

/* About */
body.embedonix-enhancement-about-page .entry-content > h1:first-child {
	margin-bottom: 22px;
}
.entry-content .wp-block-media-text.emx-profile {
	padding: clamp(22px, 3.5vw, 40px);
	border: 1px solid var(--emx-border);
	border-radius: 18px;
	background:
		radial-gradient(120% 80% at 0% 0%, var(--emx-accent-soft), transparent 60%),
		var(--emx-surface);
	box-shadow: var(--emx-shadow);
	column-gap: clamp(24px, 4vw, 48px);
}
.entry-content .wp-block-media-text.emx-profile .wp-block-media-text__content > p:first-child {
	margin-top: 0;
	color: var(--emx-heading);
	font-size: clamp(22px, 2.2vw, 28px) !important;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.entry-content .wp-block-media-text.emx-profile .wp-block-media-text__content > p:first-child strong {
	font-weight: 700;
}
.entry-content .wp-block-media-text.emx-profile .wp-block-media-text__content > p:not(:first-child) {
	color: var(--emx-text);
}
.entry-content .wp-block-media-text.emx-profile img {
	/* Same hero height as the home page: the portrait is a fixed 280px tall. */
	width: auto;
	max-width: 100%;
	height: 280px;
	border-radius: 14px;
	box-shadow: var(--emx-shadow-lift);
}
@media (min-width: 782px) {
	/* The portrait sits against the right padding of the card, not centred in its column. */
	.entry-content .wp-block-media-text.emx-profile .wp-block-media-text__media {
		justify-self: end;
	}
}
.entry-content .emx-perspective {
	border-left: 4px solid var(--emx-accent);
}
.entry-content .emx-perspective p:first-of-type {
	color: var(--emx-heading);
	font-size: clamp(18px, 1.6vw, 20px);
	line-height: 1.6;
}
.entry-content .emx-about-site .wp-block-buttons {
	margin-top: 22px;
}

/* Contact */
.entry-content .emx-contact {
	margin-bottom: 56px;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}
.entry-content .emx-contact > * {
	margin: 0 !important;
}
.entry-content .emx-contact__intro {
	position: sticky;
	top: 110px;
	padding: 22px 0 0;
}
.entry-content .emx-contact__intro > p:first-child {
	color: var(--emx-heading);
	font-size: 19px;
	line-height: 1.6;
}
.entry-content .emx-contact__intro .has-small-font-size {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--emx-border);
	color: var(--emx-text-muted);
}
.entry-content .emx-contact__form.emx-panel {
	margin-top: 0;
}
@media (max-width: 781px) {
	.entry-content .emx-contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.entry-content .emx-contact__intro {
		position: static;
		padding: 0;
	}
	.entry-content .emx-panel,
	.entry-content .emx-section {
		margin-top: 40px;
	}
	.entry-content ol.emx-steps {
		grid-template-columns: minmax(0, 1fr);
	}
	.entry-content ol.emx-steps li {
		padding: 16px 16px 16px 58px;
	}
	.entry-content ol.emx-steps li::before {
		top: 14px;
		left: 16px;
	}
}

/* ------------------------------------------------------------------ */
/* 8. Listings: topic chips, pagination, list hover                     */
/* ------------------------------------------------------------------ */

html .embedonix-archive-chips__chip {
	border-color: var(--emx-border) !important;
	background: var(--emx-surface) !important;
	color: var(--emx-text) !important;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
html .embedonix-archive-chips__chip:hover {
	border-color: var(--emx-accent-line) !important;
	color: var(--emx-accent-text) !important;
}
html .embedonix-archive-chips__chip--active,
html .embedonix-archive-chips__chip[aria-current="page"] {
	border-color: var(--emx-accent-line) !important;
	background: var(--emx-accent-soft) !important;
	color: var(--emx-accent-text) !important;
	font-weight: 700;
}

html .ct-pagination .page-numbers.current {
	background: var(--emx-accent) !important;
	border-color: var(--emx-accent) !important;
	color: #ffffff !important;
}
html .ct-pagination a.page-numbers:hover {
	color: var(--emx-accent-text) !important;
}
html .ct-pagination .next,
html .ct-pagination .prev {
	border-color: var(--emx-border-strong) !important;
	color: var(--emx-heading) !important;
}

/* Category, tag and search listings: the list is capped at 1040px, so the
   title block above it shares that edge (the articles archive already does). */
body.embedonix-enhancement-article-listing:not(.embedonix-enhancement-articles-archive) .hero-section {
	max-width: 1040px;
	margin-right: auto;
	margin-left: auto;
}

/* Inline search forms (404, empty results): same accent button in both schemes. */
html main .ct-search-form {
	--theme-form-field-border-initial-color: var(--emx-border-strong);
	--theme-form-field-border-focus-color: var(--emx-accent);
	--theme-form-field-background-initial-color: var(--emx-surface);
	--theme-form-field-background-focus-color: var(--emx-surface);
	--theme-form-text-initial-color: var(--emx-heading);
	--theme-form-text-focus-color: var(--emx-heading);
	--theme-button-background-initial-color: var(--emx-accent);
	--theme-button-background-hover-color: var(--emx-accent-hover);
	--theme-button-text-initial-color: #ffffff;
	--theme-button-text-hover-color: #ffffff;
}
html main .ct-search-form button[type="submit"] {
	background: var(--emx-accent) !important;
	color: #ffffff !important;
	--theme-icon-color: #ffffff;
}
html main .ct-search-form input[type="search"] {
	border-radius: 8px;
}

/* The header does not stick, so headings reached from the contents box only
   need a small gap above them. */
html .entry-content :is(h2, h3)[id] {
	scroll-margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* 9. Consent settings dialog                                           */
/* ------------------------------------------------------------------ */

html .cli-modal.cli-show,
html .cli-modal.cli-blowup {
	background: rgba(15, 29, 44, 0.45);
}
html[data-theme="dark"] .cli-modal.cli-show,
html[data-theme="dark"] .cli-modal.cli-blowup {
	background: rgba(0, 0, 0, 0.6);
}
html .cli-modal .cli-modal-content {
	border: 1px solid var(--emx-border);
	border-radius: 14px !important;
	box-shadow: var(--emx-shadow-lift);
	overflow: hidden;
}
html .cli-modal .cli-tab-header {
	border-radius: 8px !important;
}
html[data-theme="dark"] .cli-modal .cli-privacy-readmore,
html[data-theme="dark"] .cli-modal .cli-necessary-caption {
	color: var(--emx-accent-text) !important;
}
html[data-theme="dark"] .cli-modal .cli-necessary-caption {
	color: var(--emx-text-muted) !important;
}
/* Off switches looked switched on (white track) in the dark scheme. */
html[data-theme="dark"] .cli-modal .cli-switch .cli-slider {
	background-color: #34475f !important;
}
html[data-theme="dark"] .cli-modal .cli-switch .cli-slider::before {
	background-color: #c9d5e2 !important;
}
html[data-theme="dark"] .cli-modal .cli-switch input:checked + .cli-slider {
	background-color: #2f6fe8 !important;
}
html[data-theme="dark"] .cli-modal .cli-switch .cli-slider::after {
	color: var(--emx-text-muted) !important;
}

/* Reading progress line in the accent colour. */
html .embedonix-reading-progress__bar {
	background: var(--emx-accent) !important;
}

@media (max-width: 689px) {
	/* Inline-styled diagram cards: less padding so the table inside keeps
	   more of the narrow screen. */
	html .entry-content [style*="d8e0e8"] {
		padding: 12px !important;
	}
}

/* ------------------------------------------------------------------ */
/* 10. Home hero (its base styles live in the page's own HTML block)    */
/* ------------------------------------------------------------------ */

html body .embedonix-home-hero {
	--embedonix-blue: var(--emx-accent);
	--embedonix-blue-dark: var(--emx-accent-hover);
	--embedonix-text: var(--emx-text);
	--embedonix-muted: var(--emx-text-muted);
	--embedonix-border: var(--emx-border);
	color: var(--emx-text);
}
html body .embedonix-home-hero .embedonix-home-hero__inner {
	padding: clamp(22px, 3.5vw, 40px);
	border: 1px solid var(--emx-border);
	border-radius: 18px;
	background:
		radial-gradient(120% 80% at 0% 0%, var(--emx-accent-soft), transparent 60%),
		var(--emx-surface);
	box-shadow: var(--emx-shadow);
}
html body .embedonix-home-hero .embedonix-home-hero__eyebrow {
	color: var(--emx-accent-text);
	letter-spacing: 0.06em;
}
html body .embedonix-home-hero h1 {
	color: var(--emx-heading);
	letter-spacing: -0.015em;
}
html body .embedonix-home-hero .embedonix-home-hero__lead {
	color: var(--emx-text-muted);
	font-size: 1.08rem;
}
html body .embedonix-home-hero .embedonix-home-hero__button {
	border-color: var(--emx-accent);
	border-radius: 8px;
	background: var(--emx-accent);
	color: #ffffff;
}
html body .embedonix-home-hero .embedonix-home-hero__button:hover,
html body .embedonix-home-hero .embedonix-home-hero__button:focus-visible {
	border-color: var(--emx-accent-hover);
	background: var(--emx-accent-hover);
	color: #ffffff;
}
html body .embedonix-home-hero .embedonix-home-hero__button--secondary {
	border-color: var(--emx-accent-line);
	background: var(--emx-surface);
	color: var(--emx-accent-text);
}
html body .embedonix-home-hero .embedonix-home-hero__button--secondary:hover,
html body .embedonix-home-hero .embedonix-home-hero__button--secondary:focus-visible {
	border-color: var(--emx-accent);
	background: var(--emx-accent-soft);
	color: var(--emx-accent-text);
}
/* Author card: name on the left, portrait on the right, bio underneath. */
html body .embedonix-home-hero .embedonix-home-hero__author {
	padding: 18px;
	border: 1px solid var(--emx-border);
	border-radius: 14px;
	background: var(--emx-surface);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html body .embedonix-home-hero .embedonix-home-hero__author:hover,
html body .embedonix-home-hero .embedonix-home-hero__author:focus-visible {
	border-color: var(--emx-accent-line);
	box-shadow: var(--emx-shadow);
}
html body .embedonix-home-hero .embedonix-home-hero__author-top {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
}
html body .embedonix-home-hero .embedonix-home-hero__author-photo {
	order: 0;
	width: 120px !important;
	height: 150px !important;
	flex: 0 0 120px;
	border-radius: 12px;
	object-fit: cover;
	object-position: 50% 20%;
	box-shadow: 0 0 0 1px var(--emx-border);
}
@media (max-width: 430px) {
	html body .embedonix-home-hero .embedonix-home-hero__author-photo {
		width: 96px !important;
		height: 120px !important;
		flex-basis: 96px;
	}
}
html body .embedonix-home-hero .embedonix-home-hero__author h2 {
	color: var(--emx-heading);
}
html body .embedonix-home-hero .embedonix-home-hero__author-title {
	color: var(--emx-accent-text);
}
html body .embedonix-home-hero .embedonix-home-hero__author-bio {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--emx-border);
	color: var(--emx-text-muted);
}
html body .embedonix-home-hero .embedonix-home-hero__button {
	white-space: nowrap;
}
@media (max-width: 480px) {
	html body .embedonix-home-hero .embedonix-home-hero__actions {
		grid-template-columns: 1fr;
	}
	html body .embedonix-home-hero .embedonix-home-hero__actions > .embedonix-home-hero__button {
		flex: 1 1 100%;
	}
}

@media (max-width: 781px) {
	/* The stacked consulting hero orders its children explicitly (see
	   site-enhancements.css); the credential chips follow the lead text. */
	body.embedonix-enhancement-consulting-page .embedonix-consulting-hero__copy > ul.emx-chips {
		order: 3;
		margin-bottom: 8px !important;
	}
	/* About profile: introduction first, then a moderate portrait. */
	.entry-content .wp-block-media-text.emx-profile {
		display: flex;
		flex-direction: column;
	}
	.entry-content .wp-block-media-text.emx-profile .wp-block-media-text__content {
		order: 1;
		padding: 0 !important;
	}
	.entry-content .wp-block-media-text.emx-profile .wp-block-media-text__media {
		order: 2;
		width: auto;
		margin: 22px auto 0;
	}
	.entry-content .wp-block-media-text.emx-profile img {
		height: 240px;
	}
}

@media (max-width: 689px) {
	/* Tables scroll sideways on phones; tighter cells keep more columns in view. */
	html .entry-content table:not(.crayon-table):not(.cookielawinfo-row-cat-table) :is(th, td) {
		padding: 8px 10px !important;
		font-size: 14px;
		line-height: 1.45;
	}
}

/* ------------------------------------------------------------------ */
/* 11. Article end: author card, read next, comments                    */
/* ------------------------------------------------------------------ */

html .embedonix-author-trust {
	border: 1px solid var(--emx-border) !important;
	border-radius: 14px !important;
	background: var(--emx-surface) !important;
	box-shadow: var(--emx-shadow);
}
html .embedonix-author-trust__photo img {
	box-shadow: 0 0 0 3px var(--emx-surface), 0 0 0 4px var(--emx-border);
}
html .embedonix-continuation a:is(:hover, :focus-visible) :is(h3, h4, strong),
html .embedonix-continuation :is(h3, h4) a:is(:hover, :focus-visible) {
	color: var(--emx-accent-text) !important;
}

html .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	border: 1px solid var(--emx-border-strong) !important;
	border-radius: 8px !important;
	background: var(--emx-surface) !important;
	color: var(--emx-heading) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea):focus {
	border-color: var(--emx-accent) !important;
	box-shadow: 0 0 0 3px var(--emx-accent-soft) !important;
	outline: none;
}
html .comment-form .submit,
html .comment-form button[type="submit"] {
	border-radius: 8px !important;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* 12. Plain text pages (Editorial Standards, Privacy and similar)      */
/* ------------------------------------------------------------------ */

/* Text-only pages ran at 16px across the full 1170px frame, about 170
   characters a line. They get the article reading column instead. Pages with
   their own layout (About, Consulting, Contact, the home page) are excluded. */
body.embedonix-enhancement-static-page:not(.embedonix-enhancement-about-page):not(.embedonix-enhancement-consulting-page):not(:has(.emx-contact)) :is(.hero-section, .entry-content > *) {
	max-width: 820px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}
body.embedonix-enhancement-static-page:not(.embedonix-enhancement-about-page):not(.embedonix-enhancement-consulting-page):not(:has(.emx-contact)) .entry-content :is(p, li) {
	font-size: 17.5px;
	line-height: 1.75;
}
@media (max-width: 860px) {
	body.embedonix-enhancement-static-page:not(.embedonix-enhancement-about-page):not(.embedonix-enhancement-consulting-page):not(:has(.emx-contact)) :is(.hero-section, .entry-content > *) {
		max-width: calc(100% - 40px) !important;
	}
}
/* Page titles were smaller than the H2 sections under them. */
body.embedonix-enhancement-static-page .hero-section .page-title {
	color: var(--emx-heading);
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.2;
	letter-spacing: -0.015em;
}
