/* Only the Find Your Teacher CTA; category tiles retain their own links/styles. */
.lp-home .lp-learning-find[data-lp-teacher-popup]{border-radius:14px;min-height:64px;border:1px solid #80e9f4;padding:17px clamp(32px,5vw,88px);background:linear-gradient(125deg,#16bfd1,#008fac 60%,#006d8f);color:#fff;box-shadow:inset 0 2px 1px #ffffff66,inset 0 -3px 0 #00536e55,0 7px 18px #006d8f30;text-shadow:0 1px 1px #00476350;transition:transform .18s,box-shadow .18s,filter .18s}
.lp-home .lp-learning-find[data-lp-teacher-popup]::before,.lp-home .lp-learning-find[data-lp-teacher-popup]::after{content:none;display:none}
.lp-home .lp-learning-find[data-lp-teacher-popup]:hover{filter:brightness(1.06);transform:translateY(-2px);box-shadow:inset 0 2px 1px #ffffff77,0 10px 22px #006d8f3b}
.lp-home .lp-learning-find[data-lp-teacher-popup]:active{transform:translateY(1px)}
.lp-home .lp-learning-find[data-lp-teacher-popup]:focus-visible{outline:3px solid #08284b;outline-offset:4px}
#lpTeacherDirectoryModal{padding:20px!important;overflow:hidden;background:#08203938;z-index:20000}
body:has(#lpTeacherDirectoryModal.show)>.modal-backdrop{z-index:19990}
#lpTeacherDirectoryModal .modal-dialog{width:100%;max-width:1120px;height:min(900px,calc(100dvh - 40px));min-height:0;margin:0 auto;pointer-events:none}
#lpTeacherDirectoryModal .modal-content{display:flex;flex-direction:column;height:100%;max-height:100%;min-width:0;min-height:0;border:1px solid #b5e5ed;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 24px 70px #0524404d;pointer-events:auto}
.lp-teacher-popup-head{display:flex;flex:0 0 auto;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #b9e5ed;background:linear-gradient(115deg,#eefcff,#f8fcff);color:#08264e}
.lp-teacher-popup-head h2{flex:1;min-width:0;margin:0;font-size:23px;line-height:1.2;font-weight:800;letter-spacing:-.3px}
.lp-teacher-popup-full{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 14px;border:1px solid #00a1ba;border-radius:8px;background:linear-gradient(135deg,#08b8cc,#007d9b);color:#fff;font-size:14px;font-weight:750;text-decoration:none;white-space:nowrap;box-shadow:inset 0 1px 1px #ffffff66,0 3px 7px #006d8f20}
.lp-teacher-popup-full:hover{color:#fff;filter:brightness(1.07)}
.lp-teacher-popup-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:9px;border:1px solid #b4dbe5;border-radius:8px;background:#fff;color:#123557}
.lp-teacher-popup-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.lp-teacher-popup-close:hover{background:#e4f8fc}
.lp-teacher-popup-head :is(a,button):focus-visible{outline:3px solid #07294c;outline-offset:2px}
.lp-teacher-popup-content{position:relative;flex:1;min-height:0;overflow:hidden}
.lp-teacher-popup-content iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.lp-teacher-popup-status{position:absolute;inset:0;z-index:1;display:grid;place-items:center;margin:0;background:#fff;color:#12617b;font-weight:600}
.lp-teacher-popup-status[hidden]{display:none}
#lpTeacherDirectoryModal.show{display:flex!important;align-items:center;justify-content:center}
@media(max-width:767px){#lpTeacherDirectoryModal{padding:8px!important}#lpTeacherDirectoryModal .modal-dialog{height:calc(100dvh - 16px)}.lp-teacher-popup-head{padding:10px 12px;gap:8px}.lp-teacher-popup-head h2{font-size:19px}.lp-teacher-popup-full{font-size:12px;padding:8px 10px;gap:5px}}
@media(max-width:359px){.lp-teacher-popup-head h2{font-size:17px}.lp-teacher-popup-head{padding:9px;gap:6px}.lp-teacher-popup-full{padding:8px}.lp-teacher-popup-close{width:36px;height:36px;flex-basis:36px}}
@media(prefers-reduced-motion:reduce){.lp-home .lp-learning-find[data-lp-teacher-popup]{transition:none}}

/* Each colored CTA belongs to its tile's existing link. */
.lp-learning-square[data-lp-teacher-popup] .lp-learning-cta {
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.lp-learning-square[data-lp-teacher-popup]:focus-visible .lp-learning-cta {
    outline: 2px solid #08284b;
    outline-offset: 2px;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    .lp-learning-square[data-lp-teacher-popup] .lp-learning-cta:hover {
        transform: translateY(-2px);
        filter: brightness(1.12);
        box-shadow: inset 0 2px 1px #ffffff77, 0 5px 10px #07394b44;
    }
}
@media (prefers-reduced-motion:no-preference) {
    .lp-learning-square[data-lp-teacher-popup]:active .lp-learning-cta {
        transform: translateY(1px);
        box-shadow: inset 0 2px 4px #0003;
    }
}
