/*
Theme Name: AP Moniz
Theme URI: https://apmoniz.pt
Author: AP Moniz
Description: Tema do site AP Moniz. Engenharia da água e energia. Páginas de serviço, setores, artigos, contacto e estimativa de poupança, sem plugins adicionais.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: apmoniz
*/

@font-face {
	font-family: "IBM Plex Sans";
	src: url("assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans";
	src: url("assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans";
	src: url("assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f5f2ec;
	--ink: #1c2326;
	--text: #2a3336;
	--muted: #5a6468;
	--line: #ddd6ca;
	--line-strong: #cfc7ba;
	--petrol: #1f4e5a;
	--petrol-dark: #123540;
	--white: #ffffff;
	--mist: #e4e9ea;
	--soft: #c9d1d3;
	--night: #1c2326;
	--gutter: clamp(20px, 5vw, 80px);
	--max: 1440px;
	--header: 88px;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", "Segoe UI", sans-serif;
	--radius: 6px;
	--radius-sm: 4px;
	--shadow: 0 16px 40px rgba(28, 35, 38, 0.08);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

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

a {
	color: var(--petrol);
	text-decoration: none;
}

a:hover {
	color: var(--petrol-dark);
}

:focus-visible {
	outline: 2px solid var(--petrol);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	background: var(--white);
	color: var(--petrol);
	padding: 10px 14px;
	z-index: 100;
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: 12px;
}

h1, h2, h3, .serif {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(40px, 5vw, 56px);
	line-height: 1.05;
	margin: 12px 0 20px;
}

h2 {
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.15;
	margin: 0 0 24px;
}

h3 {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 8px;
}

p {
	margin: 0 0 16px;
	color: var(--text);
}

.wrap {
	width: min(var(--max), 100%);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: 72px;
}

.section-tight {
	padding-top: 0;
}

.eyebrow {
	margin: 0;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--petrol);
	font-weight: 600;
}

.crumb {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--muted);
}

.crumb a {
	font-weight: 600;
}

.tagline {
	font-family: var(--serif);
	font-size: clamp(22px, 2.4vw, 26px);
	line-height: 1.3;
	color: var(--petrol);
	margin: -4px 0 20px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--header);
	background: rgba(245, 242, 236, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.logo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--ink);
	min-width: max-content;
}

.logo:hover {
	color: var(--ink);
}

.logo-name {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0.3px;
	line-height: 1;
}

.logo-sign {
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 500;
}

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

.nav-toggle {
	display: none;
	position: relative;
	z-index: 70;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	color: var(--ink);
}

.burger-icon,
.burger-icon::before,
.burger-icon::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--ink);
	position: relative;
	content: "";
}

.burger-icon::before,
.burger-icon::after {
	position: absolute;
	left: 0;
}

.burger-icon::before {
	top: -6px;
}

.burger-icon::after {
	top: 6px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.btn-quiet {
	background: transparent;
	color: var(--petrol) !important;
	border-color: var(--line-strong);
}

.btn-quiet:hover {
	background: var(--white);
	color: var(--petrol-dark) !important;
}

.primary-nav > ul {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-menu-parent > a {
	color: var(--petrol);
	box-shadow: inset 0 -2px 0 var(--petrol);
	padding-bottom: 4px;
}

.primary-nav .menu-cta > a,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: var(--petrol);
	color: var(--white) !important;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 16px;
	border: 1px solid var(--petrol);
	box-shadow: none !important;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
}

.primary-nav .menu-cta > a:hover,
.btn:hover {
	background: var(--petrol-dark);
	border-color: var(--petrol-dark);
	color: var(--white) !important;
}

.btn.btn-quiet {
	background: transparent;
	color: var(--petrol) !important;
	border-color: var(--petrol);
}

.btn.btn-quiet:hover {
	background: var(--white);
	color: var(--petrol-dark) !important;
	border-color: var(--petrol-dark);
}

.btn-light {
	background: var(--white);
	color: var(--petrol) !important;
	border-color: var(--white);
}

.btn-light:hover {
	background: var(--mist);
	color: var(--petrol-dark) !important;
}

.btn-ghost {
	background: transparent;
	color: var(--white) !important;
	border-color: var(--white);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--white) !important;
}

.menu-item-has-children {
	position: relative;
}

.has-toggle > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 300px;
	margin: 0;
	list-style: none;
	padding: 14px 8px 8px;
	background: transparent;
	border: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, visibility 0s linear 0.2s;
}

.primary-nav .sub-menu::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	top: 10px;
	bottom: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	color: var(--ink);
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a {
	background: var(--bg);
	box-shadow: none;
	padding: 10px 12px;
	color: var(--petrol);
}

.submenu-toggle,
.drawer-head,
.drawer-actions,
.nav-backdrop {
	display: none;
}

.hero-home {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--night);
}

.hero-home img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
}

.hero-card {
	position: relative;
	width: min(620px, calc(100% - (var(--gutter) * 2)));
	margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
	padding: 48px;
	background: rgba(20, 35, 40, 0.82);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hero-card h1,
.hero-card p {
	margin: 0;
	color: var(--white);
}

.hero-card h1 {
	font-size: clamp(36px, 4.4vw, 58px);
}

.hero-card p {
	font-size: 19px;
	line-height: 1.5;
	color: var(--mist);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.service-grid,
.article-grid,
.cards,
.steps,
.res,
.stat-grid {
	display: grid;
	gap: 20px;
}

.sector-nav {
	display: none;
	gap: 8px;
	flex: none;
}

[data-carousel].is-overflow .sector-nav {
	display: flex;
}

[data-carousel].is-overflow .sector-grid > :last-child,
[data-carousel].is-overflow .service-grid > :last-child,
[data-carousel].is-overflow .article-grid > :last-child,
[data-carousel].is-overflow .service-groups > :last-child {
	scroll-snap-align: end;
}

[data-carousel].is-overflow:not(.is-end) .sector-grid,
[data-carousel].is-overflow:not(.is-end) .service-grid,
[data-carousel].is-overflow:not(.is-end) .article-grid,
[data-carousel].is-overflow:not(.is-end) .service-groups {
	-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent);
	mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent);
}

[data-carousel].is-overflow:not(.is-start):not(.is-end) .sector-grid,
[data-carousel].is-overflow:not(.is-start):not(.is-end) .service-grid,
[data-carousel].is-overflow:not(.is-start):not(.is-end) .article-grid,
[data-carousel].is-overflow:not(.is-start):not(.is-end) .service-groups {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}

[data-carousel].is-overflow.is-end:not(.is-start) .sector-grid,
[data-carousel].is-overflow.is-end:not(.is-start) .service-grid,
[data-carousel].is-overflow.is-end:not(.is-start) .article-grid,
[data-carousel].is-overflow.is-end:not(.is-start) .service-groups {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 100%);
	mask-image: linear-gradient(to right, transparent, #000 22px, #000 100%);
}

.sector-move {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}

.sector-move span[aria-hidden="true"] {
	display: block;
	width: 7px;
	height: 7px;
	margin: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
}

.sector-move[data-dir="-1"] span[aria-hidden="true"] {
	transform: rotate(135deg);
	margin-left: 16px;
}

.sector-move[data-dir="1"] span[aria-hidden="true"] {
	transform: rotate(-45deg);
	margin-right: 16px;
}

.sector-move:hover:not(:disabled) {
	border-color: var(--petrol);
	color: var(--petrol);
}

.sector-move:disabled {
	opacity: 0.35;
	cursor: default;
}

.sector-grid {
	--sector-gap: 16px;
	--sector-full: 5;
	--sector-peek: 0px;
	--sector-trail: 0;
	display: flex;
	align-items: stretch;
	gap: var(--sector-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.sector-grid::-webkit-scrollbar {
	display: none;
}

@media (max-width: 1300px) {
	.sector-grid {
		--sector-full: 3;
		--sector-peek: 40px;
		--sector-trail: 1;
	}
}

@media (max-width: 980px) {
	.sector-grid {
		--sector-full: 2;
	}
}

@media (max-width: 680px) {
	.sector-grid {
		--sector-full: 1;
		--sector-peek: 48px;
	}
}

.sector-card,
.service-card,
.article-card,
.c {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
}

.sector-card {
	flex: 0 0 calc((100% - var(--sector-peek) - ((var(--sector-full) - 1 + var(--sector-trail)) * var(--sector-gap))) / var(--sector-full));
	min-height: 0;
	height: auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-self: stretch;
	overflow: hidden;
	scroll-snap-align: start;
	font-weight: 400;
}

.sector-icon {
	display: block;
	line-height: 0;
}

.sector-card.is-icon .sector-body {
	padding-top: 22px;
}

.sector-media {
	display: block;
	flex: none;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: var(--mist);
}

.sector-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.sector-card:hover .sector-media img {
	transform: scale(1.05);
}

.sector-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 16px 16px 18px;
}

.sector-name {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.sector-line {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--muted);
}

.sector-card .more {
	margin-top: auto;
	padding-top: 6px;
	font-size: 14px;
}

.more {
	color: var(--petrol);
	font-weight: 600;
}

.sector-card:hover,
.service-card:hover,
.article-card:hover {
	border-color: var(--petrol);
	color: var(--ink);
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.section-head h2 {
	margin: 0;
}

.link-arrow {
	font-weight: 600;
	white-space: nowrap;
}

.section-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
}

.service-grid {
	--carousel-gap: 20px;
	--carousel-full: 3;
	--carousel-peek: 0px;
	--carousel-trail: 0;
	display: flex;
	align-items: stretch;
	gap: var(--carousel-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.service-grid::-webkit-scrollbar {
	display: none;
}

.cards,
.article-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
	flex: 0 0 calc((100% - var(--carousel-peek) - ((var(--carousel-full) - 1 + var(--carousel-trail)) * var(--carousel-gap))) / var(--carousel-full));
	align-self: stretch;
	min-width: 0;
	min-height: 280px;
	padding: 36px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-snap-align: start;
}

@media (max-width: 980px) {
	.service-grid {
		--carousel-full: 2;
		--carousel-peek: 40px;
		--carousel-trail: 1;
	}
}

@media (max-width: 680px) {
	.service-grid {
		--carousel-full: 1;
		--carousel-peek: 48px;
	}
}

.service-card svg {
	display: block;
}

.service-card h3,
.c h3 {
	font-size: 26px;
	margin: 0;
}

.article-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 100%;
	padding: 28px 28px 24px;
	border-top: 3px solid var(--petrol);
	color: var(--ink);
}

.article-card.is-lead {
	padding: 36px 36px 28px;
}

.article-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	color: var(--muted);
}

.article-kicker span {
	color: var(--petrol);
	font-weight: 600;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}

.article-card h3 {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 500;
}

.article-card.is-lead h3 {
	font-size: clamp(30px, 3vw, 40px);
}

.article-excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
}

.article-card .more {
	margin-top: auto;
	padding-top: 8px;
}

.article-card:hover h3 {
	color: var(--petrol);
}

.topic-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.topic-row a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.topic-row a:hover,
.topic-row .is-current a {
	background: var(--petrol);
	border-color: var(--petrol);
	color: var(--white);
}

.service-card p,
.c p {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: #3f494d;
}

.service-card .more {
	margin-top: auto;
}

.stat-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.stat-grid div {
	border-top: 2px solid var(--petrol);
	padding-top: 16px;
}

.stat-grid strong {
	display: block;
	font-family: var(--serif);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--petrol);
	margin-bottom: 8px;
}

.stat-grid span {
	display: block;
	font-size: 16px;
	line-height: 1.45;
	color: var(--text);
}

.steps {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

.steps > li,
.step {
	border-top: 2px solid var(--petrol);
	padding-top: 16px;
}

.steps > li::before,
.step-no {
	display: block;
	font-size: 13px;
	color: var(--muted);
	letter-spacing: 0.4px;
	margin-bottom: 6px;
}

.steps > li::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
}

.steps h3,
.step h3 {
	font-family: var(--sans);
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px;
}

.steps p,
.step p {
	font-size: 16px;
}

.founder {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 48px;
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	gap: 40px;
	align-items: center;
}

.founder img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
}

.founder-home {
	grid-template-columns: minmax(220px, 320px) 1fr;
}

.founder-home img {
	aspect-ratio: 4 / 5;
}

.quote {
	margin: 20px 0 22px;
	font-family: var(--serif);
	font-size: 26px;
	line-height: 1.3;
	color: var(--ink);
}

.service-switch {
	position: sticky;
	top: var(--header);
	z-index: 30;
	background: rgba(245, 242, 236, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.service-switch-inner {
	width: min(var(--max), 100%);
	margin-inline: auto;
	padding-inline: var(--gutter);
	min-height: 58px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.service-switch-all {
	flex: none;
	padding-right: 18px;
	border-right: 1px solid var(--line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--muted);
}

.service-switch-all:hover,
.service-switch-all[aria-current="page"] {
	color: var(--petrol);
}

.service-switch-track {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.service-switch-scroller {
	min-width: 0;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}

.service-switch-scroller::-webkit-scrollbar {
	display: none;
}

.service-switch.is-overflow .service-switch-scroller {
	mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.service-switch ul {
	display: flex;
	align-items: center;
	gap: 4px;
	width: max-content;
	margin: 0;
	padding: 8px 2px;
	list-style: none;
}

.service-switch li a {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.service-switch li a:hover {
	background: var(--white);
	border-color: var(--line);
	color: var(--petrol);
}

.service-switch li a[aria-current="page"] {
	background: var(--petrol);
	border-color: var(--petrol);
	color: var(--white);
}

.service-switch li a[aria-current="page"]:hover {
	background: var(--petrol-dark);
	border-color: var(--petrol-dark);
	color: var(--white);
}

.service-switch-move {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--ink);
}

.service-switch-move span[aria-hidden="true"] {
	display: block;
	width: 7px;
	height: 7px;
	margin: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
}

.service-switch-move[data-dir="-1"] span[aria-hidden="true"] {
	transform: rotate(135deg);
	margin-left: 13px;
}

.service-switch-move[data-dir="1"] span[aria-hidden="true"] {
	transform: rotate(-45deg);
	margin-right: 13px;
}

.service-switch-move:hover {
	color: var(--petrol);
}

@media (max-width: 720px) {
	.service-switch-inner {
		padding-inline: 8px 12px;
		gap: 4px;
		min-height: 52px;
	}

	.service-switch-all {
		display: none;
	}

	.service-switch li a {
		padding: 8px 12px;
	}
}

.page-hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	padding-block: 72px;
}

.service-switch + .page-hero {
	padding-top: 48px;
}

.page-hero.is-text {
	grid-template-columns: minmax(0, 820px);
}

.page-hero img {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.intro-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.9fr;
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	padding-block: 72px;
}

.portrait img {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

.founder-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 48px;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 40px;
}

.year-tag {
	background: var(--bg);
	border-radius: var(--radius-sm);
	padding: 16px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	align-self: start;
}

.year-tag strong {
	display: block;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 500;
	color: var(--petrol);
	margin-bottom: 4px;
}

.partners {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
}

.band {
	background: var(--petrol);
	color: var(--white);
	padding-block: 72px;
}

.band h2,
.band h3 {
	color: var(--white);
}

.band p,
.band li {
	color: var(--mist);
}

.res {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 8px;
}

.res div b,
.res div strong {
	display: block;
	font-family: var(--serif);
	font-size: clamp(40px, 4vw, 52px);
	font-weight: 500;
	color: var(--white);
	line-height: 1;
	margin-bottom: 10px;
}

.res div span {
	display: block;
	color: #d8e1e3;
	font-size: 16px;
	line-height: 1.5;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.chips a,
.chips span {
	padding: 12px 18px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--radius-sm);
	color: var(--white);
	font-size: 16px;
}

.chips a {
	background: rgba(255, 255, 255, 0.12);
	font-weight: 600;
}

.chips a:hover {
	background: var(--white);
	color: var(--petrol);
}

.prose {
	padding-bottom: 24px;
}

.prose > * + * {
	margin-top: 20px;
}

.prose > h2 {
	margin-top: 48px;
}

.prose > h2:first-child {
	margin-top: 0;
}

.prose .cards,
.prose .steps,
.prose .list,
.prose .panel,
.prose .band {
	margin-top: 8px;
}

.prose .panel + .panel,
.prose .panel + h2,
.prose .cards + .panel,
.prose .list + h2,
.prose .steps + h2,
.prose .band + h2,
.prose .band + .panel {
	margin-top: 28px;
}

.c {
	padding: 26px;
}

.c h3 {
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 600;
}

.panel {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 36px;
}

.panel h2 {
	margin-bottom: 16px;
}

.panel .btn {
	margin-top: 8px;
}

.prose .band {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 72px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

.list,
.prose ol.list {
	margin: 0;
	padding-left: 22px;
}

.list li,
.prose ol.list li {
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 10px;
	color: var(--text);
}

.prose a:not(.btn) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.service-groups {
	display: grid;
	gap: 20px;
}

.group-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 36px;
}

.group-card .num {
	display: block;
	font-size: 13px;
	letter-spacing: 1px;
	color: var(--muted);
	margin-bottom: 8px;
}

.group-card h2 {
	font-size: 28px;
	margin-bottom: 12px;
}

.group-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
	margin-top: 16px;
}

.group-links a {
	font-weight: 600;
	font-size: 15px;
}

.group-links a .arrow {
	white-space: nowrap;
}

.cta {
	background: var(--night);
	color: var(--white);
	padding: 56px var(--gutter);
}

.cta-inner {
	width: min(var(--max), 100%);
	margin-inline: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
}

.cta h2 {
	color: var(--white);
	margin: 0 0 8px;
}

.cta p {
	color: var(--soft);
	margin: 0;
}

.cta-action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	flex: none;
}

.cta-action .hint {
	max-width: 34ch;
	font-size: 13px;
	line-height: 1.45;
	color: var(--soft);
}

.site-footer {
	padding: 48px var(--gutter) 32px;
	border-top: 1px solid var(--line);
}

.footer-inner {
	width: min(var(--max), 100%);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
	font-size: 14px;
	color: var(--muted);
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.footer-base {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.footer-legal {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.footer-inner small,
.legal-note {
	display: block;
	margin-top: 4px;
}

.footer-nav {
	min-width: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu > li > a {
	color: var(--ink);
	font-weight: 600;
}

.footer-menu a:hover {
	color: var(--petrol);
}

.footer-menu .menu-cta {
	display: none;
}

.footer-menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.footer-menu .sub-menu a {
	color: var(--muted);
	font-weight: 400;
}

.footer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

.footer-links a {
	color: var(--muted);
	font-weight: 500;
}

.footer-links a:hover {
	color: var(--petrol);
}

.two {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 24px;
	align-items: start;
}

.form-grid {
	display: grid;
	gap: 14px;
}

.field,
label.field {
	display: grid;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

.field > label {
	display: grid;
	gap: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

.choice {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.choice label,
.check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
}

.check input,
.choice input {
	margin-top: 4px;
}

.hint,
.form-note,
.field-help {
	font-size: 14px;
	font-weight: 400;
	color: var(--muted);
}

.field-help {
	background: none;
	border: 0;
	padding: 0;
	color: var(--petrol);
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.notice {
	padding: 16px 18px;
	border-radius: var(--radius);
	background: var(--white);
	border: 1px solid var(--line);
	margin-bottom: 20px;
}

.notice.is-error {
	border-color: #8c3a32;
}

.notice.is-success {
	background: var(--petrol);
	color: var(--white);
	border-color: var(--petrol);
}

.notice.is-success p {
	color: var(--white);
	margin: 0;
}

.contact-list p {
	margin-bottom: 18px;
}

.contact-list strong {
	display: block;
	color: var(--ink);
}

.contact-list .hint {
	display: block;
	margin-top: 4px;
}

.cookie-bar {
	position: fixed;
	z-index: 80;
	left: 16px;
	right: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(720px, calc(100% - 32px));
	margin-inline: auto;
	padding: 16px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.cookie-bar[hidden] {
	display: none;
}

.cookie-bar p {
	margin: 0;
	flex: 1;
	font-size: 14px;
	line-height: 1.45;
}

.cookie-bar a {
	color: var(--petrol);
	font-weight: 600;
}

.hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.progress {
	margin-bottom: 22px;
}

.progress-label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--petrol);
	margin-bottom: 8px;
}

.progress-track {
	display: block;
	height: 4px;
	background: var(--line);
	border-radius: 99px;
	overflow: hidden;
}

.progress-fill {
	display: block;
	height: 100%;
	background: var(--petrol);
	width: 0;
}

.wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.step-panel[hidden] {
	display: none;
}

.conditional[hidden] {
	display: none;
}

dialog {
	width: min(640px, calc(100% - 32px));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	background: var(--bg);
	color: var(--ink);
}

dialog::backdrop {
	background: rgba(28, 35, 38, 0.55);
}

dialog h2 {
	margin-bottom: 12px;
}

dialog ol,
dialog p {
	font-size: 16px;
}

.reading {
	width: min(760px, 100%);
}

.reading .meta {
	color: var(--muted);
	font-size: 15px;
	margin-bottom: 28px;
}

.reading .post-thumb {
	border-radius: var(--radius);
	margin-bottom: 28px;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pagination {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 12px var(--gutter) 72px;
}

.pagination a {
	font-weight: 600;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.search-form input {
	flex: 1;
}

@media (max-width: 1100px) {
	:root {
		--header: 72px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-header.is-open .nav-toggle {
		visibility: hidden;
	}

	.site-header.is-open .burger-icon {
		background: transparent;
	}

	.site-header.is-open .burger-icon::before,
	.site-header.is-open .burger-icon::after {
		top: 0;
	}

	.site-header.is-open .burger-icon::before {
		transform: rotate(45deg);
	}

	.site-header.is-open .burger-icon::after {
		transform: rotate(-45deg);
	}

	.nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 50;
		background: rgba(28, 35, 38, 0.46);
	}

	.nav-backdrop[hidden] {
		display: none;
	}

	.primary-nav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 60;
		width: min(380px, 88vw);
		height: 100dvh;
		display: flex;
		flex-direction: column;
		background: var(--bg);
		padding: 0;
		transform: translateX(-105%);
		transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1);
		pointer-events: none;
		overflow: hidden;
		opacity: 1;
	}

	.site-header.is-open .primary-nav {
		transform: translateX(0);
		pointer-events: auto;
		box-shadow: 24px 0 64px rgba(28, 35, 38, 0.16);
	}

	.drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 22px 24px 8px;
	}

	.drawer-kicker {
		margin: 0;
		font-family: var(--serif);
		font-size: 28px;
		line-height: 1;
		color: var(--ink);
	}

	.drawer-close {
		width: 40px;
		height: 40px;
		border: 0;
		background: transparent;
		position: relative;
		cursor: pointer;
	}

	.drawer-close::before,
	.drawer-close::after {
		content: "";
		position: absolute;
		left: 10px;
		top: 19px;
		width: 20px;
		height: 1.5px;
		background: var(--ink);
	}

	.drawer-close::before {
		transform: rotate(45deg);
	}

	.drawer-close::after {
		transform: rotate(-45deg);
	}

	.primary-nav > ul {
		flex: 1;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		overflow: auto;
		padding: 8px 24px 16px;
	}

	.primary-nav > ul > li > a {
		display: flex;
		width: 100%;
		padding: 13px 0;
		border-bottom: 1px solid var(--line);
		font-size: 18px;
		font-weight: 500;
		color: var(--ink);
		box-shadow: none;
	}

	.primary-nav .menu-cta {
		display: none;
	}

	.primary-nav > ul > li.has-toggle > a {
		display: none;
	}

	.primary-nav .submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 13px 0;
		border: 0;
		border-bottom: 1px solid var(--line);
		background: transparent;
		font: inherit;
		font-size: 18px;
		font-weight: 500;
		color: var(--ink);
		text-align: left;
		cursor: pointer;
	}

	.primary-nav .current-menu-ancestor > .submenu-toggle,
	.primary-nav .current-menu-parent > .submenu-toggle {
		color: var(--petrol);
	}

	.primary-nav .submenu-toggle::after {
		content: "";
		width: 8px;
		height: 8px;
		margin-right: 4px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.primary-nav .is-open > .submenu-toggle::after {
		transform: translateY(2px) rotate(-135deg);
	}

	.primary-nav .sub-menu {
		display: none;
	}

	.primary-nav .is-open > .sub-menu {
		position: static;
		display: flex;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		min-width: 0;
		padding: 4px 0 8px 14px;
		background: transparent;
		border: 0;
		box-shadow: none;
		transform: none;
		transition: none;
	}

	.primary-nav .sub-menu::before {
		display: none;
	}

	.primary-nav .sub-menu a {
		padding: 9px 0;
		font-size: 16px;
		font-weight: 500;
		color: var(--text);
		border-radius: 0;
	}

	.primary-nav .sub-menu a:hover,
	.primary-nav .sub-menu .current-menu-item > a {
		background: transparent;
		padding: 9px 0;
		color: var(--petrol);
	}

	.drawer-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: auto;
		padding: 16px 24px 28px;
		border-top: 1px solid var(--line);
		background: var(--bg);
	}

	.drawer-actions .btn {
		width: 100%;
	}

	.article-card.is-lead {
		padding: 28px 24px 24px;
	}

	.stat-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
	}

	.stat-grid div {
		display: block;
		padding-top: 16px;
	}

	.stat-grid strong {
		margin-bottom: 8px;
		font-size: clamp(26px, 7vw, 34px);
	}

	.steps {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
	}

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

	.step {
		display: block;
		padding-top: 16px;
	}

	.step-no {
		margin: 0 0 6px;
		font-family: var(--serif);
		font-size: 18px;
		line-height: 1.1;
		color: var(--petrol);
	}

	.step p {
		margin: 0;
	}

	[data-carousel] .article-grid {
		--carousel-gap: 16px;
		--carousel-full: 1;
		--carousel-peek: 48px;
		--carousel-trail: 1;
		display: flex;
		align-items: stretch;
		gap: var(--carousel-gap);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}

	[data-carousel] .article-grid::-webkit-scrollbar {
		display: none;
	}

	[data-carousel] .article-card {
		flex: 0 0 calc((100% - var(--carousel-peek) - ((var(--carousel-full) - 1 + var(--carousel-trail)) * var(--carousel-gap))) / var(--carousel-full));
		align-self: stretch;
		min-width: 0;
		scroll-snap-align: start;
	}

	[data-carousel] .service-groups {
		--carousel-gap: 16px;
		--carousel-full: 1;
		--carousel-peek: 48px;
		--carousel-trail: 1;
		display: flex;
		align-items: stretch;
		gap: var(--carousel-gap);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}

	[data-carousel] .service-groups::-webkit-scrollbar {
		display: none;
	}

	[data-carousel] .group-card {
		flex: 0 0 calc((100% - var(--carousel-peek) - ((var(--carousel-full) - 1 + var(--carousel-trail)) * var(--carousel-gap))) / var(--carousel-full));
		align-self: stretch;
		min-width: 0;
		scroll-snap-align: start;
	}

	.groups-carousel.is-pinned .groups-pin {
		position: sticky;
		top: var(--groups-pin, 128px);
	}

	.groups-carousel.is-pinned .service-groups {
		scroll-snap-type: none;
		scroll-behavior: auto;
	}

	.groups-carousel .sector-nav {
		margin-bottom: 16px;
		justify-content: flex-end;
	}

	.group-links {
		gap: 8px 22px;
	}

	.group-links a {
		font-size: 13px;
	}

	.section-head {
		flex-wrap: wrap;
		align-items: center;
	}

	.section-head > .sector-nav {
		margin-left: auto;
	}

	.section-actions {
		flex: 1 1 100%;
		justify-content: space-between;
		gap: 12px;
	}
	.res,
	.page-hero,
	.intro-grid,
	.founder,
	.founder-card,
	.partners,
	.two {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	body {
		font-size: 17px;
	}

	.logo-name {
		font-size: 24px;
	}

	.logo-sign {
		font-size: 10px;
	}

	.section,
	.page-hero,
	.intro-grid,
	.band,
	.prose .band {
		padding-block: 44px;
	}

	.hero-home {
		min-height: 0;
		display: block;
	}

	.hero-home img {
		position: relative;
		height: 240px;
	}

	.hero-card {
		width: 100%;
		margin: 0;
		border-radius: 0;
		padding: 28px 20px 36px;
	}

	.button-row,
	.button-row .btn {
		width: 100%;
	}

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

	.service-card,
	.founder,
	.founder-card,
	.panel,
	.c {
		padding: 24px;
	}

	.group-card {
		padding: 20px 16px;
	}

	.cta {
		padding-block: 44px;
	}

	.cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-inner {
		gap: 24px;
	}

	.footer-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	.footer-menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px 18px;
	}

	.footer-actions {
		flex-direction: column;
	}

	.footer-actions .btn {
		width: 100%;
	}

	.footer-base {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.footer-links {
		gap: 8px 20px;
	}

	.cookie-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-bar .btn {
		width: 100%;
	}

	.wizard-nav {
		flex-direction: column-reverse;
	}

	.wizard-nav .btn {
		width: 100%;
	}

	.apmf-form .wizard-nav {
		flex-direction: row;
		width: 100%;
	}

	.apmf-form .wizard-nav .btn {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.apmf-form {
	gap: 22px;
}

.apmf-form [hidden] {
	display: none !important;
}

.apmf-form .step-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px 20px;
	align-items: start;
}

.apmf-form .field,
.apmf-form .check,
.apmf-form .notice {
	min-width: 0;
}

.apmf-form .is-wide {
	grid-column: 1 / -1;
}

.apmf-form .field {
	gap: 8px;
	font-size: 16px;
}

.apmf-form input[type="text"],
.apmf-form input[type="email"],
.apmf-form input[type="tel"],
.apmf-form select,
.apmf-form textarea {
	min-height: 56px;
	padding: 14px 16px;
	font-size: 17px;
	border-radius: 8px;
}

.apmf-form input[type="text"],
.apmf-form input[type="email"],
.apmf-form input[type="tel"],
.apmf-form select {
	height: 56px;
}

.apmf-form select {
	padding: 0 40px 0 16px;
	line-height: 54px;
	appearance: none;
	-webkit-appearance: none;
	background-color: var(--white);
	background-image: 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 1.5 6 6.5 11 1.5' fill='none' stroke='%231f4e5a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}

.apmf-form textarea {
	min-height: 140px;
}

.apmf-form fieldset {
	margin: 0;
	min-width: 0;
	padding: 22px 20px 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--white);
}

.apmf-form .field > label > span,
.apmf-form legend {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
}

.apmf-form legend {
	padding: 0 8px;
}

.apmf-form .choice-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.apmf-form .choice-pills.is-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.apmf-form .choice-pill {
	position: relative;
	display: inline-flex;
	margin: 0;
	font-weight: 600;
}

.apmf-form .choice-pills.is-pair .choice-pill {
	display: flex;
}

.apmf-form .choice-pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.apmf-form .choice-pill span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 14px 26px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}

.apmf-form .choice-pills.is-pair .choice-pill span {
	width: 100%;
}

.apmf-form .choice-pill input:checked + span {
	background: var(--petrol);
	border-color: var(--petrol);
	color: var(--white);
}

.apmf-form .choice-pill input:focus-visible + span {
	outline: 2px solid var(--petrol);
	outline-offset: 2px;
}

.apmf-form .field.is-invalid input,
.apmf-form .field.is-invalid select,
.apmf-form .field.is-invalid textarea,
.apmf-form .check.is-invalid {
	border-color: #8c3a32;
}

.apmf-form .is-invalid .choice-pill span {
	border-color: #8c3a32;
}

.apmf-form .field-error {
	margin: 8px 0 0;
	color: #8c3a32;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.apmf-form fieldset .hint {
	display: block;
	margin-top: 10px;
}

.apmf-form .wizard-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	width: 100%;
	margin-top: 4px;
}

.apmf-form .wizard-back {
	margin-right: auto;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--petrol);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.apmf-form .wizard-back:hover {
	color: var(--petrol-dark);
}

.apmf-form .wizard-nav .btn {
	width: auto;
	margin-top: 0;
}

@media (max-width: 759px) {
	.apmf-form legend,
	.apmf-form .field > label > span {
		font-size: 17px;
	}

	.apmf-form fieldset {
		padding: 16px 14px 14px;
	}

	.apmf-form .choice-pills:not(.is-pair) {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.apmf-form .choice-pills:not(.is-pair) .choice-pill {
		display: flex;
	}

	.apmf-form .choice-pill span {
		min-height: 46px;
		padding: 8px 10px;
		font-size: 15px;
		line-height: 1.2;
		text-align: center;
	}

	.apmf-form .choice-pills:not(.is-pair) .choice-pill span {
		width: 100%;
	}
}

@media (min-width: 760px) {
	.apmf-form .step-panel {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.apmf-form .step-panel {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
