/*
 * CLEAR component classes.
 * Applied through the "CSS Class" field of Divi sections, rows and modules,
 * so editors keep full control of content while the look stays on-brand.
 * Component list: export 04-DESIGN-SYSTEM/components/COMPONENTS.md.
 */

/* ---------- Layout ---------- */

.clear-container {
	width: 100%;
	max-width: var(--clear-container);
	margin-inline: auto;
	padding-inline: var(--clear-gutter);
	box-sizing: border-box;
}

.clear-section {
	padding-block: var(--clear-section-y);
}

.clear-section--minor {
	padding-block: var(--clear-section-y-minor);
}

.clear-measure-640 { max-width: var(--clear-measure-640); }
.clear-measure-760 { max-width: var(--clear-measure-760); }
.clear-measure-820 { max-width: var(--clear-measure-820); }
.clear-measure-900 { max-width: var(--clear-measure-900); }

/*
 * Auto-fit card grid. A track can never be wider than its container
 * (minmax(min(N, 100%), 1fr)), which fixes the predicted mobile overflow
 * on the 7 pages that used bare minmax(300-340px, 1fr) in the source (G10).
 */
.clear-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--clear-grid-min, 300px), 100%), 1fr));
	gap: var(--clear-grid-gap, clamp(16px, 2vw, 24px));
	align-items: stretch;
}

.clear-grid > * { min-width: 0; }

.clear-grid--200 { --clear-grid-min: 200px; }
.clear-grid--220 { --clear-grid-min: 220px; }
.clear-grid--230 { --clear-grid-min: 230px; }
.clear-grid--240 { --clear-grid-min: 240px; }
.clear-grid--260 { --clear-grid-min: 260px; }
.clear-grid--270 { --clear-grid-min: 270px; }
.clear-grid--280 { --clear-grid-min: 280px; }
.clear-grid--300 { --clear-grid-min: 300px; }
.clear-grid--320 { --clear-grid-min: 320px; }
.clear-grid--330 { --clear-grid-min: 330px; }
.clear-grid--340 { --clear-grid-min: 340px; }
.clear-grid--360 { --clear-grid-min: 360px; }
.clear-grid--400 { --clear-grid-min: 400px; }
.clear-grid--420 { --clear-grid-min: 420px; }

/* ---------- Backgrounds ---------- */

.clear-bg-white { background: var(--clear-white); }
.clear-bg-navy { background: var(--clear-dark-blue); color: var(--clear-white); }
.clear-bg-tint-blue { background: var(--clear-tint-blue); }
.clear-bg-tint-purple { background: var(--clear-tint-purple); }
.clear-bg-tint-teal { background: var(--clear-tint-teal); }
.clear-bg-tint-light-blue { background: var(--clear-tint-light-blue); }
.clear-bg-tint-yellow { background: var(--clear-tint-yellow); }

.clear-bg-cool-strong { background: var(--clear-grad-cool-strong); }
.clear-bg-cool-medium { background: var(--clear-grad-cool-medium); }
.clear-bg-cool-subtle { background: var(--clear-grad-cool-subtle); }
.clear-bg-ocean-strong { background: var(--clear-grad-ocean-strong); }
.clear-bg-ocean-medium { background: var(--clear-grad-ocean-medium); }
.clear-bg-ocean-subtle { background: var(--clear-grad-ocean-subtle); }
.clear-bg-violet-strong { background: var(--clear-grad-violet-strong); }
.clear-bg-violet-medium { background: var(--clear-grad-violet-medium); }
.clear-bg-violet-subtle { background: var(--clear-grad-violet-subtle); }
.clear-bg-teal-strong { background: var(--clear-grad-teal-strong); }
.clear-bg-teal-medium { background: var(--clear-grad-teal-medium); }
.clear-bg-teal-subtle { background: var(--clear-grad-teal-subtle); }
.clear-bg-beacon-strong { background: var(--clear-grad-beacon-strong); }
.clear-bg-beacon-medium { background: var(--clear-grad-beacon-medium); }
.clear-bg-beacon-subtle { background: var(--clear-grad-beacon-subtle); }
.clear-bg-spectrum-strong { background: var(--clear-grad-spectrum-strong); }
.clear-bg-spectrum-medium { background: var(--clear-grad-spectrum-medium); }
.clear-bg-spectrum-subtle { background: var(--clear-grad-spectrum-subtle); }

.clear-field-cool { background: var(--clear-field-cool); }
.clear-field-ocean { background: var(--clear-field-ocean); }
.clear-field-violet { background: var(--clear-field-violet); }
.clear-field-teal { background: var(--clear-field-teal); }
.clear-field-beacon { background: var(--clear-field-beacon); }
.clear-field-spectrum { background: var(--clear-field-spectrum); }

.clear-hairline {
	height: 3px;
	border: 0;
	border-radius: 3px;
	background: var(--clear-hairline-cool);
}

.clear-hairline--ocean { background: var(--clear-hairline-ocean); }
.clear-hairline--violet { background: var(--clear-hairline-violet); }
.clear-hairline--teal { background: var(--clear-hairline-teal); }
.clear-hairline--beacon { background: var(--clear-hairline-beacon); }
.clear-hairline--spectrum { background: var(--clear-hairline-spectrum); }

/* Text on dark grounds */
.clear-on-dark,
.clear-bg-navy {
	color: var(--clear-text-on-dark);
}

.clear-on-dark h1,
.clear-on-dark h2,
.clear-on-dark h3,
.clear-bg-navy h1,
.clear-bg-navy h2,
.clear-bg-navy h3 {
	color: var(--clear-white);
}

/* ---------- Typography helpers ---------- */

.clear-eyebrow,
.clear-eyebrow p {
	font-family: var(--clear-font-micro);
	font-weight: 700;
	font-size: var(--clear-min);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--clear-blue);
}

.clear-on-dark .clear-eyebrow,
.clear-bg-navy .clear-eyebrow,
.clear-on-dark .clear-eyebrow p,
.clear-bg-navy .clear-eyebrow p {
	color: var(--clear-light-blue);
}

.clear-lead,
.clear-lead p {
	font-size: var(--clear-body-lead);
	line-height: 1.65;
	color: var(--clear-text-secondary);
}

.clear-muted { color: var(--clear-text-muted); }

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

/*
 * .clear-btn can be set on a Divi Button module (styles its link) or used
 * directly on an <a>. Variants: --primary (default), --secondary, --light,
 * --text ("Label ->" link).
 */
a.clear-btn,
.clear-btn a,
.clear-btn .et_pb_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: var(--clear-touch);
	padding: 14px 24px;
	border: 1px solid var(--clear-blue);
	border-radius: var(--clear-radius-pill);
	background: var(--clear-blue);
	color: var(--clear-white);
	font-family: var(--clear-font-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.25s var(--clear-ease), background-color 0.2s ease, color 0.2s ease;
}

a.clear-btn:hover,
.clear-btn a:hover,
.clear-btn .et_pb_button:hover {
	transform: translateY(-2px);
	color: var(--clear-white);
	padding: 14px 24px;
}

.clear-btn .et_pb_button::after { display: none; }

a.clear-btn--secondary,
.clear-btn--secondary a,
.clear-btn--secondary .et_pb_button {
	background: transparent;
	color: var(--clear-dark-blue);
	border-color: var(--clear-mid-grey);
}

a.clear-btn--secondary:hover,
.clear-btn--secondary a:hover,
.clear-btn--secondary .et_pb_button:hover {
	color: var(--clear-blue);
	border-color: var(--clear-blue);
}

a.clear-btn--light,
.clear-btn--light a,
.clear-btn--light .et_pb_button {
	background: var(--clear-white);
	color: var(--clear-dark-blue);
	border-color: var(--clear-white);
}

a.clear-btn--light:hover,
.clear-btn--light a:hover,
.clear-btn--light .et_pb_button:hover {
	color: var(--clear-dark-blue);
}

a.clear-btn--text,
.clear-btn--text a,
.clear-btn--text .et_pb_button {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--clear-blue);
}

a.clear-btn--text::after,
.clear-btn--text a::after {
	content: "\2192";
}

/*
 * Button text colours. The general link rule (body.clear-site a, Blue) is
 * more specific than the rules above, which turned primary button text Blue
 * on Blue ("Play episode", "Load more articles"). Scoped to win.
 */
body.clear-site a.clear-btn,
body.clear-site a.clear-btn:visited,
body.clear-site a.clear-btn:hover,
body.clear-site a.clear-btn:focus,
body.clear-site .clear-btn a,
body.clear-site .clear-btn a:hover,
body.clear-site .clear-btn a:focus,
body.clear-site .clear-btn .et_pb_button,
body.clear-site .clear-btn .et_pb_button:hover { color: var(--clear-white); }

body.clear-site a.clear-btn--secondary,
body.clear-site a.clear-btn--secondary:visited,
body.clear-site .clear-btn--secondary a,
body.clear-site .clear-btn--secondary .et_pb_button,
body.clear-site a.clear-btn--light,
body.clear-site a.clear-btn--light:visited,
body.clear-site a.clear-btn--light:hover,
body.clear-site a.clear-btn--light:focus,
body.clear-site .clear-btn--light a,
body.clear-site .clear-btn--light a:hover,
body.clear-site .clear-btn--light .et_pb_button,
body.clear-site .clear-btn--light .et_pb_button:hover { color: var(--clear-dark-blue); }

body.clear-site a.clear-btn--secondary:hover,
body.clear-site a.clear-btn--secondary:focus,
body.clear-site .clear-btn--secondary a:hover,
body.clear-site .clear-btn--secondary .et_pb_button:hover,
body.clear-site a.clear-btn--text,
body.clear-site a.clear-btn--text:visited,
body.clear-site .clear-btn--text a,
body.clear-site .clear-btn--text .et_pb_button { color: var(--clear-blue); }

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

.clear-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: clamp(22px, 2.4vw, 30px);
	border: 1px solid var(--clear-mid-grey);
	border-radius: var(--clear-radius-card);
	background: var(--clear-white);
	transition: transform 0.35s var(--clear-ease), border-color 0.2s ease;
}

.clear-card--link:hover,
.clear-card--link:focus-within {
	transform: translateY(-6px);
	border-color: var(--clear-blue);
}

.clear-card--flush { padding: 0; overflow: hidden; }

.clear-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--clear-radius-image);
}

.clear-card--flush img { border-radius: 0; }

.clear-card > :last-child { margin-top: auto; }

.clear-panel {
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--clear-radius-panel);
	background: var(--clear-tint-blue);
}

.clear-cta-panel {
	padding: clamp(32px, 5vw, 64px);
	border-radius: var(--clear-radius-cta);
	background: var(--clear-dark-blue);
	color: var(--clear-text-on-dark);
}

.clear-cta-panel h2,
.clear-cta-panel h3 {
	color: var(--clear-white);
}

/* ---------- Badges, chips, stats ---------- */

/* Category badges are always Dark Blue with white text. */
.clear-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: var(--clear-radius-pill);
	background: var(--clear-dark-blue);
	color: var(--clear-white);
	font-family: var(--clear-font-micro);
	font-size: var(--clear-min);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.clear-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--clear-touch);
	padding: 0 18px;
	border: 1px solid var(--clear-mid-grey);
	border-radius: var(--clear-radius-pill);
	background: var(--clear-white);
	color: var(--clear-dark-blue);
	font-family: var(--clear-font-display);
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.clear-chip:hover { border-color: var(--clear-blue); }

.clear-chip[aria-pressed="true"] {
	border-color: var(--clear-dark-blue);
	background: var(--clear-dark-blue);
	color: var(--clear-white);
}

.clear-stat__value,
.clear-stat .clear-stat__value p {
	font-family: var(--clear-font-display);
	font-weight: 700;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1;
	letter-spacing: -0.025em;
	color: var(--clear-dark-blue);
}

.clear-stat__label {
	margin-top: 8px;
	font-size: var(--clear-small);
	color: var(--clear-text-secondary);
}

/* ---------- Numbered process / journey ---------- */

.clear-steps {
	display: flex;
	gap: clamp(16px, 2vw, 24px);
	counter-reset: clear-step;
}

.clear-steps > * {
	flex: 1 1 0;
	min-width: 0;
}

.clear-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--clear-dark-blue);
	color: var(--clear-white);
	font-family: var(--clear-font-display);
	font-weight: 700;
}

.clear-steps__arrow { align-self: center; flex: 0 0 auto; color: var(--clear-mid-grey); }

@media (max-width: 1000px) {
	.clear-steps {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	}

	.clear-steps__arrow { display: none; }
}

/* ---------- Media ---------- */

.clear-img-16x10 img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.clear-img-21x9 img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }
.clear-img-rounded img { border-radius: var(--clear-radius-image); } /* was --clear-radius-panel (24px) until 0.4.2 */

/* ---------- Forms (Gravity Forms and placeholders) ---------- */

body.clear-site input[type="text"],
body.clear-site input[type="email"],
body.clear-site input[type="tel"],
body.clear-site input[type="url"],
body.clear-site select,
body.clear-site textarea {
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--clear-border-field);
	border-radius: var(--clear-radius-input);
	background: var(--clear-white);
	color: var(--clear-text);
	font-family: var(--clear-font-body);
	font-size: 15px;
}

/*
 * Text-like fields only: checkboxes, radios and submit buttons keep the global focus ring
 * (a bare input:focus rule removed it from them). The replacement is a visible 2px Blue
 * outline, not the faint 16% halo alone (WCAG 2.4.7, 1.4.11).
 */
body.clear-site input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="search"], [type="number"], [type="password"], :not([type])):focus,
body.clear-site select:focus,
body.clear-site textarea:focus {
	border-color: var(--clear-blue);
	box-shadow: var(--clear-focus-ring-input);
	outline: 2px solid var(--clear-blue);
	outline-offset: 1px;
}

/*
 * Divi's own form modules (Contact Form, Post Filter): the same 3:1 field boundary, Text muted
 * placeholders and the CLEAR primary button, instead of Divi's light grey fields and #2EA3F2 button
 * (2.75:1 on white).
 */
body.clear-site .et_pb_contact_form .input,
body.clear-site .et_pb_post_filter__item-control,
body.clear-site .et_pb_post_filter select,
body.clear-site .et_pb_post_filter input[type="text"] {
	border: 1px solid var(--clear-border-field) !important;
	border-radius: var(--clear-radius-input);
	background-color: var(--clear-white) !important;
	color: var(--clear-text) !important;
}

/*
 * Round corners on the Divi Post Filter (0.3.9, 20 Nov 2026; user request: round corners everywhere).
 * Divi's own filter styles set the fields to 0 and the Reset button to 3px, overriding the rule above.
 * Fields use the input radius (12px); the Reset button the CLEAR pill, like every other button.
 */
body.clear-site .et_pb_post_filter .et_pb_post_filter__item-control:not(.et_pb_post_filter__item-control-button),
body.clear-site .et_pb_post_filter select,
body.clear-site .et_pb_post_filter input[type="text"],
body.clear-site .et_pb_post_filter input[type="search"] {
	border-radius: var(--clear-radius-input) !important;
}

body.clear-site .et_pb_post_filter .et_pb_post_filter__item-control-button {
	border-radius: var(--clear-radius-pill) !important;
}

body.clear-site .et_pb_contact_form .input.et_contact_error {
	border-color: var(--clear-cool-red) !important;
	border-width: 2px !important;
}

body.clear-site .et_pb_contact_submit.et_pb_button {
	background: var(--clear-blue) !important;
	border-color: var(--clear-blue) !important;
	color: var(--clear-white) !important;
	border-radius: 999px;
}

body.clear-site .et-pb-contact-message:focus { outline: var(--clear-focus); outline-offset: 4px; }

body.clear-site .gfield_error input,
body.clear-site .gfield_error textarea,
body.clear-site [aria-invalid="true"] {
	border-color: var(--clear-cool-red);
}

body.clear-site .gform_validation_errors {
	border: 1px solid var(--clear-cool-red);
	border-radius: var(--clear-radius-input);
	background: var(--clear-tint-red);
	color: var(--clear-text);
}

.clear-placeholder-notice {
	padding: 20px 24px;
	border: 1px dashed var(--clear-mid-grey);
	border-radius: var(--clear-radius-input);
	background: var(--clear-tint-yellow);
	color: var(--clear-text);
	font-size: var(--clear-small);
}

/* ---------- Single news article (Divi's default post layout) ---------- */

/* Reading width and the featured image as a banner, as in CLEAR Article.dc.html. */
body.single-post.clear-site #left-area { max-width: 900px; margin: 0 auto; }
body.single-post.clear-site .et_post_meta_wrapper img,
body.single-post.clear-site .clear-article-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	margin: 32px 0 8px;
	border-radius: var(--clear-radius-image); /* was 22px until 0.4.2 */
	background: var(--clear-mid-grey);
}
body.single-post.clear-site .entry-title { font-family: var(--clear-font-display); font-size: clamp(29px, 4vw, 42px); line-height: 1.14; letter-spacing: -0.02em; }
body.single-post.clear-site .entry-content { font-size: 17px; line-height: 1.8; color: var(--clear-text-secondary); }

/* ---------- Floating modules ---------- */

/*
 * A module given the CSS class "clear-float" (Divi: Advanced > Attributes) and an absolute position,
 * such as the Home hero's "1,500+" badge. Divi's column gutter rule
 * (.et_pb_gutters4 .et_pb_column_1_2 .et_pb_module) gives every module except the last a 5.82–8.70%
 * bottom margin and outranks the module's own margin setting. On an absolutely positioned module
 * that margin moves it up, so the badge no longer sat where its Divi offsets say (19 Nov 2026).
 */
body.clear-site .et_pb_column > .et_pb_module.clear-float { margin-bottom: 0 !important; }

/* ---------- Flip card (native Divi Groups) ---------- */

/*
 * Divi has no flip setting, so this is the one behaviour the theme adds.
 * Structure, all native and editable: Group "clear-flip" (fixed height,
 * focusable) > Group "clear-flip__front" + Group "clear-flip__back".
 * Colours, text, icon image, padding and radius stay in Divi settings.
 * Hover or keyboard focus turns the card; with reduced motion it fades.
 */
/*
 * Both faces share one grid cell, so the card grows with its content at 200% text or with
 * user text-spacing instead of the back text spilling out of a fixed height (WCAG 1.4.4, 1.4.12).
 * The Divi height becomes a minimum.
 */
.clear-flip {
	position: relative;
	perspective: 1400px;
	display: grid !important;
	min-height: var(--clear-flip-min-h, 148px);
	height: auto !important;
	align-self: stretch !important; /* cards in one row share the tallest card's height */
}

.clear-flip > .clear-flip__front,
.clear-flip > .clear-flip__back {
	position: relative !important;
	grid-area: 1 / 1;
	margin: 0 !important;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1), opacity 0.3s ease;
}

/* Divi modules inside each face are composited on their own, so they hide their back face too. */
.clear-flip > .clear-flip__front *,
.clear-flip > .clear-flip__back * {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.clear-flip > .clear-flip__back { transform: rotateY(180deg); }
.clear-flip:hover > .clear-flip__front,
.clear-flip:focus-within > .clear-flip__front,
.clear-flip:focus > .clear-flip__front { transform: rotateY(-180deg); }
.clear-flip:hover > .clear-flip__back,
.clear-flip:focus-within > .clear-flip__back,
.clear-flip:focus > .clear-flip__back { transform: rotateY(0deg); }

.clear-flip:focus-visible { outline: 3px solid var(--clear-blue); outline-offset: 3px; border-radius: 20px; }

@media (prefers-reduced-motion: reduce) {
	.clear-flip > .clear-flip__front,
	.clear-flip > .clear-flip__back { transition: opacity 0.2s ease; transform: none !important; }
	.clear-flip > .clear-flip__back { opacity: 0; }
	.clear-flip:hover > .clear-flip__back,
	.clear-flip:focus-within > .clear-flip__back,
	.clear-flip:focus > .clear-flip__back { opacity: 1; }
}

/* ---------- Gradient stroke on hover and keyboard focus (0.4.1) ---------- */

/*
 * Outlined interactive elements keep their normal border; on hover, and on keyboard focus, the
 * border turns into the CLEAR logo arc gradient (--clear-stroke-gradient). Pure CSS: a pseudo-element
 * the size of the border box carries the gradient, masked to a 2px ring (--clear-stroke-ring) that
 * covers the border, and fades in. Nothing moves or resizes.
 * The existing focus outline is kept as well, so focus stays at 3:1 or more whatever the gradient.
 *
 * Covered automatically: the Divi "CLEAR · Button · Secondary" preset (outlined buttons and the podcast
 * platform buttons), the theme's secondary and light buttons, chips, the Expertise map list and
 * filters, News page buttons, the motion controls, footer social links, case study navigation cards
 * and the Divi filter's Reset button.
 *
 * Opt-in for cards and other containers: give the Divi Group the CSS class "clear-stroke"
 * (Advanced > Attributes). Use it only on containers that hold a link or button.
 * Not used on form fields: their 3:1 boundary and focus ring stay as they are (WCAG 1.4.11).
 */
body.clear-site :is(
	.et_pb_button.preset--module--divi-button--clrbtnseco,
	a.clear-btn--secondary,
	.clear-btn--secondary .et_pb_button,
	a.clear-btn--light,
	.clear-chip,
	.clear-xchip,
	.clear-map__list-btn,
	.clear-map__list > summary,
	.clear-pager__btn,
	.clear-footer__social a,
	.clear-cs__nav-card
) {
	position: relative;
}

body.clear-site :is(
	.et_pb_button.preset--module--divi-button--clrbtnseco,
	a.clear-btn--secondary,
	.clear-btn--secondary .et_pb_button,
	a.clear-btn--light,
	.clear-chip,
	.clear-xchip,
	.clear-map__list-btn,
	.clear-map__list > summary,
	.clear-pager__btn,
	.clear-footer__social a,
	.clear-cs__nav-card,
	.clear-motion-toggle,
	.clear-method__toggle
)::after,
body.clear-site .et_pb_post_filter__item-control-reset::before,
body.clear-site .clear-stroke::after {
	content: "";
	display: block;
	position: absolute;
	inset: calc(-1 * var(--clear-stroke-width, 1px));
	z-index: 3;
	margin: 0;
	padding: var(--clear-stroke-ring, 2px); /* 2px ring over the 1px border and 1px inwards: no layout shift */
	box-sizing: border-box;
	border: 0;
	border-radius: inherit;
	background: var(--clear-stroke-gradient);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0;
	transform: none;
	font-size: 0;
	line-height: 0;
	pointer-events: none;
	transition: opacity var(--clear-stroke-speed) ease;
}

/*
 * Divi hides a button's ::after with display: none !important when its icon is off
 * (body #page-container .et_pb_section .<preset>::after). The stroke takes that pseudo-element over.
 */
body.clear-site #page-container .et_pb_section .et_pb_button.preset--module--divi-button--clrbtnseco::after,
body.clear-site #page-container .et_pb_post_filter__item-control-reset.et_pb_button::before {
	display: block !important;
	content: "" !important;
}

/* Divi's Reset button has a 2px border; its own icon uses ::after, so the stroke uses ::before. */
body.clear-site .et_pb_post_filter__item-control-reset { --clear-stroke-width: 2px; }

/*
 * Cards: Divi clips a rounded Group's content to the inside of its border (overflow: hidden), so the
 * ring is drawn just inside the edge and the grey border is made transparent while it shows.
 */
body.clear-site .clear-stroke::after { inset: 0; }

body.clear-site :is(
	.et_pb_button.preset--module--divi-button--clrbtnseco,
	a.clear-btn--secondary,
	.clear-btn--secondary .et_pb_button,
	a.clear-btn--light,
	.clear-chip,
	.clear-xchip,
	.clear-map__list-btn,
	.clear-map__list > summary,
	.clear-pager__btn,
	.clear-footer__social a,
	.clear-cs__nav-card,
	.clear-motion-toggle,
	.clear-method__toggle
):focus-visible::after,
body.clear-site .et_pb_post_filter__item-control-reset:focus-visible::before,
body.clear-site .clear-stroke:has(:focus-visible)::after {
	opacity: 1;
}

body.clear-site .clear-stroke:has(:focus-visible) { border-color: transparent !important; }

/* Hover only where a real pointer can hover, so a tap on a phone doesn't leave the stroke stuck on. */
@media (hover: hover) {
	body.clear-site :is(
		.et_pb_button.preset--module--divi-button--clrbtnseco,
		a.clear-btn--secondary,
		.clear-btn--secondary .et_pb_button,
		a.clear-btn--light,
		.clear-chip,
		.clear-xchip,
		.clear-map__list-btn,
		.clear-map__list > summary,
		.clear-pager__btn,
		.clear-footer__social a,
		.clear-cs__nav-card,
		.clear-motion-toggle,
		.clear-method__toggle
	):hover::after,
	body.clear-site .et_pb_post_filter__item-control-reset:hover::before,
	body.clear-site .clear-stroke:hover::after {
		opacity: 1;
	}

	body.clear-site .clear-stroke:hover { border-color: transparent !important; }
}

@media (prefers-reduced-motion: reduce) {
	body.clear-site :is(
		.et_pb_button.preset--module--divi-button--clrbtnseco,
		a.clear-btn--secondary,
		.clear-btn--secondary .et_pb_button,
		a.clear-btn--light,
		.clear-chip,
		.clear-xchip,
		.clear-map__list-btn,
		.clear-map__list > summary,
		.clear-pager__btn,
		.clear-footer__social a,
		.clear-cs__nav-card,
		.clear-motion-toggle,
		.clear-method__toggle
	)::after,
	body.clear-site .et_pb_post_filter__item-control-reset::before,
	body.clear-site .clear-stroke::after {
		transition: none;
	}
}

/* Windows high contrast and other forced-colour modes draw their own borders: no gradient there. */
@media (forced-colors: active) {
	body.clear-site :is(
		.et_pb_button.preset--module--divi-button--clrbtnseco,
		a.clear-btn--secondary,
		.clear-btn--secondary .et_pb_button,
		a.clear-btn--light,
		.clear-chip,
		.clear-xchip,
		.clear-map__list-btn,
		.clear-map__list > summary,
		.clear-pager__btn,
		.clear-footer__social a,
		.clear-cs__nav-card,
		.clear-motion-toggle,
		.clear-method__toggle
	)::after,
	body.clear-site .et_pb_post_filter__item-control-reset::before,
	body.clear-site .clear-stroke::after {
		display: none;
	}
}

/* ---------- Flip card in the Visual Builder ---------- */

/* In the Visual Builder canvas both faces show, one under the other, so each can be edited. */
body.clear-builder .clear-flip { height: auto !important; display: block !important; }
body.clear-builder .clear-flip > .clear-flip__front,
body.clear-builder .clear-flip > .clear-flip__back {
	position: relative !important;
	inset: auto;
	transform: none !important;
	opacity: 1 !important;
	margin-bottom: 8px !important;
}
