/* BLS Trucking theme styles (front end and editor) */

/* Section titles: uppercase Cabin heading with a rule underneath, like the original site */
.wp-block-heading.is-style-section-title {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: 0.6rem;
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--40);
}
.wp-block-post-content > .wp-block-heading.is-style-section-title:first-child,
.is-root-container > .wp-block-heading.is-style-section-title:first-child {
	margin-top: 0;
}

/* Header */
.bls-topbar {
	font-size: 0.875rem;
}
.bls-topbar a {
	color: inherit;
	text-decoration: none;
}
.bls-logo img {
	height: auto;
}

/* Image + text rows */
.bls-row {
	margin-bottom: var(--wp--preset--spacing--50);
}
.bls-row .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Staff cards */
.bls-staff-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-top: 3px solid var(--wp--preset--color--primary);
	padding: 1.25rem;
	box-sizing: border-box;
}
.bls-staff-card > * + * {
	margin-top: 0.25rem;
}
.bls-staff-card p {
	margin: 0;
}
.bls-staff-card .bls-staff-name {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}
.bls-staff-card a {
	word-break: break-word;
}

/* Lists of locations: two columns on wide screens */
.bls-two-col-list {
	columns: 2;
	column-gap: 2.5rem;
}
.bls-two-col-list li {
	break-inside: avoid;
}
@media (max-width: 700px) {
	.bls-two-col-list {
		columns: 1;
	}
}

/* Map embed */
.bls-map iframe {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
}

/* Footer */
.bls-footer a {
	color: inherit;
}
.bls-footer a:hover {
	color: var(--wp--preset--color--base);
}

/* Keep stacked columns readable on phones */
@media (max-width: 781px) {
	.bls-row.is-reversed-on-mobile {
		flex-direction: column-reverse;
	}
}
.bls-footer .wp-block-separator {
	border-color: #3a3a3a;
	opacity: 1;
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--30);
}
