/**
 * Health & Safety Platform — front-end design system.
 *
 * Every value that a designer would want to change lives in the token block
 * below, and the tokens are also emitted from PHP so the palette can be
 * approved and adjusted without editing this file.
 *
 * Scoping: every selector is inside an .hsp- class. Nothing here restyles a
 * bare element, so Divi's own output is untouched.
 *
 * Contrast: every foreground and background pair used here is verified against
 * WCAG 2.2 AA. See docs/PHASE-3-SERVICES-UI.md for the measured ratios.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Palette. Also emitted from PHP; these are the fallbacks. */
	--hsp-navy: #132347;
	--hsp-navy-800: #1b2f5c;
	--hsp-blue: #1f4e9c;
	--hsp-blue-dark: #173c79;
	--hsp-yellow: #f5c518;
	--hsp-yellow-dark: #8a6a00;
	--hsp-green: #146b3f;
	--hsp-ink: #141c28;
	--hsp-muted: #586172;
	--hsp-line: #dce3ed;
	--hsp-surface: #ffffff;
	--hsp-surface-alt: #f4f7fb;

	/* Typography. Swap these two for licensed faces once approved; nothing
	   else needs to change. System stacks avoid a third-party request, a
	   render-blocking download and any font-swap layout shift. */
	--hsp-font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--hsp-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Fluid type scale. */
	--hsp-text-xs: 0.8125rem;
	--hsp-text-sm: 0.9375rem;
	--hsp-text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--hsp-text-lg: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
	--hsp-text-xl: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
	--hsp-text-2xl: clamp(1.625rem, 1.45rem + 0.85vw, 2.125rem);
	--hsp-text-3xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);

	/* Spacing, on a consistent scale. */
	--hsp-space-1: 0.25rem;
	--hsp-space-2: 0.5rem;
	--hsp-space-3: 0.75rem;
	--hsp-space-4: 1rem;
	--hsp-space-5: 1.5rem;
	--hsp-space-6: 2rem;
	--hsp-space-7: 3rem;
	--hsp-space-8: 4rem;

	--hsp-radius: 4px;
	--hsp-radius-lg: 8px;

	--hsp-shadow: 0 1px 2px rgba(19, 35, 71, 0.06), 0 2px 8px rgba(19, 35, 71, 0.05);
	--hsp-shadow-lift: 0 2px 4px rgba(19, 35, 71, 0.08), 0 12px 28px rgba(19, 35, 71, 0.12);

	--hsp-measure: 68ch;
	--hsp-archive-max: 1240px;
	--hsp-tap: 44px;

	--hsp-transition: 160ms ease;
}

/* ==========================================================================
   2. Scoped base
   ========================================================================== */

.hsp-card,
.hsp-cards,
.hsp-archive,
.hsp-single,
.hsp-cta,
.hsp-related,
.hsp-filters,
.hsp-breadcrumbs,
.hsp-pagination,
.hsp-empty {
	box-sizing: border-box;
	font-family: var(--hsp-font-body);
	color: var(--hsp-ink);
}

.hsp-card *,
.hsp-archive *,
.hsp-single *,
.hsp-cta *,
.hsp-related *,
.hsp-filters *,
.hsp-empty * {
	box-sizing: border-box;
}

.hsp-card h1, .hsp-card h2, .hsp-card h3, .hsp-card h4,
.hsp-archive h1, .hsp-archive h2, .hsp-archive h3,
.hsp-single h1, .hsp-single h2, .hsp-single h3, .hsp-single h4,
.hsp-related h2, .hsp-related h3,
.hsp-cta h2, .hsp-cta h3 {
	font-family: var(--hsp-font-heading);
	font-weight: 600;
	color: var(--hsp-navy);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

/* ==========================================================================
   3. Focus: a two-tone ring.
   A single colour cannot clear 3:1 against both white and navy. The blue
   outline carries light backgrounds, the white halo carries dark ones, so one
   layer is always visible. WCAG 2.2 Focus Appearance.
   ========================================================================== */

.hsp-card a:focus-visible,
.hsp-card button:focus-visible,
.hsp-archive a:focus-visible,
.hsp-archive button:focus-visible,
.hsp-archive select:focus-visible,
.hsp-archive input:focus-visible,
.hsp-single a:focus-visible,
.hsp-cta a:focus-visible,
.hsp-related a:focus-visible,
.hsp-filters a:focus-visible,
.hsp-filters button:focus-visible,
.hsp-filters select:focus-visible,
.hsp-filters input:focus-visible,
.hsp-breadcrumbs a:focus-visible,
.hsp-pagination a:focus-visible,
.hsp-empty a:focus-visible {
	outline: 3px solid var(--hsp-blue);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--hsp-surface);
	border-radius: 2px;
}

/* ==========================================================================
   4. Cards
   ========================================================================== */

.hsp-card {
	display: flex;
	flex-direction: column;
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-line);
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
	height: 100%;
	transition: box-shadow var(--hsp-transition), transform var(--hsp-transition), border-color var(--hsp-transition);
}

.hsp-card:hover,
.hsp-card:focus-within {
	border-color: #c3cfe0;
	box-shadow: var(--hsp-shadow-lift);
	transform: translateY(-2px);
}

/* Fixed ratio reserves the space before the image arrives: no layout shift. */
.hsp-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hsp-surface-alt);
	border-bottom: 1px solid var(--hsp-line);
}

.hsp-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.hsp-card:hover .hsp-card__image {
	transform: scale(1.03);
}

.hsp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--hsp-space-3);
	padding: var(--hsp-space-5);
}

.hsp-card__title {
	font-size: var(--hsp-text-xl);
	margin: 0;
}

.hsp-card__link {
	color: var(--hsp-navy);
	text-decoration: none;
}

.hsp-card__link:hover {
	color: var(--hsp-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hsp-card__excerpt {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	line-height: 1.6;
}

.hsp-card__excerpt p {
	margin: 0 0 var(--hsp-space-2);
}

.hsp-card__excerpt p:last-child {
	margin-bottom: 0;
}

/* Pins every button to the bottom, so a row of cards lines up regardless of
   how much copy each one carries. */
.hsp-card__actions {
	margin: auto 0 0;
	padding-top: var(--hsp-space-2);
}

.hsp-card__button {
	display: inline-flex;
	align-items: center;
	gap: var(--hsp-space-2);
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-4);
	border-radius: var(--hsp-radius);
	background: transparent;
	border: 1.5px solid var(--hsp-blue);
	color: var(--hsp-blue);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--hsp-transition), color var(--hsp-transition);
}

.hsp-card__button::after {
	content: "\2192";
	transition: transform var(--hsp-transition);
}

.hsp-card__button:hover {
	background: var(--hsp-blue);
	color: var(--hsp-surface);
}

.hsp-card__button:hover::after {
	transform: translateX(3px);
}

/*
 * Graceful degradation.
 *
 * Not every Service has a featured image or a summary yet. A card missing
 * either should look considered rather than unfinished, so an image-less card
 * gains a navy top rule in place of the photograph, and a card with no summary
 * simply closes up its spacing instead of leaving a gap.
 *
 * :has() is progressive enhancement. Where it is unsupported the card still
 * renders correctly, just without the accent.
 */
.hsp-card:not(:has(.hsp-card__media)) {
	border-top: 4px solid var(--hsp-navy);
}

.hsp-card:not(:has(.hsp-card__media)) .hsp-card__body {
	padding-top: var(--hsp-space-5);
}

.hsp-card:not(:has(.hsp-card__excerpt)) .hsp-card__body {
	gap: var(--hsp-space-4);
}

.hsp-card:not(:has(.hsp-card__excerpt)) .hsp-card__actions {
	padding-top: var(--hsp-space-3);
}

/* A card with neither image nor summary is title, badges and button, so it
   needs a little more internal height to sit level beside fuller cards. */
.hsp-card:not(:has(.hsp-card__media)):not(:has(.hsp-card__excerpt)) .hsp-card__body {
	padding-block: var(--hsp-space-6);
}

/* ==========================================================================
   5. Card grid
   ========================================================================== */

.hsp-cards {
	display: grid;
	gap: var(--hsp-space-6);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	margin: 0 0 var(--hsp-space-7);
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.hsp-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hsp-cards--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hsp-cards--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 62em) {
	.hsp-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hsp-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   5b. Testimonials
   Same card shell, different contents: a quotation is not a link to anywhere.
   ========================================================================== */

.hsp-testimonials-section {
	margin: 0 0 var(--hsp-space-7);
}

.hsp-testimonials__title {
	font-size: var(--hsp-text-2xl);
	margin: 0 0 var(--hsp-space-5);
}

.hsp-testimonials--grid {
	display: grid;
	gap: var(--hsp-space-6);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

/* Slider: a scroll-snap region, no script. Scrolls with a finger, a trackpad,
   arrow keys and assistive technology. */
.hsp-testimonials--slider {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(min(100%, 20rem), 22rem);
	gap: var(--hsp-space-5);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--hsp-space-1);
	padding: var(--hsp-space-1) var(--hsp-space-1) var(--hsp-space-5);
	overscroll-behavior-x: contain;
}

.hsp-testimonials--slider > * {
	scroll-snap-align: start;
}

.hsp-testimonials--slider:focus-visible {
	outline: 3px solid var(--hsp-blue);
	outline-offset: 2px;
}

.hsp-testimonials__hint {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-xs);
	margin: 0;
	text-align: right;
}

.hsp-card--testimonial {
	background: var(--hsp-surface-alt);
	border-top: 4px solid var(--hsp-yellow);
}

.hsp-card--testimonial:hover {
	transform: none;
	box-shadow: var(--hsp-shadow);
}

.hsp-card--testimonial .hsp-card__body {
	gap: var(--hsp-space-4);
}

.hsp-quote {
	margin: 0;
	quotes: "\201C" "\201D";
}

.hsp-quote__text {
	color: var(--hsp-ink);
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-lg);
	line-height: 1.55;
	margin: 0;
}

.hsp-quote__text::before {
	content: open-quote;
	color: var(--hsp-yellow-dark);
}

.hsp-quote__text::after {
	content: close-quote;
	color: var(--hsp-yellow-dark);
}

.hsp-quote__source {
	margin: auto 0 0;
}

.hsp-quote__who {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
}

.hsp-quote__who::before {
	content: "\2014\00a0";
}

/* ==========================================================================
   5c. Legal Products
   Level colours are tokens, never repeated hex values. Platinum uses navy,
   as approved.
   ========================================================================== */

.hsp-card--product {
	--hsp-level: var(--hsp-navy);
	border-top: 5px solid var(--hsp-level);
}

.hsp-card--level-bronze { --hsp-level: #7a4a21; }
.hsp-card--level-silver { --hsp-level: #5b6470; }
.hsp-card--level-gold { --hsp-level: #8a6a00; }
.hsp-card--level-platinum { --hsp-level: var(--hsp-navy); }

.hsp-product__level {
	background: var(--hsp-level);
	color: var(--hsp-surface);
	font-size: var(--hsp-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	padding: var(--hsp-space-2) var(--hsp-space-5);
	text-transform: uppercase;
}

.hsp-product__price {
	margin: 0;
	padding-bottom: var(--hsp-space-3);
	border-bottom: 1px solid var(--hsp-line);
}

.hsp-product__price-prefix {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	margin-right: var(--hsp-space-1);
}

.hsp-product__price-value {
	color: var(--hsp-navy);
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-2xl);
	font-weight: 600;
}

.hsp-product__price-value--poa {
	font-size: var(--hsp-text-lg);
}

.hsp-product__includes-label {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0;
	text-transform: uppercase;
}

/* Green ticks. The glyph is decorative; every item carries the words
   "Included:" for assistive technology, so meaning never rests on colour. */
.hsp-ticks {
	display: grid;
	gap: var(--hsp-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-ticks__item {
	display: grid;
	grid-template-columns: 1.25rem 1fr;
	gap: var(--hsp-space-2);
	align-items: start;
	font-size: var(--hsp-text-sm);
	line-height: 1.5;
	margin: 0;
}

.hsp-ticks__mark {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.1em;
}

.hsp-ticks__mark::before {
	content: "";
	position: absolute;
	left: 0.35rem;
	top: 0.08rem;
	width: 0.4rem;
	height: 0.75rem;
	border: solid var(--hsp-green);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

@media (forced-colors: active) {
	.hsp-ticks__mark::before {
		border-color: CanvasText;
	}
}

/* Our own visually-hidden class, scoped to plugin components. Using a private
   name rather than overriding the theme's .screen-reader-text means the rule
   wins on its own and no theme declaration has to be forced aside. */
.hsp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   6. Taxonomy badges
   ========================================================================== */

.hsp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hsp-space-2);
	margin: 0;
}

.hsp-badges__group {
	display: contents;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-badges__item {
	list-style: none;
	margin: 0;
}

.hsp-badges__link,
.hsp-badges__text {
	display: inline-block;
	padding: 0.2em 0.6em;
	border: 1px solid var(--hsp-line);
	border-radius: 100px;
	background: var(--hsp-surface-alt);
	color: var(--hsp-muted);
	font-size: var(--hsp-text-xs);
	font-weight: 500;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
}

.hsp-badges__link:hover {
	background: var(--hsp-navy);
	border-color: var(--hsp-navy);
	color: var(--hsp-surface);
}

/* The type badge is the primary classification, so it reads as such. */
.hsp-badges__group--service_type .hsp-badges__link,
.hsp-badges__group--service_type .hsp-badges__text {
	background: var(--hsp-navy);
	border-color: var(--hsp-navy);
	color: var(--hsp-surface);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 0.6875rem;
}

.hsp-badges__group--service_type .hsp-badges__link:hover {
	background: var(--hsp-blue);
	border-color: var(--hsp-blue);
}

/* ==========================================================================
   7. Meta list
   ========================================================================== */

.hsp-meta {
	display: grid;
	gap: var(--hsp-space-2) var(--hsp-space-4);
	margin: 0;
	font-size: var(--hsp-text-sm);
}

.hsp-meta--card {
	gap: var(--hsp-space-1) var(--hsp-space-3);
	padding: var(--hsp-space-3) 0;
	border-top: 1px solid var(--hsp-line);
	border-bottom: 1px solid var(--hsp-line);
	font-size: var(--hsp-text-sm);
}

.hsp-meta--card .hsp-meta__row {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: var(--hsp-space-3);
}

.hsp-meta--single .hsp-meta__row + .hsp-meta__row {
	margin-top: var(--hsp-space-4);
}

.hsp-meta__list {
	margin: 0;
	padding-left: var(--hsp-space-4);
}

.hsp-meta__list li + li {
	margin-top: var(--hsp-space-1);
}

@media (max-width: 30em) {
	.hsp-meta--card .hsp-meta__row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

.hsp-meta dt {
	color: var(--hsp-muted);
	font-weight: 600;
	margin: 0;
}

.hsp-meta dd {
	color: var(--hsp-ink);
	margin: 0;
}

/* ==========================================================================
   8. Archive
   ========================================================================== */

.hsp-archive {
	width: 100%;
	max-width: var(--hsp-archive-max);
	margin: 0 auto var(--hsp-space-8);
}

.hsp-archive__header {
	margin: 0 0 var(--hsp-space-7);
	padding-top: var(--hsp-space-2);
	max-width: var(--hsp-measure);
}

.hsp-archive__title {
	font-size: var(--hsp-text-3xl);
	margin: 0 0 var(--hsp-space-4);
	line-height: 1.15;
}

/* A short accent rule beneath the heading: understated, and the one place the
   brand yellow appears at full strength. */
.hsp-archive__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: var(--hsp-space-5);
	background: var(--hsp-yellow);
	border-radius: 2px;
}

.hsp-archive__intro {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-lg);
	line-height: 1.7;
	margin-top: var(--hsp-space-5);
}

.hsp-archive__intro p:last-child {
	margin-bottom: 0;
}

.hsp-archive__count {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	margin: 0 0 var(--hsp-space-4);
}

/* ==========================================================================
   9. Filters
   ========================================================================== */

.hsp-filters {
	background: var(--hsp-surface-alt);
	border: 1px solid var(--hsp-line);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
	margin: 0 0 var(--hsp-space-6);
}

.hsp-filters__controls {
	display: grid;
	gap: var(--hsp-space-4);
	grid-template-columns: 1fr;
	align-items: end;
}

@media (min-width: 48em) {
	.hsp-filters__controls {
		grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	}
}

.hsp-filters__field {
	display: flex;
	flex-direction: column;
	gap: var(--hsp-space-2);
	margin: 0;
	min-width: 0;
}

.hsp-filters__label {
	color: var(--hsp-navy);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
}

.hsp-filters__select,
.hsp-filters__search {
	width: 100%;
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-3);
	border: 1px solid #b9c4d4;
	border-radius: var(--hsp-radius);
	background: var(--hsp-surface);
	color: var(--hsp-ink);
	font-family: inherit;
	font-size: var(--hsp-text-base);
	line-height: 1.4;
}

.hsp-filters__select {
	appearance: none;
	padding-right: var(--hsp-space-6);
	background-image: linear-gradient(45deg, transparent 50%, var(--hsp-navy) 50%), linear-gradient(135deg, var(--hsp-navy) 50%, transparent 50%);
	background-position: right 1.1rem center, right 0.8rem center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.hsp-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hsp-space-4);
	margin: 0;
}

.hsp-filters__submit {
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-5);
	border: 1.5px solid var(--hsp-navy);
	border-radius: var(--hsp-radius);
	background: var(--hsp-navy);
	color: var(--hsp-surface);
	font-family: inherit;
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--hsp-transition);
}

.hsp-filters__submit:hover {
	background: var(--hsp-blue);
	border-color: var(--hsp-blue);
}

.hsp-filters__clear {
	display: inline-flex;
	align-items: center;
	min-height: var(--hsp-tap);
	color: var(--hsp-blue);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hsp-filters__clear:hover {
	color: var(--hsp-blue-dark);
}

/* ==========================================================================
   10. Empty state
   ========================================================================== */

.hsp-empty {
	background: var(--hsp-surface-alt);
	border: 1px dashed #c3cfe0;
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-7) var(--hsp-space-5);
	text-align: center;
}

.hsp-empty__message {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-lg);
	margin: 0 auto var(--hsp-space-4);
	max-width: 44ch;
}

.hsp-empty__clear {
	display: inline-flex;
	align-items: center;
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-4);
	border: 1.5px solid var(--hsp-blue);
	border-radius: var(--hsp-radius);
	color: var(--hsp-blue);
	font-weight: 600;
	text-decoration: none;
}

.hsp-empty__clear:hover {
	background: var(--hsp-blue);
	color: var(--hsp-surface);
}

/* ==========================================================================
   11. Pagination
   ========================================================================== */

.hsp-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hsp-space-2);
	justify-content: center;
	list-style: none;
	margin: var(--hsp-space-6) 0 0;
	padding: 0;
}

.hsp-pagination__item {
	margin: 0;
}

.hsp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--hsp-tap);
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-3);
	border: 1px solid var(--hsp-line);
	border-radius: var(--hsp-radius);
	background: var(--hsp-surface);
	color: var(--hsp-blue);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	text-decoration: none;
}

.hsp-pagination .page-numbers:hover {
	border-color: var(--hsp-blue);
	background: var(--hsp-blue);
	color: var(--hsp-surface);
}

.hsp-pagination .page-numbers.current {
	background: var(--hsp-navy);
	border-color: var(--hsp-navy);
	color: var(--hsp-surface);
}

.hsp-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--hsp-muted);
}

/* ==========================================================================
   12. Breadcrumbs
   ========================================================================== */

.hsp-breadcrumbs {
	margin: 0 0 var(--hsp-space-5);
}

.hsp-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hsp-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--hsp-text-sm);
}

.hsp-breadcrumbs__item {
	margin: 0;
}

.hsp-breadcrumbs__link {
	color: var(--hsp-blue);
	text-decoration: none;
}

.hsp-breadcrumbs__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hsp-breadcrumbs__current {
	color: var(--hsp-muted);
}

.hsp-breadcrumbs__separator {
	color: #9aa5b5;
	list-style: none;
}

/* ==========================================================================
   13. Single
   ========================================================================== */

.hsp-single {
	margin: 0 0 var(--hsp-space-7);
}

.hsp-single__header {
	margin: 0 0 var(--hsp-space-6);
}

.hsp-single__title {
	font-size: var(--hsp-text-3xl);
	margin: 0 0 var(--hsp-space-4);
	max-width: 22ch;
}

.hsp-single__standfirst {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-lg);
	line-height: 1.65;
	max-width: var(--hsp-measure);
	margin: 0 0 var(--hsp-space-4);
	padding-left: var(--hsp-space-4);
	border-left: 4px solid var(--hsp-yellow);
}

.hsp-single__standfirst p:last-child {
	margin-bottom: 0;
}

.hsp-single__media {
	margin: 0 0 var(--hsp-space-6);
}

.hsp-single__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hsp-radius-lg);
}

.hsp-single__content {
	max-width: var(--hsp-measure);
	font-size: var(--hsp-text-base);
	line-height: 1.7;
	color: var(--hsp-ink);
}

.hsp-single__content > * + * {
	margin-top: var(--hsp-space-4);
}

.hsp-single__content h2 {
	font-size: var(--hsp-text-2xl);
	margin-top: var(--hsp-space-6);
}

.hsp-single__content h3 {
	font-size: var(--hsp-text-xl);
	margin-top: var(--hsp-space-5);
}

.hsp-single__content a {
	color: var(--hsp-blue);
	text-underline-offset: 3px;
}

.hsp-single__content ul,
.hsp-single__content ol {
	padding-left: var(--hsp-space-5);
}

.hsp-single__content li + li {
	margin-top: var(--hsp-space-2);
}

/* ---- Key information panel ---- */

.hsp-single__aside {
	margin: var(--hsp-space-6) 0 0;
}

.hsp-panel {
	background: var(--hsp-surface-alt);
	border: 1px solid var(--hsp-line);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
}

.hsp-panel + .hsp-panel {
	margin-top: var(--hsp-space-4);
}

.hsp-panel__title {
	font-size: var(--hsp-text-lg);
	margin: 0 0 var(--hsp-space-4);
	padding-bottom: var(--hsp-space-3);
	border-bottom: 1px solid var(--hsp-line);
}

.hsp-panel__list {
	display: grid;
	gap: var(--hsp-space-4);
	margin: 0;
}

.hsp-panel__label {
	display: block;
	color: var(--hsp-muted);
	font-size: var(--hsp-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 var(--hsp-space-2);
}

.hsp-panel__value {
	margin: 0;
	font-size: var(--hsp-text-sm);
	line-height: 1.5;
}

.hsp-panel--contact {
	background: var(--hsp-navy);
	border-color: var(--hsp-navy);
	color: var(--hsp-surface);
}

.hsp-panel--contact .hsp-panel__title {
	color: var(--hsp-surface);
	border-bottom-color: rgba(255, 255, 255, 0.22);
}

.hsp-panel--contact .hsp-panel__label {
	color: var(--hsp-yellow);
}

.hsp-contact-list {
	display: grid;
	gap: var(--hsp-space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-contact-list__item {
	margin: 0;
}

.hsp-contact-list__link {
	display: flex;
	align-items: center;
	min-height: var(--hsp-tap);
	color: var(--hsp-surface);
	font-size: var(--hsp-text-base);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	padding-bottom: var(--hsp-space-2);
}

.hsp-contact-list__item:last-child .hsp-contact-list__link {
	border-bottom: 0;
	padding-bottom: 0;
}

.hsp-contact-list__link:hover {
	color: var(--hsp-yellow);
}

.hsp-contact-list__note {
	display: block;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--hsp-text-xs);
	font-weight: 400;
	margin-top: var(--hsp-space-1);
}

/* Two-column layout: content beside the panel from tablet up. Source order is
   content then aside, so auto-placement puts the aside in the free cell. */
@media (min-width: 56.25em) {
	.hsp-single--service {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 19rem;
		column-gap: var(--hsp-space-7);
		align-items: start;
	}

	.hsp-single--service > *:not(.hsp-single__content):not(.hsp-single__aside) {
		grid-column: 1 / -1;
	}

	.hsp-single--service > .hsp-single__content {
		grid-column: 1;
	}

	.hsp-single--service > .hsp-single__aside {
		grid-column: 2;
		margin-top: 0;
		position: sticky;
		top: var(--hsp-space-5);
	}
}

/* ==========================================================================
   14. Call to action
   ========================================================================== */

.hsp-cta {
	background: var(--hsp-navy);
	border-radius: var(--hsp-radius-lg);
	color: var(--hsp-surface);
	padding: var(--hsp-space-6);
	margin: var(--hsp-space-7) 0 0;
}

.hsp-cta__title {
	color: var(--hsp-surface);
	font-size: var(--hsp-text-2xl);
	margin: 0 0 var(--hsp-space-3);
	max-width: 26ch;
}

.hsp-cta__text {
	color: rgba(255, 255, 255, 0.86);
	font-size: var(--hsp-text-base);
	line-height: 1.65;
	margin: 0 0 var(--hsp-space-5);
	max-width: 56ch;
}

.hsp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hsp-space-3);
	margin: 0;
}

.hsp-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-5);
	border-radius: var(--hsp-radius);
	font-size: var(--hsp-text-base);
	font-weight: 700;
	text-decoration: none;
	transition: background var(--hsp-transition), color var(--hsp-transition);
}

.hsp-cta__button--primary {
	background: var(--hsp-yellow);
	border: 2px solid var(--hsp-yellow);
	color: var(--hsp-navy);
}

.hsp-cta__button--primary:hover {
	background: #ffd94a;
	border-color: #ffd94a;
	color: var(--hsp-navy);
}

.hsp-cta__button--secondary {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: var(--hsp-surface);
}

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

.hsp-cta a:focus-visible {
	outline-color: var(--hsp-surface);
	box-shadow: 0 0 0 6px var(--hsp-navy);
}

/* ==========================================================================
   15. Related
   ========================================================================== */

.hsp-related {
	margin: var(--hsp-space-7) 0 0;
	padding-top: var(--hsp-space-6);
	border-top: 1px solid var(--hsp-line);
}

.hsp-related__title {
	font-size: var(--hsp-text-2xl);
	margin: 0 0 var(--hsp-space-5);
}

.hsp-related--manual .hsp-related__list {
	display: grid;
	gap: var(--hsp-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-related--manual .hsp-related__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--hsp-tap);
	color: var(--hsp-blue);
	font-weight: 600;
	text-decoration: none;
}

.hsp-related--manual .hsp-related__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==========================================================================
   16. Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.hsp-testimonials--slider {
		scroll-behavior: auto;
	}

	.hsp-card,
	.hsp-card__image,
	.hsp-card__button,
	.hsp-card__button::after,
	.hsp-cta__button,
	.hsp-filters__submit {
		transition: none;
	}

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

	.hsp-card:hover .hsp-card__image {
		transform: none;
	}

	.hsp-card__button:hover::after {
		transform: none;
	}
}

/* ==========================================================================
   17. Forced colours and print
   ========================================================================== */

@media (forced-colors: active) {
	.hsp-card,
	.hsp-panel,
	.hsp-filters,
	.hsp-cta {
		border: 1px solid CanvasText;
	}

	.hsp-card__button,
	.hsp-cta__button,
	.hsp-filters__submit {
		border: 1px solid ButtonText;
	}
}

@media print {
	.hsp-filters,
	.hsp-pagination,
	.hsp-cta__actions,
	.hsp-testimonials__hint {
		display: none;
	}

	.hsp-testimonials--slider {
		display: block;
		overflow: visible;
	}

	.hsp-card,
	.hsp-panel {
		border: 1px solid #999;
		box-shadow: none;
		break-inside: avoid;
	}

	.hsp-cta,
	.hsp-panel--contact {
		background: transparent;
		color: #000;
		border: 1px solid #999;
	}

	.hsp-cta__title,
	.hsp-panel--contact .hsp-panel__title,
	.hsp-contact-list__link {
		color: #000;
	}

	.hsp-single--service {
		display: block;
	}
}


/* ==========================================================================
   18. Page layer
   Layout for the page-level shortcodes. Everything is scoped under .hsp-page
   so Divi's own modules on the same page are untouched.
   ========================================================================== */

.hsp-page {
	color: var(--hsp-ink);
	font-family: var(--hsp-font-body);
}

.hsp-section {
	margin: 0 0 var(--hsp-space-8);
}

.hsp-section--tight {
	margin-bottom: var(--hsp-space-6);
}

.hsp-section__title {
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-2xl);
	color: var(--hsp-navy);
	line-height: 1.2;
	margin: 0 0 var(--hsp-space-4);
	text-wrap: balance;
}

.hsp-eyebrow {
	color: var(--hsp-blue);
	font-size: var(--hsp-text-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 var(--hsp-space-2);
	text-transform: uppercase;
}

.hsp-prose {
	max-width: var(--hsp-measure);
	font-size: var(--hsp-text-base);
	line-height: 1.7;
}

.hsp-prose > * + * {
	margin-top: var(--hsp-space-4);
}

.hsp-prose ul,
.hsp-prose ol {
	padding-left: var(--hsp-space-5);
}

.hsp-prose li + li {
	margin-top: var(--hsp-space-2);
}

.hsp-prose--columns {
	max-width: none;
}

@media (min-width: 48em) {
	.hsp-prose--columns ul {
		columns: 2;
		column-gap: var(--hsp-space-7);
	}

	.hsp-prose--columns li {
		break-inside: avoid;
	}
}

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

.hsp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hsp-space-3);
	margin: var(--hsp-space-5) 0 0;
}

.hsp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--hsp-tap);
	padding: 0 var(--hsp-space-5);
	border-radius: var(--hsp-radius);
	font-size: var(--hsp-text-base);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--hsp-transition), color var(--hsp-transition);
}

.hsp-button--primary {
	background: var(--hsp-navy);
	border: 2px solid var(--hsp-navy);
	color: var(--hsp-surface);
}

.hsp-button--primary:hover {
	background: var(--hsp-blue);
	border-color: var(--hsp-blue);
	color: var(--hsp-surface);
}

.hsp-button--secondary {
	background: transparent;
	border: 2px solid var(--hsp-blue);
	color: var(--hsp-blue);
}

.hsp-button--secondary:hover {
	background: var(--hsp-blue);
	color: var(--hsp-surface);
}

.hsp-button--ghost {
	background: transparent;
	border: 2px solid transparent;
	color: var(--hsp-blue);
	text-decoration: underline;
	text-underline-offset: 4px;
	padding-inline: var(--hsp-space-2);
}

.hsp-page a:focus-visible,
.hsp-page button:focus-visible,
.hsp-page summary:focus-visible {
	outline: 3px solid var(--hsp-blue);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--hsp-surface);
	border-radius: 2px;
}

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

.hsp-hero {
	margin: 0 0 var(--hsp-space-8);
}

.hsp-hero__media {
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
	margin-bottom: var(--hsp-space-5);
}

.hsp-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.hsp-hero__strapline {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--hsp-space-3);
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-2xl);
	font-weight: 600;
	color: var(--hsp-navy);
	margin: 0 0 var(--hsp-space-3);
}

.hsp-hero__title {
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-3xl);
	color: var(--hsp-navy);
	line-height: 1.15;
	margin: 0;
	max-width: 20ch;
}

/* ---- Split intro ---- */

.hsp-intro--split {
	display: grid;
	gap: var(--hsp-space-6);
	align-items: center;
}

@media (min-width: 56.25em) {
	.hsp-intro--split {
		grid-template-columns: 1fr 20rem;
		gap: var(--hsp-space-7);
	}

	.hsp-intro--reverse .hsp-intro__body { order: 2; }
	.hsp-intro--reverse .hsp-intro__media { order: 1; }
}

.hsp-intro__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hsp-radius-lg);
}

/* ---- Audiences ---- */

.hsp-audiences__grid {
	display: grid;
	gap: var(--hsp-space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.hsp-audience {
	background: var(--hsp-surface-alt);
	border: 1px solid var(--hsp-line);
	border-left: 4px solid var(--hsp-navy);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
}

.hsp-audience__title {
	font-size: var(--hsp-text-lg);
	margin: 0 0 var(--hsp-space-3);
	color: var(--hsp-navy);
	font-family: var(--hsp-font-heading);
}

.hsp-audience__list {
	margin: 0;
	padding-left: var(--hsp-space-5);
	font-size: var(--hsp-text-sm);
	line-height: 1.6;
}

.hsp-audience__list li + li {
	margin-top: var(--hsp-space-2);
}

/* ---- Approach blocks ---- */

.hsp-approach {
	display: grid;
	gap: var(--hsp-space-6);
	align-items: start;
}

@media (min-width: 56.25em) {
	.hsp-approach {
		grid-template-columns: 1fr 1fr;
		gap: var(--hsp-space-7);
	}

	.hsp-approach--reverse .hsp-approach__body { order: 2; }
	.hsp-approach--reverse .hsp-approach__media { order: 1; }
}

.hsp-traits {
	display: grid;
	gap: var(--hsp-space-3);
	margin: var(--hsp-space-5) 0 0;
}

.hsp-traits__row {
	border-left: 3px solid var(--hsp-yellow);
	padding-left: var(--hsp-space-4);
}

.hsp-traits__term {
	color: var(--hsp-navy);
	font-weight: 700;
	margin: 0;
}

.hsp-traits__desc {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	line-height: 1.6;
	margin: var(--hsp-space-1) 0 0;
}

/* ---- Video preview ---- */

.hsp-video {
	margin: 0;
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
	border: 1px solid var(--hsp-line);
}

.hsp-video__image {
	display: block;
	width: 100%;
	height: auto;
}

/* The supplied still already carries a play button, so the plugin draws none.
   The link wraps the whole image, which keeps the clickable area at its
   largest and needs no icon of its own. */
.hsp-video__link {
	display: block;
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
}

.hsp-video__link:hover .hsp-video__image {
	opacity: 0.94;
}

.hsp-video__image {
	transition: opacity var(--hsp-transition);
}

.hsp-video__caption {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	padding: var(--hsp-space-3) var(--hsp-space-4);
}

/* ---- Two column pair ---- */

.hsp-approach-pair {
	display: grid;
	gap: var(--hsp-space-6);
}

@media (min-width: 56.25em) {
	.hsp-approach-pair {
		grid-template-columns: 1fr 1fr;
		gap: var(--hsp-space-7);
	}
}

.hsp-linklist {
	display: grid;
	gap: var(--hsp-space-2);
	list-style: none;
	margin: var(--hsp-space-4) 0 0;
	padding: 0;
}

.hsp-linklist a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	color: var(--hsp-blue);
	font-size: var(--hsp-text-sm);
	font-weight: 600;
	text-decoration: none;
}

.hsp-linklist a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hsp-regulators {
	background: var(--hsp-surface-alt);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
	max-width: none;
}

/* ---- Tags ---- */

.hsp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hsp-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-tags__link,
.hsp-tags__text {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 var(--hsp-space-4);
	border: 1px solid var(--hsp-line);
	border-radius: 100px;
	background: var(--hsp-surface);
	color: var(--hsp-navy);
	font-size: var(--hsp-text-sm);
	font-weight: 500;
	text-decoration: none;
}

.hsp-tags__link:hover {
	background: var(--hsp-navy);
	border-color: var(--hsp-navy);
	color: var(--hsp-surface);
}

/* ---- Disclosures ---- */

.hsp-disclosures {
	display: grid;
	gap: var(--hsp-space-3);
}

.hsp-disclosure {
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-line);
	border-left: 4px solid var(--hsp-navy);
	border-radius: var(--hsp-radius-lg);
	overflow: hidden;
}

.hsp-disclosure__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hsp-space-4);
	min-height: var(--hsp-tap);
	padding: var(--hsp-space-4) var(--hsp-space-5);
	cursor: pointer;
	list-style: none;
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-lg);
	font-weight: 600;
	color: var(--hsp-navy);
}

.hsp-disclosure__summary::-webkit-details-marker {
	display: none;
}

.hsp-disclosure__summary:hover {
	background: var(--hsp-surface-alt);
}

.hsp-disclosure__marker {
	position: relative;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
}

.hsp-disclosure__marker::before,
.hsp-disclosure__marker::after {
	content: "";
	position: absolute;
	background: var(--hsp-blue);
	transition: transform var(--hsp-transition);
}

.hsp-disclosure__marker::before {
	inset: 45% 0 auto 0;
	height: 2px;
}

.hsp-disclosure__marker::after {
	inset: 0 auto 0 45%;
	width: 2px;
}

.hsp-disclosure[open] .hsp-disclosure__marker::after {
	transform: scaleY(0);
}

.hsp-disclosure__panel {
	padding: 0 var(--hsp-space-5) var(--hsp-space-5);
	max-width: none;
}

/* ---- Recognition ---- */

.hsp-recognition__list {
	display: grid;
	gap: var(--hsp-space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-recognition__item {
	display: flex;
	align-items: center;
	gap: var(--hsp-space-4);
	background: var(--hsp-surface-alt);
	border: 1px solid var(--hsp-line);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-4);
	margin: 0;
}

.hsp-recognition__logo {
	flex: 0 0 auto;
	width: auto;
	max-width: 6.5rem;
	height: auto;
}

.hsp-recognition__text {
	margin: 0;
}

.hsp-recognition__source {
	display: block;
	color: var(--hsp-muted);
	font-size: var(--hsp-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.hsp-recognition__award {
	display: block;
	color: var(--hsp-navy);
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-lg);
	font-weight: 600;
	margin-top: var(--hsp-space-1);
}

/* ---- Contact block ---- */

.hsp-contact {
	background: var(--hsp-navy);
	border-radius: var(--hsp-radius-lg);
	color: var(--hsp-surface);
	padding: var(--hsp-space-6);
}

.hsp-contact .hsp-section__title,
.hsp-contact .hsp-prose {
	color: var(--hsp-surface);
}

.hsp-contact .hsp-prose {
	color: rgba(255, 255, 255, 0.86);
}

.hsp-contact__list {
	display: grid;
	gap: var(--hsp-space-4);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	list-style: none;
	margin: var(--hsp-space-5) 0 0;
	padding: 0;
}

.hsp-contact__item {
	margin: 0;
}

.hsp-contact__label {
	display: block;
	color: var(--hsp-yellow);
	font-size: var(--hsp-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: var(--hsp-space-2);
}

.hsp-contact__link {
	display: inline-flex;
	align-items: center;
	gap: var(--hsp-space-2);
	min-height: var(--hsp-tap);
	color: var(--hsp-surface);
	font-size: var(--hsp-text-base);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	word-break: break-word;
}

.hsp-contact__link:hover {
	color: var(--hsp-yellow);
}

.hsp-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 3px;
	background: var(--hsp-surface);
	color: var(--hsp-navy);
	font-weight: 700;
	font-size: var(--hsp-text-xs);
	flex: 0 0 auto;
}

.hsp-contact a:focus-visible {
	outline-color: var(--hsp-surface);
	box-shadow: 0 0 0 6px var(--hsp-navy);
}

/* ---- Feature block ---- */

.hsp-feature {
	display: grid;
	gap: var(--hsp-space-6);
	background: var(--hsp-surface-alt);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-6);
}

@media (min-width: 56.25em) {
	.hsp-feature {
		grid-template-columns: 1fr 1fr;
		gap: var(--hsp-space-7);
		align-items: center;
	}
}

.hsp-feature__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hsp-radius-lg);
}

.hsp-feature__subtitle {
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-lg);
	color: var(--hsp-navy);
	margin: var(--hsp-space-5) 0 var(--hsp-space-3);
}

/* ---- Levels ---- */

.hsp-levels {
	display: grid;
	gap: var(--hsp-space-3);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-levels__item {
	--hsp-level: var(--hsp-navy);
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-line);
	border-top: 4px solid var(--hsp-level);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-4);
	margin: 0;
}

.hsp-levels__item--bronze { --hsp-level: #7a4a21; }
.hsp-levels__item--silver { --hsp-level: #5b6470; }
.hsp-levels__item--gold { --hsp-level: #8a6a00; }
.hsp-levels__item--platinum { --hsp-level: var(--hsp-navy); }

.hsp-levels__name {
	display: block;
	color: var(--hsp-level);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--hsp-text-sm);
}

.hsp-levels__desc {
	display: block;
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	margin-top: var(--hsp-space-2);
	line-height: 1.5;
}

/* ---- Ticked prose lists ---- */

.hsp-prose--ticks ul {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: var(--hsp-space-3);
}

.hsp-prose--ticks li {
	display: grid;
	grid-template-columns: 1.25rem 1fr;
	gap: var(--hsp-space-2);
	align-items: start;
}

.hsp-prose--ticks li::before {
	content: "";
	width: 0.4rem;
	height: 0.75rem;
	margin: 0.35em 0 0 0.35rem;
	border: solid var(--hsp-green);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

@media (forced-colors: active) {
	.hsp-prose--ticks li::before {
		border-color: CanvasText;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsp-button,
	.hsp-disclosure__marker::before,
	.hsp-disclosure__marker::after {
		transition: none;
	}
}


/* ==========================================================================
   19. Polish, Part 1
   Targeted corrections only. Nothing here restyles an approved component.
   ========================================================================== */

/* A card grid that ends a section was adding its own bottom margin on top of
   the section's, producing a gap half again as large as everywhere else. */
.hsp-section > .hsp-cards:last-child,
.hsp-section > .hsp-testimonials:last-child {
	margin-bottom: 0;
}

/* The call to action sits inside the page flow, so its own top margin was
   stacking with the previous section's bottom margin. */
.hsp-page > .hsp-cta {
	margin-top: 0;
}

/* Portrait and landscape source images were sitting side by side at wildly
   different heights. A fixed ratio crops both consistently without distorting
   either. */
.hsp-intro__image {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

@media (max-width: 56.24em) {
	.hsp-intro__image {
		aspect-ratio: 16 / 9;
	}
}

/* Directory logos have very different proportions. Constraining the box rather
   than the image lets both sit on the same baseline. */
.hsp-recognition__logo {
	width: 5.5rem;
	height: 3.5rem;
	object-fit: contain;
	object-position: left center;
	max-width: none;
}

/* ---- Event cards ---- */

.hsp-card--event .hsp-meta--card {
	border-top: 0;
	padding-top: 0;
}

.hsp-card--event .hsp-meta--card .hsp-meta__row {
	grid-template-columns: 4.5rem 1fr;
}

.hsp-card--event .hsp-meta__label {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 700;
}

.hsp-card--event .hsp-meta__value {
	color: var(--hsp-navy);
	font-weight: 600;
}

/* ---- Attendee feedback ---- */

.hsp-quotes ul {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: var(--hsp-space-3);
}

.hsp-quotes li {
	background: var(--hsp-surface-alt);
	border-left: 3px solid var(--hsp-yellow);
	border-radius: 0 var(--hsp-radius) var(--hsp-radius) 0;
	color: var(--hsp-navy);
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-base);
	margin: 0;
	padding: var(--hsp-space-3) var(--hsp-space-4);
}

/* ---- Disclaimer ---- */

.hsp-disclaimer {
	background: var(--hsp-surface-alt);
	border: 1px solid var(--hsp-line);
	border-left: 4px solid var(--hsp-blue);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-space-5);
}

.hsp-disclaimer__title {
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-lg);
	color: var(--hsp-navy);
	margin: 0 0 var(--hsp-space-3);
}

.hsp-disclaimer__body {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	line-height: 1.65;
	max-width: none;
}

/* ---- Publications ---- */

.hsp-publications {
	display: grid;
	gap: var(--hsp-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsp-publications__item {
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-line);
	border-radius: var(--hsp-radius-lg);
	margin: 0;
	padding: var(--hsp-space-5);
}

.hsp-publications__source {
	display: block;
	color: var(--hsp-blue);
	font-size: var(--hsp-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: var(--hsp-space-2);
}

.hsp-publications__title {
	font-family: var(--hsp-font-heading);
	font-size: var(--hsp-text-lg);
	margin: 0;
}

.hsp-publications__title a {
	color: var(--hsp-navy);
	text-decoration: none;
}

.hsp-publications__title a:hover {
	color: var(--hsp-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hsp-publications__note {
	color: var(--hsp-muted);
	font-size: var(--hsp-text-sm);
	margin: var(--hsp-space-2) 0 0;
}

/* A single card should not stretch across the full grid width and look
   stranded; it keeps the width it would have had beside siblings. */
@media (min-width: 62em) {
	.hsp-cards--cols-3 > .hsp-card:only-child,
	.hsp-cards--cols-4 > .hsp-card:only-child {
		max-width: 24rem;
	}
}
