/* Neutral base styles shipped by site-kit. Client styles override the --sk-* tokens. */
:root {
	--sk-color-text: #1a1a1a;
	--sk-color-bg: #fff;
	--sk-color-muted: #4a4a4a;
	--sk-color-accent: #1f4e79;
	--sk-color-border: #767676;
	--sk-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sk-space-1: 0.25rem;
	--sk-space-2: 0.5rem;
	--sk-space-3: 1rem;
	--sk-space-4: 1.5rem;
	--sk-space-5: 2rem;
	--sk-space-6: 3rem;
	--sk-measure: 65ch;
	--sk-color-tint: color-mix(in srgb, var(--sk-color-accent) 6%, var(--sk-color-bg));
	--sk-focus-on-dark: var(--sk-color-bg);
	--sk-muted-on-dark: color-mix(in srgb, var(--sk-color-bg) 78%, var(--sk-color-text));
	/* var() in a custom property is substituted where it is declared: set --sk-width on :root to move the
	   whole column, or on one .sk-wrap to narrow only that wrap. The gutter's 100% resolves where it is used. */
	--sk-width: 60rem;
	--sk-gutter: max(var(--sk-space-3), (100% - var(--sk-width)) / 2 + var(--sk-space-3));
	--sk-band-pad: 3rem;
	--sk-main-pad: var(--sk-space-4);
	--sk-radius: 0.5rem;
	--sk-font-size-lead: 1.25rem;
	--sk-check: "\2713\0020";
	--sk-steps-font: var(--sk-font-body);
	--sk-hero-size: clamp(2rem, 1.2rem + 3.5vw, 3.25rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--sk-font-body);
	line-height: 1.6;
	color: var(--sk-color-text);
	background: var(--sk-color-bg);
}

main {
	padding-block: var(--sk-main-pad);
}

/* Header and footer span the page; the gutter lines their content up with the column. */
.sk-header,
.sk-footer {
	padding: var(--sk-space-4) var(--sk-gutter);
}

/* Content outside a band keeps the column. Zero specificity: any client rule overrides it. */
:where(main > :not(.sk-band)) {
	margin-inline: var(--sk-gutter);
}

/* --sk-link and --sk-focus are set by dark bands; the fallbacks are the light-surface look. */
a {
	color: var(--sk-link, var(--sk-color-accent));
}

:focus-visible {
	outline: 3px solid var(--sk-focus, var(--sk-color-accent));
	outline-offset: 2px;
}

.sk-skip {
	position: absolute;
	left: var(--sk-space-2);
	top: -4rem;
	padding: var(--sk-space-2) var(--sk-space-3);
	background: var(--sk-color-bg);
	z-index: 1;
}

.sk-skip:focus {
	top: var(--sk-space-2);
}

.sk-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sk-space-2);
}

/* Baseline alignment is only sensible for text; scoped to a logo so text-only headers don't move.
   Specificity (0,1,1): a client overrides it with the same selector. */
.sk-header:has(img) {
	align-items: center;
}

.sk-brand {
	font-size: 1.25rem;
	font-family: var(--sk-font-brand, inherit);
	font-weight: 700;
	text-decoration: none;
}

/* The logo shrinks with a narrow header; width/height attributes keep its ratio. */
:where(.sk-brand) img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Main menu. Below 768px it takes its own row (flex-basis, not `order`, so focus order stays
   brand, nav, phone). Specificity is kept at one class so a client overrides with one class. */
:where(.sk-header) > nav {
	flex: 1 1 100%;
}

.sk-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sk-space-1) var(--sk-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Hit target of at least 24x24 CSS px (WCAG 2.2 SC 2.5.8); max() keeps 24px if a client shrinks the
   root font size. The default focus ring is left alone. */
/* :where() on the ancestor keeps these at (0,1,0)/(0,1,1) so one client class overrides. */
:where(.sk-nav) a {
	display: inline-flex;
	align-items: center;
	min-width: max(1.5rem, 24px);
	min-height: max(1.5rem, 24px);
	text-decoration: none;
}

/* Reserves the bold width so the current item doesn't widen its link and shift the items after it.
   The link is a column flex box: the label and this zero-height copy stack, and the box is as wide
   as the wider of the two. visibility:hidden keeps the copy out of the accessibility tree (checked in Chrome), and
   pointer-events/user-select keep it from being clicked or selected. justify-content centres the
   label vertically (align-items would centre it across). The copy is display:block so it still
   stacks if a client changes the link's display. */
:where(.sk-nav) a[data-label] {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

:where(.sk-nav) a[data-label]::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	font-weight: 700;
	visibility: hidden;
	pointer-events: none;
	user-select: none;
}

/* Underline + weight, not colour alone, marks the current page. */
:where(.sk-nav) a[aria-current="page"] {
	font-weight: 700;
	text-decoration: underline;
}

:where(.sk-nav-menu) > summary {
	/* list-item keeps the native disclosure marker (flex would drop it). */
	display: list-item;
	width: fit-content;
	padding-block: var(--sk-space-1);
	min-height: max(1.5rem, 24px);
	cursor: pointer;
}

/* Open disclosure on a phone: the links stack. */
:where(.sk-nav-menu) .sk-nav {
	flex-direction: column;
}

@media (min-width: 768px) {
	:where(.sk-header) > nav {
		flex: 0 1 auto;
	}

	/* The row can wrap with 5-6 items near 768px; auto margin keeps the phone at the end. */
	:where(.sk-header) > nav ~ .sk-header-phone {
		margin-inline-start: auto;
	}

	/* One list at every width: where ::details-content exists (Chrome 131, Safari 18.4, Firefox 143)
	   the content is forced visible and the summary hidden. Elsewhere the summary stays, so the menu
	   is still reachable. */
	@supports selector(::details-content) {
		.sk-nav-menu::details-content {
			content-visibility: visible;
		}

		:where(.sk-nav-menu) > summary {
			display: none;
		}

		:where(.sk-nav-menu) .sk-nav {
			flex-direction: row;
		}
	}
}

.sk-footer {
	border-top: 1px solid var(--sk-color-border);
	color: var(--sk-muted, var(--sk-color-muted));
}

.sk-footer a {
	color: var(--sk-link, var(--sk-color-accent));
}

.sk-footer address {
	font-style: normal;
}

.sk-hours,
.sk-social-links,
.sk-legal-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sk-social-links,
.sk-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sk-space-3);
}

/* Hit target of at least 24x24 CSS px (WCAG 2.2 SC 2.5.8) is the link box, not the glyph; max()
   keeps 24px if a client shrinks the root font size. The default focus ring is left alone, and
   the logos get no transform or animation (brand rules). */
.sk-social-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: max(1.5rem, 24px);
	min-height: max(1.5rem, 24px);
}

.sk-social-icon {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

/* Hidden visually but still read by screen readers (unlike display: none). */
.sk-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

a[href^="tel:"] {
	white-space: nowrap;
}

.sk-button {
	display: inline-block;
	padding: var(--sk-space-2) var(--sk-space-4);
	font: inherit;
	color: var(--sk-button-ink, var(--sk-color-bg));
	background: var(--sk-button-bg, var(--sk-color-accent));
	border: 2px solid var(--sk-button-bg, var(--sk-color-accent));
	border-radius: 0.25rem;
	text-decoration: none;
	cursor: pointer;
}

.sk-button:hover {
	color: var(--sk-button-hover-ink, var(--sk-color-bg));
	background: var(--sk-button-hover-bg, var(--sk-color-text));
	border-color: var(--sk-button-hover-bg, var(--sk-color-text));
}

/* Colours only: padding, radius, font and border width come from .sk-button.
   Must stay after .sk-button:hover, which it overrides at equal specificity. */
.sk-button-outline {
	color: var(--sk-button-outline, var(--sk-color-accent));
	background: transparent;
	border-color: var(--sk-button-outline, var(--sk-color-accent));
}

.sk-button-outline:hover {
	color: var(--sk-button-outline-ink, var(--sk-color-bg));
	background: var(--sk-button-outline, var(--sk-color-accent));
	border-color: var(--sk-button-outline, var(--sk-color-accent));
}

.sk-on-dark {
	--sk-button-outline: var(--sk-color-bg);
	--sk-button-outline-ink: var(--sk-color-text);
}

.sk-apply-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sk-space-3);
	padding: 0;
	list-style: none;
}

.sk-apply-note {
	max-width: var(--sk-measure);
	margin: var(--sk-space-1) 0 0;
	color: var(--sk-muted, var(--sk-color-muted));
}

.sk-form {
	max-width: var(--sk-measure);
}

.sk-field {
	margin-bottom: var(--sk-space-3);
}

.sk-field label {
	display: block;
	margin-bottom: var(--sk-space-1);
	font-weight: 600;
}

.sk-field input[type="text"],
.sk-field input[type="email"],
.sk-field input[type="tel"],
.sk-field textarea {
	width: 100%;
	padding: var(--sk-space-2);
	font: inherit;
	color: var(--sk-color-text);
	background: var(--sk-color-bg);
	border: 1px solid var(--sk-color-border);
	border-radius: 0.25rem;
}

.sk-consent label {
	display: inline;
	font-weight: 400;
}

.sk-consent input {
	width: 1.25rem;
	height: 1.25rem;
}

.sk-disclosure {
	margin-top: var(--sk-space-1);
	font-size: 0.875rem;
	color: var(--sk-muted, var(--sk-color-muted));
}

/* A field's rule, between its label and its input. */
.sk-hint {
	margin: 0 0 var(--sk-space-1);
	font-size: 0.875rem;
	color: var(--sk-muted, var(--sk-color-muted));
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.sk-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sk-legal-page {
	max-width: var(--sk-measure);
}

.sk-jobs-page,
.sk-job {
	max-width: var(--sk-measure);
}

.sk-jobs {
	padding: 0;
	list-style: none;
}

:where(.sk-jobs-page) > :where(.sk-jobs-intro, .sk-jobs-contact, .sk-jobs-apply) {
	margin-block: var(--sk-space-3);
}

/* The equal opportunity statement follows the article, outside it. Vertical margins collapse, so the
   block above's bottom margin and the statement's own top margin (both --sk-space-3) would swallow
   an equal value and add nothing; --sk-space-5 is larger, so it wins and sets the visible gap. */
:where(.sk-jobs-page, .sk-job) + :where(.legal) {
	margin-block-start: var(--sk-space-5);
}

:where(.sk-contact-line) {
	/* A long email has no break points and would overflow a narrow screen. */
	overflow-wrap: anywhere;
}

.sk-job-card {
	margin-bottom: var(--sk-space-2);
}

.sk-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sk-space-1) var(--sk-space-2);
	padding: 0;
	list-style: none;
	color: var(--sk-muted, var(--sk-color-muted));
}

.sk-testimonials {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sk-space-5);
}

@media (min-width: 900px) {
	.sk-testimonials {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sk-testimonial,
.sk-testimonial blockquote {
	margin: 0;
}

/* Wrap a long unbreakable string (a URL in the quote, author or connection note) instead of widening the page;
   minmax(0, ...) above lets the column shrink. The card look is off by default (transparent, no padding, inherited
   ink) so v0.2.3 sites render as before. */
.sk-testimonial {
	overflow-wrap: anywhere;
	padding: var(--sk-testimonial-pad, 0);
	color: var(--sk-testimonial-ink, inherit);
	background: var(--sk-testimonial-bg, transparent);
	border-radius: var(--sk-testimonial-radius, var(--sk-radius));
}

/* :where() keeps these at low specificity so a client's own rule wins without a fight. */
.sk-testimonial blockquote :where(p) {
	margin: 0;
}

.sk-testimonial blockquote p + p {
	margin-top: var(--sk-space-3);
}

.sk-testimonial figcaption {
	margin-top: var(--sk-testimonial-caption-gap, var(--sk-space-2));
	font-weight: var(--sk-testimonial-caption-weight, inherit);
	text-align: var(--sk-testimonial-caption-align, inherit);
	color: var(--sk-testimonial-caption-ink, var(--sk-muted, var(--sk-color-muted)));
}

/* The ", " between author, role and date is drawn here, not in the markup, so a client can change it with one
   rule (`content: " | "`). Generated content is part of the accessible text, so a screen reader hears
   "Author, Role, Month D, YYYY". :where() keeps specificity at one class. */
:where(.sk-testimonial-role, .sk-testimonial-date)::before {
	content: ", ";
}

.sk-testimonial-connection {
	margin: var(--sk-space-1) 0 0;
}

/* Section patterns. Keep every selector at one class (client CSS loads second and must win with one),
   and take colours from tokens only (test/build/patterns.test.js checks this region). */
.sk-band {
	padding-block: var(--sk-band-pad);
}

@media (min-width: 768px) {
	:root {
		--sk-band-pad: 4.5rem;
	}
}

/* A band at the top or bottom of main sits flush against the header or footer: cancel main's padding. */
:where(main > .sk-band:first-child) {
	margin-block-start: calc(var(--sk-main-pad) * -1);
}

:where(main > .sk-band:last-child) {
	margin-block-end: calc(var(--sk-main-pad) * -1);
}

.sk-wrap {
	max-width: var(--sk-width);
	margin-inline: auto;
	padding-inline: var(--sk-space-3);
}

/* The band's padding sets the space at the top and bottom of its content. */
:where(.sk-band .sk-wrap > :first-child) {
	margin-block-start: 0;
}

:where(.sk-band .sk-wrap > :last-child) {
	margin-block-end: 0;
}

.sk-band-tint {
	background: var(--sk-color-tint);
}

/* Dark surfaces set the dark-context variables read by links, the focus ring and the buttons. */
.sk-band-dark,
.sk-band-accent {
	color: var(--sk-color-bg);
	--sk-link: currentColor;
	--sk-focus: var(--sk-focus-on-dark);
	--sk-muted: currentColor;
	--sk-button-outline: var(--sk-color-bg);
	--sk-button-outline-ink: var(--sk-color-text);
}

.sk-band-dark {
	background: var(--sk-color-text);
	--sk-muted: var(--sk-muted-on-dark);
	--sk-button-hover-bg: var(--sk-color-bg);
	--sk-button-hover-ink: var(--sk-color-text);
}

.sk-band-accent {
	background: var(--sk-color-accent);
	--sk-button-bg: var(--sk-color-bg);
	--sk-button-ink: var(--sk-color-accent);
}

.sk-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sk-space-4);
}

/* The minimum is capped at the container so one track never overflows a narrow screen. */
.sk-grid-auto {
	grid-template-columns: repeat(auto-fit, minmax(min(var(--sk-grid-min, 16rem), 100%), 1fr));
}

@media (min-width: 768px) {
	.sk-grid-2,
	.sk-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 75rem) {
	.sk-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* A card resets the dark-context variables, so it reads as a light surface inside any band.
   The border keeps it distinct from a tint band. */
.sk-card {
	padding: var(--sk-space-4);
	border: 1px solid var(--sk-color-border);
	border-radius: var(--sk-radius);
	overflow-wrap: anywhere;
	color: var(--sk-color-text);
	background: var(--sk-color-bg);
	--sk-link: initial;
	--sk-focus: initial;
	--sk-muted: initial;
	--sk-button-bg: initial;
	--sk-button-ink: initial;
	--sk-button-hover-bg: initial;
	--sk-button-hover-ink: initial;
	--sk-button-outline: initial;
	--sk-button-outline-ink: initial;
}

.sk-card-accent {
	border-inline-start: 4px solid var(--sk-color-accent);
}

/* --sk-muted is the band's muted colour (the band text on an accent band); the accent on light surfaces. */
.sk-kicker {
	margin-block: 0 var(--sk-space-2);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sk-muted, var(--sk-color-accent));
}

.sk-lead {
	max-width: var(--sk-measure);
	font-size: var(--sk-font-size-lead);
	overflow-wrap: anywhere;
	color: var(--sk-muted, inherit);
}

.sk-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sk-space-3);
}

/* Both lists keep a real marker, because hiding it drops list semantics in Safari and VoiceOver. */
.sk-checklist {
	list-style-type: var(--sk-check);
	padding-inline-start: var(--sk-space-5);
}

@media (min-width: 768px) {
	.sk-checklist {
		columns: 2;
		column-gap: var(--sk-space-5);
	}
}

:where(.sk-checklist > li) {
	overflow-wrap: anywhere;
	break-inside: avoid;
}

/* The accent can fail on a dark band; the link colour is the band text there. */
:where(.sk-checklist > li)::marker {
	color: var(--sk-link, var(--sk-color-accent));
}

.sk-steps {
	padding-inline-start: 3.5rem;
}

:where(.sk-steps > li) {
	overflow-wrap: anywhere;
	margin-block: var(--sk-space-3);
}

:where(.sk-steps > li)::marker {
	font-family: var(--sk-steps-font);
	font-size: 2rem;
	font-weight: 700;
	color: var(--sk-steps-color, var(--sk-link, var(--sk-color-accent)));
}

/* Hero: a band with a large h1, an optional lead and an action row. The media half is the client's.
   The bottom margin is skipped on a lone h1, so the band's padding sets the space; anywhere keeps a long word
   inside a 320px screen (WCAG 1.4.10). */
:where(.sk-hero) h1 {
	margin-block-start: 0;
	font-size: var(--sk-hero-size);
	line-height: 1.15;
	overflow-wrap: anywhere;
}

:where(.sk-hero h1:not(:last-child)) {
	margin-block-end: var(--sk-space-3);
}

:where(.sk-hero) .sk-lead {
	margin-block-start: 0;
}

:where(.sk-hero) .sk-actions {
	margin-block-start: var(--sk-space-4);
}

/* Header, footer and page title take one surface pair. The links, focus ring and muted text read the
   dark-context variables; unset, var() has no fallback, so those variables are guaranteed-invalid and the
   light-surface defaults apply. That also masks a value set by an ancestor, which is why these never sit in a band. */
.sk-header,
.sk-footer,
.sk-page-title {
	background: var(--sk-header-bg, transparent);
	--sk-link: var(--sk-header-ink);
	--sk-focus: var(--sk-header-ink);
	--sk-muted: var(--sk-header-ink);
}

.sk-header,
.sk-page-title {
	color: var(--sk-header-ink, inherit);
}

/* A coloured title needs room; 0 keeps today's look. */
.sk-page-title {
	padding: var(--sk-page-title-pad, 0) var(--sk-page-title-pad-inline, 0);
}

/* !important is deliberate: this must beat any author animation rule. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		/* biome-ignore lint/complexity/noImportantStyles: see above */
		animation-duration: 0.01ms !important;
		/* biome-ignore lint/complexity/noImportantStyles: see above */
		animation-iteration-count: 1 !important;
		/* biome-ignore lint/complexity/noImportantStyles: see above */
		scroll-behavior: auto !important;
		/* biome-ignore lint/complexity/noImportantStyles: see above */
		transition-duration: 0.01ms !important;
	}
}
