/* Separate semantic actions: no button contains another button. */
#home.bright-path .activity-card{cursor:default;min-height:220px}
#home.bright-path .activity-card:hover{background:#fff;box-shadow:0 3px 7px #243d5a06}
#home.bright-path .activity-card .activity-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px;width:100%}
.activity-preview-button,.activity-play-button{font:inherit;font-weight:700;font-size:14px;min-height:44px;border-radius:13px;padding:8px 12px;cursor:pointer;touch-action:manipulation}
.activity-preview-button{border:1px solid #cbdfe9;background:#f3f9ff;color:#23587f}
.activity-play-button{border:1px solid #0879ce;background:#0879ce;color:#fff}
.activity-preview-button:hover{background:#deeffc}.activity-play-button:hover{background:#0866ab}
.activity-preview-button:focus-visible,.activity-play-button:focus-visible{outline:3px solid #132650;outline-offset:3px}
.activity-play-button:disabled{opacity:.55;cursor:default}
#home.bright-path .activity-card.bright-illustrated{min-height:236px}
#home.bright-path .activity-card:not(.bright-illustrated) .lab-card-example{width:120px;height:82px;top:8px;right:10px}
.activity-preview-dialog{box-sizing:border-box;width:min(760px,calc(100% - 28px));max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;margin:auto;padding:20px;border:1px solid #cbdfe9;border-radius:23px;background:#f7fbff;color:#132650;box-shadow:0 24px 80px #10264c55}
.activity-preview-dialog[hidden],.activity-preview-backdrop[hidden]{display:none!important}
.activity-preview-dialog::backdrop{background:#10264c88}
.activity-preview-heading{position:sticky;top:-20px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fbff;padding:10px 0}
.activity-preview-heading h2{font-size:clamp(22px,4vw,30px);line-height:1.2;letter-spacing:-.6px;margin:0;color:#132650}
.activity-preview-close{flex-shrink:0;display:grid;place-items:center;width:44px;height:44px;border:1px solid #bdcfde;border-radius:50%;background:#fff;color:#132650;font:28px/1 sans-serif;cursor:pointer}
.activity-preview-label{font-size:11px;letter-spacing:1px;color:#3b6087;font-weight:bold;margin:6px 0 12px}
.activity-preview-image{display:block;width:100%;height:auto;max-height:55vh;object-fit:contain;background:white;border:1px solid #d9e6f0;border-radius:14px}
.activity-preview-dialog p:not(.activity-preview-label){font-size:16px;line-height:1.6;color:#304f73}
.activity-preview-dialog :focus-visible{outline:3px solid #0879ce;outline-offset:3px}
.activity-preview-dialog.activity-preview-fallback[open]{display:block;position:fixed;inset:14px;z-index:10001;max-width:760px}
.activity-preview-backdrop{position:fixed;inset:0;z-index:10000;background:#10264c88}
@media(max-width:699px){#home.bright-path .activity-card{min-height:216px}#home.bright-path .activity-card.bright-illustrated{min-height:228px}.activity-preview-button,.activity-play-button{font-size:13px;padding:7px 9px}#home.bright-path .activity-card .activity-card-actions{gap:5px;padding-top:7px}#home.bright-path .activity-card:not(.bright-illustrated) .lab-card-example{height:72px;width:100%;top:auto;right:auto}.activity-preview-dialog{padding:14px}.activity-preview-heading{top:-14px}.activity-preview-dialog p:not(.activity-preview-label){font-size:15px}}
@media(max-width:22.49em){#home.bright-path .activity-card .activity-card-actions{flex-wrap:wrap}.activity-preview-button,.activity-play-button{flex:1}}
@media(prefers-reduced-motion:reduce){.activity-preview-dialog{scroll-behavior:auto}}
/* Long labels and enlarged text must wrap within the modal/action row. */
.activity-preview-heading h2{min-width:0;overflow-wrap:anywhere}
.activity-preview-dialog p{overflow-wrap:anywhere}
#home.bright-path .activity-card .activity-card-actions{flex-wrap:wrap}
.activity-preview-button,.activity-play-button{max-width:100%;overflow-wrap:anywhere}
.activity-play-button{margin-left:auto}

.activity-play-button{min-width:84px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.website-activity-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}
.website-activity-filters button{min-height:44px;padding:9px 14px;border:1px solid #cbdfe9;border-radius:24px;background:#fff;color:#23587f;font:inherit;font-weight:700}
.website-activity-filters button[aria-pressed=true]{background:#0879ce;color:white;border-color:#0879ce}
.website-activity-filters button:focus-visible{outline:3px solid #132650;outline-offset:3px}
