@charset "UTF-8";
/**
 * GenieBuilder — Agent Card + Directory.
 * Token-driven. Single card + responsive grid.
 */

.mlsg-gb-agents {
	--mlsg-gb-agent-avatar: 96px;
	width: 100%;
}

.mlsg-gb-agents--grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mlsg-gb-agents-gap, 1.5rem);
}

/* Each agent an exact share of the row, less the space between. */
.mlsg-gb-agents--grid > * {
	flex: 0 0 calc((100% - (var(--mlsg-gb-agents-cols, 3) - 1) * var(--mlsg-gb-agents-gap, 1.5rem)) / var(--mlsg-gb-agents-cols, 3));
	min-width: 0;
	box-sizing: border-box;
}

.mlsg-gb-agent {
	display: flex;
	gap: var(--mlsg-gb-space-md);
	padding: var(--mlsg-gb-space-md);
	background: var(--mlsg-gb-color-surface);
	border: 1px solid var(--mlsg-gb-color-border);
	border-radius: var(--mlsg-gb-radius-card);
}

.mlsg-gb-agents--grid .mlsg-gb-agent {
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
}

.mlsg-gb-agent__avatar {
	flex: 0 0 auto;
	display: block;
	width: var(--mlsg-gb-agent-avatar);
	height: var(--mlsg-gb-agent-avatar);
	border-radius: 50%;
	overflow: hidden;
	background: var(--mlsg-gb-color-placeholder);
}

.mlsg-gb-agent__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mlsg-gb-agent__body {
	display: flex;
	flex-direction: column;
	gap: var(--mlsg-gb-space-xs);
	min-width: 0;
}

.mlsg-gb-agent__name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--mlsg-gb-color-text);
	text-decoration: none;
}

.mlsg-gb-agent__name:hover {
	color: var(--mlsg-gb-color-primary);
}

.mlsg-gb-agent__title {
	font-size: var(--mlsg-gb-font-badge);
	color: var(--mlsg-gb-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mlsg-gb-agent__bio {
	margin: 0;
	font-size: var(--mlsg-gb-font-meta);
	line-height: 1.5;
	color: var(--mlsg-gb-color-muted);
}

.mlsg-gb-agent__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mlsg-gb-space-md);
	margin-top: var(--mlsg-gb-space-xs);
}

.mlsg-gb-agents--grid .mlsg-gb-agent__contacts {
	justify-content: center;
}

.mlsg-gb-agent__contact {
	display: inline-flex;
	align-items: center;
	gap: var(--mlsg-gb-space-xs);
	font-size: var(--mlsg-gb-font-meta);
	color: var(--mlsg-gb-color-primary);
	text-decoration: none;
}

.mlsg-gb-agent__contact:hover {
	text-decoration: underline;
}

.mlsg-gb-agent__notice {
	padding: var(--mlsg-gb-space-lg);
	color: var(--mlsg-gb-color-muted);
	font-size: var(--mlsg-gb-font-meta);
	text-align: center;
}

/* ── Agent Profile: the top of an agent's or office's own page ───────── */

.mlsg-gb-team {
	--mlsg-gb-team-photo: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--mlsg-gb-space-md);
	color: var(--mlsg-gb-color-text);
}

.mlsg-gb-team--side {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	--mlsg-gb-team-photo: 15rem;
}

/* Name above the photo: the body's name and position come first. */
.mlsg-gb-team--stacked {
	flex-direction: column-reverse;
	justify-content: flex-end;
}

/* In a column a flex basis is a height; the body takes only what it needs. */
.mlsg-gb-team--stacked .mlsg-gb-team__body {
	flex: 0 0 auto;
}

.mlsg-gb-team__photo {
	flex: 0 0 auto;
	width: var(--mlsg-gb-team-photo);
	max-width: 100%;
}

.mlsg-gb-team__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--mlsg-gb-radius-card);
}

.mlsg-gb-team__body {
	flex: 1 1 16rem;
	display: flex;
	flex-direction: column;
	gap: var(--mlsg-gb-space-sm);
	min-width: 0;
}

.mlsg-gb-team__name {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.15;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mlsg-gb-team__name-first {
	font-weight: 300;
}

.mlsg-gb-team__name-last {
	font-weight: 700;
	font-size: 0.75em;
}

.mlsg-gb-team__name > .mlsg-gb-team__name-last:only-child {
	font-size: 1em;
	font-weight: 400;
}

.mlsg-gb-team__position {
	margin: 0;
	font-size: 1.0625rem;
}

.mlsg-gb-team__office {
	color: var(--mlsg-gb-color-primary);
	font-weight: 700;
	text-decoration: none;
}

.mlsg-gb-team__office:hover,
.mlsg-gb-team__office:focus-visible {
	text-decoration: underline;
}

.mlsg-gb-team__details {
	display: flex;
	flex-direction: column;
	gap: var(--mlsg-gb-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}

.mlsg-gb-team__label {
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mlsg-gb-team__detail--address i {
	margin-inline-end: var(--mlsg-gb-space-xs);
}

.mlsg-gb-team__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mlsg-gb-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlsg-gb-team__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--mlsg-gb-color-border);
	border-radius: var(--mlsg-gb-radius-badge);
	color: inherit;
}

.mlsg-gb-team__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mlsg-gb-space-sm);
}

.mlsg-gb-team .mlsg-gb-team__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 8rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--mlsg-gb-color-primary);
	border-radius: var(--mlsg-gb-radius-badge);
	color: var(--mlsg-gb-color-primary);
	font-weight: 600;
	text-decoration: none;
}

.mlsg-gb-team .mlsg-gb-team__button--primary {
	background: var(--mlsg-gb-color-primary);
	color: var(--mlsg-gb-color-on-brand);
}

.mlsg-gb-team__button:focus-visible,
.mlsg-gb-team__social a:focus-visible,
.mlsg-gb-team__office:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.mlsg-gb-team--side {
		flex-direction: column;
	}
	.mlsg-gb-team--side .mlsg-gb-team__photo {
		width: 100%;
	}
}
