/**
 * Block: National reach map.
 *
 * Text and office list beside the map. States: line gray by default, navy for
 * active markets, blue for office states.
 */

.ci-reach__inner {
	display: grid;
	gap: 2.5rem;
}

.ci-reach__offices {
	display: grid;
	gap: 0;
	margin: 2rem 0 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	list-style: none;
}

.ci-reach__office {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1rem;
	padding-block: .875rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ci-reach__office-name {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}

.ci-reach__office-city {
	font-size: var(--wp--preset--font-size--small);
}

.ci-reach__figure {
	margin: 0;
}

/* Legend */
.ci-reach__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.5rem;
	margin-top: 1.25rem;
	font-size: var(--wp--preset--font-size--small);
}

.ci-reach__key {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

.ci-reach__key::before {
	content: "";
	width: .75rem;
	height: .75rem;
	border-radius: 2px;
	background-color: var(--wp--preset--color--navy);
}

.ci-reach__key--office::before {
	background-color: var(--wp--preset--color--blue);
}

.ci-reach__all {
	margin-inline-start: auto;
}

.ci-reach__all summary {
	color: var(--wp--preset--color--blue);
	font-weight: 600;
	cursor: pointer;
}

.ci-reach__all[open] {
	flex-basis: 100%;
	margin-inline-start: 0;
}

.ci-reach__areas {
	columns: 2 10rem;
	column-gap: 1.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.ci-reach__areas li {
	padding-block: .25rem;
	break-inside: avoid;
}

@media (min-width: 960px) {
	.ci-reach__inner {
		grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
		align-items: center;
		gap: 4rem;
	}
}
