/* Agent Roster – front-end styles. Deliberately minimal and theme-friendly:
   inherits the theme's fonts and colors, only supplies layout + card chrome. */

.agentroster {
	display: grid;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.agentroster-grid.agentroster-cols-1 { grid-template-columns: 1fr; }
.agentroster-grid.agentroster-cols-2 { grid-template-columns: repeat(2, 1fr); }
.agentroster-grid.agentroster-cols-3 { grid-template-columns: repeat(3, 1fr); }
.agentroster-grid.agentroster-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.agentroster-grid.agentroster-cols-3,
	.agentroster-grid.agentroster-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.agentroster-grid.agentroster-cols-2,
	.agentroster-grid.agentroster-cols-3,
	.agentroster-grid.agentroster-cols-4 { grid-template-columns: 1fr; }
}

.agentroster-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.5rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.015);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.agentroster-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.agentroster-card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.agentroster-photo-wrap {
	display: block;
	width: 120px;
	height: 120px;
	margin-bottom: 0.9rem;
}

.agentroster-photo {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.agentroster-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	font-weight: 700;
	background: rgba(0, 0, 0, 0.07);
	color: inherit;
}

.agentroster-name {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
}

.agentroster-position {
	display: block;
	font-size: 0.85rem;
	opacity: 0.75;
	margin-top: 0.15rem;
}

.agentroster-contact {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: 0.7rem;
	font-size: 0.85rem;
	word-break: break-word;
}

/* List layout */
.agentroster-list { grid-template-columns: 1fr; }

.agentroster-list .agentroster-card,
.agentroster-list .agentroster-card-link {
	flex-direction: row;
	text-align: left;
	align-items: center;
	gap: 1.25rem;
}

.agentroster-list .agentroster-photo-wrap,
.agentroster-list .agentroster-photo {
	width: 72px;
	height: 72px;
	margin-bottom: 0;
	flex-shrink: 0;
}

.agentroster-list .agentroster-initial { font-size: 1.6rem; }

.agentroster-list .agentroster-contact {
	margin-top: 0;
	margin-left: auto;
	text-align: right;
}

@media (max-width: 560px) {
	.agentroster-list .agentroster-card { flex-wrap: wrap; }
	.agentroster-list .agentroster-contact {
		margin-left: 0;
		text-align: left;
		width: 100%;
	}
}

/* Single profile card */
.agentroster-profile-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.agentroster-detail-label {
	font-weight: 700;
	margin-right: 0.35rem;
}

.agentroster-socials { display: flex; gap: 1rem; }

/* Credit (opt-in) */
.agentroster-credit {
	font-size: 0.75rem;
	opacity: 0.6;
	text-align: center;
	margin-top: 0.25rem;
}
