/*
 * EazySoft catalog skin (BLK-05, D-15, D-15a; UI-SPEC Phase 10 "Token strategy").
 *
 * What it skins: every .ezc-* class of the eazysoft-catalog blocks (UI-SPEC Class Contract) and
 * the theme button styles is-style-ez-primary, is-style-ez-outline and is-style-ez-outline-on-dark
 * (core/button, registered in functions.php). The plugin ships structure only (layout, gaps,
 * container queries, touch targets); this file owns the v2.0 brand: colors, families, sizes,
 * weights, borders, radii and the interaction states.
 *
 * Rules held by ops/catalog/test_theme_tokens.py and ops/catalog/test_rtl_css.py:
 * - tokens only: colors come from var(--wp--preset--color--ez-*) (white is the existing
 *   `surface` slug, #ffffff), families from var(--wp--preset--font-family--*) with a literal
 *   stack fallback, sizes from var(--wp--preset--font-size--ez-*), spacing from
 *   var(--wp--preset--spacing--*). The one literal color form is rgba(255,255,255,...) as an
 *   overlay on navy. No other hex, rgb() or hsl() value, and no Odoo purple or artwork;
 * - logical properties only (inline/block, start/end), text-align start, DOM order is visual
 *   order;
 * - layout switches only at container widths 640px and 1024px (mobile below 640, tablet
 *   640-1023, desktop from 1024), through @container on the plugin's container wrappers;
 * - four type roles only: ez-small 14, ez-body 16, ez-title 20, ez-display 28-36; weights 400
 *   and 600; letter-spacing 0 and no text-transform on Arabic text;
 * - every selector is scoped to .ezc-* or the three is-style-ez-* button styles, so the live v1
 *   look (theme.json globals, Cairo, the coral button) is untouched (D-01, UI-SPEC OI-1).
 *
 * Families (defined by plan 10-09; until then the literal stacks apply):
 *   headings  var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif)
 *   body      var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif)
 *
 * Loaded on the front end after eazysoft-global (handle eazysoft-catalog-skin) and inside the
 * editor iframe through add_editor_style(), so ServerSideRender previews match the front end.
 */

/* ------------------------------------------------------------------ S12/S13 single templates */

/*
 * single-ez_module.html and single-ez_industry.html (plan 10-12): the hero and closing bands carry
 * padding-block spacing 80 and the sections group spacing 70 in their block markup. theme.json
 * prints those slugs as 4rem and 3rem site-wide (plan 10.1-02: defaultSpacingSizes false, no
 * spacing scale), so that is 64 and 48; below 640px the bands step down to 32 (UI-SPEC S12/S13:
 * 64/32). The bands are not containers, so the step reads the viewport through cqi (no container
 * ancestor), the same max/min step the picker band uses.
 */
.ezc-single-hero,
.ezc-single-closing {
	--wp--preset--spacing--80: max(2rem, min(4rem, (100cqi - 639px) * 1000));
}

/* A sections group whose blocks all rendered nothing (D-19: a profession has no industry grid;
 * a module without capabilities or relations) takes no space. */
.ezc-single-sections:not(:has(> *)) {
	display: none;
}

/* The same when its only child is a connections panel whose related blocks rendered nothing (U1:
 * the panel is a static group, so it is always in the markup). */
.ezc-single-sections:not(:has(> :not(.ezc-connections))):not(:has(.ezc-related)) {
	display: none;
}

/*
 * The H1 takes the theme's 5xl size from theme.json's h1 element style (UI-SPEC Typography,
 * inherited; plan 10.1-02 names the preset var core prints, --5-xl); only its line-height is
 * tightened here.
 */
.ezc-single-hero .wp-block-post-title {
	line-height: 1.3;
}

/*
 * The module badge is a bare span in the hero's constrained group; constrained layout only
 * centres block boxes, so the span would sit at the band's edge. As a fit-content block whose
 * inline-start margin is the column offset it lines up with the H1 and the summary. The hero's
 * column is the sections' 1200px (the wide size; plan 10.1-02 D-04, N-1), so the H1, badge,
 * summary and CTA pair start at the same edge as the section headings below.
 */
.ezc-single-hero > .ezc-badge {
	display: block;
	inline-size: fit-content;
	margin-inline-start: max(0px, (100% - var(--wp--style--global--wide-size, 1200px)) / 2) !important;
	margin-inline-end: auto !important;
}

/* The hero summary is the Lead style: Title size, weight 400, line-height 1.7, body family. */
.ezc-single-hero .ezc-single-summary {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 400;
	line-height: 1.7;
}

/*
 * Phase 11 U1/U2 eyebrow «إيزي سوفت ERP · مبني على أودو»: the first line of both single heroes,
 * owned by the template, so PAGE-14's "once above the fold" holds on every module and industry
 * single whatever ez_summary says. Body 16/600: ez-muted on the light module hero (S12),
 * ez-blue-on-navy on the navy industry hero (S13). Text only: no logo, icon or Odoo colour
 * (F-NOCLAIM-10). 8px to the H1 below it.
 */
.ezc-single-hero .ezc-single-eyebrow {
	margin-block: 0;
	color: var(--wp--preset--color--ez-muted);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-single-hero.ezc-single-hero--dark .ezc-single-eyebrow {
	color: var(--wp--preset--color--ez-blue-on-navy);
}

.ezc-single-hero .ezc-single-eyebrow + .wp-block-post-title {
	margin-block-start: var(--wp--preset--spacing--20);
}

/*
 * The visible breadcrumb of the industry single (plan 14-12, SEO-05; block
 * eazysoft/catalog-breadcrumb): the first line of the navy hero, above the eyebrow, in the
 * title band's breadcrumb shape (small text, «/» separators, the current item plain). On navy
 * the links are ez-on-navy-muted (underlined on hover) and the current item ez-on-navy.
 */
.ezc-single-hero .ezc-single-crumbs {
	margin-block: 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ez-muted);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

.ezc-single-hero .ezc-single-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ezc-single-hero .ezc-single-crumbs__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;
}

.ezc-single-hero .ezc-single-crumbs a {
	color: inherit;
	text-decoration: none;
}

.ezc-single-hero .ezc-single-crumbs a:hover,
.ezc-single-hero .ezc-single-crumbs a:focus-visible {
	text-decoration: underline;
}

.ezc-single-hero.ezc-single-hero--dark .ezc-single-crumbs {
	color: var(--wp--preset--color--ez-on-navy-muted);
}

.ezc-single-hero.ezc-single-hero--dark .ezc-single-crumbs [aria-current] {
	color: var(--wp--preset--color--ez-on-navy);
}

/*
 * U1/U2 body: core/post-content (class ezc-single-body ezc-prose) inside the sections group. It
 * holds the intro or narrative written over REST (D-02). Prose elements keep an 800px measure at
 * inline-start under the section headings (N-1 edge); wide children use the full 1200 column.
 * An empty body takes no space (core prints nothing for empty content; this covers a body whose
 * filtered content leaves an empty wrapper).
 */
.ezc-single-body:not(:has(*)) {
	display: none;
}

.ezc-single-body > p,
.ezc-single-body > ul,
.ezc-single-body > ol,
.ezc-single-body > h2,
.ezc-single-body > h3 {
	max-inline-size: 800px;
	margin-inline-end: auto;
}

.ezc-single-body > .alignwide {
	max-inline-size: var(--wp--style--global--wide-size, 1200px);
}

/*
 * U9 .ezc-prose: the scoped v2 skin of a body, so it does not inherit the v1 globals (Cairo, the
 * `text` colour, the 4xl h2). Only the body's own top-level paragraphs, lists and headings are
 * skinned (child combinator): a pattern inside the body (business flow, spotlight) keeps its
 * own component classes. Every rule carries at least (0,1,1), so it outranks core's
 * :root :where(p|h2|a) element styles and the flow layout's block gap without depending on
 * stylesheet order.
 */
.ezc-prose > p,
.ezc-prose > ul > li,
.ezc-prose > ol > li {
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-prose > p {
	margin-block: 0 var(--wp--preset--spacing--40);
}

.ezc-prose > ul,
.ezc-prose > ol {
	margin-block: 0 var(--wp--preset--spacing--40);
	padding-inline-start: var(--wp--preset--spacing--50);
}

.ezc-prose > ul > li + li,
.ezc-prose > ol > li + li {
	margin-block-start: var(--wp--preset--spacing--10);
}

.ezc-prose > h2,
.ezc-prose > h3 {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ezc-prose > h2 {
	margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--ez-display);
	line-height: 1.3;
}

.ezc-prose > h3 {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--ez-title);
	line-height: 1.4;
}

.ezc-prose > :first-child {
	margin-block-start: 0;
}

.ezc-prose > :last-child {
	margin-block-end: 0;
}

/* Links in text blocks are underlined at rest (WCAG 1.4.1); ez-cta-hover on hover. */
.ezc-prose > p a,
.ezc-prose > ul a,
.ezc-prose > ol a {
	color: var(--wp--preset--color--ez-cta);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 150ms ease;
}

.ezc-prose > p a:hover,
.ezc-prose > ul a:hover,
.ezc-prose > ol a:hover {
	color: var(--wp--preset--color--ez-cta-hover);
}

/*
 * U1 connections panel (closes N-5): the two related blocks share one ez-surface panel instead
 * of two thin sections. Stacked with gap 24 below 1024 (padding 16 mobile, 24 tablet); from 1024
 * two columns with gap 32 and padding 32, related modules at inline-start (DOM order), but only
 * when both blocks rendered. The h2s keep h2 semantics at Title size. The panel hides when both
 * blocks rendered nothing (D-19).
 */
.ezc-connections {
	box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--ez-surface);
	border-radius: 16px;
}

.ezc-connections > .ezc-related {
	margin-block: 0;
	min-inline-size: 0;
}

.ezc-connections:not(:has(.ezc-related)) {
	display: none;
}

.ezc-connections h2.ezc-section-heading {
	font-size: var(--wp--preset--font-size--ez-title);
	line-height: 1.4;
}

@media (min-width: 640px) {
	.ezc-connections {
		padding: var(--wp--preset--spacing--50);
	}
}

@media (min-width: 1024px) {
	.ezc-connections {
		column-gap: var(--wp--preset--spacing--60);
		padding: var(--wp--preset--spacing--60);
	}

	.ezc-connections:has(> .ezc-related + .ezc-related) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ U10 business flow (pattern eazysoft/business-flow) */

/*
 * Core blocks only (group > h2.ezc-section-heading, p.ezc-section-lead, group.ezc-flow__steps of
 * 4-6 group.ezc-flow__step, each p.ezc-flow__num, h3.ezc-flow__title, p.ezc-flow__text and
 * p.ezc-flow__module). Every colour and size comes from these classes, never from block colour
 * attributes (the has-text-color collision of 11-04). Below 1024 each step is a vertical
 * timeline row: a 48px number column spanning the step, the rest in column 2, padding 16 then
 * 24 from 640. From 1024 the steps form one row of N equal columns and each step is a column
 * with its module pill pinned to the bottom.
 */
/* theme.json gives every core/group 32px block padding (v1); the flow's groups carry their own. */
.wp-block-group.ezc-flow,
.ezc-flow > .wp-block-group.ezc-flow__steps {
	padding-block: 0;
}

.ezc-flow > * {
	margin-block: 0;
}

.ezc-flow > h2.ezc-section-heading {
	margin-block-end: var(--wp--preset--spacing--50);
}

.ezc-flow > h2.ezc-section-heading:has(+ p.ezc-section-lead) {
	margin-block-end: var(--wp--preset--spacing--20);
}

.ezc-flow > p.ezc-section-lead {
	max-inline-size: 760px;
	margin-block: 0 var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-flow > .ezc-flow__steps {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-block: 0;
}

.ezc-flow .ezc-flow__step {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-content: start;
	column-gap: var(--wp--preset--spacing--30);
	row-gap: var(--wp--preset--spacing--20);
	min-inline-size: 0;
	margin-block: 0;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 16px;
}

.ezc-flow .ezc-flow__step > * {
	grid-column: 2;
	min-inline-size: 0;
	margin-block: 0;
}

.ezc-flow .ezc-flow__step > p.ezc-flow__num {
	grid-column: 1;
	grid-row: 1 / span 3;
	color: var(--wp--preset--color--ez-cta);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
}

.ezc-flow .ezc-flow__step > h3.ezc-flow__title {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.ezc-flow .ezc-flow__step > p.ezc-flow__text {
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

/* The module pill: ez-navy on ez-pill; a linked pill underlines (ez-cta-hover) only on hover. */
.ezc-flow .ezc-flow__step > p.ezc-flow__module {
	box-sizing: border-box;
	inline-size: fit-content;
	max-inline-size: 100%;
	padding-block: var(--wp--preset--spacing--10);
	padding-inline: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--ez-pill);
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	border-radius: 999px;
	overflow-wrap: anywhere;
}

.ezc-flow .ezc-flow__module a {
	color: var(--wp--preset--color--ez-navy);
	text-decoration-line: none;
	transition: color 150ms ease;
}

.ezc-flow .ezc-flow__module a:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

@media (min-width: 640px) {
	.ezc-flow .ezc-flow__step {
		padding: var(--wp--preset--spacing--50);
	}
}

@media (min-width: 1024px) {
	.ezc-flow > .ezc-flow__steps {
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}

	.ezc-flow .ezc-flow__step {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}

	.ezc-flow .ezc-flow__step > p.ezc-flow__module {
		margin-block-start: auto;
	}
}

/* ------------------------------------------------------------------ U9-U14 shared page-body components */

/*
 * Page bodies (/erp U12, /modules U13, /industries U14) are one core/group .ezc-page .ezc-prose
 * (align full, constrained, blockGap 0) on the default page template (D-16). Every component is
 * a core block with an .ezc-* class: colours, type, radii and spacing come from these rules,
 * never from block colour or spacing attributes, so the editor (catalog.css is an editor style)
 * and the front end match and the has-text-color collision of 11-04 cannot occur. theme.json (v1)
 * gives every core/group 32px block padding; each component group sets its own with a
 * .wp-block-group.ezc-* selector (0,2,0), which outranks core's :root :where() rules. The
 * layouts switch with @media at 640 and 1024 (UI-SPEC Breakpoints: page-body components are
 * always full content width).
 *
 * The page.html frame holds the body in an 800px column. When the body is one .ezc-page, that
 * column is lifted (the frame group drops its inline padding, the post content its 800px cap),
 * so .ezc-page spans the viewport: bands are full-bleed, .alignwide sections take the 1200px wide
 * size and default-width children (the page lead) keep 800. .ezc-page carries the 16px inline
 * page padding itself; full-width bands cancel it and pad their own content.
 */
.wp-block-group:has(> .wp-block-post-content > .ezc-page) {
	padding-inline: 0;
}

.wp-block-post-content:has(> .ezc-page) {
	max-inline-size: none;
}

.wp-block-group.ezc-page {
	box-sizing: border-box;
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--40);
}

.wp-block-group.ezc-page > * {
	margin-block: 0;
}

.wp-block-group.ezc-page > .ezc-band.alignfull {
	margin-inline: calc(-1 * var(--wp--preset--spacing--40));
}

/* Page lead (U12-U14): default width, the Lead paragraph and the hero CTA pair, centred. */
.wp-block-group.ezc-page-lead {
	padding-block: 0 var(--wp--preset--spacing--50);
}

.ezc-page-lead > * {
	margin-block: 0;
}

.ezc-page-lead > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.ezc-page-lead > p {
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 400;
	line-height: 1.7;
	text-align: center;
	overflow-wrap: anywhere;
}

.ezc-page-lead .wp-block-group.ezc-cta .wp-block-buttons {
	justify-content: center;
}

.ezc-page-lead .wp-block-group.ezc-cta .ezc-cta__terms {
	text-align: center;
}

/*
 * Sections, bands and the page FAQ stack their children: 24 apart, 8 between a section heading
 * and its lead. Sections pad 24 block (so consecutive sections sit 48 apart, N-5); bands pad 64
 * (32 below 640) and centre their content at the 1200px wide size.
 */
.wp-block-group.ezc-section {
	padding-block: var(--wp--preset--spacing--50);
}

.wp-block-group.ezc-band {
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--60);
	padding-inline: var(--wp--preset--spacing--40);
}

.wp-block-group.ezc-band > * {
	max-inline-size: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
}

.ezc-band.ezc-band--surface {
	background-color: var(--wp--preset--color--ez-surface);
}

.ezc-band.ezc-band--navy {
	background-color: var(--wp--preset--color--ez-navy);
}

.wp-block-group.ezc-section > *,
.wp-block-group.ezc-band > *,
.wp-block-group.ezc-faq > * {
	margin-block: 0;
}

.wp-block-group.ezc-section > * + *,
.wp-block-group.ezc-band > * + *,
.wp-block-group.ezc-faq > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wp-block-group.ezc-section > h2.ezc-section-heading + p.ezc-section-lead,
.wp-block-group.ezc-band > h2.ezc-section-heading + p.ezc-section-lead,
.wp-block-group.ezc-faq > h2.ezc-section-heading + p.ezc-section-lead {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wp-block-group.ezc-section > .ezc-chain + .ezc-chain {
	margin-block-start: var(--wp--preset--spacing--40);
}

.wp-block-group.ezc-section > p.ezc-section-lead,
.wp-block-group.ezc-band > p.ezc-section-lead,
.wp-block-group.ezc-faq > p.ezc-section-lead {
	max-inline-size: 760px;
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

/* On navy: white headings, ez-on-navy-muted text. */
.ezc-band.ezc-band--navy > h2,
.ezc-band.ezc-band--navy > h2.ezc-section-heading {
	color: var(--wp--preset--color--surface);
}

.ezc-band.ezc-band--navy > p:not([class*="ezc-"]),
.ezc-band.ezc-band--navy > p.ezc-section-lead {
	color: var(--wp--preset--color--ez-on-navy-muted);
}

@media (min-width: 640px) {
	.wp-block-group.ezc-band {
		padding-block: var(--wp--preset--spacing--80);
	}
}

/* Cards (department cards, foundation cards): 1, 2 then 3 columns, gap 16. */
.wp-block-group.ezc-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	padding-block: 0;
}

.wp-block-group.ezc-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	min-inline-size: 0;
	margin-block: 0;
	padding: var(--wp--preset--spacing--40);
	border-radius: 16px;
}

.wp-block-group.ezc-card > * {
	margin-block: 0;
}

.ezc-card.ezc-card--surface {
	background-color: var(--wp--preset--color--ez-surface);
}

.ezc-card.ezc-card--white {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
}

.ezc-card > h3.wp-block-heading,
.ezc-compare__after > h3.wp-block-heading {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

/* Plain paragraphs only (WP 7.1 adds wp-block-paragraph to all): ezc-classed ones (pills, badges, «… ←» links) keep their own skin. */
.ezc-card > p:not([class*="ezc-"]),
.ezc-split > .wp-block-group > p:not([class*="ezc-"]),
.ezc-compare__before > p:not([class*="ezc-"]),
.ezc-compare__after > p:not([class*="ezc-"]) {
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-card > .ezc-more {
	margin-block-start: auto;
}

/* Lists: bullets in ez-muted, items 4 apart. */
ul.ezc-list,
ol.ezc-list {
	margin-block: 0;
	padding-inline-start: var(--wp--preset--spacing--50);
}

.ezc-list > li {
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-list > li + li {
	margin-block-start: var(--wp--preset--spacing--10);
}

.ezc-list > li::marker {
	color: var(--wp--preset--color--ez-muted);
}

/*
 * «… ←» links: Body 600 ez-cta, underlined only on hover. The arrow is CSS text, kept out of the
 * accessible name where alternative text for content is supported (the plain declaration first
 * is the fallback); it points to inline-end in RTL and is mirrored for an LTR build.
 */
p.ezc-more {
	margin-block: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

.ezc-more a {
	color: var(--wp--preset--color--ez-cta);
	font-weight: 600;
	text-decoration-line: none;
	transition: color 150ms ease;
}

.ezc-more a:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ezc-more a::after {
	content: " ←";
	content: " ←" / "";
	display: inline-block;
	white-space: pre;
}

:dir(ltr) .ezc-more a::after {
	transform: scaleX(-1);
}

/* Checklist: a CSS tick (6x12, 2px ez-cta on block-end and inline-end) 4px from inline-start. */
ul.ezc-checklist {
	margin-block: 0;
	padding-inline-start: 0;
	list-style: none;
}

.ezc-checklist > li {
	position: relative;
	padding-inline-start: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-checklist > li + li {
	margin-block-start: var(--wp--preset--spacing--20);
}

.ezc-checklist > li::before {
	content: "";
	box-sizing: content-box;
	position: absolute;
	inset-block-start: 0.3em;
	inset-inline-start: var(--wp--preset--spacing--10);
	inline-size: 5px;
	block-size: 11px;
	border-block-end: 2px solid var(--wp--preset--color--ez-cta);
	border-inline-end: 2px solid var(--wp--preset--color--ez-cta);
	/* A tick is not mirrored in RTL: the mirrored tick drawn before read as a dropdown chevron
	   (Phase 12 UAT). In RTL the inline-end border is the left one, so the box is flipped back
	   first and then turned, which gives the same ✓ as LTR. */
	transform: rotate(45deg) scaleX(-1);
}

:dir(ltr) .ezc-checklist > li::before {
	transform: rotate(45deg);
}

.ezc-checklist strong {
	color: var(--wp--preset--color--ez-navy);
	font-weight: 600;
}

/* Split panels: the JoFotara panel (--navy border) and the module spotlight (--highlight). */
.wp-block-group.ezc-split {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border-radius: 16px;
}

.ezc-split.ezc-split--navy {
	border: 2px solid var(--wp--preset--color--ez-navy);
}

.ezc-split.ezc-split--highlight {
	border: 2px solid var(--wp--preset--color--ez-cta);
}

.wp-block-group.ezc-split > * {
	min-inline-size: 0;
	margin-block: 0;
}

.ezc-split > .wp-block-group {
	padding-block: 0;
}

.ezc-split > .wp-block-group > * {
	margin-block: 0;
}

.ezc-split > .wp-block-group > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ezc-split > .wp-block-group > h2.ezc-section-heading + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.ezc-split p.ezc-badge,
p.ezc-pill-navy {
	box-sizing: border-box;
	inline-size: fit-content;
	max-inline-size: 100%;
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	border-radius: 999px;
	overflow-wrap: anywhere;
}

p.ezc-pill-navy {
	background-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--surface);
}

@media (min-width: 640px) {
	.wp-block-group.ezc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.ezc-card,
	.wp-block-group.ezc-split {
		padding: var(--wp--preset--spacing--50);
	}
}

@media (min-width: 1024px) {
	.wp-block-group.ezc-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wp-block-group.ezc-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--60);
		padding: var(--wp--preset--spacing--60);
	}
}

/* Before / after: «before» first (inline-start), stacked below 640. */
.wp-block-group.ezc-compare {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	padding-block: 0;
}

.wp-block-group.ezc-compare__before,
.wp-block-group.ezc-compare__after {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	min-inline-size: 0;
	margin-block: 0;
	padding: var(--wp--preset--spacing--50);
	border-radius: 16px;
}

.ezc-compare__before > *,
.ezc-compare__after > * {
	margin-block: 0;
}

.wp-block-group.ezc-compare > .ezc-compare__before {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
}

.wp-block-group.ezc-compare > .ezc-compare__after {
	background-color: var(--wp--preset--color--ez-surface);
	border: 2px solid var(--wp--preset--color--ez-cta);
}

.ezc-compare__before > h3.wp-block-heading {
	color: var(--wp--preset--color--ez-muted);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

@media (min-width: 640px) {
	.wp-block-group.ezc-compare {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Chains (/erp flows): a bordered row, the title then the steps. Steps are pills in one wrapping
 * row with a 32px column gap; every step but the last carries a decorative «←» centred in the gap
 * after it (inline-end), so a row-end step's arrow points to the next row. The list keeps 24px
 * at inline-end for that arrow, so nothing leaves the chain. From 1024 the title is a 176px
 * column beside the steps; below it sits on its own row.
 */
.wp-block-group.ezc-chain {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 16px;
}

.wp-block-group.ezc-chain > * {
	margin-block: 0;
}

.ezc-chain > p.ezc-chain__title {
	flex: 1 1 100%;
	min-inline-size: 0;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.ezc-chain > ol.ezc-chain__steps,
.ezc-chain > ul.ezc-chain__steps {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--60);
	min-inline-size: 0;
	margin-block: 0;
	padding-block: 0;
	padding-inline: 0 var(--wp--preset--spacing--50);
	list-style: none;
}

.ezc-chain__steps > li {
	position: relative;
	min-inline-size: 0;
	margin: 0;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--ez-pill);
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	border-radius: 10px;
	overflow-wrap: anywhere;
}

.ezc-chain__steps > li:not(:last-child)::after {
	content: "←";
	content: "←" / "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: calc(100% + var(--wp--preset--spacing--20));
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 16px;
	color: var(--wp--preset--color--ez-cta);
	font-weight: 600;
}

:dir(ltr) .ezc-chain__steps > li:not(:last-child)::after {
	transform: scaleX(-1);
}

@media (min-width: 640px) {
	.wp-block-group.ezc-chain {
		padding: var(--wp--preset--spacing--50);
	}
}

@media (min-width: 1024px) {
	.ezc-chain > p.ezc-chain__title {
		flex: 0 0 176px;
	}

	.ezc-chain > ol.ezc-chain__steps,
	.ezc-chain > ul.ezc-chain__steps {
		flex: 1 1 0;
	}
}

/*
 * Banner (/modules, /industries): navy, radius 16. Text (heading Title white, paragraph
 * ez-on-navy-muted, max 640) at inline-start, the actions at inline-end, wrapping; below 640 it
 * stacks and the buttons take the full width.
 */
.wp-block-group.ezc-banner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--ez-navy);
	border-radius: 16px;
}

.wp-block-group.ezc-banner > * {
	min-inline-size: 0;
	margin-block: 0;
}

.ezc-banner > .wp-block-group:not(.ezc-cta) {
	max-inline-size: 640px;
	padding-block: 0;
}

.ezc-banner > .wp-block-group:not(.ezc-cta) > * {
	margin-block: 0;
}

.ezc-banner > .wp-block-group:not(.ezc-cta) > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.ezc-banner > .wp-block-group:not(.ezc-cta) > h2 {
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.ezc-banner > .wp-block-group:not(.ezc-cta) > p {
	color: var(--wp--preset--color--ez-on-navy-muted);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-banner > .wp-block-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--30);
}

.ezc-banner > .wp-block-buttons > .wp-block-button,
.ezc-banner > .wp-block-buttons > .wp-block-button > .wp-block-button__link {
	box-sizing: border-box;
	inline-size: 100%;
	margin: 0;
	text-align: center;
}

@media (min-width: 640px) {
	.wp-block-group.ezc-banner {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		padding: var(--wp--preset--spacing--60);
	}

	.ezc-banner > .wp-block-buttons {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.ezc-banner > .wp-block-buttons > .wp-block-button,
	.ezc-banner > .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		inline-size: auto;
	}
}

/*
 * U3 "same skin for page bodies": a core/group .ezc-faq holding core/details .ezc-faq__item looks
 * like the eazysoft-catalog/faq block (its style.css loads only where the block renders): items
 * max 800 at inline-start, 12 apart, white, 1px ez-line, radius 12 (ez-chip-line on hover); the
 * summary a flex row, padding 16/24, at least 48 tall, Body 600 ez-navy, the + / − glyph (Title
 * 600 ez-cta, CSS text) at inline-end; the answer padding 0 24 16, paragraphs 8 apart.
 */
.wp-block-group.ezc-faq {
	padding-block: 0;
}

.wp-block-group.ezc-faq > .ezc-faq__item + .ezc-faq__item {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ezc-faq > details.ezc-faq__item {
	box-sizing: border-box;
	max-inline-size: 800px;
	min-inline-size: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 12px;
	transition: border-color 150ms ease;
}

.ezc-faq > details.ezc-faq__item:hover {
	border-color: var(--wp--preset--color--ez-chip-line);
}

.ezc-faq > .ezc-faq__item > summary {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
	min-block-size: 48px;
	margin: 0;
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--50);
	border-radius: 12px;
	cursor: pointer;
	list-style: none;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-faq > .ezc-faq__item > summary::-webkit-details-marker {
	display: none;
}

.ezc-faq > .ezc-faq__item > summary::marker {
	content: "";
}

.ezc-faq > .ezc-faq__item > summary::after {
	content: "+";
	flex: none;
	align-self: flex-start;
	color: var(--wp--preset--color--ez-cta);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.ezc-faq > .ezc-faq__item[open] > summary::after {
	content: "\2212";
}

.ezc-faq > .ezc-faq__item > :not(summary) {
	margin-block: 0;
	padding-inline: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.ezc-faq > .ezc-faq__item > :not(summary) + :not(summary) {
	margin-block-start: var(--wp--preset--spacing--20);
}

.ezc-faq > .ezc-faq__item > :last-child:not(summary) {
	padding-block-end: var(--wp--preset--spacing--40);
}

/* ------------------------------------------------------------------ Phase 12 page-body skin (B5) */

/*
 * UI-SPEC Phase 12 B5 (OI-12-1): the homepage hero panel with its module chips (variant A) or
 * one screenshot (variant B), the trust pills, the two- and four-card grids (custom work,
 * services), the proof blocks placed directly in .ezc-page and the closing band's booking row.
 * Every rule is scoped to a Phase 12 class that no live template, part or pattern carries, so
 * live pages stay pixel-identical (D-09). Chips and pills are text, not controls: no hover, no
 * focus stop (D-02, D-12).
 */
.wp-block-group.ezc-hero-visual {
	box-sizing: border-box;
	max-inline-size: 800px;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--ez-surface);
	border-radius: 16px;
}

.wp-block-group.ezc-hero-visual > * {
	margin-block: 0;
}

ul.ezc-chips,
ul.ezc-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * The industry picker's sheet carries an unscoped .ezc-chip rule (44px, currentColor border,
 * nowrap, scroll snap) that loads on any page holding the picker, as the homepage does. These
 * items set every box property that rule would supply, at (0,1,1) or higher.
 */
ul.ezc-chips > li,
ul.ezc-chips > li.ezc-chip {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	flex: none;
	max-inline-size: 100%;
	min-block-size: 0;
	margin: 0;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1.5px solid var(--wp--preset--color--ez-chip-line);
	border-radius: 999px;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	white-space: normal;
	overflow-wrap: anywhere;
	text-decoration: none;
	cursor: default;
	scroll-snap-align: none;
}

/* Variant B: one approved screenshot, 16:10, top of the shot kept. */
.wp-block-group.ezc-hero-visual figure.wp-block-image {
	margin: 0;
}

.ezc-hero-visual img {
	box-sizing: border-box;
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 12px;
}

/* Trust row: 24 below the panel; the .ezc-pill base gives Small 14/600 and the 999 radius. */
.wp-block-group.ezc-section > ul.ezc-trust,
ul.ezc-trust {
	margin-block-start: var(--wp--preset--spacing--50);
}

ul.ezc-trust > li.ezc-pill {
	margin: 0;
	padding-block: var(--wp--preset--spacing--10);
	padding-inline: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--ez-pill);
	color: var(--wp--preset--color--ez-navy);
	overflow-wrap: anywhere;
}

/*
 * Booking row (B4, P1 row 12): the demo_booking button's own core/buttons row sits 16 below the
 * cta-pair group it follows. Measured first: bands and the singles' constrained closing band give
 * it 24 (.ezc-band > * + * and the layout block gap), so this rule is needed.
 */
.wp-block-group.ezc-cta + .wp-block-buttons:has(> .ezc-booking-link) {
	margin-block-start: var(--wp--preset--spacing--40);
}

/*
 * Below 640 the booking button is as wide as the stacked cta-pair buttons above it (measured
 * first: the pair's full-width rule is scoped to .wp-block-group.ezc-cta, which this row sits
 * outside, so without this the button sized to its label); from 640 it sizes to its label.
 */
.wp-block-buttons:has(> .ezc-booking-link) > .wp-block-button.ezc-booking-link,
.wp-block-buttons:has(> .ezc-booking-link) > .wp-block-button.ezc-booking-link .wp-block-button__link {
	inline-size: 100%;
}

@media (min-width: 640px) {
	.wp-block-buttons:has(> .ezc-booking-link) > .wp-block-button.ezc-booking-link,
	.wp-block-buttons:has(> .ezc-booking-link) > .wp-block-button.ezc-booking-link .wp-block-button__link {
		inline-size: auto;
	}
}

/* Proof blocks directly in the page body take the section rhythm when they render (D-13, D-14). */
.ezc-page > .wp-block-eazysoft-catalog-client-logos,
.ezc-page > .wp-block-eazysoft-catalog-testimonials {
	padding-block: var(--wp--preset--spacing--50);
}

@media (min-width: 640px) {
	.wp-block-group.ezc-hero-visual {
		padding: var(--wp--preset--spacing--50);
	}

	.wp-block-group.ezc-cards.ezc-cards--two,
	.wp-block-group.ezc-cards.ezc-cards--four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.wp-block-group.ezc-hero-visual {
		padding: var(--wp--preset--spacing--60);
	}

	.wp-block-group.ezc-cards.ezc-cards--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.ezc-cards.ezc-cards--four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ S7 module badge */

.ezc-badge {
	background-color: var(--wp--preset--color--ez-tint);
	color: var(--wp--preset--color--ez-badge-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	border-radius: 999px;
}

/* ------------------------------------------------------------------ S6 starts-from price */

.ezc-price {
	margin-block: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	color: var(--wp--preset--color--ez-ink);
}

.ezc-price__lead {
	color: var(--wp--preset--color--ez-ink);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

.ezc-price__amount {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-display);
	font-weight: 600;
	line-height: 1.3;
}

.ezc-price__currency {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.ezc-price__period {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

.ezc-price.is-style-on-dark,
.ezc-price.is-style-on-dark .ezc-price__lead,
.ezc-price.is-style-on-dark .ezc-price__amount,
.ezc-price.is-style-on-dark .ezc-price__currency {
	color: var(--wp--preset--color--surface);
}

.ezc-price.is-style-on-dark .ezc-price__period {
	color: var(--wp--preset--color--ez-on-navy-muted);
}

/* ------------------------------------------------------------------ shared: headings, pills, icon tiles */

/*
 * Block-owned headings: h2 Display, h3 Title, both ez-navy. Core prints the theme.json element
 * styles as :root :where(h2), :root :where(p), :root :where(a ...) at specificity (0,1,0), so
 * every rule here that sets a color, family or weight on a heading, paragraph or link carries
 * at least (0,1,1) and never depends on stylesheet order.
 */
h2.ezc-section-heading,
h3.ezc-section-heading {
	margin-block-start: 0;
	margin-block-end: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-weight: 600;
}

h2.ezc-section-heading {
	font-size: var(--wp--preset--font-size--ez-display);
	line-height: 1.3;
}

h3.ezc-section-heading {
	margin-block-end: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--ez-title);
	line-height: 1.4;
}

.ezc-pill {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	border-radius: 999px;
}

.ezc-pill--core {
	background-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--surface);
}

.ezc-pill--recommended {
	background-color: var(--wp--preset--color--ez-cta);
	color: var(--wp--preset--color--surface);
}

.ezc-pill--optional,
.ezc-pill--draft {
	background-color: var(--wp--preset--color--ez-pill);
	color: var(--wp--preset--color--ez-ink);
}

/* The draft pill sits after a title, inline. */
.ezc-pill--draft {
	margin-inline-start: var(--wp--preset--spacing--20);
	vertical-align: middle;
}

/* Icons are decorative: the tile carries ez-cta, the glyph fills with currentColor. */
.ezc-icon-tile {
	background-color: var(--wp--preset--color--ez-tint);
	color: var(--wp--preset--color--ez-cta);
	border-radius: 10px;
}

.ezc-icon-tile .ezc-icon {
	fill: currentColor;
}

/* ------------------------------------------------------------------ S2 industry picker: band */

/*
 * The band (mode all; context mode has no band). A container cannot query itself, so the
 * band's own padding and gap step on the nearest ancestor container's width through container
 * query units (cqi), which fall back to the small viewport when the band has no container
 * ancestor, as an alignfull band does. step(a <640, b 640-1023, c >=1024) is written as
 * max(a, min(b, (100cqi - 639px) * 1000), min(c, (100cqi - 1023px) * 1000)): each min() term is
 * negative below its threshold and caps at its value above it. Everything inside the band
 * switches through @container on the picker itself.
 */
.ezc-picker:not(.ezc-picker--context) {
	background-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--surface);
	padding-block: max(var(--wp--preset--spacing--60), min(var(--wp--preset--spacing--70), (100cqi - 639px) * 1000), min(var(--wp--preset--spacing--80), (100cqi - 1023px) * 1000));
	padding-inline: max(var(--wp--preset--spacing--40), min(var(--wp--preset--spacing--50), (100cqi - 639px) * 1000));
	gap: max(var(--wp--preset--spacing--50), min(var(--wp--preset--spacing--60), (100cqi - 639px) * 1000));
}

.ezc-picker .ezc-picker__head > h2.ezc-section-heading,
.ezc-picker .ezc-picker__head > h3.ezc-section-heading {
	margin-block: 0;
}

.ezc-picker:not(.ezc-picker--context) .ezc-picker__heading {
	color: var(--wp--preset--color--surface);
}

.ezc-picker .ezc-picker__lead {
	color: var(--wp--preset--color--ez-on-navy-muted);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

.ezc-picker .ezc-picker__hub-label,
.ezc-picker .ezc-picker__hint {
	color: var(--wp--preset--color--ez-blue-on-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	line-height: 1.6;
}

.ezc-picker .ezc-picker__hub-label {
	font-weight: 600;
}

.ezc-picker .ezc-picker__hint {
	margin-block: 0;
	font-weight: 400;
}

/*
 * Chips on navy. The selected style follows [aria-current="true"] (server markup, no JS) and
 * [aria-selected="true"] (enhanced tabs), so both modes look identical; selection never
 * changes the weight (no width jitter).
 */
.ezc-picker__nav .ezc-chip {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.ezc-picker__nav .ezc-chip:hover {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--surface);
}

.ezc-picker__nav .ezc-chip[aria-current="true"],
.ezc-picker__nav .ezc-chip[aria-selected="true"] {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-navy);
}

/* ------------------------------------------------------------------ S2 industry picker: panel and tiers */

.ezc-picker__panel {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-ink);
	border-radius: 16px;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
}

.ezc-picker .ezc-picker__panel-title {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.ezc-picker .ezc-picker__panel-tagline {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

.ezc-tier .ezc-tier__title {
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

/* The tier underline carries the tier color; the label always carries the meaning. */
.ezc-tier[data-tier="core"] .ezc-tier__head {
	border-block-end-color: var(--wp--preset--color--ez-navy);
}

.ezc-tier[data-tier="recommended"] .ezc-tier__head {
	border-block-end-color: var(--wp--preset--color--ez-cta);
}

.ezc-tier[data-tier="optional"] .ezc-tier__head {
	border-block-end-color: var(--wp--preset--color--ez-tier-optional);
}

/* Compact module card (picker): border ez-line, radius 12, the name in ez-navy. */
.ezc-picker .ezc-module-card--compact {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--ez-line);
	border-radius: 12px;
}

.ezc-module-card--compact .ezc-module-card__title {
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

.ezc-module-card--compact .ezc-module-card__title a {
	color: var(--wp--preset--color--ez-navy);
	text-decoration: none;
}

.ezc-module-card--compact .ezc-module-card__title a .ezc-arrow {
	color: var(--wp--preset--color--ez-cta);
}

.ezc-module-card--compact .ezc-module-card__title a:hover {
	text-decoration: underline;
}

.ezc-module-card--compact .ezc-module-card__title a:hover .ezc-arrow {
	color: var(--wp--preset--color--ez-cta-hover);
}

.ezc-module-card--compact .ezc-module-card__tagline {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

/* Closing row: the divider, the terms line and the industry-page link. */
.ezc-picker .ezc-picker__closing {
	border-block-start-color: var(--wp--preset--color--ez-line);
}

.ezc-picker .ezc-picker__more-link {
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
}

.ezc-picker .ezc-picker__more-link:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ S3 module grid */

.ezc-module-grid {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	color: var(--wp--preset--color--ez-ink);
}

.ezc-module-grid .ezc-module-grid__group-title {
	margin-block-start: 0;
	margin-block-end: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

/* Light filter chips with counts. */
.ezc-module-grid__filters .ezc-chip {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--ez-chip-line);
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.ezc-module-grid__filters .ezc-chip:hover {
	border-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--ez-navy);
}

.ezc-module-grid__filters .ezc-chip[aria-current="true"],
.ezc-module-grid__filters .ezc-chip[aria-selected="true"] {
	background-color: var(--wp--preset--color--ez-navy);
	border-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--surface);
}

/*
 * Mobile overflow row: below 640 the department chips are one horizontal scroll row with an
 * inline bleed, snap proximity and a hidden scrollbar (the partly clipped last chip is the cue);
 * from 640 they wrap. The gap is the plugin's at every width (module-grid/style.css: 8 below 640,
 * 4 from 640; D-05, plan 10.1-06), so it is not restated here. The picker's own row is the
 * plugin's (industry-picker/style.css).
 */
.ezc-module-grid .ezc-module-grid__filters {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	margin-inline: calc(-1 * var(--wp--preset--spacing--40));
	padding-inline: var(--wp--preset--spacing--40);
	scroll-padding-inline: var(--wp--preset--spacing--40);
}

.ezc-module-grid .ezc-module-grid__filters::-webkit-scrollbar {
	display: none;
}

.ezc-module-grid__filters .ezc-chip {
	flex: none;
	white-space: nowrap;
	scroll-snap-align: start;
}

@container (min-width: 640px) {
	.ezc-module-grid .ezc-module-grid__filters {
		flex-wrap: wrap;
		overflow-x: visible;
		margin-inline: 0;
		padding-inline: 0;
	}
}

.ezc-chip__count {
	margin-inline-start: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

.ezc-chip[aria-current="true"] .ezc-chip__count,
.ezc-chip[aria-selected="true"] .ezc-chip__count {
	color: var(--wp--preset--color--ez-on-navy-muted);
}

/*
 * Module-grid card: padding 16, then 24 from 640. The column flex, the 12px gap and the footer
 * pinned to the bottom are the plugin's layout (blocks/module-grid/style.css, plan 10-08).
 */
.ezc-module-grid .ezc-module-card {
	position: relative;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 12px;
	transition: border-color 150ms ease;
}

.ezc-module-grid .ezc-module-card__title {
	margin-block: 0;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.ezc-module-grid .ezc-module-card__title a {
	color: var(--wp--preset--color--ez-navy);
	text-decoration: none;
}

/* Stretched link: the title link covers the card; unlinked cards get no hover and no pointer. */
.ezc-module-grid .ezc-module-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
}

.ezc-module-grid .ezc-module-card:has(.ezc-module-card__title a):hover {
	border-color: var(--wp--preset--color--ez-cta);
}

.ezc-module-grid .ezc-module-card:has(a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
}

/* The card draws the ring for its stretched link (replacement, not removal). */
.ezc-module-grid .ezc-module-card__title a:focus-visible {
	outline: none;
}

.ezc-module-grid .ezc-module-card__tagline {
	margin-block: 0;
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

.ezc-module-grid .ezc-module-card__footer {
	padding-block-start: var(--wp--preset--spacing--20);
}

.ezc-module-grid .ezc-module-card__dept {
	padding-block: var(--wp--preset--spacing--10);
	padding-inline: var(--wp--preset--spacing--20);
	background-color: var(--wp--preset--color--ez-surface);
	color: var(--wp--preset--color--ez-muted);
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

.ezc-module-grid .ezc-module-card__more {
	color: var(--wp--preset--color--ez-cta);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
}

.ezc-module-grid .ezc-module-card:has(.ezc-module-card__title a):hover .ezc-module-card__more {
	color: var(--wp--preset--color--ez-cta-hover);
}

@container (min-width: 640px) {
	.ezc-module-grid .ezc-module-card {
		padding: var(--wp--preset--spacing--50);
	}
}

/* ------------------------------------------------------------------ S4 industry grid */

.ezc-industry-grid {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	color: var(--wp--preset--color--ez-ink);
}

/* Hub card: padding 16, then 24 from 640; the column flex and the links pushed to the bottom are
 * the plugin's layout (blocks/industry-grid/style.css, plan 10-08). */
.ezc-industry-grid .ezc-hub-card {
	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: 16px;
}

.ezc-industry-grid .ezc-hub-card__title {
	margin-block: 0;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.ezc-industry-grid .ezc-hub-card__title a {
	color: var(--wp--preset--color--ez-navy);
	text-decoration: none;
}

.ezc-industry-grid .ezc-hub-card__title a:hover {
	text-decoration: underline;
}

.ezc-industry-grid .ezc-hub-card__tagline {
	margin-block: 0;
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

/* Profession rows: a viewable profession is an ez-cta link, any other one plain ez-ink text. */
.ezc-industry-grid .ezc-hub-card__link {
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-ink);
	border-radius: 10px;
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
}

.ezc-industry-grid a.ezc-hub-card__link {
	color: var(--wp--preset--color--ez-cta);
}

.ezc-industry-grid a.ezc-hub-card__link:hover {
	color: var(--wp--preset--color--ez-cta-hover);
	text-decoration: underline;
}

@container (min-width: 640px) {
	.ezc-industry-grid .ezc-hub-card {
		padding: var(--wp--preset--spacing--50);
	}
}

/* ------------------------------------------------------------------ S5 stats */

/*
 * The list is the band and the container. Its own padding (16 below 640, 24 from 640) steps
 * through container query units as for the picker band (a container cannot query itself).
 */
ul.ezc-stats {
	padding-block: max(var(--wp--preset--spacing--40), min(var(--wp--preset--spacing--50), (100cqi - 639px) * 1000));
	padding-inline: max(var(--wp--preset--spacing--40), min(var(--wp--preset--spacing--50), (100cqi - 639px) * 1000));
	background-color: var(--wp--preset--color--ez-navy);
	border-radius: 16px;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
}

.ezc-stats .ezc-stats__item {
	border-inline-start-color: var(--wp--preset--color--ez-blue);
}

.ezc-stats__value {
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-display);
	font-weight: 600;
	line-height: 1.3;
}

.ezc-stats__label {
	color: var(--wp--preset--color--ez-on-navy-muted);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

.ezc-stats__asof {
	color: var(--wp--preset--color--ez-blue-on-navy);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ S8 related */

.ezc-related {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	color: var(--wp--preset--color--ez-ink);
}

/* Industries mode: link chips. */
.ezc-related .ezc-related__chip {
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1.5px solid var(--wp--preset--color--ez-chip-line);
	border-radius: 999px;
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: border-color 150ms ease;
}

.ezc-related a.ezc-related__chip:hover {
	border-color: var(--wp--preset--color--ez-navy);
}

/* Modules mode: stacked rows; rows of modules without a page are plain (no link, no hover). */
.ezc-related .ezc-related__row {
	box-sizing: border-box;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--ez-surface);
	border-radius: 10px;
	color: var(--wp--preset--color--ez-ink);
	text-decoration: none;
}

.ezc-related .ezc-related__row-title {
	color: var(--wp--preset--color--ez-navy);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

.ezc-related a.ezc-related__row:hover .ezc-related__row-title {
	text-decoration: underline;
}

.ezc-related .ezc-related__row-why {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ S9 module capabilities */

.ezc-capabilities {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	color: var(--wp--preset--color--ez-ink);
}

/* Padding 16, then 24 from 640; the auto-fill grid is the plugin's (plan 10-10). */
.ezc-capabilities .ezc-capability {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 12px;
}

.ezc-capabilities .ezc-capability__title {
	margin-block: 0;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.ezc-capabilities .ezc-capability__text {
	margin-block: 0;
	color: var(--wp--preset--color--ez-ink);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
}

@container (min-width: 640px) {
	.ezc-capabilities .ezc-capability {
		padding: var(--wp--preset--spacing--50);
	}
}

/* ------------------------------------------------------------------ S10 client logos */

/* Tile look and centring; the wrap, the tile basis and block-size 80px are the plugin's (plan 10-10). */
.ezc-logos .ezc-logo {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	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;
}

/* Full-color logos, never stretched. */
.ezc-logos .ezc-logo img {
	display: block;
	inline-size: auto;
	block-size: auto;
	max-inline-size: 100%;
	max-block-size: 48px;
	object-fit: contain;
}

/*
 * Hub filter chips (UI-SPEC Clients filter B2; skin moved from the plugin by plan 12-19): white
 * fill, 1.5px ez-chip-line border, ez-navy Small 14/600, radius 999; hover border ez-navy;
 * pressed ez-navy fill with white text. The 44px target, padding and the scroll row are the
 * plugin's. The filter renders nothing on live until two consented hubs exist (D-13, Phase 15).
 */
.ezc-filter .ezc-filter__chip {
	background-color: var(--wp--preset--color--surface);
	border: 1.5px solid var(--wp--preset--color--ez-chip-line);
	border-radius: 999px;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.ezc-filter .ezc-filter__chip:hover {
	border-color: var(--wp--preset--color--ez-navy);
}

.ezc-filter .ezc-filter__chip[aria-pressed="true"] {
	background-color: var(--wp--preset--color--ez-navy);
	border-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--surface);
}

/* ------------------------------------------------------------------ S11 testimonials */

.ezc-testimonials {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	color: var(--wp--preset--color--ez-ink);
}

/* Cards in a row are not forced to equal height; quotes are never clamped. */
/* Padding 16, then 24 from 640; the grid and the unequal heights are the plugin's (plan 10-10). */
.ezc-testimonials .ezc-testimonial {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--ez-line);
	border-radius: 16px;
}

.ezc-testimonials .ezc-testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-style: normal;
	font-weight: 400;
	line-height: 1.7;
}

.ezc-testimonials .ezc-testimonial__quote p {
	margin-block: 0;
}

.ezc-testimonials .ezc-testimonial__cite {
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
}

@container (min-width: 640px) {
	.ezc-testimonials .ezc-testimonial {
		padding: var(--wp--preset--spacing--50);
	}
}

/* ------------------------------------------------------------------ S14 / CTA Contract: buttons */

/*
 * One visual spec for the in-block buttons (.ezc-btn, plugin markup) and the theme button
 * styles on core/button (patterns cta-pair and cta-pair-dark). The is-style-ez-* rules override
 * theme.json's coral element button only inside those three style classes; core's default and
 * outline styles are untouched. Body 16/600, padding 12/24, min-block-size 48px, radius 10px,
 * 1.5px border, long labels wrap; hover changes the fill only (no transform, no shadow).
 */
.ezc-btn,
.wp-block-button.is-style-ez-primary .wp-block-button__link,
.wp-block-button.is-style-ez-outline .wp-block-button__link,
.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link {
	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-width: 1.5px;
	border-style: solid;
	border-radius: 10px;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	box-shadow: none;
	transform: none;
	animation: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

/* primary (trial): ez-cta fill, white text, transparent border (equal height with outline). */
.ezc-btn.ezc-btn--primary,
.wp-block-button.is-style-ez-primary .wp-block-button__link {
	background-color: var(--wp--preset--color--ez-cta);
	border-color: transparent;
	color: var(--wp--preset--color--surface);
}

.ezc-btn.ezc-btn--primary:hover,
.wp-block-button.is-style-ez-primary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--ez-cta-hover);
	color: var(--wp--preset--color--surface);
}

/* outline (demo on light): white fill, ez-navy text and border; hover fills ez-surface. */
.ezc-btn.ezc-btn--outline,
.wp-block-button.is-style-ez-outline .wp-block-button__link {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--ez-navy);
	color: var(--wp--preset--color--ez-navy);
}

.ezc-btn.ezc-btn--outline:hover,
.wp-block-button.is-style-ez-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--ez-surface);
	color: var(--wp--preset--color--ez-navy);
}

/* outline-on-dark (demo on navy): transparent, white text and border; hover a white overlay. */
.ezc-btn.ezc-btn--on-dark,
.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--surface);
}

.ezc-btn.ezc-btn--on-dark:hover,
.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--surface);
}

.ezc-btn.ezc-btn--primary:active,
.ezc-btn.ezc-btn--outline:active,
.ezc-btn.ezc-btn--on-dark:active,
.wp-block-button.is-style-ez-primary .wp-block-button__link:active,
.wp-block-button.is-style-ez-outline .wp-block-button__link:active,
.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link:active {
	box-shadow: none;
	transform: none;
}

/* ------------------------------------------------------------------ S14 CTA pair (pattern) and the terms line */

/*
 * The cta-pair patterns are a core/group .ezc-cta holding core/buttons and the terms paragraph.
 * The group is the container: below 640 the buttons stack at full width with centred text and
 * the terms are centred; from 640 the buttons sit inline (gap 12, wrapping) and the terms align
 * to inline-start. The terms line sits 8px under the buttons. The plugin's in-block pair
 * (div.ezc-cta inside the picker) keeps its own layout (industry-picker/style.css).
 *
 * container-type: inline-size applies inline-size containment, so the group's content no longer
 * gives it an inline size (REVIEW WR-05). It fills its line explicitly (inline-size: 100%, which
 * also makes it the full row in a flex-row parent, shrinking with its siblings), and in
 * shrink-to-fit contexts (grid auto tracks, inline-block, floats) the containment uses a 20rem
 * intrinsic size instead of 0, so the pattern never collapses to zero width.
 */
.wp-block-group.ezc-cta {
	container-type: inline-size;
	contain-intrinsic-inline-size: 20rem;
	inline-size: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding-block: 0;
}

.wp-block-group.ezc-cta > * {
	margin-block: 0;
}

.wp-block-group.ezc-cta .wp-block-buttons {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--wp--preset--spacing--30);
}

.wp-block-group.ezc-cta .wp-block-button {
	inline-size: 100%;
	margin: 0;
}

.wp-block-group.ezc-cta .wp-block-button .wp-block-button__link {
	inline-size: 100%;
}

.ezc-cta .ezc-cta__terms {
	margin-block: 0;
	color: var(--wp--preset--color--ez-muted);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.wp-block-group.ezc-cta .ezc-cta__terms {
	text-align: center;
}

.ezc-cta.ezc-cta--on-dark .ezc-cta__terms {
	color: var(--wp--preset--color--ez-on-navy-muted);
}

@container (min-width: 640px) {
	.wp-block-group.ezc-cta .wp-block-buttons {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.wp-block-group.ezc-cta .wp-block-button,
	.wp-block-group.ezc-cta .wp-block-button .wp-block-button__link {
		inline-size: auto;
	}

	.wp-block-group.ezc-cta .ezc-cta__terms {
		text-align: start;
	}
}

/* ------------------------------------------------------------------ Demo form skin (Phase 12 B5, UI-SPEC B5 row, Color items 11-12) */

/*
 * The eazysoft-catalog/demo-form block prints the theme's contact-form classes inside its own
 * form.ezc-demo-form, and the theme enqueues contact.css and custom-work.css wherever the block
 * is. This skin overrides both by specificity, never by load order: every rule here starts with
 * .wp-block-eazysoft-catalog-demo-form .ezc-demo-form (0,2,0), so the field rules sit at (0,3,1)
 * or higher against contact.css's (0,2,1) focus and error rules and custom-work.css's textarea
 * rules. No contact-form class is styled outside .ezc-demo-form (test_theme_tokens guard), so the
 * live contact page, /custom-work/ and the homepage form keep their contact.css look (D-09).
 *
 * The plugin sheet keeps the structure (grid, gaps, container query, end-aligned tel and email,
 * the textarea's 96px floor). Invalid fields keep contact.css's error border: the border color
 * and its hover change apply only to fields without ez-field-error; the status text carries the
 * meaning. The status pairs replace contact.css's green and red, which fail AA at 14px.
 */
.wp-block-eazysoft-catalog-demo-form > h2.ezc-section-heading,
.wp-block-eazysoft-catalog-demo-form > h3.ezc-section-heading {
	margin-block: 0;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--readex-pro, 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif);
	font-size: var(--wp--preset--font-size--ez-title);
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form {
	gap: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field label {
	display: block;
	margin-block: 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-required {
	color: var(--wp--preset--color--ez-muted);
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field input,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field select,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea {
	box-sizing: border-box;
	min-block-size: 48px;
	padding-block: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ez-ink);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 400;
	line-height: 1.7;
	border-width: 1.5px;
	border-style: solid;
	border-radius: 10px;
	box-shadow: none;
	transition: border-color 150ms ease;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field input:not(.ez-field-error),
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field select:not(.ez-field-error),
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea:not(.ez-field-error) {
	border-color: var(--wp--preset--color--ez-chip-line);
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field input:not(.ez-field-error):hover,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field select:not(.ez-field-error):hover,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea:not(.ez-field-error):hover {
	border-color: var(--wp--preset--color--ez-muted);
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field input::placeholder,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea::placeholder {
	color: var(--wp--preset--color--ez-muted);
	opacity: 1;
}

/* One focus ring on every field and the submit (Color item 12); contact.css's glow is dropped. */
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field input:focus-visible,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field select:focus-visible,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea:focus-visible,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
	box-shadow: none;
}

/* The country code and the number stay on one row at every width (contact.css stacks them). */
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__phone-row {
	display: flex;
	flex-direction: row;
	gap: var(--wp--preset--spacing--20);
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__phone-row select {
	flex: none;
	inline-size: auto;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__phone-row input {
	flex: 1 1 0;
	min-inline-size: 0;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea {
	min-block-size: 96px;
	line-height: 1.7;
}

/* «جئت من» (D-06 prefill line): Small 14/400 ez-ink on ez-surface, titles ez-navy 600. */
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ezc-demo-form__from {
	margin: 0;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--ez-surface);
	border-radius: 10px;
	color: var(--wp--preset--color--ez-ink);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ezc-demo-form__from strong {
	color: var(--wp--preset--color--ez-navy);
	font-weight: 600;
}

/* Submit (Color item 11): flat ez-cta, full width, no gradient, no lift, no shadow. */
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit {
	box-sizing: border-box;
	display: block;
	inline-size: 100%;
	min-block-size: 48px;
	padding-block: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--ez-cta);
	background-image: none;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-body);
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
	cursor: pointer;
	transform: none;
	box-shadow: none;
	transition: background-color 150ms ease;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit:hover,
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit:active {
	background-color: var(--wp--preset--color--ez-cta-hover);
	transform: none;
	box-shadow: none;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit:disabled {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ezc-demo-form__reassure {
	margin: 0;
	color: var(--wp--preset--color--ez-muted);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 400;
	line-height: 1.6;
}

/* Status line (contact-form.js sets --success or --error); hidden while empty by contact.css. */
.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__status {
	padding-block: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--40);
	border-radius: 10px;
	color: var(--wp--preset--color--ez-navy);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-arabic, 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif);
	font-size: var(--wp--preset--font-size--ez-small);
	font-weight: 600;
	line-height: 1.6;
	text-align: start;
	transition: none;
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .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);
}

.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .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);
}

/* ------------------------------------------------------------------ focus: a visible ring everywhere */

/*
 * Every interactive element has a 3px ring at a 2px offset: ez-cta on light surfaces,
 * ez-blue-on-navy on navy. Nothing removes an outline without a replacement (the module-grid
 * card draws the ring of its stretched link, above).
 */
.ezc-btn:focus-visible,
.wp-block-button.is-style-ez-primary .wp-block-button__link:focus-visible,
.wp-block-button.is-style-ez-outline .wp-block-button__link:focus-visible,
.ezc-module-grid .ezc-module-grid__filters .ezc-chip:focus-visible,
.ezc-picker .ezc-picker__panel a:focus-visible,
.ezc-picker .ezc-picker__more-link:focus-visible,
.ezc-industry-grid a:focus-visible,
.ezc-related a:focus-visible,
.ezc-capabilities a:focus-visible,
.ezc-testimonials a:focus-visible,
.ezc-prose a:focus-visible,
.ezc-flow .ezc-flow__module a:focus-visible,
.ezc-more a:focus-visible,
.ezc-card a:focus-visible,
.ezc-split a:focus-visible,
.ezc-compare a:focus-visible,
.ezc-faq > .ezc-faq__item > summary:focus-visible,
.ezc-faq > .ezc-faq__item a:focus-visible,
.ezc-filter .ezc-filter__chip:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-cta);
	outline-offset: 2px;
}

.ezc-picker:not(.ezc-picker--context) .ezc-picker__nav .ezc-chip:focus-visible,
.ezc-btn.ezc-btn--on-dark:focus-visible,
.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link:focus-visible,
.ezc-cta.ezc-cta--on-dark .wp-block-button .wp-block-button__link:focus-visible,
.ezc-band.ezc-band--navy a:focus-visible,
.ezc-banner a:focus-visible {
	outline: 3px solid var(--wp--preset--color--ez-blue-on-navy);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ text: wrapping, Arabic tracking, arrows */

/*
 * Card and chip text wraps (overflow-wrap anywhere covers long Latin tokens such as JoFotara or
 * CRM); nothing is truncated, ellipsized or line-clamped, quotes included. Chips stay on one
 * line inside the mobile scroll rows and wrap as whole chips elsewhere.
 */
.ezc-module-card__title,
.ezc-module-card__tagline,
.ezc-module-card__dept,
.ezc-picker__panel-title,
.ezc-picker__panel-tagline,
.ezc-picker__lead,
.ezc-picker__more-link,
.ezc-tier__title,
.ezc-hub-card__title,
.ezc-hub-card__tagline,
.ezc-hub-card__link,
.ezc-related__chip,
.ezc-related__row-title,
.ezc-related__row-why,
.ezc-capability__title,
.ezc-capability__text,
.ezc-testimonial__quote,
.ezc-testimonial__cite,
.ezc-section-heading,
.ezc-stats__label,
.ezc-stats__asof {
	overflow-wrap: anywhere;
}

/* Arabic letters join: no tracking and no case transforms on any catalog text. */
[class*="ezc-"],
.wp-block-button[class*="is-style-ez-"] .wp-block-button__link {
	letter-spacing: 0;
	text-transform: none;
}

/* Signed stat values ("+10") stay on one line, isolated left-to-right. */
.ezc-stats__value bdi {
	unicode-bidi: isolate;
	white-space: nowrap;
}

/* The arrow is a text glyph (U+2190) pointing to inline-end in RTL; mirrored for an LTR build. */
.ezc-arrow {
	display: inline-block;
}

:dir(ltr) .ezc-arrow {
	transform: scaleX(-1);
}

/* ------------------------------------------------------------------ forced colors and reduced motion */

@media (forced-colors: active) {
	.ezc-chip[aria-current="true"],
	.ezc-chip[aria-selected="true"],
	.ezc-filter .ezc-filter__chip[aria-pressed="true"] {
		outline: 2px solid CanvasText;
		outline-offset: 2px;
	}

	.ezc-btn,
	.wp-block-button.is-style-ez-primary .wp-block-button__link,
	.wp-block-button.is-style-ez-outline .wp-block-button__link,
	.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link,
	.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit {
		border-color: ButtonBorder;
	}

	/* Fills disappear under forced colors; a border keeps pills, badges and tiles visible. */
	.ezc-pill,
	.ezc-badge,
	.ezc-icon-tile,
	.ezc-pill-navy,
	.ezc-flow .ezc-flow__module,
	.ezc-chain__steps > li {
		border: 1px solid CanvasText;
	}

	/* The homepage hero chips (B5) keep their 1.5px outline in CanvasText. */
	ul.ezc-chips > li,
	ul.ezc-chips > li.ezc-chip {
		border-color: CanvasText;
	}

	.ezc-faq > .ezc-faq__item > summary:focus-visible {
		outline: 3px solid ButtonBorder;
	}
}

/* Chip and button transitions (150ms) are removed; panels never animate. */
@media (prefers-reduced-motion: reduce) {
	.ezc-picker__nav .ezc-chip,
	.ezc-module-grid__filters .ezc-chip,
	.ezc-btn,
	.wp-block-button.is-style-ez-primary .wp-block-button__link,
	.wp-block-button.is-style-ez-outline .wp-block-button__link,
	.wp-block-button.is-style-ez-outline-on-dark .wp-block-button__link,
	.ezc-module-grid .ezc-module-card,
	.ezc-related .ezc-related__chip,
	.ezc-prose > p a,
	.ezc-prose > ul a,
	.ezc-prose > ol a,
	.ezc-flow .ezc-flow__module a,
	.ezc-more a,
	.ezc-faq > details.ezc-faq__item,
	.ezc-filter .ezc-filter__chip,
	.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field input,
	.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field select,
	.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__field textarea,
	.wp-block-eazysoft-catalog-demo-form .ezc-demo-form .ez-contact-form__submit {
		transition: none;
	}
}
