/* ==========================================================================
   C&A Holdings — main stylesheet
   ========================================================================== */

:root {
	--c-primary-blue: #2EA7E0;
	--c-base: #ffffff;
	--c-surface: #F7F7F7;
	--c-border: #dde3ea;
	--c-text: #1f2933;
	--c-muted: #5f6b7a;
	--c-primary: #000000;
	--c-primary-light: #cccccc;
	--c-accent: #c8a24a;

	--f-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	--f-serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", YuMincho, serif;
	--f-latin: "Helvetica Neue", Arial, sans-serif;

	--fs-sm: 0.875rem;
	--fs-md: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	--fs-lg: clamp(1.125rem, 1rem + 0.8vw, 1.562rem);
	--fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.562rem);
	--fs-1-5xl: clamp(1.562rem, 1.2rem + 1.6vw, 1.875rem);
	--fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
	--fs-3xl: clamp(1.875rem, 1.3rem + 2.8vw, 3.5rem);
	--sp-section: clamp(3.5rem, 8vw, 6.5rem);
	--sp-gutter: 1.5rem;
	--w-wide: 924px;
	--w-narrow: 1000px;
	--w-content: 800px;
	--w-narrow-content: 600px;
	--header-h: 76px;
	/* Top padding of inner-page heroes: never less than the fixed header plus breathing room. */
	--page-top: clamp(calc(var(--header-h) + 2.5rem), 13vw, 13rem);
}

/* Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	background: var(--c-base);
	color: #000;
	font-family: var(--f-sans);
	font-size: 1rem;
	line-height: 1.9;
	letter-spacing: 0.07em;
	font-feature-settings: "palt";
	line-break: strict;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

figure {
	margin: 0;
}

a {
	color:var(--c-primary-blue);
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
	color: var(--c-accent);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	color: var(--c-primary);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
}

/* Tablet and smaller: break Japanese headings between phrases (文節) instead of mid-word, where supported. */
@media (max-width: 781px) {
	h1,
	h2,
	h3,
	h4 {
		word-break: auto-phrase;
	}
}

p {
	margin: 0 0 1.2em;
}

address {
	font-style: normal;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75em 1.25em;
	clip: auto;
	background: var(--c-base);
	color: var(--c-primary);
}

.muted {
	color: var(--c-muted);
}

@media (max-width: 599px) {
	.pc-only {
		display: none;
	}
}

/* Layout
   ========================================================================== */

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

.container--narrow {
	max-width: calc(var(--w-narrow) + var(--sp-gutter) * 2);
}

.container--content {
	max-width: calc(var(--w-content) + var(--sp-gutter) * 2);
}

.section {
	padding-block: var(--sp-section);
}

.section--tight {
	padding-block: clamp(2.5rem, 5vw, 4rem) var(--sp-section);
}

.section--surface {
	background: var(--c-surface);
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.split--message {
	grid-template-columns: 35fr 65fr;
	align-items: start;
}

.split--news {
	grid-template-columns: 30fr 70fr;
	align-items: start;
}

.split__body > :last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.split,
	.split--message,
	.split--news {
		grid-template-columns: 1fr;
	}
}

/* Typography helpers
   ========================================================================== */

.eyebrow {
	margin: 0 0 0.75em;
	color: var(--c-accent);
	font-family: var(--f-latin);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.section-title {
	font-size: var(--fs-2xl);
}

.section-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 0.75em;
	background: var(--c-accent);
}

.section-title--serif {
	font-family: var(--f-serif);
}

.section-head {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head--center {
	text-align: center;
}

.section-head--center .section-title::after {
	margin-inline: auto;
}

.section-head__lead {
	margin: 0;
	color: var(--c-muted);
}

.section-foot {
	margin: clamp(2rem, 5vw, 3.5rem) 0 0;
	text-align: center;
}

/* Buttons
   ========================================================================== */

.btn {
	display: inline-block;
	padding: 0.9em 2.2em;
	border: 1px solid var(--c-primary);
	border-radius: 2px;
	background: var(--c-primary);
	color: var(--c-base);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: var(--c-primary);
}

.btn--accent {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: var(--c-primary);
}

.btn--accent:hover,
.btn--accent:focus-visible {
	border-color: var(--c-base);
	background: var(--c-base);
}

.btn--outline {
	background: transparent;
	color: var(--c-primary);
}

.btn--outline-light {
	border-color: var(--c-base);
	background: transparent;
	color: var(--c-base);
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	z-index: 100;
	width: 100%;
	background: transparent linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 53%, #FFFFFF00 100%) 0% 0% no-repeat padding-box;
	padding-top: 5px;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
	padding-inline: calc(var(--sp-gutter) - 10px);
}

.site-branding__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--c-primary);
	text-decoration: none;
	line-height: 1.4;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
}

.site-branding__en {
	color: var(--c-accent);
	font-family: var(--f-latin);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.site-branding__name {
	font-size: var(--fs-sm);
	font-weight: 300;
	letter-spacing: 0.08em;
	color: #000000;
}

.custom-logo {
	flex-shrink: 0;
	width: auto;
	max-height: 48px;
}

/* VR tour link, shown before the hamburger button */
.header-vr {
	flex-shrink: 0;
	margin-left: auto;
	transition: opacity 0.2s ease;
}

.header-vr:hover {
	opacity: 0.7;
}

.header-vr img {
	display: block;
	width: 145px;
	height: auto;
}

@media (max-width: 599px) {
	.site-header__inner {
		gap: 0.75rem;
		min-height: 64px;
	}

	/* Phones: logo + company name and the menu button; the VR link is in the page (front page VR section). */
	.header-vr {
		display: none;
	}

	.site-branding__link {
		gap: 0.5rem;
	}

	.site-branding__name {
		font-size: 0.8125rem;
		letter-spacing: 0.02em;
		white-space: nowrap;
	}

	.custom-logo {
		max-height: 40px;
	}

	.menu-toggle {
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		margin-left: auto;
	}
}

/* Very narrow phones (320px): keep the name on one line beside the menu button. */
@media (max-width: 359px) {
	.site-branding__name {
		font-size: 0.6875rem;
	}

	.custom-logo {
		max-height: 34px;
	}
}

/* Hamburger menu (all screen widths) */
.menu-toggle {
	position: relative;
	display: block;
	flex-shrink: 0;
	box-sizing: border-box;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid var(--c-primary);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

/* Three 21px lines, 1px thick, 6px apart. */
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	position: absolute;
	width: 21px;
	height: 1px;
	background: var(--c-primary);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.menu-toggle__bar {
	top: 50%;
	left: 50%;
	margin: -0.5px 0 0 -10.5px;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
	content: "";
	left: 0;
}

.menu-toggle__bar::before {
	top: -7px;
}

.menu-toggle__bar::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Open state: white button above the dark menu overlay. */
.menu-toggle[aria-expanded="true"] {
	z-index: 2;
	border-color: var(--c-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before,
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
	background: var(--c-base);
}

/* Full-screen menu modal (template-parts/site-nav.php). Each top-level link is
   led by a horizontal rule; the service sub-list lines up with the link text. */
.site-nav {
	--nav-rule: clamp(48px, 14vw, 120px);
	--nav-rule-gap: 0.625rem;

	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(3rem, 8vh, 5rem);
	overflow-y: auto;
	/* Contents line up with the page container on wide screens. */
	padding: calc(var(--header-h) + clamp(2rem, 6vh, 4rem)) max(var(--sp-gutter), (100% - var(--w-wide)) / 2) 3rem;
	background: #1a1a1a;
	color: var(--c-base);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s;
}

.admin-bar .site-nav {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.site-nav.is-open {
	visibility: visible;
	opacity: 1;
}

.site-nav__list,
.site-nav__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: var(--nav-rule-gap);
	color: inherit;
	font-size: 1.125rem;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-decoration: none;
}

.site-nav__link::before {
	content: "";
	width: var(--nav-rule);
	height: 1px;
	background: currentColor;
}

.site-nav__sub {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.25rem 0 1.25rem calc(var(--nav-rule) + var(--nav-rule-gap));
}

.site-nav__sub-link {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	color: inherit;
	font-size: 1rem;
	text-decoration: none;
	line-height: 1.5;
}

.site-nav__sub-link img {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.site-nav__link:hover,
.site-nav__sub-link:hover {
	opacity: 0.7;
}

.site-nav__tel {
	align-self: flex-start;
	color: #6b6b6b;
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

body.nav-open {
	overflow: hidden;
}

/* Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100dvh;
	padding-block: 5rem;
	background: var(--hero-image) center -2vw / contain no-repeat;
	background-color: #F7F7F7;
	color: var(--c-base);
}

.hero__inner {
	text-align: right;
}

.hero__eyebrow {
	margin-bottom: 1.75rem;
	margin-right: -15px;
	color: #000;
	font-size: clamp(2rem, 1rem + 4.2vw, 60px);
	font-weight: 400;
	letter-spacing: 0.04em;
}

@media (max-width: 781px) {
	.hero__eyebrow {
		margin-right: 0;
		margin-bottom: 1rem;
	}
}

.hero__title {
	margin-bottom: 0.5em;
	color: #000;
	font-size: var(--fs-sm);
	line-height: 1.35;
	font-weight: 300;
}

.hero__lead {
	margin-bottom: 2.5rem;
	font-size: var(--fs-lg);
}

/* Page header band
   ========================================================================== */

.page-header {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 280px;
	padding-block: 4rem 3rem;
	background: var(--c-primary) var(--page-header-image) center / cover no-repeat;
	color: var(--c-base);
	isolation: isolate;
}

.page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(11, 37, 69, 0.8);
}

.page-header__title {
	margin: 0;
	color: var(--c-base);
	font-size: var(--fs-2xl);
}

.page-header .post-meta {
	margin-bottom: 0.75rem;
}

.page-header .post-meta time {
	color: var(--c-accent);
}

.page-header .ca-label {
	color: var(--c-base);
}

/* Service list (front page)
   ========================================================================== */

.line-label {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
	color: #707070;
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.line-label::before {
	content: "";
	width: 96px;
	height: 1px;
	background: #707070;
}

.service-list {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 2.5rem clamp(3rem, 8vw, 5.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 781px) {
	.service-list {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

.service-list__item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.service-list__icon {
	flex-shrink: 0;
	width: 92px;
	height: auto;
}

.service-list__en {
	margin: 0;
	color: #111;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.562rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

.service-list__ja {
	margin: 0.2em 0 0;
	color: var(--c-muted);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

/* Service introduction (front page)
   ========================================================================== */

.line-label--center {
	justify-content: center;
	margin-bottom: 0.5rem;
}

.line-label--nm {
	margin-bottom: 0.5rem;
}

.service {
	/* White strip on top, grey band below; the oval image overlaps both. */
	padding-top: 0;
	background: linear-gradient(to bottom, var(--c-base) 2.5rem, #f5f5f5 2.5rem);
}

.service__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: center;
}

/* Bleed the image off the left edge of the viewport. */
.service__media {
	margin-left: calc(-1 * (max(0px, (123vw - var(--w-wide)) / 2 - var(--sp-gutter)) + var(--sp-gutter)) - 4vw);
	margin-right: -90px;
	margin-top: -6rem;
	margin-bottom: -6rem;
}

.service__media img {
	width: 100%;
	
}

.service__body {
	width: 100%;
	max-width: 450px;
	margin-inline: 0 auto;
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.service__title {
	margin-bottom: 1.75rem;
	color: #111;
	font-size: var(--fs-lg);
	text-align: center;
	letter-spacing: 0.04em;
}

.service__text {
	margin-bottom: 2.25rem;
	color: var(--c-muted);
	font-size:1.125rem;
	line-height: 1.95;
}

.service__icons {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.service__icons img {
	width: 48px;
	height: auto;
}

.btn-pill {
	display: block;
	width: 100%;
	max-width: 400px;
	margin-inline: auto;
	padding: 1.1rem 1.5rem;
	border: 1px solid #2EA7E0;
	border-radius: 999px;
	color: #2EA7E0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
}

.btn-pill:hover,
.btn-pill:focus-visible {
	background: #2a9fd8;
	color: var(--c-base);
}

@media (max-width: 781px) {
	.service {
		background: #f5f5f5;
		padding-top: 2.5rem;
	}

	.service__inner {
		grid-template-columns: 1fr;
	}

	.service__media {
		margin: -2rem 0 0 calc(-1 * var(--sp-gutter));
	}

	.service__body {
		margin-inline: auto;
		padding-top: 0;
	}
}

/* Company introduction (front page)
   ========================================================================== */

.company {
	position: relative;
	/* The photo bleeds off the right edge; don't let it cause sideways scroll. */
	overflow-x: clip;
}

.company__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
}

.company__body .service__text {
	margin-bottom: 2.25rem;
}

/* The PNG has generous transparent margins; pull it up and out to the right
   so the curved photo sits where the design puts it. */
.company__media {
	margin-block: -14% -6%;
	margin-left: -60px;
	margin-right: calc(-1 * (max(0px, (100vw - var(--w-wide)) / 2 - var(--sp-gutter)) + var(--sp-gutter)) - 8vw);
	margin-top: -15rem;
    margin-bottom: -7rem;
}

.company__media img {
	display: block;
	width: 100%;
	max-width: 900px;
}

@media (max-width: 781px) {
	.company__inner {
		grid-template-columns: 1fr;
	}

	.company__body {
		max-width: 360px;
		margin-inline: auto;
	}

	/* Image first, then the text. */
	.company__media {
		order: -1;
		margin: -10% calc(-1 * var(--sp-gutter)) 0;
	}
}

/* News (front page)
   ========================================================================== */

.news {
	background: #f5f5f5;
	padding-bottom: 6rem;
}

.news__inner {
}

.news__inner .line-label {
	margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.news-rows {
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	padding: 0;
	border-top: 1px solid #c9c9c9;
	list-style: none;
	font-weight: 300;
}

.news-rows__item {
	border-bottom: 1px solid #c9c9c9;
}

.news-rows__link {
	display: flex;
	align-items: baseline;
	gap: 1.5rem;
	padding-block: 0.85rem;
	color: #000;
	font-size: var(--fs-sm);
	text-decoration: none;

}

.news-rows__link:hover .news-rows__title,
.news-rows__link:focus-visible .news-rows__title {
	/*color: #2a9fd8;*/
}

.news-rows__date {
	flex: 0 0 5.75rem;
	font-family: var(--f-latin);
	letter-spacing: 0;
}

.news-rows__title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s ease;
	font-weight: 300;
	display: inline-block;
}

@media (max-width: 781px) {
	.news {
		padding-bottom: 3rem;
	}
}

@media (max-width: 599px) {
	.news-rows__link {
		flex-direction: column;
		gap: 0.25rem;
	}

	.news-rows__date {
		flex-basis: auto;
	}

	.news-rows__title {
		white-space: normal;
	}
}

.news-rows__empty {
	margin-bottom: 2rem;
	color: var(--c-muted);
}

/* VR company tour (front page)
   ========================================================================== */

.vr {
	/* White strip on top, grey band behind the lower part of the photo. */
	background: linear-gradient(to bottom, var(--c-base) clamp(6rem, 14vw, 9.5rem), #f5f5f5 0);
	padding-bottom: 2rem;
}

.vr__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2rem, 4vw, 2.75rem);
}

.vr__media {
	position: relative;
	width: min(100%, 627px);
	padding-top: 0.9rem;
}

/* Rounded "screen" shape, with a soft fade at the edges like the design. */
.vr__image {
	display: block;
	width: 100%;
	aspect-ratio: 475 / 335;
	object-fit: cover;
}

.vr__badge {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1;
	margin: 0;
	transform: translateX(-50%);
}

.vr__badge img {
	display: block;
	width: 145px;
	height: auto;
}

.vr__badge-link {
	display: block;
	background: #ffffff;
}

.vr__link {
	display: block;
}

.vr__link,
.vr__badge a {
	transition: opacity 0.2s;
}

.vr__link:hover,
.vr__badge a:hover {
	opacity: 0.8;
}

/* Service slider (front page)
   ========================================================================== */

.slider {
	padding-block: 0 var(--sp-section);
	background: #f5f5f5;
}

.slider__nav {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.slider__arrow {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.slider__arrow::before {
	content: "";
	display: block;
	margin: auto;
	border-block: 9px solid transparent;
	transition: opacity 0.2s ease;
}

.slider__arrow.splide__arrow--prev::before {
	border-right: 16px solid #2a9fd8;
}

.slider__arrow.splide__arrow--next::before {
	border-left: 16px solid #2a9fd8;
}

.slider__arrow:disabled {
	cursor: default;
}

.slider__arrow:disabled::before {
	opacity: 0.3;
}

.slider__arrow:focus-visible,
.slide .btn-pill:focus-visible {
	outline: 2px solid #2a9fd8;
	outline-offset: 3px;
}

/* Splide clips its track; vertical padding keeps the card shadows visible.
   Left/right padding is set by Splide (assets/js/slider.js). */
.slider .splide__track {
	padding-block: 0.5rem 2.5rem;
	cursor: grab;
}

.slider .splide__track:active {
	cursor: grabbing;
}

/* Before Splide mounts (or without JS), show the cards as a scrollable row. */
.slider.splide {
	visibility: visible;
}

.slider:not(.is-initialized) .splide__list {
	gap: 30px;
	overflow-x: auto;
	padding-inline: var(--sp-gutter);
}

.slide {
	flex: 0 0 min(359px, 100vw - 4.5rem);
	width: min(359px, 100vw - 4.5rem);
	overflow: hidden;
	border-radius: 10px;
	background: var(--c-base);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.slide__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	pointer-events: none;
}

.slide__body {
	padding: 1.75rem 1.25rem 1.25rem;
}

.slide__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.slide__icon {
	flex-shrink: 0;
	width: 64px;
	height: auto;
}

.slide__title {
	margin: 0;
	color: #111;
	font-size: 1.5625rem;
	letter-spacing: 0;
	line-height: 1.3;
	white-space: nowrap;
}

/* Long names ("Public & Railway System") get a smaller size to stay on one line. */
.slide__title--long {
	font-size: 1.125rem;
}

.slide__sub {
	margin: 0.3em 0 0;
	font-size: 1.125rem;
	white-space: nowrap;
	font-weight: 300;
	color: #646464;
}

.btn-pill--sm {
	max-width: 215px;
	padding-block: 1.15rem;
	font-size: 0.6875rem;
}

/* Business cards
   ========================================================================== */

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 899px) {
	.cards {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin-inline: auto;
	}
}

.card {
	background: var(--c-base);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(11, 37, 69, 0.12);
}

.card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.card__body {
	padding: 1.5rem 1.5rem 2rem;
}

.card__num {
	margin: 0 0 0.25rem;
	color: var(--c-accent);
	font-family: var(--f-latin);
	font-size: var(--fs-lg);
	font-weight: 700;
}

.card__title {
	margin-bottom: 0.5rem;
	font-size: var(--fs-lg);
}

.card__text {
	margin: 0;
	font-size: var(--fs-sm);
}

/* Numbers
   ========================================================================== */

.numbers {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	background: var(--c-primary);
	color: var(--c-base);
}

.numbers__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

@media (max-width: 781px) {
	.numbers__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.numbers__value {
	display: block;
	color: var(--c-accent);
	font-family: var(--f-latin);
	font-size: var(--fs-3xl);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.numbers__value small {
	margin-left: 0.1em;
	font-family: var(--f-sans);
	font-size: 0.4em;
}

.numbers__label {
	font-size: var(--fs-sm);
	font-weight: 700;
}

.numbers__note {
	margin: 1.5rem 0 0;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.75rem;
	text-align: center;
}

/* News list
   ========================================================================== */

.news-list {
	border-top: 1px solid var(--c-border);
}

.news-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1.5rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--c-border);
}

.news-item__title {
	flex: 1 1 320px;
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.04em;
}

.news-item__title a {
	color: var(--c-text);
	text-decoration: none;
}

.news-item__title a:hover {
	color: var(--c-accent);
}

.news-item__excerpt {
	flex-basis: 100%;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.news-item__excerpt p {
	margin: 0;
}

/* With excerpts (archive pages) the title goes on its own line */
.section--tight .news-item__title {
	flex-basis: 100%;
	font-size: var(--fs-lg);
	font-weight: 700;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	color: var(--c-muted);
	font-family: var(--f-latin);
	font-size: var(--fs-sm);
}

.ca-label {
	padding: 0.1em 0.7em;
	border: 1px solid currentColor;
	color: var(--c-primary);
	font-family: var(--f-sans);
	font-size: 0.7rem;
	font-weight: 700;
	text-decoration: none;
}

.split__head .btn {
	margin-top: 0.5rem;
}

/* Pagination */
.pagination {
	margin-top: 3rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--c-border);
	color: var(--c-primary);
	font-family: var(--f-latin);
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--c-primary);
	background: var(--c-primary);
	color: var(--c-base);
}

/* Single post */
.entry-thumbnail {
	margin-bottom: 2.5rem;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-border);
	font-size: var(--fs-sm);
}

.post-nav a {
	text-decoration: none;
}

.post-nav__next {
	text-align: right;
}

/* Recruit / contact band
   ========================================================================== */

.cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 781px) {
	.cta {
		grid-template-columns: 1fr;
	}
}

.cta__panel {
	display: flex;
	align-items: center;
	min-height: 420px;
	padding: clamp(2.5rem, 5vw, 4rem);
}

.cta__inner {
	width: 100%;
	max-width: 480px;
	margin-inline: auto;
}

.cta__panel--recruit {
	position: relative;
	background: var(--c-primary-light) var(--cta-image) center / cover no-repeat;
	color: var(--c-base);
	isolation: isolate;
}

.cta__panel--recruit::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(19, 49, 92, 0.7);
}

.cta__panel--recruit .cta__title {
	color: var(--c-base);
}

.cta__panel--contact {
	background: var(--c-accent);
	color: var(--c-primary);
}

.cta__panel--contact .eyebrow {
	color: var(--c-primary);
}

.cta__title {
	font-size: var(--fs-2xl);
}

.cta__panel p:not(.eyebrow) {
	margin-bottom: 2rem;
}

/* Company profile
   ========================================================================== */

.profile-table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--c-border);
}

.profile-table th,
.profile-table td {
	padding: 1.1em 1.25em;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.profile-table th {
	width: 28%;
	background: var(--c-surface);
	color: var(--c-primary);
	font-weight: 700;
}

@media (max-width: 599px) {
	.profile-table th,
	.profile-table td {
		display: block;
		width: 100%;
	}

	.profile-table th {
		border-bottom: 0;
		padding-bottom: 0.4em;
	}
}

.signature {
	margin-top: 2.5rem;
	text-align: right;
}

/* Search form
   ========================================================================== */

.search-form {
	display: flex;
	gap: 0.5rem;
	margin-block: 1.5rem;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.75em 1em;
	border: 1px solid var(--c-border);
	border-radius: 2px;
	font: inherit;
}

.search-form__input:focus {
	border-color: var(--c-primary);
	outline: 2px solid rgba(11, 37, 69, 0.15);
}

/* Editor content
   ========================================================================== */

.entry-content > * {
	margin-block: 0 1.5rem;
}

.entry-content h2 {
	margin-top: 3rem;
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--c-primary);
	font-size: var(--fs-xl);
}

.entry-content h3 {
	margin-top: 2.5rem;
	padding-left: 0.75em;
	border-left: 4px solid var(--c-accent);
	font-size: var(--fs-lg);
}

.entry-content blockquote {
	margin-inline: 0;
	padding-left: 1.5rem;
	border-left: 3px solid var(--c-accent);
	color: var(--c-muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.75em 1em;
	border: 1px solid var(--c-border);
}

.entry-content th {
	background: var(--c-surface);
}

.entry-content .alignwide {
	width: min(var(--w-wide), 100vw - var(--sp-gutter) * 2);
	max-width: none;
	margin-inline: calc((100% - min(var(--w-wide), 100vw - var(--sp-gutter) * 2)) / 2);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.entry-content--full > :not(.alignfull):not(.alignwide) {
	max-width: var(--w-content);
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
}

/* Footer
   ========================================================================== */

.site-footer {
	padding-block: clamp(2.5rem, 4vw, 3.25rem) clamp(2rem, 3vw, 2.25rem);
	background: #000;
	color: var(--c-base);
}

/* Name + contact on the left (full height); menu columns top right, policy links bottom right.
   Wider than the page container so the menu columns fit on one line. */
.site-footer__inner {
	/*max-width: calc(1260px + var(--sp-gutter) * 2);*/
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	gap: clamp(3rem, 8vw, 7.5rem) 0;
	letter-spacing: 0;
}

.site-footer__info {
	display: flex;
	flex-direction: column;
	grid-row: 1 / 3;
}

.site-footer__name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	color: #fff;
}

/* Logo and address sit at the bottom, level with the policy links. */
.site-footer__contact {
	margin-top: auto;
	padding-top: 2.5rem;
}

.site-footer__logo {
	margin: 0 0 1rem;
}

.site-footer__logo img {
	display: block;
	width: 90px;
	height: auto;
}

.site-footer__address {
	font-style: normal;
	font-size: 0.75rem;
	line-height: 1.875;
}

.site-footer__nav-columns {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: end;
	gap: 2rem 2.5rem;
}

.site-footer__nav-title {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 500;
}

.site-footer__nav-title a {
	color: inherit;
	text-decoration: none;
}

.site-footer__nav-title a:hover {
	color: var(--c-accent);
}

.footer-nav-col__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav-col__list a,
.footer-legal__list a {
	color: var(--c-base);
	white-space: nowrap;
	font-size: 0.75rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-nav-col__list a:hover,
.footer-legal__list a:hover {
	color: var(--c-accent);
}

.site-footer__legal {
	align-self: end;
	justify-self: end;
}

.footer-legal__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.875;
}

@media (max-width: 1279px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.site-footer__info {
		grid-row: auto;
	}

	.site-footer__nav-columns {
		grid-template-columns: repeat(4, auto);
		justify-content: start;
	}

	.site-footer__legal {
		justify-self: start;
	}

	.footer-legal__list {
		justify-content: flex-start;
	}
}

@media (max-width: 781px) {
	.site-footer__nav-columns {
		grid-template-columns: repeat(2, auto);
	}
}

@media (max-width: 599px) {
	.site-footer__name {
		font-size: 1.25rem;
	}

	.site-footer__nav-columns {
		grid-template-columns: 1.2fr 1fr;
		gap: 2rem 1rem;
	}

	.footer-nav-col__list a,
	.footer-legal__list a,
	.site-footer__address {
		font-size: 0.8125rem;
		letter-spacing: 0.02em;
	}

	.footer-nav-col__list a {
		white-space: normal;
	}
}

/* Sponsorship slider (front page)
   ========================================================================== */

.sponsor {
	background: #f7f7f7;
	overflow: hidden;
}

.sponsor__list {
	margin-bottom: 3rem;
}

/* Heading on the left, prev/next arrows (shared with the service slider) on the right. */
.sponsor__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: clamp(1.5rem, 3vw, 1.75rem);
}

.sponsor .line-label,
.sponsor .slider__nav {
	margin-bottom: 0;
}

.sponsor__slider .splide__track {
	cursor: grab;
}

.sponsor__slider .splide__track:active {
	cursor: grabbing;
}

.sponsor__link {
	display: block;
	cursor: pointer;
	transition: opacity 0.2s;
}

.sponsor__link:hover {
	opacity: 0.85;
}

.sponsor__slider .splide__track:active .sponsor__link {
	cursor: grabbing;
}

.sponsor__slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 377 / 274;
	object-fit: cover;
}

/* Before Splide mounts (or without JS), show the images as a scrollable row. */
.sponsor__slider:not(.is-initialized) .splide__list {
	gap: 30px;
	overflow-x: auto;
	padding-inline: var(--sp-gutter);
}

.sponsor__slider:not(.is-initialized) .sponsor__slide {
	flex: 0 0 min(377px, 70vw);
}

.sponsor .section-foot {
	margin-top: 1.5rem;
}

/* Service page (page-content/service.php)
   ========================================================================== */

.service-intro {
	background: var(--c-surface) var(--service-watermark) center top / min(1400px, 150%) auto no-repeat;
}

.service-hero {
	padding-block: var(--page-top) clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.service-hero__eyebrow {
	margin: 0 0 2rem;
	color: #1d4097;
	font-family: var(--f-latin);
	font-size: var(--fs-1-5xl);
	font-weight: 700;
}

.service-hero__card {
	max-width: var(--w-narrow-content);
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.68rem);
	background: var(--c-base);
	box-shadow: 0 20px 50px rgba(11, 37, 69, 0.08);
	border-radius: 10px;
}

.service-hero__headline,
.company-hero__headline,
.industry-hero__headline,
.message-hero__headline,
.company-values__title,
.industry-point__heading,
.industry-case__heading {
	word-break: auto-phrase;
}

.service-hero__headline {
	margin: 0 0 1.5rem;
	font-size: var(--fs-xl);
	line-height: 1.6;
	font-weight: 700;
}

.service-hero__lead {
	margin: 0;
	color: #000;
	font-size: var(--fs-sm);
	line-height: 2.29;
	text-align: left;
	font-weight: 300;
}

.service-approach {
	padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem);
	
}


.service-inner {
	position: relative;
	max-width: var(--w-narrow);
	margin-inline: auto;
}

/* Ellipse + logo artwork sits behind the four approach items */
.service-inner::before {
	content: "";
	position: absolute;
	top: 78px;
	left: 50%;
	width: min(868px, 100%);
	aspect-ratio: 868 / 570;
	background: url('../images/service_circle@2x.png') center / contain no-repeat;
	transform: translateX(-50%);
	pointer-events: none;
}

.service-approach__grid {
	position: relative;
	display: grid;
	grid-template-columns: 264px 1fr 264px;
	grid-template-areas:
		".    top    ."
		"left .      right"
		".    bottom .";
	row-gap: 6.5rem;
	column-gap: 1.5rem;
}

.service-approach__item {
	justify-self: center;
	width: 100%;
	max-width: 264px;
}

.service-approach__item--top {
	grid-area: top;
	/* Nudge into the ellipse artwork without shifting the other three items. */
	transform: translateY(2rem);
}

.service-approach__item--left {
	grid-area: left;
}

.service-approach__item--right {
	grid-area: right;
}

.service-approach__item--bottom {
	grid-area: bottom;
}

.service-approach__item h3 {
	margin: 0 0 1rem;
	color: #2a9fd8;
	font-family: var(--f-latin);
	font-size: var(--fs-lg);
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	letter-spacing: 0.04em;
}

.service-approach__item p {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 2.3;
	font-weight: 300;
}

@media (max-width: 899px) {
	/* The artwork is wider than the screen here; clip it at the section edges. */
	.service-approach {
		overflow-x: clip;
	}

	/* Artwork as a large centred background behind the stacked items. */
	.service-inner::before {
		top: 50%;
		width: 200vw;
		transform: translate(-50%, -50%);
	}

	.service-approach__item--top {
		transform: none;
	}

	.service-approach__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"top"
			"left"
			"right"
			"bottom";
		row-gap: clamp(2.5rem, 6vw, 4rem);
	}
}

.service-showcase__title {
	margin: 0 0 clamp(2.5rem, 10vw, 7rem);
	font-size: var(--fs-lg);
	font-weight: 700;
	text-align: center;
}

.service-cards {
	display: flex;
	flex-direction: column;
	gap: clamp(3.5rem, 7vw, 5rem);
}

.service-card {
	display: flex;
	align-items: stretch;
	margin-bottom: 4rem;
	background: var(--c-base);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(11, 37, 69, 0.08);
}

.service-card--reverse {
	flex-direction: row-reverse;
}

.service-card__media {
	flex: 1 1 50%;
	min-width: 0;
}

.service-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	border-radius: 20px 0 0 20px;
}


.service-card--reverse .service-card__media img {
	border-radius: 0 20px 20px 0;
}

.service-card__body {
	position: relative;
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(3rem, 6vw, 5.5rem) clamp(1.75rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
	text-align: center;
}

.service-card__icon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 93px;
	height: 93px;
	object-fit: contain;
}


.service-card__title {
	margin: 0 0 0.25rem;
	font-size: var(--fs-lg);
	font-weight: 700;
	letter-spacing: 0;
}

.service-card__label {
	margin: 0 0 1.25rem;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-weight: 300;
}

.service-card__text {
	margin: 0 0 1.5rem;
	font-size: var(--fs-sm);
	line-height: 2.29;
	text-align: left;
	font-weight: 300;
}

/* .base_button: the same blue pill, for use anywhere. */
.service-card__btn,
.base_button {
	display: inline-block;
	padding: 1.05rem 2.5rem;
	border-radius: 999px;
	background: #2EA7E0;
	color: var(--c-base);
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	max-width: 213px;
	width: 100%;
	border: 1px solid #2EA7E0;
}

.service-card__btn:hover,
.base_button:hover {
	background: #fff;
	color: #2EA7E0;
}

@media (max-width: 781px) {
	.service-card,
	.service-card--reverse {
		flex-direction: column;
		margin-bottom: 0;
	}

	.service-card__media img {
		min-height: 220px;
		border-radius: 20px 20px 0 0;
	}

	.service-card--reverse .service-card__body {
		align-items: center;
		text-align: center;
	}

	.service-card__body {
		padding-top: 4rem;
	}
}

/* Industry System page (page-content/industry-system.php)
   ========================================================================== */

/* Same layout as the front page service section (.service): oval image bled
   off the left edge, text column on the right, white strip over a grey band. */
.industry-hero {
	padding-block: 0;
	background: var(--c-surface) var(--industry-watermark) 22vw 8vw / min(1400px, 150%) auto no-repeat;
}

.industry-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 2rem);
	align-items: center;
}

.industry-hero__media {
	margin-left: calc(-1 * (max(0px, (123vw - var(--w-wide)) / 2 - var(--sp-gutter)) + var(--sp-gutter)) - 4vw);
	margin-right: -90px;
	/* Lower the oval artwork without moving the text column. */
	transform: translateY(2rem);
}

.industry-hero__media img {
	display: block;
	width: 100%;
	height: auto;
}

.industry-hero__body {
	width: 100%;
	max-width: 450px;
	margin-inline: 0 auto;
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	text-align: center;
}

.industry-hero__icon {
	display: block;
	width: 92px;
	height: 92px;
	margin: 0 auto 1rem;
	object-fit: contain;
}

.industry-hero__title {
	margin: 0;
	color: #111;
	font-size: var(--fs-lg);
	font-weight: 700;
	letter-spacing: 0.04em;
	letter-spacing: 0;
}

.industry-hero__label {
	margin: 0.25rem 0 1.75rem;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-weight: 300;
}

.industry-hero__headline {
	margin: 0 0 1.5rem;
	color: #111;
	font-size: var(--fs-lg);
	font-weight: 700;
	line-height: 1.8;
}

.industry-hero__lead {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 2.29;
	text-align: left;
	font-weight: 300;
}

@media (max-width: 781px) {
	.industry-hero {
		padding-top: 0;
	}

	.industry-hero__inner {
		grid-template-columns: 1fr;
	}

	.industry-hero__media {
		margin-left: calc(-1 * var(--sp-gutter));
		margin-right: 0;
		transform: none;
	}

	.industry-hero__body {
		margin-inline: auto;
		padding-top: 0;
	}
}

@media (max-width: 599px) {
	.industry-hero {
		overflow-x: clip;
	}

	/* Artwork 150vw wide, centred on the screen; the box keeps its height (images are 1011×719). */
	.industry-hero__media {
		position: relative;
		margin: 50px calc(-1 * var(--sp-gutter)) 0;
		height: calc(150vw * 719 / 1011);
	}

	.industry-hero__media img {
		position: absolute;
		top: 0;
		left: 50%;
		width: 150vw;
		max-width: none;
		transform: translateX(-50%);
	}
}

.industry-points__title {
	margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
	font-size: var(--fs-lg);
	font-weight: 700;
	text-align: center;
}

.industry-points__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.industry-point {
	display: flex;
	align-items: stretch;
	background: var(--c-base);
	border-radius: 12px;
	overflow: hidden;
}

.industry-point__media {
	flex: 1 1 50%;
	min-width: 0;
}

.industry-point__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.industry-point__body {
	flex: 1 1 50%;
	min-width: 0;
	padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 3.5rem);
}

.industry-point__num {
	margin-bottom: 1.75rem;
}

.industry-point__heading {
	margin: 0 0 0.75rem;
	font-size: var(--fs-lg);
	color: #000;
	line-height: 1.6;
}

.industry-point__text {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 2.28;
	font-weight: 300;
}

@media (max-width: 781px) {
	.industry-point {
		flex-direction: column;
	}

	.industry-point__media img {
		aspect-ratio: 16 / 10;
	}
}

.industry-case__eyebrow {
	margin: 0 0 3rem;
	color: #2a9fd8;
	font-size: var(--fs-xl);
	font-weight: 700;
	text-align: center;
}

.industry-case__inner {
	display: flex;
	align-items: center;
	gap: clamp(2rem, 5vw, 3.5rem);
}

.industry-case__media {
	flex: 1 1 46%;
	min-width: 0;
}

.industry-case__media img {
	display: block;
	width: 100%;
	height: auto;
}

.industry-case__body {
	flex: 1 1 54%;
	min-width: 0;
}

.industry-case__heading {
	margin: 0 0 1.25rem;
	font-size: var(--fs-lg);
	line-height: 1.6;
}

.industry-case__text {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 2.29;
	font-weight: 300;
}

@media (max-width: 781px) {
	.industry-case__inner {
		flex-direction: column;
	}
}

.industry-related {
	padding: 4rem 0;
}

.industry-related__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	margin-bottom: 4rem;
}

.industry-related__list li {
	flex: 0 1 213px;
}

.industry-related__foot {
	margin-bottom: 2rem;
}

.industry-related__list a {
	display: block;
	padding: 1.1rem .5rem;
	border-radius: 999px;
	background: #2a9fd8;
	color: var(--c-base);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	line-height: 1.5;
	/* Border in the fill colour so the hover outline doesn't change the size. */
	border: 1px solid #2a9fd8;
}

/* Same hover as .base_button: white with a blue outline. */
.industry-related__list a:hover {
	background: var(--c-base);
	color: #2a9fd8;
}

/* Company page (page-content/company.php)
   ========================================================================== */

.company-hero {
	padding-block: var(--page-top) 0;
	background: var(--c-surface) var(--company-watermark) center top / min(1400px, 150%) auto no-repeat;
	text-align: center;
}

.company-hero__eyebrow {
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	color: #1d4097;
	font-family: var(--f-latin);
	font-size: var(--fs-1-5xl);
	font-weight: 700;
}

.company-hero__card {
	position: relative;
	z-index: 1;
	max-width: 600px;
	margin-inline: auto;
	margin-bottom: clamp(-4rem, -6vw, -2rem);
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem);
	border-radius: 10px;
	background: var(--c-base);
	box-shadow: 0 20px 50px rgba(11, 37, 69, 0.06);
}

.company-hero__headline {
	margin: 0 0 2rem;
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1.65;
}

.company-hero__lead {
	margin: 0;
	font-size: 0.875rem;
	line-height: 2.29;
	text-align: left;
}

.company-values {
	padding-block: clamp(10rem, 20vw, 16rem) clamp(3rem, 6vw, 4.5rem);
	background: var(--c-surface) var(--company-values-image) center top / cover no-repeat;
}

.company-values__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 925px;
	margin-inline: auto;
}

.company-values__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.company-values__title {
	margin: 0 0 1rem;
	color: #2a9fd8;
	font-size: var(--fs-lg);
	line-height: 1.65;
	text-align: center;
}

.company-values__text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 2.4;
}

.company-links {
	padding-block: clamp(3.5rem, 7vw, 5rem) clamp(4rem, 9vw, 6.5rem);
	background: var(--c-surface);
}

.company-links__list a {
	min-width: 13.25rem;
	/* Border in the fill colour so the hover outline doesn't change the size. */
	border: 1px solid #2a9fd8;
	transition: background-color 0.2s, color 0.2s;
}

/* Same hover as .base_button: white with a blue outline. */
.company-links__list a:hover {
	background: var(--c-base);
	color: #2a9fd8;
}

@media (max-width: 599px) {
	/* Desktop line breaks split words on phones; let phrase wrapping take over. */
	.company-hero__headline br:not(:first-of-type),
	.industry-hero__headline br {
		display: none;
	}

	.industry-related__list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.company-links__list a {
		min-width: 0;
	}
}

@media (max-width: 781px) {
	.company-values__grid {
		grid-template-columns: 1fr;
	}

	.company-values__title br {
		display: none;
	}
}

/* Message page (page-content/message.php)
   ========================================================================== */

.message-hero {
	padding-block: var(--page-top) clamp(2.5rem, 5vw, 4rem);
	background: var(--c-surface) var(--message-watermark) center top / min(1400px, 150%) auto no-repeat;
}

.message-hero__eyebrow {
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	color: #1d4097;
	font-family: var(--f-latin);
	font-size: var(--fs-1-5xl);
	font-weight: 700;
	text-align: center;
}

.message-hero__inner {
	display: flex;
	align-items: flex-start;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	max-width: 925px;
	margin-inline: auto;
}

.message-hero__card {
	flex: 0 1 605px;
	min-width: 0;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4.75rem);
	border-radius: 10px;
	background: var(--c-base);
}

.message-hero__headline {
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	font-size: var(--fs-lg);
	line-height: 1.7;
}

.message-hero__text {
	font-size: 0.875rem;
	line-height: 2.29;
	font-weight: 300;
}

.message-hero__text p {
	margin: 0;
	text-indent: 1em;
}

.message-hero__text p:first-child {
	text-indent: 0;
}

.message-hero__aside {
	flex: 0 1 285px;
	min-width: 0;
}

.message-hero__photo {
	display: block;
	width: 100%;
	height: auto;
}

.message-hero__name {
	display: block;
	width: 100%;
	height: auto;
	margin: 1.75rem 0 0 0rem;
	text-align: right;
}

.message-career {
	padding-block: clamp(2rem, 4vw, 3rem) 0;
	background: var(--c-surface);
}

.message-career__title,
.message-career__list {
	max-width: 925px;
	margin-inline: auto;
}

.message-career__title {
	margin-block: 0 0.75rem;
	font-size: var(--fs-sm);
}

.message-career__list {
	margin-block: 0;
	border-top: 1px solid #888;
}

.message-career__row {
	display: flex;
	align-items: center;
	gap: 2.25rem;
	min-height: 88px;
	padding-block: 1rem;
	border-bottom: 1px solid #888;
	font-size: var(--fs-sm);
	font-weight: 300;
}

.message-career__row dt {
	flex: none;
}

.message-career__row dd {
	margin: 0;
}

.message-career__row dd p {
	margin: 0;
}

@media (max-width: 781px) {
	.message-hero__inner {
		flex-direction: column-reverse;
		align-items: center;
	}

	.message-hero__card,
	.message-hero__aside {
		flex-basis: auto;
	}

	.message-hero__aside {
		width: min(285px, 80%);
	}

	.message-hero__name {
		margin-left: auto;
		margin-right: auto;
	}

	.message-hero__headline br {
		display: none;
	}

	.message-career__row {
		align-items: flex-start;
		gap: 1.25rem;
	}
}

/* About page (page-content/about.php)
   ========================================================================== */

.about-hero {
	padding-block: var(--page-top) clamp(4rem, 9vw, 7rem);
	background: var(--c-surface) var(--about-watermark) center top / min(1400px, 150%) auto no-repeat;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.about-hero__eyebrow {
	margin: 0 0 1.75rem;
	color: #1d4097;
	font-family: var(--f-latin);
	font-size: var(--fs-1-5xl);
	font-weight: 700;
	text-align: center;
}

.about-hero__chart {
	width: 100%;	
	max-width: 754px;
	margin: 0 auto;
	overflow-x: auto;
}

.about-hero__chart img {
	display: block;
	width: 100%;
	min-width: 100%;
	height: auto;
}

.about-section {
	padding-block: 0 clamp(4rem, 8vw, 7.5rem);
	
	background: var(--c-surface);
}

.about-section--top {
	padding-top: 4rem;
}

.about-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	color: #646464;
	font-size: var(--fs-md);
	font-weight: 400;
}

.about-heading::before {
	content: "";
	width: 96px;
	border-top: 1px solid currentColor;
}

.about-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem clamp(3rem, 8vw, 5.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-group img {
	display: block;
	width: auto;
	height: clamp(56px, 7vw, 82px);
}

.about-office {
	max-width: 925px;
	margin-inline: auto;
}

.about-office + .about-office {
	margin-top: 3.5rem;
}

.about-office__head {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	margin-bottom: 1.5rem;
	padding-left: clamp(0rem, 26vw, 238px);
}

.about-office__name {
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 400;
	color: #000;
}

.about-office__address {
	font-size: var(--fs-sm);
	font-style: normal;
	line-height: 2.3;
}

.about-office__media {
	display: grid;
	grid-template-columns: 287fr 613fr;
	gap: 1.5rem;
	height: clamp(260px, 32vw, 365px);
}

.about-office__photo,
.about-office__map {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.about-office__photo {
	object-fit: cover;
}

.about-card {
	max-width: 925px;
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
	border-radius: 10px;
	background: var(--c-base);
}

.about-card + .about-card {
	margin-top: 4rem;
}

.about-card__title {
	margin: 0 0 0.5rem;
	font-size: var(--fs-sm);
}

.about-table {
	margin: 0;
	border-top: 1px solid #888;
	font-size: var(--fs-sm);
	line-height: 2.29;
	font-weight: 300;
}

.about-table__row {
	display: grid;
	grid-template-columns: 118px 1fr;
	padding-block: 1.25rem;
	border-bottom: 1px solid #888;
	align-items: center;
}

.about-table--wide-label .about-table__row {
	grid-template-columns: 170px 1fr;
}

.about-table__row--top {
	align-items: flex-start;
}

.about-table dt {
	padding-right: 1rem;
	line-height: 1.7;
}

.about-table dd {
	margin: 0;
}

.about-table dd p {
	margin: 0;
}

.about-table__officer {
	display: grid;
	grid-template-columns: 136px 1fr;
	align-items: center;
}

.about-officers,
.about-clients {
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-officers span {
	display: inline-block;
	width: 6em;
}

.about-clients {
	columns: 2;
	column-gap: 2rem;
}

.about-clients li {
	break-inside: avoid;
}

.about-certs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-certs li {
	width: 213px;
}

.about-certs__logo {
	display: grid;
	place-items: center;
	height: 161px;
	margin-bottom: 1.5rem;
	background: var(--c-base);
	color: var(--c-muted);
	font-size: 0.75rem;
	text-align: center;
}

.about-certs__logo img {
	max-height: 100%;
	width: auto;
}

.about-certs p {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 2.29;
	font-weight: 300;
}

.about-section:has(.about-certs) + .company-links {
	padding-top: 0;
}

@media (max-width: 781px) {
	.about-office__head {
		gap: 1.5rem;
		padding-left: 0;
	}

	.about-office__media {
		grid-template-columns: 1fr;
		height: auto;
	}

	.about-office__photo {
		aspect-ratio: 4 / 3;
	}

	.about-office__map {
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.about-table__row,
	.about-table--wide-label .about-table__row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		min-height: 0;
	}

	.about-table dt {
		font-weight: 700;
	}

	.about-table__officer {
		grid-template-columns: 1fr;
	}

	.about-clients {
		columns: 1;
	}

	.about-certs {
		gap: 3rem;
	}

}

/* Breadcrumb (ca_theme_breadcrumb(), top of <main>)
   Vertical text along the right edge of the page top: top > Service > Finance System.
   ========================================================================== */

.site-main {
	position: relative;
}

.breadcrumb {
	position: absolute;
	top: clamp(200px, 20vw, 330px);
	right: clamp(1.25rem, 2.6vw, 2.75rem);
	z-index: 5;
	writing-mode: vertical-rl;
	color: #333;
	font-family: var(--f-latin);
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	line-height: 1;
}

.breadcrumb__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb__item + .breadcrumb__item::before {
	content: ">";
	/* Inline axis is vertical here, so this spaces the ">" above and below. */
	margin-inline: 0.5em;
}

.breadcrumb__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.breadcrumb__link:hover {
	color: #2a9fd8;
}

/* Desktop only: no room beside the content on tablets and phones. */
@media (max-width: 899px) {
	.breadcrumb {
		display: none;
	}
}

/* Sponsorship page (page-content/sponsorship.php)
   ========================================================================== */

.sponsorship {
	padding-block: var(--page-top) clamp(4rem, 9vw, 7rem);
	background: var(--c-surface);
}

.sponsorship__eyebrow {
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	color: #1d4097;
	font-family: var(--f-latin);
	font-size: var(--fs-1-5xl);
	font-weight: 700;
	text-align: center;
}

.sponsorship__card {
	display: grid;
	gap: 2rem;
	max-width: 925px;
	margin-inline: auto;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
	border-radius:10px;
	background: var(--c-base);
}

.sponsorship__card + .sponsorship__card {
	margin-top: 3rem;
}

.sponsorship__item {
	display: grid;
	grid-template-columns: 377fr 452fr;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 3.25rem);
}

.sponsorship__media {
	aspect-ratio: 377 / 274;
	background: var(--c-surface);
}

.sponsorship__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sponsorship__title {
	margin: 0 0 1.25rem;
	font-size: var(--fs-xl);
	line-height: 1.6;
}

.sponsorship__title:last-child {
	margin-bottom: 0;
}

.sponsorship__text {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 2.29;
	font-weight: 300;
}

.sponsorship__past {
	padding-top: 2rem;
	text-align: center;
}

.sponsorship__past-title {
	margin: 0;
	font-size: var(--fs-xl);
}

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

	.sponsorship__card {
		gap: 3rem;
	}

	.sponsorship__title br {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* News archive (template-parts/news-archive.php)
   ========================================================================== */

.news-archive {
	padding-block: var(--page-top) var(--sp-section);
	background: var(--c-surface) var(--news-watermark) center top / min(1400px, 150%) auto no-repeat;
}

.news-archive__eyebrow {
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
	color: #1d4097;
	font-family: var(--f-latin);
	font-size: var(--fs-1-5xl);
	font-weight: 700;
	text-align: center;
}

.news-archive__card {
	max-width: 925px;
	margin-inline: auto;
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
	border-radius: 10px;
	background: var(--c-base);
}

.news-archive__title {
	margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
	font-size: var(--fs-lg);
	font-weight: 700;
	text-align: center;
}

.news-archive__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid #b5b5b5;
	list-style: none;
}

.news-archive__item {
	display: flex;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-block: clamp(1.25rem, 3vw, 1.85rem);
	border-bottom: 1px solid #b5b5b5;
	font-size: var(--fs-sm);
	font-weight: 300;
	letter-spacing: 0;
}

.news-archive__date {
	flex: 0 0 5.5em;
	color: var(--c-muted);
	font-family: var(--f-latin);
}

.news-archive__item .ca-label {
	flex: 0 0 auto;
	min-width: 6.5em;
	padding: 0.25em 1em;
	border: 0;
	border-radius: 9px;
	background: #6b6b6b;
	color: var(--c-base);
	font-size: 0.6875rem;
	text-align: center;
}

.news-archive__link {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--c-text);
	text-decoration: none;
}

.news-archive__link:hover {
}

.news-archive__empty {
	margin: 2rem 0 0;
	text-align: center;
}

/* 404 page message (404.php). A class can't start with a digit in a selector,
   so "404_text" is written escaped: \34 04_text = 404_text. */
.text_404 {
	text-align: center;
	line-height: 2.29;
	font-weight: 300;
	font-size: var(--fs-sm);
}

/* Search results: the form sits between the heading and the list. */
.news-archive__search {
	max-width: 36rem;
	margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
}

.news-archive__search .search-form {
	margin-block: 0;
}

.news-archive__pagination {
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

.news-archive__pagination .pagination {
	margin-top: 0;
}

.news-archive__pagination .nav-links {
	gap: 0;
}

.news-archive__pagination .page-numbers {
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.25rem;
	border: 0;
	color: var(--c-text);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
}

.news-archive__pagination .page-numbers.current,
.news-archive__pagination a.page-numbers:hover {
	border: 0;
	background: none;
	color: #1d4097;
}

/* Solid triangles drawn in CSS (the ◀ ▶ characters turn into emoji on some devices). */
.news-archive__arrow {
	display: block;
	width: 0.9rem;
	height: 1.05rem;
	background: currentColor;
	clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.news-archive__pagination .next .news-archive__arrow {
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.news-archive__pagination .prev {
	margin-right: 0.5rem;
}

.news-archive__pagination .next {
	margin-left: 0.5rem;
}

@media (max-width: 599px) {
	.news-archive__item {
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
	}

	.news-archive__date {
		flex-basis: auto;
	}

	/* Search results: pages have no date; don't leave a gap before their label. */
	.news-archive__date:empty {
		display: none;
	}

	.news-archive__link {
		flex-basis: 100%;
	}
}

/* News single (single.php) — reuses the news-archive band and card */

.news-single__head {
	padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	border-bottom: 1px solid #b5b5b5;
}

.news-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
}

.news-single__meta .news-archive__date {
	flex: 0 0 auto;
}

.news-single__meta .ca-label {
	min-width: 6.5em;
	padding: 0.25em 1em;
	border: 0;
	border-radius: 999px;
	background: #6b6b6b;
	color: var(--c-base);
	font-size: 0.6875rem;
	text-align: center;
}

.news-single__title {
	margin: 0;
	font-size: var(--fs-lg);
	font-weight: 700;
	line-height: 1.6;
}

.news-single .post-nav {
	border-top-color: #b5b5b5;
}

/* Contact form (Contact Form 7, markup in contact.html)
   ========================================================================== */

.contact-form .contact-form__heading {
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	padding: 0 0 0.75em;
	border-bottom: 2px solid var(--c-primary);
	font-size: var(--fs-md);
}

.contact-form .contact-form__heading:first-child {
	margin-top: 0;
}

.contact-form__row {
	display: grid;
	grid-template-columns: 12em 1fr;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--c-border);
}

.contact-form__row dt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	align-self: start;
	padding-top: 0.6em;
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.5;
}

.contact-form__row dd {
	min-width: 0;
	margin: 0;
}

.contact-form__row dd p {
	margin: 0 0 0.5rem;
	font-size: var(--fs-sm);
}

.contact-form__req {
	padding: 0.15em 0.6em;
	border-radius: 2px;
	background: #c0392b;
	color: var(--c-base);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.4;
}

.contact-form__row .contact-form__note {
	margin: 0.4rem 0 0;
	color: var(--c-muted);
	font-size: 0.75rem;
}

.contact-form__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* Fields */
.contact-form .wpcf7-form-control-wrap {
	display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 0.65em 0.9em;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	background: var(--c-surface);
	color: var(--c-text);
	font: inherit;
	font-size: 1rem; /* 16px+ stops iOS from zooming in on focus */
	line-height: 1.5;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
	min-height: 12em;
	resize: vertical;
}

.contact-form select {
	padding-right: 2.5em;
	background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2545' stroke-width='2'/%3E%3C/svg%3E") right 1em center / 12px 8px no-repeat;
	appearance: none;
	cursor: pointer;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #9aa5b1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: var(--c-primary);
	outline: none;
	background-color: var(--c-base);
	box-shadow: 0 0 0 3px rgb(11 37 69 / 0.15);
}

/* Privacy link and consent checkbox */
.contact-form__row dd a {
	color: #1d4097;
}

.contact-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.contact-form .wpcf7-acceptance label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 700;
	cursor: pointer;
}

.contact-form input[type="checkbox"] {
	width: 1.25em;
	height: 1.25em;
	margin: 0;
	accent-color: var(--c-primary);
}

/* Submit */
.contact-form__submit {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin: clamp(2rem, 5vw, 2.5rem) 0 0;
	text-align: center;
}

.contact-form .wpcf7-submit {
	min-width: min(280px, 100%);
	padding: 1em 2.5em;
	border: 1px solid var(--c-primary);
	border-radius: 999px;
	background: var(--c-primary);
	color: var(--c-base);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.contact-form .wpcf7-submit:hover,
.contact-form .wpcf7-submit:focus-visible {
	background: var(--c-base);
	color: var(--c-primary);
}

.contact-form .wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Confirm step (contact-confirm.html, Multi-Step Forms for CF7) */
.contact-form__intro {
	margin: 0 0 clamp(1.5rem, 4vw, 2rem);
	font-size: var(--fs-sm);
	text-align: center;
}

.contact-form__row .contact-form__value {
	padding-top: 0.6em;
	font-size: var(--fs-sm);
	line-height: 1.9;
	white-space: pre-wrap; /* keep line breaks typed into the message */
	overflow-wrap: anywhere;
}

.contact-form .wpcf7-previous {
	min-width: min(280px, 100%);
	padding: 1em 2.5em;
	border: 1px solid var(--c-primary);
	border-radius: 999px;
	background: var(--c-base);
	color: var(--c-primary);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.contact-form .wpcf7-previous:hover,
.contact-form .wpcf7-previous:focus-visible {
	background: var(--c-primary);
	color: var(--c-base);
}

/* Out of the flex row so it doesn't push the buttons off-centre. */
.contact-form__submit {
	position: relative;
}

.contact-form .wpcf7-spinner {
	position: absolute;
	top: 100%;
	left: 50%;
	margin: 0.5rem 0 0 -12px;
}

/* Validation and response messages */
.contact-form .wpcf7-not-valid {
	border-color: #c0392b;
	background-color: #fdf2f1;
}

.contact-form .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	color: #c0392b;
	font-size: 0.75rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.9em 1.2em;
	border-width: 1px;
	border-radius: 4px;
	font-size: var(--fs-sm);
	text-align: center;
}

@media (max-width: 599px) {
	.contact-form__row {
		grid-template-columns: 1fr;
	}

	.contact-form__row dt {
		padding-top: 0;
	}

	.contact-form__row .contact-form__value {
		padding-top: 0;
	}

	/* Stack the buttons, primary action first. */
	.contact-form__submit {
		flex-direction: column-reverse;
	}
}

/* Center table */
.center_table {
	width: fit-content;
	text-align: left;
	margin-left: auto;
	margin-right: auto;
}
