/*
Theme Name: Qlaritas
Theme URI: https://example.com/qlaritas
Author: Your Name
Author URI: https://example.com
Description: A calm, editorial theme for Qlaritas Breast Imaging. On activation it creates the site's pages (Home, The Qlaritas Experience, Our Technology, For Your Care Team, For Patients, Contact, Join Our Waitlist) filled with the supplied copy and images as ordinary, editable WordPress content. Edit any page in the block editor; set the hero photo with the page's Featured Image; manage contact details, form recipients and the footer notice in Appearance → Customize.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qlaritas
Tags: custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready, health, one-column
*/

/* ---------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------- */
:root {
	--navy: #14305a;
	--gold: #b8893a;

	--navy-deep: color-mix(in srgb, var(--navy) 72%, #000);
	--gold-light: color-mix(in srgb, var(--gold) 70%, #fff);
	--gold-pale: color-mix(in srgb, var(--gold) 12%, #fff);

	--cream: #fbf8f1;
	--tint: #f4efe4;
	--mist: #e3eef3;
	--ink: #1c2b3f;
	--muted: #55637a;
	--rule: #e4dac6;

	--display: "Playfair Display", "Times New Roman", Georgia, serif;
	--body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--gutter: clamp(20px, 4vw, 40px);
	/* Left/right offset that lines narrow blocks up with the content column's left edge. */
	--edge: max(0px, calc((100% - var(--wrap)) / 2));
	/* Side padding that keeps section content in the centred column. */
	--pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
	--radius: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5 {
	font-family: var(--display);
	font-weight: 500;
	color: var(--navy);
	line-height: 1.15;
	letter-spacing: -0.005em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.15em; }
strong { font-weight: 700; }

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
	position: fixed; left: 12px; top: 12px; z-index: 1000;
	padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

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

/* ---------------------------------------------------------------
 * Icons (CSS masks, so they take the gold or navy color)
 * ------------------------------------------------------------- */
:root {
	--i-waves: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 13q5.5-6 11 0t11 0 11 0 9 0'/><path d='M3 24q5.5-6 11 0t11 0 11 0 9 0'/><path d='M3 35q5.5-6 11 0t11 0 11 0 9 0'/></svg>");
	--i-lotus: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M24 8c6 6 7 17 0 28-7-11-6-22 0-28z'/><path d='M24 36c-9 0-15-7-17-16 8 0 14 4 17 11'/><path d='M24 36c9 0 15-7 17-16-8 0-14 4-17 11'/><path d='M10 40h28'/></svg>");
	--i-drop: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M24 6c8 10 13 16 13 23a13 13 0 0 1-26 0c0-7 5-13 13-23z'/></svg>");
	--i-monitor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='7' width='38' height='26' rx='3'/><path d='M17 41h14M24 33v8'/><path d='M24 12c3 4 5 6 5 9a5 5 0 0 1-10 0c0-3 2-5 5-9z'/></svg>");
	--i-steth: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 6H9v13a9 9 0 0 0 18 0V6h-4'/><path d='M18 28v4a9 9 0 0 0 18 0v-5'/><circle cx='36' cy='23' r='4'/></svg>");
	--i-scalpel: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 42l20-20'/><path d='M24 24c1-9 8-16 18-18 0 10-7 17-16 18z'/><path d='M14 34l-4-4'/></svg>");
	--i-ribbon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M24 6c-6 0-10 4-10 9 0 8 10 13 10 13s10-5 10-13c0-5-4-9-10-9z'/><path d='M19 24l-8 17M29 24l8 17'/></svg>");
	--i-target: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='16'/><circle cx='24' cy='24' r='8'/><circle cx='24' cy='24' r='2'/><path d='M24 3v7M24 38v7M3 24h7M38 24h7'/></svg>");
	--i-shield: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M24 5l15 6v11c0 10-7 17-15 21C16 39 9 32 9 22V11z'/><path d='M17 24l5 5 10-11'/></svg>");
	--i-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>");
	--i-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12.5l5 5L20 6.5'/></svg>");
}

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 248, 241, .94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 22px rgba(20, 48, 90, .07); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 92px; }

.site-brand { flex: 0 0 auto; display: flex; align-items: center; }
.site-brand img, .custom-logo { width: auto; max-height: 74px; }
.site-brand__text { font-family: var(--display); font-size: 1.6rem; color: var(--navy); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; padding-left: 28px; border-left: 1px solid var(--gold-light); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 24px; align-items: center; }
.nav-list a {
	display: block; padding: 8px 0; text-decoration: none; white-space: nowrap;
	font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy);
	border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--navy); border-bottom-color: var(--gold); }
.nav-list li { position: relative; }
.nav-list .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -14px; min-width: 220px;
	background: var(--cream); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 48, 90, .12); display: none;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { padding: 9px 16px; border: 0; }

.nav-toggle { display: none; margin-left: auto; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 20px var(--gutter) 28px;
		flex-direction: column; align-items: stretch; gap: 18px; display: none;
		background: var(--cream); border: 0; border-bottom: 1px solid var(--rule);
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
	.nav-list a { font-size: .85rem; padding: 10px 0; }
	.nav-list .sub-menu { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
	.site-nav a.btn-gold { text-align: center; }
}

/* ---------------------------------------------------------------
 * Buttons (theme button and core Button blocks)
 * ------------------------------------------------------------- */
a.btn-gold, button.btn-gold, .btn-gold .wp-block-button__link, .btn-outline .wp-block-button__link, .btn-navy .wp-block-button__link {
	display: inline-block; padding: .95em 1.8em; border-radius: 999px;
	font: 800 .8rem/1.2 var(--body); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; text-align: center;
	border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
a.btn-gold, button.btn-gold, .btn-gold .wp-block-button__link {
	color: var(--navy-deep); border-color: color-mix(in srgb, var(--gold) 70%, #fff);
	background: linear-gradient(180deg, var(--gold-light), var(--gold));
	box-shadow: 0 6px 16px rgba(184, 137, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
a.btn-gold:hover, button.btn-gold:hover, .btn-gold .wp-block-button__link:hover { color: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(184, 137, 58, .36), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold--small { padding: .8em 1.3em; font-size: .72rem; }
.btn-outline .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.btn-navy .wp-block-button__link { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy .wp-block-button__link:hover { background: var(--navy-deep); color: #fff; }
.section--dark .btn-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.section--dark .btn-outline .wp-block-button__link:hover { background: #fff; color: var(--navy); }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.wp-block-button { margin: 0; }

/* ---------------------------------------------------------------
 * Sections (top-level Group blocks in page content)
 * ------------------------------------------------------------- */
/* WordPress wraps a Group's content in .wp-block-group__inner-container; make it
   transparent so grids/flex layouts on the Group still see their children. */
.wp-block-group__inner-container { display: contents; }
.section { position: relative; padding: clamp(56px, 8vw, 96px) var(--pad-x); }
.section > :last-child, .section > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.section--tint { background: var(--tint); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }

.eyebrow {
	display: flex; align-items: center; gap: 16px; margin: 0 0 1rem;
	font-size: .76rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::after { content: ""; flex: 0 0 clamp(36px, 7vw, 84px); height: 1px; background: var(--gold); }
.eyebrow.u-center { justify-content: center; }
.eyebrow.u-center::before { content: ""; flex: 0 0 clamp(36px, 9vw, 120px); height: 1px; background: var(--gold); }

.section__title { margin-bottom: .35em; }
.section__title--italic { font-style: italic; }
.section__sub, .hero__sub {
	font-family: var(--display); font-style: italic; font-weight: 500;
	font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--navy); margin-bottom: 1rem;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 38rem; }
.u-center { text-align: center; }
.u-center.lede, .u-center.section__sub { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 40px; }
.section-head > :last-child, .section-head > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.prose { max-width: 46rem; }
.note { font-style: italic; color: var(--muted); }
.fineprint { font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------------
 * Hero (home and page headers)
 * ------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(120px, 14vw, 170px);
	background: var(--cream) var(--hero-image) right center / cover no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(251, 248, 241, .97) 0%, rgba(251, 248, 241, .9) 36%, rgba(251, 248, 241, .35) 62%, rgba(251, 248, 241, 0) 82%);
}
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 110px); z-index: -1;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0 52C190 92 370 92 570 58S990 4 1210 36 1390 58 1440 42V100H0Z' fill='%23fbf8f1'/><path d='M0 52C190 92 370 92 570 58S990 4 1210 36 1390 58 1440 42' fill='none' stroke='%23c49a45' stroke-width='3'/></svg>") center bottom / 100% 100% no-repeat;
}
.hero--home { min-height: clamp(520px, 62vw, 680px); }
.hero__title { max-width: 14ch; margin-bottom: .3em; }
.hero--home .hero__title { max-width: 11.5em; }
.hero--page .hero__title { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero__sub { max-width: 34rem; }
.hero__text { max-width: 34rem; font-size: 1.05rem; color: var(--ink); }
.hero--page .hero__text { max-width: 40rem; }
.hero__actions { margin-top: 28px; }

@media (max-width: 760px) {
	.hero::before { background: linear-gradient(180deg, rgba(251, 248, 241, .96) 0%, rgba(251, 248, 241, .9) 55%, rgba(251, 248, 241, .6) 100%); }
	.hero__title { max-width: none; }
}

/* ---------------------------------------------------------------
 * Layout helpers for Columns blocks
 * ------------------------------------------------------------- */
.wp-block-columns { margin: 0; gap: 0; }
.wp-block-columns.cols-2,
.wp-block-columns.cols-3,
.wp-block-columns.cols-intro,
.wp-block-columns.cols-scan,
.wp-block-columns.cols-contact { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.wp-block-columns.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-columns.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.wp-block-columns.cols-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.wp-block-columns.cols-scan { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.wp-block-columns.cols-contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.wp-block-columns > .wp-block-column { min-width: 0; flex-basis: auto; }
.wp-block-column > *:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
	.wp-block-columns.cols-2,
	.wp-block-columns.cols-3,
	.wp-block-columns.cols-intro,
	.wp-block-columns.cols-scan,
	.wp-block-columns.cols-contact { grid-template-columns: minmax(0, 1fr); }
	.wp-block-columns.cols-3 { gap: 28px; }
}

.rule-left { border-left: 1px solid var(--gold); padding-left: clamp(20px, 4vw, 44px); }
.rule-left p { font-size: 1.05rem; }
@media (max-width: 860px) { .rule-left { border-left: 0; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 24px; } }

/* ---------------------------------------------------------------
 * Pillars
 * ------------------------------------------------------------- */
.pillars { padding-top: 36px; padding-bottom: 36px; }
.pillar { position: relative; padding: 8px 20px 8px 84px; min-height: 64px; }
.pillar::before {
	content: ""; position: absolute; left: 16px; top: 8px; width: 52px; height: 52px; background: var(--gold);
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.pillar--waves { --icon: var(--i-waves); }
.pillar--waves::before { background: var(--navy); }
.pillar--lotus { --icon: var(--i-lotus); }
.pillar--drop { --icon: var(--i-drop); }
.pillar__title {
	font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .25em;
}
.pillar p { margin: 0; font-size: .95rem; color: var(--ink); line-height: 1.5; }
.cols-3 > .wp-block-column + .wp-block-column .pillar { border-left: 1px solid var(--gold-light); }
@media (max-width: 860px) {
	.cols-3 > .wp-block-column + .wp-block-column .pillar { border-left: 0; }
	.pillar { padding-left: 76px; }
}

/* ---------------------------------------------------------------
 * Band, scan and mission
 * ------------------------------------------------------------- */
.band {
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='260' viewBox='0 0 900 260' fill='none' stroke='white' stroke-opacity='.65' stroke-width='2'><path d='M0 90C150 40 300 150 450 100S750 60 900 110'/><path d='M0 150C150 100 300 210 450 160S750 120 900 170'/><path d='M0 210C150 170 300 250 450 215S750 190 900 225'/></svg>") center / 900px 260px repeat-x,
		linear-gradient(180deg, #e9f2f6 0%, #d9e8ef 100%);
	text-align: center;
}
.band .lede { color: var(--ink); max-width: 46rem; font-size: 1.05rem; }

.scan__img { max-width: 560px; margin: 0 auto; }
.scan__img img { width: 100%; }

.steps { position: relative; margin-top: 28px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 36px; width: 1px; background: var(--gold); }
.step { position: relative; padding: 0 0 22px 66px; counter-increment: step; }
.steps { counter-reset: step; }
.step::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 39px; height: 39px; border-radius: 50%;
	display: grid; place-items: center; font: 700 1rem var(--display); color: #fff;
	background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold));
	box-shadow: 0 3px 8px rgba(184, 137, 58, .35);
}
.step h3 { font-size: 1.2rem; margin: 0 0 .2em; }
.step p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.55; }

.mission, .section--dark {
	background: radial-gradient(120% 140% at 50% 0%, #17407a 0%, var(--navy) 45%, var(--navy-deep) 100%);
	color: #fff; text-align: center;
}
.mission::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
}
.mission h2, .section--dark h2, .section--dark h3 { color: var(--gold-light); }
.mission__title { display: flex; align-items: center; justify-content: center; gap: 24px; font-style: italic; }
.mission__title::before, .mission__title::after { content: ""; flex: 0 1 clamp(40px, 12vw, 170px); height: 1px; background: var(--gold); }
.mission p, .section--dark p { color: rgba(255, 255, 255, .9); max-width: 44rem; margin-left: auto; margin-right: auto; }
.mission .note, .section--dark .note { color: rgba(255, 255, 255, .78); font-size: .95rem; }
.mission a, .section--dark a { color: #fff; }
.section--dark .wp-block-buttons { justify-content: center; }

/* ---------------------------------------------------------------
 * Cards, timeline, lists
 * ------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); } }

.card {
	background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 28px 26px;
	box-shadow: 0 8px 24px rgba(20, 48, 90, .04);
}
.card__num { font-family: var(--display); font-size: 1.4rem; color: var(--gold); margin: 0 0 .5rem; }
.card__title { font-size: 1.2rem; margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .98rem; }
.card h3, .card h4 { color: var(--navy); }

.timeline { max-width: 52rem; }
.tstep { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.tstep:last-child { border-bottom: 1px solid var(--rule); }
.tstep > *:not(.wp-block-group__inner-container), .tstep > .wp-block-group__inner-container > * { grid-column: 2; }
.tstep .tstep__num { grid-column: 1; grid-row: 1 / span 6; }
.tstep__num { font: 500 2.2rem/1 var(--display); color: var(--gold); margin: 0; }
.tstep h3 { margin-bottom: .35em; }
.tstep p { color: var(--muted); }
.tstep p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .tstep { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; } .tstep__num { font-size: 1.7rem; } }

.wp-block-list { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.wp-block-list li { position: relative; padding: 0 0 .65em 34px; }
.wp-block-list li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; background: var(--gold);
	-webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.wp-block-list.list--plain { padding-left: 1.3em; list-style: disc; }
.wp-block-list.list--plain li { padding-left: .3em; }
.wp-block-list.list--plain li::before { display: none; }
.checklist { max-width: 48rem; }

/* ---------------------------------------------------------------
 * Callouts and notices
 * ------------------------------------------------------------- */
.callout {
	position: relative; padding: 34px 40px 34px 128px; border-radius: 22px;
	border: 1px solid var(--gold-light); background: linear-gradient(180deg, #fff, var(--gold-pale));
}
.callout::before {
	content: ""; position: absolute; left: 40px; top: 36px; width: 56px; height: 56px; background: var(--navy);
	-webkit-mask: var(--i-shield) center / contain no-repeat; mask: var(--i-shield) center / contain no-repeat;
}
.callout::after { content: ""; position: absolute; left: 112px; top: 30px; bottom: 30px; width: 1px; background: var(--gold-light); }
.callout__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
	.callout { padding: 96px 24px 28px; }
	.callout::before { left: 24px; top: 28px; }
	.callout::after { display: none; }
}

.turnaround {
	display: inline-block; margin: 0 0 1.2rem; padding: 14px 24px; border-radius: 12px;
	background: var(--gold-pale); border: 1px solid var(--gold-light); font-weight: 700; color: var(--navy);
}
.turnaround p { margin: 0; color: var(--navy); }

/* ---------------------------------------------------------------
 * Role cards (care team)
 * ------------------------------------------------------------- */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
@media (max-width: 640px) { .roles { grid-template-columns: minmax(0, 1fr); } }
/* Wide screens: three cards, then the last two centered beneath them. */
@media (min-width: 1000px) {
	.roles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.roles .role { grid-column: span 2; }
	.roles .role:nth-child(4) { grid-column: 2 / span 2; }
	.roles .role:nth-child(5) { grid-column: 4 / span 2; }
}
.role {
	position: relative; padding: 96px 22px 24px; text-align: center;
	background: linear-gradient(180deg, #fff, var(--gold-pale)); border: 1px solid var(--rule); border-radius: 18px;
}
.role::before {
	content: ""; position: absolute; left: 50%; top: 26px; width: 52px; height: 52px; margin-left: -26px; background: var(--gold);
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.role--monitor { --icon: var(--i-monitor); }
.role--steth { --icon: var(--i-steth); }
.role--scalpel { --icon: var(--i-scalpel); }
.role--ribbon { --icon: var(--i-ribbon); }
.role--target { --icon: var(--i-target); }
.role h3 { font-size: 1.25rem; margin-bottom: .25em; }
.role__tag { font-family: var(--display); font-style: italic; color: var(--navy); font-weight: 500; margin-bottom: .9em; line-height: 1.35; }
.role p { text-align: left; font-size: .92rem; line-height: 1.6; color: var(--ink); }
.role p:last-child { margin-bottom: 0; }

.links { margin: 0 0 1.5rem; }
.links.wp-block-list li { padding-bottom: .8em; font-weight: 700; }
.links.wp-block-list li::before { -webkit-mask-image: var(--i-chev); mask-image: var(--i-chev); }

/* ---------------------------------------------------------------
 * Technology page images
 * ------------------------------------------------------------- */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .figs { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; } }
.fig h3 { font-size: 1.3rem; margin: 14px 0 .2em; }
.fig p { color: var(--muted); font-size: .98rem; margin: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { width: 100%; height: auto; border-radius: 12px; }
.fig .wp-block-image img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); }
.chart { max-width: 960px; margin-left: auto; margin-right: auto; margin-top: clamp(40px, 6vw, 64px); }
.chart h3 { margin-bottom: .1em; text-align: center; }
.chart .chart__sub { text-align: center; color: var(--muted); font-family: var(--display); font-size: 1.15rem; margin-bottom: 1rem; }
.chart .wp-block-image img { border: 1px solid var(--rule); background: #fff; }
.chart .citation { font-size: .85rem; color: var(--muted); line-height: 1.55; max-width: 46rem; margin: 1.4rem auto 0; }

/* ---------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------- */
.qform { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 14px 36px rgba(20, 48, 90, .07); }
.qform__row { margin-bottom: 18px; }
.qform label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.qform input[type="text"], .qform input[type="email"], .qform input[type="tel"], .qform textarea {
	width: 100%; padding: 13px 15px; font: inherit; color: var(--ink); background: var(--cream);
	border: 1px solid var(--rule); border-radius: 12px;
}
.qform input:focus, .qform textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent); }
.qform__trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.qform__note { font-size: .82rem; color: var(--muted); margin: 16px 0 0; }
.qnotice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.qnotice--ok { background: #e6f3ea; color: #1d5a37; }
.qnotice--error { background: #fbe9e6; color: #8a2d1f; }

.contact-info { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-info li { margin-bottom: .35rem; }
.contact-info__label { display: block; margin: 1.2rem 0 .3rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------------------------------------------------------------
 * Page fallback header, posts, search
 * ------------------------------------------------------------- */
.page-banner { padding: clamp(40px, 6vw, 72px) 0 32px; background: var(--tint); border-bottom: 1px solid var(--rule); }
.page-banner h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0; }
.entry-plain { max-width: 780px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter); }
.entry-plain > * + * { margin-top: 1.2em; }
.entry-content > .alignwide { max-width: var(--wrap); }
.post-list { max-width: 780px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter); }
.post-list article { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.post-list h2 { font-size: 1.7rem; }
.post-list h2 a { text-decoration: none; }
.search-form { display: flex; gap: 10px; }
.search-field { flex: 1; padding: 12px 16px; font: inherit; border: 1px solid var(--rule); border-radius: 999px; background: #fff; }
.search-submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .82); font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { font-family: var(--display); font-size: 1.5rem; color: #fff; margin: 0 0 .4em; }
.site-footer__brand img { max-height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.site-footer__tag { font-family: var(--display); font-style: italic; color: var(--gold-light); margin: 0 0 1em; }
.footer-heading { font-family: var(--body); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 26px; padding-bottom: 34px; }
.site-footer__disclaimer { font-style: italic; font-size: .88rem; color: rgba(255, 255, 255, .78); max-width: 60rem; margin: 0 0 14px; line-height: 1.6; }
.site-footer__copy { font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .6); margin: 0; }

/* ---------------------------------------------------------------
 * Motion / print
 * ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	* { transition: none !important; }
}
@media print {
	.site-header, .site-footer, .hero::before, .hero::after { display: none; }
	.hero { background: none; padding: 0; }
	body { background: #fff; font-size: 12pt; }
}
