/*
 * Staff list (Starfsfólk, and any page whose content has group.ms-people > group.ms-person): a clean
 * three-column list – name, role, phone and e-mail as text links. No cards, no bars, no icons.
 * Enqueued by inc/content-pages.php (maras_content_page_styles()). Tokens only (ARCHITECTURE §5).
 */

/* The list needs the full content width, not the 68ch text column. */
.ms-prose:has(> .ms-people) {
	max-width: none;
}

.ms-people {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 var(--ms-space-6);
	margin: 0 0 1.15em;
}

@media (min-width: 560px) {
	.ms-people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.ms-people {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ms-person {
	margin: 0;
	padding: var(--ms-space-4) 0 var(--ms-space-5);
	border-top: 1px solid var(--ms-color-rule);
}

.ms-person p {
	margin: 0;
}

.ms-person .ms-person__name {
	color: var(--ms-color-ink);
	font-weight: var(--ms-fw-bold);
	line-height: 1.4;
}

.ms-person .ms-person__role {
	margin-bottom: var(--ms-space-2);
	color: var(--ms-color-text-muted);
	font-size: var(--ms-fs-sm);
	line-height: 1.45;
}

.ms-person .ms-person__contact {
	font-size: var(--ms-fs-sm);
	line-height: 1.7;
}

.ms-person .ms-person__contact a {
	display: inline-block;
	padding-block: 1px; /* WCAG 2.5.8: 24px targets */
	overflow-wrap: anywhere;
}
