/**
 * District detail — LAYOUT ONLY.
 * All colours + fonts pull from the Elementor global kit via CSS custom
 * properties (--e-global-color-*, --e-global-typography-*). Hex/font fallbacks
 * match the kit so nothing hardcodes a brand value outside the globals.
 */

.stl-d {
	--stl-d-primary: var(--e-global-color-primary, #003D89);
	--stl-d-secondary: var(--e-global-color-secondary, #CB0A21);
	--stl-d-text: var(--e-global-color-text, #535353);
	--stl-d-line: var(--e-global-color-e0e0e0, #E0E0E0);
	--stl-d-soft: #F0F5FA;
	--stl-d-head-font: var(--e-global-typography-accent-font-family, "Montserrat"), sans-serif;
	--stl-d-body-font: var(--e-global-typography-text-font-family, "Open Sans"), sans-serif;
	font-family: var(--stl-d-body-font);
	color: var(--stl-d-text);
	font-size: 18px;
	line-height: 1.65;
}
.stl-d * { box-sizing: border-box; }
.stl-d h1, .stl-d h2, .stl-d h3, .stl-d .stl-d-eyebrow { font-family: var(--stl-d-head-font); color: var(--stl-d-primary); }

.stl-d-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.stl-d-sec { padding: 64px 0; }
.stl-d-sec:nth-child(even) { background: var(--stl-d-soft); }

.stl-d-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stl-d-secondary); margin: 0 0 10px; }
.stl-d-h2 { font-size: 40px; font-weight: 700; margin: 0 0 20px; line-height: 1.15; }
.stl-d-lead { font-size: 18px; margin: 0 0 28px; max-width: 640px; }

/* Hero */
.stl-d-hero { background: var(--stl-d-primary) center/cover no-repeat; position: relative; padding: 96px 24px; }
.stl-d-hero::before { content: ""; position: absolute; inset: 0; background: rgba(1, 26, 57, .62); }
.stl-d-hero__inner { position: relative; max-width: 1140px; margin: 0 auto; }
.stl-d-hero__title { font-size: 56px; font-weight: 700; color: #fff; margin: 0 0 14px; line-height: 1.1; }
.stl-d-hero__intro { color: #fff; font-size: 20px; max-width: 720px; }
.stl-d-hero__intro p { margin: 0; }

/* Overview */
.stl-d-overview__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.stl-d-overview__map img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Counties */
.stl-d-counties__body { font-size: 20px; max-width: 760px; }

/* Contact cards */
.stl-d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.stl-d-card { border: 1px solid var(--stl-d-line); border-radius: 12px; padding: 28px 24px; background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stl-d-card__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--stl-d-soft); color: var(--stl-d-primary); margin-bottom: 16px; }
.stl-d-card__role { font-family: var(--stl-d-head-font); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--stl-d-secondary); margin: 0 0 6px; }
.stl-d-card__name { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.stl-d-card__email, .stl-d-card__phone { display: block; color: var(--stl-d-text); text-decoration: none; font-size: 15px; word-break: break-word; }
.stl-d-card__email:hover, .stl-d-card__phone:hover { color: var(--stl-d-primary); }
.stl-d-card__btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--stl-d-head-font); font-weight: 600; font-size: 14px; letter-spacing: .5px; color: var(--stl-d-primary); text-decoration: none; }
.stl-d-card__btn:hover { color: var(--stl-d-secondary); }

/* Buttons */
.stl-d-btn { display: inline-block; margin-top: 8px; padding: 14px 30px; background: var(--stl-d-primary); color: #fff; font-family: var(--stl-d-head-font); font-weight: 600; font-size: 15px; letter-spacing: .5px; border-radius: 6px; text-decoration: none; transition: background .2s ease; }
.stl-d-btn:hover { background: var(--stl-d-secondary); color: #fff; }
.stl-d-connect__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Follow gallery */
.stl-d-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 18px; }
.stl-d-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; display: block; }
.stl-d-handle { font-weight: 600; }
.stl-d-handle a { color: var(--stl-d-primary); text-decoration: none; }

/* Accordion (native <details>, no JS) */
.stl-d-accordion { max-width: 860px; }
.stl-d-acc__item { border: 1px solid var(--stl-d-line); border-radius: 8px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.stl-d-acc__head { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--stl-d-head-font); font-weight: 600; font-size: 17px; color: var(--stl-d-primary); display: flex; justify-content: space-between; align-items: center; }
.stl-d-acc__head::-webkit-details-marker { display: none; }
.stl-d-acc__chev { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; flex: none; margin-left: 16px; }
.stl-d-acc__item[open] .stl-d-acc__chev { transform: rotate(-135deg); }
.stl-d-acc__body { padding: 0 22px 20px; }
.stl-d-acc__body :first-child { margin-top: 0; }

/* Key Contacts — keep the EXACT Cherokee card design; only make the row a grid
   so all cards wrap cleanly at 3 columns (desktop + tablet), 1 on mobile.
   The row is a boxed container, so its cards live in the > .e-con-inner holder;
   the grid goes THERE. We deliberately do NOT touch card padding/gap/direction
   so each card renders identically to the approved Cherokee cards. */
#stl-district-contacts > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	align-items: stretch;
}
#stl-district-contacts > .e-con-inner > .elementor-element {
	width: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
	min-width: 0 !important; /* allow grid items to shrink so long emails wrap, not overflow */
}
/* ONLY the email link/text may break-wrap (never headings/buttons). */
#stl-district-contacts .elementor-widget-text-editor,
#stl-district-contacts .elementor-widget-text-editor a,
#stl-district-contacts a[href^="mailto:"] {
	overflow-wrap: anywhere !important;
	word-break: break-word !important;
	min-width: 0 !important;
	max-width: 100% !important;
}
/* Never break the button label ("CONTACT"). */
#stl-district-contacts .elementor-button,
#stl-district-contacts .elementor-button .elementor-button-text {
	overflow-wrap: normal !important;
	word-break: normal !important;
	white-space: nowrap !important;
}
/* Equal-height cards: make the content column fill the card height so the CONTACT
   button pins to the bottom and all buttons align across the row (icon untouched). */
#stl-district-contacts > .e-con-inner > .elementor-element > .e-con-inner > .e-con {
	align-self: stretch !important;
	display: flex !important;
	flex-direction: column !important;
}
#stl-district-contacts > .e-con-inner > .elementor-element > .e-con-inner > .e-con > .e-con-inner {
	flex: 1 1 auto !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
}
#stl-district-contacts .elementor-widget-button { margin-top: auto !important; }
@media (max-width: 1024px) { #stl-district-contacts > .e-con-inner { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 767px)  { #stl-district-contacts > .e-con-inner { grid-template-columns: 1fr !important; } }

/* MOBILE: sections have big desktop L/R padding (~50px, some asymmetric) with no
   mobile override -> content looks narrow. Force ONE consistent 16px page padding
   on the top-level district sections only (header/footer + card internals untouched). */
@media (max-width: 767px) {
	body.single-districts .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	body.single-districts .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent > .e-con-inner {
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	/* Sections/columns carry FIXED px widths (1140/1200/55%) AND some WIDGETS carry
	   custom px widths (e.g. hero intro = 745px) with no mobile override, so content
	   overflowed off the right. Clamp every container AND widget to the viewport and
	   let containers stack full-width on mobile. */
	body.single-districts .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-con,
	body.single-districts .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-con > .e-con-inner,
	body.single-districts .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget {
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body.single-districts .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-con {
		width: 100% !important;
	}
}

/* Overview map box: reduce the space above the map to 20px on tablet & mobile. */
@media (max-width: 1024px) {
	#stl-ovbox, #stl-ovbox > .e-con-inner { padding: 20px !important; }
}

/* Responsive */
@media (max-width: 900px) {
	.stl-d-overview__grid { grid-template-columns: 1fr; gap: 28px; }
	.stl-d-cards { grid-template-columns: repeat(2, 1fr); }
	.stl-d-gallery { grid-template-columns: repeat(3, 1fr); }
	.stl-d-hero__title { font-size: 40px; }
	.stl-d-h2 { font-size: 30px; }
	.stl-d-sec { padding: 48px 0; }
}
@media (max-width: 560px) {
	.stl-d-cards { grid-template-columns: 1fr; }
	.stl-d-gallery { grid-template-columns: repeat(2, 1fr); }
}
