/*
 * Pharmalgorithm — "Living Atlas"
 * Front-end styles. Fonts are declared in theme.json (self-hosted, printed by WordPress).
 *
 * 1. Tokens          6. Homepage sections
 * 2. Base            7. Reading pages (pages, posts, blog)
 * 3. Utilities       8. Comments & forms
 * 4. Header          9. WordPress core classes
 * 5. Buttons & bits 10. Footer
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--pa-ink: #0B1315;
	--pa-deep: #12292A;
	--pa-pearl: #F1ECE8;
	--pa-paper: #FAF7F4;
	--pa-text: #EEEDEA;
	--pa-mist: #9DB3B0;
	--pa-mute: #7F9592;
	--pa-line: #2A3E3F;
	--pa-line-light: #D2CBC5;
	--pa-body-on-light: #2B3536;
	--pa-slate: #5A6967;

	--pa-turquoise: #5FD3CF;
	--pa-lagoon: #4FB3C8;
	--pa-ocean: #5C9BE0;
	--pa-violet: #A68CE0;
	--pa-magenta: #E46BA8;
	--pa-rose: #F2A3B3;
	--pa-gold: #E3B27C;
	--pa-amber: #E78F2F;

	--pa-ocean-deep: #1F6489;
	--pa-violet-deep: #6E4A9E;
	--pa-magenta-deep: #B13B74;
	--pa-ember: #B43D27;
	--pa-oxblood: #682522;

	--pa-accent: var(--pa-turquoise);

	--pa-display: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
	--pa-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pa-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	--pa-max: 1280px;
	--pa-gutter: clamp(20px, 5vw, 80px);
	--pa-section-pad: clamp(72px, 9vw, 128px);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--pa-ink);
	color: var(--pa-text);
	font-family: var(--pa-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img,
svg,
video {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--pa-accent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--pa-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
	margin: 0;
}

/* Headings take the colour of their surface (ink sections, pearl sections). */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--pa-accent);
	outline-offset: 3px;
}

.pa-surface-pearl :focus-visible,
.pa-reading :focus-visible {
	outline-color: var(--pa-ink);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* 3. Utilities ------------------------------------------------------------- */
.pa-wrap {
	max-width: var(--pa-max);
	margin-inline: auto;
	padding-inline: var(--pa-gutter);
}

.pa-section {
	padding-block: var(--pa-section-pad);
}

.pa-section--tight {
	padding-block: clamp(48px, 6vw, 88px);
}

.pa-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pa-stack-sm {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pa-stack-md {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pa-stack-lg {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.pa-measure {
	max-width: 640px;
}

.pa-rule-top {
	border-top: 1px solid var(--pa-line);
}

.pa-surface-pearl {
	background: var(--pa-pearl);
	color: var(--pa-ink);
}

.pa-surface-deep {
	background: var(--pa-deep);
}

.pa-accent { color: var(--pa-accent); }
.pa-text-turquoise { color: var(--pa-turquoise); }
.pa-text-lagoon { color: var(--pa-lagoon); }
.pa-text-ocean { color: var(--pa-ocean); }
.pa-text-violet { color: var(--pa-violet); }
.pa-text-magenta { color: var(--pa-magenta); }
.pa-text-rose { color: var(--pa-rose); }
.pa-text-gold { color: var(--pa-gold); }
.pa-text-amber { color: var(--pa-amber); }
.pa-text-ocean-deep { color: var(--pa-ocean-deep); }
.pa-text-violet-deep { color: var(--pa-violet-deep); }
.pa-text-magenta-deep { color: var(--pa-magenta-deep); }
.pa-text-ember { color: var(--pa-ember); }
.pa-text-slate { color: var(--pa-slate); }

.pa-bg-turquoise { background: var(--pa-turquoise); }
.pa-bg-lagoon { background: var(--pa-lagoon); }
.pa-bg-ocean { background: var(--pa-ocean); }
.pa-bg-violet { background: var(--pa-violet); }
.pa-bg-magenta { background: var(--pa-magenta); }
.pa-bg-rose { background: var(--pa-rose); }
.pa-bg-gold { background: var(--pa-gold); }
.pa-bg-amber { background: var(--pa-amber); }

.pa-border-ocean-deep { border-top-color: var(--pa-ocean-deep) !important; }
.pa-border-violet-deep { border-top-color: var(--pa-violet-deep) !important; }
.pa-border-magenta-deep { border-top-color: var(--pa-magenta-deep) !important; }
.pa-border-ember { border-top-color: var(--pa-ember) !important; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	z-index: 100000;
}

.pa-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--pa-accent);
	color: var(--pa-ink);
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
}

.pa-skip:focus {
	top: 12px;
	color: var(--pa-ink);
}

/* 4. Header ---------------------------------------------------------------- */
.pa-spectrum {
	display: flex;
	height: 4px;
}

.pa-spectrum span {
	flex: 1 1 0;
}

.pa-spectrum--thin {
	height: 3px;
}

.pa-header {
	border-bottom: 1px solid var(--pa-line);
}

.pa-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 18px;
}

.pa-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--pa-text);
	text-decoration: none;
}

.pa-brand:hover {
	color: var(--pa-text);
}

.pa-brand__logo {
	display: block;
	width: auto;
	height: 44px;
}

.pa-brand__name {
	font-family: var(--pa-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.pa-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 26px;
}

.pa-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.pa-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--pa-mist);
	text-decoration: none;
}

.pa-nav__list a:hover,
.pa-nav__list .current-menu-item > a,
.pa-nav__list .current_page_item > a,
.pa-nav__list .current-menu-ancestor > a {
	color: var(--pa-text);
}

.pa-nav__list .current-menu-item > a,
.pa-nav__list .current_page_item > a {
	text-decoration: underline;
	text-decoration-color: var(--pa-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

/* Phone menu (the button only appears when JavaScript runs). */
.pa-menu-toggle {
	display: none;
}

@media (max-width: 860px) {
	.pa-js .pa-menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 0 14px;
		background: transparent;
		color: var(--pa-text);
		border: 1px solid var(--pa-line);
		border-radius: 2px;
		font-family: var(--pa-sans);
		font-size: 15px;
		font-weight: 500;
		cursor: pointer;
	}

	.pa-menu-toggle__icon path {
		transition: transform 0.15s ease;
		transform-origin: 9px 9px;
	}

	.pa-menu-toggle[aria-expanded="true"] .pa-menu-toggle__top {
		transform: translateY(3px) rotate(45deg);
	}

	.pa-menu-toggle[aria-expanded="true"] .pa-menu-toggle__bottom {
		transform: translateY(-3px) rotate(-45deg);
	}

	.pa-js .pa-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: 12px;
	}

	.pa-js .pa-nav.is-open {
		display: flex;
	}

	.pa-js .pa-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.pa-js .pa-nav__list a {
		display: flex;
		width: 100%;
		min-height: 56px;
		border-bottom: 1px solid var(--pa-line);
		color: var(--pa-text);
		font-size: 18px;
	}

	.pa-js .pa-nav .pa-btn {
		align-self: flex-start;
		margin-top: 20px;
	}
}

/* 5. Buttons & small parts ------------------------------------------------- */
.pa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 6px;
}

.pa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--pa-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pa-btn--small {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.pa-btn--accent {
	background: var(--pa-accent);
	color: var(--pa-ink);
	font-weight: 600;
}

.pa-btn--accent:hover {
	background: var(--pa-text);
	color: var(--pa-ink);
}

.pa-btn--outline {
	border-color: currentColor;
	color: var(--pa-text);
}

.pa-btn--outline:hover {
	background: rgba(238, 237, 234, 0.1);
	color: var(--pa-text);
}

.pa-btn--ink {
	background: var(--pa-ink);
	color: var(--pa-pearl);
}

.pa-btn--ink:hover {
	background: var(--pa-deep);
	color: var(--pa-pearl);
}

.pa-eyebrow {
	font-family: var(--pa-mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pa-label {
	font-family: var(--pa-mono);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pa-num {
	font-family: var(--pa-mono);
	font-size: 13px;
}

.pa-caption {
	font-family: var(--pa-mono);
	font-size: 13px;
	line-height: 1.55;
	color: var(--pa-mist);
}

.pa-caption--light {
	color: var(--pa-slate);
}

.pa-h2 {
	font-family: var(--pa-display);
	font-size: clamp(36px, 4.4vw, 60px);
	font-weight: 500;
	line-height: 1.05;
}

.pa-h2--small {
	font-size: clamp(32px, 3.6vw, 48px);
	line-height: 1.1;
}

.pa-h3 {
	font-family: var(--pa-display);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
}

.pa-body-dark {
	max-width: 560px;
	color: var(--pa-mist);
	font-size: 17px;
	line-height: 1.65;
}

.pa-body-light {
	max-width: 600px;
	color: var(--pa-body-on-light);
	font-size: 17px;
	line-height: 1.65;
}

.pa-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 500;
}

.pa-arrow {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.pa-textlink:hover .pa-arrow {
	transform: translateX(4px);
}

/* 6. Homepage sections ----------------------------------------------------- */

/* Hero */
.pa-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
	padding-block: clamp(48px, 7vw, 104px);
}

.pa-hero__text {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pa-hero__title {
	font-family: var(--pa-display);
	font-size: clamp(48px, 6.6vw, 100px);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.pa-hero__lede {
	max-width: 540px;
	color: var(--pa-mist);
	font-size: 19px;
	line-height: 1.6;
}

.pa-plate {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pa-hero__plate {
	flex: 1 1 380px;
	max-width: 500px;
}

.pa-plate__frame {
	position: relative;
	height: clamp(440px, 46vw, 660px);
	overflow: hidden;
	border-radius: 2px;
	background: var(--pa-deep);
}

.pa-plate__frame picture {
	display: block;
	height: 100%;
}

.pa-plate__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pa-plate__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.pa-plate__tag {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 6px 9px;
	background: var(--pa-ink);
	color: var(--pa-accent);
	font-family: var(--pa-mono);
	font-size: 12px;
}

/* Split layouts */
.pa-split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
}

.pa-split--center {
	align-items: center;
}

.pa-split__wide {
	flex: 1 1 460px;
	min-width: 0;
	max-width: 660px;
}

.pa-split__narrow {
	flex: 1 1 340px;
	min-width: 0;
}

.pa-split__half {
	flex: 1 1 440px;
	min-width: 0;
}

.pa-split__aside {
	flex: 1 1 340px;
	min-width: 0;
	max-width: 460px;
}

.pa-split__main {
	flex: 999 1 520px;
	min-width: 0;
}

.pa-figure {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pa-figure--max {
	max-width: 620px;
}

.pa-fig {
	display: block;
	width: 100%;
	height: auto;
}

.pa-fig--engine {
	border-radius: 2px;
}

/* Fig. 1 steps */
.pa-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-steps__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 0;
	border-top: 1px solid var(--pa-line);
}

.pa-steps__item:last-child {
	border-bottom: 1px solid var(--pa-line);
}

.pa-steps__title {
	font-family: var(--pa-display);
	font-size: 22px;
}

.pa-steps__text {
	color: var(--pa-mist);
	font-size: 15px;
	line-height: 1.55;
}

/* Section heads */
.pa-section-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pa-section-head--row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 28px;
}

.pa-section-head--row > .pa-stack-sm {
	flex: 1 1 520px;
	min-width: 0;
}

/* What we do */
.pa-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 28px;
}

.pa-service {
	flex: 1 1 250px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 22px;
	border-top: 3px solid var(--pa-ink);
}

.pa-service__title {
	font-family: var(--pa-sans);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.pa-service__text {
	color: var(--pa-body-on-light);
	font-size: 16px;
	line-height: 1.6;
}

/* Why it matters */
.pa-bignum {
	color: var(--pa-gold);
	font-family: var(--pa-display);
	font-size: clamp(96px, 13vw, 180px);
	font-weight: 500;
	line-height: 0.85;
}

.pa-attrition__source {
	height: 1.5px;
	background: #5E7472;
}

.pa-attrition__lines {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	height: 320px;
	padding: 0 4px;
}

.pa-attrition__branch {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 14px;
}

.pa-attrition__stem {
	width: 1.5px;
	background: #5E7472;
}

.pa-attrition__end {
	width: 12px;
	height: 1.5px;
	background: #5E7472;
}

.pa-attrition__branch.is-survivor .pa-attrition__stem {
	width: 2px;
	background: var(--pa-accent);
}

.pa-attrition__branch.is-survivor .pa-attrition__end {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--pa-accent);
}

/* Approach */
.pa-commitments {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-commitment {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pa-commitment picture {
	display: block;
	width: min(160px, 100%);
}

.pa-commitment__tile {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 2px;
}

@media (max-width: 560px) {
	.pa-commitments {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 16px;
	}

	.pa-commitment {
		gap: 12px;
	}

	.pa-commitment__title {
		font-size: 21px;
	}
}

.pa-commitment__title {
	font-family: var(--pa-display);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.15;
}

/* Expertises */
.pa-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-rows li:last-child .pa-row {
	border-bottom: 1px solid var(--pa-line);
}

.pa-row {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 66px;
	padding-block: 10px;
	border-top: 1px solid var(--pa-line);
	color: var(--pa-text);
	text-decoration: none;
}

.pa-row:hover {
	color: var(--pa-text);
}

.pa-row__num {
	width: 30px;
	flex-shrink: 0;
	font-family: var(--pa-mono);
	font-size: 13px;
}

.pa-row__title {
	flex-grow: 1;
	font-family: var(--pa-display);
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.2;
	transition: color 0.15s ease;
}

.pa-row .pa-arrow {
	color: var(--pa-mist);
}

.pa-row:hover .pa-row__title {
	color: var(--pa-accent);
}

.pa-row:hover .pa-arrow {
	color: var(--pa-accent);
	transform: translateX(4px);
}

/* Open Academy */
#academy .pa-cards {
	gap: 20px;
}

.pa-card {
	flex: 1 1 260px;
	min-width: 0;
	min-height: 168px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: var(--pa-paper);
	border: 1px solid var(--pa-line-light);
	border-top-width: 3px;
	border-radius: 2px;
}

.pa-card__title {
	font-family: var(--pa-display);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.pa-card__title a {
	color: var(--pa-ink);
	text-decoration: none;
}

.pa-card__title a:hover {
	color: var(--pa-ocean-deep);
	text-decoration: underline;
}

.pa-card__text {
	color: #3E4A49;
	font-size: 15px;
	line-height: 1.55;
}

.pa-card--growing {
	justify-content: flex-end;
	gap: 8px;
	background: transparent;
	border: 1.5px dashed #8E9896;
}

/* 7. Reading pages --------------------------------------------------------- */
.pa-page-head__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px);
}

.pa-page-title {
	max-width: 960px;
	font-family: var(--pa-display);
	font-size: clamp(40px, 5.4vw, 80px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.pa-page-lede {
	max-width: 640px;
	color: var(--pa-mist);
	font-size: 19px;
	line-height: 1.6;
}

.pa-page-lede p {
	margin: 0;
}

.pa-page-search {
	max-width: 560px;
	padding-top: 8px;
}

.pa-reading {
	padding-block: clamp(48px, 6vw, 88px);
	color: var(--pa-ink);
}

.pa-featured {
	max-width: 1120px;
	margin: 0 auto clamp(40px, 5vw, 64px);
}

.pa-featured img {
	display: block;
	width: 100%;
	border-radius: 2px;
}

/* Post content */
.pa-entry {
	max-width: 720px;
	margin-inline: auto;
	color: var(--pa-ink);
	font-size: 18px;
	line-height: 1.7;
}

.pa-entry::after {
	content: "";
	display: table;
	clear: both;
}

.pa-entry > * {
	margin-block: 0;
}

.pa-entry > * + * {
	margin-block-start: 1.4em;
}

.pa-entry > :where(h2, h3, h4, h5, h6) {
	margin-block-start: 2em;
}

.pa-entry > :where(h2, h3, h4, h5, h6) + * {
	margin-block-start: 0.8em;
}

.pa-entry h1,
.pa-entry h2 {
	font-family: var(--pa-display);
	font-weight: 500;
	line-height: 1.12;
}

.pa-entry h1 { font-size: clamp(36px, 4vw, 52px); }
.pa-entry h2 { font-size: clamp(28px, 3vw, 36px); }

.pa-entry h3 {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.pa-entry h4 {
	font-size: 18px;
	font-weight: 600;
}

.pa-entry h5,
.pa-entry h6 {
	font-family: var(--pa-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pa-entry a:where(:not(.wp-element-button)) {
	color: var(--pa-ocean-deep);
}

.pa-entry a:where(:not(.wp-element-button)):hover {
	color: var(--pa-ink);
}

.pa-entry ul,
.pa-entry ol {
	padding-left: 1.3em;
}

.pa-entry li + li {
	margin-top: 0.4em;
}

.pa-entry blockquote:not(.wp-block-pullquote blockquote) {
	margin-inline: 0;
	padding-top: 1.2rem;
	border-top: 1px solid var(--pa-ink);
	font-family: var(--pa-display);
	font-size: 22px;
	font-style: italic;
	line-height: 1.4;
}

.pa-entry blockquote cite,
.pa-entry .wp-block-quote cite {
	display: block;
	margin-top: 12px;
	color: var(--pa-slate);
	font-family: var(--pa-mono);
	font-size: 13px;
	font-style: normal;
}

.pa-entry code,
.pa-entry kbd {
	padding: 0.1em 0.35em;
	background: #E4DDD7;
	border-radius: 2px;
	font-family: var(--pa-mono);
	font-size: 0.86em;
}

.pa-entry pre {
	overflow-x: auto;
	padding: 20px 22px;
	background: var(--pa-ink);
	color: var(--pa-text);
	border-radius: 2px;
	font-family: var(--pa-mono);
	font-size: 14px;
	line-height: 1.6;
}

.pa-entry pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.pa-entry hr {
	border: 0;
	border-top: 1px solid #C9C2BC;
}

.pa-entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.pa-entry th,
.pa-entry td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--pa-line-light);
	text-align: left;
	vertical-align: top;
}

.pa-entry th {
	font-family: var(--pa-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pa-entry img {
	border-radius: 2px;
}

.pa-entry figcaption,
.wp-element-caption {
	margin-top: 10px;
	color: var(--pa-slate);
	font-family: var(--pa-mono);
	font-size: 13px;
	line-height: 1.55;
}

.pa-entry .alignwide {
	margin-inline: calc(-1 * max(0px, min(200px, (100vw - 2 * var(--pa-gutter) - 720px) / 2)));
	max-width: none;
}

.pa-entry .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.pa-entry .alignfull img,
.pa-entry .alignwide img {
	width: 100%;
}

.pa-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 40px;
	font-family: var(--pa-mono);
	font-size: 14px;
}

.pa-entry-footer {
	max-width: 720px;
	margin: 48px auto 0;
}

.pa-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-tags a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid #C9C2BC;
	border-radius: 999px;
	color: var(--pa-ink);
	font-family: var(--pa-mono);
	font-size: 12px;
	text-decoration: none;
}

.pa-tags a:hover {
	border-color: var(--pa-ink);
}

.pa-postnav {
	max-width: 720px;
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid #C9C2BC;
}

.pa-postnav .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
}

.pa-postnav a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 320px;
	color: var(--pa-ink);
	text-decoration: none;
}

.pa-postnav .nav-next {
	margin-left: auto;
	text-align: right;
}

.pa-postnav .pa-label {
	color: var(--pa-slate);
}

.pa-postnav__title {
	font-family: var(--pa-display);
	font-size: 20px;
	line-height: 1.25;
}

.pa-postnav a:hover .pa-postnav__title {
	color: var(--pa-ocean-deep);
	text-decoration: underline;
}

/* Blog list */
.pa-postgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 56px 32px;
}

.pa-postcard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid #C9C2BC;
}

.pa-postcard.sticky {
	border-top: 3px solid var(--pa-ocean-deep);
}

.pa-postcard__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 2px;
	margin-bottom: 8px;
}

.pa-postcard__title {
	font-family: var(--pa-display);
	font-size: clamp(24px, 2.2vw, 30px);
	font-weight: 500;
	line-height: 1.15;
}

.pa-postcard__title a {
	color: var(--pa-ink);
	text-decoration: none;
}

.pa-postcard__title a:hover {
	color: var(--pa-ocean-deep);
	text-decoration: underline;
}

.pa-postcard__excerpt {
	color: var(--pa-body-on-light);
	font-size: 16px;
	line-height: 1.6;
}

.pa-postcard__excerpt p {
	margin: 0;
}

.pa-pagination {
	margin-top: 64px;
}

.pa-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pa-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #C9C2BC;
	border-radius: 2px;
	color: var(--pa-ink);
	font-family: var(--pa-mono);
	font-size: 14px;
	text-decoration: none;
}

.pa-pagination a.page-numbers:hover {
	border-color: var(--pa-ink);
}

.pa-pagination .page-numbers.current {
	background: var(--pa-ink);
	border-color: var(--pa-ink);
	color: var(--pa-pearl);
}

.pa-pagination .page-numbers.dots {
	border-color: transparent;
}

.pa-empty {
	max-width: 640px;
	color: var(--pa-ink);
}

/* 404 */
.pa-notfound {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 80px;
}

.pa-notfound .pa-bignum {
	font-size: clamp(120px, 18vw, 240px);
}

/* 8. Comments & forms ------------------------------------------------------ */
.pa-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pa-search__input,
.pa-comments input[type="text"],
.pa-comments input[type="email"],
.pa-comments input[type="url"],
.pa-comments textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	background: var(--pa-paper);
	color: var(--pa-ink);
	border: 1px solid #9FA6A4;
	border-radius: 2px;
	font: inherit;
	font-size: 16px;
}

.pa-search__input {
	flex: 1 1 220px;
	width: auto;
}

.pa-page-head .pa-search__button,
.pa-notfound .pa-search__button {
	background: var(--pa-accent);
	color: var(--pa-ink);
	font-weight: 600;
}

.pa-page-head .pa-search__button:hover,
.pa-notfound .pa-search__button:hover {
	background: var(--pa-text);
}

.pa-comments {
	max-width: 720px;
	margin: 72px auto 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	color: var(--pa-ink);
}

.pa-comment-list,
.pa-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-comment-list .children {
	padding-left: clamp(16px, 4vw, 40px);
}

.pa-comment-list .comment-body {
	padding: 20px 0;
	border-top: 1px solid #C9C2BC;
}

.pa-comment-list .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--pa-slate);
	font-family: var(--pa-mono);
	font-size: 12px;
}

.pa-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--pa-ink);
	font-family: var(--pa-sans);
	font-size: 15px;
}

.pa-comment-list .avatar {
	border-radius: 50%;
}

.pa-comment-list .says {
	display: none;
}

.pa-comment-list .comment-metadata a {
	color: var(--pa-slate);
}

.pa-comment-list .reply a {
	font-family: var(--pa-mono);
	font-size: 12px;
	color: var(--pa-ocean-deep);
}

.bypostauthor > .comment-body {
	border-top: 2px solid var(--pa-ocean-deep);
}

.pa-comments .comment-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pa-comments .comment-form p {
	margin: 0;
}

.pa-comments .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--pa-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pa-comments .comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.pa-comments .comment-form-cookies-consent label {
	margin: 0;
	font-family: var(--pa-sans);
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

.pa-comments .comment-notes,
.pa-comments .logged-in-as {
	color: var(--pa-slate);
	font-size: 15px;
}

/* 9. WordPress core classes ------------------------------------------------ */
.alignleft {
	float: left;
	margin: 0.4em 1.6em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.6em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	display: block;
}

.wp-caption-text,
.gallery-caption {
	margin-top: 10px;
	color: var(--pa-slate);
	font-family: var(--pa-mono);
	font-size: 13px;
}

.sticky {
	position: relative;
}

@media (max-width: 600px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

/* 10. Footer --------------------------------------------------------------- */
.pa-footer {
	border-top: 1px solid var(--pa-line);
	background: var(--pa-ink);
}

.pa-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-block: 64px 40px;
}

.pa-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
}

.pa-footer__brand {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.pa-footer__tagline {
	max-width: 320px;
	color: var(--pa-mist);
	font-family: var(--pa-display);
	font-size: 20px;
	font-style: italic;
	line-height: 1.35;
}

.pa-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 56px;
}

.pa-footer__label {
	margin-bottom: 10px;
	color: var(--pa-mute);
	font-family: var(--pa-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pa-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--pa-text);
	font-size: 15px;
	text-decoration: none;
}

.pa-footer__list a:hover {
	color: var(--pa-accent);
}

.pa-footer__list a.pa-footer__email {
	color: var(--pa-accent);
}

.pa-footer__list a.pa-footer__email:hover {
	color: var(--pa-text);
}

.pa-footer__muted {
	color: var(--pa-mist);
	font-size: 15px;
}

.pa-footer__copy {
	color: var(--pa-mute);
	font-family: var(--pa-mono);
	font-size: 12px;
}

/* Homepage additions — row descriptions, commitment texts, Who we serve, contact line ----- */
.pa-row__body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pa-row__desc { color: var(--pa-mist); font-family: var(--pa-sans); font-size: 15px; line-height: 1.5; }
.pa-commitment__text { color: var(--pa-mist); font-size: 16px; line-height: 1.6; }
.pa-border-slate { border-top-color: var(--pa-slate) !important; }
.pa-border-oxblood { border-top-color: var(--pa-oxblood) !important; }
.pa-text-oxblood { color: var(--pa-oxblood); }
.pa-cards--audiences .pa-service { flex-basis: 300px; }
#audiences .pa-textlink { color: var(--pa-ocean-deep); }
#audiences .pa-textlink:hover { color: var(--pa-ink); }
.pa-cta__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; color: var(--pa-mist); font-size: 16px; }
.pa-cta__email { color: var(--pa-accent); }
.pa-cta__email:hover { color: var(--pa-text); }
