/**
 * EazySoft v2 chrome (Phase 13, D-05, UI-SPEC C1-C3, Class Contract additions).
 *
 * Enqueued only while eazysoft_v2_enabled() is true (inc/v2.php eazysoft_v2_enqueue), after
 * catalog.css. Every selector starts with body.ez-v2, so nothing here can reach a flag-off page.
 * Tokens only: palette, spacing and font-size presets; the one custom property is
 * --wp--custom--ez-footer-rule. Logical properties only (test_rtl_css.py scans this file).
 * Breakpoints: the toggle at 782px (locked); the footer grid at 640px and 1024px.
 *
 * Header rows (UI-SPEC Breakpoints, single-row check, measured by e2e v2-mobile-nav with the
 * self-hosted fonts): logo 205px + nav 613px + actions 356px + two 24px column gaps need 1222px,
 * more than the 1200px content column, so the header keeps the two-row layout (row 1 logo and
 * actions, row 2 the nav, start-aligned) at every width from 782px. Nav padding is never shrunk
 * below 8 / 12 and the nav never scrolls.
 */

/* ------------------------------------------------------------------ header: frame (C1) */

body.ez-v2 .wp-block-template-part:has(> .ez-header) {
	position: sticky;
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
	z-index: 10000;
}

body.ez-v2 .ez-header {
	background-color: var(--wp--preset--color--surface);
	border-block-end: 1px solid var(--wp--preset--color--ez-line);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.7;
}

body.ez-v2 .ez-header__inner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	max-inline-size: calc(1200px + 2 * var(--wp--preset--spacing--40));
	min-block-size: 64px;
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40);
}

body.ez-v2 .ez-header__brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

body.ez-v2 .ez-header__brand img {
	display: block;
	block-size: 40px;
	inline-size: auto;
	max-inline-size: none;
}

/* ------------------------------------------------------------------ header: nav (C1) */

body.ez-v2 .ez-header__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ez-v2 .ez-header__nav li {
	margin: 0;
	padding: 0;
}

body.ez-v2 .ez-header__nav a {
	box-sizing: border-box;
	display: block;
	min-block-size: 48px;
	padding-block: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--10);
	border-block-end: 1px solid var(--wp--preset--color--ez-line);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	text-decoration: none;
	transition: color 150ms ease, border-color 150ms ease;
}

body.ez-v2 .ez-header__nav a:hover {
	color: var(--wp--preset--color--ez-navy);
}

body.ez-v2 .ez-header__nav a[aria-current] {
	color: var(--wp--preset--color--ez-navy);
	font-weight: 600;
}

/* ------------------------------------------------------------------ header: actions */

body.ez-v2 .ez-header__login {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 44px;
	color: var(--wp--preset--color--ez-navy);
	font-weight: 600;
	text-decoration: none;
}

body.ez-v2 .ez-header__login:hover {
	text-decoration: underline;
}

body.ez-v2 .ez-header .wp-block-buttons {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

body.ez-v2 .ez-header .wp-block-button {
	margin: 0;
}

body.ez-v2 .ez-header .wp-block-button__link {
	padding-inline: var(--wp--preset--spacing--40);
}

body.ez-v2 .ez-header__terms {
	margin: 0;
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
	text-align: center;
}

/* The mobile action group (C2): trial, terms, demo, login; full width, centred. */
body.ez-v2 .ez-header__panel-actions {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--50);
}

body.ez-v2 .ez-header__panel-actions .wp-block-buttons {
	flex-direction: column;
	align-items: stretch;
}

body.ez-v2 .ez-header__panel-actions .wp-block-button,
body.ez-v2 .ez-header__panel-actions .wp-block-button__link {
	box-sizing: border-box;
	inline-size: 100%;
	text-align: center;
}

body.ez-v2 .ez-header__panel-actions .ez-header__login {
	padding: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--ez-body);
}

/* The desktop action group (C1): login, demo, trial. */
body.ez-v2 .ez-header__actions {
	display: none;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

body.ez-v2 .ez-header__actions .ez-header__login {
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--ez-small);
}

/* ------------------------------------------------------------------ header: toggle (C2) */

body.ez-v2 .ez-header__toggle:not([hidden]) {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--ez-line);
	border-radius: 10px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-navy);
	cursor: pointer;
	transition: border-color 150ms ease;
}

body.ez-v2 .ez-header__toggle:hover {
	border-color: var(--wp--preset--color--ez-chip-line);
}

body.ez-v2 .ez-header__icon {
	display: block;
	inline-size: 22px;
	block-size: 22px;
}

body.ez-v2 .ez-header__toggle[aria-expanded="true"] .ez-header__icon--menu,
body.ez-v2 .ez-header__toggle:not([aria-expanded="true"]) .ez-header__icon--close {
	display: none;
}

/* ------------------------------------------------------------------ header: focus */

body.ez-v2 .ez-header a:focus-visible,
body.ez-v2 .ez-header button:focus-visible,
body.ez-v2 .ez-header .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ mobile (< 782px) */

@media (max-width: 781px) {
	/* Without JS the panel stacks under the bar and the header is not sticky, so the stacked
	   menu never covers the page. */
	body.ez-v2 .wp-block-template-part:has(> .ez-header:not(.ez-header--js)) {
		position: static;
	}

	body.ez-v2 .ez-header__panel {
		flex: 1 0 100%;
		padding-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	}

	/* With JS (header-v2.js adds ez-header--js) the panel is collapsed until the toggle opens it. */
	body.ez-v2 .ez-header--js .ez-header__panel {
		display: none;
	}

	body.ez-v2 .ez-header--js.is-open .ez-header__panel {
		box-sizing: border-box;
		display: block;
		position: fixed;
		/* The 64px bar plus its 1px bottom border, below the admin bar when there is one. */
		inset-block-start: calc(65px + var(--wp-admin--admin-bar--height, 0px));
		inset-block-end: 0;
		inset-inline: 0;
		z-index: 10001;
		overflow-y: auto;
		margin: 0;
		padding-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
		padding-inline: var(--wp--preset--spacing--40);
		background-color: var(--wp--preset--color--surface);
	}

	body.ez-v2 .eazysoft-whatsapp-float[inert] {
		visibility: hidden;
	}
}

/* ------------------------------------------------------------------ desktop and tablet (>= 782px) */

@media (min-width: 782px) {
	body.ez-v2 .ez-header__inner {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"brand actions"
			"nav nav";
		align-items: center;
		max-inline-size: calc(1200px + 2 * var(--wp--preset--spacing--50));
		min-block-size: 84px;
		padding-block: var(--wp--preset--spacing--40);
		padding-inline: var(--wp--preset--spacing--50);
	}

	body.ez-v2 .ez-header__brand {
		grid-area: brand;
	}

	body.ez-v2 .ez-header__brand img {
		block-size: 44px;
	}

	body.ez-v2 .ez-header__toggle:not([hidden]) {
		display: none;
	}

	body.ez-v2 .ez-header__panel {
		display: contents;
	}

	body.ez-v2 .ez-header__panel-actions {
		display: none;
	}

	body.ez-v2 .ez-header__nav {
		grid-area: nav;
		justify-self: start;
	}

	body.ez-v2 .ez-header__nav ul {
		display: flex;
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--10);
	}

	body.ez-v2 .ez-header__nav a {
		display: inline-flex;
		align-items: center;
		min-block-size: 44px;
		padding-block: var(--wp--preset--spacing--20);
		padding-inline: var(--wp--preset--spacing--30);
		border-block-end: 3px solid transparent;
	}

	body.ez-v2 .ez-header__nav a:hover {
		border-block-end-color: var(--wp--preset--color--ez-chip-line);
	}

	body.ez-v2 .ez-header__nav a[aria-current] {
		border-block-end-color: var(--wp--preset--color--ez-blue);
	}

	body.ez-v2 .ez-header__actions {
		grid-area: actions;
		display: flex;
		justify-self: end;
	}

	body.ez-v2 .ez-header__actions .wp-block-buttons {
		flex-wrap: nowrap;
	}
}

/* ------------------------------------------------------------------ footer (C3) */

body.ez-v2 .ez-footer {
	background-color: var(--wp--preset--color--ez-footer);
	color: var(--wp--preset--color--ez-footer-ink);
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.7;
}

body.ez-v2 .ez-footer__inner {
	box-sizing: border-box;
	max-inline-size: calc(1200px + 2 * var(--wp--preset--spacing--50));
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
	padding-inline: var(--wp--preset--spacing--50);
}

body.ez-v2 .ez-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
}

/* The v2 styles give core/paragraph the `ink` text colour (:root :where(p)); in the footer every
   paragraph (descriptor, location, the bottom row) takes the footer ink instead (K8, plan 13-14:
   measured #3B4658 on #06122F, 1.94:1, before this rule). */
body.ez-v2 .ez-footer p {
	margin: 0;
	color: inherit;
}

body.ez-v2 .ez-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
}

body.ez-v2 .ez-footer__brand img {
	display: block;
	block-size: 44px;
	inline-size: auto;
	max-inline-size: none;
}

body.ez-v2 .ez-footer__col {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	min-inline-size: 0;
}

body.ez-v2 .ez-footer__col h2 {
	margin: 0;
	margin-block-end: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--ez-on-navy);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

body.ez-v2 .ez-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ez-v2 .ez-footer__col li {
	margin: 0;
	padding: 0;
}

body.ez-v2 .ez-footer address {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	font-style: normal;
}

body.ez-v2 .ez-footer address a[dir="ltr"] {
	text-align: start;
	align-self: flex-start;
}

body.ez-v2 .ez-footer a {
	color: var(--wp--preset--color--ez-footer-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 150ms ease;
}

body.ez-v2 .ez-footer a:hover {
	color: var(--wp--preset--color--ez-on-navy);
	text-decoration: underline;
}

body.ez-v2 .ez-footer a:focus-visible,
body.ez-v2 .ez-footer .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-blue-on-navy);
	outline-offset: 2px;
}

/* The trial text link (key trial, placement footer): the only accent-on-dark text (K9). */
body.ez-v2 .ez-footer .ez-footer__trial {
	display: block;
	margin: 0;
	margin-block-start: var(--wp--preset--spacing--20);
}

body.ez-v2 .ez-footer .ez-footer__trial .wp-block-button {
	display: block;
	margin: 0;
}

body.ez-v2 .ez-footer .ez-footer__trial .wp-block-button__link {
	display: inline;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	animation: none;
	color: var(--wp--preset--color--ez-blue-on-navy);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-align: start;
	text-decoration: none;
}

body.ez-v2 .ez-footer .ez-footer__trial .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--ez-on-navy);
	text-decoration: underline;
}

body.ez-v2 .ez-footer__terms {
	color: var(--wp--preset--color--ez-footer-ink);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

body.ez-v2 .ez-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	margin-block-start: var(--wp--preset--spacing--70);
	padding-block-start: var(--wp--preset--spacing--50);
	border-block-start: 1px solid var(--wp--custom--ez-footer-rule);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

/* 2 x 2 from 640px, 4 columns from 1024px (UI-SPEC Breakpoints). */
@media (min-width: 640px) {
	body.ez-v2 .ez-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ez-v2 .ez-footer__bottom {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	body.ez-v2 .ez-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ v2 frames (plan 13-09, D-07) */

/* The band sits directly under the header and the body frame directly under the band: no
   site-blocks or flow-layout block gap between them, and no theme.json group padding on main. */
body.ez-v2 .ez-v2-main,
body.ez-v2 .ez-v2-main > .ez-title-band,
body.ez-v2 .ez-v2-main > .ez-v2-frame {
	margin-block: 0;
}

body.ez-v2 .ez-v2-main {
	padding-block: 0;
}

/* The body frame of v2-page, v2-single, v2-archive and v2-index, padded here and not in the
   markup, so the band can take over its top padding when the body's lead continues the band. */
body.ez-v2 .ez-v2-frame {
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--80);
}

/* ------------------------------------------------------------------ title band (C4) */

body.ez-v2 .ez-title-band {
	background-color: var(--wp--preset--color--ez-surface);
	border-block-end: 1px solid var(--wp--preset--color--ez-line);
}

body.ez-v2 .ez-title-band__inner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
	max-inline-size: calc(1200px + 2 * var(--wp--preset--spacing--40));
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	padding-inline: var(--wp--preset--spacing--40);
	text-align: start;
}

body.ez-v2 .ez-title-band__inner > * {
	margin: 0;
}

body.ez-v2 .ez-title-band__title {
	max-inline-size: 100%;
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-display);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-title-band__lead,
body.ez-v2 .ez-title-band__lead p {
	max-inline-size: 800px;
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-title-band__lead p {
	margin: 0;
}

body.ez-v2 .ez-title-band__lead p + p {
	margin-block-start: var(--wp--preset--spacing--20);
}

/* Home variant (front page): no breadcrumb, centred (the Phase 12 P1 composition). */
body.ez-v2 .ez-title-band--home .ez-title-band__inner {
	align-items: center;
	text-align: center;
}

/* Lead continuation (C4): the body's first .ezc-page > .ezc-page-lead shares the band. The band
   gives up its bottom padding and border, the frame its top padding, and the lead group takes
   the band ground full-bleed (a 100vmax spread clipped to the group's block edges, so nothing
   scrolls sideways) with the band's bottom padding and border at its end. */
body.ez-v2 .ez-title-band--continued {
	border-block-end: 0;
}

body.ez-v2 .ez-title-band--continued .ez-title-band__inner {
	padding-block-end: 0;
}

body.ez-v2 .ez-title-band--continued + .ez-v2-frame {
	padding-block-start: 0;
}

body.ez-v2 .ez-title-band--continued + .ez-v2-frame .wp-block-post-content > .ezc-page:first-child > .ezc-page-lead:first-child {
	box-sizing: border-box;
	margin-block-end: var(--wp--preset--spacing--50);
	padding-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--ez-surface);
	box-shadow: 0 0 0 100vmax var(--wp--preset--color--ez-surface), 0 1px 0 100vmax var(--wp--preset--color--ez-line);
	clip-path: inset(0 -100vmax -1px);
}

body.ez-v2 .ez-title-band--continued + .ez-v2-frame .wp-block-post-content > .ezc-page:first-child > .ezc-page-lead:first-child > p {
	max-inline-size: 800px;
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 400;
	line-height: 1.7;
}

/* Interior pages: the lead, its CTA pair and terms are start-aligned at the band's 1200 column
   start (the front page keeps them centred). */
body.ez-v2 .ez-title-band--continued:not(.ez-title-band--home) + .ez-v2-frame .wp-block-post-content > .ezc-page:first-child > .ezc-page-lead:first-child {
	max-inline-size: 1200px;
}

body.ez-v2 .ez-title-band--continued:not(.ez-title-band--home) + .ez-v2-frame .ezc-page-lead:first-child > p,
body.ez-v2 .ez-title-band--continued:not(.ez-title-band--home) + .ez-v2-frame .ezc-page-lead:first-child .ezc-cta__terms {
	text-align: start;
}

body.ez-v2 .ez-title-band--continued:not(.ez-title-band--home) + .ez-v2-frame .ezc-page-lead:first-child .wp-block-group.ezc-cta .wp-block-buttons {
	justify-content: flex-start;
}

@media (min-width: 640px) {
	body.ez-v2 .ez-title-band__inner {
		max-inline-size: calc(1200px + 2 * var(--wp--preset--spacing--50));
		padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
		padding-inline: var(--wp--preset--spacing--50);
	}

	body.ez-v2 .ez-title-band--continued .ez-title-band__inner {
		padding-block-end: 0;
	}

	body.ez-v2 .ez-title-band--continued + .ez-v2-frame .wp-block-post-content > .ezc-page:first-child > .ezc-page-lead:first-child {
		padding-block-end: var(--wp--preset--spacing--60);
	}

	/* .ezc-page pads 16 inline, the band 24: the lead adds the 8 so both columns start together. */
	body.ez-v2 .ez-title-band--continued:not(.ez-title-band--home) + .ez-v2-frame .wp-block-post-content > .ezc-page:first-child > .ezc-page-lead:first-child {
		max-inline-size: calc(1200px + 2 * var(--wp--preset--spacing--20));
		padding-inline: var(--wp--preset--spacing--20);
	}
}

/* ------------------------------------------------------------------ band: breadcrumb, pills, meta */

body.ez-v2 .ez-breadcrumb {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

body.ez-v2 .ez-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ez-v2 .ez-breadcrumb__item {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-breadcrumb a {
	color: var(--wp--preset--color--ez-muted);
	text-decoration: none;
	transition: color 150ms ease;
}

body.ez-v2 .ez-breadcrumb a:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration: underline;
}

body.ez-v2 .ez-breadcrumb [aria-current] {
	color: var(--wp--preset--color--ez-muted);
}

body.ez-v2 .ez-title-band__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

body.ez-v2 .ez-title-band__pill {
	display: inline-flex;
	align-items: center;
	padding-block: var(--wp--preset--spacing--10);
	padding-inline: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 999px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: border-color 150ms ease;
}

body.ez-v2 .ez-title-band__pill:hover {
	border-color: var(--wp--preset--color--ez-cta);
	color: var(--wp--preset--color--ez-cta);
}

body.ez-v2 .ez-title-band__meta {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

/* Byline (plan 14-11): the meta style, with the author's name linking to the author archive; the
   author archive's bio reads as body text under the job title lead. */
body.ez-v2 .ez-title-band__byline {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

body.ez-v2 .ez-title-band__byline a {
	color: var(--wp--preset--color--ez-cta);
	font-weight: 600;
	text-decoration: none;
}

body.ez-v2 .ez-title-band__byline a:hover,
body.ez-v2 .ez-title-band__byline a:focus-visible {
	text-decoration: underline;
}

body.ez-v2 .ez-title-band__bio {
	max-inline-size: 800px;
	color: var(--wp--preset--color--ez-muted);
	line-height: 1.8;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ single post (C6) */

/* Article prose: Body 16, line height 1.8; h2 Title 20/600 and h3 Body 16/600, so the post H1
   stays clearly above the article headings (UI-SPEC Typography). */
body.ez-v2 .ez-v2-main--single .wp-block-post-content {
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.8;
}

body.ez-v2 .ez-v2-main--single .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

body.ez-v2 .ez-v2-main--single .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

body.ez-v2 .ez-v2-main--single .wp-block-post-featured-image img {
	border-radius: 16px;
}

body.ez-v2 .ez-post-nav {
	gap: var(--wp--preset--spacing--40);
}

body.ez-v2 .ez-post-nav a {
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-body);
	text-decoration: none;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-post-nav a:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration: underline;
}

/* The post CTA card (replaces footer-cta): navy, radius 16, padding 32, gap 16, 48 below the post
   navigation, inside the 700 column. */
body.ez-v2 .wp-block-group.ez-post-cta {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--40);
	margin-block: var(--wp--preset--spacing--70) 0;
	padding: var(--wp--preset--spacing--60);
	border-radius: 16px;
	background-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--ez-on-navy-muted);
}

body.ez-v2 .ez-post-cta > * {
	margin: 0;
}

body.ez-v2 .ez-post-cta .ez-post-cta__title {
	color: var(--wp--preset--color--ez-on-navy);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-post-cta .ez-post-cta__text {
	color: var(--wp--preset--color--ez-on-navy-muted);
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.7;
}

body.ez-v2 .wp-block-group.ez-post-cta__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
}

body.ez-v2 .ez-post-cta__row > * {
	margin: 0;
}

body.ez-v2 .ez-post-cta .ez-post-cta__terms {
	color: var(--wp--preset--color--ez-on-navy-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

/* On navy: the ez-blue-on-navy ring (more specific than the light ring of the v2 frames below). */
body.ez-v2 .ez-v2-main .ez-post-cta a:focus-visible,
body.ez-v2 .ez-v2-main .ez-post-cta .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-blue-on-navy);
	outline-offset: 2px;
}

@media (max-width: 639px) {
	body.ez-v2 .wp-block-group.ez-post-cta__row {
		flex-direction: column;
		align-items: stretch;
	}

	body.ez-v2 .ez-post-cta__actions,
	body.ez-v2 .ez-post-cta__actions .wp-block-button,
	body.ez-v2 .ez-post-cta__actions .wp-block-button__link {
		box-sizing: border-box;
		inline-size: 100%;
	}
}

/* ------------------------------------------------------------------ archive and blog index (C6) */

body.ez-v2 .ez-post-grid {
	gap: var(--wp--preset--spacing--50);
}

body.ez-v2 .wp-block-group.ez-post-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	block-size: 100%;
	margin: 0;
	padding: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 16px;
	background-color: var(--wp--preset--color--surface);
}

body.ez-v2 .ez-post-card > * {
	margin: 0;
}

body.ez-v2 .ez-post-card__image img {
	border-radius: 10px;
}

body.ez-v2 .ez-post-card__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

body.ez-v2 .ez-post-card__pills .wp-block-post-terms__separator {
	display: none;
}

body.ez-v2 .ez-post-card__pills a {
	display: inline-flex;
	align-items: center;
	padding-block: var(--wp--preset--spacing--10);
	padding-inline: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--ez-surface);
	border-radius: 999px;
	background-color: var(--wp--preset--color--ez-surface);
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: border-color 150ms ease;
}

body.ez-v2 .ez-post-card__pills a:hover {
	border-color: var(--wp--preset--color--ez-cta);
}

body.ez-v2 .ez-post-card__date,
body.ez-v2 .ez-post-row__date {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

body.ez-v2 .ez-post-card__title {
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-post-card__title a,
body.ez-v2 .ez-post-row__title a {
	color: var(--wp--preset--color--ez-navy);
	text-decoration: none;
	transition: color 150ms ease;
}

body.ez-v2 .ez-post-card__title a:hover,
body.ez-v2 .ez-post-row__title a:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration: underline;
}

body.ez-v2 .ez-post-card__excerpt,
body.ez-v2 .ez-post-row__excerpt {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.7;
}

body.ez-v2 .ez-post-card__excerpt p,
body.ez-v2 .ez-post-row__excerpt p {
	margin: 0;
}

/* Blog index rows: the v1 list layout (date, title, excerpt, a 1px rule between rows). */
body.ez-v2 .wp-block-group.ez-post-row {
	margin: 0;
	margin-block-end: var(--wp--preset--spacing--50);
	padding-block: var(--wp--preset--spacing--50);
	padding-inline: 0;
	border-block-end: 1px solid var(--wp--preset--color--ez-line);
}

body.ez-v2 .ez-post-row > * {
	margin: 0;
}

body.ez-v2 .ez-post-row > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

body.ez-v2 .ez-post-row__title {
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-post-list__empty {
	color: var(--wp--preset--color--ez-muted);
	text-align: center;
}

/* Pagination wraps (390) and is not printed with one page (core prints no block then). */
body.ez-v2 .ez-pagination {
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--60);
}

body.ez-v2 .ez-pagination a,
body.ez-v2 .ez-pagination .page-numbers {
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-body);
}

body.ez-v2 .ez-pagination .page-numbers.current {
	color: var(--wp--preset--color--ez-navy);
	font-weight: 600;
}

/* ------------------------------------------------------------------ 404 (C6) */

body.ez-v2 .ez-v2-main--404 {
	padding-block: var(--wp--preset--spacing--90);
	padding-inline: var(--wp--preset--spacing--40);
}

body.ez-v2 .wp-block-group.ez-404 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: 0;
	text-align: center;
}

body.ez-v2 .ez-404 > * {
	margin: 0;
}

body.ez-v2 .ez-404 .ez-404__figure {
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-display);
	line-height: 1.3;
}

body.ez-v2 .ez-404 .ez-404__title {
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

body.ez-v2 .ez-404 .ez-404__text {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.7;
}

body.ez-v2 .ez-404__actions {
	justify-content: center;
}

body.ez-v2 .ez-404__search {
	inline-size: 100%;
}

body.ez-v2 .ez-404__search .wp-block-search__inside-wrapper {
	gap: var(--wp--preset--spacing--20);
	padding: 0;
	border: 0;
}

body.ez-v2 .ez-404__search .wp-block-search__input {
	box-sizing: border-box;
	min-block-size: 48px;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40);
	border: 1.5px solid var(--wp--preset--color--ez-chip-line);
	border-radius: 10px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ez-body);
}

/* The search button takes the is-style-ez-outline look (white, ez-navy text and border). */
body.ez-v2 .ez-404__search .wp-block-search__button {
	box-sizing: border-box;
	min-block-size: 48px;
	margin: 0;
	padding-block: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--50);
	border: 1.5px solid var(--wp--preset--color--ez-navy);
	border-radius: 10px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	transition: background-color 150ms ease;
}

body.ez-v2 .ez-404__search .wp-block-search__button:hover {
	background-color: var(--wp--preset--color--ez-surface);
	color: var(--wp--preset--color--ez-navy);
}

/* ------------------------------------------------------------------ v2 frames: focus */

body.ez-v2 .ez-title-band a:focus-visible,
body.ez-v2 .ez-v2-main a:focus-visible,
body.ez-v2 .ez-v2-main .wp-block-button__link:focus-visible,
body.ez-v2 .ez-404__search .wp-block-search__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
}

body.ez-v2 .ez-404__search .wp-block-search__input:focus-visible {
	border-color: var(--wp--preset--color--ez-cta);
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ About and Contact (C6, plan 13-12) */

/* D-07: the [eazysoft_about] / [eazysoft_contact] layout stays; under the flag the heroes are the
   title band (C4, printed by the shortcodes), and the stats, FAQ, CTA band and form take the v2
   tokens. about.css / contact.css resolve their colours through the palette (UI-SPEC L1). */

/* Stats: up to 4 ez-surface cards; 3 or 4 fill the row (no placeholder card). */
body.ez-v2 .ez-about .ez-prod-trust {
	padding-block: var(--wp--preset--spacing--60);
	background-color: var(--wp--preset--color--surface);
	border-block-end: 0;
}

body.ez-v2 .ez-about .ez-prod-trust__grid {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--wp--preset--spacing--40);
}

body.ez-v2 .ez-about .ez-prod-trust__item {
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--ez-surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 12px;
}

body.ez-v2 .ez-about .ez-prod-trust__stat {
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-display);
	font-weight: 600;
	line-height: 1.3;
}

body.ez-v2 .ez-about .ez-prod-trust__desc {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

/* FAQ (components.faq) in the .ezc-faq look. */
body.ez-v2 .ez-about .ez-prod-faq__item,
body.ez-v2 .ez-contact .ez-prod-faq__item {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 12px;
	box-shadow: none;
	transition: border-color 150ms ease;
}

body.ez-v2 .ez-about .ez-prod-faq__item[open],
body.ez-v2 .ez-contact .ez-prod-faq__item[open],
body.ez-v2 .ez-about .ez-prod-faq__item:hover,
body.ez-v2 .ez-contact .ez-prod-faq__item:hover {
	border-color: var(--wp--preset--color--ez-chip-line);
	box-shadow: none;
}

body.ez-v2 .ez-about .ez-prod-faq__q,
body.ez-v2 .ez-contact .ez-prod-faq__q {
	min-block-size: 48px;
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

body.ez-v2 .ez-about .ez-prod-faq__q::after,
body.ez-v2 .ez-contact .ez-prod-faq__q::after {
	color: var(--wp--preset--color--ez-navy);
}

body.ez-v2 .ez-about .ez-prod-faq__a,
body.ez-v2 .ez-contact .ez-prod-faq__a {
	padding-block: 0 var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ez-body);
	line-height: 1.7;
}

body.ez-v2 .ez-about .ez-prod-faq__q:focus-visible,
body.ez-v2 .ez-contact .ez-prod-faq__q:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
}

/* The bottom CTA band: flat ez-navy (the gradient goes), white Display 600 h2, muted sub. */
body.ez-v2 .ez-about-cta,
body.ez-v2 .ez-contact-cta {
	background: none;
	background-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--ez-on-navy);
}

body.ez-v2 .ez-about-cta__title,
body.ez-v2 .ez-contact-cta__title {
	color: var(--wp--preset--color--ez-on-navy);
	font-size: var(--wp--preset--font-size--ez-display);
	font-weight: 600;
	line-height: 1.3;
}

body.ez-v2 .ez-about-cta__subtitle,
body.ez-v2 .ez-contact-cta__subtitle {
	color: var(--wp--preset--color--ez-on-navy-muted);
	font-size: var(--wp--preset--font-size--ez-body);
}

/* Its buttons: white fill with ez-navy text (primary) and the outline-on-dark look. No glow, no
   transform, no shadow; hover changes the fill only. */
body.ez-v2 .ez-about-cta .ez-btn,
body.ez-v2 .ez-contact-cta .ez-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 48px;
	padding-block: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--50);
	border: 1.5px solid var(--wp--preset--color--surface);
	border-radius: 10px;
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	box-shadow: none;
	transform: none;
	animation: none;
	transition: background-color 150ms ease, color 150ms ease;
}

body.ez-v2 .ez-about-cta .ez-btn--white,
body.ez-v2 .ez-contact-cta .ez-btn--white {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-navy);
}

body.ez-v2 .ez-about-cta .ez-btn--white:hover,
body.ez-v2 .ez-contact-cta .ez-btn--white:hover {
	background-color: var(--wp--preset--color--ez-surface);
	color: var(--wp--preset--color--ez-navy);
	box-shadow: none;
}

body.ez-v2 .ez-about-cta .ez-btn--outline-white,
body.ez-v2 .ez-contact-cta .ez-btn--outline-white {
	background-color: transparent;
	color: var(--wp--preset--color--surface);
}

body.ez-v2 .ez-about-cta .ez-btn--outline-white:hover,
body.ez-v2 .ez-contact-cta .ez-btn--outline-white:hover {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-navy);
}

body.ez-v2 .ez-about-cta .ez-btn:focus-visible,
body.ez-v2 .ez-contact-cta .ez-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-blue-on-navy);
	outline-offset: 2px;
}

/* The contact form: Plex Body 16 fields, 1.5px ez-chip-line, radius 10, ez-cta focus ring; the
   v1 error border stays on .ez-field-error. */
body.ez-v2 .ez-contact .ez-contact-form__field input,
body.ez-v2 .ez-contact .ez-contact-form__field select {
	min-block-size: 48px;
	border-width: 1.5px;
	border-style: solid;
	border-radius: 10px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	box-shadow: none;
	transition: border-color 150ms ease;
}

/* The required-field asterisk takes ez-muted, as on the Phase 12 demo form (catalog.css), instead
   of contact.css's #ef4444 (3.76:1 on white; plan 13-14 contrast sweep). */
body.ez-v2 .ez-contact .ez-required {
	color: var(--wp--preset--color--ez-muted);
}

body.ez-v2 .ez-contact .ez-contact-form__field input:not(.ez-field-error),
body.ez-v2 .ez-contact .ez-contact-form__field select:not(.ez-field-error) {
	border-color: var(--wp--preset--color--ez-chip-line);
}

body.ez-v2 .ez-contact .ez-contact-form__field input:focus,
body.ez-v2 .ez-contact .ez-contact-form__field select:focus,
body.ez-v2 .ez-contact .ez-contact-form__submit:focus-visible {
	border-color: var(--wp--preset--color--ez-cta);
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
	box-shadow: none;
}

/* Submit: ez-cta fill, white 16/600, 48px, no gradient, no lift. */
body.ez-v2 .ez-contact .ez-contact-form__submit {
	min-block-size: 48px;
	background: none;
	background-color: var(--wp--preset--color--ez-cta);
	border-radius: 10px;
	color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	box-shadow: none;
	transform: none;
	transition: background-color 150ms ease;
}

body.ez-v2 .ez-contact .ez-contact-form__submit:hover,
body.ez-v2 .ez-contact .ez-contact-form__submit:active {
	background-color: var(--wp--preset--color--ez-cta-hover);
	box-shadow: none;
	transform: none;
}

/* The status pairs (the Phase 12 B5 demo-form pairs); meaning stays in the message text. */
body.ez-v2 .ez-contact .ez-contact-form__status--success {
	background-color: var(--wp--preset--color--ez-tint);
	border: 1px solid var(--wp--preset--color--ez-badge-ink);
	color: var(--wp--preset--color--ez-navy);
}

body.ez-v2 .ez-contact .ez-contact-form__status--error {
	background-color: var(--wp--preset--color--ez-pill);
	border: 0;
	border-inline-start: 4px solid var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--ez-navy);
}

/* The coral ez-btn-glow animation (global.css) never runs under v2. */
body.ez-v2 .wp-block-button__link[style*="accent"] {
	animation: none;
}

/* The ez-fade-in reveal never hides content without JS (landing.js adds ez-visible). */
@media (scripting: none) {
	body.ez-v2 .ez-about .ez-fade-in,
	body.ez-v2 .ez-contact .ez-fade-in {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ motion and forced colours */

@media (prefers-reduced-motion: reduce) {
	body.ez-v2 .ez-header__nav a,
	body.ez-v2 .ez-header__toggle,
	body.ez-v2 .ez-footer a,
	body.ez-v2 .ez-breadcrumb a,
	body.ez-v2 .ez-title-band__pill,
	body.ez-v2 .ez-post-card__pills a,
	body.ez-v2 .ez-post-card__title a,
	body.ez-v2 .ez-post-row__title a,
	body.ez-v2 .ez-404__search .wp-block-search__button {
		transition: none;
	}

	/* About / Contact (plan 13-12): the reveal is off and the WhatsApp float does not pulse. */
	body.ez-v2 .ez-about .ez-fade-in,
	body.ez-v2 .ez-contact .ez-fade-in {
		opacity: 1;
		transform: none;
		transition: none;
	}

	body.ez-v2 .ez-about .ez-prod-faq__item,
	body.ez-v2 .ez-contact .ez-prod-faq__item,
	body.ez-v2 .ez-about-cta .ez-btn,
	body.ez-v2 .ez-contact-cta .ez-btn,
	body.ez-v2 .ez-contact .ez-contact-form__field input,
	body.ez-v2 .ez-contact .ez-contact-form__field select,
	body.ez-v2 .ez-contact .ez-contact-form__submit,
	body.ez-v2 .eazysoft-whatsapp-float {
		transition: none;
	}

	body.ez-v2 .eazysoft-whatsapp-float::after {
		animation: none;
	}
}

@media (forced-colors: active) {
	body.ez-v2 .ez-header__toggle:not([hidden]) {
		border-color: CanvasText;
	}

	body.ez-v2 .ez-header__nav a[aria-current] {
		border-block-end-color: Highlight;
	}

	body.ez-v2 .ez-title-band__pill,
	body.ez-v2 .ez-post-card__pills a {
		border-color: CanvasText;
	}

	body.ez-v2 .ez-title-band__pill:hover,
	body.ez-v2 .ez-post-card__pills a:hover {
		border-color: Highlight;
	}

	body.ez-v2 .wp-block-group.ez-post-cta,
	body.ez-v2 .wp-block-group.ez-post-card {
		border: 1px solid CanvasText;
	}
}
