/* Directory blocks (handoff v3 area page). Colors only from --sch-* tokens (theme.css). px, not rem: Zakra sets a 62.5% root. */

/* ---------- banner ---------- */
.sch-banner { position: relative; isolation: isolate; color: #fff; background: #1F3A4D; overflow: hidden; }
.sch-banner__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center 40%; z-index: -2; }
.sch-banner::before { content: ""; position: absolute; inset: 0; background: var(--sch-banner-scrim); z-index: -1; }
.sch-banner__in { max-width: 1120px; margin: 0 auto; padding: 32px 16px 28px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.sch-banner__h1 { font: 700 42px/1.1 var(--sch-display); margin: 6px 0 8px; color: #fff !important; text-wrap: balance; }
.sch-banner__intro p { margin: 0; font-size: 18px; max-width: 60ch; color: #fff; }
.sch-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; }
.sch-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .8; }
.sch-crumbs a, .sch-crumbs span { color: #fff !important; }
.sch-crumbs span[aria-current] { font-weight: 600; }
@media (max-width: 767px) {
	.sch-banner__in { min-height: 150px; padding: 20px 16px 18px; }
	.sch-banner__h1 { font-size: 30px; }
	.sch-banner__intro p { font-size: 16px; }
}

/* ---------- results ---------- */
.sch-results { min-width: 0; }
.sch-count { font: 700 30px/1.15 var(--sch-display); margin: 0 0 14px; color: var(--sch-heading); }
@media (max-width: 767px) { .sch-count { font-size: 24px; } }
.sch-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.sch-filter label { font-weight: 600; color: var(--sch-heading); }
.sch-filter__ctl { display: inline-flex; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.sch-filter select { flex: 1 1 auto; min-height: 44px; padding: 6px 10px; font: 16px var(--sch-body); border-radius: 3px; min-width: 0; }
.sch-quick { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.sch-quick a { display: inline-block; padding: 10px 8px; min-height: 44px; box-sizing: border-box; }
.sch-quick a[aria-current] { color: var(--sch-heading) !important; font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--sch-accent); }

.sch-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sch-border); }
.sch-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(190px, .8fr); gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--sch-border); align-items: start; }
.sch-row__name { font: 700 20px/1.2 var(--sch-display); margin: 0; }
.sch-row__name a { color: var(--sch-heading) !important; text-decoration: none; }
.sch-row__name a:hover { text-decoration: underline; }
.sch-row__base { margin: 2px 0 0; color: var(--sch-muted); font-size: 15px; }
.sch-row__services { margin: 0; font-size: 16px; color: var(--sch-text); }
.sch-row__act { display: grid; gap: 4px; justify-items: end; }
.sch-row__links { margin: 0; font-size: 15px; }
.sch-row__note { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--sch-muted); }
.sch-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 3px;
	background: var(--sch-accent); color: var(--sch-accent-text) !important; font: 700 17px/1 var(--sch-body); text-decoration: none !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sch-call:hover { filter: brightness(1.08); }
.sch-icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 1023px) {
	.sch-row { grid-template-columns: minmax(0, 1fr) auto; }
	.sch-row__services { grid-column: 1 / -1; grid-row: 2; }
	.sch-row__act { grid-column: 2; grid-row: 1; }
}
@media (max-width: 479px) {
	.sch-row { grid-template-columns: minmax(0, 1fr); }
	.sch-row__act { grid-column: 1; grid-row: auto; justify-items: stretch; }
	.sch-call { width: 100%; }
	.sch-row__links { text-align: left; }
}
.sch-empty, .sch-all { margin: 16px 0; }
.sch-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 3px; font: 600 16px var(--sch-body); cursor: pointer; text-decoration: none !important; }
.sch-btn--quiet { background: transparent; color: var(--sch-heading) !important; border: 1px solid var(--sch-control-border); }
.sch-btn--quiet:hover { border-color: var(--sch-accent); }

/* ---------- sidebar ---------- */
.sch-sidebar { background: var(--sch-surface); padding: 20px; border-radius: 3px; }
.sch-side + .sch-side { border-top: 1px solid var(--sch-border); margin-top: 18px; padding-top: 16px; }
.sch-side h2 { font: 700 21px/1.2 var(--sch-display); margin: 0 0 10px; color: var(--sch-heading); }
.sch-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 15px; }
.sch-facts dt { color: var(--sch-muted); }
.sch-facts dd { margin: 0; color: var(--sch-text); overflow-wrap: anywhere; }
.sch-facts__src { font-size: 14px; }
.sch-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sch-side__list a { display: inline-block; padding: 6px 0; }

/* ---------- hub lists, story, indexes ---------- */
.sch-hub { list-style: none; margin: 0; padding: 0; columns: 2 260px; }
.sch-hub li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--sch-border); }
.sch-count-sm { color: var(--sch-muted); font-size: 15px; }
.sch-story { max-width: 72ch; }
.sch-story h2 { font: 700 30px/1.2 var(--sch-display); color: var(--sch-heading); }
.sch-story figure { margin: 20px 0; }
.sch-story figcaption { font-size: 15px; color: var(--sch-muted); }
.sch-links { columns: 2 220px; padding-left: 18px; }
.sch-links li { break-inside: avoid; margin: 4px 0; }

/* ---------- provider page ---------- */
.sch-pv__meta { color: var(--sch-muted); font-size: 16px; margin: 0 0 12px; }
.sch-pv__act { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.sch-pv h2 { font: 700 22px/1.2 var(--sch-display); color: var(--sch-heading); margin: 22px 0 6px; }
.sch-claim { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--sch-border); }

/* Links are underlined (handoff v3 §4); headings-as-links and buttons are not. */
.sch-results a, .sch-sidebar a, .sch-story a, .sch-pv a, .sch-links a, .sch-hub a, .sch-crumbs a, .sch-empty a, .sch-claim a { text-decoration: underline; }
.sch-row__name a, .sch-call, .sch-btn, .sch-quick a[aria-current] { text-decoration: none !important; }

/* ---------- home (handoff v3) ---------- */
.sch-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sch-bg); border-bottom: 1px solid var(--sch-border); }
.sch-hero__img { position: absolute; top: 0; right: 0; width: 62% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center; z-index: -2; }
.sch-hero::before { content: ""; position: absolute; inset: 0; background: var(--sch-hero-scrim); z-index: -1; }
.sch-hero__in { max-width: 1120px; margin: 0 auto; padding: 56px 16px 48px; }
.sch-hero__in > * { max-width: 540px; }
.sch-hero__h1 { font: 800 52px/1.05 var(--sch-display); color: var(--sch-heading) !important; margin: 0 0 14px; text-wrap: balance; }
.sch-hero__lead { font-size: 21px; line-height: 1.4; color: var(--sch-text); margin: 0 0 26px; }
.sch-pick label { display: block; font-weight: 700; color: var(--sch-heading); margin-bottom: 6px; }
.sch-pick__row { display: flex; flex-wrap: wrap; gap: 10px; }
.sch-pick select { flex: 1 1 260px; min-height: 48px; padding: 8px 12px; font: 17px var(--sch-body); border-radius: 3px; min-width: 0; }
.sch-btn--action { background: var(--sch-accent); color: var(--sch-accent-text) !important; border: 0; min-height: 48px; padding: 10px 22px; font-weight: 700; }
.sch-btn--action:hover { filter: brightness(1.08); }
.sch-pop__label { margin: 22px 0 2px; font-size: 15px; color: var(--sch-muted); }
.sch-pop { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.sch-pop a { display: inline-block; padding: 10px 0; font-weight: 600; text-decoration: underline; }
@media (max-width: 767px) {
	.sch-hero__img { position: relative; width: 100% !important; height: 170px !important; display: block; }
	.sch-hero::before { display: none; }
	.sch-hero__in { padding: 22px 16px 28px; }
	.sch-hero__h1 { font-size: 34px; }
	.sch-hero__lead { font-size: 18px; margin-bottom: 18px; }
	.sch-pick__row .sch-btn { width: 100%; }
}

.sch-srows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.sch-srow { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--sch-border); text-decoration: none !important; min-height: 64px; }
.sch-srow__t { font: 700 23px/1.2 var(--sch-display); color: var(--sch-heading); }
.sch-srow__d { color: var(--sch-muted); font-size: 16px; }
.sch-srow:hover .sch-srow__t { color: var(--sch-accent); text-decoration: underline; }
.sch-srows__all { margin: 18px 0 0; }
.sch-srows__all a { text-decoration: underline; font-weight: 600; }
@media (max-width: 767px) { .sch-srows { grid-template-columns: minmax(0, 1fr); } .sch-srow__t { font-size: 20px; } }

.sch-coverage { background: var(--sch-surface); }
.sch-counties { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.sch-counties a { font: 700 19px var(--sch-display); text-decoration: underline; display: inline-block; padding: 6px 0; }
.sch-strip { position: relative; background: var(--sch-surface); overflow: hidden; }
.sch-strip::before { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: url("mountain-silhouette-strip.svg") center bottom / cover no-repeat; opacity: .35; pointer-events: none; }
html[data-theme="dark"] .sch-strip::before { opacity: .18; }
.sch-strip .e-con-inner { position: relative; }

/* ---------- quote forms ---------- */
.sch-qform { max-width: 760px; }
.sch-qform fieldset { border: 0; border-top: 1px solid var(--sch-border); margin: 0 0 8px; padding: 18px 0 4px; }
.sch-qform legend { font: 700 21px var(--sch-display); color: var(--sch-heading); padding: 0 8px 0 0; }
.sch-qform label { display: block; font-weight: 600; color: var(--sch-heading); margin-bottom: 4px; }
.sch-qform input[type=text], .sch-qform input[type=email], .sch-qform input[type=tel], .sch-qform select, .sch-qform textarea {
	width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; font: 16px var(--sch-body); border-radius: 3px; }
.sch-qform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.sch-qform__grid p { margin: 0 0 12px; }
.sch-qform__wide { grid-column: 1 / -1; }
@media (max-width: 599px) { .sch-qform__grid { grid-template-columns: minmax(0, 1fr); } }
.sch-qform__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2px 16px; }
.sch-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; color: var(--sch-text) !important; min-height: 32px; padding: 4px 0; }
.sch-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--sch-accent); }
.sch-qform__consent { margin: 14px 0; font-weight: 600 !important; }
.sch-qform__privacy, .sch-qform__req { font-size: 15px; color: var(--sch-muted); }
.sch-qform__to { background: var(--sch-surface); padding: 12px 14px; border-radius: 3px; }
.sch-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sch-notice { padding: 14px 16px; border-left: 4px solid var(--sch-heading); background: var(--sch-surface); color: var(--sch-text); border-radius: 0 3px 3px 0; }
.sch-notice--ok { border-left-color: #2F6B3A; }
.sch-notice--warn { border-left-color: var(--sch-accent); }
.sch-qsum { white-space: pre-wrap; font: 16px/1.5 var(--sch-body); background: var(--sch-surface); padding: 14px 16px; border-radius: 3px; color: var(--sch-text); }

/* ---------- provider portal (ACF form restyled to the tokens) ---------- */
.sch-portal-form .acf-fields > .acf-field { border-top-color: var(--sch-border) !important; padding: 14px 0 !important; }
.sch-portal-form .acf-label label { color: var(--sch-heading); font-weight: 600; }
.sch-portal-form .acf-input input[type=text], .sch-portal-form .acf-input input[type=email], .sch-portal-form .acf-input input[type=url],
.sch-portal-form .acf-input input[type=number], .sch-portal-form .acf-input textarea, .sch-portal-form #acf-_post_title { min-height: 44px; font: 16px var(--sch-body); color: var(--sch-text); background: var(--sch-bg); border: 1px solid var(--sch-control-border); border-radius: 3px; }
.sch-portal-form .acf-checkbox-list { columns: 2 220px; }
.sch-portal-form .acf-checkbox-list li { break-inside: avoid; }
.sch-portal-form .acf-form-submit { margin: 18px 0; }
.sch-inbox { list-style: none; margin: 0; padding: 0; }
.sch-inbox > li { border-bottom: 1px solid var(--sch-border); padding: 10px 0; }
.sch-inbox summary { cursor: pointer; font-weight: 600; color: var(--sch-heading); min-height: 32px; }
.sch-portal-form input[type=submit] { background: var(--sch-accent) !important; color: var(--sch-accent-text) !important; border: 0 !important; min-height: 48px; padding: 10px 22px !important; font: 700 16px var(--sch-body) !important; border-radius: 3px !important; cursor: pointer; text-shadow: none !important; box-shadow: none !important; }

/* ---------- maps ---------- */
.sch-map { margin: 0; }
.sch-map__canvas { height: 280px; border-radius: 3px; border: 1px solid var(--sch-border); background: var(--sch-surface); z-index: 0; }
.sch-pv .sch-map__canvas { height: 340px; }
.sch-coverage .sch-map__canvas { height: 320px; }
.sch-map figcaption { font-size: 14px; color: var(--sch-muted); margin-top: 6px; }
html[data-theme="dark"] .sch-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.sch-map .leaflet-container a { color: #1F3A4D; }
.sch-map .leaflet-popup-content { font: 15px/1.4 var(--sch-body); }
