/**
 * PSTV base — typography, container, buttons, forms.
 * Hello Elementor ships a light reset; this sits on top of it.
 */

/* ---- Normalise -------------------------------------------------------------
 * The parent theme's reset is dequeued in inc/enqueue.php because it is not a
 * neutral normalise — it skins links and buttons pink. Everything it usefully
 * flattened is flattened here instead, in brand terms.
 */

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

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	color: inherit;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-inline-start: 1.3em;
}

dl, dd {
	margin: 0;
}

figure, blockquote {
	margin: 0;
}

figcaption {
	font-size: 0.8125rem;
	color: var(--pstv-grey);
}

b, strong { font-weight: 700; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }

code, kbd, samp, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre { white-space: pre-wrap; }

/* Tables: no zebra striping, no row-hover tint — the brand uses hairlines. */
table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
}

th { font-weight: 700; text-align: start; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

details { display: block; }
summary { display: list-item; cursor: pointer; }

[hidden], template { display: none !important; }

/* Form controls inherit the brand face rather than the system UI font. */
button, input, optgroup, select, textarea {
	margin: 0;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	color: inherit;
}

button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }

/* A bare <button> carries no colour of its own — components opt in. */
button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

textarea { overflow: auto; resize: vertical; }
progress { vertical-align: baseline; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }

body {
	margin: 0;
	font-family: var(--pstv-font);
	font-size: var(--pstv-body-size);
	line-height: var(--pstv-body-lh);
	color: var(--pstv-navy);
	background: var(--pstv-paper);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--pstv-blue);
	text-decoration: none;
	transition: color var(--pstv-dur) var(--pstv-ease);
}

a:hover,
a:focus-visible {
	color: var(--pstv-navy);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--pstv-blue);
	outline-offset: 3px;
	border-radius: 2px;
}

.pstv-skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--pstv-navy);
	color: #fff;
	font-size: var(--pstv-nav-size);
	letter-spacing: var(--pstv-nav-ls);
}

.pstv-skip-link:focus {
	inset-inline-start: 0;
	color: #fff;
}

/* ---- Container ------------------------------------------------------- */

.pstv-container {
	width: 100%;
	max-width: calc(var(--pstv-container) + var(--pstv-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--pstv-gutter);
}

.pstv-container--wide {
	max-width: none;
	padding-inline: var(--pstv-gutter);
}

/* Full-bleed split sections carry no padding — the colour runs edge to edge. */
.pstv-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pstv-split__media {
	background-size: cover;
	background-position: center;
	min-height: 560px;
}

.pstv-split__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--pstv-space-lg) 78px;
	min-height: 560px;
}

@media (max-width: 900px) {
	.pstv-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.pstv-split__media {
		min-height: 300px;
	}

	.pstv-split__panel {
		min-height: 0;
		padding: var(--pstv-space-lg) var(--pstv-gutter-mobile);
	}

	/* On a stacked split the image always leads, whichever side it sat on. */
	.pstv-split--reverse .pstv-split__media {
		order: -1;
	}
}

/* ---- Type ------------------------------------------------------------ */

.pstv-display {
	font: var(--pstv-display);
	letter-spacing: var(--pstv-display-ls);
	margin: 0;
	text-wrap: balance;
}

.pstv-h2 {
	font: var(--pstv-section);
	margin: 0;
	text-transform: uppercase;
	text-wrap: balance;
}

.pstv-h2--sm {
	font: var(--pstv-section-sm);
}

.pstv-eyebrow {
	font-size: var(--pstv-eyebrow-size);
	font-weight: 700;
	letter-spacing: var(--pstv-eyebrow-ls);
	text-transform: uppercase;
	margin: 0;
}

.pstv-section-heading {
	font-size: var(--pstv-heading-size);
	font-weight: 700;
	letter-spacing: var(--pstv-heading-ls);
	text-transform: uppercase;
	margin: 0;
}

.pstv-lead {
	font-size: var(--pstv-body-lead);
	line-height: 1.62;
	margin: 0;
	text-wrap: pretty;
}

.pstv-body {
	margin: 0;
	text-wrap: pretty;
}

.pstv-meta {
	font-size: var(--pstv-meta-size);
	color: var(--pstv-grey);
}

.pstv-on-dark,
.pstv-on-dark .pstv-meta {
	color: #fff;
}

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

.pstv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--pstv-btn-md);
	padding-inline: 38px;
	border: 1px solid transparent;
	border-radius: var(--pstv-radius);
	background: var(--pstv-navy);
	color: #fff;
	font-family: inherit;
	font-size: var(--pstv-btn-size);
	font-weight: 500;
	letter-spacing: var(--pstv-btn-ls);
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background var(--pstv-dur) var(--pstv-ease),
		color var(--pstv-dur) var(--pstv-ease),
		border-color var(--pstv-dur) var(--pstv-ease);
}

.pstv-btn:hover,
.pstv-btn:focus-visible {
	background: #0f1b3d;
	color: #fff;
}

.pstv-btn--xl { min-height: var(--pstv-btn-xl); padding-inline: 40px; }
.pstv-btn--lg { min-height: var(--pstv-btn-lg); }
.pstv-btn--md { min-height: var(--pstv-btn-md); padding-inline: 40px; }

.pstv-btn--sm {
	min-height: var(--pstv-btn-sm);
	padding-inline: 26px;
	font-size: var(--pstv-btn-size-sm);
}

.pstv-btn--blue {
	background: var(--pstv-blue);
}

.pstv-btn--blue:hover,
.pstv-btn--blue:focus-visible {
	background: #006ba8;
}

/* Outline on white. */
.pstv-btn--outline {
	background: transparent;
	border-color: var(--pstv-navy);
	color: var(--pstv-navy);
}

.pstv-btn--outline:hover,
.pstv-btn--outline:focus-visible {
	background: var(--pstv-navy);
	color: #fff;
}

/* Outline on a colour field — inherits the surrounding flavour. */
.pstv-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.9);
	color: #fff;
}

.pstv-btn--ghost:hover,
.pstv-btn--ghost:focus-visible {
	background: #fff;
	color: var(--pstv-flavour-solid, var(--pstv-navy));
}

/* Solid flavour fill. Uses the -solid variant, which clears 4.5:1 behind
 * white type — #DE6833 does not, so orange resolves to #D9440F here. */
.pstv-btn--flavour {
	background: var(--pstv-flavour-solid, var(--pstv-navy));
}

.pstv-btn--flavour:hover,
.pstv-btn--flavour:focus-visible {
	background: var(--pstv-navy);
}

.pstv-btn[disabled],
.pstv-btn--disabled {
	background: var(--pstv-disabled-bg);
	border-color: transparent;
	color: var(--pstv-grey-muted);
	cursor: not-allowed;
	pointer-events: none;
}

.pstv-btn--block {
	width: 100%;
}

/* ---- Pills / filters --------------------------------------------------- */

.pstv-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--pstv-pill);
	padding-inline: 24px;
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	background: transparent;
	color: var(--pstv-navy);
	font-family: inherit;
	font-size: var(--pstv-btn-size-sm);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.pstv-pill[aria-current="true"],
.pstv-pill--active {
	background: var(--pstv-navy);
	border-color: var(--pstv-navy);
	color: #fff;
}

@media (max-width: 767px) {
	.pstv-pill {
		min-height: var(--pstv-tap);
	}
}

/* ---- Forms ------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: var(--pstv-tap);
	padding: 12px 18px;
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	background: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--pstv-navy);
}

textarea {
	border-radius: 14px;
	min-height: 140px;
}

::placeholder {
	color: var(--pstv-grey-muted);
	opacity: 1;
}

/* ---- Utility ----------------------------------------------------------- */

.pstv-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pstv-claims {
	display: flex;
	flex-wrap: wrap;
	gap: 42px;
	margin: 0;
	padding: 46px 0 0;
	list-style: none;
}

.pstv-claims__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	width: 74px;
	font-size: 0.65625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
}

.pstv-stars {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	line-height: 1;
}

.pstv-stack {
	display: flex;
	flex-direction: column;
}

.pstv-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.pstv-scroll-x {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
