/*
Theme Name: S-Tech Solutions
Theme URI: https://s-techsol.com/
Author: S-Tech Solutions
Description: Block theme for s-techsol.com.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: Proprietary
Text Domain: stech
*/

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
:root {
	--sts-gutter: var(--wp--custom--gutter);
}
@media (max-width: 479.98px) {
	:root {
		--wp--custom--gutter: var(--wp--custom--gutter-narrow);
	}
}
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: normal; word-break: normal; hyphens: manual; margin: 0; }
h1, .wp-block-heading.is-style-balanced { text-wrap: balance; }
img { max-width: 100%; height: auto; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--slate);
	outline-offset: 2px;
}
.is-style-band :focus-visible,
.sts-footer :focus-visible,
.sts-topbar :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* Running text measure */
.wp-block-post-content p,
.wp-block-post-content ul,
.wp-block-post-content ol { max-width: var(--wp--custom--measure); }
.wp-block-post-content ul.wp-block-list,
.wp-block-post-content ol.wp-block-list { padding-left: 22px; margin: 0; }
.wp-block-post-content .wp-block-list li { margin-bottom: 8px; }

/* Space at the end of pages that have no closing band */
.wp-block-post-content > :last-child:not(.is-style-band) { margin-bottom: var(--wp--preset--spacing--band); }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.wp-block-buttons { gap: var(--wp--preset--spacing--s); }
.wp-block-button__link { text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--slate);
	border: 1.5px solid var(--wp--preset--color--slate);
	padding: 14.5px 24.5px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* ------------------------------------------------------------------
   Top bar and header
   ------------------------------------------------------------------ */
.sts-topbar {
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--meta);
}
.sts-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4px var(--wp--custom--gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 12px;
}
.sts-topbar a {
	color: var(--wp--preset--color--white);
	font-weight: 700;
	text-decoration: none;
	padding: 10px 0;
}
.sts-topbar a:hover { text-decoration: underline; color: var(--wp--preset--color--white); }

.sts-header {
	background: var(--wp--preset--color--white);
	border-bottom: var(--wp--custom--hairline);
}
.sts-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px var(--wp--custom--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
}
.sts-logo { display: flex; align-items: center; line-height: 0; }
.sts-logo img { height: 44px; width: auto; }
.sts-header__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 30px;
	margin-left: auto;
}
.sts-header__nav .wp-block-buttons { margin: 0; }
.sts-header .wp-block-button__link {
	padding: 11px 18px;
	font-size: var(--wp--preset--font-size--card);
}

/* Navigation */
.sts-header .wp-block-navigation { gap: 8px 30px; color: var(--wp--preset--color--ink); }
.sts-header .wp-block-navigation .wp-block-navigation__container { gap: 8px 30px; }
.sts-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	padding: 10px 0;
}
.sts-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--slate); text-decoration: underline; text-underline-offset: 4px; }
.sts-header .wp-block-navigation .wp-block-navigation__submenu-icon { width: auto; height: auto; margin-left: 6px; }
.sts-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius);
	padding: 8px 0;
	min-width: 280px;
}
.sts-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 18px;
	font-weight: 600;
}
.sts-header .wp-block-navigation__responsive-container-open,
.sts-header .wp-block-navigation__responsive-container-close {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--card);
	color: var(--wp--preset--color--slate);
	border: 1.5px solid var(--wp--preset--color--slate);
	border-radius: var(--wp--custom--radius);
	padding: 11px 16px;
	min-height: 44px;
	background: var(--wp--preset--color--white);
}
.sts-header .wp-block-navigation__responsive-container-close { border: 0; }
.sts-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px var(--wp--custom--gutter);
	background: var(--wp--preset--color--white);
}
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--intro);
	padding: 10px 0;
}
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0;
	padding: 0 0 8px 16px;
	min-width: 0;
}
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--body);
	padding: 8px 0;
}
/* Collapse the menu below 900px (core collapses at 600px). */
@media (min-width: 600px) and (max-width: 899.98px) {
	.sts-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.sts-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.is-style-hero { padding-top: var(--wp--preset--spacing--xxxl); }
.is-style-hero.is-home { padding-top: var(--wp--preset--spacing--band); }
.is-style-hero > * { margin-block: 0; }
.is-style-hero h1 { margin-bottom: 28px; max-width: 980px; }
.wp-block-heading.has-display-home-font-size { line-height: 1.06; }
.sts-hero-row {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 72px;
	align-items: flex-end;
	justify-content: space-between;
}
.sts-hero-row > * { margin: 0; }
.sts-hero-row > p,
.is-style-intro {
	flex: 1 1 520px;
	min-width: 0;
	max-width: 660px;
	font-size: var(--wp--preset--font-size--intro);
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
}

/* Trust line */
.is-style-trust {
	margin-top: var(--wp--preset--spacing--xxl) !important;
	border-top: var(--wp--custom--hairline);
	border-bottom: var(--wp--custom--hairline);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 32px;
}
.is-style-trust > * { margin: 0; }
.is-style-trust > p {
	padding: 16px 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}
/* Trust facts: a decorative icon before each (a Texas flag on the DPS license). */
.is-style-trust > p.sts-trust-ico { display: flex; align-items: center; gap: 14px; }
.is-style-trust > p.sts-trust-ico::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) center / 22px no-repeat;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
}
.is-style-trust > p.is-since::before { background-image: url("assets/images/icons/since.svg"); }
.is-style-trust > p.is-phone::before { background-image: url("assets/images/icons/phone.svg"); }
.is-style-trust > p.is-texas::before {
	width: 42px;
	height: 28px;
	border-radius: 3px;
	background: url("assets/images/icons/texas-flag.svg") center / cover no-repeat;
	box-shadow: 0 0 0 1px rgba(30, 40, 48, 0.15), 0 2px 6px rgba(30, 40, 48, 0.12);
}
@media (max-width: 599.98px) {
	.is-style-trust { flex-direction: column; align-items: stretch; }
	.is-style-trust > p { padding: 12px 0; }
	.is-style-trust > p + p { border-top: var(--wp--custom--hairline); }
}

/* Illustration frame */
.wp-block-image.is-style-frame { margin: 0; }
.wp-block-image.is-style-frame img {
	display: block;
	width: 100%;
	border: var(--wp--custom--hairline);
}
.wp-block-image.is-style-frame figcaption { margin: 10px 0 0; }
.is-style-hero > .wp-block-image { padding-top: var(--wp--preset--spacing--xl); }

/* Statement paragraph (homepage answer block) */
p.is-style-statement {
	margin-top: var(--wp--preset--spacing--section);
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--statement);
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
	max-width: 960px;
	text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Side-heading section: rule, heading left, content right
   ------------------------------------------------------------------ */
.is-style-side {
	margin-top: var(--wp--preset--spacing--section) !important;
	border-top: var(--wp--custom--rule);
	padding-top: var(--wp--preset--spacing--l);
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
}
.is-style-side > * { margin: 0 !important; min-width: 0; }
.is-style-side > :first-child { flex: 1 1 var(--wp--custom--side-heading-width); }
.is-style-side > :last-child { flex: 4 1 640px; }
.is-style-side > :first-child > .wp-block-heading { margin: 0 0 8px; }
.is-style-side > :first-child > p > a { font-weight: 700; display: inline-block; padding: 10px 0; }
.is-style-side .sts-side-body > * { margin-block: 0 20px; }
.is-style-side .sts-side-body > :last-child { margin-bottom: 0; }
.is-style-side .sts-side-body > p,
.is-style-side .sts-side-body > .wp-block-list {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
}
.is-style-side .sts-side-body > .wp-block-list { font-size: var(--wp--preset--font-size--callout); }
.is-style-side .sts-side-body > p.is-style-intro {
	font-size: var(--wp--preset--font-size--intro);
	color: var(--wp--preset--color--ink);
	max-width: var(--wp--custom--measure);
	margin-bottom: 32px;
}

/* Cards */
.is-style-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
	gap: 16px;
}
.is-style-cards > * {
	margin: 0 !important;
	border: var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius);
	padding: 26px;
	background: var(--wp--preset--color--white);
}
.is-style-cards h3 { margin: 0 0 10px; font-size: var(--wp--preset--font-size--intro); line-height: 1.25; }
.is-style-cards p,
.is-style-points p,
.is-style-steps p,
.is-style-cases p {
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
}
.is-style-cards a { font-weight: 700; }

/* Points: ruled items without boxes */
.is-style-points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 16px 40px;
}
.is-style-points > * { margin: 0 !important; border-top: var(--wp--custom--hairline); padding-top: 16px; }
.is-style-points h3 { margin: 0 0 6px; font-size: var(--wp--preset--font-size--lead); line-height: 1.35; }

/* Service index */
.is-style-service-index {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
	gap: 1px;
	background: var(--wp--preset--color--line);
	border: var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
}
.is-style-service-index > * {
	margin: 0 !important;
	position: relative;
	background: var(--wp--preset--color--white);
	padding: 22px 24px 24px;
}
.is-style-service-index > * > p { margin: 0; max-width: none; }
.is-style-service-index > * > p:first-child {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 8px;
}
.is-style-service-index > * > p:first-child a {
	color: var(--wp--preset--color--slate);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.is-style-service-index > * > p:first-child a::after { content: ""; position: absolute; inset: 0; }
.is-style-service-index > * > p:first-child a:focus-visible { outline: none; }
.is-style-service-index > *:focus-within { outline: 2px solid var(--wp--preset--color--slate); outline-offset: -3px; }
.is-style-service-index > *:hover { background: var(--wp--preset--color--tint); }
.is-style-service-index > * > p + p {
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
}

/* Results cases */
.is-style-cases {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
	gap: 32px 40px;
}
.is-style-cases > * { margin: 0 !important; }
.is-style-cases h3 {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--case);
	line-height: 1.2;
}

/* Numbered steps */
.is-style-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
	gap: 28px 32px;
}
.is-style-steps > * { margin: 0 !important; }
.is-style-steps > * > p:first-child {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 40px;
	line-height: 1;
	color: var(--wp--preset--color--slate);
	border-bottom: var(--wp--custom--hairline);
	padding-bottom: 12px;
	margin-bottom: 14px;
}
.is-style-steps h3 { margin: 0 0 6px; font-size: var(--wp--preset--font-size--lead); line-height: 1.35; }

/* Question list */
.is-style-questions > * {
	margin: 0 0 22px !important;
	padding-bottom: 22px;
	border-bottom: var(--wp--custom--hairline);
}
.is-style-questions > :last-child { margin-bottom: 0 !important; }
.is-style-questions h3 { margin: 0 0 6px; font-size: var(--wp--preset--font-size--lead); line-height: 1.35; }
.is-style-questions p { color: var(--wp--preset--color--text-secondary); margin: 0; }

/* Callout panel */
.is-style-callout {
	margin-top: var(--wp--preset--spacing--section) !important;
	background: var(--wp--preset--color--tint);
	border: var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius);
	padding: clamp(28px, 5vw, 56px);
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
	align-items: center;
}
.is-style-callout > * { margin: 0 !important; min-width: 0; }
.is-style-callout > :first-child { flex: 2 1 480px; }
.is-style-callout > :last-child { flex: 1 1 300px; }
.is-style-callout > :first-child > * { margin: 0; }
.is-style-callout .is-style-label { line-height: 1.4; margin-bottom: 12px; }
.is-style-callout h2 {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--callout-heading);
	line-height: 1.15;
	color: var(--wp--preset--color--slate);
	text-wrap: balance;
	margin-bottom: 16px;
}
.is-style-callout p:not(.is-style-label) {
	font-size: var(--wp--preset--font-size--callout);
	color: var(--wp--preset--color--text-secondary);
}
.is-style-callout .wp-block-image img { background: var(--wp--preset--color--white); }

/* Small label */
.is-style-label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}

/* ------------------------------------------------------------------
   Closing band
   ------------------------------------------------------------------ */
.wp-block-post-content > .is-style-band { margin-top: var(--wp--preset--spacing--band) !important; margin-bottom: 0; }
.is-style-band {
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--white);
	padding-top: 80px;
	padding-bottom: 80px;
}
.sts-band-row {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
}
.sts-band-row > * { margin: 0 !important; }
.sts-band-row > .wp-block-group { flex: 1 1 520px; min-width: 0; }
.sts-band-row > .wp-block-group > * { margin: 0; }
.is-style-band h2 {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--band-heading);
	line-height: 1.1;
	margin-bottom: var(--wp--preset--spacing--m);
}
.is-style-band p { font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--band-text); }
.is-style-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--slate);
}
.is-style-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.is-style-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--band-text);
	border-color: var(--wp--preset--color--band-text);
	color: var(--wp--preset--color--ink);
}
.is-style-band .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}
.is-style-band .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-style-band .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--white);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.sts-footer {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--footer-text);
	font-size: var(--wp--preset--font-size--meta);
	line-height: 1.65;
}
.sts-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px var(--wp--custom--gutter);
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px 40px;
}
@media (min-width: 600px) {
	.sts-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.sts-footer__inner { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }
}
.sts-footer__inner > * { margin: 0 !important; min-width: 0; }
.sts-footer__col > * { margin: 0; }
.sts-footer__about > p + p { margin-top: 14px; }
.sts-footer__name { margin-bottom: 18px !important; line-height: 0; }
.sts-footer__name img { height: 36px; width: auto; display: block; aspect-ratio: 309 / 73.5; }
.sts-footer__legal { font-size: 13px; line-height: 1.6; }
.sts-footer__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--white);
	padding-bottom: 8px;
	margin-bottom: 4px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.sts-footer__col > nav + .sts-footer__label { margin-top: 24px; }
.sts-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.sts-footer nav a {
	color: var(--wp--preset--color--footer-text);
	font-weight: 400;
	text-decoration: none;
	display: inline-block;
	padding: 8px 0;
}
.sts-footer nav a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.sts-topbar__inner > *, .sts-header__inner > *, .sts-header__nav > * { margin: 0 !important; }
.sts-header__nav { flex: 0 1 auto; }
.sts-logo img { aspect-ratio: 309 / 73.5; }
.sts-statement { margin-top: var(--wp--preset--spacing--section) !important; }
.sts-statement > p.is-style-statement { margin: 0; }
.sts-topbar a { display: inline-block; padding: 10px 0; line-height: 24px; }
.sts-footer nav a { padding: 10px 0; line-height: 24px; }
@media (max-width: 599.98px) {
	.sts-header__nav { flex: 1 1 100%; justify-content: space-between; }
	.is-style-hero, .is-style-hero.is-home { padding-top: var(--wp--preset--spacing--xl); }
}
.sts-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { width: max-content !important; min-width: 0 !important; }
.sts-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; }
/* Open phone menu: long names ("Security Cameras and License Plate Recognition") wrap instead of running off screen. */
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { width: auto !important; max-width: 100%; }
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { white-space: normal; max-width: 100%; overflow-wrap: break-word; }
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: normal; }
.sts-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { font-weight: 700; color: var(--wp--preset--color--slate); }
.sts-header .wp-block-navigation__responsive-container-close { padding: 11px 0; }
.sts-header .wp-block-navigation__responsive-dialog { max-width: 1136px; margin: 0 auto; }

/* ------------------------------------------------------------------
   Inner page hero (service and who-we-serve layouts)
   ------------------------------------------------------------------ */
.sts-hero-split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: flex-start;
}
.sts-hero-split > * { margin: 0 !important; min-width: 0; }
.sts-hero-split > .sts-hero-main { flex: 2 1 520px; }
.sts-hero-split > .wp-block-image { flex: 1 1 380px; }
.sts-hero-main > * { margin: 0; }
.sts-hero-main > h1 { margin-bottom: 24px; }
.sts-hero-main > p.is-style-intro { max-width: 680px; margin-bottom: 28px; }
.sts-hero-main > p.is-style-intro:last-child { margin-bottom: 0; max-width: 720px; }
.is-style-hero:not(.is-home) > .is-style-trust { margin-top: 56px !important; }

/* Headings: ruled H2 (tool page) and subheading (contact aside) */
.wp-block-heading.is-style-ruled {
	border-top: var(--wp--custom--rule);
	padding-top: var(--wp--preset--spacing--l);
	margin: 0 0 20px;
}
.wp-block-heading.is-style-subheading {
	font-size: var(--wp--preset--font-size--subheading);
	margin: 0 0 6px;
}

/* Notice box: tint panel (DPS notice, remote support warning) */
.is-style-notice {
	background: var(--wp--preset--color--tint);
	border: var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius);
	padding: 22px 24px;
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--text-secondary);
}
.is-style-notice > * { margin: 0 !important; }
.is-style-notice > * + * { margin-top: 8px !important; }
.is-style-notice strong { color: var(--wp--preset--color--ink); }
.is-style-notice a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------
   Contact layout
   ------------------------------------------------------------------ */
.sts-contact {
	margin-top: 56px !important;
	border-top: var(--wp--custom--rule);
	padding-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px 72px;
}
.sts-contact > * { margin: 0 !important; min-width: 0; }
.sts-contact__form { flex: 3 1 520px; }
.sts-contact__aside { flex: 2 1 320px; }
.sts-contact__aside > * { margin: 0; }
.sts-contact__list > * { margin: 0 !important; }
.sts-contact__list > p {
	padding: 14px 0;
	border-bottom: var(--wp--custom--hairline);
	font-size: var(--wp--preset--font-size--callout);
	color: var(--wp--preset--color--ink);
}
.sts-contact__list a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sts-contact__list a:hover { text-decoration: underline; }
.sts-contact__aside > .is-style-notice { margin-top: 32px; }

/* ------------------------------------------------------------------
   Tool page (remote support)
   ------------------------------------------------------------------ */
.sts-tool > * { margin: 0; }
.sts-tool > h1 { margin-bottom: 20px; }
.sts-tool > p.is-style-intro { color: var(--wp--preset--color--ink); max-width: none; margin-bottom: 28px; }
.sts-tool > .is-style-notice {
	border: 1.5px solid var(--wp--preset--color--slate);
	padding: 20px 24px;
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--ink);
}
.sts-tool > .wp-block-shortcode, .sts-tool > div:not([class]) { margin-top: 40px; }
.sts-tool > p.sts-support__mac {
	margin-top: 24px;
	font-size: var(--wp--preset--font-size--card);
	color: var(--wp--preset--color--text-secondary);
}
.sts-tool-section { margin-top: 64px !important; }
.sts-tool-section + .sts-tool-section { margin-top: 56px !important; }
.sts-tool-section > p { font-size: var(--wp--preset--font-size--callout); }
/* Four cards read better as two by two than three plus one. */
@media (min-width: 900px) {
	.is-style-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 600px) {
	.sts-tool-section .is-style-steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Header, main, and footer sit flush; spacing comes from the sections themselves. */
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.is-style-service-index > * > p:first-child a:focus-visible { text-decoration-thickness: 3px; }

/* ==================================================================
   Revision round 1
   ================================================================== */

/* Header: the main action is filled; current page underlined; menu row sticks at desktop width. */
.sts-header .wp-block-navigation__container > .is-current > .wp-block-navigation-item__content,
.sts-header .wp-block-navigation__container > .is-current-parent > .wp-block-navigation-submenu__toggle,
.sts-header .wp-block-navigation__container > .is-current-parent > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--slate);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
@media (min-width: 900px) {
	:root { --sts-topbar-h: 52px; --sts-header-h: 83px; }
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--sts-topbar-h));
		z-index: 50;
	}
	.sts-topbar__inner { height: var(--sts-topbar-h); flex-wrap: nowrap; }
	html { scroll-padding-top: calc(var(--sts-header-h) + 16px); }
}

/* Homepage hero: title, intro, and buttons on the left; the image on the right. */
.is-home .sts-hero-split { align-items: center; gap: 40px 56px; }
.is-home .sts-hero-split > .sts-hero-main { flex: 1 1 540px; }
.is-home .sts-hero-split > .wp-block-image { flex: 1 1 400px; }
.is-home .sts-hero-main > h1 { margin-bottom: 28px; }
.is-home .sts-hero-main > p.is-style-intro { max-width: 600px; }
.is-style-hero.is-home > .is-style-trust { margin-top: var(--wp--preset--spacing--xxl) !important; }

/* Numbered steps: four in a row, two by two on tablets, stacked on phones. */
.is-style-steps { grid-template-columns: 1fr; }
@media (min-width: 600px) {
	.is-style-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.is-style-steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 28px; }
}

/* Results cases: three in a row at desktop width. */
@media (min-width: 900px) {
	.is-style-cases:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* Cards whose title is the link (homepage Who We Work With). */
.is-style-cards > .sts-linked { position: relative; }
.is-style-cards > .sts-linked h3 a {
	color: var(--wp--preset--color--slate);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.is-style-cards > .sts-linked h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-cards > .sts-linked h3 a:focus-visible { outline: none; text-decoration-thickness: 3px; }
.is-style-cards > .sts-linked:focus-within { outline: 2px solid var(--wp--preset--color--slate); outline-offset: -3px; }
.is-style-cards > .sts-linked:hover { background: var(--wp--preset--color--tint); }

/* Results page: two columns; an odd last card spans both. */
@media (min-width: 900px) {
	.is-style-cards.sts-two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.is-style-cards.sts-two-col > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Tint band: one section per page on the Tint background. */
/* No rule; the background extends one gutter past the content on each side so the heading and
   text columns line up with every other section. */
.wp-block-post-content > .is-style-side.sts-tint {
	background: var(--wp--preset--color--tint);
	border-top: 0;
	max-width: none !important;
	margin-left: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2 - var(--wp--custom--gutter)) !important;
	margin-right: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2 - var(--wp--custom--gutter)) !important;
	padding: var(--wp--preset--spacing--xl) var(--wp--custom--gutter);
}
.is-style-side.sts-tint .is-style-cards > * { background: var(--wp--preset--color--white); }

/* Result card: reads as evidence. */
.is-style-cards.sts-result > * { background: var(--wp--preset--color--tint); }

/* Phones: the What We Do index becomes a plain list. */
@media (max-width: 599.98px) {
	.is-style-service-index { display: block; background: none; border: 0; border-radius: 0; }
	.is-style-service-index > * { padding: 14px 0; border-top: var(--wp--custom--hairline); background: none; }
	.is-style-service-index > :last-child { border-bottom: var(--wp--custom--hairline); }
	.is-style-service-index > * > p:first-child { margin-bottom: 4px; }
	.is-style-service-index > *:hover { background: none; }
}

/* Heading-to-paragraph gap in the band and the callout (the reset above zeroes margins). */
.sts-band-row > .wp-block-group > h2,
.is-style-callout > :first-child > h2 { margin-bottom: var(--wp--preset--spacing--m); }

/* Membership logos: original colours on white, at most 48px tall, with clear space. */
.sts-member-logo { margin: 0; line-height: 0; }
.sts-member-logo img { display: block; height: 48px; width: auto; max-width: 100%; border: 0; }
.sts-trust-member { display: flex; align-items: center; gap: 12px; margin: 0; }
.sts-trust-member > * { margin: 0; }
.sts-trust-member > p { padding: 16px 0; font-weight: 600; font-size: var(--wp--preset--font-size--card); line-height: 1.5; color: var(--wp--preset--color--ink); }
/* Logos matched by visual weight, not pixel height (About row; the fact row uses 60%). */
.sts-logo-cai img { height: 64px; }
.sts-logo-awbd img { height: 56px; }
.sts-logo-tbfaa img { height: 40px; }
.sts-trust-member .sts-logo-cai img { height: 38px; }
.sts-trust-member .sts-logo-awbd img { height: 34px; }
.sts-trust-member .sts-logo-tbfaa img { height: 24px; }
.sts-member-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 48px;
	padding: 8px 0;
}
.sts-member-logos > * { margin: 0 !important; }
@media (max-width: 599.98px) {
	.is-style-trust > .sts-trust-member { border-top: var(--wp--custom--hairline); }
	.sts-trust-member > p { padding: 12px 0; }
}


/* HealthDesk panel: a simplified product screen in HTML */
.sts-hd {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	padding: 18px;
	min-width: 0;
}
.sts-hd__screen { display: flex; flex-direction: column; gap: 14px; }
.sts-hd__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--wp--preset--font-size--card); }
.sts-pill {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	white-space: nowrap;
}
.sts-pill.is-ok { background: var(--wp--preset--color--status-ok-bg); color: var(--wp--preset--color--status-ok); }
.sts-pill.is-warn { background: var(--wp--preset--color--status-warn-bg); color: var(--wp--preset--color--status-warn); }
.sts-pill.is-bad { background: var(--wp--preset--color--status-bad-bg); color: var(--wp--preset--color--status-bad); }
.sts-hd__box { border: 1px solid var(--wp--preset--color--line); border-radius: 3px; padding: 10px 12px; }
.sts-hd__head { font-weight: 700; margin-bottom: 8px; }
.sts-hd__line { display: flex; align-items: baseline; gap: 10px; color: var(--wp--preset--color--text-secondary); }
.sts-hd__table { width: 100%; border-collapse: collapse; }
.sts-hd__table th { text-align: left; font-weight: 600; color: var(--wp--preset--color--text-muted); padding: 0 8px 6px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.sts-hd__table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: middle; }
.sts-hd__table tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.sts-hd__table td.is-bad { color: var(--wp--preset--color--status-bad); font-weight: 600; }
.sts-hd__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--wp--preset--color--text-secondary); }
.is-style-callout > .sts-hd, .is-style-callout > .wp-block-pattern { flex: 1 1 360px; }
.sts-hero-split > .sts-hd { flex: 1 1 380px; align-self: center; }

/* Related: cards like the What We Do grid, title only. */
.is-style-service-index.sts-related { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.is-style-service-index.sts-related > * > p:first-child { margin-bottom: 0; }

/* Single-column inner hero: the paragraph may run to 70 characters. */
.is-style-hero > .sts-hero-main > p.is-style-intro { max-width: 70ch; }

/* Phones: a shorter page. Spacing only; no content is removed. */
@media (max-width: 599.98px) {
	.wp-block-post-content > .is-style-side,
	.wp-block-post-content > .is-style-callout { margin-top: 56px !important; }
	.wp-block-post-content > .is-style-side.sts-tint { margin-top: 56px !important; }
	.wp-block-post-content > .is-style-band { margin-top: 64px !important; }
	.is-style-band { padding-top: 56px; padding-bottom: 56px; }
	.is-style-side { padding-top: 20px; gap: 16px; }
	.is-style-cards > * { padding: 20px; }
	.is-style-callout { padding: 24px 20px; }
	.is-style-steps { gap: 20px; }
	.is-style-steps > * > p:first-child { font-size: 30px; padding-bottom: 8px; margin-bottom: 10px; }
	/* The homepage hero's HealthDesk panel is a stand-in until the hero image is approved;
	   on phones the same panel already appears in the HealthDesk section. */
	.is-home .sts-hero-split > .sts-hd { display: none; }
	.is-style-hero > .is-style-trust,
	.is-style-hero.is-home > .is-style-trust { margin-top: 40px !important; }
	.sts-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; padding-bottom: 40px; gap: 28px 20px; }
	.sts-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 599.98px) {
	.is-style-side .sts-side-body > p,
	.is-style-side .sts-side-body > .wp-block-list { font-size: var(--wp--preset--font-size--body); }
	.is-style-side .sts-side-body > p.is-style-intro,
	.sts-hero-row > p, .is-style-intro { font-size: var(--wp--preset--font-size--callout); }
	.is-style-callout p:not(.is-style-label) { font-size: var(--wp--preset--font-size--body); }
	.is-style-service-index > * { padding: 10px 0 12px; }
	.is-style-cases { gap: 24px; }
	.is-style-points { gap: 12px; }
	.sts-footer__about > p + p { margin-top: 10px; }
	.sts-footer__col > nav + .sts-footer__label { margin-top: 16px; }
}
@media (max-width: 599.98px) {
	/* Phones: compact fact rows (small icons) keep the homepage under 7,500px (REVISIONS-2.md). */
	.is-style-trust > p.sts-trust-ico { padding: 4px 0; gap: 12px; }
	.is-style-trust > p.sts-trust-ico::before { width: 24px; height: 24px; background-size: 14px; }
	.is-style-trust > p.is-texas::before { width: 24px; height: 16px; border-radius: 2px; }
}
@media (max-width: 599.98px) {
	/* Footer links wrap in rows on phones instead of one long column. */
	.sts-footer__inner { grid-template-columns: 1fr; gap: 24px; }
	.sts-footer .wp-block-navigation.is-vertical .wp-block-navigation__container,
	.sts-footer .wp-block-navigation.is-vertical { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0 20px; }
}
@media (max-width: 599.98px) {
	/* The panel is decorative; on phones the HealthDesk section is its text alone. */
	.is-style-callout > .sts-hd { display: none; }
}

/* Scenes: generated image with a code-drawn overlay (markers, coverage, labels). */
.sts-scene { margin: 0; min-width: 0; }
.sts-hero-split > .wp-block-html, .sts-hero-split > .sts-scene { flex: 1 1 440px; min-width: 0; }
.sts-scene__frame { position: relative; line-height: 0; }
.sts-scene__frame img { display: block; width: 100%; height: auto; border-radius: var(--wp--custom--radius); }
.sts-scene__overlay { position: absolute; inset: 0; pointer-events: none; }
.sts-scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sts-scene__cover { fill: var(--wp--preset--color--amber); fill-opacity: 0.35; stroke: var(--wp--preset--color--amber); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.sts-scene__leader { stroke: var(--wp--preset--color--white); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.sts-scene__marker {
	position: absolute;
	width: 14px; height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--white);
	box-sizing: border-box;
}
.sts-scene__label {
	position: absolute;
	transform: translate(-50%, -50%);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-radius: 3px;
	padding: 3px 8px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
}
.sts-scene__label.is-start { transform: translate(0, -50%); }
.sts-scene__label.is-end { transform: translate(-100%, -50%); }
.sts-scene__caption {
	margin: 10px 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--text-muted);
}
@media (max-width: 599.98px) {
	.sts-scene__label, .sts-scene__leader { display: none; }
}
@media (max-width: 599.98px) {
	.wp-block-post-content > .is-style-side,
	.wp-block-post-content > .is-style-callout,
	.wp-block-post-content > .is-style-side.sts-tint { margin-top: 40px !important; }
	.wp-block-post-content > .is-style-band { margin-top: 48px !important; }
	.is-style-band { padding-top: 48px; padding-bottom: 48px; }
	.sts-hero-split, .is-home .sts-hero-split { gap: 28px; }
	.is-style-hero > .is-style-trust, .is-style-hero.is-home > .is-style-trust { margin-top: 32px !important; }
	.sts-footer__inner { padding-top: 32px; padding-bottom: 32px; }
}

/* Heroes with a scene: the image takes the wider column (about 55%) at desktop width. */
@media (min-width: 900px) {
	.sts-hero-split:has(.sts-scene) { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 48px; align-items: center; }
}
@media (min-width: 900px) {
	/* The homepage title shares the hero with the wider image column. */
	.is-home .sts-hero-split:has(.sts-scene) .sts-hero-main > h1 { font-size: clamp(38px, 4.2vw, 56px); }
}
.sts-scene__link { stroke: var(--wp--preset--color--amber); stroke-width: 3px; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; }
