/* Topic search belongs to the same sea, with room for full lesson titles. */
.topic-page{position:relative;isolation:isolate;overflow-x:clip;background:radial-gradient(ellipse at 50% 8%,#e7f7ff 0,transparent 55%),var(--sea);padding-block:22px 100px;min-height:70vh}
.topic-heading{margin:32px 0 48px}
.topic-heading .topic-kicker{font-size:14px;font-weight:600;line-height:1.5;color:var(--ink);margin:0 0 20px}
.topic-heading h1{margin:0;overflow-wrap:anywhere}
.topic-seascape{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.topic-coast{position:absolute;right:-125px;top:150px;width:300px;opacity:.45}
.topic-wave{position:absolute;width:65px;opacity:.65;animation:map-wave-drift 9s ease-in-out infinite}
.topic-wave img{display:block;width:100%;height:auto}
.topic-wave-one{left:3%;bottom:30px}
.topic-wave-two{right:8%;top:70px;animation-delay:-4s}
.topic-page .topic-results{gap:26px;align-items:stretch}
.topic-page .topic-result{display:flex;flex-direction:column;min-width:0;padding:28px;border:1.5px solid #718b8e;border-radius:26px 18px 30px 20px;background:#faf0d7;box-shadow:0 6px 0 #56738312;transition:transform .2s,box-shadow .2s,background .2s}
.topic-module{display:flex;align-items:center;gap:10px;color:#46616a;font-size:12px;line-height:1.45;font-weight:600}
.topic-emblem{position:relative;isolation:isolate;display:block;flex:none;width:28px;height:25px}
.topic-emblem .hex-outline path{stroke-width:1.3}
.topic-page .topic-result h2{font-size:24px;line-height:1.3;letter-spacing:-.025em;margin:22px 0 30px;overflow-wrap:anywhere}
.topic-page .topic-result .text-link{margin-top:auto;padding-top:17px;border-bottom:0;border-top:1px solid #b1a78766;display:flex;justify-content:space-between;align-items:center;font-size:13px}
.topic-page .topic-result:hover{background:#fff5df;transform:translateY(-3px);box-shadow:0 9px 12px #3759701c}
.topic-page .empty-message{grid-column:1/-1;background:#faf0d7;border-color:#718b8e}
.topic-page .page-numbers{background:#fff5df;border-color:#718b8e;border-radius:8px}
.topic-page .page-numbers.current{background:var(--ink);color:white}
@media(max-width:760px){.topic-page{padding-block:13px 65px}.topic-heading{margin:24px 0 32px}.topic-page .topic-results{gap:20px}.topic-page .topic-result{padding:24px}.topic-page .topic-result h2{font-size:22px}.topic-coast{right:-135px;width:230px;top:150px}.topic-wave-two{right:3%;top:240px;width:38px}}
@media(prefers-reduced-motion:reduce){.topic-wave{animation:none}.topic-page .topic-result{transition:none}.topic-page .topic-result:hover{transform:none}}
