/* Team Cards — frontend */


/* Theme isolation: beat common content/list/link overrides */
.ddtc-root {
	isolation: isolate;
	width: 100%;
	container-type: inline-size;
	container-name: ddtc;
}

.ddtc-root .ddtc-social-item,
.ddtc-root ul.ddtc-social > li {
	list-style: none !important;
	list-style-type: none !important;
	list-style-image: none !important;
	margin: 0 !important;
	padding: 0 !important;
	padding-inline-start: 0 !important;
	border: 0;
	background: transparent;
}

.ddtc-root .ddtc-social-item::before,
.ddtc-root .ddtc-social-item::marker,
.ddtc-root ul.ddtc-social > li::before,
.ddtc-root ul.ddtc-social > li::marker {
	content: none !important;
	display: none !important;
}

.ddtc-root p,
.ddtc-root a,
.ddtc-root img,
.ddtc-root svg,
.ddtc-root figure {
	max-width: none;
}

.ddtc-root a {
	box-shadow: none;
}

.ddtc-root .ddtc-person-name,
.ddtc-root .ddtc-person-title,
.ddtc-root .ddtc-person-description {
	padding: 0;
	border: 0;
	background: transparent;
	text-decoration: none;
}

.ddtc-root .ddtc-grid {
	--ddtc-gap: 24px;
	--ddtc-radius: 12px;
	--ddtc-inset: 20px;
	--ddtc-stack: 10px;
	display: grid;
	gap: var(--ddtc-gap);
	align-items: start;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	box-sizing: border-box;
}

.ddtc-root .ddtc-grid.ddtc-cols-1{ grid-template-columns: 1fr; }
.ddtc-root .ddtc-grid.ddtc-cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ddtc-root .ddtc-grid.ddtc-cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ddtc-root .ddtc-grid.ddtc-cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ddtc-root .ddtc-grid *,
.ddtc-root .ddtc-grid *::before,
.ddtc-root .ddtc-grid *::after{
	box-sizing: border-box;
}

.ddtc-root .ddtc-empty-notice{
	padding: 12px 16px;
	border-left: 4px solid #2563eb;
	background: #f3f4f6;
	color: #111827;
}

.ddtc-root .ddtc-card{
	margin: 0;
	min-width: 0;
}

.ddtc-root .ddtc-person-name{
	margin: 0 0 4px;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.3;
	word-wrap: break-word;
}

.ddtc-root .ddtc-person-title{
	margin: 0 0 var(--ddtc-stack);
	font-size: 0.95rem;
	opacity: 0.8;
	line-height: 1.35;
}

.ddtc-root .ddtc-person-description{
	margin: 0 0 var(--ddtc-stack);
	font-size: 0.95rem;
	line-height: 1.55;
}

.ddtc-root .ddtc-card-identity:last-child .ddtc-person-name,
.ddtc-root .ddtc-card-identity:last-child .ddtc-person-title,
.ddtc-root .ddtc-card-extras-inner > :last-child {
	margin-bottom: 0;
}

.ddtc-root .ddtc-card-identity:not(:last-child) .ddtc-person-title,
.ddtc-root .ddtc-card-identity:not(:last-child) .ddtc-person-name:only-child {
	margin-bottom: var(--ddtc-stack);
}

.ddtc-root .ddtc-card-media{
	overflow: hidden;
	width: 100%;
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	position: relative;
}

.ddtc-root .ddtc-person-image,
.ddtc-root .ddtc-image-placeholder{
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	aspect-ratio: auto;
	position: absolute;
	inset: 0;
}

.ddtc-root .ddtc-image-placeholder{
	background-color: #e5e7eb;
	background-image: url("../../assets/person-placeholder.svg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.ddtc-root .ddtc-social {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none !important;
	margin: 0 0 var(--ddtc-stack) !important;
	padding: 0 !important;
	padding-inline-start: 0 !important;
	border: 0;
	background: transparent;
}

.ddtc-root .ddtc-social-item {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	line-height: 0;
}

.ddtc-root .ddtc-social-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit;
	text-decoration: none !important;
	border: 0 !important;
	border-radius: 999px;
	outline: none;
	line-height: 0;
	overflow: visible;
	box-shadow: none !important;
	transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ddtc-root .ddtc-social-link:hover,
.ddtc-root .ddtc-social-link:focus-visible{
	color: var(--ddtc-accent, #2563eb);
	text-decoration: none;
	outline: none;
	border: 0;
	box-shadow: none;
	transform: scale(1.14);
	opacity: 1;
}

.ddtc-root .ddtc-social-link:focus:not(:focus-visible){
	outline: none;
	box-shadow: none;
}

.ddtc-root .ddtc-social-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: visible;
	text-decoration: none;
}

.ddtc-root .ddtc-social-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	overflow: visible;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ddtc-root .ddtc-social-link{
		transition: color 0.15s ease;
	}

	.ddtc-root .ddtc-social-link:hover,
.ddtc-root .ddtc-social-link:focus-visible{
		transform: none;
	}
}

.ddtc-root .ddtc-button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65em 1.15em;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ddtc-root .ddtc-button:hover .ddtc-button-text,
.ddtc-root .ddtc-button:focus .ddtc-button-text{
	text-decoration: underline;
}

.ddtc-root .ddtc-button:focus{
	outline: 2px solid var(--ddtc-accent, #2563eb);
	outline-offset: 2px;
}

.ddtc-root .ddtc-btn-filled .ddtc-button{
	background: var(--ddtc-accent, #2563eb);
	color: var(--ddtc-accent-text, #fff);
	border: 2px solid transparent;
}

.ddtc-root .ddtc-btn-filled .ddtc-button:hover,
.ddtc-root .ddtc-btn-filled .ddtc-button:focus{
	filter: brightness(0.95);
	text-decoration: none;
}

.ddtc-root .ddtc-btn-outline .ddtc-button{
	background: transparent;
	color: var(--ddtc-accent, #2563eb);
	border: 2px solid var(--ddtc-accent, #2563eb);
}

/* Classic */
.ddtc-root .ddtc-style-classic .ddtc-card-classic {
	display: flex;
	flex-direction: column;
	height: auto;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: var(--ddtc-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
	.ddtc-root .ddtc-style-classic .ddtc-card-classic,
	.ddtc-root .ddtc-social-link,
.ddtc-root .ddtc-button{
		transition: none;
	}
}

.ddtc-root .ddtc-style-classic .ddtc-card-classic:hover{
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.ddtc-root .ddtc-style-classic .ddtc-card-media{
	width: 100%;
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	flex: 0 0 auto;
}

.ddtc-root .ddtc-style-classic .ddtc-card-media .ddtc-person-image,
.ddtc-root .ddtc-style-classic .ddtc-card-media .ddtc-image-placeholder{
	border-radius: 0;
}

.ddtc-root .ddtc-style-classic .ddtc-card-body {
	position: relative;
	flex: 0 1 auto;
	padding: var(--ddtc-inset);
	text-align: left;
	background: #fff;
}

.ddtc-root .ddtc-style-classic .ddtc-card-body-ghost {
	display: none;
}

.ddtc-root .ddtc-style-classic .ddtc-card-body-panel {
	display: flex;
	flex-direction: column;
}

.ddtc-root .ddtc-style-classic .ddtc-card-actions {
	margin-top: 0;
	padding-top: 0;
}

/* Minimal — Round (1:1) is circular; Square (1:1) and portraits use soft rectangles */
.ddtc-root .ddtc-style-minimal .ddtc-card-minimal{
	text-align: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 8px 4px 16px;
}

.ddtc-root .ddtc-style-minimal .ddtc-card-media{
	width: min(180px, 70%);
	margin: 0 auto 18px;
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	border-radius: 22px;
	overflow: hidden;
}

.ddtc-root .ddtc-style-minimal .ddtc-person-image,
.ddtc-root .ddtc-style-minimal .ddtc-image-placeholder{
	border-radius: 22px;
}

/* Square stays visibly square — light radius only (not the portrait 22px). */
.ddtc-root .ddtc-style-minimal.ddtc-ratio-square .ddtc-card-media,
.ddtc-root .ddtc-style-minimal.ddtc-ratio-square .ddtc-person-image,
.ddtc-root .ddtc-style-minimal.ddtc-ratio-square .ddtc-image-placeholder{
	border-radius: 8px;
}

.ddtc-root .ddtc-style-minimal.ddtc-ratio-round .ddtc-card-media,
.ddtc-root .ddtc-style-minimal.ddtc-ratio-round .ddtc-person-image,
.ddtc-root .ddtc-style-minimal.ddtc-ratio-round .ddtc-image-placeholder{
	border-radius: 50%;
}

.ddtc-root .ddtc-style-minimal .ddtc-social,
.ddtc-root .ddtc-style-minimal .ddtc-card-actions{
	justify-content: center;
}

.ddtc-root .ddtc-style-minimal .ddtc-social{
	display: flex;
	justify-content: center;
}

/* Horizontal — fixed media box; image left / content right at every breakpoint */
.ddtc-root .ddtc-style-horizontal.ddtc-grid {
	/*
	 * Tall enough for name + title + social + CTA so the photo fills the card
	 * height with extras shown; width follows aspect-ratio (more card share).
	 * Size is token-fixed — does not change when hover-extras open/close.
	 */
	--ddtc-h-media-h: 220px;
	align-items: stretch;
}

.ddtc-root .ddtc-style-horizontal .ddtc-card-horizontal{
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto;
	align-items: stretch;
	gap: 0;
	padding: 0;
	min-height: var(--ddtc-h-media-h);
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: var(--ddtc-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.ddtc-root .ddtc-style-horizontal .ddtc-card-media{
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	align-self: start;
	width: auto;
	max-width: none;
	min-width: 0;
	height: var(--ddtc-h-media-h);
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	border-radius: 0;
	overflow: hidden;
	position: relative;
	flex: 0 0 auto;
}

.ddtc-root .ddtc-style-horizontal .ddtc-card-media .ddtc-person-image,
.ddtc-root .ddtc-style-horizontal .ddtc-card-media .ddtc-image-placeholder{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	aspect-ratio: auto;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

.ddtc-root .ddtc-style-horizontal .ddtc-card-body{
	grid-column: 2;
	grid-row: 1;
	/* Keep a readable text band; breakpoints step columns before this is crushed */
	min-width: 10.5rem;
	min-height: var(--ddtc-h-media-h);
	padding: var(--ddtc-inset);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ddtc-root .ddtc-style-horizontal .ddtc-person-name,
.ddtc-root .ddtc-style-horizontal .ddtc-person-title {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: manual;
}

/* Modern Cards */
.ddtc-root .ddtc-style-modern .ddtc-card-modern {
	--ddtc-inset: 20px;
	--ddtc-modern-space: 14px;
	--ddtc-modern-radius: 22px;
	--ddtc-modern-text-inline: 6px;
	display: flex;
	flex-direction: column;
	gap: var(--ddtc-modern-space);
	height: auto;
	padding: var(--ddtc-modern-space);
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ddtc-root .ddtc-style-modern .ddtc-card-modern:hover{
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
}

.ddtc-root .ddtc-style-modern .ddtc-card-media{
	border-radius: var(--ddtc-modern-radius);
	overflow: hidden;
	margin-bottom: 0;
	width: 100%;
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	flex: 0 0 auto;
	position: relative;
	z-index: 0;
}

.ddtc-root .ddtc-style-modern .ddtc-card-media .ddtc-person-image,
.ddtc-root .ddtc-style-modern .ddtc-card-media .ddtc-image-placeholder{
	border-radius: var(--ddtc-modern-radius);
}

.ddtc-root .ddtc-style-modern .ddtc-card-body {
	position: relative;
	flex: 0 1 auto;
	/* Vertical rhythm from card gap + card padding (equal 14px); inline pad → 20px total */
	padding: 0 var(--ddtc-modern-text-inline);
	text-align: left;
	color: #111827;
}

.ddtc-root .ddtc-style-modern .ddtc-card-body-ghost {
	display: none;
}

.ddtc-root .ddtc-style-modern .ddtc-card-body-panel {
	display: flex;
	flex-direction: column;
}

.ddtc-root .ddtc-style-modern .ddtc-person-name{
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ddtc-root .ddtc-style-modern .ddtc-person-title{
	color: #6b7280;
	opacity: 1;
}

.ddtc-root .ddtc-style-modern .ddtc-person-description{
	color: #6b7280;
}

.ddtc-root .ddtc-style-modern .ddtc-social-link{
	width: 36px;
	height: 36px;
	color: #6b7280;
	background: #f3f4f6;
}

.ddtc-root .ddtc-style-modern .ddtc-social-link:hover,
.ddtc-root .ddtc-style-modern .ddtc-social-link:focus-visible{
	color: var(--ddtc-accent, #2563eb);
	background: #eef2ff;
}

.ddtc-root .ddtc-style-modern .ddtc-card-actions {
	margin-top: 0;
	padding-top: 0;
}

.ddtc-root .ddtc-style-modern .ddtc-button{
	width: 100%;
	border-radius: 999px;
	padding: 0.8em 1.2em;
}

.ddtc-root .ddtc-style-modern.ddtc-btn-filled .ddtc-button{
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ddtc-root .ddtc-style-modern.ddtc-btn-outline .ddtc-button{
	background: transparent;
	border-color: var(--ddtc-accent, #2563eb);
	color: var(--ddtc-accent, #2563eb);
}

@media (prefers-reduced-motion: reduce) {
	.ddtc-root .ddtc-style-modern .ddtc-card-modern{
		transition: none;
	}
}

/* Overlay shared media frame */
.ddtc-root .ddtc-style-overlay .ddtc-card-overlay,
.ddtc-root .ddtc-style-modern_overlay .ddtc-card-modern-overlay{
	border-radius: 28px;
	overflow: hidden;
	position: relative;
	min-height: 0;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.ddtc-root .ddtc-style-overlay .ddtc-card-media,
.ddtc-root .ddtc-style-modern_overlay .ddtc-card-media{
	position: relative;
	width: 100%;
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	min-height: 0;
}

.ddtc-root .ddtc-style-overlay .ddtc-person-image,
.ddtc-root .ddtc-style-overlay .ddtc-image-placeholder,
.ddtc-root .ddtc-style-modern_overlay .ddtc-person-image,
.ddtc-root .ddtc-style-modern_overlay .ddtc-image-placeholder{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.ddtc-root .ddtc-style-overlay .ddtc-image-placeholder,
.ddtc-root .ddtc-style-modern_overlay .ddtc-image-placeholder{
	/* Keep silhouette SVG; do not use background shorthand (wipes background-image). */
	background-color: #0f172a;
	background-image:
		url("../../assets/person-placeholder.svg"),
		linear-gradient(160deg, #334155, #0f172a);
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
}

.ddtc-root .ddtc-style-overlay .ddtc-overlay-content,
.ddtc-root .ddtc-style-modern_overlay .ddtc-overlay-content{
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 0;
	overflow: auto;
	padding: var(--ddtc-inset);
}

.ddtc-root .ddtc-style-overlay .ddtc-card-actions,
.ddtc-root .ddtc-style-modern_overlay .ddtc-card-actions{
	margin-top: var(--ddtc-stack);
	padding-top: 0;
}

.ddtc-root .ddtc-style-overlay .ddtc-button,
.ddtc-root .ddtc-style-modern_overlay .ddtc-button{
	width: 100%;
	border-radius: 999px;
}

/* Overlay panel: scrim sized to name/extras so it moves with hover reveal */
.ddtc-root .ddtc-style-overlay .ddtc-overlay-content,
.ddtc-root .ddtc-style-modern_overlay .ddtc-overlay-content {
	background: transparent;
}

.ddtc-root .ddtc-overlay-panel {
	position: relative;
	isolation: isolate;
	width: 100%;
}

.ddtc-root .ddtc-overlay-panel::before {
	content: "";
	position: absolute;
	left: calc(-1 * var(--ddtc-inset));
	right: calc(-1 * var(--ddtc-inset));
	bottom: calc(-1 * var(--ddtc-inset));
	/* Panel height + bottom pad + soft fade above the text */
	height: calc(100% + var(--ddtc-inset) + 48px);
	z-index: -1;
	pointer-events: none;
	transition: height 0.35s ease;
}

/* Portrait Overlay — solid light/dark band at 95% (no gradient fade / blur) */
.ddtc-root .ddtc-style-overlay .ddtc-overlay-panel::before {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	mask-image: none;
	-webkit-mask-image: none;
	/* Fill panel + content inset on all sides — sharp edges, clean padding */
	top: calc(-1 * var(--ddtc-inset));
	bottom: calc(-1 * var(--ddtc-inset));
	height: auto;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark .ddtc-overlay-content {
	color: #fff;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark .ddtc-overlay-panel::before {
	background: rgba(0, 0, 0, 0.95);
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark .ddtc-person-title,
.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark .ddtc-person-description{
	color: rgba(255, 255, 255, 0.92);
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark .ddtc-social-link{
	color: #fff;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark.ddtc-btn-outline .ddtc-button{
	color: #fff;
	border-color: #fff;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light .ddtc-overlay-content {
	color: #111827;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light .ddtc-overlay-panel::before {
	background: rgba(255, 255, 255, 0.95);
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light .ddtc-person-title,
.ddtc-root .ddtc-style-overlay.ddtc-overlay-light .ddtc-person-description{
	color: #4b5563;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light .ddtc-social-link{
	color: #374151;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light.ddtc-btn-outline .ddtc-button{
	color: #111827;
	border-color: rgba(17, 24, 39, 0.35);
	background: rgba(255, 255, 255, 0.7);
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light.ddtc-btn-filled .ddtc-button{
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

/* Modern Overlay — gradient on the content panel; fades fully at its top */
.ddtc-root .ddtc-style-modern_overlay .ddtc-overlay-content {
	border: 0;
}

.ddtc-root .ddtc-style-modern_overlay .ddtc-overlay-panel::before {
	-webkit-backdrop-filter: blur(16px) saturate(1.1);
	backdrop-filter: blur(16px) saturate(1.1);
	mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
	-webkit-mask-image: linear-gradient(to top, #000 0%, #000 55%, transparent 100%);
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light .ddtc-overlay-content {
	color: #111827;
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light .ddtc-overlay-panel::before {
	background: linear-gradient(
		to top,
		rgba(255, 255, 255, 0.96) 0%,
		rgba(255, 255, 255, 0.7) 48%,
		rgba(255, 255, 255, 0) 100%
	);
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light .ddtc-person-title,
.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light .ddtc-person-description{
	color: #4b5563;
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light .ddtc-social-link{
	color: #4b5563;
	background: rgba(255, 255, 255, 0.7);
	width: 36px;
	height: 36px;
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light.ddtc-btn-outline .ddtc-button{
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(17, 24, 39, 0.4);
	color: #111827;
	box-shadow: none;
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark .ddtc-overlay-content {
	color: #fff;
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark .ddtc-overlay-panel::before {
	background: linear-gradient(
		to top,
		rgba(15, 23, 42, 0.92) 0%,
		rgba(15, 23, 42, 0.58) 48%,
		rgba(15, 23, 42, 0) 100%
	);
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark .ddtc-person-title,
.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark .ddtc-person-description{
	color: rgba(255, 255, 255, 0.9);
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark .ddtc-social-link{
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	width: 36px;
	height: 36px;
}

.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark.ddtc-btn-outline .ddtc-button{
	background: transparent;
	border-color: #fff;
	color: #fff;
	box-shadow: none;
}

.ddtc-root .ddtc-style-modern_overlay .ddtc-person-name{
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.ddtc-root .ddtc-overlay-panel::before {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		transition: none;
	}
}

/* Responsive viewport fallbacks */
@media (max-width: 1023px) {
	.ddtc-root .ddtc-grid{
		--ddtc-gap: 20px;
	}

	.ddtc-root .ddtc-grid.ddtc-cols-3,
.ddtc-root .ddtc-grid.ddtc-cols-4{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ddtc-root .ddtc-grid.ddtc-cols-1,
.ddtc-root .ddtc-grid.ddtc-cols-2,
.ddtc-root .ddtc-grid.ddtc-cols-3,
.ddtc-root .ddtc-grid.ddtc-cols-4{
		grid-template-columns: 1fr;
	}
}

/*
 * Horizontal needs more card width (fixed media + text). Step columns down
 * earlier than other styles so names/CTAs stay readable.
 */
@media (max-width: 1199px) {
	.ddtc-root .ddtc-style-horizontal.ddtc-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 799px) {
	.ddtc-root .ddtc-style-horizontal.ddtc-cols-2,
	.ddtc-root .ddtc-style-horizontal.ddtc-cols-3 {
		grid-template-columns: 1fr;
	}
}

/* Container-aware: shrink columns in narrow parents */
@container ddtc (max-width: 720px) {
	.ddtc-root .ddtc-grid.ddtc-cols-3,
.ddtc-root .ddtc-grid.ddtc-cols-4{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container ddtc (max-width: 520px) {
	.ddtc-root .ddtc-grid.ddtc-cols-1,
.ddtc-root .ddtc-grid.ddtc-cols-2,
.ddtc-root .ddtc-grid.ddtc-cols-3,
.ddtc-root .ddtc-grid.ddtc-cols-4{
		grid-template-columns: 1fr;
	}
}

/* Horizontal container steps (admin preview / narrow parents) */
@container ddtc (max-width: 1100px) {
	.ddtc-root .ddtc-style-horizontal.ddtc-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container ddtc (max-width: 760px) {
	.ddtc-root .ddtc-style-horizontal.ddtc-cols-2,
	.ddtc-root .ddtc-style-horizontal.ddtc-cols-3 {
		grid-template-columns: 1fr;
	}
}

/* Show extra elements on hover — resting state matches identity-only cards */
.ddtc-root .ddtc-hover-extras .ddtc-card-identity .ddtc-person-name,
.ddtc-root .ddtc-hover-extras .ddtc-card-identity .ddtc-person-title {
	margin-bottom: 0;
}

.ddtc-root .ddtc-hover-extras .ddtc-card-identity .ddtc-person-name:not(:last-child) {
	margin-bottom: 4px;
}

/* Reserve title line so names align across the row when some titles are empty */
.ddtc-root .ddtc-hover-extras .ddtc-card-identity .ddtc-person-title,
.ddtc-root .ddtc-hover-extras .ddtc-card-identity .ddtc-person-title-empty {
	min-height: 1.35em;
}

.ddtc-root .ddtc-hover-extras .ddtc-card-identity .ddtc-person-title-empty {
	visibility: hidden;
}

.ddtc-root .ddtc-hover-extras .ddtc-card-extras {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
	transition:
		grid-template-rows 0.35s ease,
		opacity 0.35s ease;
}

.ddtc-root .ddtc-hover-extras .ddtc-card-extras-inner {
	min-height: 0;
	overflow: hidden;
	transform: translateY(12px);
	padding-top: 0;
	transition:
		transform 0.35s ease,
		padding-top 0.35s ease;
}

.ddtc-root .ddtc-hover-extras .ddtc-card:hover .ddtc-card-extras,
.ddtc-root .ddtc-hover-extras .ddtc-card:focus-within .ddtc-card-extras {
	grid-template-rows: 1fr;
	opacity: 1;
	pointer-events: auto;
}

.ddtc-root .ddtc-hover-extras .ddtc-card:hover .ddtc-card-extras-inner,
.ddtc-root .ddtc-hover-extras .ddtc-card:focus-within .ddtc-card-extras-inner {
	transform: translateY(0);
	padding-top: var(--ddtc-stack);
}

/*
 * Classic / Modern: ghost identity sizes the in-flow body; panel is absolute
 * to the body bottom. Extras expand the panel upward over the photo on the
 * same path (no position toggle, no magic ::after spacer).
 */
.ddtc-root .ddtc-hover-extras.ddtc-style-classic .ddtc-card-classic,
.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-modern {
	position: relative;
	overflow: hidden;
}

.ddtc-root .ddtc-hover-extras.ddtc-style-classic .ddtc-card-media,
.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-media {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: var(--ddtc-image-ratio, 3 / 4);
	position: relative;
	z-index: 0;
}

/* Classic: panel padding = card inset; ghost matches so rest height is exact */
.ddtc-root .ddtc-hover-extras.ddtc-style-classic .ddtc-card-body {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	padding: 0;
	background: transparent;
	overflow: visible;
}

.ddtc-root .ddtc-hover-extras.ddtc-style-classic .ddtc-card-body-ghost {
	display: block;
	visibility: hidden;
	pointer-events: none;
	padding: var(--ddtc-inset);
}

.ddtc-root .ddtc-hover-extras.ddtc-style-classic .ddtc-card-body-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: var(--ddtc-inset);
	background: #fff;
}

/*
 * Modern: ghost identity sizes the body; white panel is absolute to the body
 * bottom and grows upward over the photo (same path as Classic). Media keeps
 * --ddtc-modern-radius on all four corners; content panel has no radius chrome.
 */
.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-modern {
	gap: var(--ddtc-modern-space);
	padding: var(--ddtc-modern-space);
}

.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-media {
	border-radius: var(--ddtc-modern-radius);
	overflow: hidden;
}

.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-body {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	padding: 0;
	background: transparent;
	overflow: visible;
}

.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-body-ghost {
	display: block;
	visibility: hidden;
	pointer-events: none;
	/* Match panel padding so resting panel height === ghost height */
	padding: var(--ddtc-modern-space) var(--ddtc-modern-text-inline);
}

.ddtc-root .ddtc-hover-extras.ddtc-style-modern .ddtc-card-body-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: var(--ddtc-modern-space) var(--ddtc-modern-text-inline);
	background: #fff;
	border-radius: 0;
}

/* Horizontal: keep image|content columns; extras animate in the body only */
.ddtc-root .ddtc-hover-extras.ddtc-style-horizontal .ddtc-card-body {
	justify-content: center;
}

/* Overlay: panel (+ scrim) sits on the bottom edge and grows as extras slide up */
.ddtc-root .ddtc-hover-extras.ddtc-style-overlay .ddtc-overlay-content,
.ddtc-root .ddtc-hover-extras.ddtc-style-modern_overlay .ddtc-overlay-content {
	justify-content: flex-end;
}

.ddtc-root .ddtc-hover-extras.ddtc-style-overlay .ddtc-overlay-panel,
.ddtc-root .ddtc-hover-extras.ddtc-style-modern_overlay .ddtc-overlay-panel {
	transition: none; /* height is intrinsic; ::before tracks via calc(100% + …) */
}

@media (hover: none) {
	.ddtc-root .ddtc-hover-extras .ddtc-card-extras {
		grid-template-rows: 1fr;
		opacity: 1;
		pointer-events: auto;
	}

	.ddtc-root .ddtc-hover-extras .ddtc-card-extras-inner {
		transform: none;
		padding-top: var(--ddtc-stack);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ddtc-root .ddtc-hover-extras .ddtc-card-extras,
	.ddtc-root .ddtc-hover-extras .ddtc-card-extras-inner {
		transition: none;
	}
}

/* Show more → bio modal */
.ddtc-root .ddtc-show-more {
	display: inline-flex;
	align-items: center;
	margin: 0 0 var(--ddtc-stack);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ddtc-accent, #2563eb);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
}

.ddtc-root .ddtc-person-description + .ddtc-show-more {
	margin-top: -4px;
}

.ddtc-root .ddtc-show-more:hover .ddtc-show-more-text,
.ddtc-root .ddtc-show-more:focus .ddtc-show-more-text {
	text-decoration: underline;
}

.ddtc-root .ddtc-show-more:focus {
	outline: 2px solid var(--ddtc-accent, #2563eb);
	outline-offset: 2px;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-dark .ddtc-show-more,
.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-dark .ddtc-show-more {
	color: #fff;
}

.ddtc-root .ddtc-style-overlay.ddtc-overlay-light .ddtc-show-more,
.ddtc-root .ddtc-style-modern_overlay.ddtc-overlay-light .ddtc-show-more {
	color: var(--ddtc-accent, #2563eb);
}

.ddtc-root .ddtc-bio-source[hidden] {
	display: none !important;
}

.ddtc-bio-modal[hidden] {
	display: none !important;
}

body.ddtc-bio-modal-open {
	overflow: hidden;
}

.ddtc-bio-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.ddtc-bio-modal *,
.ddtc-bio-modal *::before,
.ddtc-bio-modal *::after {
	box-sizing: border-box;
}

.ddtc-bio-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.ddtc-bio-modal-dialog {
	--ddtc-bio-media-w: 40%;
	--ddtc-bio-media-ratio: 0.75;
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: var(--ddtc-bio-media-w) minmax(0, 1fr);
	width: min(960px, calc(100vw - 48px));
	max-width: min(960px, calc(100vw - 48px));
	height: min(680px, calc(100vh - 48px));
	height: min(680px, calc(100dvh - 48px));
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.ddtc-bio-modal-media {
	position: relative;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background-color: #e5e7eb;
	background-image: url("../../assets/person-placeholder.svg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.ddtc-bio-modal-media.has-image {
	background-color: #111827;
	background-image: none;
}

.ddtc-bio-modal-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ddtc-bio-modal-media:not(.has-image) img {
	display: none;
}

.ddtc-bio-modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 28px 32px 24px;
	background: #fff;
}

.ddtc-bio-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #9ca3af;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ddtc-bio-modal-close:hover,
.ddtc-bio-modal-close:focus {
	color: #374151;
	background: #f3f4f6;
	outline: none;
}

.ddtc-bio-modal-close:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.ddtc-bio-modal-header {
	padding-right: 36px;
	margin-bottom: 16px;
	flex: 0 0 auto;
}

.ddtc-bio-modal-name {
	margin: 0 0 4px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.ddtc-bio-modal-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	color: #6b7280;
}

.ddtc-bio-modal-title[hidden] {
	display: none !important;
}

.ddtc-bio-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	margin: 0;
	padding-right: 4px;
	font-size: 0.98rem;
	line-height: 1.7;
	color: #374151;
	-webkit-overflow-scrolling: touch;
}

.ddtc-bio-modal-body p {
	margin: 0 0 1em;
}

.ddtc-bio-modal-body p:last-child {
	margin-bottom: 0;
}

.ddtc-bio-modal-social {
	flex: 0 0 auto;
	margin-top: 20px;
	padding-top: 4px;
}

.ddtc-bio-modal-social[hidden] {
	display: none !important;
}

.ddtc-bio-modal-social .ddtc-social {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ddtc-bio-modal-social .ddtc-social-item {
	display: flex !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ddtc-bio-modal-social .ddtc-social-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	color: #6b7280;
	background: #f3f4f6;
	text-decoration: none;
}

.ddtc-bio-modal-social .ddtc-social-link:hover,
.ddtc-bio-modal-social .ddtc-social-link:focus {
	color: #111827;
	background: #e5e7eb;
	outline: none;
}

.ddtc-bio-modal-social .ddtc-social-icon,
.ddtc-bio-modal-social .ddtc-social-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

@media (max-width: 719px) {
	.ddtc-bio-modal {
		padding: 12px;
		align-items: stretch;
	}

	.ddtc-bio-modal-dialog {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		width: 100%;
		max-width: none;
		height: min(680px, calc(100vh - 24px));
		height: min(680px, calc(100dvh - 24px));
	}

	.ddtc-bio-modal-media {
		width: 100%;
		height: auto;
		aspect-ratio: var(--ddtc-bio-media-ratio, 3 / 4);
		max-height: 38vh;
	}

	.ddtc-bio-modal-content {
		padding: 20px 20px 18px;
		overflow: hidden;
	}
}
