:root {
	--bi-location-letter-navy: #071b3b;
	--bi-location-letter-blue: #0878f9;
	--bi-location-letter-cyan: #26c7ec;
	--bi-location-letter-surface: #f3f9fd;
}

.bi-location-letter {
	padding: clamp(56px, 7vw, 96px) 0;
	background:
		radial-gradient(circle at 92% 12%, rgba(38, 199, 236, .12), transparent 30%),
		linear-gradient(180deg, #fff 0%, var(--bi-location-letter-surface) 100%);
	color: var(--bi-location-letter-navy);
}

.bi-location-letter__shell {
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
}

.bi-location-letter__header {
	max-width: 980px;
	margin: 0 auto clamp(34px, 5vw, 56px);
	text-align: center;
}

.bi-location-letter__eyebrow {
	margin: 0 0 12px;
	color: #0871de;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.bi-location-letter__header h2 {
	margin: 0;
	color: var(--bi-location-letter-navy);
	font-size: clamp(2rem, 4.2vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: -.035em;
}

.bi-location-letter__header h2::after {
	display: block;
	width: 96px;
	height: 4px;
	margin: 20px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--bi-location-letter-blue), var(--bi-location-letter-cyan));
	content: "";
}

.bi-location-letter__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 58px);
	align-items: stretch;
}

.bi-location-letter__media {
	position: relative;
	margin: 0;
	min-height: 100%;
	overflow: hidden;
	border: 1px solid rgba(12, 96, 173, .18);
	border-radius: 24px;
	background: #dbeef9;
	box-shadow: 0 22px 48px rgba(9, 48, 91, .14);
}

.bi-location-letter__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, rgba(7, 74, 151, .12), rgba(31, 190, 230, .04) 58%, rgba(4, 29, 65, .13));
	content: "";
	pointer-events: none;
}

.bi-location-letter__image,
.bi-location-letter__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
}

.bi-location-letter__image {
	filter: saturate(.88) contrast(.96);
}

.bi-location-letter__image-placeholder {
	display: grid;
	place-content: center;
	gap: 6px;
	padding: 32px;
	background:
		linear-gradient(135deg, rgba(6, 40, 90, .48), rgba(3, 142, 215, .22)),
		linear-gradient(135deg, #0a3f78, #159bd0);
	color: #fff;
	text-align: center;
}

.bi-location-letter__image-placeholder span {
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	font-weight: 800;
}

.bi-location-letter__image-placeholder small {
	font-size: .82rem;
	letter-spacing: .04em;
}

.bi-location-letter__media figcaption {
	position: absolute;
	z-index: 2;
	inset: auto 18px 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	width: calc(100% - 36px);
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(4, 29, 65, .82);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
}

.bi-location-letter__media figcaption a {
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.bi-location-letter__copy {
	display: grid;
	gap: 22px;
}

.bi-location-letter__opening {
	font-size: clamp(1.06rem, 1.5vw, 1.22rem);
	line-height: 1.65;
}

.bi-location-letter__opening p {
	margin: 0;
}

.bi-location-letter__point {
	padding: 22px 24px;
	border: 1px solid rgba(20, 114, 200, .16);
	border-radius: 18px;
	background: rgba(255, 255, 255, .8);
	box-shadow: 0 10px 28px rgba(17, 68, 115, .07);
}

.bi-location-letter__point h3 {
	margin: 0 0 8px;
	color: var(--bi-location-letter-navy);
	font-size: 1.12rem;
	line-height: 1.25;
}

.bi-location-letter__point h3::before {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--bi-location-letter-cyan);
	box-shadow: 0 0 0 5px rgba(38, 199, 236, .12);
	content: "";
}

.bi-location-letter__point p {
	margin: 0;
	color: #334a67;
	line-height: 1.6;
}

.bi-location-letter__cta-row {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin: clamp(34px, 5vw, 58px) 0;
	text-align: center;
}

.bi-location-letter__cta {
	min-width: min(100%, 390px);
	padding: 16px 28px;
	border-radius: 12px;
	background: linear-gradient(135deg, #075eea, #079ff0);
	box-shadow: 0 16px 34px rgba(7, 104, 229, .25);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.bi-location-letter__cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.bi-location-letter__cta:focus-visible {
	outline: 3px solid var(--bi-location-letter-navy);
	outline-offset: 4px;
}

.bi-location-letter__cta-row p {
	margin: 0;
	color: #52657e;
	font-size: .88rem;
}

.bi-location-letter__remainder {
	max-width: 900px;
	margin-inline: auto;
	padding-top: clamp(34px, 5vw, 60px);
	border-top: 1px solid rgba(7, 68, 124, .14);
}

.bi-location-letter__remainder h2,
.bi-location-letter__remainder h3,
.bi-location-letter__remainder h4 {
	color: var(--bi-location-letter-navy);
	line-height: 1.2;
}

.bi-location-letter__remainder h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.bi-location-letter__remainder h3 { margin-top: 2em; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.bi-location-letter__remainder h4 { margin-top: 1.7em; font-size: 1.2rem; }
.bi-location-letter__remainder p,
.bi-location-letter__remainder li { color: #334a67; line-height: 1.72; }

@media (max-width: 900px) {
	.bi-location-letter__shell { width: min(100% - 32px, 760px); }
	.bi-location-letter__grid { gap: 28px; }
}

@media (max-width: 700px) {
	.bi-location-letter { padding: 48px 0 60px; }
	.bi-location-letter__shell { width: min(100% - 28px, 620px); }
	.bi-location-letter__grid { grid-template-columns: 1fr; }
	.bi-location-letter__header { margin-bottom: 30px; }
	.bi-location-letter__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
		border-radius: 18px;
	}
	.bi-location-letter__image,
	.bi-location-letter__image-placeholder {
		height: 100%;
		min-height: 0;
	}
	.bi-location-letter__point { padding: 19px 18px; }
	.bi-location-letter__cta { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bi-location-letter__cta { transition: none; }
}


/* Fresno only: reserve a separate credit row so the marquee is unobstructed. */
.bi-fresno-caption-preview .bi-location-letter__media {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	aspect-ratio: auto;
}
.bi-fresno-caption-preview .bi-location-letter__media::after {
	content: none;
}
.bi-fresno-caption-preview .bi-location-letter__image {
	height: auto;
	min-height: 0;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	align-self: center;
}
.bi-fresno-caption-preview .bi-location-letter__media figcaption {
	position: relative;
	inset: auto;
	width: 100%;
	border-radius: 0;
	background: #102a4d;
	overflow-wrap: anywhere;
}

/* Preview only: credit both wide photos without covering their landmarks. */
.bi-toledo-caption .bi-location-letter__media {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	aspect-ratio: auto;
}
.bi-toledo-caption .bi-location-letter__media::after { content: none; }
.bi-toledo-caption .bi-location-letter__image {
	height: auto;
	min-height: 0;
	object-fit: contain;
	align-self: center;
}
.bi-toledo-caption .bi-location-letter__media figcaption {
	position: relative;
	inset: auto;
	width: 100%;
	border-radius: 0;
	background: #102a4d;
	overflow-wrap: anywhere;
}

/* Preview only: credit both wide photos without covering their landmarks. */
.bi-bridgeport-caption .bi-location-letter__media {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	aspect-ratio: auto;
}
.bi-bridgeport-caption .bi-location-letter__media::after { content: none; }
.bi-bridgeport-caption .bi-location-letter__image {
	height: auto;
	min-height: 0;
	object-fit: contain;
	align-self: center;
}
.bi-bridgeport-caption .bi-location-letter__media figcaption {
	position: relative;
	inset: auto;
	width: 100%;
	border-radius: 0;
	background: #102a4d;
	overflow-wrap: anywhere;
}
