/* Arabic course (js/arabic.js): the reading line under Arabic text and the letters chart page. Letter cards themselves come from the design system
   (.ds-letter, .ds-forms in css/ds/study.css); this file only lays them out and sets the small transliteration line. */
.ar-tr { display: block; font-size: .78em; font-weight: 400; line-height: 1.4; color: var(--muted); letter-spacing: normal; unicode-bidi: isolate; text-align: start; }
.al-page { display: grid; gap: var(--sp-4); }
.al-top h1 { margin: 0 0 var(--sp-2); }
.al-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* practice page (js/arabic-practice.js) */
.ap-page { display: grid; gap: var(--sp-4); }
.ap-top h1 { margin: 0 0 var(--sp-2); }
.ap-card { display: grid; gap: var(--sp-3); }
.ap-sets { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ap-levels { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.ap-stem { display: grid; gap: var(--sp-1); justify-items: start; }
.ap-big { font-size: clamp(2.4rem, 2rem + 3vw, 3.4rem); line-height: var(--ar-lh, 1.8); }
.ap-opts { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.ap-opt { min-height: 64px; justify-content: center; text-align: center; }
.ap-line { display: grid; gap: 2px; justify-items: start; }
.ap-opt .ap-line { justify-items: center; }
.ap-tr-only { font-size: 1.2rem; }
:where(html:not(.a11y-contrast)) .ap-opts .ap-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); }
:where(html:not(.a11y-contrast)) .ap-opts .ap-opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
html.a11y-contrast .ap-opts .ap-opt.right { border: 3px solid currentColor; }
html.a11y-contrast .ap-opts .ap-opt.wrong { border: 3px dashed currentColor; }
.ap-fb { font-weight: 700; margin: 0; }
.ap-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.ap-cc > summary { cursor: pointer; }
.ap-reply { margin-block-start: var(--sp-2); }
.dl-summary ol { display: grid; gap: var(--sp-3); padding-inline-start: var(--sp-5); }
.dl-summary li { display: grid; gap: 2px; }
.ap-opts .ap-opt:disabled { opacity: 1; cursor: default; }
/* Arabic running text is 1.25x the Latin size; the single hero word or letter (.ap-big) stays larger (design room, 2026-11-02) */
.ap-line > .ds-ar { font-size: 1.25em; }
