/* Shared presentation for every curriculum topic. */
body .app .topic-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important;background:none!important;border:0!important;box-shadow:none!important;padding:16px 0!important}
body .app .bn-topic-card{--topic-accent:#315fc3;display:flex!important;align-items:stretch!important;position:relative;border:1px solid #d3dff3!important;border-top:4px solid var(--topic-accent)!important;border-left:1px solid #d3dff3!important;border-radius:20px!important;background:#f4f8ff!important;box-shadow:0 6px 18px #173b6010!important;padding:0!important;overflow:hidden;transition:transform .18s,box-shadow .18s}
body .app .bn-topic-card[data-state=active]{--topic-accent:#a35013;background:#fff8eb!important;border-color:#e8cd9e!important}
body .app .bn-topic-card[data-state=done]{--topic-accent:#087c63;background:#eefbf5!important;border-color:#b5dfd0!important}
body .app .bn-topic-card .topic-link{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-content:start;align-items:start!important;gap:14px!important;padding:24px 12px 24px 20px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;min-width:0;flex:1;color:#203c43!important;text-align:start!important}
body .app .bn-topic-card .topic-copy{min-width:0;align-self:center}
body .app .bn-topic-card h2{font-size:1.08rem!important;line-height:1.55!important;margin:0!important;color:#203c43!important;overflow-wrap:anywhere}
body .app .bn-topic-card .topic-stage{background:none!important;border:0!important;padding:4px 0 0!important;color:#536171!important;font-size:.8rem!important;border-radius:0!important;box-shadow:none!important}
body .app .bn-topic-card .topic-number{background:white!important;color:var(--topic-accent)!important;width:40px!important;height:40px!important;border-radius:13px!important;font-weight:800}
body .app .bn-topic-card .topic-number.finished{background:#087c63!important;color:white!important}
body .app .bn-topic-card .topic-step-count{grid-column:2;display:grid!important;gap:10px;text-align:start!important;border:0!important;background:none!important;color:var(--topic-accent)!important;font-size:.85rem!important;padding:0!important;white-space:normal!important}
body .app .bn-topic-card .topic-step-count progress{display:block;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;accent-color:var(--topic-accent);background:#dce5eb}
body .app .bn-topic-card progress::-webkit-progress-bar{background:#dce5eb;border-radius:10px}
body .app .bn-topic-card progress::-webkit-progress-value{background:var(--topic-accent);border-radius:10px}
body .app .bn-topic-card progress::-moz-progress-bar{background:var(--topic-accent)}
body .app .bn-topic-card .topic-link>svg:last-child{display:none}
body .app .bn-topic-card .save-btn{align-self:flex-start!important;margin:16px 8px 0 0!important;min-width:44px;min-height:44px;background:transparent!important;border:0!important;box-shadow:none!important;color:#536171!important}
body .app .bn-topic-card .save-btn.saved{color:#7341b8!important;background:#eee5ff!important}
body .app .bn-topic-card .topic-link:disabled{opacity:1!important;cursor:not-allowed}
body .app .topic-controls .search{background:#fff!important;border:1px solid #bbcfcf!important;border-radius:14px!important;box-shadow:none!important;padding:12px 16px!important}
body .app .topic-controls .search input{background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;padding:8px!important;color:#203c43!important;min-width:0}
body .app .topic-controls .search:focus-within{outline:3px solid #9a77ce;outline-offset:3px}
body .app .page-intro{background:none!important;border:0!important;box-shadow:none!important;line-height:1.7!important;padding:8px 0 18px!important}
body .app footer{padding:24px!important;line-height:1.7!important;margin-top:28px!important;border-radius:16px}
body .app .reading-shell .lesson-panel{border-radius:22px!important;box-shadow:0 8px 28px #2541430c!important}
body .app .reading-shell .note{border-radius:16px!important;background:#f2f7ff!important;border:1px solid #cfddf4!important;box-shadow:none!important;line-height:1.8}
body .app .reading-shell .note:nth-of-type(3n+2){background:#fff7ec!important;border-color:#f0d5af!important}
body .app .reading-shell .note:nth-of-type(3n){background:#effaf4!important;border-color:#bcdfcf!important}
body .app .reading-shell .note :is(h2,h3,p,strong){color:#293f48!important}
body .app :is(button,a):focus-visible{outline:3px solid #8459be!important;outline-offset:4px}
.bn-topic-celebration{box-sizing:border-box;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e2c56d;border-radius:28px;padding:32px;text-align:center;background:linear-gradient(145deg,#fffaf0,#f1fcf8 60%,#f1ebff);color:#203c43;box-shadow:0 25px 90px #092b4050;font-family:inherit}
.bn-topic-celebration::backdrop{background:#102d43bb;backdrop-filter:blur(7px)}
.bn-topic-celebration h2{font-size:clamp(1.4rem,4vw,1.85rem);line-height:1.45;color:#16594f}
.bn-topic-celebration p{line-height:1.7}
.bn-topic-celebration .bn-mubarak{font-size:3rem;color:#775007;margin:8px;font-weight:700}
.bn-celebrate-star{font-size:4rem;color:#b57709;animation:bn-star-in .65s ease-out}
.bn-celebrate-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.bn-celebrate-actions button{font:inherit;font-weight:700;min-height:48px;padding:12px 20px;border-radius:14px;border:1px solid #a2c8bf;background:white;color:#175e50;cursor:pointer}
.bn-celebrate-actions [data-continue]{background:#17634f;color:white;border-color:#17634f}
.bn-audio-status{font-size:.8rem;color:#536171;margin-bottom:0}
@keyframes bn-star-in{from{transform:scale(.3) rotate(-50deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
@media(hover:hover){body .app .bn-topic-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px #173b601b!important}}
@media(max-width:700px){body .app .topic-list{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}body .app .bn-topic-card .topic-link{padding:20px 8px 20px 16px!important}body .app .topic-controls{flex-wrap:wrap}body .app .topic-controls .search{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){body .app .bn-topic-card,.bn-celebrate-star{animation:none!important;transition:none!important;transform:none!important}}
