/**
 * StartupXpress — component styles.
 *
 * Tokens come from theme.json (var(--wp--preset--*)). This file adds the
 * pieces theme.json cannot express: the paper/file/stamp components,
 * responsive navigation, focus states and the small amount of motion.
 * Mobile first. No external resources.
 */

:root {
	--sx-ink: var(--wp--preset--color--ink-violet, #33206b);
	--sx-night: var(--wp--preset--color--night-violet, #221448);
	--sx-violet: var(--wp--preset--color--violet, #5a37a8);
	--sx-lilac: var(--wp--preset--color--lilac, #ece6f8);
	--sx-marigold: var(--wp--preset--color--marigold, #f2a516);
	--sx-marigold-soft: var(--wp--preset--color--marigold-soft, #fcefcf);
	--sx-green: var(--wp--preset--color--green-ink, #1d6a4e);
	--sx-green-soft: var(--wp--preset--color--green-soft, #e2f0e8);
	--sx-red: var(--wp--preset--color--tape-red, #b8322a);
	--sx-manila: var(--wp--preset--color--manila, #ebd6a6);
	--sx-paper: var(--wp--preset--color--paper, #f7f5fb);
	--sx-sheet: var(--wp--preset--color--sheet, #fff);
	--sx-text: var(--wp--preset--color--text, #2b2440);
	--sx-muted: var(--wp--preset--color--muted, #5f5873);
	--sx-rule: var(--wp--preset--color--rule, #e1daee);
	--sx-display: var(--wp--preset--font-family--display, sans-serif);
	--sx-radius: 6px;
	--sx-radius-lg: 12px;
	--sx-sheet-shadow: var(--wp--preset--shadow--sheet, 0 18px 40px -22px rgba(51, 32, 107, 0.35));
	--sx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--sx-header-offset: 6.5rem;
}

/* ---------- Base ---------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--sx-header-offset);
	overflow-x: clip;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-stretch: 87.5%;
	text-wrap: balance;
}

p, li {
	text-wrap: pretty;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

a:hover {
	text-decoration-thickness: 2px;
}

::selection {
	background: var(--sx-marigold);
	color: var(--sx-ink);
}

img {
	height: auto;
	max-width: 100%;
}

/* Visible focus on every interactive element. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sx-violet);
	outline-offset: 3px;
	border-radius: 2px;
}

.sx-dark :where(a, button, input, select, textarea, summary):focus-visible,
.has-night-violet-background-color :where(a, button, summary):focus-visible,
.has-ink-violet-background-color :where(a, button, summary):focus-visible {
	outline-color: var(--sx-marigold);
}

.screen-reader-text:focus {
	background: var(--sx-sheet);
	color: var(--sx-ink);
	padding: 0.75rem 1rem;
	z-index: 100000;
}

/* Keep long words (GSTIN, URLs) from causing horizontal scroll. */
.entry-content,
.wp-block-post-content {
	overflow-wrap: break-word;
}

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

.wp-block-button__link,
.wp-element-button {
	transition: transform 0.15s var(--sx-ease), box-shadow 0.15s var(--sx-ease), background-color 0.15s ease, color 0.15s ease;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	font-stretch: 87.5%;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 0 var(--sx-ink);
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: translate(3px, 3px);
	box-shadow: 0 0 0 0 var(--sx-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--sx-ink);
	border: 2px solid var(--sx-ink);
	box-shadow: none;
	padding: 0.8rem 1.4rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--sx-lilac);
	box-shadow: none;
	transform: none;
}

.wp-block-button.is-style-quiet > .wp-block-button__link {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--sx-violet);
	padding: 0.5rem 0;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.wp-block-button.is-style-quiet > .wp-block-button__link:hover {
	transform: none;
	box-shadow: none;
	color: var(--sx-ink);
}

/* Buttons sitting on dark violet. */
.sx-dark .wp-block-button__link,
.has-night-violet-background-color .wp-block-button__link,
.has-ink-violet-background-color .wp-block-button__link {
	box-shadow: 4px 4px 0 0 var(--sx-marigold-soft);
	border-color: var(--sx-marigold-soft);
}

.sx-dark .wp-block-button__link:hover,
.has-night-violet-background-color .wp-block-button__link:hover,
.has-ink-violet-background-color .wp-block-button__link:hover {
	box-shadow: 6px 6px 0 0 var(--sx-marigold-soft);
}

.sx-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.has-night-violet-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
	box-shadow: none;
}

.sx-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-night-violet-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ---------- Header ---------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

.sx-topbar {
	font-size: 0.8125rem;
	line-height: 1.4;
}

.sx-topbar p {
	margin: 0;
}

.sx-topbar a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

.sx-topbar a:hover {
	color: var(--sx-marigold);
	text-decoration: underline;
}

.sx-topbar__links {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.25rem;
}

.sx-topbar__note {
	color: #d9d0ef;
}

@media (max-width: 781px) {
	.sx-topbar__note {
		display: none;
	}

	.sx-topbar > .wp-block-group {
		justify-content: center !important;
	}
}

.sx-masthead {
	background: color-mix(in srgb, var(--sx-paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--sx-rule);
}

.sx-brand {
	gap: 0.6rem !important;
	flex-shrink: 0;
}

.sx-brand .wp-block-site-title {
	font-stretch: 87.5%;
	line-height: 1;
}

.sx-brand .wp-block-site-title a:hover {
	color: var(--sx-violet);
}

.sx-logo-fallback img {
	display: block;
}

.sx-masthead .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--sx-ink);
	text-decoration: none;
	padding: 0.35rem 0;
	position: relative;
	font-stretch: 87.5%;
}

.sx-masthead .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	background: var(--sx-marigold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s var(--sx-ease);
}

.sx-masthead .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.sx-masthead .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.sx-masthead .wp-block-navigation [aria-current="page"]::after {
	transform: scaleX(1);
}

.sx-masthead .sx-header-cta .wp-block-button__link {
	padding: 0.55rem 1rem;
	min-height: 44px;
	font-size: 1rem;
	box-shadow: 3px 3px 0 0 var(--sx-ink);
}

/* Desktop menu needs room for seven items; below 1240px use the overlay menu. */
@media (min-width: 600px) and (max-width: 1239px) {
	.sx-masthead .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.sx-masthead .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.sx-masthead .wp-block-navigation__responsive-container-open,
.sx-masthead .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--sx-ink);
	border-radius: var(--sx-radius);
	color: var(--sx-ink);
	background: var(--sx-sheet);
}

.sx-masthead .wp-block-navigation__responsive-container-close {
	display: flex;
	top: 0.25rem;
	right: 0.25rem;
}

.sx-masthead .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(1rem, 4vw, 2.5rem);
	background-color: var(--sx-paper) !important;
}

.sx-masthead .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem !important;
}

.sx-masthead .is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
}

.sx-masthead .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--sx-rule);
}

.sx-masthead .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.85rem 0 !important;
	font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem);
}

.sx-masthead .is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

@media (max-width: 420px) {
	.sx-masthead .sx-header-cta {
		display: none;
	}
}

@media (max-width: 360px) {
	.sx-brand .wp-block-site-title {
		font-size: 1.25rem !important;
	}
}

/* ---------- Shared section helpers ---------- */

.sx-ruled {
	position: relative;
	isolation: isolate;
}

.sx-ruled::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(90, 55, 168, 0.075) 35px 36px);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.sx-section-head {
	max-width: 46rem;
}

.sx-section-head > * + * {
	margin-top: 0.75rem;
}

.sx-lead {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--sx-muted);
	max-width: 40rem;
}

.sx-dark {
	color: #ebe6f6;
}

.sx-dark :where(h1, h2, h3, h4) {
	color: #fff;
}

.sx-dark a:where(:not(.wp-element-button)) {
	color: #fff;
}

.sx-dark a:where(:not(.wp-element-button)):hover {
	color: var(--sx-marigold);
}

.sx-dark .sx-lead {
	color: #d9d0ef;
}

/* Tick and cross lists. */
.is-style-ticks,
.sx-crosses {
	list-style: none;
	padding-left: 0;
}

.is-style-ticks > li,
.sx-crosses > li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.6rem;
}

.is-style-ticks > li::before,
.sx-crosses > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--sx-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231D6A4E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.sx-crosses > li::before {
	background: #f8e3e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7m0-7l-7 7' fill='none' stroke='%23B8322A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Document checklist list style. */
.is-style-documents {
	list-style: none;
	padding-left: 0;
}

.is-style-documents > li {
	position: relative;
	padding: 0.55rem 0 0.55rem 2.1rem;
	border-bottom: 1px dashed var(--sx-rule);
}

.is-style-documents > li:last-child {
	border-bottom: 0;
}

.is-style-documents > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7rem;
	width: 1.3rem;
	height: 1.3rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A37A8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Paper sheet and manila file group styles. */
.is-style-sheet,
.sx-sheet {
	background: var(--sx-sheet);
	border: 1px solid var(--sx-rule);
	border-radius: var(--sx-radius);
	box-shadow: var(--sx-sheet-shadow);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.is-style-file {
	background: var(--sx-manila);
	border-radius: 4px var(--sx-radius-lg) var(--sx-radius-lg) var(--sx-radius-lg);
	padding: clamp(1.25rem, 3vw, 2rem);
	position: relative;
	margin-top: 1.6rem;
}

.is-style-file::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1.4rem;
	width: 40%;
	height: 1.5rem;
	background: var(--sx-manila);
	border-radius: 10px 14px 0 0;
}

/* Important note paragraph style. */
.is-style-note,
.sx-note {
	background: var(--sx-sheet);
	border: 1px solid var(--sx-rule);
	border-left: 5px solid var(--sx-red);
	border-radius: 0 var(--sx-radius) var(--sx-radius) 0;
	padding: 1rem 1.25rem;
	color: var(--sx-text);
}

/* Rubber stamp paragraph style. */
.is-style-stamp,
.sx-stamp {
	display: inline-block;
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.15;
	color: var(--sx-violet);
	border: 3px double var(--sx-violet);
	border-radius: 8px;
	padding: 0.5rem 0.9rem;
	transform: rotate(-7deg);
	opacity: 0.9;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.sx-hero {
	overflow-x: clip;
}

.sx-hero__title {
	font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.6rem) !important;
	line-height: 1 !important;
	letter-spacing: -0.02em;
	max-width: 16ch;
	overflow-wrap: break-word;
}

/* Stack the hero earlier than core columns do, so the headline keeps its size on tablets. */
@media (max-width: 1023px) {
	.sx-hero .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.sx-hero .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.sx-hero .sx-file {
		max-width: 34rem;
	}
}

.sx-hero .sx-lead {
	margin-top: 1.25rem;
}

.sx-facts {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-weight: 600;
	color: var(--sx-ink);
}

.sx-facts > li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.sx-facts > li::before {
	content: "";
	width: 0.6rem;
	height: 0.6rem;
	background: var(--sx-marigold);
	border: 2px solid var(--sx-ink);
	border-radius: 2px;
	transform: rotate(45deg);
	flex-shrink: 0;
}

/* The manila file in the hero. */
.sx-file {
	position: relative;
	background: var(--sx-manila);
	border-radius: 4px 16px 16px 16px;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	margin-top: 2.2rem;
	box-shadow: 0 30px 60px -30px rgba(34, 20, 72, 0.45);
}

.sx-file::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1.9rem;
	width: 46%;
	height: 2rem;
	background: var(--sx-manila);
	border-radius: 10px 18px 0 0;
}

.sx-file__tab {
	position: absolute;
	top: -1.55rem;
	left: 1.1rem;
	margin: 0 !important;
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--sx-ink);
	z-index: 1;
}

.sx-file__sheet {
	position: relative;
	background: var(--sx-sheet);
	border-radius: 4px;
	padding: clamp(1.1rem, 2.5vw, 1.6rem);
	box-shadow: 0 1px 0 rgba(34, 20, 72, 0.08), 0 10px 24px -14px rgba(34, 20, 72, 0.4);
	background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(90, 55, 168, 0.07) 31px 32px);
	background-position: 0 3.2rem;
}

.sx-file__sheet::after {
	content: "";
	position: absolute;
	inset: 8px -6px -6px 8px;
	background: #fbfaf6;
	border-radius: 4px;
	z-index: -1;
	transform: rotate(1.4deg);
	box-shadow: 0 6px 18px -12px rgba(34, 20, 72, 0.5);
}

.sx-file__title {
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: 1.375rem;
	color: var(--sx-ink);
	margin: 0 !important;
}

.sx-file__sub {
	color: var(--sx-muted);
	font-size: 0.9375rem;
	margin-top: 0.15rem !important;
}

.sx-file__list {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.sx-file__list > li {
	position: relative;
	padding: 0.35rem 0 0.35rem 2.1rem;
	min-height: 32px;
	line-height: 1.4;
}

.sx-file__list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35rem;
	width: 1.3rem;
	height: 1.3rem;
	border: 2px solid var(--sx-ink);
	border-radius: 4px;
	background: var(--sx-sheet);
}

.sx-file__list > li::after {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.05rem;
	width: 1.5rem;
	height: 1.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L21 4' fill='none' stroke='%231D6A4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sx-file__foot {
	margin-top: 1rem !important;
	font-size: 0.875rem;
	color: var(--sx-muted);
}

.sx-file .sx-stamp {
	position: absolute;
	right: 0.9rem;
	top: -0.7rem;
	font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1rem);
	max-width: 11rem;
	text-align: center;
	background: rgba(255, 255, 255, 0.35);
	margin: 0 !important;
	pointer-events: none;
}

/* Signature motion: the checklist ticks off, then the stamp lands. */
@media (prefers-reduced-motion: no-preference) {
	.sx-file {
		animation: sx-file-in 0.7s var(--sx-ease) both, sx-thud 0.25s ease-out 2.45s forwards;
	}

	.sx-file__list > li::after {
		animation: sx-tick 0.35s var(--sx-ease) both;
	}

	.sx-file__list > li:nth-child(1)::after { animation-delay: 0.7s; }
	.sx-file__list > li:nth-child(2)::after { animation-delay: 0.95s; }
	.sx-file__list > li:nth-child(3)::after { animation-delay: 1.2s; }
	.sx-file__list > li:nth-child(4)::after { animation-delay: 1.45s; }
	.sx-file__list > li:nth-child(5)::after { animation-delay: 1.7s; }
	.sx-file__list > li:nth-child(6)::after { animation-delay: 1.95s; }

	.sx-file .sx-stamp {
		animation: sx-stamp 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 2.2s both;
	}
}

@keyframes sx-file-in {
	from {
		opacity: 0;
		transform: translateY(18px) rotate(-1.5deg);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sx-tick {
	from {
		opacity: 0;
		transform: scale(0.2) rotate(-20deg);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sx-stamp {
	0% {
		opacity: 0;
		transform: rotate(-7deg) scale(1.45);
	}
	70% {
		opacity: 0.92;
		transform: rotate(-7deg) scale(0.95);
	}
	100% {
		opacity: 0.9;
		transform: rotate(-7deg) scale(1);
	}
}

@keyframes sx-thud {
	0% { transform: translateY(0); }
	40% { transform: translateY(2px); }
	100% { transform: translateY(0); }
}

/* ---------- Service index cards ---------- */

.sx-cards {
	row-gap: 2.75rem !important;
}

.sx-card {
	position: relative;
	background: var(--sx-sheet);
	border: 1px solid var(--sx-rule);
	border-radius: 2px var(--sx-radius-lg) var(--sx-radius-lg) var(--sx-radius-lg);
	padding: 1.5rem 1.4rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sx-card > * {
	margin: 0 !important;
}

.sx-card:hover,
.sx-card:focus-within {
	border-color: var(--sx-violet);
	box-shadow: var(--sx-sheet-shadow);
}

.sx-card__tab {
	position: absolute;
	top: -1.85rem;
	left: -1px;
	padding: 0.3rem 0.9rem 0.25rem;
	border-radius: 8px 12px 0 0;
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--sx-ink);
	background: var(--sx-marigold);
	transition: transform 0.2s var(--sx-ease);
}

.sx-card:hover .sx-card__tab,
.sx-card:focus-within .sx-card__tab {
	transform: translateY(-4px);
}

.sx-tab--manage { background: #b9dcc8; }
.sx-tab--licence { background: #d6caf2; }
.sx-tab--firms {
	background: var(--sx-ink);
	color: #fff;
}

.sx-card__icon img {
	width: 44px;
	height: 44px;
}

.sx-card h3 {
	font-size: 1.5rem;
}

.sx-card p {
	color: var(--sx-muted);
	font-size: 0.975rem;
}

.sx-card .sx-card__link {
	margin-top: auto !important;
	padding-top: 0.4rem;
	font-weight: 600;
}

.sx-card .sx-card__link a {
	color: var(--sx-violet);
}

/* Whole card is clickable through the card's own link. */
.sx-card .sx-card__link a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* ---------- Requirement pathways ---------- */

.sx-path {
	position: relative;
	border-radius: var(--sx-radius-lg);
	padding: 2.25rem clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
	border: 2px solid var(--sx-ink);
	height: 100%;
}

.sx-path::before {
	content: "";
	position: absolute;
	top: 0.9rem;
	left: 50%;
	width: 3.5rem;
	height: 0.45rem;
	margin-left: -1.75rem;
	border-radius: 999px;
	background: var(--sx-ink);
	opacity: 0.85;
}

.sx-path--start { background: var(--sx-marigold-soft); }
.sx-path--manage { background: var(--sx-green-soft); }
.sx-path--licence { background: var(--sx-lilac); }

.sx-path h3 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

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

.sx-path__links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.35rem 0.85rem;
	background: var(--sx-sheet);
	border: 1px solid rgba(51, 32, 107, 0.25);
	border-radius: 999px;
	color: var(--sx-ink);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sx-path__links a:hover {
	background: var(--sx-ink);
	border-color: var(--sx-ink);
	color: #fff;
}

/* ---------- Process steps (a real sequence, so numbered) ---------- */

.sx-steps {
	position: relative;
	counter-reset: sx-step;
}

.sx-step {
	position: relative;
}

.sx-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	border: 3px double var(--sx-violet);
	background: var(--sx-paper);
	color: var(--sx-violet);
	font-family: var(--sx-display);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1;
	margin: 0 0 0.85rem !important;
	position: relative;
	z-index: 1;
}

.sx-step h3 {
	font-size: 1.375rem;
	margin-bottom: 0.4rem;
}

.sx-step p:not(.sx-step__num) {
	color: var(--sx-muted);
	margin-top: 0;
}

@media (min-width: 782px) {
	.sx-steps::before {
		content: "";
		position: absolute;
		left: 1.6rem;
		right: 10%;
		top: 1.6rem;
		border-top: 2px dashed rgba(90, 55, 168, 0.45);
		transform-origin: left center;
	}

	@supports (animation-timeline: view()) {
		@media (prefers-reduced-motion: no-preference) {
			.sx-steps::before {
				animation: sx-draw linear both;
				animation-timeline: view();
				animation-range: entry 15% cover 45%;
			}
		}
	}
}

@keyframes sx-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* ---------- Commitments and is / is-not ---------- */

.sx-commit-item {
	border-left: 4px solid var(--sx-marigold);
	padding-left: 1rem;
}

.sx-commit-item h3 {
	font-size: 1.3125rem;
	margin-bottom: 0.25rem;
}

.sx-commit-item p {
	color: var(--sx-muted);
	margin-top: 0;
	font-size: 0.975rem;
}

.sx-isnot {
	gap: 0 !important;
	border: 2px solid var(--sx-ink);
	border-radius: var(--sx-radius-lg);
	overflow: hidden;
	background: var(--sx-sheet);
}

.sx-isnot > .wp-block-column {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.sx-isnot > .wp-block-column + .wp-block-column {
	background: #fbf7f6;
	border-top: 2px dashed var(--sx-rule);
}

@media (min-width: 782px) {
	.sx-isnot > .wp-block-column + .wp-block-column {
		border-top: 0;
		border-left: 2px dashed var(--sx-rule);
	}
}

.sx-isnot h3 {
	font-size: 1.5rem;
}

/* ---------- FAQ ---------- */

.sx-faq-list {
	border-top: 2px solid var(--sx-ink);
}

.wp-block-details.sx-faq__item {
	border-bottom: 1px solid var(--sx-rule);
	padding: 0;
	interpolate-size: allow-keywords;
}

.wp-block-details.sx-faq__item summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 1.1rem 3rem 1.1rem 0;
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.3;
	color: var(--sx-ink);
	min-height: 48px;
}

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

.wp-block-details.sx-faq__item summary::after {
	content: "";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: -0.875rem;
	border-radius: 50%;
	border: 2px solid var(--sx-ink);
	background: var(--sx-sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2333206B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
	transition: transform 0.25s var(--sx-ease), background-color 0.2s ease;
}

.wp-block-details.sx-faq__item[open] summary::after {
	transform: rotate(45deg);
	background-color: var(--sx-marigold);
}

.wp-block-details.sx-faq__item summary:hover {
	color: var(--sx-violet);
}

.wp-block-details.sx-faq__item > :not(summary) {
	margin: 0 0 1.1rem;
	color: var(--sx-text);
	max-width: 62ch;
}

.wp-block-details.sx-faq__item::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size 0.3s var(--sx-ease), content-visibility 0.3s allow-discrete;
}

.wp-block-details.sx-faq__item[open]::details-content {
	block-size: auto;
}

@media (min-width: 782px) {
	.sx-faq__aside {
		position: sticky;
		top: calc(var(--sx-header-offset) + 1rem);
		align-self: flex-start;
	}
}

/* ---------- Posts: cards, archive, single ---------- */

.sx-post-card {
	background: var(--sx-sheet);
	border: 1px solid var(--sx-rule);
	border-radius: var(--sx-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sx-post-card:hover,
.sx-post-card:focus-within {
	border-color: var(--sx-violet);
	box-shadow: var(--sx-sheet-shadow);
}

.sx-post-card .wp-block-post-featured-image {
	margin: 0;
}

.sx-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.sx-post-card__body {
	padding: 1.25rem 1.35rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.sx-post-card__body > * {
	margin: 0 !important;
}

.sx-post-card .wp-block-post-title {
	font-size: 1.375rem;
	line-height: 1.2;
}

.sx-post-card .wp-block-post-title a:hover {
	color: var(--sx-violet);
	text-decoration: underline;
}

.sx-post-card .wp-block-post-excerpt__excerpt {
	color: var(--sx-muted);
	font-size: 0.975rem;
	margin: 0;
}

.wp-block-post-terms a {
	text-decoration: none;
	color: var(--sx-green);
}

.wp-block-post-terms a:hover {
	text-decoration: underline;
}

.wp-block-query-pagination {
	gap: 0.5rem;
	font-weight: 600;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--sx-rule);
	border-radius: var(--sx-radius);
	background: var(--sx-sheet);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--sx-ink);
	color: #fff;
	border-color: var(--sx-ink);
}

.sx-article .wp-block-post-content > * + h2 {
	margin-top: 2.5rem;
}

.sx-article .wp-block-post-content > * + h3 {
	margin-top: 2rem;
}

.sx-article .wp-block-post-content :where(ul, ol) li + li {
	margin-top: 0.35rem;
}

.sx-article .wp-block-post-content table,
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	background: var(--sx-sheet);
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--sx-rule);
	padding: 0.65rem 0.8rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	background: var(--sx-lilac);
	color: var(--sx-ink);
	font-weight: 700;
}

.sx-meta {
	color: var(--sx-muted);
	font-size: 0.9375rem;
	gap: 0.35rem 1rem !important;
}

.sx-meta > * {
	margin: 0 !important;
}

.sx-aside {
	position: sticky;
	top: calc(var(--sx-header-offset) + 1rem);
}

.wp-block-search__input {
	min-height: 48px;
	border: 2px solid var(--sx-ink);
	border-radius: var(--sx-radius);
	padding: 0.5rem 0.9rem;
	background: var(--sx-sheet);
	font-size: 1rem;
}

.wp-block-search__button {
	margin-left: 0.5rem;
}

/* ---------- Service page pieces ---------- */

.sx-crumbs {
	font-size: 0.9375rem;
	color: var(--sx-muted);
}

.sx-crumbs a {
	color: var(--sx-muted);
}

.sx-glance {
	display: grid;
	gap: 0;
	padding: 0.5rem clamp(1.1rem, 2.5vw, 1.6rem) !important;
}

.sx-glance > p {
	margin: 0 !important;
	padding: 0.85rem 0;
	border-bottom: 1px dashed var(--sx-rule);
	line-height: 1.45;
}

.sx-glance > p:last-child {
	border-bottom: 0;
}

.sx-glance strong {
	display: block;
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	color: var(--sx-ink);
	font-size: 1.0625rem;
}

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

.sx-jump a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--sx-rule);
	border-radius: 999px;
	background: var(--sx-sheet);
	color: var(--sx-ink);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}

.sx-jump a:hover {
	border-color: var(--sx-ink);
	background: var(--sx-marigold-soft);
}

.sx-sub {
	border-top: 1px solid var(--sx-rule);
}

.sx-sub h2 {
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
}

.sx-sub h3 {
	font-size: 1.25rem;
	margin-top: 1.5rem;
}

.sx-docs h3 {
	font-size: 1.25rem;
	margin-top: 0;
}

.sx-docs .sx-docs__note {
	font-size: 0.875rem;
	color: var(--sx-muted);
	margin-top: 0.75rem;
}

.sx-fee {
	background: var(--sx-sheet);
	border: 1px solid var(--sx-rule);
	border-top: 5px solid var(--sx-marigold);
	border-radius: var(--sx-radius);
	padding: 1.25rem 1.35rem;
}

.sx-fee:nth-child(2) { border-top-color: var(--sx-green); }
.sx-fee:nth-child(3) { border-top-color: var(--sx-violet); }

.sx-fee h3 {
	font-size: 1.3125rem;
	margin-bottom: 0.35rem;
}

.sx-fee p {
	margin-top: 0;
	color: var(--sx-muted);
	font-size: 0.975rem;
}

/* Contact methods. */
.sx-method {
	position: relative;
	background: var(--sx-sheet);
	border: 2px solid var(--sx-ink);
	border-radius: var(--sx-radius-lg);
	padding: 1.25rem 1.35rem;
	box-shadow: 4px 4px 0 0 var(--sx-ink);
	transition: transform 0.15s var(--sx-ease), box-shadow 0.15s var(--sx-ease);
}

.sx-method:hover,
.sx-method:focus-within {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 0 var(--sx-ink);
}

.sx-method > * {
	margin: 0 !important;
}

.sx-method__label {
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--sx-muted);
}

.sx-method__value {
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.sx-method__value a {
	color: var(--sx-ink);
	text-decoration: none;
}

.sx-method__value a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.sx-method__hint {
	font-size: 0.9375rem;
	color: var(--sx-muted);
	margin-top: 0.35rem !important;
}

/* ---------- Call-to-action band ---------- */

.sx-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.sx-cta::after {
	content: "";
	position: absolute;
	right: -6rem;
	bottom: -6rem;
	width: 22rem;
	height: 22rem;
	border-radius: 50%;
	border: 3px double rgba(242, 165, 22, 0.35);
	z-index: -1;
}

.sx-cta__title {
	max-width: 20ch;
}

.sx-direct {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	font-weight: 600;
}

.sx-direct a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

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

.sx-footer {
	font-size: 0.9688rem;
}

.sx-footer h2 {
	font-size: 1.125rem;
	color: var(--sx-marigold);
	margin-bottom: 0.75rem;
}

.sx-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sx-footer li {
	margin: 0 0 0.35rem;
}

.sx-footer li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: #e6e0f3;
	text-decoration: none;
}

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

.sx-footer__brand {
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	font-size: 1.75rem;
	color: #fff;
	line-height: 1.1;
}

.sx-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	color: #c9bfe3;
	font-size: 0.875rem;
}

.sx-footer__legal p {
	max-width: 80ch;
}

/* Floating WhatsApp shortcut. */
.sx-wa-float {
	position: fixed;
	right: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 40;
	margin: 0 !important;
}

.sx-wa-float a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0.6rem 1.1rem 0.6rem 0.8rem;
	border-radius: 999px;
	background: var(--sx-green);
	color: #fff !important;
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px -10px rgba(29, 106, 78, 0.8);
	transition: transform 0.15s var(--sx-ease);
}

.sx-wa-float a::before {
	content: "";
	width: 1.6rem;
	height: 1.6rem;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3a.4.4 0 0 0 0-.4l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.4.8 3.2.7a2.8 2.8 0 0 0 1.8-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sx-wa-float a:hover {
	transform: translateY(-2px);
	color: #fff;
}

@media (max-width: 600px) {
	.sx-wa-float a {
		padding: 0.6rem;
		min-width: 52px;
		justify-content: center;
	}

	.sx-wa-float .sx-wa-float__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

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

.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.sx-cards {
	padding-top: 1.9rem;
}

.sx-page-hero h1 {
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
	margin-top: 0.5rem;
}

.sx-page-hero .sx-jump {
	margin-top: var(--wp--preset--spacing--40);
}

.sx-note > h2 {
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	margin-top: 0;
}

.sx-note > ul {
	margin-bottom: 0;
}

.sx-note > ul li + li {
	margin-top: 0.4rem;
}

.sx-meta .sx-published::before {
	content: "Published ";
}

.sx-meta .sx-updated::before {
	content: "Updated ";
}

.sx-meta .wp-block-post-author__byline {
	display: inline;
	margin-right: 0.3em;
	font-size: inherit;
}

.sx-meta .wp-block-post-author__content,
.sx-meta .wp-block-post-author__name {
	display: inline;
}

.sx-meta .wp-block-post-author__name {
	font-weight: 600;
	color: var(--sx-ink);
}

/* Comparison table scrolls sideways inside itself on small screens. */
.wp-block-table.sx-compare {
	overflow-x: auto;
	margin: 0;
	border: 2px solid var(--sx-ink);
	border-radius: var(--sx-radius);
}

.wp-block-table.sx-compare table {
	min-width: 36rem;
	font-size: 0.975rem;
}

.wp-block-table.sx-compare th,
.wp-block-table.sx-compare td {
	border-width: 0 0 1px;
	padding: 0.85rem 1rem;
}

.wp-block-table.sx-compare td:first-child {
	font-family: var(--sx-display);
	font-stretch: 87.5%;
	font-weight: 700;
	color: var(--sx-ink);
	font-size: 1.0625rem;
}

.wp-block-table.sx-compare tbody tr:last-child td {
	border-bottom: 0;
}

.sx-sub .wp-block-column > h2:first-child {
	margin-top: 0;
}

/* ---------- 404 ---------- */

.sx-404-code {
	font-family: var(--sx-display);
	font-weight: 700;
	font-size: clamp(5rem, 3rem + 10vw, 11rem);
	line-height: 0.9;
	color: var(--sx-lilac);
	-webkit-text-stroke: 2px var(--sx-violet);
	margin: 0;
}

/* ---------- Reduced motion ---------- */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Print ---------- */

@media print {
	header.wp-block-template-part,
	.sx-wa-float,
	.sx-cta {
		display: none !important;
	}
}
