/* Contextual school-to-home guidance; does not alter map boundaries or admission rules. */
:root{--green:#295c4a;--muted:#5c6b63;--line:#dce3dc}
.school-next{margin-top:24px;padding-top:22px;border-top:1px solid #dce3dc}
.school-next-label{font-size:14px;letter-spacing:.04em;color:#5c6b63;margin:0 0 10px}
.school-next h3{font-size:20px;line-height:1.65;font-weight:600;color:#234a3b;margin:0 0 12px}
.school-next p{font-size:16px;line-height:1.9;color:#4c6156;margin-bottom:16px}
.school-next .school-next-note{font-size:14px;color:#637168;margin:14px 0 0}
.school-line{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;border-radius:6px;padding:13px 18px;background:#295c4a;color:#fff;text-decoration:none;font-size:16px;font-weight:600}
.school-line:hover{background:#1b4c3e}.school-line:focus-visible{outline:3px solid #b49458;outline-offset:4px}
.planner-contact{background:#edf1eb}.planner-contact a{border-color:#295c4a;background:#295c4a;color:#fff}
@media(max-width:680px){.school-next h3{font-size:19px}.school-line{padding:13px 14px}}

/* One contact row per current school result; no query details enter analytics. */
.school-result-contact{margin-top:18px;padding-top:16px;border-top:1px solid #dce3dc}.school-result-links{display:flex;flex-wrap:wrap;gap:10px}.school-result-links a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid #295c4a;border-radius:6px;font-size:18px;line-height:1.5;text-decoration:none;background:white;color:#295c4a}.school-result-links a:last-child{background:#295c4a;color:white}.school-result-links a:focus-visible{outline:3px solid #b49458;outline-offset:4px}@media(max-width:600px){.school-result-links a{flex:1 1 100%}}

/* Result presence controls the generic CTA; every existing result clear restores it. */
#query-panel:has(.school-result-contact) .school-next{display:none}

/* Keep the result phone readable despite the shared important white text. */
.school-result-links a.yb-call-button,
.school-result-links a.yb-call-button:link,
.school-result-links a.yb-call-button:visited{
 background:#294f44!important;color:#fff!important;border-color:#294f44!important;
}
.school-result-links a.yb-call-button:hover,
.school-result-links a.yb-call-button:active{
 background:#1d4036!important;color:#fff!important;border-color:#1d4036!important;
}
.school-result-links a.yb-call-button:focus-visible{
 background:#294f44!important;color:#fff!important;border-color:#294f44!important;
 outline:3px solid #ac8844;outline-offset:4px;
}
