.vd-page {
	padding: 32px 0 64px;
	background: var(--cream, #fcf8f4);
	min-height: 60vh
}

.vd-wrap {
	width: var(--page-inline-size, min(1160px, calc(100% - 2 * clamp(16px, 4vw, 36px))));
	margin-inline: auto
}

.vd-breadcrumb {
	font-size: 13px;
	color: var(--muted, #67565b);
	margin-bottom: 28px
}

.vd-breadcrumb a,
.vd-link,
.vd-text-link {
	color: var(--brand-link, #942e43)
}

.vd-heading {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 24px
}

.vd-heading h1,
.vd-profile h1 {
	font: 400 clamp(34px, 5vw, 52px)/1.08 Georgia, serif;
	color: var(--plum, #6a0b28);
	margin: 0 0 10px
}

.vd-heading p {
	color: var(--muted, #67565b)
}

.vd-eyebrow {
	color: var(--brand-link, #942e43);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: 11px;
	font-weight: bold
}

.vd-demo-notice {
	background: #fff5e5;
	border: 1px solid #e9c98f;
	border-radius: 8px;
	padding: 13px 16px;
	color: #493c2c;
	font-size: 13px
}

.vd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 26px 0
}

.vd-card {
	background: #fff;
	border: 1px solid var(--line, #e7d8cf);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-card, 0 3px 12px rgb(72 9 28 / 6%))
}

.vd-card-image {
	height: 190px;
	background: var(--sand, #f3e9e1);
	display: grid;
	place-items: center;
	text-decoration: none
}

.vd-card-image img {
	height: 100%;
	width: 100%;
	object-fit: cover
}

.vd-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--brand-blush, #f8e9e8);
	color: var(--plum, #6a0b28);
	font: 48px Georgia, serif
}

.vd-card-body {
	padding: 18px
}

.vd-card-specialty,
.vd-profile-specialty {
	color: var(--brand-link, #942e43);
	font-weight: bold;
	margin: 0 0 5px
}

.vd-card h2 {
	font: 22px Georgia, serif;
	color: var(--plum, #6a0b28);
	margin: 0 0 9px
}

.vd-card h2 a {
	text-decoration: none
}

.vd-card-body>p:not(.vd-card-specialty) {
	color: var(--muted, #67565b);
	font-size: 13px
}

.vd-link {
	font-weight: bold;
	text-decoration: none
}

.vd-profile {
	display: grid;
	grid-template-columns: minmax(260px, .8fr) 1.2fr;
	gap: 44px;
	align-items: start;
	background: #fff;
	padding: clamp(20px, 4vw, 48px);
	border-radius: 16px;
	border: 1px solid var(--line, #e7d8cf)
}

.vd-profile-photo {
	min-height: 340px;
	border-radius: 12px;
	background: var(--sand, #f3e9e1);
	display: grid;
	place-items: center;
	overflow: hidden
}

.vd-profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.vd-avatar-large {
	width: 160px;
	height: 160px;
	font-size: 76px
}

.vd-profile h1 {
	margin-bottom: 4px
}

.vd-profile-copy>section {
	border-top: 1px solid var(--line, #e7d8cf);
	margin-top: 20px;
	padding-top: 15px
}

.vd-profile h2 {
	font: 22px Georgia, serif;
	color: var(--plum, #6a0b28);
	margin: 0 0 8px
}

.vd-profile-copy p {
	color: var(--muted, #67565b)
}

.vd-button {
	display: inline-block;
	padding: 11px 16px;
	background: var(--red, #760f2f);
	color: white;
	border-radius: 7px;
	text-decoration: none;
	font-weight: bold;
	margin: 10px 12px 0 0
}

.vd-text-link {
	font-weight: bold
}

.vd-back {
	margin-top: 28px
}

@media(max-width:800px) {
	.vd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr))
	}

	.vd-profile {
		grid-template-columns: 1fr
	}

	.vd-profile-photo {
		min-height: 260px;
		max-width: 500px;
		width: 100%;
		margin: auto
	}
}

@media(max-width:540px) {
	.vd-grid {
		grid-template-columns: 1fr
	}

	.vd-card-image {
		height: 220px
	}
}

/* Public directory refinement: use the theme's shared spacing and interaction tokens. */
.vd-page {
	padding-block: var(--section-space, clamp(48px, 7vw, 88px));
}

.vd-breadcrumb {
	margin-bottom: clamp(28px, 4vw, 42px);
}

.vd-heading {
	margin-bottom: clamp(28px, 4vw, 42px);
}

.vd-heading h1,
.vd-profile h1 {
	line-height: 1.05;
}

.vd-grid {
	gap: var(--content-gap, clamp(18px, 2.6vw, 32px));
	margin-block: 28px;
	align-items: stretch;
}

.vd-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-card, 14px);
	box-shadow: var(--shadow-card, 0 8px 24px rgb(72 9 28 / 6%));
	transition: transform var(--motion-base, 220ms), box-shadow var(--motion-base, 220ms);
}

.vd-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgb(72 9 28 / 11%);
}

.vd-card-image {
	min-height: 190px;
}

.vd-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(18px, 2.3vw, 26px);
}

.vd-card-body>p:not(.vd-card-specialty) {
	flex: 1;
}

.vd-link,
.vd-text-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
}

.vd-profile {
	border-radius: var(--radius-panel, 20px);
	box-shadow: var(--shadow-card, 0 8px 24px rgb(72 9 28 / 6%));
}

.vd-demo-notice {
	border-radius: var(--radius-card, 14px);
	line-height: 1.65;
}

.vd-page a:focus-visible {
	outline: 0;
	box-shadow: var(--focus-ring, 0 0 0 3px rgb(148 46 67 / 35%));
}

@media (max-width: 760px) {
	.vd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vd-profile {
		gap: 28px;
	}
}

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

	.vd-profile {
		grid-template-columns: 1fr;
	}
}

/* Shared editorial cards for the directory and homepage. */
.vd-directory-heading {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 20px;
	margin-block-end: 14px;
}
.vd-directory-heading h2 { margin: 0; color: var(--plum, #6a0b28); font: 400 clamp(26px, 3.3vw, 38px)/1.15 Georgia, serif; }
.vd-directory-heading a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--brand-link, #942e43); font-weight: 700; text-underline-offset: .2em; }
.vd-specialty-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.vd-specialty-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 13px; border: 1px solid var(--line, #e7d8cf); border-radius: 999px; background: #fff; color: var(--plum, #6a0b28); font-size: 13px; text-decoration: none; }
.vd-specialty-nav a:is(:hover, [aria-current]) { border-color: var(--plum, #6a0b28); background: var(--plum, #6a0b28); color: #fff; }
.directory-doctor.doctor-card--editorial .doctor-card-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.directory-doctor.doctor-card--editorial .doctor-card-avatar {
	grid-area: 1 / 2;
	width: clamp(68px, 7vw, 100px);
	height: auto;
	aspect-ratio: 1;
	border-radius: 11px;
	box-shadow: none;
}
.directory-doctor.doctor-card--editorial .doctor-card-avatar::after { inset: 4px; border-color: var(--vd-portrait-ring, transparent); }
.directory-doctor.doctor-card--editorial .doctor-card-heading { grid-area: 1 / 1; }
.directory-doctor.doctor-card--editorial .doctor-card-specialty {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--brand-link, #942e43);
	font-size: 12px;
}
.directory-doctor.doctor-card--editorial .doctor-card-copy {
	position: relative;
	margin-top: 14px;
	border-top: 1px solid var(--line, #e7d8cf);
}
.directory-doctor.doctor-card--editorial .doctor-card-copy::before {
	position: absolute;
	inset: -1px 0 auto;
	height: 2px;
	background: var(--brand-link, #942e43);
	clip-path: inset(0 var(--vd-line-end, 100%) 0 0);
	content: "";
	pointer-events: none;
}
.directory-doctor.doctor-card--editorial .doctor-card-action { align-self: stretch; justify-content: space-between; }
.directory-card.directory-doctor.doctor-card--editorial .doctor-card-link .doctor-card-arrow {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--brand-link, #942e43);
	border-radius: 50%;
	background: var(--vd-arrow-bg, transparent);
	color: var(--vd-arrow-color, var(--brand-link, #942e43));
	transform: translateX(var(--vd-arrow-shift, 0));
}
.directory-card.directory-doctor.doctor-card--editorial:is(:hover, :active),
.directory-card.directory-doctor.doctor-card--editorial:hover .doctor-card-avatar { transform: none; }
.directory-card.directory-doctor.doctor-card--editorial:hover .doctor-card-avatar { box-shadow: none; }
.directory-doctor.doctor-card--editorial .doctor-card-link:is(:focus-visible, :active) {
	--vd-line-end: 0%;
	--vd-portrait-ring: #fff;
	--vd-arrow-bg: var(--red, #760f2f);
	--vd-arrow-color: #fff;
}
@media (hover: hover) and (pointer: fine) {
	.directory-doctor.doctor-card--editorial .doctor-card-link:hover {
		--vd-line-end: 0%;
		--vd-portrait-ring: #fff;
		--vd-arrow-bg: var(--red, #760f2f);
		--vd-arrow-color: #fff;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.directory-doctor.doctor-card--editorial .doctor-card-copy::before { transition: clip-path 240ms ease-out; }
	.directory-doctor.doctor-card--editorial .doctor-card-avatar::after { transition: border-color 200ms ease-out; }
	.directory-doctor.doctor-card--editorial .doctor-card-arrow { transition: transform 220ms ease-out, background-color 180ms ease-out, color 180ms ease-out; }
	.directory-doctor.doctor-card--editorial .doctor-card-link:focus-visible { --vd-arrow-shift: 4px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
	.directory-doctor.doctor-card--editorial .doctor-card-link:hover { --vd-arrow-shift: 4px; }
}

/* Editorial profile detail */
.vd-detail-page {
	background: var(--cream, #fcf8f4);
}

.vd-detail-page .vd-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	color: var(--muted, #67565b);
}

.vd-detail-page .vd-profile {
	grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr);
	grid-template-areas: "side intro" "side bio";
	grid-template-rows: auto 1fr;
	gap: 24px clamp(28px, 5vw, 68px);
	padding: clamp(22px, 5vw, 64px);
	align-items: start;
}

.vd-profile-side {
	grid-area: side;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line, #e7d8cf);
	border-radius: var(--radius-card, 14px);
	background: var(--brand-surface, #f7eee7);
}
.vd-profile--protected .vd-profile-side { border: 0; background: transparent; }
.vd-profile-intro { grid-area: intro; }
.vd-profile-body { grid-area: bio; }
.vd-detail-page .vd-profile-body > .vd-detail-section:first-child { margin-top: 0; }

.vd-detail-page .vd-profile-photo {
	min-height: 0;
	width: 100%;
	aspect-ratio: 5/4;
	max-height: 420px;
	border-radius: 0;
	background: linear-gradient(145deg, var(--sand, #f3e9e1), var(--brand-blush, #f8e9e8));
}

.vd-detail-page .vd-profile--no-portrait .vd-profile-photo {
	width: 72px;
	aspect-ratio: 1;
	margin: 16px 16px 0;
	border-radius: 50%;
}

.vd-detail-page .vd-profile--no-portrait .vd-avatar-large {
	width: 100%;
	height: 100%;
	font-size: 32px;
}

.vd-detail-page .vd-profile-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.vd-detail-page .vd-profile-copy {
	max-width: 690px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.vd-detail-page .vd-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}

.vd-detail-page .vd-profile h1 {
	font-size: clamp(38px, 5.3vw, 64px);
	letter-spacing: -.035em;
}

.vd-detail-page .vd-profile-summary {
	margin: 12px 0 0;
	font-size: 17px;
}

.vd-detail-page .vd-detail-section {
	border-top: 1px solid var(--line, #e7d8cf);
	padding-top: 24px;
	margin-top: 24px;
}

.vd-detail-page .vd-detail-section h2 {
	color: var(--plum, #6a0b28);
	font: 400 clamp(23px, 3vw, 30px)/1.2 Georgia, serif;
	margin: 0 0 12px;
}

.vd-detail-page .vd-bio,
.vd-detail-page .vd-detail-section>p {
	color: var(--muted, #67565b);
	font-size: 16px;
	line-height: 1.8;
}

.vd-detail-page .vd-bio p {
	margin: 0 0 1em;
}

.vd-detail-page .vd-consultation {
	margin: 0;
	padding: clamp(14px, 2vw, 20px);
	overflow-wrap: anywhere;
}
.vd-detail-page .vd-consultation h2 { margin-bottom: 8px; font-size: clamp(21px, 2vw, 25px); }
.vd-detail-page .vd-consultation > p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }

.vd-detail-page .vd-button {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	min-height: 44px;
}
.vd-consultation-details { display: grid; gap: 0; margin: 8px 0; }
.vd-consultation-details > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 10px; align-items: center; padding-block: 4px; border-top: 1px solid var(--line, #e7d8cf); }
.vd-consultation-details dt { color: var(--plum, #6a0b28); font-size: 13px; font-weight: 700; line-height: 1.35; }
.vd-consultation-details dd { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.vd-consultation-details a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-link, #942e43); text-underline-offset: .2em; }
.vd-detail-page .vd-consultation > .vd-consultation-note { font-size: 13px; }
.vd-profile-side a:focus-visible { outline-offset: 2px; }

@media (min-width: 901px) and (min-height: 760px) {
	.vd-detail-page .vd-profile-side {
		position: sticky;
		top: var(--doctor-profile-sticky-top, 100px);
	}
	.admin-bar .vd-detail-page .vd-profile-side { --doctor-profile-sticky-top: 132px; }
}

.vd-detail-page .vd-back-link {
	margin-top: 16px;
	text-decoration: none;
}

.vd-preview-badge {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line, #e7d8cf);
	border-radius: 999px;
	padding: 4px 10px;
	color: var(--muted, #67565b);
	font-size: 10px;
	letter-spacing: .08em;
	line-height: 1.2;
}

.vd-detail-page a:focus-visible {
	outline: 3px solid var(--brand-focus, #942e43);
	outline-offset: 4px;
}

@media (max-width:900px) {
	.vd-detail-page .vd-profile {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "intro" "side" "bio";
		grid-template-rows: auto;
	}

	.vd-detail-page .vd-profile-photo {
		max-height: 340px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.vd-detail-page *,
	.vd-detail-page *::before,
	.vd-detail-page *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
