/* PCH Schools — "Report card" layout. Same family as PCH Market/Builder Insights: green accent, Playfair Display + DM Sans, 900px measure. */
.pch-sch {
	--sch-accent: #157A5A;      /* text-safe green (5.3:1 on white) */
	--sch-accent-bg: #E6F3EE;
	--sch-ink: #1C2733;
	--sch-muted: #56636F;
	--sch-line: #E1E6EA;
	--sch-soft: #F3F6F5;
	--sch-public: #2F5F99;
	--sch-charter: #6A4AA8;
	--sch-private: #8A6420;
	width: 100%;
	max-width: none;
	margin: 28px 0;
	font-family: "DM Sans", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--sch-ink);
	font-size: 15px;
	line-height: 1.5;
}
.pch-sch *, .pch-sch *::before, .pch-sch *::after { box-sizing: border-box; }
.pch-sch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Summary bar */
.pch-sch-bar {
	display: flex; align-items: center; gap: 16px; width: 100%; margin: 0;
	padding: 18px 22px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
	border: 1px solid var(--sch-line); border-radius: 14px;
	transition: box-shadow .2s;
}
.pch-sch-bar:hover { box-shadow: 0 4px 16px rgba(16, 24, 40, .07); }
.pch-sch-bar:focus-visible { outline: 3px solid rgba(21, 122, 90, .35); outline-offset: 2px; }
.pch-sch.is-open .pch-sch-bar { border-radius: 14px 14px 0 0; border-bottom-color: transparent; box-shadow: none; }
.pch-sch-icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 10px; background: var(--sch-accent-bg); color: var(--sch-accent);
}
.pch-sch-bar-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pch-sch-bar-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.25; }
.pch-sch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pch-sch-chip {
	display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
	padding: 4px 12px; background: var(--sch-soft); border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.pch-sch-chip:has(.pch-sch-badge) { padding-right: 5px; }
.pch-sch-chip-role { color: var(--sch-muted); }
.pch-sch-chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pch-sch-bar-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--sch-accent); font-weight: 600; font-size: 14px; }
.pch-sch-chev { transition: transform .25s; }
.pch-sch.is-open .pch-sch-chev { transform: rotate(180deg); }

/* Body. Hidden only once the script runs, so visitors without JS and crawlers get everything. */
.pch-sch-js.pch-sch--bar:not(.is-open) .pch-sch-body { display: none; }
.pch-sch-body { background: #fff; }
.pch-sch--bar .pch-sch-body { border: 1px solid var(--sch-line); border-top-color: var(--sch-line); border-radius: 0 0 14px 14px; padding: 8px 24px 26px; }
.pch-sch-js.pch-sch--bar .pch-sch-body { border-top-color: var(--sch-line); }

.pch-sch-h2, .pch-sch-h3, .pch-sch-name { font-family: "Playfair Display", Georgia, serif; color: var(--sch-ink); }
.pch-sch-h2 { font-size: 26px; margin: 0 0 14px; }
.pch-sch-h3 { font-size: 22px; line-height: 1.3; margin: 26px 0 6px; }
.pch-sch-body > .pch-sch-h3:first-child { margin-top: 16px; }
.pch-sch-sub { margin: 0 0 16px; color: var(--sch-muted); font-size: 14px; }

/* Assigned school cards */
.pch-sch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pch-sch-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--sch-line); border-radius: 12px; background: #fff; }
.pch-sch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.pch-sch-role { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--sch-accent); }
.pch-sch-name { font-size: 19px; line-height: 1.25; margin: 0; font-weight: 700; }
.pch-sch-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.pch-sch-facts div { min-width: 0; }
.pch-sch-facts dt { font-size: 12px; color: var(--sch-muted); margin: 0; }
.pch-sch-facts dd { margin: 0; font-weight: 600; }
.pch-sch-addr { margin: 0; font-size: 13px; color: var(--sch-muted); }
.pch-sch-addr a { color: inherit; text-decoration: none; }
.pch-sch-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.pch-sch-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--sch-accent); text-decoration: none; }
.pch-sch-links a:hover, .pch-sch-note a:hover { text-decoration: underline; }

/* Grade badges (white on these shades passes 4.5:1) */
.pch-sch-badge {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 17px; background: var(--sch-muted);
}
.pch-sch-badge--sm { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }
.pch-sch-badge--xs { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.pch-sch-g--a { background: #157A5A; }
.pch-sch-g--b { background: #3F7A22; }
.pch-sch-g--c { background: #8A6420; }
.pch-sch-g--d { background: #B04A12; }
.pch-sch-g--f { background: #B3261E; }

/* Nearby columns */
.pch-sch-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; }
.pch-sch-col { min-width: 0; }
.pch-sch-col-h {
	display: flex; align-items: baseline; justify-content: space-between; margin: 0;
	padding-bottom: 6px; border-bottom: 2px solid var(--sch-ink); font-size: 15px; font-weight: 700; font-family: inherit;
}
.pch-sch-col-n { font-size: 13px; color: var(--sch-muted); font-weight: 500; }
.pch-sch-list { list-style: none; margin: 0; padding: 0; }
.pch-sch-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sch-line); margin: 0; }
.pch-sch-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.pch-sch-dot--public { background: var(--sch-public); }
.pch-sch-dot--charter { background: var(--sch-charter); }
.pch-sch-dot--private { background: var(--sch-private); }
.pch-sch-li-main { flex: 1 1 auto; min-width: 0; }
.pch-sch-li-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.pch-sch-li-meta { display: block; font-size: 13px; color: var(--sch-muted); }
.pch-sch-li-mi { flex: 0 0 auto; font-size: 13px; color: var(--sch-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pch-sch-more { margin: 8px 0 0; font-size: 13px; color: var(--sch-muted); }

/* Regional choice zone (St. Lucie) */
.pch-sch-zone-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; flex: 0 0 auto; }
.pch-sch-zone-name { white-space: nowrap; }
.pch-sch-li-web { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--sch-accent); text-decoration: none; }
.pch-sch-li-web:hover { text-decoration: underline; text-underline-offset: 2px; }
.pch-sch-zone-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 28px; }
.pch-sch-hs { margin: 14px 0 0; font-size: 14px; }
.pch-sch-hs a { color: var(--sch-accent); font-weight: 600; text-decoration: none; }
.pch-sch-hs a:hover { text-decoration: underline; }

/* Summary, FAQ, note */
.pch-sch-summary { margin: 26px 0 0; padding: 16px 18px; background: var(--sch-soft); border-radius: 12px; }
.pch-sch-q { border-bottom: 1px solid var(--sch-line); }
.pch-sch-q summary { position: relative; padding: 13px 28px 13px 0; font-weight: 600; cursor: pointer; list-style: none; }
.pch-sch-q summary::-webkit-details-marker { display: none; }
.pch-sch-q summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-size: 22px; line-height: 1.2; color: var(--sch-accent); }
.pch-sch-q[open] summary::after { content: "\2013"; }
.pch-sch-q summary:focus-visible { outline: 2px solid rgba(21, 122, 90, .45); outline-offset: 2px; }
.pch-sch-q p { margin: 0 0 14px; }
.pch-sch-note { margin: 20px 0 0; font-size: 12px; color: var(--sch-muted); line-height: 1.5; }
.pch-sch-note a { color: var(--sch-accent); font-weight: 600; text-decoration: none; }

/* Optional map (Settings > PCH Schools) */
.pch-sch-map { position: relative; z-index: 0; height: 320px; margin-top: 18px; border: 1px solid var(--sch-line); border-radius: 12px; background: var(--sch-soft); }
.pch-sch-pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); color: #fff; font: 700 11px/1 "DM Sans", sans-serif; }
.pch-sch-pin--zoned { background: #157A5A; }
.pch-sch-pin--public { background: #2F5F99; }
.pch-sch-pin--charter { background: #6A4AA8; }
.pch-sch-pin--private { background: #8A6420; }
.pch-sch-pin--home { background: #1C2733; border-radius: 6px; }

@media (max-width: 640px) {
	.pch-sch { margin: 20px 0; }
	.pch-sch-bar { flex-wrap: wrap; gap: 12px; padding: 16px; }
	.pch-sch-bar-main { flex-basis: calc(100% - 60px); }
	.pch-sch-bar-title { font-size: 18px; }
	.pch-sch-bar-cta { margin-left: 56px; }
	.pch-sch--bar .pch-sch-body { padding: 4px 16px 20px; }
	.pch-sch-h3 { font-size: 19px; }
	.pch-sch-chip { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.pch-sch-chev, .pch-sch-bar { transition: none; }
}
