/* Low-specificity defaults: block colour, spacing and typography controls take priority. */
@layer errorx-base {
	.errorx-block-header { padding-block: 0.85rem; border-bottom: 1px solid var(--errorx-line); background: #fff; }
	.errorx-block-header .errorx-container { align-items: center; }
	.errorx-block-header .wp-block-site-logo img { max-width: 180px; height: auto; }
	.errorx-block-header .wp-block-navigation { gap: 0.25rem 2rem; }
	.errorx-block-header .wp-block-navigation-item__content { padding-block: 0.35rem; border-bottom: 2px solid transparent; transition: border-color 0.15s; }
	.errorx-block-header .wp-block-navigation-item__content:hover, .errorx-block-header .wp-block-navigation-item__content[aria-current="page"] { border-bottom-color: var(--errorx-red); }
	/* Figures: a rule above each, no boxes. */
	.errorx-block-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 2.5rem; }
	.errorx-stat { border-top: 1px solid var(--errorx-line-strong); padding-top: 1.1rem; }
	.errorx-stat-value { margin-bottom: 0.5rem; font-family: var(--errorx-font-heading); font-size: clamp(2.25rem,4vw,3rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
	.errorx-stat p:not(.errorx-stat-value) { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--errorx-slate); }
	.errorx-section .wp-block-columns { margin-bottom: 0; }
	.errorx-section .wp-block-column { min-width: 0; }
	.errorx-section .wp-block-buttons { margin-block: 1.5rem 0; }
	.errorx-card { height: 100%; }
	.errorx-footer { padding-bottom: 2rem; }
	.errorx-footer .wp-block-navigation { justify-content: flex-start; }
	.errorx-footer .wp-block-site-logo { background: white; padding: .5rem; border-radius: 8px; width: fit-content; }
	.errorx-footer h3 { color: inherit; }
	.errorx-mission p:last-child { color: var(--errorx-ink); }
	.errorx-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--errorx-ink); }
	.errorx-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--errorx-line); }
	.errorx-cta h3 { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: #aab0ba; margin-bottom: 1rem; }
	.wp-block-post-template .errorx-post-card { height: 100%; }
	.errorx-contact-block { max-width: 44rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--errorx-bg-alt); border-radius: var(--errorx-radius); }
	.errorx-contact-block .errorx-form { max-width: none; }
	.errorx-contact-block .errorx-field:last-of-type { margin-bottom: 0; }
	.errorx-contact-block .errorx-field { margin-bottom: 1.5rem; }
	.wp-block-post-content > .errorx-section { margin-block: 0; }
	@media (max-width: 600px) {
		.errorx-block-stats { grid-template-columns: 1fr; }
		.errorx-compare { grid-template-columns: 1fr; }
	}
}
/* Keep the site shell flush while sections own their editable spacing. */
:where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }

/* A chosen solid colour must replace any background image as well.
 * Zero specificity lets WordPress gradient presets and inline gradients win. */
:where(.wp-block-group.has-background) { background-image: none; }

/* Block spacing is set on every child of a group, so these two need to say so at the same strength. */
.errorx-eyebrow { margin-block-end: 1.1rem; }
.errorx-eyebrow:empty { display: none; }
.errorx-block-stats > * { margin-block: 0; }
.errorx-takeaway { margin-block-start: 3rem; }
.errorx-case .wp-block-columns, .errorx-cta .wp-block-columns { gap: 3rem clamp(2.5rem, 6vw, 5rem); }
.wp-block-buttons.is-layout-flex { gap: 0.75rem; }
.errorx-lead + .wp-block-columns, .errorx-section .wp-block-heading + .wp-block-columns { margin-block-start: 3rem; }
/* A heading that follows other content needs air above it; one that follows its label does not. */
.wp-block-post-content > :not(.errorx-eyebrow) + .wp-block-heading, .errorx-container > :not(.errorx-eyebrow) + .wp-block-heading { margin-block-start: 2.5rem; }
.wp-block-post-content > :not(.errorx-eyebrow) + h3.wp-block-heading, .errorx-container > :not(.errorx-eyebrow) + h3.wp-block-heading { margin-block-start: 2rem; }

/* Movement, added by errorx.js only where it can run: blocks ease in, the label's rule draws across. */
.errorx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.errorx-reveal.is-in { opacity: 1; transform: none; }
.errorx-eyebrow.errorx-reveal::before { width: 0; transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.errorx-eyebrow.errorx-reveal.is-in::before { width: 1.75rem; }
@media print { .errorx-reveal { opacity: 1; transform: none; } }

/* A figure in a card is in the brand red. */
.errorx-card h1, .errorx-card h2 { color: var(--errorx-red); }
.errorx-card h1, .errorx-card h2, .errorx-stat-value, .errorx-stats dd { font-variant-numeric: tabular-nums; }

/* The header stays in reach on screens with room for it. */
@media (min-width: 782px) {
	.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; }
	html { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem); }
}

/* Buttons. Zero specificity, so a colour chosen on a button or in Colours and sizes still wins. */
:where(.wp-block-button__link) { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
:where(.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background):hover) { background-color: var(--errorx-red-dark); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1.5px; padding: calc(0.85rem - 1.5px) calc(1.5rem - 1.5px); }
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background-color: var(--errorx-ink); border-color: var(--errorx-ink); color: #fff; }
.errorx-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgb(255 255 255 / 45%); }
.errorx-cta .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background-color: #fff; border-color: #fff; color: var(--errorx-ink); }

/* Scoped to the owner's September content tidy-up. */
.errorx-tidy-hero-copy { max-width: 54rem; }
.errorx-tidy-hero h1 { max-width: 24ch; }
/* Home hero: the ErrorX mark beside the headline. It turns like the footer mark. */
.errorx-tidy-hero h1 { position: relative; width: fit-content; padding-right: 2.3em; }
.errorx-tidy-hero h1::before, .errorx-tidy-hero h1::after { content: ""; position: absolute; right: 0; top: calc(50% - 0.9em); width: 1.8em; height: 1.8em; background: center / contain no-repeat; }
.errorx-tidy-hero h1::before { background-image: url("../../../errorx/assets/img/mark.png"); transition: transform 0.7s ease-in-out, filter 0.7s ease-in-out; }
.errorx-tidy-hero h1.is-positive::before { transform: rotate(45deg); filter: hue-rotate(120deg) brightness(1.15); }
.errorx-tidy-hero h1::after { background-image: var(--errorx-mark-lines); filter: hue-rotate(120deg) brightness(1.15); opacity: 0; transition: opacity 0.4s ease-in 0.45s; }
.errorx-tidy-hero h1.is-positive::after { opacity: 1; }
/* Wide screens have room for it outside the headline, so the words keep their full width. */
@media (min-width: 1120px) {
	.errorx-tidy-hero h1 { padding-right: 0; }
	.errorx-tidy-hero h1::before, .errorx-tidy-hero h1::after { right: auto; left: calc(100% + 0.6em); }
}
@media (prefers-reduced-motion: reduce) { .errorx-tidy-hero h1::before, .errorx-tidy-hero h1::after { transition: none; } }
/* The mission is the page's one statement band: white on ink. */
.errorx-tidy-mission { background: var(--errorx-ink); color: #fff; }
.errorx-tidy-mission .errorx-mission { margin: 0; max-width: 56rem; }
.errorx-tidy-mission .errorx-mission p:last-child { color: inherit; }
.errorx-tidy-mission .errorx-eyebrow { color: #ff9c9c; }
/* A large, faint ErrorX cross behind the mission. It turns to a plus as the statement arrives, like the brand mark. */
.errorx-tidy-mission { position: relative; overflow: hidden; }
.errorx-tidy-mission > * { position: relative; z-index: 1; }
.errorx-tidy-mission::after { content: ""; position: absolute; top: 50%; right: max(-4rem, calc(50% - 44rem)); width: 26rem; height: 26rem; margin-top: -13rem; opacity: 0.07; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='53' fill='none' stroke='%23fff' stroke-width='7'/%3E%3Cpath d='M41 41l38 38M79 41L41 79' stroke='%23fff' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s; }
.errorx-tidy-mission:has(.errorx-reveal.is-in)::after { transform: rotate(45deg); }
@media (max-width: 781px) { .errorx-tidy-mission::after { width: 15rem; height: 15rem; margin-top: 0; top: auto; bottom: -4rem; right: -4rem; } }
.errorx-tidy-story { max-width: 48rem; }
.errorx-tidy-story p + p { margin-top: 1.25rem; }
.errorx-tidy-story > p:first-child { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.5; }
/* A long story sits beside its heading on wide screens, and the heading stays in view while it is read. */
@media (min-width: 62rem) {
	.errorx-container:has(> .errorx-tidy-story) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
	.errorx-container:has(> .errorx-tidy-story) > * { grid-column: 1; }
	.errorx-container:has(> .errorx-tidy-story) > h2 { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 7rem); }
	.errorx-container:has(> .errorx-tidy-story) > .errorx-tidy-story { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin-top: 0; }
}

/* Brand footer. Selectors stay class-based so block colour, spacing and typography controls still win. */
.errorx-brand-footer { padding-block: 2.5rem 1.5rem; }
.errorx-brand-footer .errorx-brand-footer__card { background: #f0f5fa; border-radius: 16px; padding: 1.25rem clamp(1.5rem, 4vw, 3rem); gap: 1.5rem 3rem; color: #1b1e33; }
.errorx-brand-footer .errorx-brand-footer__brand { gap: 1.75rem; }
.errorx-brand-footer .errorx-brand-footer__brand > * { margin: 0; }
.errorx-brand-footer .errorx-brand-footer__mark img { width: 92px; height: auto; }
.errorx-brand-footer .errorx-brand-footer__mark { position: relative; margin: 0; line-height: 0; }
.errorx-brand-footer .errorx-brand-footer__mark img { transition: transform 0.7s ease-in-out, filter 0.7s ease-in-out; }
.errorx-brand-footer .errorx-brand-footer__mark.is-positive img { transform: rotate(45deg); filter: hue-rotate(120deg) brightness(1.15); }
/* Diagonal notches that turn the green plus into a Pozidriv head. */
.errorx-brand-footer__mark, .errorx-tidy-hero h1 { --errorx-mark-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath d='M155 155L172 172M155 85L172 68M85 155L68 172M85 85L68 68' stroke='%23be0000' stroke-width='8' fill='none'/%3E%3C/svg%3E"); }
.errorx-brand-footer .errorx-brand-footer__mark::after { content: ""; position: absolute; inset: 0; background: var(--errorx-mark-lines) center / contain no-repeat; filter: hue-rotate(120deg) brightness(1.15); opacity: 0; transition: opacity 0.4s ease-in 0.45s; }
.errorx-brand-footer .errorx-brand-footer__mark.is-positive::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .errorx-brand-footer .errorx-brand-footer__mark img, .errorx-brand-footer .errorx-brand-footer__mark::after { transition: none; } }
@media (min-width: 782px) { .errorx-brand-footer .errorx-brand-footer__card > .errorx-brand-footer__promise { margin-left: auto; } }
.errorx-brand-footer .errorx-brand-footer__mark + .errorx-brand-footer__name { border-left: 2px solid #a7a9b8; padding-left: 1.75rem; }
.errorx-brand-footer .errorx-brand-footer__name > * { margin: 0; }
.errorx-brand-footer .errorx-brand-footer__wordmark img { width: 200px; height: auto; }
.errorx-brand-footer .errorx-brand-footer__tagline { margin-top: 0.35rem; font-family: var(--errorx-font-heading); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.3; }
.errorx-brand-footer .errorx-brand-footer__promise { margin: 0; border-left: 2px solid #a7a9b8; padding: 0.4rem 0 0.4rem clamp(1.5rem, 5vw, 3.5rem); font-size: 1.3rem; line-height: 1.4; }
.errorx-brand-footer .errorx-brand-footer__promise strong { color: #087a1b; font-weight: 800; }
.errorx-brand-footer .errorx-brand-footer__legal { margin: 1rem 0 0; font-size: 0.85rem; color: var(--errorx-muted); text-align: center; }
.errorx-brand-footer .errorx-brand-footer__legal a { color: inherit; }
@media (max-width: 781px) {
	.errorx-brand-footer .errorx-brand-footer__card { flex-direction: column; text-align: center; padding-block: 1.75rem; }
	.errorx-brand-footer .errorx-brand-footer__promise { border-left: 0; border-top: 2px solid #d5d9e2; padding: 1.25rem 0 0; }
}
@media (max-width: 480px) {
	.errorx-brand-footer .errorx-brand-footer__brand { gap: 1rem; }
	.errorx-brand-footer .errorx-brand-footer__mark img { width: 64px; }
	.errorx-brand-footer .errorx-brand-footer__name { text-align: left; }
	.errorx-brand-footer .errorx-brand-footer__mark + .errorx-brand-footer__name { padding-left: 1rem; }
	.errorx-brand-footer .errorx-brand-footer__wordmark img { width: 140px; }
	.errorx-brand-footer .errorx-brand-footer__tagline { font-size: 0.85rem; letter-spacing: 0.04em; }
	.errorx-brand-footer .errorx-brand-footer__promise { font-size: 1.15rem; }
}

/* Error message example page: an illustration, so its links and buttons are not interactive. */
.errorx-example .errorx-example__compare { margin-top: 2.5rem; align-items: flex-start; }
.errorx-example .errorx-example__after { position: relative; }
.errorx-example .errorx-example__after::before { content: ""; position: absolute; top: 7rem; left: -3.5rem; width: 2.5rem; height: 2.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M5 24h37M29 11l13 13-13 13' fill='none' stroke='%239298a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.errorx-example .errorx-example-panel { border-radius: var(--errorx-radius); overflow: hidden; padding-bottom: 1.5rem; border: 1px solid var(--errorx-line); font-size: 1rem; line-height: 1.55; }
.errorx-example .errorx-example-panel + .errorx-example-panel { margin-top: 1.25rem; }
.errorx-example .errorx-example-panel > * { margin: 1.25rem 1.5rem 0; }
.errorx-example .errorx-example-panel--original { background: var(--errorx-bg-alt); }
.errorx-example .errorx-example-panel--wrong { background: #fdf3f3; border-color: #f0cfd1; }
.errorx-example .errorx-example-panel--better { background: #f1f8f3; border-color: #cfe5d5; }
.errorx-example .errorx-example-panel .errorx-example-panel__title { margin: 0; padding: 0.8rem 1.5rem; font-size: 0.8125rem; font-weight: 800; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; text-wrap: wrap; color: #fff; background: #5d626c; }
.errorx-example .errorx-example-panel--wrong .errorx-example-panel__title { background: #c2131a; }
.errorx-example .errorx-example-panel--better .errorx-example-panel__title { background: #157a32; }
.errorx-example .errorx-example-toast { position: relative; margin-block: 3.5rem 2.25rem; background: #fff; border-left: 4px solid #d3151c; border-radius: 4px; box-shadow: 0 2px 10px rgb(31 34 39 / 16%); padding: 1rem 3rem 1rem 1.1rem; }
.errorx-example .errorx-example-toast::after { content: ""; position: absolute; top: 1.15rem; right: 1.1rem; width: 1rem; height: 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%231f2227' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.errorx-example .errorx-example-toast p { margin: 0; line-height: 1.5; }
.errorx-example .errorx-example-problems { list-style: none; padding: 0; display: grid; gap: 1rem; }
.errorx-example .errorx-example-problems li { position: relative; margin: 0; padding-left: 3.25rem; line-height: 1.35; color: var(--errorx-slate); }
.errorx-example .errorx-example-problems li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 2.1rem; height: 2.1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23d3151c'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.errorx-example .errorx-example-problems strong { color: var(--errorx-ink); font-size: 1.05rem; }
.errorx-example .errorx-example-dialog { margin: 1.1rem; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgb(31 34 39 / 12%), 0 8px 20px rgb(31 34 39 / 8%); padding: 1.25rem; color: var(--errorx-ink); }
.errorx-example .errorx-example-dialog > * { margin: 0 0 1rem; }
.errorx-example .errorx-example-dialog .errorx-example-dialog__title { position: relative; display: flex; align-items: center; min-height: 2.9rem; padding: 0 2rem 0 3.9rem; font-size: 1.3rem; line-height: 1.25; }
.errorx-example .errorx-example-dialog__title::before, .errorx-example .errorx-example-dialog__title::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); background: center / contain no-repeat; }
.errorx-example .errorx-example-dialog__title::before { left: 0; width: 2.9rem; height: 2.9rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23c70001'/%3E%3Crect x='10.4' y='4.8' width='3.2' height='9.6' rx='1.6' fill='%23fff'/%3E%3Ccircle cx='12' cy='18.1' r='1.8' fill='%23fff'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-dialog__title::after { right: 0.25rem; width: 1rem; height: 1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%231f2227' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-dialog .errorx-example-dialog__summary { margin-bottom: 0.2rem; font-size: 1.1rem; }
.errorx-example .errorx-example-dialog > p { line-height: 1.5; }
.errorx-example .errorx-example-help { position: relative; display: grid; grid-template-columns: 9.25rem minmax(0, 1fr); gap: 0.3rem 1rem; margin: 0 0 0.4rem; padding: 0.85rem 1rem 0.85rem 3.6rem; background: #ecf6ee; border-radius: 4px; font-size: 0.92rem; line-height: 1.45; }
.errorx-example .errorx-example-help::before { content: ""; position: absolute; left: 0.9rem; top: 0.8rem; width: 1.8rem; height: 1.8rem; background: center / contain no-repeat; }
.errorx-example .errorx-example-help--cause::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231f2227'/%3E%3Cpath d='M8.9 9.1a3.1 3.1 0 0 1 6.1.7c0 2.1-3 2.4-3 4.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.8' r='1.4' fill='%23fff'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-help--fix::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(45 12 12)' fill='%231f2227'%3E%3Cpath d='M10 .9A5 5 0 1 0 14 .9V5.5h-4z'/%3E%3Crect x='10.4' y='9' width='3.2' height='14' rx='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
.errorx-example .errorx-example-help--more::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2227' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 6.5 4.5 2 5v13.5c4.5-.5 8 0 10 1.5 2-1.5 5.5-2 10-1.5V5c-4.5-.5-8 0-10 1.5zM12 6.5V20'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-help--support::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2227' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2M19 19c0 1.6-1.6 2.5-4 2.5h-2'/%3E%3Crect x='3' y='13' width='4' height='6.5' rx='1.5' fill='%231f2227'/%3E%3Crect x='17' y='13' width='4' height='6.5' rx='1.5' fill='%231f2227'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-help > *, .errorx-example .errorx-example-help__body > * { margin: 0; }
.errorx-example .errorx-example-help__body > * + * { margin-top: 0.3rem; }
.errorx-example .errorx-example-help .errorx-example-help__label { font-weight: 700; font-size: 0.95rem; }
.errorx-example .errorx-example-help__body ul { padding-left: 1.2rem; }
.errorx-example .errorx-example-link { color: #1558b0; text-decoration: underline; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.errorx-example .errorx-example-link::after { content: ""; display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.35em; vertical-align: -0.1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231558b0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M18 14v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.errorx-example .errorx-example-contact { position: relative; padding-left: 1.6rem; }
.errorx-example .errorx-example-contact::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.15em; height: 1.15em; background: center / contain no-repeat; }
.errorx-example .errorx-example-contact--phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z' fill='%231f2227'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-contact--chat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5A10.5 10.5 0 0 0 2.9 17.2L1.5 22.5l5.4-1.4A10.5 10.5 0 1 0 12 1.5z' fill='%2325d366'/%3E%3Cpath transform='translate(6.5 6.5) scale(.46)' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z' fill='%23fff'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-dialog .errorx-example-dialog__button { width: fit-content; margin: 1rem 0 0 auto; padding: 0.55rem 2.1rem; border-radius: 4px; background: #057a27; color: #fff; font-weight: 700; }
.errorx-example + .errorx-example { padding-top: 0; }
.errorx-example .errorx-example-panel--dark { background: #110334; padding-bottom: 1.5rem; }
.errorx-example .errorx-example-card { margin-top: 1.25rem; padding: 1.5rem 1.75rem; border-radius: 10px; background: #5448fc; color: #fff; line-height: 1.45; }
.errorx-example .errorx-example-card > * { margin: 0; }
.errorx-example .errorx-example-card > * + * { margin-top: 0.9rem; }
.errorx-example .errorx-example-card .errorx-example-card__title { font-family: var(--errorx-font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.errorx-example .errorx-example-card .errorx-example-card__lead { font-weight: 700; font-size: 1.1rem; }
.errorx-example .errorx-example-help__body ol { padding-left: 1.4rem; }
.errorx-example .errorx-example-help--safe::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 3.5 4.8v6.1c0 5.3 3.6 10 8.5 11.6 4.9-1.6 8.5-6.3 8.5-11.6V4.8z' fill='%231f2227'/%3E%3Cpath d='M8 12.2l2.8 2.8 5.4-5.6' fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.errorx-example .errorx-example-contact--email::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='2' fill='%231f2227'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Wall cards: the thumbnail fills the top of the card, and the summary stops after four lines. */
.errorx-post-card .wp-block-post-featured-image { margin: -1.5rem -1.5rem 0.25rem; overflow: hidden; border-radius: calc(var(--errorx-radius) - 1px) calc(var(--errorx-radius) - 1px) 0 0; border-bottom: 1px solid var(--errorx-line); background: var(--errorx-bg-alt); }
.errorx-post-card .wp-block-post-featured-image a { display: block; }
.errorx-post-card .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* A card lifts a little under the pointer and its picture moves in. */
.errorx-post-card { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.errorx-post-card:hover, .errorx-post-card:focus-within { transform: translateY(-4px); }
.errorx-post-card:hover .wp-block-post-featured-image img, .errorx-post-card:focus-within .wp-block-post-featured-image img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .errorx-post-card, .errorx-post-card .wp-block-post-featured-image img { transition: none; transform: none !important; } }
.errorx-post-card .wp-block-post-excerpt__excerpt, .errorx-post-card .errorx-post-card__summary p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
/* The headline is the link; “Read the full report” is a quiet pointer under the summary. */
.errorx-post-card .wp-block-post-title a { color: var(--errorx-ink); text-decoration: none; }
.errorx-post-card .wp-block-post-title a:hover { color: var(--errorx-red); }
.errorx-post-card .wp-block-post-excerpt { flex: 1; color: var(--errorx-slate); }
.errorx-post-card .wp-block-post-excerpt__more-text { margin: 1rem 0 0; }
.errorx-post-card .wp-block-post-excerpt__more-link { font-family: var(--errorx-font-heading); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.errorx-post-card .wp-block-post-excerpt__more-link::after { content: "\2192"; display: inline-block; margin-left: 0.4em; font-size: 1.15em; line-height: 1; transition: transform 0.15s; }
.errorx-post-card .wp-block-post-excerpt__more-link:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .errorx-post-card .wp-block-post-excerpt__more-link::after { transition: none; } }
.errorx-post-card .errorx-post-card__meta { margin-block-start: 1.25rem; }
.wp-block-post-template.is-layout-grid { gap: 2rem; }
/* A report: the date line under the headline, then room before the write-up. */
.wp-block-errorx-report-details { font-size: 0.9rem; color: var(--errorx-muted); }
.wp-block-post-title + .wp-block-errorx-report-details { margin-block-start: 0.75rem; }
.wp-block-errorx-report-details + .wp-block-post-content { margin-block-start: 2.5rem; }
.wp-block-post-title + .wp-block-post-content { margin-block-start: 2.25rem; }
/* Search box on the search and not-found pages. */
.wp-block-search__label { font-family: var(--errorx-font-heading); font-weight: 700; font-size: 0.95rem; }
.wp-block-search__input { min-height: 3rem; padding: 0.65rem 0.85rem; border: 1px solid #8b919b; border-radius: var(--errorx-radius-sm); font: inherit; color: var(--errorx-ink); background: #fff; }
/* Page numbers under the wall. */
.wp-block-query-pagination { margin-block-start: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--errorx-line); font-family: var(--errorx-font-heading); font-weight: 700; }
.wp-block-query-pagination a { color: var(--errorx-ink); text-decoration: none; }
.wp-block-query-pagination a:hover { color: var(--errorx-red); }
.wp-block-query-pagination .page-numbers.current { color: var(--errorx-red); }
/* Blank error experience: company, optional image, then the error beside the better experience. */
.errorx-experience .errorx-experience__company { margin: 0; }
.errorx-experience .errorx-experience__image { margin: 1.5rem 0 0; }
/* The image box spans the same width as the two panels; a tall or small picture sits centred inside it. */
.errorx-experience .errorx-experience__image:has(img[src]) { overflow: hidden; border-radius: var(--errorx-radius); border: 1px solid var(--errorx-line); background: var(--errorx-bg-alt); line-height: 0; }
.errorx-experience .errorx-experience__image img[src] { display: block; width: 100%; height: auto; max-height: 51rem; object-fit: contain; }
.errorx-experience .errorx-example__after::before { top: 0.15rem; }
/* The two panels start and end level. */
.errorx-experience .errorx-example__compare { align-items: stretch; }
.errorx-experience .errorx-example__compare > .wp-block-column > .errorx-example-panel:only-child { height: 100%; box-sizing: border-box; }
@media (max-width: 781px) {
	.errorx-example .errorx-example__after::before { top: -3.25rem; left: 50%; transform: translateX(-50%) rotate(90deg); }
}
@media (max-width: 600px) {
	.errorx-example .errorx-example-help { grid-template-columns: minmax(0, 1fr); padding-left: 3.2rem; }
	.errorx-example .errorx-example-help::before { left: 0.75rem; }
	.errorx-example .errorx-example-dialog { margin-inline: 0.6rem; padding: 1rem; }
	.errorx-example .errorx-example-dialog .errorx-example-dialog__title { font-size: 1.2rem; padding-left: 3.4rem; }
	.errorx-example .errorx-example-dialog__title::before { width: 2.5rem; height: 2.5rem; }
}
/* The legacy PHP footer has no block layout classes. */
.errorx-brand-footer__card--legacy, .errorx-brand-footer__card--legacy .errorx-brand-footer__brand { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.errorx-brand-footer__card--legacy .errorx-brand-footer__brand { flex-wrap: nowrap; }
.errorx-brand-footer__card--legacy figure { margin: 0; }
