/* Django Team — front-end grids. Scoped under .django-team-grid so it won't
   leak into the rest of the theme. Colors are hard-coded to match the
   Django Digital brand so this renders consistently in any WordPress theme. */

.django-team-count {
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 13px;
	color: #b8b3a8;
	margin: 0 0 22px;
}

.django-team-grid {
	display: grid;
	gap: 16px;
	box-sizing: border-box;
}
.django-team-grid * {
	box-sizing: border-box;
}

/* Homepage strip: compact tiles in a row */
.django-team-grid--homepage {
	grid-auto-flow: column;
	grid-template-rows: repeat(2, auto);
	grid-auto-columns: 220px;
	overflow-x: auto;
	padding-bottom: 8px;
}

/* Full roster (Agency page): responsive wrapping grid */
.django-team-grid--full {
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.django-team-card {
	background: #1b1a18;
	border: 1px solid rgba(238, 234, 225, 0.14);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: background 0.35s ease, transform 0.35s ease;
}
.django-team-grid--homepage .django-team-card {
	background: none;
	border: none;
	padding: 0;
}
.django-team-card:hover {
	transform: translateY(-3px);
	background: #221f1c;
}
.django-team-card.is-founder {
	border-color: #ff5a1f;
}

.django-team-avatar {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 50%;
	flex-shrink: 0;
}
.django-team-grid--homepage .django-team-avatar {
	border-radius: 2px;
	aspect-ratio: 3 / 3.4;
}
.django-team-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.django-team-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 500;
	font-size: 22px;
	color: rgba(0, 0, 0, 0.55);
}
.django-team-grid--homepage .django-team-fallback {
	font-size: 40px;
}

.django-team-name {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	font-size: 14.5px;
	color: #eeeae1;
}
.django-team-position {
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 12.5px;
	color: #b8b3a8;
}
.django-team-badge {
	display: inline-block;
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ff5a1f;
	width: fit-content;
}

@media (max-width: 600px) {
	.django-team-grid--full {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 12px;
	}
	.django-team-grid--homepage {
		grid-auto-columns: 160px;
	}
}
