/* ==========================================================================
   District Leaders Manager - front-end styles
   Self-contained design system for the directory, profile pages, org chart
   and search widget. Scoped entirely under .dlm-* classes so it never
   bleeds into the rest of the theme.
   ========================================================================== */

:root {
	--dlm-accent: #4f46e5;
	--dlm-accent-dark: #4338ca;
	--dlm-accent-tint: #eef2ff;
	--dlm-text: #111827;
	--dlm-text-muted: #6b7280;
	--dlm-text-faint: #9ca3af;
	--dlm-border: #e5e7eb;
	--dlm-card-bg: #ffffff;
	--dlm-page-tint: #f9fafb;
	--dlm-radius-lg: 16px;
	--dlm-radius-md: 10px;
	--dlm-radius-full: 999px;
	--dlm-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
	--dlm-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
	--dlm-shadow-lg: 0 16px 32px -8px rgba(16, 24, 40, 0.18);

	/* Overridable from Settings → Display & Archive (see DLM print_custom_css()). */
	--dlm-team-border: #b23a48;
	--dlm-division-hero-bg: #123c54;
	--dlm-division-hero-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
	:root {
		--dlm-accent: #818cf8;
		--dlm-accent-dark: #6366f1;
		--dlm-accent-tint: rgba(129, 140, 248, 0.14);
		--dlm-text: #f3f4f6;
		--dlm-text-muted: #b3b8c2;
		--dlm-text-faint: #8b909c;
		--dlm-border: #2d3138;
		--dlm-card-bg: #1a1c22;
		--dlm-page-tint: #131418;
		--dlm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
		--dlm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
		--dlm-shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
	}
}

/* Fallback in case the active theme doesn't already define WordPress's standard
   visually-hidden utility class (most themes do). */
.dlm-single-leader .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.dlm-leaders-archive,
.dlm-single-leader,
.dlm-leader-search,
.dlm-leaders-grid--shortcode,
.dlm-org-chart {
	--local-accent: var(--dlm-accent);
}

/* --------------------------------------------------------------------
   Shared building blocks: buttons, pills, inputs
   -------------------------------------------------------------------- */

.dlm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	background: var(--dlm-accent);
	color: #fff;
	border: none;
	border-radius: var(--dlm-radius-full);
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dlm-button:hover,
.dlm-button:focus-visible {
	background: var(--dlm-accent-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--dlm-shadow-md);
}

.dlm-button--outline {
	background: transparent;
	color: var(--dlm-accent);
	border: 1.5px solid var(--dlm-accent);
}

.dlm-button--outline:hover,
.dlm-button--outline:focus-visible {
	background: var(--dlm-accent);
	color: #fff;
}

.dlm-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border-radius: var(--dlm-radius-full);
	background: var(--dlm-accent-tint);
	color: var(--dlm-accent-dark);
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.dlm-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: var(--dlm-radius-full);
	background: var(--dlm-page-tint);
	border: 1px solid var(--dlm-border);
	color: var(--dlm-text-muted);
	font-size: 0.82em;
}

/* --------------------------------------------------------------------
   Archive header
   -------------------------------------------------------------------- */

.dlm-leaders-archive {
	color: var(--dlm-text);
}

.dlm-leaders-archive__header {
	text-align: center;
	margin: 8px 0 28px;
}

.dlm-leaders-archive__header h1 {
	margin: 0 0 8px;
}

.dlm-leaders-archive__subtitle {
	color: var(--dlm-text-muted);
	font-size: 0.95em;
	margin: 0;
}

/* --------------------------------------------------------------------
   Filters bar
   -------------------------------------------------------------------- */

.dlm-leaders-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	background: var(--dlm-card-bg);
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-lg);
	box-shadow: var(--dlm-shadow-sm);
	padding: 16px;
	margin: 0 0 32px;
}

.dlm-leaders-filters__search-wrap {
	position: relative;
	flex: 1 1 260px;
}

.dlm-leaders-filters__search-wrap::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	width: 15px;
	height: 15px;
	transform: translateY(-50%);
	background: var(--dlm-text-faint);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M11 19a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M11 19a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

.dlm-leaders-filters__search {
	width: 100%;
	padding: 10px 14px 10px 40px;
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-full);
	background: var(--dlm-page-tint);
	color: var(--dlm-text);
	font-size: 0.95em;
}

.dlm-leaders-filters select,
.dlm-leaders-filters__search {
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dlm-leaders-filters select:focus,
.dlm-leaders-filters__search:focus {
	border-color: var(--dlm-accent);
	box-shadow: 0 0 0 3px var(--dlm-accent-tint);
}

.dlm-leaders-filters select {
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 34px 10px 16px;
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-full);
	background-color: var(--dlm-page-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
	color: var(--dlm-text);
	font-size: 0.9em;
	max-width: 100%;
}

.dlm-leaders-filters__reset {
	color: var(--dlm-text-muted);
	font-size: 0.88em;
	text-decoration: none;
	padding: 6px 4px;
}

.dlm-leaders-filters__reset:hover {
	color: var(--dlm-accent);
	text-decoration: underline;
}

/* --------------------------------------------------------------------
   Leaders grid + card
   -------------------------------------------------------------------- */

.dlm-leaders-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	margin: 24px 0;
	align-items: stretch;
}

/* Desktop column count - set via the "Card Columns per Row" Display setting. */
.dlm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dlm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dlm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dlm-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dlm-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.dlm-leaders-grid[class*="dlm-cols-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.dlm-leaders-grid[class*="dlm-cols-"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

.dlm-leader-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-lg);
	background: var(--dlm-card-bg);
	text-align: center;
	padding: 28px 20px 24px;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dlm-leader-card:hover {
	box-shadow: var(--dlm-shadow-lg);
	transform: translateY(-4px);
	border-color: transparent;
}

.dlm-leader-card__photo-link {
	display: block;
	margin-bottom: 16px;
}

.dlm-leader-card__photo {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: var(--dlm-page-tint);
	box-shadow: 0 0 0 4px var(--dlm-card-bg), 0 0 0 5px var(--dlm-border);
}

.dlm-leader-card__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4em;
	font-weight: 700;
	color: var(--dlm-accent-dark);
	background: linear-gradient(145deg, var(--dlm-accent-tint), var(--dlm-border));
}

.dlm-leader-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	width: 100%;
}

.dlm-leader-card__name {
	margin: 0 0 6px;
	font-size: 1.08em;
	font-weight: 700;
	line-height: 1.3;
}

.dlm-leader-card__name a {
	color: var(--dlm-text);
	text-decoration: none;
}

.dlm-leader-card__name a:hover {
	color: var(--dlm-accent);
}

.dlm-leader-card__position {
	margin: 0 0 10px;
}

.dlm-leader-card__meta {
	margin: 0 0 16px;
	color: var(--dlm-text-muted);
	font-size: 0.85em;
	line-height: 1.5;
}

.dlm-leader-card__readmore {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 18px;
	border-radius: var(--dlm-radius-full);
	border: 1.5px solid var(--dlm-border);
	color: var(--dlm-text);
	font-size: 0.82em;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dlm-leader-card__readmore:hover {
	background: var(--dlm-accent);
	border-color: var(--dlm-accent);
	color: #fff;
}

.dlm-no-leaders {
	text-align: center;
	color: var(--dlm-text-muted);
	padding: 48px 20px;
	border: 1px dashed var(--dlm-border);
	border-radius: var(--dlm-radius-lg);
}

.dlm-leaders-archive__pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.dlm-leaders-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0 3px;
	padding: 0 8px;
	border-radius: var(--dlm-radius-full);
	border: 1px solid var(--dlm-border);
	color: var(--dlm-text);
	text-decoration: none;
	font-size: 0.9em;
}

.dlm-leaders-archive__pagination .page-numbers.current {
	background: var(--dlm-accent);
	border-color: var(--dlm-accent);
	color: #fff;
}

.dlm-leaders-archive__pagination .page-numbers:hover:not(.current) {
	border-color: var(--dlm-accent);
	color: var(--dlm-accent);
}

/* --------------------------------------------------------------------
   Single leader profile
   -------------------------------------------------------------------- */

.dlm-leader-profile {
	max-width: 900px;
	margin: 0 auto;
	color: var(--dlm-text);
}

.dlm-leader-profile__hero {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	align-items: center;
	background: var(--dlm-card-bg);
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-lg);
	box-shadow: var(--dlm-shadow-sm);
	padding: 32px;
	margin-bottom: 32px;
}

.dlm-leader-profile__photo {
	flex: 0 0 auto;
}

.dlm-leader-profile__photo-img {
	width: 176px;
	height: 176px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	box-shadow: 0 0 0 6px var(--dlm-accent-tint);
}

.dlm-leader-profile__photo-img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.4em;
	font-weight: 700;
	color: var(--dlm-accent-dark);
	background: linear-gradient(145deg, var(--dlm-accent-tint), var(--dlm-border));
}

.dlm-leader-profile__headline {
	flex: 1 1 320px;
	min-width: 0;
}

.dlm-leader-profile__name {
	margin: 0 0 6px;
	font-size: 1.9em;
	line-height: 1.2;
}

.dlm-leader-profile__position {
	margin: 0 0 16px;
	font-size: 1.05em;
	font-weight: 600;
	color: var(--dlm-accent);
}

.dlm-leader-profile__taxa {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dlm-leader-profile__taxa li {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: var(--dlm-radius-full);
	background: var(--dlm-page-tint);
	border: 1px solid var(--dlm-border);
	color: var(--dlm-text-muted);
	font-size: 0.82em;
}

.dlm-leader-profile__taxa li strong {
	color: var(--dlm-text);
	margin-right: 4px;
	font-weight: 600;
}

.dlm-leader-profile__contact-info {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.dlm-leader-profile__contact-info a {
	color: var(--dlm-text-muted);
	text-decoration: none;
	font-size: 0.92em;
}

.dlm-leader-profile__contact-info a:hover {
	color: var(--dlm-accent);
}

.dlm-leader-profile__social {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dlm-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--dlm-page-tint);
	border: 1px solid var(--dlm-border);
	color: var(--dlm-text-muted);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dlm-social svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.dlm-social:hover {
	background: var(--dlm-accent);
	border-color: var(--dlm-accent);
	color: #fff;
	transform: translateY(-2px);
}

.dlm-leader-profile__contact-btn {
	margin-top: 4px;
}

.dlm-leader-profile__biography,
.dlm-leader-profile__previous-roles {
	background: var(--dlm-card-bg);
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-lg);
	box-shadow: var(--dlm-shadow-sm);
	padding: 28px 32px;
	margin-top: 24px;
}

.dlm-leader-profile__biography h2,
.dlm-leader-profile__previous-roles h2 {
	margin: 0 0 16px;
	font-size: 1.2em;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--dlm-accent-tint);
}

.dlm-leader-profile__biography-content {
	color: var(--dlm-text);
	line-height: 1.75;
	max-width: 68ch;
}

.dlm-leader-profile__biography-content > *:last-child {
	margin-bottom: 0;
}

.dlm-leader-profile__previous-roles ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dlm-leader-profile__previous-roles li {
	position: relative;
	padding: 0 0 20px 24px;
	border-left: 2px solid var(--dlm-border);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.dlm-leader-profile__previous-roles li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--dlm-card-bg);
	border: 2.5px solid var(--dlm-accent);
}

.dlm-leader-profile__previous-roles li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.dlm-role-title {
	font-weight: 600;
	color: var(--dlm-text);
}

.dlm-role-years {
	color: var(--dlm-text-muted);
	font-size: 0.88em;
	white-space: nowrap;
}

.dlm-leader-profile__back {
	margin-top: 32px;
}

.dlm-leader-profile__back a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dlm-text-muted);
	text-decoration: none;
	font-size: 0.92em;
	font-weight: 600;
}

.dlm-leader-profile__back a:hover {
	color: var(--dlm-accent);
}

/* --------------------------------------------------------------------
   Org chart
   -------------------------------------------------------------------- */

.dlm-org-chart {
	text-align: center;
	padding: 24px 0;
	overflow-x: auto;
}

.dlm-org-chart__node,
.dlm-org-chart__node--root {
	display: inline-block;
	background: var(--dlm-card-bg);
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-full);
	box-shadow: var(--dlm-shadow-sm);
	padding: 9px 20px;
	margin: 6px;
	font-size: 0.92em;
}

.dlm-org-chart__node a,
.dlm-org-chart__node--root a {
	color: var(--dlm-text);
	text-decoration: none;
}

.dlm-org-chart__node:hover,
.dlm-org-chart__node--root:hover {
	border-color: var(--dlm-accent);
	box-shadow: var(--dlm-shadow-md);
}

.dlm-org-chart__node--root {
	background: var(--dlm-accent);
	border-color: var(--dlm-accent);
	font-weight: 700;
	padding: 12px 28px;
}

.dlm-org-chart__node--root a {
	color: #fff;
}

.dlm-org-chart__branch {
	list-style: none;
	margin: 0 0 0;
	padding: 24px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 12px;
	position: relative;
}

.dlm-org-chart__branch::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 24px;
	background: var(--dlm-border);
	transform: translateX(-50%);
}

.dlm-org-chart__division,
.dlm-org-chart__area {
	background: var(--dlm-page-tint);
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-lg);
	padding: 16px;
}

.dlm-org-chart__division-label,
.dlm-org-chart__area-label {
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--dlm-text);
}

/* --------------------------------------------------------------------
   [leader_search] shortcode
   -------------------------------------------------------------------- */

.dlm-leader-search {
	max-width: 720px;
}

.dlm-leader-search__input {
	width: 100%;
	padding: 12px 18px;
	border: 1px solid var(--dlm-border);
	border-radius: var(--dlm-radius-full);
	background: var(--dlm-page-tint);
	color: var(--dlm-text);
	font-size: 1em;
	margin-bottom: 20px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dlm-leader-search__input:focus {
	border-color: var(--dlm-accent);
	box-shadow: 0 0 0 3px var(--dlm-accent-tint);
}

.dlm-leader-search__empty {
	color: var(--dlm-text-muted);
	text-align: center;
	padding: 24px;
}

/* --------------------------------------------------------------------
   [district_trio] - solid brand-color cards
   -------------------------------------------------------------------- */

.dlm-trio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.dlm-trio-card {
	background: var(--dlm-trio-bg, var(--dlm-accent));
	color: var(--dlm-trio-text, #fff);
	border-radius: var(--dlm-radius-lg);
	padding: 32px 28px;
	text-align: center;
	box-shadow: var(--dlm-shadow-md);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dlm-trio-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--dlm-shadow-lg);
}

.dlm-trio-card__photo-link {
	display: inline-block;
	margin-bottom: 18px;
}

.dlm-trio-card__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.dlm-trio-card__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.2em;
	font-weight: 700;
	color: var(--dlm-trio-text, #fff);
	background: rgba(255, 255, 255, 0.18);
}

.dlm-trio-card__name {
	margin: 0 0 6px;
	font-size: 1.25em;
	font-weight: 800;
}

.dlm-trio-card__name a {
	color: inherit;
	text-decoration: none;
}

.dlm-trio-card__position {
	margin: 0 0 14px;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
}

.dlm-trio-card__tagline {
	margin: 0 0 20px;
	font-size: 0.92em;
	line-height: 1.5;
	opacity: 0.92;
}

.dlm-trio-card__readmore {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
	font-size: 0.88em;
	font-weight: 700;
	opacity: 0.95;
}

.dlm-trio-card__readmore:hover {
	opacity: 1;
	text-decoration: underline;
}

/* --------------------------------------------------------------------
   [district_leadership_team] / Area Director sub-cards - horizontal cards
   -------------------------------------------------------------------- */

.dlm-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.dlm-team-card {
	background: var(--dlm-card-bg);
	border: 1.5px solid var(--dlm-team-border);
	border-radius: var(--dlm-radius-lg);
	padding: 20px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dlm-team-card:hover {
	box-shadow: var(--dlm-shadow-md);
	transform: translateY(-2px);
}

.dlm-team-card__top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.dlm-team-card__photo-link {
	flex: 0 0 auto;
}

.dlm-team-card__photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: var(--dlm-page-tint);
}

.dlm-team-card__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3em;
	font-weight: 700;
	color: var(--dlm-accent-dark);
	background: var(--dlm-accent-tint);
}

.dlm-team-card__heading {
	min-width: 0;
}

.dlm-team-card__name {
	margin: 0;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.3;
}

.dlm-team-card__name a {
	color: var(--dlm-text);
	text-decoration: none;
}

.dlm-team-card__position {
	margin: 2px 0 0;
	font-size: 0.82em;
	font-weight: 700;
	color: var(--dlm-team-border);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.dlm-team-card__region {
	margin: 2px 0 0;
	font-size: 0.82em;
	color: var(--dlm-text-muted);
}

.dlm-team-card__excerpt {
	margin: 0 0 16px;
	color: var(--dlm-text-muted);
	font-size: 0.88em;
	line-height: 1.6;
	flex: 1;
}

.dlm-team-card__readmore {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	color: var(--dlm-team-border);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9em;
}

.dlm-team-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dlm-team-border);
	color: #fff;
	font-size: 0.85em;
	transition: transform 0.15s ease;
}

.dlm-team-card:hover .dlm-team-card__arrow {
	transform: translateX(3px);
}

/* Division Director "hero" variant: larger, solid dark card, white text. */
.dlm-team-card--hero {
	background: var(--dlm-division-hero-bg);
	border-color: var(--dlm-division-hero-bg);
	color: var(--dlm-division-hero-text);
	padding: 24px;
	margin-bottom: 16px;
}

.dlm-team-card--hero .dlm-team-card__name a,
.dlm-team-card--hero .dlm-team-card__position,
.dlm-team-card--hero .dlm-team-card__region,
.dlm-team-card--hero .dlm-team-card__excerpt,
.dlm-team-card--hero .dlm-team-card__readmore {
	color: var(--dlm-division-hero-text);
}

.dlm-team-card--hero .dlm-team-card__photo {
	width: 68px;
	height: 68px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.dlm-team-card--hero .dlm-team-card__arrow {
	background: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------
   [division_area_directors] - one block per Division
   -------------------------------------------------------------------- */

.dlm-division-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 24px;
	margin: 24px 0;
	align-items: start;
}

.dlm-division-block {
	background: var(--dlm-card-bg);
	border: 1.5px solid var(--dlm-team-border);
	border-radius: var(--dlm-radius-lg);
	padding: 24px;
}

.dlm-division-block__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.dlm-division-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--dlm-division-hero-bg);
	color: var(--dlm-division-hero-text);
	font-weight: 800;
	font-size: 0.95em;
	flex: 0 0 auto;
}

.dlm-division-block__header h3 {
	margin: 0;
	font-size: 1.2em;
}

.dlm-division-block__areas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.dlm-division-block__areas .dlm-team-card {
	padding: 16px;
}

@media (max-width: 640px) {
	.dlm-division-grid {
		grid-template-columns: 1fr;
	}
}
