/* Scoped to the 28-letter lessons; all markup remains readable without JavaScript. */
.abji28-main{font-family:Rubik,system-ui,sans-serif;color:var(--abji-text,#f5f3ff)}
.abji28-wrap{width:min(1100px,calc(100% - 2rem));margin-inline:auto}
.abji28-section{margin-block:1.3rem;padding:clamp(1.1rem,3.6vw,2.5rem);background:linear-gradient(145deg,#161640,#21124d);border:1px solid #4b398a;border-radius:26px;color:#f6f3ff;box-sizing:border-box}
.abji28-section h2,.abji28-section h3{color:#fff;margin:0 0 .8rem;line-height:1.45}
.abji28-section h2{font-size:clamp(1.3rem,2.6vw,1.85rem)}.abji28-section h3{font-size:1.13rem}
.abji28-section p,.abji28-section li{line-height:1.86;color:#e7e0ff}.abji28-section p{margin:.5rem 0 1rem}
.abji28-index{margin-inline:auto;border-radius:0;padding:2.5rem 0}
.abji28-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:12px;margin-top:1.4rem}
.abji28-letter-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:118px;background:#2a215c;border:1px solid #6858bd;color:#fff;border-radius:20px;text-decoration:none;font-weight:700}
.abji28-letter-tile:hover,.abji28-letter-tile:focus-visible{border-color:#28c4f8;box-shadow:0 0 0 3px #28c4f844;color:#fff}
.abji28-tile-glyph{font-size:3rem;line-height:1.1;color:#53dcfa}
.abji28-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,1fr);gap:1.5rem;align-items:center}
.abji28-letter-image{max-width:min(100%,340px);height:auto;justify-self:center;object-fit:contain}
.abji28-forms-preview,.abji28-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px}
.abji28-form-card,.abji28-example{padding:1rem;background:#292158;border:1px solid #6652ad;border-radius:18px;text-align:center;min-width:0}
.abji28-form-card{display:flex;flex-direction:column;align-items:center;gap:.6rem;line-height:1.6;color:#ebdcff}
.abji28-glyph{font-size:3.3rem;color:#61d9f9}
.abji28-example img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;max-width:200px}
.abji28-example h3{font-size:1.5rem}
.abji28-main button{font-family:inherit;cursor:pointer}.abji28-main button:focus-visible,.abji28-main input:focus-visible+span,.abji28-main summary:focus-visible{outline:3px solid #ffbf31;outline-offset:3px}
.abji28-audio,.abji28-trace-actions button{padding:.65rem 1rem;background:#284f93;color:#fff;border:1px solid #4aabe6;border-radius:12px;font-size:1rem}
.abji28-trace-actions button:hover,.abji28-audio:hover{background:#286ab3}.abji28-trace-actions button:disabled{opacity:.5;cursor:not-allowed}
.abji28-audio-status,.abji28-trace-status{min-height:1.7em}.abji28-instructions{background:#30265f;padding:.7rem 1.2rem;border-radius:16px;margin-bottom:1rem}
.abji28-form-select{border:0;padding:0;margin:1rem 0;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.abji28-form-select legend{color:#fff;font-weight:700;padding-bottom:.7rem}
.abji28-form-select label{display:inline-flex;cursor:pointer;position:relative}
.abji28-form-select input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.abji28-form-select span{border:1px solid #8172bf;border-radius:12px;padding:.55rem .8rem;background:#302558;color:#fff;font-weight:600}
.abji28-form-select input:checked+span{background:#d5f5ff;color:#18133f;border-color:#27c4fa}
.abji28-trace-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}
.abji28-board{background:#f3f2ff;border-radius:20px;border:2px solid #8774cd;min-height:310px;height:clamp(325px,55vw,510px);max-width:620px;width:100%;margin-inline:auto;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;box-sizing:border-box;color:#332063}
.abji28-board-placeholder{padding:1rem;color:#332063!important;text-align:center}
.abji28-board svg{width:100%;height:100%;display:block;touch-action:none;user-select:none}
.abji28-board .guide{fill:none;stroke:#a8a1cc;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.abji28-board .active-guide{stroke:#4c97d4;opacity:1}
.abji28-board .done-stroke{stroke:#19bce7;opacity:1}
.abji28-board .user-trace{stroke:#e9ac22;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
.abji28-board .start-halo{fill:#fff2c1;stroke:#f6ad1d;stroke-width:3;pointer-events:none}
.abji28-board .dot-guide{fill:#aaa1d0;stroke:#746da4;stroke-width:2}
.abji28-board .dot-guide.active-guide{fill:#4c97d4;stroke:#30c9ff}
.abji28-board .dot-guide.done-stroke{fill:#23bfeb;stroke:#23bfeb}
.abji28-trace-progress{display:flex;align-items:center;gap:1rem;margin:1rem 0}.abji28-trace-progress progress{flex:1;accent-color:#2bd5fa;height:16px}
.abji28-trace-status{font-weight:700;color:#f0d68b!important}
.abji28-faq{border-bottom:1px solid #5d4da1;padding:.8rem 0}.abji28-faq summary{cursor:pointer;font-weight:700;color:#fff;line-height:1.6}
.abji28-related{display:flex;flex-wrap:wrap;gap:12px}.abji28-related a{display:inline-flex;align-items:center;gap:.4rem;padding:.7rem 1rem;border:1px solid #6656b5;background:#2a245b;border-radius:12px;color:#8fdfff;text-decoration:none}
.abji28-related a:hover{border-color:#29c3f6}
@media(max-width:600px){.abji28-wrap{width:calc(100% - 1.2rem)}.abji28-section{border-radius:18px;padding:1rem}.abji28-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.abji28-letter-tile{min-height:85px;font-size:.7rem;gap:4px;border-radius:12px}.abji28-tile-glyph{font-size:2.2rem}.abji28-hero{grid-template-columns:1fr}.abji28-letter-image{max-width:220px}.abji28-board{min-height:325px}.abji28-form-select{gap:5px}.abji28-form-select span{font-size:.83rem;padding:.48rem}.abji28-trace-actions button{flex:1 1 40%;font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.abji28-main *, .abji28-main *::before,.abji28-main *::after{animation:none!important;transition:none!important}}
/* Guided writing renders the accepted portion of the exact original SVG paths.
   Unlike freehand pointer trails, this layer is never generated from mouse coordinates. */
.abji28-board .abji28-path-progress{stroke:#f3b728;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none;opacity:1}
.abji28-board .abji28-dot-progress{fill:#f3b728;stroke:#d98b15;stroke-width:2;pointer-events:none}
.abji28-languages{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:flex-start;padding:.8rem 0}
.abji28-languages a{display:inline-flex;border:1px solid #6858bd;border-radius:999px;padding:.4rem 1rem;text-decoration:none;color:#caf3ff;background:#28215d}
.abji28-languages a[aria-current="page"]{background:#256090;color:white;border-color:#41cafa}
.abji28-gloss{font-size:.98rem;line-height:1.5;min-height:1.5em;color:#d6c8ee!important}
.abji28-form-select b[lang="ar"]{display:inline-block;font-size:1.25em}
/* Guided writing renders only the accepted portion of exact original paths. */
.abji28-board .abji28-path-progress{stroke:#f3b728;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none;opacity:1}
.abji28-board .abji28-dot-progress{fill:#f3b728;stroke:#d98b15;stroke-width:2;pointer-events:none}
.abji28-languages{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:flex-start;padding:.8rem 0}
.abji28-languages a{display:inline-flex;border:1px solid #6858bd;border-radius:999px;padding:.4rem 1rem;text-decoration:none;color:#caf3ff;background:#28215d}
.abji28-languages a[aria-current="page"]{background:#256090;color:white;border-color:#41cafa}
.abji28-gloss{font-size:.98rem;line-height:1.5;min-height:1.5em;color:#d6c8ee!important}
.abji28-form-select b[lang="ar"]{display:inline-block;font-size:1.25em}
/* Completion belongs to each finished form, directly below its tracing board. */
.abji28-completion[hidden]{display:none!important}
.abji28-completion{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:24px;background:#0c153b;border:1px solid #f3b728;border-radius:20px;scroll-margin-block:100px 20px}
.abji28-completion>div:first-child{flex:1 1 280px;min-width:0}
.abji28-completion h3{color:#f3b728;font-size:clamp(1.25rem,2.5vw,1.65rem)}
.abji28-completion p{margin-bottom:0}
.abji28-completion-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.abji28-completion-actions .abji-button{color:#25174b;text-align:center;white-space:normal}
.abji28-completion-actions button{padding:.65rem 1rem;background:transparent;border:1px solid #8274bf;color:white;border-radius:12px;font:inherit}
@media(max-width:600px){.abji28-completion{padding:18px;gap:16px}.abji28-completion-actions{width:100%}}
/* Local navigation only: retain the approved grids, images and font rules. */
.abji28-jump{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;margin-inline-start:.5rem;margin-block:.5rem;text-decoration:none}
.abji28-jump:focus-visible{outline:3px solid #ffbf31;outline-offset:3px}
.abji28-main #abji28-writing{scroll-margin-top:110px}
