/*
 * Who runs this laboratory.
 *
 * Placed by the [iti_lab_heads] shortcode, rendered by
 * wp-content/mu-plugins/iti-lab-heads.php, which emits class names only. The
 * markup is shared with astra-child; everything that makes it look like THIS
 * theme lives here, which is why the same information can look different in
 * each theme without the renderer knowing anything about either.
 *
 * Tokens carry a literal fallback throughout: this block is rendered by an
 * mu-plugin that does not know whether iti-tokens.css loaded, and a credit that
 * falls back to transparent-on-transparent would be worse than one that is
 * merely unstyled.
 */

.iti-labheads {
	margin: 2.75rem 0 0;
	padding: 1.25rem 1.5rem;
	background: var(--iti-paper, #f2f5f8);
	border-left: 4px solid var(--iti-blue, #0071bb);
	border-radius: 0 6px 6px 0;
}

.iti-labheads__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

/*
 * Three stacked lines: the role, the person, the address.
 *
 * Each is a different kind of thing - a label, a name, a way to reach them - and
 * running the name and the address together on one line read as a single run-on
 * string, with no clear place for the eye to stop.
 */
.iti-labhead {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	margin: 0;
}

.iti-labhead__role {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--iti-text-muted, #5c6f7e);
}

.iti-labhead__name {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--iti-ink-700, #0e3553);
	text-decoration: none;
}

.iti-labhead__name:hover,
.iti-labhead__name:focus-visible {
	color: var(--iti-blue, #0071bb);
	text-decoration: underline;
}

.iti-labhead__contact {
	font-size: 0.92rem;
	/* The label and the address stay on one line together; only the pair wraps,
	   so a long address never leaves "Email:" stranded on a line of its own. */
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem;
}

.iti-labhead__contact-label {
	font-weight: 600;
	color: var(--iti-text-muted, #5c6f7e);
}

.iti-labhead__email {
	color: var(--iti-blue, #0071bb);
	text-decoration: none;
	/* Long, and with no spaces to break at, so without this an address can push
	   the whole block sideways on a narrow screen. */
	word-break: break-word;
}

.iti-labhead__email:hover,
.iti-labhead__email:focus-visible {
	text-decoration: underline;
}

.iti-labhead__name:focus-visible,
.iti-labhead__email:focus-visible {
	outline: 2px solid var(--iti-electric, #38b0ff);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (max-width: 575px) {
	.iti-labheads {
		padding: 1rem 1.1rem;
	}
}
