/* ExactFind theme components. theme.json holds the tokens; dark-mode.css remaps them. */

:root {
	--ef-focus: var(--wp--preset--color--accent);
}

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ef-focus);
	outline-offset: 2px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.ef-mark {
	display: block;
	flex: none;
}

/* ---------- Header ---------- */

.ef-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ef-header__inner.ef-header__inner {
	padding-block: 16px;
	gap: 16px 32px;
}

.ef-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ef-logo:hover {
	color: var(--wp--preset--color--contrast);
}

.ef-logo__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}

.ef-nav {
	font-size: 15px;
	font-weight: 500;
	--navigation-layout-justification-setting: flex-start;
}

.ef-nav .wp-block-navigation__container {
	gap: 4px 24px;
}

.ef-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0;
	color: var(--wp--custom--color--nav-text);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.ef-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--contrast);
}

.ef-nav .current-menu-item > .wp-block-navigation-item__content,
.ef-nav [aria-current="page"] {
	color: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
}

.ef-badge-soon {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--custom--color--badge-soon-text);
	background: var(--wp--preset--color--unconfirmed-soft);
	padding: 2px 6px;
	border-radius: 4px;
}

.ef-header__actions.ef-header__actions {
	margin-left: auto;
	gap: 12px;
}

.ef-header__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
	white-space: nowrap;
}

.ef-header__cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Theme toggle: hidden without JS (the site then follows the system setting). */
.ef-theme-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--border-strong);
	background: transparent;
	color: var(--wp--custom--color--nav-text);
	cursor: pointer;
}

.ef-js .ef-theme-toggle {
	display: inline-flex;
}

.ef-theme-toggle:hover {
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}

/* Light shows the moon (switch to dark); dark shows the sun (switch to light). */
.ef-theme-toggle__sun { display: none; }
:root[data-theme="dark"] .ef-theme-toggle__sun { display: block; }
:root[data-theme="dark"] .ef-theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ef-theme-toggle__sun { display: block; }
	:root:not([data-theme="light"]) .ef-theme-toggle__moon { display: none; }
}

/* Mobile overlay menu (core Navigation). */
.ef-nav .wp-block-navigation__responsive-container-open,
.ef-nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--contrast);
}

.ef-nav.ef-nav.ef-nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: 24px;
}

.ef-nav.ef-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.ef-nav.ef-nav .is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

.ef-nav.ef-nav .is-menu-open .wp-block-navigation__container {
	margin-left: 0;
	gap: 8px;
	font-size: 18px;
}

/* Below 600 px (core Navigation's overlay breakpoint): logo and menu button on the first row,
   theme toggle and CTA on the second, right-aligned as in the mobile design. */
@media (max-width: 599px) {
	.ef-header__inner.ef-header__inner {
		gap: 12px;
	}
	.ef-logo,
	.ef-logo-section {
		order: 1;
	}
	.ef-nav.ef-nav {
		order: 2;
		margin-left: auto;
		flex: 0 0 auto;
	}
	.ef-header__actions.ef-header__actions {
		order: 3;
		flex-basis: 100%;
		justify-content: flex-end;
	}
}

/* ---------- Main ---------- */

.ef-main {
	padding-block: var(--wp--preset--spacing--70);
}

/* ---------- Footer ---------- */

.ef-footer {
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.ef-footer__inner.ef-footer__inner {
	padding-block: 40px;
	gap: 24px 48px;
}

.ef-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--muted);
}

.ef-footer__brand a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ef-footer__brand a:hover {
	color: var(--wp--preset--color--contrast);
}

.ef-footer__brand .ef-mark {
	color: var(--wp--preset--color--contrast);
}

.ef-footer__nav .wp-block-navigation__container {
	gap: 8px 24px;
}

.ef-footer__nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ef-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--contrast);
}

.ef-footer__tm.ef-footer__tm {
	flex: 1 1 100%;
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

/* theme.json has no "code" element; set the mono family here. */
code, kbd, samp, pre {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
}

/* =========================================================================
   Components (phase 2). Block style variations are registered in functions.php.
   Every colour is a palette or custom token, so dark-mode.css switches them.
   ========================================================================= */

/* ---------- Sections ---------- */

.ef-section.ef-section {
	padding-block: var(--wp--preset--spacing--80);
	gap: var(--wp--preset--spacing--60);
}

.ef-section-intro {
	gap: 12px;
}

/* Limit the intro's text, not the intro itself, so it stays left-aligned in a constrained section. */
.ef-section-intro > * {
	max-width: 720px;
	margin-block: 0;
}

.is-style-surface-band {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--border);
}

.ef-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
}

/* Only inside flex groups: a narrower child of a constrained layout would be centred. */
.is-layout-flex > .ef-lead {
	max-width: 620px;
}

/* ---------- Paragraph styles ---------- */

.is-style-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.is-style-eyebrow.ef-eyebrow--accent {
	color: var(--wp--preset--color--accent);
}

.is-style-mono-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--accent);
}

.is-style-caption {
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

:where(.is-style-badge-free, .is-style-badge-soon, .is-style-badge-licence) {
	display: inline-block;
	width: fit-content;
	margin: 0;
	padding: 4px 8px;
	border-radius: var(--wp--custom--radius--sm);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	line-height: 1.4;
	text-transform: uppercase;
}

.is-style-badge-free {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--custom--color--accent-strong);
}

.is-style-badge-soon {
	background: var(--wp--preset--color--unconfirmed-soft);
	color: var(--wp--custom--color--badge-soon-text);
}

.is-style-badge-licence {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--text);
}

/* Placeholders must look obviously temporary: amber, dashed. */
.is-style-placeholder,
.ef-placeholder {
	border: 1px dashed var(--wp--preset--color--unconfirmed);
	color: var(--wp--custom--color--badge-soon-text);
	background: var(--wp--preset--color--unconfirmed-soft);
}

.is-style-placeholder {
	width: fit-content;
	padding: 8px 14px;
	border-radius: var(--wp--custom--radius--md);
	font-size: 13px;
}

.ef-placeholder {
	padding: 0 4px;
	border-radius: var(--wp--custom--radius--sm);
}

.is-style-notice-bar {
	margin: 0;
	padding: 10px 24px;
	text-align: center;
	font-size: 14px;
	background: var(--wp--preset--color--unconfirmed-soft);
	color: var(--wp--custom--color--badge-soon-text);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--unconfirmed) 35%, transparent);
}

/* ---------- Buttons ---------- */

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-block: 0;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background: var(--wp--custom--color--accent-strong);
	color: var(--wp--custom--color--btn-text);
}

.is-style-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border-strong);
	font-weight: 500;
}

.is-style-secondary .wp-block-button__link:hover,
.is-style-secondary .wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}

/* ---------- Cards ---------- */

:where(.is-style-card, .is-style-card-dashed, .is-style-card-emphasis) {
	padding: 24px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	gap: 10px;
}

:where(.is-style-card, .is-style-card-dashed, .is-style-card-emphasis) > * {
	margin-block: 0;
}

.is-style-card {
	border: 1px solid var(--wp--preset--color--border);
}

.is-style-card-dashed {
	border: 1px dashed var(--wp--preset--color--border-strong);
}

.is-style-card-emphasis {
	border: 2px solid var(--wp--preset--color--contrast);
}

/* Cards on a surface band sit on the page base colour. */
.is-style-surface-band .is-style-card {
	background: var(--wp--preset--color--base);
}

.ef-card--lg {
	padding: 28px;
	border-radius: var(--wp--custom--radius--lg);
}

.ef-card h3,
.ef-card .wp-block-heading {
	font-size: 18px;
}

/* Whole-card link: the card's last link stretches over the card. */
.ef-card-link {
	position: relative;
}

.ef-card-link a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ef-card-link:hover {
	border-color: var(--wp--preset--color--contrast);
}

.ef-card-link a {
	text-decoration: none;
}

.ef-card-link :where(h2, h3) a {
	color: var(--wp--preset--color--contrast);
}

.ef-card-link:focus-within {
	outline: 2px solid var(--ef-focus);
	outline-offset: 2px;
}

.ef-card-link a:focus-visible {
	outline: none;
}

.ef-more {
	font-weight: 600;
}

/* ---------- Feature rules and rows ---------- */

.is-style-feature-rule {
	padding-top: 16px;
	border-top: 2px solid var(--wp--preset--color--contrast);
	gap: 8px;
}

.is-style-feature-row {
	padding-block: 18px;
	border-top: 1px solid var(--wp--preset--color--border);
	gap: 4px;
}

:where(.is-style-feature-rule, .is-style-feature-row) > * {
	margin-block: 0;
}

:where(.is-style-feature-rule, .is-style-feature-row, .ef-faq) h3 {
	font-size: 18px;
}

/* ---------- Module marks ---------- */

.ef-mark-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ef-module-mark {
	display: block;
	flex: none;
	color: var(--wp--preset--color--contrast);
}

.ef-module-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--wp--preset--color--contrast);
}

.ef-module-name strong {
	font-weight: 600;
}

/* ---------- Dark band and panel (dark in both modes) ---------- */

.is-style-band,
.is-style-panel,
.ef-code-panel {
	background: var(--wp--preset--color--band);
	color: var(--wp--preset--color--band-text);
	--ef-logo-match: var(--wp--preset--color--band-accent);
}

.is-style-band :where(h1, h2, h3, h4, strong),
.is-style-panel :where(h1, h2, h3, h4, strong) {
	color: var(--wp--preset--color--band-text);
}

.is-style-band p:not([class*="is-style-"]),
.is-style-panel p:not([class*="is-style-"]) {
	color: #C9C6BE;
}

.is-style-band a:where(:not(.wp-element-button)),
.is-style-panel a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--band-accent);
}

.is-style-band .wp-block-button__link,
.is-style-panel .wp-block-button__link {
	background: var(--wp--preset--color--band-accent);
	color: #0E1014;
}

.is-style-band .wp-block-button__link:hover,
.is-style-panel .wp-block-button__link:hover {
	background: #7EE3BD;
	color: #0E1014;
}

.is-style-band .is-style-secondary .wp-block-button__link,
.is-style-panel .is-style-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--band-text);
	border-color: #3A3F48;
}

.is-style-panel {
	padding: 40px;
	border-radius: var(--wp--custom--radius--xl);
	gap: 24px;
}

.is-style-panel > *,
.is-style-panel .ef-panel-text > * {
	margin-block: 0;
}

.ef-panel-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

/* Privacy band diagram: site → provider. */
.ef-flow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
}

.ef-flow__node {
	flex: 1 1 0;
	padding: 18px 12px;
	border-radius: 10px;
	border: 1px solid #3A3F48;
	text-align: center;
}

.ef-flow__arrow {
	color: var(--wp--preset--color--band-accent);
	font-family: system-ui, sans-serif;
	font-size: 20px;
}

/* ---------- Code panel ---------- */

.ef-code-panel {
	margin: 0;
	padding: 28px;
	border-radius: var(--wp--custom--radius--lg);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 15px;
	line-height: 1.8;
	overflow-x: auto;
	white-space: pre;
}

.ef-code-panel code {
	font-size: inherit;
}

.ef-code__comment { color: #A3A6AE; }
.ef-code__value { color: var(--wp--preset--color--band-accent); }
.ef-code__unknown { color: #F0C98A; }

/* ---------- Result states: colour, shape and words ---------- */

.ef-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.ef-state::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	box-sizing: border-box;
}

.ef-state--match {
	color: var(--wp--custom--color--accent-strong);
}

.ef-state--match::before {
	background: var(--wp--preset--color--accent);
}

.ef-state--unconfirmed {
	color: var(--wp--custom--color--badge-soon-text);
}

.ef-state--unconfirmed::before {
	border: 2px dashed var(--wp--preset--color--unconfirmed);
}

.ef-state--near-miss {
	color: var(--wp--custom--color--near-miss-text);
}

/* Struck square: outline with a diagonal cross. */
.ef-state--near-miss::before {
	border: 2px solid var(--wp--preset--color--near-miss);
	background:
		linear-gradient(45deg, transparent calc(50% - 1px), var(--wp--preset--color--near-miss) calc(50% - 1px), var(--wp--preset--color--near-miss) calc(50% + 1px), transparent calc(50% + 1px)),
		linear-gradient(-45deg, transparent calc(50% - 1px), var(--wp--preset--color--near-miss) calc(50% - 1px), var(--wp--preset--color--near-miss) calc(50% + 1px), transparent calc(50% + 1px));
}

.ef-state-label {
	display: inline-block;
	padding: 3px 8px;
	border-radius: var(--wp--custom--radius--sm);
	font-size: 13px;
	font-weight: 600;
}

.ef-state-label--unconfirmed {
	background: var(--wp--preset--color--unconfirmed-soft);
	color: var(--wp--custom--color--badge-soon-text);
}

.ef-state-label--near-miss {
	background: var(--wp--preset--color--near-miss-soft);
	color: var(--wp--custom--color--near-miss-text);
}

/* Near-miss rows (on the site, outside mockups). */
.ef-near-miss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 16px 18px;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--near-miss) 35%, var(--wp--preset--color--surface));
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.ef-near-miss__price {
	margin-left: auto;
	font-weight: 600;
}

/* ---------- Spec chips ---------- */

.ef-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ef-chip {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	padding: 5px 10px;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Tables ---------- */

.is-style-comparison,
.is-style-log {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

.is-style-comparison table,
.is-style-log table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.is-style-comparison table {
	min-width: 720px;
}

.is-style-log table {
	min-width: 520px;
	font-size: 14px;
}

.is-style-comparison table,
.is-style-log table,
.is-style-comparison thead,
.is-style-log thead {
	border: 0;
}

/* Two classes beat core's .wp-block-table th/td borders. */
.is-style-comparison th,
.is-style-comparison td,
.is-style-log th,
.is-style-log td {
	padding: 12px 18px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--surface-2);
	text-align: left;
	vertical-align: top;
}

.is-style-comparison thead th {
	padding-block: 14px;
	border-top: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.is-style-comparison thead th:not(:first-child) {
	width: 150px;
}

.is-style-comparison tbody td:first-child {
	color: var(--wp--preset--color--contrast);
}

.is-style-log thead th {
	padding-block: 10px;
	border-top: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.is-style-comparison figcaption,
.is-style-log figcaption {
	margin: 0;
	padding: 12px 18px;
	text-align: left;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.ef-yes { color: var(--wp--custom--color--accent-strong); font-weight: 600; }
.ef-planned { color: var(--wp--custom--color--badge-soon-text); }
.ef-none { color: var(--wp--preset--color--muted); }

/* Panel heading above a log table ("Question log" · "example data"). */
.ef-table-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	overflow: hidden;
	gap: 0;
}

.ef-table-card > * {
	margin-block: 0;
}

.ef-table-card__head {
	padding: 14px 18px;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
	justify-content: space-between;
}

.ef-table-card .is-style-log {
	border: 0;
	border-radius: 0;
}

/* ---------- FAQ ---------- */

.ef-faq {
	gap: 6px;
}

.ef-faq > * {
	margin-block: 0;
}

/* ---------- Plan cards ---------- */

.ef-plan {
	gap: 18px;
}

.ef-plan__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.ef-plan__amount {
	font-family: var(--wp--preset--font-family--display);
	font-size: 48px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--wp--preset--color--contrast);
}

.ef-plan__amount.ef-placeholder {
	padding: 0 8px;
	border-radius: 6px;
	color: var(--wp--custom--color--badge-soon-text);
}

.ef-plan .wp-block-buttons,
.ef-plan .wp-block-button {
	width: 100%;
}

.ef-plan .wp-block-button__link {
	width: 100%;
}

/* ---------- Help: article list ---------- */

.is-style-article-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-article-list li {
	border-top: 1px solid var(--wp--preset--color--surface-2);
}

.is-style-article-list li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--surface-2);
}

.is-style-article-list a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	padding-block: 14px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-size: 16px;
}

.is-style-article-list a:hover span:first-child {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ef-article-list__topic {
	flex: none;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

/* ---------- Forms (waitlist, contact) ---------- */

.ef-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border-radius: var(--wp--custom--radius--lg);
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

.ef-form__label {
	font-weight: 600;
	font-size: 16px;
	color: var(--wp--preset--color--contrast);
}

.ef-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ef-form__input {
	flex: 1 1 200px;
	min-width: 0;
	min-height: 46px;
	padding: 0 14px;
	border-radius: var(--wp--custom--radius--md);
	border: 1px solid var(--wp--preset--color--border-strong);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 15px;
}

.ef-form__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.ef-form__button {
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--color--btn-bg);
	color: var(--wp--custom--color--btn-text);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.ef-form__button:hover {
	background: var(--wp--custom--color--accent-strong);
}

.ef-form__note {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.ef-form__error {
	font-size: 14px;
	color: var(--wp--custom--color--near-miss-text);
}

/* =========================================================================
   Browser mockups. Example sites keep their own colours and fonts in both
   modes, so these use fixed values, not tokens.
   ========================================================================= */

.ef-mockup {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	min-width: 0;
}

.ef-mockup__frame {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #CFCBC0;
	background: #FFFFFF;
	box-shadow: 0 24px 48px -24px rgba(20, 22, 27, 0.25);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #1C1917;
}

.ef-mockup__chrome {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #ECE9E1;
	border-bottom: 1px solid #DEDBD2;
}

.ef-mockup__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #C9C5BA;
}

.ef-mockup__url {
	flex: 1 1 auto;
	min-width: 0;
	margin-left: 12px;
	padding: 4px 12px;
	border-radius: 6px;
	background: #FFFFFF;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: #5B5E66;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ef-mockup figcaption {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

:root[data-theme="dark"] .ef-mockup__frame,
.ef-scheme-dark .ef-mockup__frame {
	border-color: #3A3F48;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ef-mockup__frame {
		border-color: #3A3F48;
	}
}

.ef-mock-link {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Answer card (inside mockups; takes the example site's accent via --mock-accent). */
.ef-mock-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 2px solid var(--mock-accent);
	background: #FFFFFF;
	font-size: 15px;
}

.ef-mock-search svg {
	flex: none;
	color: var(--mock-accent);
}

.ef-answer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--mock-line, #E5E7EB);
}

.ef-answer > p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

.ef-answer__sources {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--mock-line, #E5E7EB);
	font-size: 14px;
	color: var(--mock-accent);
}

.ef-answer__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #78716C;
}

.ef-answer__disclaimer {
	font-size: 12px;
	color: #78716C;
}

/* Harbourline Help: rust, Georgia. */
.ef-mock--harbourline {
	--mock-accent: #C2410C;
	--mock-line: #F1DCC8;
}

.ef-mock--harbourline .ef-mock__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 18px 22px;
	background: #7C2D12;
	color: #FFF7ED;
	font-family: Georgia, serif;
}

.ef-mock--harbourline .ef-mock__brand {
	font-size: 20px;
	font-weight: 700;
}

.ef-mock--harbourline .ef-mock__nav {
	font-family: system-ui, sans-serif;
	font-size: 13px;
	opacity: 0.85;
}

.ef-mock--harbourline .ef-mock__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px 26px;
	background: #FFFBF5;
}

/* Northbank Office: navy, product finding. */
.ef-mock--northbank {
	--mock-accent: #1E2B3A;
	color: #111827;
}

.ef-mock--northbank .ef-mock__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 28px;
	background: #1E2B3A;
	color: #FFFFFF;
}

.ef-mock--northbank .ef-mock__brand {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ef-mock--northbank .ef-mock__nav {
	font-size: 13px;
	opacity: 0.85;
}

.ef-mock--northbank .ef-mock__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
}

.ef-mock--northbank .ef-mock-search {
	border-radius: 6px;
	font-size: 16px;
}

.ef-mock--northbank .ef-chip {
	background: #EEF1F5;
	color: #1E2B3A;
}

.ef-mock--northbank .ef-chips__label {
	margin-right: 4px;
	font-size: 13px;
	color: #4B5563;
}

.ef-mock--northbank p {
	margin: 0;
	max-width: 820px;
	font-size: 15px;
	line-height: 1.55;
	color: #1F2937;
}

.ef-results {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ef-results__title {
	font-size: 14px;
	font-weight: 700;
}

.ef-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 14px;
}

.ef-products--unconfirmed {
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.ef-product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
}

.ef-product__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	border-radius: 4px;
	background: #F3F4F6;
	font-size: 12px;
	color: #5B6270;
}

.ef-product__name {
	font-size: 15px;
	font-weight: 700;
}

.ef-product__spec {
	font-size: 13px;
	color: #4B5563;
}

.ef-product__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.ef-product__price {
	font-size: 17px;
	font-weight: 700;
}

.ef-product__stock {
	font-size: 12px;
	color: #166534;
}

.ef-product__stock--low {
	color: #92400E;
}

/* Unconfirmed card: dashed amber border and an "Unconfirmed" label. */
.ef-product--unconfirmed {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	border: 1px dashed #D6B37A;
}

.ef-product--unconfirmed .ef-product__photo {
	flex: 0 0 72px;
	height: 72px;
}

.ef-product__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ef-product__label {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 4px;
	background: #FBF0DC;
	color: #7A4800;
	font-size: 12px;
	font-weight: 600;
}

.ef-product--unconfirmed .ef-product__price {
	margin-left: auto;
	font-size: 16px;
}

/* ---------- Styleguide page ---------- */

.ef-styleguide__scheme {
	padding-block: 48px;
	border-top: 4px solid var(--wp--preset--color--contrast);
}

.ef-styleguide__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}

.ef-styleguide__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

@media (max-width: 599px) {
	.is-style-panel {
		padding: 28px 24px;
	}
	.ef-flow {
		flex-direction: column;
		align-items: stretch;
	}
	.ef-flow__arrow {
		align-self: center;
		transform: rotate(90deg);
	}
}

/* ---------- Split layouts (intro beside main content) ---------- */

.ef-split.ef-split {
	gap: 48px;
}

.ef-split > * {
	min-width: 0;
	margin-block: 0;
}

.ef-split__intro {
	flex: 1 1 340px;
}

.ef-split__main {
	flex: 1.4 1 480px;
}

.ef-split--reverse .ef-split__main {
	flex: 2 1 520px;
}

.ef-split--reverse .ef-split__intro {
	flex: 1 1 300px;
}

.ef-heading-row > * {
	margin-block: 0;
}

.ef-muted {
	color: var(--wp--preset--color--muted);
}

.ef-plan__head.ef-plan__head {
	justify-content: flex-start;
}

.ef-plan__head > * {
	margin-block: 0;
}

.ef-plan__head .is-style-badge-soon {
	margin-left: auto;
}

.ef-plan__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}

.ef-support-card {
	align-self: flex-start;
}

/* Numbered rows: mono accent numbers, ruled. */
.ef-numbered {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ef-step;
}

.ef-numbered li {
	counter-increment: ef-step;
	display: flex;
	gap: 16px;
	padding-block: 14px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
}

.ef-numbered li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ef-numbered li::before {
	content: counter(ef-step, decimal-leading-zero);
	flex: none;
	padding-top: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--accent);
}

/* =========================================================================
   Pages (phase 3)
   ========================================================================= */

/* Marketing pages: sections run edge to edge; the template adds no padding or title. */
.ef-main--marketing.ef-main--marketing {
	padding-block: 0;
}

.ef-main--marketing .wp-block-post-content > .ef-section:first-child {
	padding-top: clamp(48px, 7vw, 88px);
}

.ef-section--hero.ef-section--hero {
	padding-bottom: clamp(48px, 6vw, 72px);
}

.ef-hero.ef-hero {
	gap: 56px;
}

.ef-hero__text {
	gap: 22px;
}

.ef-hero__text > * {
	margin-block: 0;
}

.ef-hero__title.ef-hero__title {
	font-size: clamp(38px, 4.8vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.035em;
	max-width: 15em;
}

.ef-hero__title--xl.ef-hero__title--xl {
	font-size: clamp(40px, 5.4vw, 66px);
	line-height: 1.02;
}

.ef-hero__note {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ef-hero__form {
	flex: 1 1 360px;
}

/* Heroes give the text a wider column than other split sections, as in the design. */
.ef-hero > .ef-split__intro {
	flex: 1 1 440px;
}

.ef-hero > .ef-split__main {
	flex: 1 1 520px;
}

.ef-lockup.ef-lockup {
	gap: 12px;
}

.ef-lockup > * {
	margin-block: 0;
}

.ef-section--start > * {
	margin-block: 0;
}

.ef-center {
	text-align: center;
	gap: 16px;
}

.ef-center > * {
	margin-block: 0;
	margin-inline: auto;
}

.ef-center .ef-lead {
	max-width: 680px;
}

.ef-price-note {
	display: inline-block;
}

.ef-price-line {
	color: #C9C6BE;
}

/* ---------- Plan rows (Knowledge tiers with buy buttons) ---------- */

.ef-plan__from {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.ef-plan-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ef-plan-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px 12px;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
}

.ef-plan-row__sites {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.ef-plan-row__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-align: right;
}

.ef-plan-row__unit {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.ef-plan-row .fuzionlabs-buy {
	grid-column: 1 / -1;
	margin: 0;
}

/* Buy buttons from the FuzionLabs Licensing plugin (a form with a .wp-element-button). */
.fuzionlabs-buy .wp-element-button {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--color--btn-bg);
	color: var(--wp--custom--color--btn-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.fuzionlabs-buy .wp-element-button:hover,
.fuzionlabs-buy .wp-element-button:focus-visible {
	background: var(--wp--custom--color--accent-strong);
}

/* ---------- Forms: stacked fields, honeypot, status ---------- */

.ef-form--stacked {
	max-width: 640px;
	gap: 16px;
}

.ef-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* In a column, the waitlist row's flex-basis would become a height. */
.ef-form__field .ef-form__input {
	flex: none;
}

textarea.ef-form__input {
	min-height: 140px;
	padding: 12px 14px;
	resize: vertical;
}

.ef-form__input[aria-invalid="true"] {
	border-color: var(--wp--preset--color--near-miss);
}

.ef-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ef-form__status {
	margin: 0;
	font-size: 15px;
	color: var(--wp--custom--color--near-miss-text);
}

.ef-form__status--ok {
	color: var(--wp--custom--color--accent-strong);
	font-weight: 600;
}

/* ---------- Licensing plugin output: thank-you and account pages ---------- */

.fuzionlabs-success code,
.fuzionlabs-account code {
	padding: 2px 6px;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Mockups: Fernleigh Gardens (garden centre, serif, green) ---------- */

.ef-mock--fernleigh {
	--mock-accent: #3F6B37;
	--mock-line: #DCE6D5;
	color: #1F2A1C;
}

.ef-mock--fernleigh .ef-mock__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	background: #F1F5EE;
	border-bottom: 1px solid #D9E3D2;
}

.ef-mock--fernleigh .ef-mock__brand {
	font-family: Fraunces, Georgia, serif;
	font-size: 22px;
	color: #2F4A2A;
}

.ef-mock--fernleigh .ef-mock__nav {
	font-size: 13px;
	color: #4B5B46;
}

.ef-mock--fernleigh .ef-mock__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
}

.ef-mock--fernleigh .ef-mock-search {
	border-radius: 999px;
	border-width: 1.5px;
	padding: 12px 16px;
}

.ef-mock--fernleigh .ef-answer {
	border-radius: 12px;
	background: #F7FAF5;
}

.ef-mock--fernleigh .ef-answer__label {
	color: #5C6B57;
}

/* ---------- Mockups: TallyRoster Docs (software docs, indigo chat) ---------- */

.ef-mock--tallyroster {
	--mock-accent: #4338CA;
	color: #23233A;
}

.ef-mock__layout {
	display: flex;
	min-height: 420px;
}

.ef-mock__side {
	flex: 0 0 170px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 16px;
	background: #F4F4F8;
	border-right: 1px solid #E4E4EC;
	font-size: 13px;
	color: #44445A;
}

.ef-mock--tallyroster .ef-mock__brand {
	font-size: 15px;
	font-weight: 700;
	color: #23233A;
}

.ef-mock__current {
	color: #4338CA;
	font-weight: 600;
}

.ef-mock__chat {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.ef-mock__assistant {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.ef-mock__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #4338CA;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
}

.ef-bubble {
	max-width: 88%;
	padding: 12px 14px;
	border-radius: 14px 14px 14px 4px;
	background: #F4F4F8;
	font-size: 14px;
	line-height: 1.5;
}

.ef-bubble .ef-mock-link {
	color: #4338CA;
}

.ef-bubble--user {
	align-self: flex-end;
	max-width: 80%;
	padding: 10px 14px;
	border-radius: 14px 14px 4px 14px;
	background: #4338CA;
	color: #FFFFFF;
	line-height: 1.45;
}

.ef-mock__helpful {
	display: flex;
	gap: 8px;
	margin-top: auto;
	font-size: 12px;
	color: #6B6B80;
}

.ef-mock__pill {
	padding: 2px 8px;
	border: 1px solid #DADAE6;
	border-radius: 999px;
}

@media (max-width: 599px) {
	.ef-mock__side {
		display: none;
	}
	.ef-hero.ef-hero {
		gap: 40px;
	}
}

/* Account page from the FuzionLabs Licensing plugin. */
.fuzionlabs-account {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fuzionlabs-account p {
	margin: 0;
}

.fuzionlabs-account__notice {
	padding: 10px 14px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--custom--color--accent-strong);
}

.fuzionlabs-account__signin {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 12px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
}

.fuzionlabs-account__signin label {
	flex: 1 1 100%;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.fuzionlabs-account input[type="email"] {
	flex: 1 1 240px;
	min-width: 0;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.fuzionlabs-account .wp-element-button {
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	cursor: pointer;
}

.fuzionlabs-account__licence {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
}

.fuzionlabs-account__licence h2,
.fuzionlabs-account__licence h3 {
	margin: 0;
	font-size: 20px;
}

.fuzionlabs-account__sites {
	margin: 0;
	padding-left: 1.2em;
}

/* =========================================================================
   Help centre (phase 5)
   ========================================================================= */

/* Help header: "Help" beside the logo, after a 1 px divider. */
.ef-logo-section {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-left: -6px;
	padding-left: 10px;
	border-left: 1px solid var(--wp--preset--color--border-strong);
	font-size: 15px;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.ef-logo-section:hover {
	color: var(--wp--preset--color--contrast);
}

/* ExactFind's six variables, mapped to brand tokens (they follow dark mode through the tokens).
   Set on the plugin's elements, not :root, as the integration notes require. */
.exactfind,
.exactfind-float {
	--exactfind-accent: var(--wp--preset--color--accent);
	--exactfind-accent-text: var(--wp--custom--color--btn-text);
	--exactfind-border: var(--wp--preset--color--border-strong);
	--exactfind-muted: var(--wp--preset--color--muted);
	--exactfind-surface: var(--wp--preset--color--surface);
	--exactfind-text: var(--wp--preset--color--contrast);
}

:root[data-theme="dark"] :is(.exactfind, .exactfind-float),
.ef-scheme-dark :is(.exactfind, .exactfind-float) {
	--exactfind-accent-text: #0E1014;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) :is(.exactfind, .exactfind-float) {
		--exactfind-accent-text: #0E1014;
	}
}

/* Help hero: always dark, with a white input and an accent button, as in the design. */
.ef-help-hero.ef-help-hero {
	padding-block: 72px;
	text-align: center;
}

.ef-help-hero > * {
	margin-block: 0;
}

.ef-help-hero__title.ef-help-hero__title {
	font-size: clamp(34px, 4.2vw, 50px);
	letter-spacing: -0.03em;
}

.ef-help-hero__label.ef-help-hero__label {
	margin-top: 20px;
	font-size: 14px;
	color: #C9C6BE;
}

/* The hero is dark in both modes, so its colours are fixed; the extra specificity beats the
   dark-mode variable override above. */
:root .ef-help-hero.ef-help-hero .exactfind {
	--exactfind-accent: #0B7A5A;
	--exactfind-accent-text: #FFFFFF;
	--exactfind-border: transparent;
	--exactfind-muted: #A3A6AE;
	--exactfind-text: #ECEAE4;
	margin: 10px 0 0;
	text-align: left;
}

.ef-help-hero .exactfind__welcome {
	display: none;
}

.ef-help-hero .exactfind__form {
	padding: 6px;
	border-radius: 12px;
	background: #FFFFFF;
}

/* The label wraps the input; as a flex box it is exactly the input's height. */
.ef-help-hero .exactfind__label {
	display: flex;
}

.ef-help-hero .exactfind__input {
	display: block;
	min-height: 48px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: #FFFFFF;
	color: #14161B;
	font-size: 16px;
}

.ef-help-hero .exactfind__button {
	min-height: 48px;
	padding: 0 20px;
	border-radius: 8px;
	font-weight: 600;
}

.ef-help-hero .exactfind__result {
	margin-top: 16px;
	padding: 20px;
	border-radius: 12px;
	background: #1E2128;
	border: 1px solid #343842;
	line-height: 1.6;
}

/* The help centre home page has its own question box at the top, so the floating widget isn't
   shown there as well. */
.post-type-archive-ef_help .exactfind-float {
	display: none;
}

.ef-help-hero .exactfind__sources a {
	color: var(--wp--preset--color--band-accent);
}

/* ---------- Topic cards ---------- */

.ef-topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

.ef-topic {
	gap: 6px;
	display: flex;
	flex-direction: column;
}

.ef-topic > * {
	margin: 0;
}

.ef-topic__name.ef-topic__name {
	font-size: 17px;
}

.ef-topic p:not(.ef-topic__count) {
	font-size: 14px;
	line-height: 1.5;
}

.ef-topic__count {
	margin-top: auto;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.ef-empty {
	color: var(--wp--preset--color--muted);
}

/* ---------- Breadcrumbs, titles, meta ---------- */

.ef-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ef-breadcrumbs li + li::before {
	content: "›";
	margin-right: 4px;
}

.ef-breadcrumbs a {
	display: inline-block;
	padding-block: 10px;
	color: var(--wp--preset--color--muted);
}

.ef-help-title.ef-help-title {
	margin-top: 8px;
	font-size: clamp(32px, 4vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.ef-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ef-topic-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--custom--color--accent-strong);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ef-help-topic .wp-block-term-description {
	margin-top: 8px;
}

.ef-help-topic .is-style-article-list {
	margin-top: 32px;
}

.ef-help-others {
	margin-top: 72px;
	gap: 20px;
}

.ef-help-others > * {
	margin: 0;
}

/* ---------- Article layout: sticky contents on the left at 1024 px and wider ---------- */

.ef-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
	gap: 48px;
}

.ef-article-layout__toc:empty,
.ef-article-layout__toc:not(:has(.ef-toc)) {
	display: none;
}

@media (min-width: 1024px) {
	.ef-article-layout:has(.ef-toc) {
		grid-template-columns: 220px minmax(0, 760px);
	}
	.ef-article-layout__toc .ef-toc {
		position: sticky;
		top: 24px;
	}
}

/* The spec puts the contents beside long articles at 1024 px and wider; narrower screens read straight through. */
@media (max-width: 1023px) {
	.ef-article-layout__toc {
		display: none;
	}
}

.ef-toc__title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}

.ef-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
}

.ef-toc a {
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 2px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ef-toc a:hover {
	border-left-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Article body ---------- */

.ef-article__body {
	margin-top: 32px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--wp--preset--color--text);
}

.ef-article__body > * + * {
	margin-top: 1.1em;
}

.ef-article__body h2 {
	margin-top: 2em;
	font-size: 26px;
	scroll-margin-top: 24px;
}

.ef-article__body h3 {
	margin-top: 1.6em;
	font-size: 19px;
	scroll-margin-top: 24px;
}

.ef-article__body :where(ul, ol) {
	padding-left: 1.4em;
}

.ef-article__body li + li {
	margin-top: 0.35em;
}

.ef-article__body :not(pre) > code {
	padding: 1px 5px;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--contrast);
	font-size: 0.85em;
}

.ef-article__body .wp-block-code {
	margin-inline: 0;
	padding: 18px 20px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--band);
	color: #ECEAE4;
	font-size: 14px;
	line-height: 1.6;
	overflow-x: auto;
}

.ef-article__body .wp-block-code code {
	white-space: pre;
}

/* Tables in help articles: header row on the base colour, rows ruled, scroll on small screens. */
.is-style-help-table {
	overflow-x: auto;
	margin-inline: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
}

.is-style-help-table table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.is-style-help-table th,
.is-style-help-table td {
	padding: 10px 14px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--surface-2);
	text-align: left;
	vertical-align: top;
}

.is-style-help-table code {
	white-space: nowrap;
}

.is-style-help-table thead,
.is-style-help-table thead th {
	border: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* Callouts use the result-state colours: note = accent, caution = unconfirmed. Text says which. */
:where(.is-style-callout-note, .is-style-callout-caution) {
	padding: 14px 18px;
	border-left: 4px solid;
	border-radius: 0 var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0;
	color: var(--wp--preset--color--contrast);
}

.is-style-callout-note {
	border-left-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent-soft);
}

.is-style-callout-caution {
	border-left-color: var(--wp--preset--color--unconfirmed);
	background: var(--wp--preset--color--unconfirmed-soft);
}

/* A screenshot still to be taken: obviously temporary, like the price placeholders. */
.ef-screenshot-placeholder {
	padding: 14px 18px;
	border: 1px dashed var(--wp--preset--color--unconfirmed);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--unconfirmed-soft);
	color: var(--wp--custom--color--badge-soon-text);
	font-size: 14px;
}

/* ---------- Was this helpful? (needs JS, so hidden without it) ---------- */

.ef-helpful {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 48px;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

.ef-js .ef-helpful {
	display: flex;
}

.ef-helpful__question {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.ef-helpful__buttons {
	display: flex;
	gap: 8px;
}

.ef-helpful__button {
	min-width: 64px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	cursor: pointer;
}

.ef-helpful__button:hover:not(:disabled) {
	border-color: var(--wp--preset--color--contrast);
}

.ef-helpful__button[aria-pressed="true"] {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--custom--color--accent-strong);
}

.ef-helpful__button:disabled {
	cursor: default;
}

.ef-helpful__thanks {
	flex-basis: 100%;
	margin: 0;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ef-helpful__thanks:empty {
	display: none;
}

.ef-related {
	margin-top: 48px;
}

.ef-related__title.ef-related__title {
	margin: 0 0 8px;
	font-size: 22px;
}

.ef-help-article .ef-support-card {
	margin-top: 40px;
}

/* =========================================================================
   System pages (phase 6): search results, 404, legal pages
   ========================================================================= */

.ef-system-page > * + * {
	margin-top: 24px;
}

.ef-search-form .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0;
	border: 0;
}

.ef-search-form .wp-block-search__input {
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.ef-search-form .wp-block-search__button {
	min-height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--color--btn-bg);
	color: var(--wp--custom--color--btn-text);
	font: inherit;
	font-weight: 600;
}

.ef-search-form .wp-block-search__label {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.ef-results-list .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-result {
	gap: 6px;
	padding-block: 18px;
	border-top: 1px solid var(--wp--preset--color--surface-2);
}

.ef-result > * {
	margin: 0;
}

.ef-result__title.ef-result__title {
	font-size: 20px;
	line-height: 1.3;
}

.ef-result__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ef-result__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ef-result__excerpt {
	font-size: 15px;
	color: var(--wp--preset--color--text);
}

.ef-result__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

/* Legal pages: readable lists. */
.ef-main .wp-block-post-content > .wp-block-list li + li {
	margin-top: 0.6em;
}

/* Text pages (page.html: Privacy, Terms, Contact, account): article-sized headings, not marketing ones. */
.ef-main:not(.ef-main--marketing) > .wp-block-post-title {
	font-size: clamp(36px, 4.4vw, 52px);
	line-height: 1.08;
}

.ef-main:not(.ef-main--marketing) .wp-block-post-content > h2 {
	margin-top: 1.8em;
	font-size: 28px;
}

/* Visually hidden text for screen readers (also used by Contact Form 7). */
.screen-reader-text,
.screen-reader-response {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Contact Form 7 (its own CSS isn't loaded): match the site's forms. */
.ef-form--cf7 .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.ef-form--cf7 .hidden-fields-container {
	margin: 0;
	padding: 0;
	border: 0;
}

.ef-form--cf7 .wpcf7-form-control-wrap {
	display: block;
}

.ef-form--cf7 .ef-form__input {
	width: 100%;
	box-sizing: border-box;
}

.ef-form--cf7 select.ef-form__input {
	appearance: none;
	padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

.ef-form--cf7 .ef-form__note {
	margin: 0;
}

.ef-form--cf7 .wpcf7-not-valid {
	border-color: var(--wp--preset--color--near-miss);
}

.ef-form--cf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: var(--wp--custom--color--near-miss-text);
}

.ef-form--cf7 .wpcf7-spinner {
	display: none;
}

.ef-form--cf7 .wpcf7-form.submitting .ef-form__button {
	opacity: 0.6;
	cursor: wait;
}

.ef-form--cf7 .wpcf7-response-output {
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	font-size: 15px;
}

.ef-form--cf7 .wpcf7-response-output:empty {
	display: none;
}

.ef-form--cf7 .wpcf7-form.sent .wpcf7-response-output {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--custom--color--accent-strong);
	font-weight: 600;
}

.ef-form--cf7 .wpcf7-form:is(.invalid, .failed, .spam, .aborted) .wpcf7-response-output {
	background: var(--wp--preset--color--near-miss-soft);
	color: var(--wp--custom--color--near-miss-text);
}

.ef-form--cf7 .wpcf7-turnstile {
	min-height: 65px;
}

/* Touch targets of at least 44 px: the topic badge keeps its small look with a larger hit area,
   and search pagination links get full-height targets. */
.ef-topic-badge {
	position: relative;
}

.ef-topic-badge::before {
	content: "";
	position: absolute;
	inset: -8px -4px;
}

.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Mockups shrink to the narrowest phones (320 px): never wider than their column, and the example
   site headers wrap. */
.ef-mockup,
.ef-mockup__frame {
	min-width: 0;
	max-width: 100%;
}

.ef-split__main:has(> .ef-mockup),
.ef-split__main .ef-mockup {
	min-width: 0;
}

.ef-mock__header {
	flex-wrap: wrap;
}

.ef-mockup__chrome {
	min-width: 0;
}

/* Help article screenshots (imported from the plugin repo's docs/kb/images). */
.ef-article__body .ef-screenshot img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}
