/* Janmitra Team — [janmitra_team] output (.jm-team > .team-section > .team-grid > .team-card).
   Self-contained: own colours, scoped selectors so it looks the same under any theme. */
.jm-team {
	--jmt-brand: #9b1b1f;
	--jmt-brand-soft: #fbeeee;
	--jmt-ink: #161616;
	--jmt-ink-2: #3d3d3d;
	--jmt-muted: #6b6b6b;
	--jmt-line: #e7e2dc;
	--jmt-bg-soft: #f6f3ef;
	font-size: 16px;
	line-height: 1.6;
}
.team-intro { font-size: 1.125rem; color: #3d3d3d; }
.jm-team .team-section { margin: 32px 0 0; }
.jm-team .team-section h2 {
	font-size: 1.375rem; line-height: 1.3; margin: 0 0 16px; padding: 0 0 6px; border-bottom: 2px solid var(--jmt-ink);
	position: relative; color: var(--jmt-ink); text-transform: none;
}
.jm-team .team-section h2::after {
	content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 4px; background: var(--jmt-brand);
}
.jm-team .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.jm-team .team-card {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; text-align: center;
	padding: 20px 16px; border: 1px solid var(--jmt-line); border-radius: 10px; background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
}
.jm-team .team-card p { margin: 0; padding: 0; }
.jm-team .team-card__img {
	display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
	width: 112px; height: 112px; max-width: none; margin: 0 0 10px; object-fit: cover; border-radius: 50%;
	border: 3px solid var(--jmt-brand-soft);
}
.jm-team .team-card__img--placeholder {
	background: linear-gradient(135deg, var(--jmt-brand-soft), #f3d9d9); color: var(--jmt-brand); font-size: 2.75rem;
	font-weight: 800; line-height: 1;
}
.jm-team .team-card__name { display: block; font-size: 1.1875rem; line-height: 1.4; font-weight: 700; margin: 0; padding: 0; color: var(--jmt-ink); }
.jm-team .team-card__role { color: var(--jmt-brand); font-weight: 700; font-size: .9375rem; }
.jm-team .team-card__bio { display: block; color: var(--jmt-ink-2); font-size: .9375rem; }
.jm-team .team-card__contact { color: var(--jmt-muted); font-size: .875rem; overflow-wrap: anywhere; margin-top: 4px; }
.jm-team .team-card__contact a { color: var(--jmt-muted); text-decoration: none; }
.jm-team .team-card__contact a:hover { color: var(--jmt-brand); }
.jm-team .team-card__social { display: flex; gap: 4px; margin-top: 4px; }
.jm-team .team-card__social-link {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
}
.jm-team .team-card__social-link svg { fill: var(--jmt-muted); }
.jm-team .team-card__social-link:hover svg { fill: var(--jmt-brand); }
.jm-team .team-card__edit {
	position: absolute; top: 8px; right: 8px; font-size: .75rem; font-weight: 700; padding: 2px 8px;
	border: 1px solid var(--jmt-line); border-radius: 999px; color: var(--jmt-muted); text-decoration: none;
}
.jm-team a.team-card--add {
	justify-content: center; border: 2px dashed var(--jmt-line); box-shadow: none; background: var(--jmt-bg-soft);
	color: var(--jmt-muted); text-decoration: none;
}
.jm-team a.team-card--add:hover { border-color: var(--jmt-brand); color: var(--jmt-brand); }
.jm-team .team-card--add .team-card__img--placeholder { background: #fff; border-style: dashed; border-color: var(--jmt-line); }
.team-cta {
	margin-top: 32px; padding: 16px 18px; background: #f6f3ef; border-left: 4px solid #9b1b1f; border-radius: 0 6px 6px 0;
}
@media (max-width: 599px) {
	.jm-team .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.jm-team .team-card { padding: 14px 10px; }
	.jm-team .team-card__img { width: 84px; height: 84px; }
	.jm-team .team-card__img--placeholder { font-size: 2rem; }
	.jm-team .team-card__name { font-size: 1.0625rem; }
}
