/* Patient navigation and the shared services list. */
#home > .hero--wide-banner { padding-block-end: 0; }
#home > .hero--wide-banner > .vh-carousel { margin-block-end: 0; }

/* Homepage introduction and centre photography. */
.home-about-feature { background: var(--brand-surface, #f7eee7); }
.home-about-feature-inner { display: grid; align-items: center; gap: clamp(24px, 5vw, 78px); }
.home-about-feature-copy { min-width: 0; }
.home-about-feature h2, .home-centre-feature h2 {
	max-width: 21ch; margin: 0; color: var(--plum);
	font: 400 clamp(32px, 4.15vw, 58px)/1.06 var(--serif); letter-spacing: -.025em;
}
.home-about-feature-copy > h2 + p { max-width: 53ch; margin: 16px 0 0; color: var(--muted); }
.home-about-feature-copy ul { display: grid; max-width: 440px; gap: 0; margin: 18px 0; padding: 0; list-style: none; }
.home-about-feature-copy li { display: flex; align-items: baseline; gap: 10px; padding-block: 7px; border-top: 1px solid var(--line); color: var(--plum); }
.home-about-feature-copy li::before { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--red); content: ""; }
.home-about-feature-copy .button { gap: 10px; }
.home-about-feature-media, .home-centre-feature-grid figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--sand); }
.home-about-feature-media { aspect-ratio: 5 / 4; }
.home-about-feature-media img, .home-centre-feature-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-about-feature-media figcaption, .home-centre-feature-grid figcaption {
	position: absolute; inset: auto auto 12px 12px; max-width: calc(100% - 24px);
	padding: 5px 10px; border-radius: 6px; background: var(--plum); color: var(--white); font-size: 13px; overflow-wrap: anywhere;
}
.home-centre-feature-head { display: grid; gap: 14px var(--content-gap); align-items: end; margin-block-end: clamp(20px, 3vw, 36px); }
.home-centre-feature-note { margin: 0; color: var(--muted); }
.home-centre-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-centre-feature-grid figure { aspect-ratio: 1; }
.home-centre-feature-grid figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.home-centre-feature-grid--2 figure { grid-column: auto; aspect-ratio: 1; }
@media (min-width: 820px) {
	.home-about-feature-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
	.home-centre-feature-head { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 960px) {
	.home-centre-feature-grid { grid-template-columns: minmax(0, 1.75fr) repeat(2, minmax(0, 1fr)); gap: 14px; }
	.home-centre-feature-grid figure, .home-centre-feature-grid figure:first-child { grid-column: auto; aspect-ratio: auto; height: clamp(260px, 28vw, 420px); }
	.home-centre-feature-grid--1 { grid-template-columns: minmax(0, 1fr); }
	.home-centre-feature-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.patient-pathways { padding-block: clamp(28px, 5vw, 62px); background: var(--brand-dark, #48091c); color: var(--brand-on-dark, #fff8f4); }
.patient-pathways-inner, .home-services-inner { display: grid; gap: var(--content-gap); align-items: start; }
.patient-pathways-intro .eyebrow { color: var(--brand-champagne, #f3d8b4); }
.patient-pathways-intro h2 {
	margin: 0 0 10px;
	color: var(--white);
	font: 400 clamp(34px, 4.8vw, 56px)/1.05 var(--serif);
	letter-spacing: -.025em;
}
.patient-pathways-intro > p:last-child { margin: 0; max-width: 52ch; }
.patient-pathways-list, .service-list, .patient-timeline { list-style: none; padding: 0; margin: 0; }
.patient-pathways-list { display: grid; gap: 10px; }
.patient-pathways-list a {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	height: 100%;
	min-height: 64px;
	padding: clamp(12px, 2vw, 22px);
	border: 1px solid var(--brand-border, #c69b9a);
	border-radius: var(--radius-card);
	background: color-mix(in srgb, var(--brand-dark, #48091c) 78%, var(--plum, #6a0b28));
	text-decoration: none;
}
.patient-pathways-list a:is(:hover, :focus-visible) { background: var(--plum, #6a0b28); border-color: var(--brand-champagne, #f3d8b4); }
.patient-pathway-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--brand-champagne, #f3d8b4);
	color: var(--plum);
}
.patient-pathway-icon svg { width: 23px; height: 23px; }
.patient-pathway-arrow { align-self: start; color: var(--brand-champagne, #f3d8b4); font-size: 19px; line-height: 1; }
.service-list-link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	min-height: 64px;
	padding-block: 12px;
	text-decoration: none;
}
.patient-pathway-copy { display: grid; gap: 3px; color: var(--brand-on-dark, #fff8f4); }
.patient-pathway-copy strong { color: var(--white); font: 400 clamp(20px, 2.4vw, 26px)/1.15 var(--serif); }
.service-list-arrow {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
}
.patient-pathways-list a:hover strong,
.service-list-link:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: .2em; }
.patient-pathways-list a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.home-section-intro .section-title { margin-bottom: 10px; }
.home-services-inner { gap: clamp(16px, 3vw, 30px); }
.home-services-heading-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.home-services-heading-bottom > p { max-width: 58ch; margin: 0; color: var(--muted); }
.patient-inline-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--red);
	font-weight: 700;
	text-underline-offset: .22em;
}
.service-list > li { border-block-start: 1px solid var(--line); }
.service-list > li:last-child { border-block-end: 1px solid var(--line); }
.service-list-link { padding-block: clamp(15px, 2.3vw, 25px); }
.service-list-copy :is(h2, h3) {
	margin: 0;
	color: var(--plum);
	font: 400 clamp(22px, 2.6vw, 30px)/1.15 var(--serif);
	overflow-wrap: anywhere;
}
.service-list-copy p { max-width: 65ch; margin: 6px 0 0; color: var(--muted); }
.service-list-arrow { color: var(--red); }
.home-services .service-list { display: grid; column-gap: var(--content-gap); border-block-start: 1px solid var(--line); }
.home-services .service-list > li { border-block-start: 0; border-block-end: 1px solid var(--line); }
.home-services .service-list-link { height: 100%; grid-template-columns: clamp(52px, 7vw, 84px) minmax(0, 1fr) auto; }
.home-services .service-list-media svg { width: 22px; height: 22px; color: var(--red); }
.home-services .service-list-link:is(:hover, :focus-visible) h3 {
	text-decoration: underline;
	text-underline-offset: .2em;
	text-decoration-skip-ink: none;
}

/* The full directory uses more of the page than the homepage preview. */
.services-directory-intro-grid { display: grid; align-items: center; gap: var(--content-gap); }
.services-directory-help {
	padding: clamp(18px, 2.5vw, 28px);
	border-radius: var(--radius-card);
	background: var(--plum);
	color: var(--brand-on-dark, #fff8f4);
}
.services-directory-help h2 { margin: 0; color: var(--white); font: 400 clamp(23px, 3vw, 30px)/1.12 var(--serif); }
.services-directory-help p { max-width: 42ch; margin: 8px 0 0; }
.services-directory-help a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--brand-champagne, #f3d8b4);
	font-weight: 700;
	text-underline-offset: .22em;
}
.services-directory-help a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.services-directory-search {
	position: relative;
	padding: clamp(16px, 2.5vw, 26px);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--white);
}
.services-directory-search::after {
	content: "";
	position: absolute;
	inset-inline: 16px;
	inset-block-end: -1px;
	height: 2px;
	background: var(--red);
	clip-path: inset(0 100% 0 0);
	pointer-events: none;
}
.services-directory-search:focus-within::after { clip-path: inset(0); }
.services-directory-search label { display: block; margin: 0 0 8px; color: var(--plum); font-weight: 700; }
.services-directory-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.services-directory-fields input[type="search"] {
	flex: 1 1 14rem;
	min-width: 0;
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid var(--brand-border, #c69b9a);
	border-radius: 10px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
}
.services-directory-fields .button { flex: 0 0 auto; }
.services-directory-fields .button:active { background: var(--plum); transform: none; }
.services-directory-results { margin-top: clamp(24px, 4vw, 44px); scroll-margin-top: 120px; }
.services-directory-results-heading { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.services-directory-results[aria-busy="true"] .services-directory-results-heading::after {
	content: "";
	position: absolute;
	inset: auto 0 -7px;
	height: 2px;
	background: var(--red);
	pointer-events: none;
}
.services-directory-results-heading h2 { margin: 0; color: var(--plum); font: 400 clamp(26px, 3.4vw, 38px)/1.15 var(--serif); overflow-wrap: anywhere; }
.services-directory-results-heading p { margin: 0; color: var(--muted); }
.services-directory-grid { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.services-directory-grid > li {
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--white);
}
.services-directory-grid > li:last-child { border-block-end-color: var(--line); }
.services-directory-grid .service-list-link {
	position: relative;
	grid-template-columns: clamp(58px, 10vw, 120px) minmax(0, 1fr) auto;
	align-items: start;
	gap: clamp(10px, 1.4vw, 18px);
	height: 100%;
	padding: clamp(14px, 2.3vw, 26px);
	border-radius: var(--radius-card);
}
.services-directory-grid .service-list-link::before {
	content: "";
	position: absolute;
	inset: 14px auto 14px 0;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--red);
	clip-path: inset(var(--service-rule-clip, 50% 0));
	pointer-events: none;
}
.services-directory-grid .service-list-link:is(:focus-visible, :active) {
	--service-rule-clip: 0;
	--service-arrow-fill: 0;
	--service-arrow-color: var(--white);
	background: var(--brand-surface, #f7eee7);
}
.services-directory-grid .service-list-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.services-directory-grid .service-list-link:active { background: var(--brand-blush, #f8e9e8); }
.services-directory-grid .service-list-copy h3 { font-size: clamp(20px, 2.1vw, 27px); }
.service-list-media {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	aspect-ratio: 1;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--sand);
}
.service-list-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.service-list-number { color: var(--red); font: 400 clamp(21px, 2.4vw, 32px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.service-list-media--photo .service-list-number {
	position: absolute;
	inset: auto auto 4px 4px;
	padding: 4px 5px;
	border-radius: 4px;
	background: var(--plum);
	color: var(--white);
	font: 700 .6875rem/1 var(--sans);
}
.services-directory-grid .service-list-arrow { position: relative; width: 30px; height: 30px; font-size: 16px; }
.services-directory-grid .service-list-arrow::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	background: var(--red);
	clip-path: inset(var(--service-arrow-fill, 0 100% 0 0) round 50%);
}
.services-directory-grid .service-list-arrow > span { position: relative; color: var(--service-arrow-color, var(--red)); }

@media (hover: hover) {
	.services-directory-grid .service-list-link:hover {
		--service-rule-clip: 0;
		--service-arrow-fill: 0;
		--service-arrow-color: var(--white);
		background: var(--brand-surface, #f7eee7);
	}
}
@media (prefers-reduced-motion: no-preference) {
	.services-directory-grid .service-list-link { transition: background-color 180ms ease-out; }
	.services-directory-grid .service-list-link::before { transition: clip-path 220ms ease-out; }
	.services-directory-grid .service-list-arrow::before { transition: clip-path 180ms ease-out; }
	.services-directory-grid .service-list-arrow > span { transition: color 160ms ease-out, transform 220ms ease-out; }
	.services-directory-grid .service-list-link:focus-visible .service-list-arrow > span { transform: translateX(2px); }
	.services-directory-search::after { transition: clip-path 240ms ease-out; }
	.services-directory-help a > span { transition: transform 180ms ease-out; }
	.services-directory-help a:focus-visible > span { transform: translateX(4px); }
	.services-directory-results[aria-busy="true"] .services-directory-results-heading::after { animation: service-results-sweep 750ms ease-in-out infinite alternate; }
	@keyframes service-results-sweep {
		from { clip-path: inset(0 72% 0 0); }
		to { clip-path: inset(0 0 0 72%); }
	}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.services-directory-grid .service-list-link:hover .service-list-arrow > span { transform: translateX(2px); }
	.services-directory-help a:hover > span { transform: translateX(4px); }
}
@media (forced-colors: active) {
	.services-directory-grid .service-list-arrow > span { color: LinkText; }
	.services-directory-grid .service-list-arrow::before { display: none; }
}

.patient-guide { padding-block: var(--section-space); background: var(--brand-surface, #f7eee7); }
.patient-guide .section-title { max-width: none; }
.patient-timeline { display: grid; margin-top: clamp(24px, 4vw, 44px); }
.patient-timeline > li { padding-block: 18px; border-block-start: 2px solid var(--brand-border, #c69b9a); scroll-margin-top: 110px; }
.patient-timeline > li:target { border-color: var(--red); }
.patient-timeline-stage { margin: 0 0 8px; color: var(--plum2); font-size: 13px; font-weight: 700; }
.patient-timeline h3 { margin: 0 0 7px; color: var(--plum); font: 400 24px/1.15 var(--serif); }
.patient-timeline h3 + p { max-width: 42ch; margin: 0; color: var(--muted); }
.patient-guide-faq { max-width: 740px; margin-top: var(--content-gap); box-shadow: none; }

@media (min-width: 760px) {
	.services-directory-intro-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
	.services-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.patient-pathways-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
	.patient-pathways-list a { grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 16px 10px; }
	.patient-pathway-copy { grid-column: 1 / -1; }
	.patient-pathway-arrow { grid-column: 2; grid-row: 1; }
	.home-services .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.patient-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--content-gap); }
}

@media (min-width: 1100px) {
	.services-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.services-directory-grid .service-list-link { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; }
}
