/* HS Service Tabs — frontend
 * v1.1.1 — hard reset on theme/UA button styles.
 */

.hsst {
	--hsst-bg: transparent;
	--hsst-text: #131313;
	--hsst-muted: #b8aca3;
	--hsst-body: #4a4340;
	--hsst-rule: #e0d3ca;
	--hsst-radius: 0px;
	--hsst-inner: 1280px;
	--hsst-gap: clamp(24px, 4vw, 56px);
	--hsst-tab-pad: clamp(16px, 2vw, 26px);

	background: var(--hsst-bg);
	padding: clamp(24px, 4vw, 56px);
	box-sizing: border-box;
}

.hsst *,
.hsst *::before,
.hsst *::after {
	box-sizing: inherit;
}

/* Break out of the theme's content container, edge to edge.
   --hsst-sb is the scrollbar width, set by the script, so this never
   introduces a horizontal scrollbar. */
.hsst--full {
	width: calc(100vw - var(--hsst-sb, 0px));
	max-width: calc(100vw - var(--hsst-sb, 0px));
	margin-left: calc(50% - (100vw - var(--hsst-sb, 0px)) / 2);
	margin-right: calc(50% - (100vw - var(--hsst-sb, 0px)) / 2);
}

/* No background panel — sit directly on the page. */
.hsst--bare {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
}

.hsst--full.hsst--bare {
	padding-left: clamp(16px, 4vw, 48px);
	padding-right: clamp(16px, 4vw, 48px);
}

/* =====================================================================
   BUTTON RESET
   Themes style <button> aggressively — background, borders, uppercase,
   padding, box-shadow, transforms on hover, the lot. This strips every
   one of those states back to nothing so the tab is plain text + icon.
   ===================================================================== */

.hsst button.hsst__tab,
.hsst button.hsst__tab:link,
.hsst button.hsst__tab:visited,
.hsst button.hsst__tab:hover,
.hsst button.hsst__tab:focus,
.hsst button.hsst__tab:focus-within,
.hsst button.hsst__tab:active {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	height: auto !important;
	width: 100% !important;
	transform: none !important;
	filter: none !important;
	opacity: 1 !important;
	outline: 0 !important;
	outline-offset: 0 !important;
	overflow: visible;
	white-space: normal;
	vertical-align: baseline;
	-webkit-tap-highlight-color: transparent;
}

.hsst button.hsst__tab::before,
.hsst button.hsst__tab::after {
	content: none !important;
	display: none !important;
}

/* Clicking a tab used to select its label, and themes with a custom
   ::selection colour painted a coloured band across the row. Tabs are
   controls, not copy, so they are not selectable — and the highlight is
   neutralised for good measure. */
.hsst button.hsst__tab,
.hsst button.hsst__tab * {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	-webkit-touch-callout: none;
}

.hsst button.hsst__tab::selection,
.hsst button.hsst__tab *::selection {
	background: transparent !important;
	color: inherit !important;
	text-shadow: none !important;
}

.hsst button.hsst__tab::-moz-selection,
.hsst button.hsst__tab *::-moz-selection {
	background: transparent !important;
	color: inherit !important;
	text-shadow: none !important;
}

/* Keyboard focus only. Delete this block if you want no focus ring at all —
   it will not show for mouse or touch users either way. */
.hsst button.hsst__tab:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 4px !important;
}

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

.hsst__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--hsst-radius);
	background: rgba(0, 0, 0, 0.04);
}

.hsst__figure {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.03);
	transition: opacity 0.6s ease, transform 1.2s ease, visibility 0s linear 0.6s;
}

.hsst__figure.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	transition: opacity 0.6s ease, transform 1.2s ease, visibility 0s;
}

.hsst__img,
.hsst__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
	border-radius: 0;
}

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

.hsst__heading {
	max-width: var(--hsst-inner);
	margin: 0 auto clamp(20px, 3vw, 40px);
	color: var(--hsst-text);
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.hsst__inner {
	max-width: var(--hsst-inner);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: var(--hsst-gap);
	align-items: start;
}

.hsst--image-right .hsst__media {
	order: 2;
}

/* ---------- List ---------- */

.hsst__list {
	border-top: 1px solid var(--hsst-rule);
}

.hsst__item {
	border-bottom: 1px solid var(--hsst-rule);
	list-style: none;
}

/* Layout for the reset button. Kept separate from the reset block above
   so specificity stays predictable. */
.hsst button.hsst__tab {
	display: flex !important;
	align-items: center;
	gap: 18px;
	padding: var(--hsst-tab-pad) 0 !important;
	text-align: left;
	cursor: pointer;
	color: var(--hsst-muted);
	transition: color 0.3s ease;
}

.hsst button.hsst__tab:hover,
.hsst button.hsst__tab:focus-visible {
	color: var(--hsst-text);
}

.hsst__item.is-active button.hsst__tab {
	color: var(--hsst-text);
	padding-bottom: clamp(10px, 1.4vw, 16px) !important;
}

.hsst__icon {
	flex: 0 0 auto;
	width: clamp(28px, 2.4vw, 38px);
	height: clamp(28px, 2.4vw, 38px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
}

.hsst__icon:empty {
	display: none;
}

.hsst__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
}

.hsst__icon img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	background: none;
	box-shadow: none;
	border: 0;
}

.hsst__title {
	font-size: clamp(17px, 1.5vw, 24px);
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 400;
	transition: font-size 0.3s ease;
}

.hsst__item.is-active .hsst__title {
	font-size: clamp(20px, 1.85vw, 29px);
	letter-spacing: 0.02em;
}

/* ---------- Panel ---------- */

.hsst__panel {
	height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: height 0.4s ease, visibility 0s linear 0.4s;
}

.hsst__item.is-active .hsst__panel {
	height: auto;
	visibility: visible;
	transition: height 0.4s ease, visibility 0s;
}

.hsst__panel-inner {
	padding-bottom: clamp(18px, 2vw, 28px);
}

.hsst__desc {
	margin: 0 0 16px;
	color: var(--hsst-body);
	font-size: clamp(14px, 1.05vw, 16px);
	line-height: 1.85;
	max-width: 46ch;
}

/* Read More — reset the theme's link styling too. */
.hsst a.hsst__more,
.hsst a.hsst__more:link,
.hsst a.hsst__more:visited,
.hsst a.hsst__more:hover,
.hsst a.hsst__more:focus,
.hsst a.hsst__more:active {
	display: inline-block;
	background: none !important;
	background-image: none !important;
	border: 0;
	border-bottom: 1.5px solid currentColor;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	text-transform: none;
	color: var(--hsst-text);
	font-size: clamp(14px, 1vw, 16px);
	font-weight: 600;
	line-height: 1.4;
	padding: 0 0 2px;
	margin: 0;
	transform: none !important;
	transition: opacity 0.25s ease;
	outline: 0;
}

.hsst a.hsst__more::before,
.hsst a.hsst__more::after {
	content: none !important;
	display: none !important;
}

.hsst a.hsst__more:hover {
	opacity: 0.6;
}

.hsst a.hsst__more:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.hsst__inner {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		--hsst-gap: 28px;
	}
}

@media (max-width: 782px) {
	.hsst__inner {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.hsst--image-right .hsst__media {
		order: 0;
	}

	.hsst__media {
		aspect-ratio: 4 / 3;
	}

	.hsst__title,
	.hsst__item.is-active .hsst__title {
		font-size: 17px;
		letter-spacing: 0.05em;
	}

	.hsst button.hsst__tab {
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.hsst {
		padding: 18px;
	}

	.hsst__media {
		aspect-ratio: 1 / 1;
	}

	.hsst__desc {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsst *,
	.hsst *::before,
	.hsst *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

