/* The department list (inc/departments.php). Only the LBS Foundation theme's design tokens (--lbs-*): no
   colour of its own. Two classes in rules that set a heading's look, so that Elementor's kit
   (".elementor-kit-N h3", one class and an element) cannot override them. */

.lbs-depts .lbs-depts__heading {
	margin: 0;
	padding-bottom: var(--lbs-space-3);
	border-bottom: 2px solid var(--lbs-text);
	font-size: var(--lbs-fs-lg);
	line-height: var(--lbs-lh-heading);
}

/* As many columns of at least 17.5rem as the group's own space allows: two for the wide group on the front
   page, one for the narrow one, one on a phone. */
.lbs-depts .lbs-depts__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
	column-gap: var(--lbs-space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lbs-depts__list > .lbs-dept {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--lbs-space-1);
	min-width: 0;
	margin: 0;
	padding: var(--lbs-space-4) 0;
	border-bottom: 1px solid var(--lbs-border);
}
.lbs-dept .lbs-dept__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0 var(--lbs-space-4);
}
.lbs-dept .lbs-dept__name { margin: 0; font-size: var(--lbs-fs-md); font-weight: 700; line-height: var(--lbs-lh-heading); }
.lbs-dept .lbs-dept__place { margin: 0; color: var(--lbs-muted); font-size: var(--lbs-fs-xs); line-height: var(--lbs-lh-tight); white-space: nowrap; }
.lbs-dept .lbs-dept__line { margin: 0; color: var(--lbs-muted); font-size: var(--lbs-fs-sm); line-height: 1.45; }

/* The whole entry is one link: the name's link stretches over it, and its focus ring is drawn around it. */
.lbs-dept .lbs-dept__name a { color: inherit; text-decoration: none; }
.lbs-dept .lbs-dept__name a::before { content: ''; position: absolute; inset: 0; }
.lbs-dept .lbs-dept__name a:focus-visible { outline: none; }
.lbs-dept .lbs-dept__name a:focus-visible::before { outline: var(--lbs-focus-ring) solid var(--lbs-focus); outline-offset: 2px; }
.lbs-dept:hover .lbs-dept__name a { color: var(--lbs-red); }
.lbs-dept .lbs-dept__out { width: 0.7em; height: 0.7em; stroke: var(--lbs-red); vertical-align: baseline; }

