/* Local review trial: replace repeated interior team photos with one branded
   East Texas coverage landscape while keeping homepage and story photography. */
:is(
	.sc-coverage-page,
	.sc-support-page,
	.sc-service-area-page,
	.sc-local-resources-page,
	.sc-careers-page
) .sc-story__media {
	aspect-ratio: 3 / 2;
	min-height: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(8, 45, 91, 0.12) !important;
	border-radius: 10px !important;
	background-color: var(--sc-warm-paper) !important;
	background-image: url("images/design-system/east-texas-protection-landscape-1200.webp") !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	box-shadow: none !important;
}

/* The illustration is decorative beside complete section copy. Hiding the
   old image also prevents its now-mismatched team-photo alt text from being
   announced. */
:is(
	.sc-coverage-page,
	.sc-support-page,
	.sc-service-area-page,
	.sc-local-resources-page,
	.sc-careers-page
) .sc-story__media img {
	display: none !important;
}

/* Personal Lines: the generated landscape is retired. Keep the story clean,
   text-first, and full-width even if legacy markup bypasses the PHP transform. */
.sc-personal-page .sc-coverage-story .sc-story__panel {
	display: block;
}

.sc-personal-page .sc-coverage-story .sc-story__media {
	display: none !important;
}

.sc-personal-page .sc-coverage-story .sc-story__copy {
	width: 100%;
	max-width: none;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Business Lines: retire the same generated landscape while preserving the
   complete Why copy, proof ledger, and action path at full section width. */
.sc-business-page .sc-coverage-story .sc-story__panel {
	display: block;
}

.sc-business-page .sc-coverage-story .sc-story__media {
	display: none !important;
}

.sc-business-page .sc-coverage-story .sc-story__copy {
	width: 100%;
	max-width: none;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Farm & Ranch comparison: let the strong editorial copy carry the strip
   without any photography or illustration. */
.sc-farm-page .sc-coverage-story .sc-story__panel {
	display: block;
}

.sc-farm-page .sc-coverage-story .sc-story__media {
	display: none !important;
}

.sc-farm-page .sc-coverage-story .sc-story__copy {
	width: 100%;
	max-width: none;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

@media (min-width: 900px) {
	.sc-farm-page .sc-coverage-story .sc-story__copy {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		grid-template-rows: auto auto auto auto;
		column-gap: clamp(40px, 6vw, 84px);
		row-gap: 16px;
		align-items: start;
	}

	.sc-farm-page .sc-coverage-story .sc-story__copy > .sc-eyebrow {
		grid-column: 1;
		grid-row: 1;
	}

	.sc-farm-page .sc-coverage-story .sc-story__copy > h2 {
		grid-column: 1;
		grid-row: 2 / span 3;
		max-width: 17ch;
		margin: 0;
	}

	.sc-farm-page .sc-coverage-story .sc-story__copy > p:first-of-type {
		grid-column: 2;
		grid-row: 2;
		margin-top: 0;
	}

	.sc-farm-page .sc-coverage-story .sc-story__copy > p:nth-of-type(2) {
		grid-column: 2;
		grid-row: 3;
		margin: 0;
	}

	.sc-farm-page .sc-coverage-story .sc-story__copy > .sc-checklist {
		grid-column: 2;
		grid-row: 4;
		margin: 2px 0 0;
	}
}
