/*
 * Shared doctor card (template-parts/doctor-card.php).
 * Used by the homepage team grid, About Us experts and the Team page roster;
 * section stylesheets only handle their own grid/slider layout.
 */

.ijc-dcard {
	--dcard-name-size: 1.375rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line-blue);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	color: inherit;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
a.ijc-dcard,
a.ijc-dcard:hover {
	color: inherit;
	text-decoration: none;
}
a.ijc-dcard:hover,
a.ijc-dcard:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}
a.ijc-dcard:focus-visible {
	outline: 3px solid rgba(8, 125, 231, .35);
	outline-offset: 3px;
}

/* Photo: transparent cut-out standing on the brand navy. */
.ijc-dcard__media {
	position: relative;
	aspect-ratio: 10 / 7;
	overflow: hidden;
	background: radial-gradient(120% 95% at 50% 0%, var(--navy-700) 0%, var(--navy-950) 72%);
}
.ijc-dcard__media img {
	position: absolute;
	bottom: 0;
	left: 50%;
	display: block;
	width: auto;
	max-width: none;
	height: 94%;
	margin: 0;
	transform: translateX(-50%);
	transition: transform .35s ease;
	user-select: none;
}
a.ijc-dcard:hover .ijc-dcard__media img {
	transform: translateX(-50%) scale(1.03);
	transform-origin: center bottom;
}
.ijc-dcard__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--text-on-dark-muted);
	font-size: var(--fs-small);
	font-weight: var(--fw-bold);
	text-align: center;
}

.ijc-dcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 24px 18px;
}
.ijc-dcard__title {
	margin: 0;
	color: var(--blue);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	line-height: 1.3;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
}
.ijc-dcard__title::after {
	display: block;
	width: 28px;
	height: 2px;
	margin: 12px 0 14px;
	border-radius: 2px;
	background: var(--blue);
	content: "";
}
.ijc-dcard__name {
	margin: 0 0 10px;
	color: var(--heading);
	font-size: var(--dcard-name-size);
	font-weight: var(--fw-heavy);
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
}
.ijc-dcard__role {
	margin: 0 0 6px;
	color: var(--text);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
	line-height: 1.4;
}
.ijc-dcard__specs,
.ijc-dcard__specialty {
	margin: 0;
	padding: 0;
	color: var(--blue);
	font-size: var(--fs-body-sm);
	line-height: 1.55;
	list-style: none;
}
.ijc-dcard__specs li {
	display: inline;
	margin: 0;
	padding: 0;
}
.ijc-dcard__specs li + li::before {
	padding: 0 .45em;
	content: "•";
}

.ijc-dcard__profile {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 24px;
	padding: 16px 0 20px;
	border-top: 1px solid var(--line-blue);
	color: var(--blue);
	font-size: var(--fs-body-sm);
	font-weight: var(--fw-bold);
}
.ijc-dcard__profile svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	transition: transform .2s ease;
}
a.ijc-dcard:hover .ijc-dcard__profile svg {
	transform: translateX(3px);
}

@media (max-width: 699px) {
	.ijc-dcard { --dcard-name-size: 1.25rem; }
	.ijc-dcard__body { padding: 20px 20px 16px; }
	.ijc-dcard__profile { margin: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.ijc-dcard,
	.ijc-dcard__media img,
	.ijc-dcard__profile svg { transition: none; }
	a.ijc-dcard:hover { transform: none; }
}
