/**
 * SmartXpert Solution — brand and component styles.
 *
 * Organisation:
 *   1. Design tokens
 *   2. Base and accessibility primitives
 *   3. Layout helpers
 *   4. Components
 *   5. Responsive and motion preferences
 */

/* -------------------------------------------------------------------------
 * 1. Design tokens
 * ---------------------------------------------------------------------- */

:root {
	--sx-navy: #07235d;
	--sx-navy-deep: #05193f;
	--sx-blue: #145bff;
	--sx-blue-dark: #0f47cc;
	--sx-text: #172033;
	--sx-muted: #5f6b7a;
	--sx-background: #ffffff;
	--sx-surface: #f5f7fa;
	--sx-surface-alt: #eef2f7;
	--sx-border: #dde3ea;

	--sx-radius-sm: 8px;
	--sx-radius-md: 16px;
	--sx-radius-lg: 24px;

	--sx-shadow-soft: 0 12px 32px rgba(7, 35, 93, 0.08);
	--sx-shadow-raised: 0 20px 48px rgba(7, 35, 93, 0.12);

	--sx-transition: 200ms cubic-bezier(0.2, 0, 0.2, 1);

	--sx-content: 1200px;
	--sx-gutter: clamp(1.25rem, 5vw, 2.5rem);
}

/* -------------------------------------------------------------------------
 * 2. Base and accessibility primitives
 * ---------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	/* Keeps anchored targets clear of the sticky header. */
	scroll-padding-top: 6rem;
}

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

/* Never let a wide child force the page sideways. */
img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
	height: auto;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sx-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sx-skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--sx-navy);
	color: #fff;
	border-radius: 0 0 var(--sx-radius-sm) var(--sx-radius-sm);
	font-weight: 600;
	text-decoration: none;
	transition: top var(--sx-transition);
}

.sx-skip-link:focus {
	top: 0;
}

/* -------------------------------------------------------------------------
 * 3. Layout helpers
 * ---------------------------------------------------------------------- */

.sx-section {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.sx-section--surface {
	background: var(--sx-surface);
}

.sx-section--navy {
	background: var(--sx-navy);
	color: #e8eefc;
}

.sx-section--navy :is(h1, h2, h3, h4) {
	color: #fff;
}

.sx-shell {
	width: min(100% - (var(--sx-gutter) * 2), var(--sx-content));
	margin-inline: auto;
}

.sx-stack > * + * {
	margin-block-start: 1rem;
}

/* Section intro: left aligned per brand direction. */
.sx-intro {
	max-width: 46rem;
	margin-block-end: clamp(2rem, 4vw, 3rem);
}

.sx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sx-blue);
}

.sx-eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background: currentColor;
}

.sx-section--navy .sx-eyebrow {
	color: #7ea6ff;
}

.sx-lead {
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	line-height: 1.6;
	color: var(--sx-muted);
	max-width: 42rem;
}

.sx-section--navy .sx-lead {
	color: #c2d2f2;
}

/* -------------------------------------------------------------------------
 * 4. Components
 * ---------------------------------------------------------------------- */

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

.sx-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.875rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--sx-radius-sm);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sx-transition), border-color var(--sx-transition),
		color var(--sx-transition), transform var(--sx-transition);
}

.sx-button--primary {
	background: var(--sx-blue);
	border-color: var(--sx-blue);
	color: #fff;
}

.sx-button--primary:hover {
	background: var(--sx-navy);
	border-color: var(--sx-navy);
	color: #fff;
}

.sx-button--secondary {
	background: transparent;
	border-color: var(--sx-border);
	color: var(--sx-navy);
}

.sx-button--secondary:hover {
	border-color: var(--sx-navy);
	background: var(--sx-surface);
}

/*
 * Secondary buttons on any dark surface. `.sx-cta` is a navy panel that sits
 * inside a light section, so it needs the same treatment as `.sx-section--navy`
 * — without this the navy label is invisible against the navy panel.
 */
.sx-section--navy .sx-button--secondary,
.sx-cta .sx-button--secondary {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	background: transparent;
}

.sx-section--navy .sx-button--secondary:hover,
.sx-cta .sx-button--secondary:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.sx-button--whatsapp {
	background: #1f8f4e;
	border-color: #1f8f4e;
	color: #fff;
}

.sx-button--whatsapp:hover {
	background: #166b3a;
	border-color: #166b3a;
	color: #fff;
}

.sx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 2rem;
}

/* 4.2 Header and navigation --------------------------------------------- */

.sx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	border-block-end: 1px solid var(--sx-border);
}

.sx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: min(100% - (var(--sx-gutter) * 2), var(--sx-content));
	margin-inline: auto;
	min-height: 72px;
}

.sx-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	flex-shrink: 0;
}

.sx-brand__mark {
	flex-shrink: 0;
}

.sx-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.sx-brand__name {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--sx-navy);
}

.sx-brand__name b {
	color: var(--sx-blue);
	font-weight: 800;
}

.sx-brand__sub {
	margin-block-start: 2px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sx-muted);
}

.sx-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-inline-start: auto;
}

.sx-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sx-nav__list a {
	display: inline-block;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--sx-text);
	text-decoration: none;
	border-block-end: 2px solid transparent;
	transition: color var(--sx-transition), border-color var(--sx-transition);
}

.sx-nav__list a:hover,
.sx-nav__list .current-menu-item > a {
	color: var(--sx-blue);
	border-block-end-color: var(--sx-blue);
}

.sx-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--sx-border);
	border-radius: var(--sx-radius-sm);
	cursor: pointer;
	color: var(--sx-navy);
}

/* 4.3 Hero -------------------------------------------------------------- */

.sx-hero {
	position: relative;
	overflow: hidden;
	background: var(--sx-background);
	padding-block: clamp(3.5rem, 9vw, 7rem);
}

/* Restrained engineering grid, not a circuit-board cliché. */
.sx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(7, 35, 93, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(7, 35, 93, 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 20%, transparent 75%);
	pointer-events: none;
}

.sx-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	width: min(100% - (var(--sx-gutter) * 2), var(--sx-content));
	margin-inline: auto;
}

.sx-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: var(--sx-navy);
}

.sx-hero__title em {
	font-style: normal;
	color: var(--sx-blue);
}

.sx-hero__text {
	margin-block-start: 1.5rem;
	font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
	line-height: 1.6;
	color: var(--sx-muted);
	max-width: 34rem;
}

.sx-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-block-start: 2rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--sx-border);
	list-style: none;
	padding-inline: 0;
}

.sx-hero__meta li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--sx-muted);
}

.sx-hero__meta svg {
	color: var(--sx-blue);
	flex-shrink: 0;
}

/* 4.4 System diagram (hero visual) -------------------------------------- */

.sx-diagram {
	width: 100%;
	height: auto;
	border-radius: var(--sx-radius-lg);
	background: var(--sx-surface);
	border: 1px solid var(--sx-border);
	box-shadow: var(--sx-shadow-soft);
	padding: clamp(1rem, 3vw, 1.75rem);
}

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

.sx-grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.sx-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.sx-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.sx-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.sx-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.25rem, 3vw, 1.875rem);
	background: var(--sx-background);
	border: 1px solid var(--sx-border);
	border-radius: var(--sx-radius-md);
	transition: border-color var(--sx-transition), box-shadow var(--sx-transition),
		transform var(--sx-transition);
}

.sx-card:hover {
	border-color: rgba(20, 91, 255, 0.4);
	box-shadow: var(--sx-shadow-soft);
	transform: translateY(-2px);
}

.sx-section--surface .sx-card {
	background: var(--sx-background);
}

.sx-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--sx-radius-sm);
	background: rgba(20, 91, 255, 0.08);
	color: var(--sx-blue);
	flex-shrink: 0;
}

.sx-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sx-navy);
}

.sx-card__title a {
	color: inherit;
	text-decoration: none;
}

.sx-card__title a:hover {
	color: var(--sx-blue);
}

.sx-card__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--sx-muted);
}

.sx-card__list {
	margin: 0.25rem 0 0;
	padding-inline-start: 1.125rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--sx-muted);
}

.sx-card__list li::marker {
	color: var(--sx-blue);
}

.sx-card__link {
	margin-block-start: auto;
	padding-block-start: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--sx-blue);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.sx-card__link:hover {
	gap: 0.625rem;
	color: var(--sx-navy);
}

.sx-card__link svg {
	transition: transform var(--sx-transition);
}

/* Draft marker for unverified case-study content. */
.sx-badge-draft {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	background: #fdf3d8;
	border: 1px solid #e8c96a;
	color: #6b4e00;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* 4.6 Process timeline --------------------------------------------------- */

.sx-process {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	counter-reset: sx-step;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sx-process__item {
	position: relative;
	counter-increment: sx-step;
	padding-block-start: 2.75rem;
}

.sx-process__item::before {
	content: counter(sx-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--sx-blue);
}

/* Connector rail sits above the number row. */
.sx-process__item::after {
	content: "";
	position: absolute;
	top: 1.75rem;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--sx-border);
}

.sx-process__title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--sx-navy);
}

.sx-process__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--sx-muted);
}

/* 4.7 Capability grid ---------------------------------------------------- */

.sx-capabilities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 1px;
	background: var(--sx-border);
	border: 1px solid var(--sx-border);
	border-radius: var(--sx-radius-md);
	overflow: hidden;
}

.sx-capabilities__item {
	background: var(--sx-background);
	padding: clamp(1.125rem, 2.5vw, 1.5rem);
}

.sx-capabilities__label {
	margin: 0 0 0.375rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sx-navy);
}

.sx-capabilities__text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--sx-muted);
}

/* 4.8 CTA banner --------------------------------------------------------- */

.sx-cta {
	position: relative;
	overflow: hidden;
	background: var(--sx-navy);
	border-radius: var(--sx-radius-lg);
	padding: clamp(2rem, 5vw, 3.5rem);
	color: #e8eefc;
}

/* The X motif, used as a restrained background device. */
.sx-cta::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -6%;
	width: 22rem;
	height: 22rem;
	transform: translateY(-50%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 12 L88 88 M88 12 L12 88' stroke='%23145BFF' stroke-width='9' stroke-linecap='square' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.16;
	pointer-events: none;
}

.sx-cta__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.15;
	color: #fff;
	max-width: 22ch;
}

.sx-cta__text {
	margin-block-start: 1rem;
	max-width: 40rem;
	color: #c2d2f2;
	line-height: 1.65;
	position: relative;
}

/* 4.9 Forms -------------------------------------------------------------- */

.sx-form-wrap {
	max-width: 46rem;
}

.sx-form {
	margin-block-start: 1.5rem;
}

.sx-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.25rem;
}

.sx-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin: 0;
}

.sx-field--full {
	grid-column: 1 / -1;
}

.sx-field__label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--sx-navy);
}

.sx-field__required {
	color: #b32d2e;
	margin-inline-start: 2px;
}

.sx-field__input {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.875rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--sx-text);
	background: var(--sx-background);
	border: 1px solid var(--sx-border);
	border-radius: var(--sx-radius-sm);
	transition: border-color var(--sx-transition), box-shadow var(--sx-transition);
}

.sx-field__input:focus {
	border-color: var(--sx-blue);
	box-shadow: 0 0 0 3px rgba(20, 91, 255, 0.15);
	outline: none;
}

.sx-field__input--textarea {
	min-height: 9rem;
	resize: vertical;
	line-height: 1.6;
}

.sx-field__input--error {
	border-color: #b32d2e;
}

.sx-field__help {
	font-size: 0.8125rem;
	color: var(--sx-muted);
	line-height: 1.5;
}

.sx-field__error {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #b32d2e;
}

.sx-field__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--sx-text);
	cursor: pointer;
}

.sx-field__consent input {
	width: 20px;
	height: 20px;
	margin-block-start: 2px;
	flex-shrink: 0;
	accent-color: var(--sx-blue);
}

.sx-form__actions {
	margin-block-start: 1.75rem;
}

/* Honeypot: removed from the accessibility tree and off-screen. */
.sx-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 4.10 Alerts ------------------------------------------------------------ */

.sx-alert {
	padding: 1.125rem 1.25rem;
	border-radius: var(--sx-radius-sm);
	border-inline-start: 4px solid;
	margin-block-end: 1.5rem;
}

.sx-alert__title {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
}

.sx-alert__list {
	margin: 0.5rem 0 0;
	padding-inline-start: 1.125rem;
	font-size: 0.9375rem;
}

.sx-alert--success {
	background: #eaf6ef;
	border-color: #1f8f4e;
}

.sx-alert--success .sx-alert__title {
	color: #146034;
}

.sx-alert--error {
	background: #fdecec;
	border-color: #b32d2e;
}

.sx-alert--error .sx-alert__title {
	color: #8a1f20;
}

/* 4.11 Legal / verification block ---------------------------------------- */

.sx-legal {
	padding-block-start: 2rem;
	margin-block-start: 2rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.16);
}

.sx-legal__heading {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8fb0f5;
}

.sx-legal__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1rem 2rem;
	margin: 0;
}

.sx-legal__row {
	margin: 0;
}

.sx-legal__row dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8fb0f5;
	margin-block-end: 0.25rem;
}

.sx-legal__row dd {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #dde7fb;
}

.sx-legal__row dd a {
	color: #dde7fb;
	text-decoration: underline;
}

.sx-legal__row dd a:hover {
	color: #fff;
}

.sx-legal__address {
	font-style: normal;
}

/* 4.12 Contact details --------------------------------------------------- */

.sx-contact-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1.75rem;
}

.sx-contact-details__label {
	margin: 0 0 0.375rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sx-blue);
}

.sx-contact-details__value {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	font-style: normal;
	color: var(--sx-text);
}

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

.sx-footer {
	background: var(--sx-navy-deep);
	color: #c2d2f2;
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.sx-footer a {
	color: #c2d2f2;
}

.sx-footer__top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 2.5rem;
}

.sx-footer__title {
	margin: 0 0 0.875rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8fb0f5;
}

.sx-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.sx-footer__list a {
	font-size: 0.9375rem;
	text-decoration: none;
}

.sx-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
}

.sx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	margin-block-start: 2.5rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.875rem;
}

/* 4.14 FAQ accordion ----------------------------------------------------- */

.sx-faq {
	border-block-start: 1px solid var(--sx-border);
}

.sx-faq__item {
	border-block-end: 1px solid var(--sx-border);
}

.sx-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--sx-navy);
	cursor: pointer;
	list-style: none;
	min-height: 48px;
}

.sx-faq__item summary::-webkit-details-marker {
	display: none;
}

.sx-faq__item summary::after {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--sx-blue);
	border-bottom: 2px solid var(--sx-blue);
	transform: rotate(45deg);
	transition: transform var(--sx-transition);
	flex-shrink: 0;
}

.sx-faq__item[open] summary::after {
	transform: rotate(-135deg);
}

.sx-faq__answer {
	padding-block-end: 1.25rem;
	margin: 0;
	color: var(--sx-muted);
	line-height: 1.65;
	max-width: 52rem;
}

/* 4.15 Post / archive cards ---------------------------------------------- */

.sx-post-card__meta {
	font-size: 0.8125rem;
	color: var(--sx-muted);
	margin: 0;
}

.sx-post-card__thumb {
	display: block;
	border-radius: var(--sx-radius-sm);
	overflow: hidden;
	margin-block-end: 0.25rem;
	aspect-ratio: 16 / 9;
	background: var(--sx-surface);
}

.sx-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 4.16 Empty state ------------------------------------------------------- */

.sx-empty {
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 1px dashed var(--sx-border);
	border-radius: var(--sx-radius-md);
	background: var(--sx-surface);
	text-align: center;
}

.sx-empty__title {
	margin: 0 0 0.5rem;
	color: var(--sx-navy);
}

.sx-empty__text {
	margin: 0 auto;
	max-width: 34rem;
	color: var(--sx-muted);
}

/* 4.17 Breadcrumbs ------------------------------------------------------- */

.sx-breadcrumbs {
	font-size: 0.875rem;
	color: var(--sx-muted);
	padding-block: 1rem;
}

.sx-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sx-breadcrumbs li + li::before {
	content: "/";
	margin-inline-end: 0.5rem;
	color: var(--sx-border);
}

/* Tables must never break the layout. */
.sx-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------------------------
 * 5. Responsive and motion preferences
 * ---------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.sx-hero__inner {
		grid-template-columns: 1fr;
	}

	/* Diagram follows the copy on narrow screens. */
	.sx-hero__visual {
		order: 2;
	}
}

@media (max-width: 860px) {
	.sx-nav__toggle {
		display: inline-flex;
	}

	.sx-nav {
		position: fixed;
		inset: 72px 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem var(--sx-gutter) 2rem;
		background: var(--sx-background);
		border-block-end: 1px solid var(--sx-border);
		box-shadow: var(--sx-shadow-soft);
		max-height: calc(100dvh - 72px);
		overflow-y: auto;
		/* Hidden by default; toggled by the [hidden] attribute in JS. */
	}

	.sx-nav[hidden] {
		display: none;
	}

	.sx-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sx-nav__list a {
		display: block;
		padding: 0.875rem 0;
		min-height: 48px;
		border-block-end: 1px solid var(--sx-border);
	}

	.sx-nav__list a:hover,
	.sx-nav__list .current-menu-item > a {
		border-block-end-color: var(--sx-border);
	}

	.sx-nav .sx-button {
		margin-block-start: 1rem;
		width: 100%;
	}

	.sx-process__item::after {
		display: none;
	}
}

@media (min-width: 861px) {
	/* Desktop navigation is always visible regardless of the toggle state. */
	.sx-nav[hidden] {
		display: flex;
	}
}

@media (max-width: 480px) {
	.sx-actions .sx-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.sx-card:hover {
		transform: none;
	}
}

@media print {
	.sx-header,
	.sx-nav,
	.sx-cta,
	.sx-form-wrap {
		display: none;
	}
}
