/**
 * Lender directory: single lender pages and state hubs.
 *
 * Deliberately small and unopinionated. The theme already loads 22 stylesheets
 * on the homepage, and these pages inherit its typography -- this only lays out
 * the structures the templates introduce.
 */

.lender__heading,
.state-hub__title {
	margin-bottom: 0.5em;
}

.lender > section,
.state-hub__cta,
.state-hub__all {
	margin-bottom: 2.5em;
}

/* Contact block ---------------------------------------------------------- */

.lender__contact {
	display: grid;
	grid-template-columns: minmax(6rem, max-content) 1fr;
	gap: 0.5em 1.5em;
	margin: 0;
}

.lender__contact dt {
	font-weight: 700;
	margin: 0;
}

.lender__contact dd {
	margin: 0;
}

/* Service area and nearby lenders ---------------------------------------- */

.lender__states,
.lender__nearby-list {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.lender__states li,
.lender__nearby-list li {
	margin-bottom: 0.35em;
}

/* State hub lender list -------------------------------------------------- */

.state-hub__lenders {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.state-hub__lender {
	padding: 1.25em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.state-hub__lender-name {
	margin-bottom: 0.25em;
	font-size: 1.25em;
}

.state-hub__lender-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 1.5em;
	font-size: 0.95em;
}

/* The state index is long; let it wrap into columns rather than run down
   the page for fifty-odd entries. */

.state-hub__all ul {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.35em 1em;
}

/* Call to action --------------------------------------------------------- */

.lender__cta,
.state-hub__cta {
	padding: 1.5em;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
	.state-hub__lender {
		border-bottom-color: rgba(255, 255, 255, 0.16);
	}

	.lender__cta,
	.state-hub__cta {
		background: rgba(255, 255, 255, 0.06);
	}
}
