/* ==========================================================================
   Arte-Medica – main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Header & nav  6. Buttons
   7. Heroes  8. Sections & components  9. Entry content (blocks)
   10. Contact, grant, footer  11. Utilities  12. Motion & print
   ========================================================================== */

/* 1. Fonts – self-hosted variable fonts (no requests to Google = RODO-friendly) */
@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens – brand colours from the previous site, tuned to pass WCAG AA */
:root {
	/* brand */
	--c-blue: #2494b8;          /* decorative only (icons, bars) – 3.5:1 on white */
	--c-blue-strong: #1b6d88;   /* text, links, white-on-blue surfaces – 5.9:1 */
	--c-blue-tint: #eaf4f8;
	--c-navy: #142952;          /* headings, dark sections – 14.3:1 */
	--c-navy-deep: #0d1c3a;
	--c-coral: #eb9484;         /* accent – always with navy text (6.2:1) */
	--c-coral-tint: #fdf1ee;

	/* neutrals */
	--c-text: #263142;
	--c-muted: #4f5d6f;         /* 6.6:1 on white */
	--c-border: #d5e1e8;
	--c-input: #6b7c8f;         /* 4.4:1 – visible field borders */
	--c-bg: #ffffff;
	--c-bg-tint: #f3f7f9;
	--c-focus: #142952;
	--c-danger: #b42318;

	/* type */
	--f-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--f-head: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
	--fs-sm: 1rem;                                     /* 16px */
	--fs-base: 1.125rem;                               /* 18px – older patients */
	--fs-lg: 1.25rem;
	--fs-h4: 1.25rem;
	--fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	--fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
	--lh: 1.65;

	/* space */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--section: clamp(3.5rem, 2rem + 6vw, 6.5rem);
	--gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

	/* shape */
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgb(20 41 82 / 0.08);
	--shadow: 0 8px 24px -8px rgb(20 41 82 / 0.18);
	--shadow-lg: 0 20px 48px -16px rgb(20 41 82 / 0.28);

	--container: 1200px;
	--measure: 760px;
	--header-h: 80px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--t: 180ms var(--ease);
}

/* 3. Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: var(--lh);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--sp-4);
	color: var(--c-navy);
	font-family: var(--f-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p,
ul,
ol,
dl,
figure,
blockquote,
table {
	margin: 0 0 var(--sp-5);
}

p {
	text-wrap: pretty;
}

a {
	color: var(--c-blue-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--t);
}

a:hover {
	color: var(--c-navy);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.section--navy :focus-visible,
.page-hero :focus-visible,
.topbar :focus-visible {
	outline-color: #fff;
}

address {
	font-style: normal;
}

strong,
b {
	font-weight: 700;
}

hr {
	height: 1px;
	margin: var(--sp-7) 0;
	border: 0;
	background: var(--c-border);
}

::selection {
	background: var(--c-coral);
	color: var(--c-navy);
}

.icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
}

.icon--inline {
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-left: 0.25em;
	vertical-align: -0.05em;
}

/* 4. Layout */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	display: block;
	outline: none;
}

.section {
	padding-block: var(--section);
}

.section--tint {
	background: var(--c-bg-tint);
}

.section--navy {
	background: var(--c-navy);
	color: #fff;
}

.skip-link {
	position: absolute;
	top: var(--sp-2);
	left: var(--sp-2);
	z-index: 1000;
	padding: var(--sp-3) var(--sp-5);
	border-radius: var(--radius-sm);
	background: var(--c-navy);
	color: #fff;
	font-weight: 700;
	transform: translateY(-200%);
	transition: transform var(--t);
}

.skip-link:focus {
	transform: none;
	color: #fff;
}

/* 5. Header & navigation */
.topbar {
	background: var(--c-navy);
	color: #fff;
	font-size: 0.9375rem;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-2) var(--sp-6);
	padding-block: var(--sp-2);
}

.topbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__list li,
.topbar__list a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 32px;
}

.topbar a {
	color: #fff;
	text-decoration: none;
}

.topbar a:hover {
	text-decoration: underline;
}

.topbar .icon {
	width: 1rem;
	height: 1rem;
	color: var(--c-coral);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgb(255 255 255 / 0.97);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow var(--t);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	min-height: var(--header-h);
}

.brand {
	display: block;
	flex: none;
	margin-right: auto;
	padding-block: var(--sp-2);
}

.brand__logo {
	width: auto;
	height: 56px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: var(--sp-2);
	min-width: 48px;
	min-height: 48px;
	padding: 0 var(--sp-4);
	border: 2px solid var(--c-navy);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--c-navy);
	font: 700 1rem/1 var(--f-head);
	text-transform: uppercase;
	cursor: pointer;
}

.menu-toggle .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: block;
}

.nav__list,
.nav__submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
}

.nav__item {
	position: relative;
	display: flex;
	align-items: center;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	min-height: 44px;
	padding: var(--sp-2) var(--sp-3);
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--c-navy);
	font: 600 1rem/1.2 var(--f-head);
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t), color var(--t);
}

.nav__link:hover,
.nav__toggle[aria-expanded="true"] {
	background: var(--c-blue-tint);
	color: var(--c-navy);
}

.nav__item--depth-0.is-active > .nav__link {
	box-shadow: inset 0 -3px 0 var(--c-coral);
}

.nav__toggle--icon {
	display: inline-grid;
	place-items: center;
	width: 32px;
	min-height: 44px;
	margin-left: -0.5rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--c-navy);
	cursor: pointer;
}

.nav__chevron {
	width: 1rem;
	height: 1rem;
	transition: transform var(--t);
}

[aria-expanded="true"] > .nav__chevron {
	transform: rotate(180deg);
}

.nav__submenu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 10;
	display: none;
	min-width: 280px;
	padding: var(--sp-2);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.nav__submenu.is-open {
	display: block;
}

.nav__submenu .nav__item {
	flex-wrap: wrap;
}

.nav__submenu .nav__link {
	flex: 1;
	justify-content: space-between;
	width: 100%;
	padding-inline: var(--sp-4);
	font-family: var(--f-body);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.nav__submenu .nav__submenu {
	position: static;
	min-width: 0;
	margin: 0 0 var(--sp-2) var(--sp-4);
	padding: 0 0 0 var(--sp-2);
	border: 0;
	border-left: 2px solid var(--c-border);
	border-radius: 0;
	box-shadow: none;
}

.nav__extra {
	display: none;
}

.btn.site-header__cta {
	min-height: 48px;
}

@media (max-width: 1099px) {
	:root {
		--header-h: 72px;
	}

	.topbar {
		display: none;
	}

	.brand__logo {
		height: 48px;
	}

	.menu-toggle {
		display: inline-flex;
		order: 3;
	}

	.nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		z-index: 99;
		display: none;
		overflow-y: auto;
		padding: var(--sp-4) var(--gutter) calc(var(--sp-8) + 64px);
		background: #fff;
		overscroll-behavior: contain;
	}

	.nav.is-open {
		display: block;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__item {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--c-border);
	}

	.nav__link {
		flex: 1;
		justify-content: space-between;
		min-height: 56px;
		font-size: 1.125rem;
	}

	.nav__toggle--icon {
		width: 56px;
		min-height: 56px;
	}

	.nav__submenu,
	.nav__submenu .nav__submenu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		margin: 0 0 var(--sp-3);
		padding: 0 0 0 var(--sp-4);
		border: 0;
		border-left: 3px solid var(--c-blue-tint);
		border-radius: 0;
		box-shadow: none;
	}

	.nav__submenu .nav__item {
		border: 0;
	}

	.nav__extra {
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
		margin-top: var(--sp-5);
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (max-width: 599px) {
	.site-header .site-header__cta {
		display: none;
	}

	.menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

/* 6. Buttons (theme + core/button + WPForms submit) */
.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: 0.625rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--c-blue-strong);
	color: #fff;
	font: 700 1.0625rem/1.2 var(--f-head);
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}

.btn:hover,
.wp-block-button__link:hover {
	background: var(--c-navy);
	color: #fff;
	text-decoration: none;
}

.btn:active {
	transform: translateY(1px);
}

.btn .icon {
	width: 1.125rem;
	height: 1.125rem;
}

.btn--lg {
	min-height: 56px;
	padding-inline: 2rem;
	font-size: 1.125rem;
}

.btn--accent {
	background: var(--c-coral);
	color: var(--c-navy);
}

.btn--accent:hover {
	background: #f3b2a6;
	color: var(--c-navy);
}

.btn--secondary,
.is-style-secondary .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--c-navy);
	background: transparent;
	color: var(--c-navy);
}

.btn--secondary:hover,
.is-style-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--c-navy);
	color: #fff;
}

.btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--c-navy);
}

.btn--light:hover {
	background: transparent;
	color: #fff;
}

.btn--ghost {
	border-color: var(--c-border);
	background: #fff;
	color: var(--c-navy);
}

/* 7. Heroes */
.page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--c-navy);
	color: #fff;
}

.page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgb(13 28 58 / 0.92) 0%, rgb(20 41 82 / 0.78) 45%, rgb(20 41 82 / 0.25) 100%);
}

.page-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(220px, 32vh, 340px);
	padding-block: var(--sp-7);
}

.page-hero__title {
	max-width: 22ch;
	margin-bottom: var(--sp-3);
	color: #fff;
	text-transform: uppercase;
}

.page-hero__lead {
	max-width: 44rem;
	margin: 0;
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-1) var(--sp-2);
	margin: 0;
	padding: var(--sp-4) 0;
	list-style: none;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "›";
	margin-right: var(--sp-2);
	color: var(--c-muted);
}

.breadcrumbs a {
	color: var(--c-blue-strong);
}

/* 8. Sections & components */
.section-heading {
	margin-bottom: var(--sp-7);
	padding-left: var(--sp-5);
	border-left: 6px solid var(--c-coral);
}

.section-heading__title {
	margin-bottom: var(--sp-2);
	text-transform: uppercase;
}

.section-heading__lead {
	max-width: 44rem;
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-lg);
}

.section-heading--light .section-heading__title {
	color: #fff;
}

.section-heading--light .section-heading__lead {
	color: rgb(255 255 255 / 0.85);
}

/* Hours list */
.hours {
	margin: 0;
}

.hours__row {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-block: var(--sp-2);
	border-bottom: 1px dashed rgb(255 255 255 / 0.3);
}

.hours dt {
	font-weight: 500;
}

.hours dd {
	margin: 0;
	font-weight: 700;
	white-space: nowrap;
}

.hours__row--closed dd {
	font-weight: 400;
	opacity: 0.8;
}

.hours--content .hours__row {
	border-color: var(--c-border);
}

.staff {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.staff__item {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
}

.staff__photo,
.staff__avatar {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.staff__avatar {
	display: grid;
	place-items: center;
	background: var(--c-blue-tint);
	color: var(--c-blue-strong);
	font: 700 1.25rem/1 var(--f-head);
}

.staff__name {
	margin: 0;
	color: var(--c-navy);
	font: 700 1.1875rem/1.25 var(--f-head);
}

.staff__role {
	margin: var(--sp-1) 0 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	line-height: 1.4;
}

.entry-content > div.wpforms-container-full {
	margin-inline: auto !important;
}

/* Front page – block-based sections */
.front-content.entry-content > *,
.front-content.entry-content > .alignfull {
	max-width: none;
	margin: 0;
}

.front-content > .wp-block-group,
.front-content > .wp-block-cover {
	margin: 0;
}

/* Section groups (front page or any page) */
.wp-block-group.is-style-section,
.wp-block-group.is-style-section-plain,
.wp-block-group.is-style-section-navy {
	padding: var(--section) var(--gutter);
}

.wp-block-group.is-style-section {
	background: var(--c-bg-tint);
}

.wp-block-group.is-style-section-navy {
	background: var(--c-navy);
	color: #fff;
}

.wp-block-group.is-style-section > *,
.wp-block-group.is-style-section-plain > *,
.wp-block-group.is-style-section-navy > * {
	max-width: var(--container);
	margin-inline: auto;
}

.wp-block-group.is-style-section > h2,
.wp-block-group.is-style-section-plain > h2,
.wp-block-group.is-style-section-navy > h2 {
	margin-bottom: var(--sp-2);
	padding-left: var(--sp-5);
	border-left: 6px solid var(--c-coral);
	text-transform: uppercase;
}

.wp-block-group.is-style-section > h2 + .is-style-lead,
.wp-block-group.is-style-section-plain > h2 + .is-style-lead,
.wp-block-group.is-style-section-navy > h2 + .is-style-lead {
	margin-bottom: var(--sp-7);
	padding-left: calc(var(--sp-5) + 6px);
	color: var(--c-muted);
	font-size: var(--fs-lg);
}

.wp-block-group.is-style-section-navy h2,
.wp-block-group.is-style-section-navy h3,
.wp-block-group.is-style-section-navy a {
	color: #fff;
}

.wp-block-group.is-style-section-navy > h2 + .is-style-lead {
	color: rgb(255 255 255 / 0.85);
}

.wp-block-group.is-style-section-navy :focus-visible {
	outline-color: #fff;
}

/* Hero (core/cover, style "hero") */
.wp-block-cover.is-style-hero {
	align-items: center;
	min-height: clamp(480px, 72vh, 720px) !important;
	padding: var(--sp-8) var(--gutter);
	color: #fff;
}

.wp-block-cover.is-style-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgb(13 28 58 / 0.92) 0%, rgb(20 41 82 / 0.78) 45%, rgb(20 41 82 / 0.25) 100%) !important;
	opacity: 1 !important;
}

.wp-block-cover.is-style-hero .wp-block-cover__inner-container,
.wp-block-cover.is-style-hero.has-custom-content-position .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: var(--container);
	margin-inline: auto !important;
}

.wp-block-cover.is-style-hero h1 {
	max-width: 20ch;
	margin-bottom: var(--sp-5);
	color: #fff;
	font-size: var(--fs-h1);
	text-align: left;
	text-transform: uppercase;
}

.wp-block-cover.is-style-hero p {
	max-width: 36rem;
	margin-bottom: var(--sp-6);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.5;
	text-align: left;
}

.wp-block-cover.is-style-hero .wp-block-buttons {
	justify-content: flex-start;
	margin-bottom: var(--sp-7);
}

.wp-block-cover.is-style-hero a:not(.wp-block-button__link) {
	color: #fff;
	font-weight: 700;
}

.wp-block-cover.is-style-hero :focus-visible {
	outline-color: #fff;
}

/* Buttons – extra styles */
.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--c-coral);
	color: var(--c-navy);
}

.wp-block-button.is-style-accent .wp-block-button__link:hover {
	background: #f3b2a6;
	color: var(--c-navy);
}

.wp-block-button.is-style-light .wp-block-button__link {
	border-color: #fff;
	background: #fff;
	color: var(--c-navy);
}

.wp-block-button.is-style-light .wp-block-button__link:hover {
	background: transparent;
	color: #fff;
}

/* Notice right under the hero */
.front-content > .wp-block-group.is-style-notice {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-4) var(--sp-5);
	max-width: var(--container);
	margin: var(--sp-5) auto 0;
	padding: var(--sp-5) var(--sp-6);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.front-content > .wp-block-group.is-style-notice > p {
	flex: 1 1 20rem;
	margin: 0;
}

.front-content > .wp-block-group.is-style-notice > .wp-block-buttons {
	margin: 0;
}

@media (max-width: 1263px) {
	.front-content > .wp-block-group.is-style-notice {
		margin-inline: var(--gutter);
	}
}

/* Hours card */
.wp-block-group.is-style-hours-card {
	position: sticky;
	top: calc(var(--header-h) + var(--sp-5));
	padding: var(--sp-6);
	border-radius: var(--radius);
	background: var(--c-blue-strong);
	color: #fff;
}

.wp-block-group.is-style-hours-card h2,
.wp-block-group.is-style-hours-card h3 {
	color: #fff;
	font-size: var(--fs-h3);
	text-transform: uppercase;
}

.wp-block-group.is-style-hours-card h2::before,
.wp-block-group.is-style-hours-card h3::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: var(--sp-3);
	background: var(--c-coral);
	mask: url("../icons/clock.svg") center / contain no-repeat;
}

.wp-block-group.is-style-hours-card a {
	color: #fff;
	font: 700 1.5rem/1.3 var(--f-head);
}

.wp-block-group.is-style-hours-card > :last-child {
	margin-bottom: 0;
}

.wp-block-group.is-style-hours-card :focus-visible {
	outline-color: #fff;
}

.wp-block-group.is-style-hours-card .hours__row {
	border-color: rgb(255 255 255 / 0.3);
}

.front-content .wp-block-column > h2:first-child {
	margin-bottom: var(--sp-2);
	padding-left: var(--sp-5);
	border-left: 6px solid var(--c-coral);
	text-transform: uppercase;
}

.front-content .wp-block-column > h2:first-child + .is-style-lead {
	padding-left: calc(var(--sp-5) + 6px);
	color: var(--c-muted);
}

.front-content .wp-block-columns {
	gap: var(--sp-7);
}

.front-content .wp-block-columns.is-style-cards,
.front-content .wp-block-columns.is-style-steps,
.front-content .wp-block-columns.is-style-actions {
	gap: var(--sp-5);
}

/* Icon helper: add class "am-icon-<name>" to a column/group */
[class*="am-icon-"]::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: var(--sp-5);
	border-radius: 50%;
	background: var(--c-blue-tint);
}

[class*="am-icon-"]::after {
	content: "";
	position: absolute;
	top: calc(var(--am-pad, 2rem) + 14px);
	left: calc(var(--am-pad, 2rem) + 14px);
	width: 28px;
	height: 28px;
	background: var(--c-blue-strong);
	mask: var(--am-icon) center / contain no-repeat;
	pointer-events: none;
}

.am-icon-stethoscope { --am-icon: url("../icons/stethoscope.svg"); }
.am-icon-nurse { --am-icon: url("../icons/nurse.svg"); }
.am-icon-baby { --am-icon: url("../icons/baby.svg"); }
.am-icon-hospital { --am-icon: url("../icons/hospital.svg"); }
.am-icon-search { --am-icon: url("../icons/search.svg"); }
.am-icon-heart-pulse { --am-icon: url("../icons/heart-pulse.svg"); }
.am-icon-smartphone { --am-icon: url("../icons/smartphone.svg"); }
.am-icon-clipboard { --am-icon: url("../icons/clipboard.svg"); }
.am-icon-pill { --am-icon: url("../icons/pill.svg"); }
.am-icon-syringe { --am-icon: url("../icons/syringe.svg"); }
.am-icon-droplet { --am-icon: url("../icons/droplet.svg"); }
.am-icon-file-text { --am-icon: url("../icons/file-text.svg"); }
.am-icon-file-down { --am-icon: url("../icons/file-down.svg"); }
.am-icon-video { --am-icon: url("../icons/video.svg"); }
.am-icon-user { --am-icon: url("../icons/user.svg"); }
.am-icon-clock { --am-icon: url("../icons/clock.svg"); }

/* Cards (columns style "cards") – whole card clickable via the heading link */
.wp-block-columns.is-style-cards > .wp-block-column {
	--am-pad: var(--sp-6);
	position: relative;
	transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.wp-block-columns.is-style-cards > .wp-block-column:has(h3 a):hover,
.wp-block-columns.is-style-cards > .wp-block-column:has(h3 a):focus-within {
	border-color: var(--c-blue);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.wp-block-columns.is-style-cards h3 {
	text-transform: uppercase;
}

.wp-block-columns.is-style-cards h3 a,
.wp-block-group.is-style-tiles h3 a {
	color: inherit;
	text-decoration: none;
}

.wp-block-columns.is-style-cards h3 a::after,
.wp-block-group.is-style-tiles h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--radius);
}

.wp-block-columns.is-style-cards h3 a:focus-visible,
.wp-block-group.is-style-tiles h3 a:focus-visible {
	outline: none;
}

.wp-block-columns.is-style-cards > .wp-block-column:has(h3 a:focus-visible) {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
}

.wp-block-columns.is-style-cards p {
	color: var(--c-muted);
}

.am-more {
	margin-top: auto;
	color: var(--c-blue-strong) !important;
	font: 700 1rem/1 var(--f-head);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.am-more::after {
	content: " →";
}

/* Steps (columns style "steps") */
.wp-block-columns.is-style-steps {
	gap: var(--sp-5);
	margin-bottom: var(--sp-6);
	counter-reset: am-step;
}

.wp-block-columns.is-style-steps > .wp-block-column {
	padding: var(--sp-6);
	border-radius: var(--radius);
	background: var(--c-bg-tint);
	counter-increment: am-step;
}

.wp-block-columns.is-style-steps > .wp-block-column::before {
	content: counter(am-step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--sp-4);
	border-radius: 50%;
	background: var(--c-coral);
	color: var(--c-navy);
	font: 700 1.25rem/1 var(--f-head);
}

.wp-block-columns.is-style-steps h3 {
	font-size: var(--fs-h4);
}

.wp-block-columns.is-style-steps > .wp-block-column > :last-child {
	margin-bottom: 0;
}

/* Actions (columns style "actions") */
.wp-block-columns.is-style-actions {
	gap: var(--sp-5);
}

.wp-block-columns.is-style-actions > .wp-block-column {
	--am-pad: var(--sp-6);
	position: relative;
	padding: var(--sp-6);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-coral-tint);
}

.wp-block-columns.is-style-actions > .wp-block-column::before {
	background: #fff;
}

.wp-block-columns.is-style-actions h3 {
	margin-bottom: var(--sp-1);
	font-size: var(--fs-h4);
}

.wp-block-columns.is-style-actions p {
	color: var(--c-muted);
}

.wp-block-columns.is-style-actions .wp-block-buttons {
	margin-bottom: 0;
}

/* Tiles (group style "tiles") – used in the navy "Informator" section */
.wp-block-group.is-style-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: var(--sp-4);
}

.wp-block-group.is-style-tiles > .wp-block-group {
	--am-pad: var(--sp-5);
	position: relative;
	margin: 0;
	padding: var(--sp-5);
	border: 1px solid rgb(255 255 255 / 0.16);
	border-radius: var(--radius);
	background: rgb(255 255 255 / 0.06);
	transition: background-color var(--t), border-color var(--t), transform var(--t);
}

.wp-block-group.is-style-tiles > .wp-block-group:hover,
.wp-block-group.is-style-tiles > .wp-block-group:focus-within {
	border-color: var(--c-coral);
	background: rgb(255 255 255 / 0.12);
	transform: translateY(-2px);
}

.wp-block-group.is-style-tiles > .wp-block-group:has(h3 a:focus-visible) {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.wp-block-group.is-style-tiles > [class*="am-icon-"]::before {
	width: 32px;
	height: 32px;
	margin-bottom: var(--sp-4);
	background: transparent;
}

.wp-block-group.is-style-tiles > [class*="am-icon-"]::after {
	top: var(--sp-5);
	left: var(--sp-5);
	width: 32px;
	height: 32px;
	background: var(--c-coral);
}

.wp-block-group.is-style-tiles h3 {
	margin-bottom: var(--sp-2);
	font-size: var(--fs-h4);
	text-transform: uppercase;
}

.wp-block-group.is-style-tiles p {
	margin: 0;
	color: rgb(255 255 255 / 0.85);
	font-size: var(--fs-sm);
}

/* Form card */
.wp-block-group.is-style-form-card {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.wp-block-group.is-style-form-card > h2 {
	margin-bottom: var(--sp-2);
	padding: 0;
	border: 0;
	font-size: var(--fs-h3);
	text-transform: uppercase;
}

.wp-block-group.is-style-form-card > p:first-of-type {
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.wp-block-group.is-style-form-card > :last-child {
	margin-bottom: 0;
}

/* Front page: two-column rows inside sections stack on tablets */
@media (max-width: 899px) {
	.wp-block-group.is-style-hours-card {
		position: static;
	}
}

@media (max-width: 599px) {
	.wp-block-cover.is-style-hero .wp-block-button {
		width: 100%;
	}

	.wp-block-cover.is-style-hero .wp-block-button__link {
		width: 100%;
	}

	.front-content > .wp-block-group.is-style-notice {
		margin-top: var(--sp-5);
		padding: var(--sp-5);
	}
}

/* Native forms (artemedica-core) */
.amc-form {
	display: grid;
	gap: var(--sp-4);
}

.amc-form__required-note,
.amc-form__privacy {
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.amc-form__heading {
	margin: var(--sp-5) 0 0;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-border);
	font-size: var(--fs-h4);
}

.amc-form__row {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: end;
	gap: var(--sp-4);
}

.amc-field--half { grid-column: span 3; }
.amc-field--wide { grid-column: span 4; }
.amc-field--third { grid-column: span 1; }

@media (max-width: 599px) {
	.amc-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.amc-field--half,
	.amc-field--wide {
		grid-column: 1 / -1;
	}

	.amc-field--third {
		grid-column: span 1;
	}
}

.amc-label,
.amc-field legend {
	display: block;
	margin-bottom: var(--sp-2);
	padding: 0;
	color: var(--c-navy);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.amc-req {
	color: var(--c-danger);
}

.amc-field fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.amc-field input[type="text"],
.amc-field input[type="email"],
.amc-field input[type="tel"],
.amc-field select,
.amc-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--c-input);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--c-text);
	font: 400 1.125rem/1.4 var(--f-body);
}

.amc-field textarea {
	min-height: 140px;
	resize: vertical;
}

.amc-field input:focus,
.amc-field select:focus,
.amc-field textarea:focus {
	border-color: var(--c-navy);
	outline: 3px solid var(--c-blue-tint);
	outline-offset: 0;
}

.amc-field.has-error input,
.amc-field.has-error select,
.amc-field.has-error textarea {
	border-color: var(--c-danger);
}

.amc-choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-5);
}

.amc-choice {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	cursor: pointer;
}

.amc-choice input {
	width: 1.375rem;
	height: 1.375rem;
	margin: 0;
	accent-color: var(--c-blue-strong);
}

.amc-choice--consent {
	align-items: flex-start;
	font-weight: 600;
}

.amc-choice--consent input {
	flex: none;
	margin-top: 0.2em;
}

.amc-help {
	margin: var(--sp-2) 0 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.amc-error {
	margin: var(--sp-2) 0 0;
	color: var(--c-danger);
	font-weight: 600;
	font-size: 1rem;
}

.amc-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.amc-turnstile {
	display: grid;
	gap: var(--sp-2);
	min-height: 65px; /* reserve the widget's height – no layout shift when it loads */
}

.amc-turnstile__msg {
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.amc-turnstile__msg:empty {
	display: none;
}

.amc-form__submit {
	justify-self: start;
	min-height: 52px;
}

.amc-form__submit[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

.amc-alert {
	margin-bottom: var(--sp-5);
	padding: var(--sp-4) var(--sp-5);
	border-left: 6px solid;
	border-radius: var(--radius-sm);
}

.amc-alert:focus {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

.amc-alert p,
.amc-alert ul {
	margin: 0 0 var(--sp-2);
}

.amc-alert > :last-child {
	margin-bottom: 0;
}

.amc-alert--success {
	border-color: var(--c-blue-strong);
	background: var(--c-blue-tint);
	color: var(--c-navy);
	font-weight: 600;
}

.amc-alert--error {
	border-color: var(--c-danger);
	background: #fdecea;
	color: #5c1610;
}

.amc-alert--error a {
	color: #5c1610;
}

/* 9. Entry content (block editor output) */
.page-content {
	padding-block: var(--sp-6) var(--section);
}

.entry-content > * {
	max-width: var(--measure);
	margin-inline: auto;
}

.entry-content > .alignwide {
	max-width: var(--container);
}

.entry-content > .wp-block-columns,
.entry-content > .wp-block-table {
	max-width: 1040px;
}

.entry-content > .alignfull {
	max-width: none;
	margin-inline: calc(var(--gutter) * -1);
}

.entry-content > h2 {
	margin-top: var(--sp-8);
	padding-left: var(--sp-5);
	border-left: 6px solid var(--c-coral);
	text-transform: uppercase;
}

.entry-content > h2:first-child {
	margin-top: 0;
}

.entry-content h3 {
	margin-top: var(--sp-6);
}

.entry-content li + li {
	margin-top: var(--sp-2);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content ul li::marker {
	color: var(--c-blue);
}

.is-style-lead,
.entry-content > .is-style-lead {
	color: var(--c-navy);
	font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	line-height: 1.55;
}

/* checklist & steps list styles */
ul.is-style-checklist {
	padding: 0;
	list-style: none;
}

ul.is-style-checklist > li {
	position: relative;
	padding-left: 2.25rem;
}

ul.is-style-checklist > li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--c-blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b6d88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

ol.is-style-steps {
	padding: 0;
	list-style: none;
	counter-reset: step;
}

ol.is-style-steps > li {
	position: relative;
	padding-left: 3.25rem;
	counter-increment: step;
}

ol.is-style-steps > li + li {
	margin-top: var(--sp-4);
}

ol.is-style-steps > li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--c-coral);
	color: var(--c-navy);
	font: 700 1.125rem/1 var(--f-head);
}

/* groups */
.wp-block-group.is-style-card {
	padding: var(--sp-6);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wp-block-group.is-style-card > :last-child,
.wp-block-group.is-style-notice > :last-child,
.wp-block-group.is-style-band > :last-child {
	margin-bottom: 0;
}

.wp-block-group.is-style-card > :first-child,
.wp-block-group.is-style-notice > :first-child {
	margin-top: 0;
}

.wp-block-group.is-style-notice {
	padding: var(--sp-5) var(--sp-6);
	border-left: 6px solid var(--c-coral);
	border-radius: var(--radius-sm);
	background: var(--c-coral-tint);
	color: var(--c-navy);
	font-weight: 600;
}

.wp-block-group.is-style-band {
	padding: var(--sp-7) var(--gutter);
	border-radius: var(--radius);
	background: var(--c-bg-tint);
}

.wp-block-columns.is-style-cards {
	gap: var(--sp-5);
}

.wp-block-columns.is-style-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	padding: var(--sp-6);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wp-block-columns.is-style-cards > .wp-block-column > :last-child {
	margin-bottom: 0;
}

.wp-block-columns.is-style-cards > .wp-block-column > .wp-block-buttons:last-child {
	margin-top: auto;
}

.wp-block-columns.is-style-cards > .wp-block-column h3 {
	margin-top: 0;
}

/* download & place cards from theme patterns */
.am-download h3,
.am-place h3 {
	font-size: var(--fs-h4);
}

.am-download h3::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: var(--sp-4);
	border-radius: 50%;
	background: var(--c-blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b6d88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='m9 15 3 3 3-3'/%3E%3C/svg%3E") center / 1.375rem no-repeat;
}

.am-place p {
	margin-bottom: var(--sp-3);
}

.am-place .am-place__row {
	padding-block: var(--sp-3);
	border-top: 1px solid var(--c-border);
	font-size: 1rem;
	line-height: 1.5;
}

.am-place .am-place__row strong {
	color: var(--c-navy);
}

.am-place .wp-block-image img {
	max-height: 64px;
	width: auto;
}

/* buttons group */
.wp-block-buttons {
	gap: var(--sp-3);
	margin-bottom: var(--sp-5);
}

/* images */
.wp-block-image img {
	border-radius: var(--radius-sm);
}

.wp-block-image.am-on-dark img {
	width: 100%;
	max-width: 420px;
	padding: var(--sp-6);
	background: var(--c-blue-strong);
}

.wp-block-image.is-style-framed img {
	padding: var(--sp-3);
	border: 1px solid var(--c-border);
	background: #fff;
}

.wp-block-image figcaption {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	text-align: center;
}

/* tables */
.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.wp-block-table th,
.wp-block-table td {
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	background: var(--c-navy);
	color: #fff;
	font-family: var(--f-head);
}

.wp-block-table tbody tr:nth-child(even) {
	background: var(--c-bg-tint);
}

/* details / accordion */
.wp-block-details {
	margin-bottom: var(--sp-3);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: #fff;
}

.wp-block-details > summary {
	position: relative;
	display: block;
	min-height: 56px;
	padding: var(--sp-4) 3.5rem var(--sp-4) var(--sp-5);
	color: var(--c-navy);
	font: 700 var(--fs-base)/1.35 var(--f-head);
	cursor: pointer;
	list-style: none;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: var(--sp-5);
	width: 0.75rem;
	height: 0.75rem;
	border-right: 2.5px solid var(--c-blue-strong);
	border-bottom: 2.5px solid var(--c-blue-strong);
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--t);
}

.wp-block-details[open] > summary::after {
	transform: translateY(-30%) rotate(225deg);
}

.wp-block-details > :not(summary) {
	padding-inline: var(--sp-5);
}

.wp-block-details > :last-child {
	padding-bottom: var(--sp-4);
}

/* file block */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3);
}

.wp-block-file .wp-block-file__button {
	border-radius: var(--radius-sm);
	background: var(--c-blue-strong);
}
/* 10. Contact, grant, footer */

.grant {
	padding-block: var(--sp-7);
	background: #fff;
	text-align: center;
}

.grant__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-5);
}

.grant__title {
	margin: 0;
	color: var(--c-muted);
}

.grant__logos {
	max-width: min(100%, 720px);
	border-radius: 0;
}

.grant__details {
	width: 100%;
	max-width: var(--measure);
}

.grant__details summary {
	list-style: none;
}

.grant__details summary::-webkit-details-marker {
	display: none;
}

.grant__details[open] summary .icon {
	transform: rotate(180deg);
}

.grant__body {
	margin-top: var(--sp-5);
	text-align: left;
}

/* mobile action bar */
.mobile-bar {
	display: none;
}

@media (max-width: 767px) {
	body {
		padding-bottom: 64px;
	}

	.mobile-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 98;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		border-top: 1px solid var(--c-border);
		background: #fff;
		box-shadow: 0 -6px 20px -10px rgb(20 41 82 / 0.3);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.mobile-bar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 64px;
		color: var(--c-navy);
		font: 700 0.9375rem/1.1 var(--f-head);
		text-decoration: none;
		text-transform: uppercase;
	}

	.mobile-bar__item .icon {
		width: 1.5rem;
		height: 1.5rem;
		color: var(--c-blue-strong);
	}

	.mobile-bar__item--accent {
		background: var(--c-coral);
	}

	.mobile-bar__item--accent .icon {
		color: var(--c-navy);
	}
}

.to-top {
	position: fixed;
	right: var(--sp-4);
	bottom: var(--sp-4);
	z-index: 97;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--c-navy);
	color: #fff;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--t), transform var(--t), visibility var(--t);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--c-blue-strong);
	color: #fff;
}

@media (max-width: 767px) {
	.to-top {
		bottom: calc(64px + var(--sp-3) + env(safe-area-inset-bottom));
	}
}

/* results list (search) */
.results {
	padding: 0;
	list-style: none;
}

.results__item {
	padding-block: var(--sp-5);
	border-bottom: 1px solid var(--c-border);
}

.results__title {
	font-size: var(--fs-h3);
}

@media (max-width: 599px) {

	.section-heading {
		padding-left: var(--sp-4);
		border-left-width: 4px;
	}
}

/* ==========================================================================
   Sections from the new design – styled like the rest of the site
   (12px radius, 1px borders, round blue icons, uppercase condensed titles, coral accents)
   ========================================================================== */

/* Design sections that sit in the content column */
.front-content.entry-content > .tasks {
	width: min(var(--container), 100% - 2 * var(--gutter));
	max-width: none;
	margin-inline: auto;
}

/* ---------- Hero: two columns (text | info card) ---------- */
.wp-block-cover.is-style-hero .wp-block-columns {
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	margin: 0;
}

.wp-block-cover.is-style-hero .wp-block-column:last-child {
	display: flex;
	justify-content: flex-end;
}

/* ---------- Info card (facts) ---------- */
.facts__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-4);
	min-width: 0;
	padding: var(--sp-5);
	color: var(--c-text);
}

.facts__item + .facts__item {
	border-left: 1px solid var(--c-border);
}

.facts__item--logo {
	align-items: center;
	justify-content: center;
}

.facts__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--c-blue-tint);
	color: var(--c-blue-strong);
}

.facts__icon .icon {
	width: 24px;
	height: 24px;
}

.facts__term {
	margin-bottom: 2px;
	color: var(--c-blue-strong);
	font: 700 0.875rem/1.3 var(--f-head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.facts__value {
	margin: 0;
	color: var(--c-navy);
	font: 700 1.1875rem/1.3 var(--f-head);
}

.facts__value a {
	color: var(--c-navy);
	text-decoration: none;
	white-space: nowrap;
}

.facts__value a:hover {
	color: var(--c-blue-strong);
	text-decoration: underline;
}

.facts__note {
	margin: 2px 0 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.facts__note a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--c-blue-strong);
	font-weight: 700;
}

.facts__nfz {
	display: block;
	width: 100%;
	max-width: 130px;
	height: auto;
}

/* vertical variant – card on the right of the hero */
.facts--vertical {
	width: 100%;
	max-width: 400px;
	color: var(--c-text);
	text-align: left;
}

.facts--vertical .facts__list {
	grid-template-columns: 1fr;
	border-top: 4px solid var(--c-coral);
}

.facts--vertical .facts__item + .facts__item {
	border-top: 1px solid var(--c-border);
	border-left: 0;
}

.wp-block-cover.is-style-hero .facts a:not(.btn) {
	color: var(--c-blue-strong);
}

.wp-block-cover.is-style-hero .facts .facts__value a {
	color: var(--c-navy);
}

.wp-block-cover.is-style-hero .facts :focus-visible {
	outline-color: var(--c-focus);
}

.open-dot {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-right: 0.45em;
	border-radius: 50%;
	background: #1f8a4c;
	box-shadow: 0 0 0 3px rgb(31 138 76 / 0.18);
	vertical-align: 0.08em;
}

.open-dot--open {
	background: #1f8a4c;
	box-shadow: 0 0 0 3px rgb(31 138 76 / 0.18);
}

.open-dot--soon {
	background: #d97706;
	box-shadow: 0 0 0 3px rgb(217 119 6 / 0.18);
}

.open-dot--closed {
	background: var(--c-danger);
	box-shadow: 0 0 0 3px rgb(180 35 24 / 0.15);
}

@media (prefers-reduced-motion: no-preference) {
	.open-dot--open {
		animation: am-pulse 2.4s ease-in-out infinite;
	}

	@keyframes am-pulse {
		50% {
			box-shadow: 0 0 0 6px rgb(31 138 76 / 0.08);
		}
	}
}

.open-detail {
	display: block;
	margin-top: 2px;
	color: var(--c-muted);
	font: 400 0.9375rem/1.4 var(--f-body);
}

/* Hero call-to-action buttons under the info card (right column), same width as the card */
.wp-block-cover.is-style-hero .wp-block-column:last-child {
	flex-direction: column;
	align-items: flex-end;
	gap: var(--sp-4);
}

.wp-block-cover.is-style-hero .wp-block-buttons.hero-cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-3);
	width: 100%;
	max-width: 400px;
	margin: 0;
}

.wp-block-cover.is-style-hero .hero-cta .wp-block-button,
.wp-block-cover.is-style-hero .hero-cta .wp-block-button__link {
	width: 100%;
	margin: 0;
}

.wp-block-cover.is-style-hero .hero-cta .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding-inline: var(--sp-3);
	text-align: center;
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-hero .wp-block-column:last-child {
		align-items: stretch;
		justify-content: stretch;
	}

	.facts--vertical,
	.wp-block-cover.is-style-hero .wp-block-buttons.hero-cta {
		max-width: none;
	}
}

/* ---------- "Co chcesz dziś załatwić?" ---------- */
.tasks {
	padding: var(--section) 0 var(--sp-7);
}

.tasks__title {
	margin-bottom: var(--sp-7);
	padding-left: var(--sp-5);
	border-left: 6px solid var(--c-coral);
	text-transform: uppercase;
}

.tasks__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.task {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	height: 100%;
	min-height: 92px;
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: var(--c-navy);
	text-decoration: none;
	transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.task:hover,
.task:focus-visible {
	border-color: var(--c-blue);
	box-shadow: var(--shadow-lg);
	color: var(--c-navy);
	transform: translateY(-2px);
}

.task__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-blue-tint);
	color: var(--c-blue-strong);
}

.task__icon .icon {
	width: 26px;
	height: 26px;
}

.task__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.task__title {
	font: 700 1.125rem/1.2 var(--f-head);
	text-transform: uppercase;
}

.task__text {
	color: var(--c-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.task__arrow {
	flex: none;
	color: var(--c-blue-strong);
	transition: transform var(--t);
}

.task:hover .task__arrow {
	transform: translateX(4px);
}

/* highlighted tiles: coral bar on the left, like section headings */
.task--brand {
	border-left: 6px solid var(--c-blue-strong);
	background: var(--c-blue-tint);
}

.task--brand .task__icon {
	background: var(--c-blue-strong);
	color: #fff;
}

.task--accent {
	border-left: 6px solid var(--c-coral);
	background: var(--c-coral-tint);
}

.task--accent .task__icon {
	background: var(--c-coral);
	color: var(--c-navy);
}

/* ---------- Opinie pacjentów – invitation panel (layout from the new design, site colours) ---------- */
.front-content.entry-content > .opinions {
	width: min(var(--container), 100% - 2 * var(--gutter));
	max-width: none;
	margin-inline: auto;
}

.opinions {
	padding: 0 0 var(--section);
}

.opinions__panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
	border-radius: var(--radius);
	background: var(--c-navy);
	color: #fff;
	box-shadow: var(--shadow-lg);
}

.opinions__content {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.opinions__eyebrow {
	margin: 0;
	color: var(--c-coral);
	font: 700 0.9375rem/1.2 var(--f-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.opinions__title {
	margin: 0;
	padding-left: var(--sp-5);
	border-left: 6px solid var(--c-coral);
	color: #fff;
	font-size: var(--fs-h2);
	text-transform: uppercase;
}

.opinions__lead {
	max-width: 34em;
	margin: 0;
	color: rgb(255 255 255 / 0.85);
	font-size: var(--fs-lg);
}

.opinions__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3) var(--sp-4);
	margin-top: var(--sp-2);
}

.btn.opinions__btn {
	min-height: 64px;
	padding: 0.875rem 2.5rem;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
}

.btn.opinions__btn .icon {
	width: 1.375rem;
	height: 1.375rem;
}

@media (max-width: 599px) {
	.btn.opinions__btn {
		width: 100%;
	}
}

.opinions :focus-visible {
	outline-color: #fff;
}

.opinions__points {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.opinions__point {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid rgb(255 255 255 / 0.16);
	border-radius: var(--radius);
	background: rgb(255 255 255 / 0.06);
}

.opinions__badge {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--c-coral);
	color: var(--c-navy);
}

.opinions__badge .icon {
	width: 24px;
	height: 24px;
}

.opinions__point-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.opinions__point-title {
	color: #fff;
	font: 700 1.125rem/1.25 var(--f-head);
	text-transform: uppercase;
}

.opinions__point-text {
	color: rgb(255 255 255 / 0.8);
	font-size: 0.9375rem;
}

/* ---------- "Jak zostać pacjentem" – timeline (core/list, style "timeline") ---------- */
ol.is-style-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	margin: 0 0 var(--sp-6);
	padding: 0;
	list-style: none;
	counter-reset: am-tl;
}

ol.is-style-timeline > li {
	position: relative;
	min-height: 44px;
	margin: 0;
	padding: 6px 0 0 64px;
	color: var(--c-muted);
	counter-increment: am-tl;
}

ol.is-style-timeline > li strong {
	display: block;
	margin-bottom: 4px;
	color: var(--c-navy);
	font: 700 1.1875rem/1.3 var(--f-head);
	text-transform: uppercase;
}

ol.is-style-timeline > li::before {
	content: counter(am-tl);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-coral);
	color: var(--c-navy);
	font: 700 1.25rem/1 var(--f-head);
}

ol.is-style-timeline > li:last-child::before {
	content: "";
	background-color: var(--c-blue-strong);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 20px;
}

ol.is-style-timeline > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 44px;
	bottom: calc(var(--sp-5) * -1);
	left: 21px;
	width: 2px;
	background: var(--c-coral);
	opacity: 0.6;
}

.am-steps-photo img {
	width: 100%;
	aspect-ratio: 4 / 3.6;
	object-fit: cover;
	object-position: 70% center;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

/* the eyebrow is not part of this site's style – headings use the coral bar */
.am-eyebrow {
	display: none;
}

.wp-block-columns.am-steps {
	align-items: center !important;
}

@media (max-width: 781px) {
	.am-steps-photo img {
		aspect-ratio: 16 / 10;
	}
}

/* ---------- Footer (layout from the new design, site colours) ---------- */
.site-footer {
	padding: clamp(48px, 6vw, 80px) 0 32px;
	background: var(--c-navy);
	color: #fff;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.site-footer :focus-visible {
	outline-color: #fff;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: var(--sp-6);
	margin-bottom: var(--sp-7);
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.site-footer__col p {
	margin: 0;
}

.site-footer__brand {
	color: #fff;
	font: 700 1.5rem/1.2 var(--f-head);
	text-transform: uppercase;
}

.site-footer__muted {
	color: rgb(255 255 255 / 0.8);
}

.site-footer__heading {
	margin: 0 0 var(--sp-2);
	color: var(--c-coral);
	font-size: var(--fs-h4);
	text-transform: uppercase;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
}

.site-footer__links .is-emphasis a {
	font-weight: 700;
}

.site-footer__phone {
	font: 700 1.375rem/1.3 var(--f-head);
}

.site-footer__cta {
	align-self: flex-start;
	margin-top: var(--sp-2);
}

.site-footer .btn--accent {
	color: var(--c-navy);
}

.site-footer .btn--accent:hover {
	color: var(--c-navy);
	text-decoration: none;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-2) var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid rgb(255 255 255 / 0.2);
	color: rgb(255 255 255 / 0.8);
	font-size: var(--fs-sm);
}

.site-footer__copy {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-1) var(--sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}


/* 11. Utilities */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.nowrap { white-space: nowrap; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* 12. Motion & print */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}

@media print {
	.topbar,
.site-header,
.mobile-bar,
.to-top,
.grant,
.page-hero__bg {
		display: none !important;
	}

	.page-hero,
.section--navy {
		background: none !important;
		color: #000 !important;
	}

	.page-hero__title {
		color: #000 !important;
	}
}

/* ==========================================================================
   13. Motion – subtle, premium, progressive
   - Only transform / opacity (no layout shifts), short durations, one easing family.
   - Hidden "before reveal" states exist only under html.js-motion, which is set in <head>
     solely when the visitor has no reduced-motion preference and IntersectionObserver exists.
   - prefers-reduced-motion: everything below is switched off (see the end of this section).
   ========================================================================== */

:root {
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur-reveal: 700ms;
	--rise: 18px;
}

/* ---------- Page transitions (cross-document View Transitions; ignored by browsers without support) ---------- */
@view-transition {
	navigation: auto;
}

/* Persistent chrome stays put while the page content cross-fades */
.topbar {
	view-transition-name: am-topbar;
}

.site-header {
	view-transition-name: am-header;
}

.mobile-bar {
	view-transition-name: am-mobilebar;
}

::view-transition-old(root) {
	animation: am-vt-out 220ms var(--ease-out-soft) both;
}

::view-transition-new(root) {
	animation: am-vt-in 420ms var(--ease-out-expo) both;
}

::view-transition-group(am-header),
::view-transition-group(am-topbar),
::view-transition-group(am-mobilebar) {
	animation-duration: 0s;
}

@keyframes am-vt-out {
	to {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@keyframes am-vt-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* ---------- Scroll progress (scroll-driven animation; progressive) ---------- */
@supports (animation-timeline: scroll()) {
	.site-header::after {
		content: "";
		position: absolute;
		right: 0;
		bottom: -1px;
		left: 0;
		height: 2px;
		background: var(--c-coral);
		transform: scaleX(0);
		transform-origin: 0 50%;
		animation: am-progress linear both;
		animation-timeline: scroll(root block);
		pointer-events: none;
	}

	@keyframes am-progress {
		to {
			transform: scaleX(1);
		}
	}
}

/* ---------- Header: logo eases down once you scroll (transform only – no layout shift) ---------- */
.brand__logo {
	transform-origin: 0 50%;
	transition: transform 400ms var(--ease-out-expo);
}

.site-header.is-scrolled .brand__logo {
	transform: scale(0.86);
}

/* ---------- Desktop nav: coral underline grows from the left ---------- */
@media (min-width: 1100px) {
	.nav__item--depth-0 > .nav__link {
		position: relative;
	}

	.nav__item--depth-0 > .nav__link::after {
		content: "";
		position: absolute;
		right: var(--sp-3);
		bottom: 4px;
		left: var(--sp-3);
		height: 3px;
		border-radius: 2px;
		background: var(--c-coral);
		transform: scaleX(0);
		transform-origin: 0 50%;
		transition: transform 320ms var(--ease-out-expo);
	}

	.nav__item--depth-0 > .nav__link:hover::after,
	.nav__item--depth-0 > .nav__link:focus-visible::after,
	.nav__item--depth-0.is-active > .nav__link::after {
		transform: scaleX(1);
	}

	.nav__item--depth-0.is-active > .nav__link {
		box-shadow: none;
	}

	.nav__submenu.is-open {
		animation: am-drop 220ms var(--ease-out-expo) both;
	}
}

@keyframes am-drop {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

/* Mobile menu panel */
@media (max-width: 1099px) {
	.nav.is-open {
		animation: am-fade-down 260ms var(--ease-out-expo) both;
	}

	.nav.is-open .nav__list > .nav__item {
		animation: am-rise-sm 420ms var(--ease-out-expo) both;
	}

	.nav.is-open .nav__list > .nav__item:nth-child(2) { animation-delay: 30ms; }
	.nav.is-open .nav__list > .nav__item:nth-child(3) { animation-delay: 60ms; }
	.nav.is-open .nav__list > .nav__item:nth-child(4) { animation-delay: 90ms; }
	.nav.is-open .nav__list > .nav__item:nth-child(5) { animation-delay: 120ms; }
	.nav.is-open .nav__list > .nav__item:nth-child(n + 6) { animation-delay: 150ms; }
}

@keyframes am-fade-down {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

@keyframes am-rise-sm {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* ---------- Buttons & links: tactile, never jumpy ---------- */
.btn:hover,
.wp-block-button__link:hover {
	box-shadow: 0 10px 22px -12px rgb(20 41 82 / 0.55);
	transform: translateY(-1px);
}

.btn:active,
.wp-block-button__link:active {
	box-shadow: none;
	transform: translateY(0) scale(0.985);
	transition-duration: 90ms;
}

.btn .icon {
	transition: transform 320ms var(--ease-out-expo);
}

.btn:hover .icon--arrow-right,
.btn:focus-visible .icon--arrow-right {
	transform: translateX(4px);
}

.btn:hover .icon--external,
.btn:focus-visible .icon--external {
	transform: translate(2px, -2px);
}

/* Icon circles fill on card hover */
.task__icon,
.facts__icon,
.opinions__badge {
	transition: background-color 280ms var(--ease-out-soft), color 280ms var(--ease-out-soft), transform 420ms var(--ease-out-expo);
}

.task:hover .task__icon,
.task:focus-visible .task__icon {
	background: var(--c-blue-strong);
	color: #fff;
	transform: scale(1.06);
}

.task--accent:hover .task__icon,
.task--accent:focus-visible .task__icon {
	background: var(--c-coral);
	color: var(--c-navy);
}

.opinions__point:hover .opinions__badge {
	transform: scale(1.08) rotate(-6deg);
}

/* ---------- Hero entrance ---------- */
.wp-block-cover.is-style-hero,
.page-hero {
	overflow: hidden;
}

/* Open search suggestions may hang below the hero: stop clipping and lift it over the next section. */
.wp-block-cover.is-style-hero:has(.site-search__list:not([hidden])),
.wp-block-cover.is-style-hero:has(.site-search:focus-within) {
	z-index: 5;
	overflow: visible;
}

.js-motion .wp-block-cover.is-style-hero .wp-block-cover__image-background,
.js-motion .page-hero__bg {
	animation: am-kenburns 2200ms var(--ease-out-expo) both;
}

@keyframes am-kenburns {
	from {
		transform: scale(1.06);
	}
}

.js-motion .wp-block-cover.is-style-hero .wp-block-column:first-child > *,
.js-motion .page-hero__inner > * {
	animation: am-rise var(--dur-reveal) var(--ease-out-expo) both;
	animation-delay: 120ms;
}

.js-motion .wp-block-cover.is-style-hero .wp-block-column:first-child > :nth-child(2),
.js-motion .page-hero__inner > :nth-child(2) {
	animation-delay: 220ms;
}

.js-motion .wp-block-cover.is-style-hero .wp-block-column:first-child > :nth-child(3) {
	animation-delay: 320ms;
}

.js-motion .wp-block-cover.is-style-hero .facts {
	animation: am-rise 900ms var(--ease-out-expo) 380ms both;
}

.js-motion .wp-block-cover.is-style-hero .facts__item {
	animation: am-rise-sm 600ms var(--ease-out-expo) both;
}

.js-motion .wp-block-cover.is-style-hero .facts__item:nth-child(1) { animation-delay: 520ms; }
.js-motion .wp-block-cover.is-style-hero .facts__item:nth-child(2) { animation-delay: 600ms; }
.js-motion .wp-block-cover.is-style-hero .facts__item:nth-child(3) { animation-delay: 680ms; }

@keyframes am-rise {
	from {
		opacity: 0;
		transform: translateY(var(--rise));
	}
}

/* ---------- Scroll reveal ----------
 * Hidden only while html has .js-motion (set in <head>, removed by a 2.5 s failsafe if main.js never runs).
 * main.js adds .is-revealed when the element enters the viewport, then .reveal-done so normal
 * hover transitions take over again. Stagger index comes from --reveal-i (set by main.js).
 */
.js-motion :is(
	.section-heading,
	.tasks__title,
	.tasks__grid > li,
	.opinions__panel,
	.opinions__point,
	.wp-block-group:is(.is-style-section, .is-style-section-plain, .is-style-section-navy) > :is(h2, .is-style-lead),
	.front-content .wp-block-column > :is(h2, .is-style-lead),
	.wp-block-columns:is(.is-style-cards, .is-style-steps, .is-style-actions) > .wp-block-column,
	.wp-block-group.is-style-tiles > .wp-block-group,
	.wp-block-group:is(.is-style-hours-card, .is-style-form-card),
	.staff__item,
	.am-steps-photo,
	ol.is-style-timeline > li,
	.page-content .entry-content > :is(h2, .wp-block-columns, .wp-block-details, .wp-block-table),
	.grant__inner,
	.site-footer__col
):not(.reveal-done) {
	transition:
		opacity var(--dur-reveal) var(--ease-out-soft),
		transform var(--dur-reveal) var(--ease-out-expo),
		border-left-color 600ms var(--ease-out-soft);
	transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.js-motion :is(
	.section-heading,
	.tasks__title,
	.tasks__grid > li,
	.opinions__panel,
	.opinions__point,
	.wp-block-group:is(.is-style-section, .is-style-section-plain, .is-style-section-navy) > :is(h2, .is-style-lead),
	.front-content .wp-block-column > :is(h2, .is-style-lead),
	.wp-block-columns:is(.is-style-cards, .is-style-steps, .is-style-actions) > .wp-block-column,
	.wp-block-group.is-style-tiles > .wp-block-group,
	.wp-block-group:is(.is-style-hours-card, .is-style-form-card),
	.staff__item,
	.am-steps-photo,
	ol.is-style-timeline > li,
	.page-content .entry-content > :is(h2, .wp-block-columns, .wp-block-details, .wp-block-table),
	.grant__inner,
	.site-footer__col
):not(.is-revealed) {
	opacity: 0;
	transform: translateY(var(--rise));
}

.js-motion .am-steps-photo:not(.is-revealed) {
	transform: scale(0.97);
}

/* heading accent bars draw in after the text */
.js-motion :is(.section-heading, .tasks__title, .wp-block-group > h2, .front-content .wp-block-column > h2, .entry-content > h2):not(.is-revealed) {
	border-left-color: transparent;
}

.js-motion :is(.section-heading, .tasks__title, .wp-block-group > h2, .front-content .wp-block-column > h2, .entry-content > h2).is-revealed:not(.reveal-done) {
	transition-delay: calc(var(--reveal-i, 0) * 70ms), calc(var(--reveal-i, 0) * 70ms), 260ms;
}

/* Timeline: markers pop, connector lines draw downwards, one step after another */
.js-motion ol.is-style-timeline > li:not(.reveal-done) {
	transition-delay: calc(var(--reveal-i, 0) * 160ms);
}

.js-motion ol.is-style-timeline > li::before {
	transition: transform 520ms var(--ease-out-expo), opacity 300ms var(--ease-out-soft);
	transition-delay: calc(var(--reveal-i, 0) * 160ms + 120ms);
}

.js-motion ol.is-style-timeline > li::after {
	transform-origin: top center;
	transition: transform 700ms var(--ease-out-expo);
	transition-delay: calc(var(--reveal-i, 0) * 160ms + 320ms);
}

.js-motion ol.is-style-timeline > li:not(.is-revealed)::before {
	opacity: 0;
	transform: scale(0.6);
}

.js-motion ol.is-style-timeline > li:not(.is-revealed)::after {
	transform: scaleY(0);
}

/* ---------- Accordions open smoothly (progressive: interpolate-size + ::details-content) ---------- */
@supports (interpolate-size: allow-keywords) {
	:root {
		interpolate-size: allow-keywords;
	}

	.wp-block-details::details-content,
	.grant__details::details-content {
		block-size: 0;
		overflow-y: clip;
		transition:
			block-size 380ms var(--ease-out-expo),
			content-visibility 380ms allow-discrete;
	}

	.wp-block-details[open]::details-content,
	.grant__details[open]::details-content {
		block-size: auto;
	}
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}

	.site-header::after {
		display: none;
	}

	.brand__logo,
	.btn,
	.wp-block-button__link,
	.task__icon,
	.opinions__badge {
		transform: none !important;
	}
}

@media print {
	.js-motion * {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   14. Premium extras: accessibility panel, announcements, search, map, staff cards,
       urgent-help band, form success, print
   ========================================================================== */

/* ---------- Text size (rem-based layout scales with the root font size) ---------- */
html[data-fs="112"] { font-size: 112.5%; }
html[data-fs="125"] { font-size: 125%; }
html[data-fs="140"] { font-size: 140%; }

/* The header keeps its normal size so the navigation never breaks; page content scales. */
html[data-fs] :is(.topbar, .site-header) {
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	font-size: 18px;
}

html[data-fs] .topbar {
	font-size: 15px;
}

html[data-fs] :is(.nav__link, .menu-toggle) {
	font-size: 16px;
}

html[data-fs] .site-header .btn {
	padding: 10px 24px;
	font-size: 17px;
}

html[data-fs] .nav__submenu .nav__link {
	font-size: 16px;
}

html[data-fs] :is(.a11y-panel, .a11y-opt, .a11y-switch, .a11y-panel__reset, .a11y-panel__title) {
	font-size: 16px;
}

html[data-fs] .a11y-opt--112 { font-size: 18px; }
html[data-fs] .a11y-opt--125 { font-size: 21px; }
html[data-fs] .a11y-opt--140 { font-size: 24px; }

@media (max-width: 1099px) {
	html[data-fs] .nav__link {
		font-size: 18px;
	}
}

/* ---------- Accessibility toggle + panel ---------- */
.a11y-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 2px solid var(--c-border);
	border-radius: 50%;
	background: #fff;
	color: var(--c-navy);
	cursor: pointer;
	transition: border-color var(--t), background-color var(--t), color var(--t);
}

.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"] {
	border-color: var(--c-navy);
	background: var(--c-navy);
	color: #fff;
}

.a11y-toggle .icon {
	width: 26px;
	height: 26px;
}

.site-header__actions {
	order: 2;
}

.a11y-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: max(var(--gutter), (100% - var(--container)) / 2);
	z-index: 120;
	display: grid;
	gap: var(--sp-4);
	width: min(340px, calc(100% - 2 * var(--gutter)));
	padding: var(--sp-5);
	border: 1px solid var(--c-border);
	border-top: 4px solid var(--c-coral);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	color: var(--c-text);
}

.a11y-panel[hidden] {
	display: none;
}

.js-motion .a11y-panel:not([hidden]) {
	animation: am-drop 220ms var(--ease-out-expo) both;
}

.a11y-panel__title {
	margin: 0;
	color: var(--c-navy);
	font: 700 1.125rem/1.2 var(--f-head);
	text-transform: uppercase;
}

.a11y-panel__label {
	display: block;
	margin-bottom: var(--sp-2);
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.a11y-panel__options {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-2);
}

.a11y-opt {
	min-height: 48px;
	border: 2px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--c-navy);
	font: 700 1rem/1 var(--f-head);
	cursor: pointer;
}

.a11y-opt--112 { font-size: 1.15rem; }
.a11y-opt--125 { font-size: 1.3rem; }
.a11y-opt--140 { font-size: 1.5rem; }

.a11y-opt[aria-pressed="true"] {
	border-color: var(--c-navy);
	background: var(--c-navy);
	color: #fff;
}

.a11y-switch {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: 48px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-navy);
	font: 600 1.0625rem/1.2 var(--f-body);
	cursor: pointer;
}

.a11y-switch__track {
	position: relative;
	flex: none;
	width: 52px;
	height: 30px;
	border: 2px solid var(--c-input);
	border-radius: 999px;
	background: #fff;
	transition: background-color var(--t), border-color var(--t);
}

.a11y-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c-input);
	transition: transform 240ms var(--ease-out-expo), background-color var(--t);
}

.a11y-switch[aria-pressed="true"] .a11y-switch__track {
	border-color: var(--c-navy);
	background: var(--c-navy);
}

.a11y-switch[aria-pressed="true"] .a11y-switch__thumb {
	background: #fff;
	transform: translateX(22px);
}

.a11y-panel__reset {
	justify-self: start;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-blue-strong);
	font: 600 1rem/1.2 var(--f-body);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

@media (max-width: 1099px) {
	.site-header__actions {
		order: 2;
	}

	.a11y-toggle {
		width: 44px;
		height: 44px;
	}
}

/* ---------- High-contrast mode (yellow on black, like public-sector sites) ---------- */
html[data-hc="on"] {
	--c-text: #fff;
	--c-muted: #fff;
	--c-navy: #fff;
	--c-navy-deep: #000;
	--c-blue: #ffe14d;
	--c-blue-strong: #ffe14d;
	--c-blue-tint: #000;
	--c-coral: #ffe14d;
	--c-coral-tint: #000;
	--c-border: #fff;
	--c-input: #fff;
	--c-bg: #000;
	--c-bg-tint: #000;
	--c-focus: #ffe14d;
	--c-danger: #ff9c9c;
	--shadow-sm: none;
	--shadow: none;
	--shadow-lg: none;
}

html[data-hc="on"] body,
html[data-hc="on"] :is(
	.topbar, .site-header, .nav, .nav__submenu, .a11y-panel, .a11y-toggle, .a11y-opt, .announcement,
	.facts__list, .facts__item, .task, .card, .opinions__panel, .opinions__point, .staff__item, .form-card,
	.wp-block-details, .grant, .site-footer, .mobile-bar, .map, .site-search__form, .site-search__list, .chip,
	.amc-alert, .amc-field input, .amc-field select, .amc-field textarea, .wp-block-table td, .wp-block-table th,
	.section--tint, .section--navy,
	.wp-block-group:is(.is-style-section, .is-style-section-plain, .is-style-section-navy, .is-style-card, .is-style-notice,
		.is-style-band, .is-style-hours-card, .is-style-form-card, .is-style-urgent),
	.wp-block-group.is-style-tiles > .wp-block-group,
	.wp-block-columns:is(.is-style-cards, .is-style-steps, .is-style-actions) > .wp-block-column
) {
	border-color: #fff !important;
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: none !important;
}

/* photo headers: keep the photo, but behind a near-black veil so text always has maximum contrast */
html[data-hc="on"] .wp-block-cover.is-style-hero .wp-block-cover__background,
html[data-hc="on"] .page-hero--image::before {
	background: #000 !important;
	opacity: 0.88 !important;
}

html[data-hc="on"] .page-hero,
html[data-hc="on"] .wp-block-cover.is-style-hero {
	color: #fff !important;
}

html[data-hc="on"] :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, legend, strong, span) {
	color: inherit;
}

html[data-hc="on"] a,
html[data-hc="on"] .nav__link,
html[data-hc="on"] .nav__toggle {
	color: #ffe14d !important;
	text-decoration: underline !important;
}

html[data-hc="on"] :is(.btn, .wp-block-button__link, .mobile-bar__item--accent, .a11y-opt[aria-pressed="true"]) {
	border-color: #ffe14d !important;
	background: #ffe14d !important;
	color: #000 !important;
	text-decoration: none !important;
}

html[data-hc="on"] :is(.task__icon, .facts__icon, .card__icon, .opinions__badge, .staff__avatar) {
	border: 2px solid #ffe14d;
	background: #000 !important;
	color: #ffe14d !important;
}

html[data-hc="on"] :focus-visible {
	outline: 3px solid #ffe14d !important;
	outline-offset: 3px;
}

html[data-hc="on"] img:not(.brand__logo, .grant__logos) {
	filter: grayscale(0.2) contrast(1.1);
}

html[data-hc="on"] .brand__logo,
html[data-hc="on"] .grant__logos {
	padding: 4px;
	border-radius: 6px;
	background: #fff;
}

/* ---------- Announcements (date-limited, under the header) ---------- */
.announcements[hidden],
.announcement[hidden] {
	display: none;
}

.announcement {
	margin: 0;
	border-bottom: 1px solid #f3c7bd;
	background: var(--c-coral-tint);
	color: var(--c-navy);
}

.announcement__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2) var(--sp-3);
	padding-block: var(--sp-3);
	font-weight: 600;
}

.announcement__inner > .icon {
	color: #b94e3a;
}

.announcement__text {
	flex: 1 1 18rem;
}

.announcement__link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	min-height: 44px;
	color: var(--c-blue-strong);
	font-weight: 700;
}

/* ---------- Search (hero) ---------- */
.site-search {
	position: relative;
	z-index: 20; /* suggestions stay above the hero buttons (animated elements create stacking contexts) */
	max-width: 36rem;
	margin-bottom: var(--sp-6);
}

.site-search__form {
	position: relative;
	display: flex;
	align-items: center;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	transition: border-color var(--t), box-shadow var(--t);
}

.site-search__form:focus-within {
	border-color: var(--c-coral);
}

.site-search__icon {
	position: absolute;
	left: var(--sp-4);
	width: 22px;
	height: 22px;
	color: var(--c-muted);
	pointer-events: none;
}

.site-search__input {
	flex: 1;
	min-width: 0;
	min-height: 60px;
	padding: 0 var(--sp-4) 0 3.25rem;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--c-text);
	font: 400 1.125rem/1.3 var(--f-body);
}

.site-search__input::placeholder {
	color: #6b7785;
}

.site-search__input:focus {
	outline: none;
}

.site-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.site-search__submit {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-right: 6px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--c-coral);
	color: var(--c-navy);
	cursor: pointer;
	transition: background-color var(--t), transform var(--t);
}

.site-search__submit:hover {
	background: #f3b2a6;
}

.site-search__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 30;
	max-height: min(60vh, 420px);
	margin: 0;
	padding: var(--sp-2);
	overflow-y: auto;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	list-style: none;
	text-align: left;
}

.js-motion .site-search__list:not([hidden]) {
	animation: am-drop 200ms var(--ease-out-expo) both;
}

.site-search__list[hidden] {
	display: none;
}

.site-search__list [role="option"] a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--radius-sm);
	color: var(--c-text);
	text-decoration: none;
}

.site-search__list [role="option"] a:hover,
.site-search__list [aria-selected="true"] a {
	background: var(--c-blue-tint);
}

.site-search__title {
	color: var(--c-navy);
	font: 700 1.0625rem/1.25 var(--f-head);
	text-transform: uppercase;
}

.site-search__desc {
	overflow: hidden;
	color: var(--c-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.site-search__empty {
	padding: var(--sp-3) var(--sp-4);
	color: var(--c-muted);
}

.site-search__popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin-top: var(--sp-3);
}

.site-search__popular-label {
	margin-right: var(--sp-1);
	font-size: 0.9375rem;
	opacity: 0.85;
}

.site-search__popular ul {
	display: contents;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 var(--sp-4);
	border: 1px solid rgb(255 255 255 / 0.45);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.08);
	color: #fff;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background-color var(--t), border-color var(--t), color var(--t);
}

.wp-block-cover.is-style-hero a.chip {
	color: #fff;
	font-weight: 500;
}

.chip:hover,
.wp-block-cover.is-style-hero a.chip:hover {
	border-color: var(--c-coral);
	background: var(--c-coral);
	color: var(--c-navy);
}

/* ---------- Map facade ---------- */
.map {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	margin-top: var(--sp-6);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background:
		linear-gradient(0deg, rgb(234 244 248 / 0.92), rgb(234 244 248 / 0.92)),
		repeating-linear-gradient(0deg, transparent 0 39px, rgb(20 41 82 / 0.08) 39px 40px),
		repeating-linear-gradient(90deg, transparent 0 39px, rgb(20 41 82 / 0.08) 39px 40px),
		#fff;
}

.map__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-6);
}

.map__pin {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-coral);
	color: var(--c-navy);
	box-shadow: 0 0 0 8px rgb(235 148 132 / 0.25);
}

.map__address {
	margin: 0;
	color: var(--c-navy);
	font: 700 1.25rem/1.3 var(--f-head);
}

.map__note {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

.map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map.is-loaded > .map__inner {
	visibility: hidden;
}

/* ---------- Staff cards (bio) ---------- */
.staff--cards {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.staff--cards .staff__item {
	flex-direction: column;
	align-items: flex-start;
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
	transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.staff--cards .staff__item:hover {
	border-color: var(--c-blue);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.staff--cards :is(.staff__photo, .staff__avatar) {
	width: 84px;
	height: 84px;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--c-coral);
}

.staff--cards .staff__avatar {
	font-size: 1.6rem;
}

.staff__bio {
	margin: var(--sp-3) 0 0;
	color: var(--c-text);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* ---------- Urgent help band (group style "urgent") ---------- */
.wp-block-group.is-style-urgent {
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	border: 1px solid #f1c0c0;
	border-left: 6px solid #b3121b;
	border-radius: var(--radius);
	background: #fdf0f0;
}

.wp-block-group.is-style-urgent h2 {
	margin-bottom: var(--sp-2);
	padding: 0;
	border: 0;
	color: #7a0c12;
	text-transform: uppercase;
}

.wp-block-group.is-style-urgent > p {
	color: #5c1610;
}

.wp-block-group.is-style-urgent .wp-block-buttons {
	margin-bottom: var(--sp-6);
}

.wp-block-button.is-style-urgent .wp-block-button__link {
	min-height: 60px;
	padding-inline: 1.75rem;
	background: #b3121b;
	color: #fff;
	font-size: 1.375rem;
}

.wp-block-button.is-style-urgent .wp-block-button__link:hover {
	background: #930e16;
	color: #fff;
}

.wp-block-group.is-style-urgent .wp-block-columns.is-style-cards > .wp-block-column {
	border-color: #f1c0c0;
}

.wp-block-group.is-style-urgent .wp-block-column h3 {
	font-size: var(--fs-h4);
	text-transform: uppercase;
}

.wp-block-group.is-style-urgent .wp-block-column h3 a {
	color: #7a0c12;
}

/* ---------- Form success: animated check ---------- */
.amc-alert--success {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
}

.amc-check {
	flex: none;
	width: 52px;
	height: 52px;
}

.amc-check__circle {
	stroke: var(--c-blue-strong);
	stroke-width: 3;
	stroke-dasharray: 151;
	stroke-dashoffset: 0;
}

.amc-check__mark {
	stroke: var(--c-blue-strong);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 36;
	stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.amc-check__circle {
		animation: am-draw-circle 700ms var(--ease-out-expo) both;
	}

	.amc-check__mark {
		animation: am-draw-mark 420ms var(--ease-out-expo) 520ms both;
	}

	.amc-check {
		animation: am-pop 500ms var(--ease-out-expo) 900ms both;
	}

	@keyframes am-draw-circle {
		from { stroke-dashoffset: 151; }
	}

	@keyframes am-draw-mark {
		from { stroke-dashoffset: 36; }
	}

	@keyframes am-pop {
		50% { transform: scale(1.1); }
	}
}

/* ---------- Print ---------- */
.print-header {
	display: none;
}

@media print {
	@page {
		margin: 16mm 14mm;
	}

	html {
		font-size: 11pt;
	}

	body {
		padding: 0 !important;
		background: #fff !important;
		color: #000 !important;
	}

	.topbar,
	.site-header,
	.announcements,
	.mobile-bar,
	.to-top,
	.a11y-panel,
	.breadcrumbs,
	.grant,
	.site-footer,
	.site-search,
	.map,
	.amc-form,
	.wp-block-buttons,
	.opinions,
	.tasks,
	.wp-block-cover__image-background,
	.page-hero__bg {
		display: none !important;
	}

	.print-header {
		display: flex !important;
		align-items: center;
		gap: 12mm;
		margin-bottom: 8mm;
		padding-bottom: 4mm;
		border-bottom: 2px solid #142952;
		font-size: 9.5pt;
	}

	.print-header p {
		margin: 0;
	}

	.page-hero,
	.wp-block-cover {
		min-height: 0 !important;
		padding: 0 !important;
		background: none !important;
		color: #000 !important;
	}

	.page-hero__inner {
		min-height: 0 !important;
		padding: 0 0 4mm !important;
	}

	.page-hero__title,
	.page-hero__lead,
	h1,
	h2,
	h3 {
		color: #000 !important;
	}

	.entry-content > *,
	.container {
		max-width: none !important;
		padding: 0 !important;
	}

	.entry-content a[href^="http"]::after,
	.entry-content a[href^="/"]::after {
		content: " (" attr(href) ")";
		color: #555;
		font-size: 0.85em;
		word-break: break-all;
	}

	.wp-block-columns,
	.wp-block-column,
	.wp-block-table,
	.wp-block-details,
	.staff__item,
	li,
	h2,
	h3 {
		break-inside: avoid;
	}

	h2,
	h3 {
		break-after: avoid;
	}
}
