/* ==========================================================================
   إحراز — STEP dashboard (step.html) and the subscription page (activate.html)
   Same look as the IELTS hub pages (lesson.css .w-hero / .w-task): white cards on the canvas, one tint per section.
   Logical properties only (right-to-left). Nothing here animates text.
   ========================================================================== */

/* ---------- STEP: the subscription line ---------- */
.st-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--border-strong);
  border-radius: var(--r-card); background: var(--surface); font-size: var(--text-sm); color: var(--ink-2); }
.st-sub .icon { width: 18px; height: 18px; flex: none; color: var(--c-speaking); }
.st-sub .link { margin-inline-start: auto; }
.st-sub.is-ending { background: var(--highlight-soft); border-color: var(--highlight-line); }
.st-sub.is-ending .icon { color: var(--highlight-edge); }

/* ---------- STEP: the test in one picture ---------- */
.st-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-panel); padding: 24px 28px; }
.st-hero h2 { font-size: 22px; font-weight: var(--w-display); line-height: 1.4; }
.st-hero p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-top: 4px; }
.st-split { display: flex; height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.st-split span { flex: var(--w) 1 0; display: grid; place-items: center; min-width: 0; }
.st-split span + span { border-inline-start: 1px solid var(--border-strong); }
.st-split b { font-size: 14px; font-weight: var(--w-semibold); color: var(--ink); }
.st-split .is-reading { background: var(--t-reading); }
.st-split .is-structure { background: var(--t-grammar); }
.st-split .is-listening { background: var(--t-listening); }
.st-split .is-writing { background: var(--t-writing); }

/* ---------- STEP: one card per section ---------- */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-card { display: grid; gap: 12px; align-content: start; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-panel); padding: 22px; }
.st-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tone-t); color: var(--tone-c); }
.st-card__icon .icon { width: 22px; height: 22px; }
.st-card__weight { font-size: 12.5px; color: var(--muted); }
.st-card h3 { display: grid; gap: 2px; font-size: 19px; font-weight: var(--w-display); line-height: 1.45; }
.st-card h3 small { justify-self: start; font-size: 12.5px; font-weight: var(--w-regular); color: var(--muted); }
.st-card p { font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.st-card.is-reading { --tone-t: var(--t-reading); --tone-c: var(--c-reading); }
.st-card.is-structure { --tone-t: var(--t-grammar); --tone-c: var(--c-grammar); }
.st-card.is-listening { --tone-t: var(--t-listening); --tone-c: var(--c-listening); }
.st-card.is-writing { --tone-t: var(--t-writing); --tone-c: var(--c-writing); }
.st-soon { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--lilac); font-size: 12.5px; font-weight: var(--w-medium); color: var(--ink-2); }
.st-soon .icon { width: 14px; height: 14px; }
.st-note { padding: 14px 16px; border-radius: var(--r-card); background: var(--t-exam); color: var(--ink); font-size: var(--text-sm); }

/* ---------- activate.html ---------- */
.ac-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-side { display: grid; gap: 16px; }
.ac-card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-panel); padding: 24px; }
.ac-card--quiet { padding: 20px 22px; }
.ac-card__title { font-size: 19px; font-weight: var(--w-display); line-height: 1.45; }
.ac-card .field { margin-bottom: 0; }
.ac-code { width: 100%; text-align: left; font-family: var(--font-mono); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.ac-code::placeholder { letter-spacing: .04em; }
#ac-form { display: grid; gap: 12px; }
#ac-form .btn { justify-self: start; }
.ac-hint { font-size: 13px; line-height: 1.8; color: var(--muted); }
.ac-error { padding: 10px 14px; border-radius: 12px; background: var(--t-exam); color: var(--ink); font-size: var(--text-sm); line-height: 1.8; }
.ac-locked { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-card); background: var(--highlight-soft); border: 1px solid var(--highlight-line); font-size: var(--text-sm); line-height: 1.85; }
.ac-locked__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); }
.ac-locked__icon .icon { width: 18px; height: 18px; }
.ac-done { display: grid; gap: 12px; justify-items: start; outline: none; }
.ac-done__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--t-speaking); color: var(--c-speaking); }
.ac-done__icon .icon { width: 26px; height: 26px; }
.ac-done p { color: var(--ink-2); line-height: 1.85; }
.ac-subs { display: grid; gap: 0; }
.ac-subs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; font-size: var(--text-sm); }
.ac-subs li + li { border-top: 1px solid var(--border); }
.ac-subs b { min-width: 52px; }
.ac-subs__state { color: var(--muted); }
.ac-subs__state.is-on { color: var(--c-speaking); font-weight: var(--w-medium); }
.ac-subs__state.is-off { color: var(--c-exam); }
.ac-subs .link { margin-inline-start: auto; }
.ac-steps { display: grid; gap: 8px; padding-inline-start: 20px; list-style: decimal; font-size: var(--text-sm); line-height: 1.85; color: var(--ink-2); }
.ac-steps li::marker { font-weight: var(--w-semibold); color: var(--ink); }
#ac-store { justify-self: start; display: inline-flex; gap: 8px; align-items: center; }
#ac-store .icon { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .st-hero { grid-template-columns: 1fr; padding: 20px; }
  .ac-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-card, .ac-card { padding: 18px; }
  #ac-form .btn { justify-self: stretch; }
}

/* a section that's ready: its button, and a gold edge like the «next step» cards elsewhere */
.st-card.is-ready { border-color: var(--ink); }
.st-card__acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-card__meta { font-size: 12.5px; color: var(--muted); }

/* ---------- STEP grammar (step-grammar.html): the two doors ---------- */
.st-crumb { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.st-crumb a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.st-crumb a:hover { color: var(--ink); }

/* ---------- STEP question bank (step-questions.html): the IELTS practice page's pieces (reading.css .next, .mseg, .lib) ---------- */
.sq-page .start { display: grid; }
.sq-tile { font-family: var(--font-mono); font-size: 11.5px; font-weight: var(--w-semibold); letter-spacing: .03em; }
.sq-title { direction: rtl; text-align: start; font-size: 15.5px; }
.sq-acts { display: grid; gap: 6px; justify-items: center; }
.sq-fix { font-size: 12.5px; font-weight: var(--w-semibold); color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sq-fix:hover { color: var(--ink); }
@media (max-width: 560px) {
  .sq-lib li > .sq-acts { grid-column: 3; grid-row: 2; display: flex; align-items: center; gap: 10px; }
  .sq-lib li > .sq-acts .btn { width: auto; min-width: 96px; }
}
@media (min-width: 561px) { .sq-lib li { grid-template-columns: 44px minmax(0, 1fr) 130px 112px; } }

/* ---------- STEP question screen (assets/step-quiz.js on top of exercise-kit.css) ---------- */
.sp-card { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-panel); border: 1px solid var(--border-strong); background: var(--surface); }
.sp-top { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.sp-top[hidden] { display: none; }
.sp-bar { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--lilac); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width var(--dur) var(--ease-out); }
.sp-kit { --kit: var(--c-reading); --kit-t: var(--t-reading); --kit-l: var(--l-reading); }
.sq-stem { width: 100%; max-width: 640px; display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-card); background: var(--canvas);
  border: 1px solid var(--border); text-align: left; font-size: 17px; line-height: 1.75; color: var(--ink); }
.sq-stem u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sp-kit .kit-opts { max-width: 640px; }
.sp-kit .kit-opt { justify-content: space-between; text-align: left; }
.sp-kit .sq-opts--long { grid-template-columns: 1fr; }
.sp-kit .kit-fb { max-width: 640px; width: 100%; text-align: start; justify-items: start; }
.sq-why { display: block; line-height: 1.9; }
.sq-why + .sq-why { margin-top: 6px; }
.sq-why--note { color: var(--muted); }
.sp-end { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 12px 0; }
.sp-end h2 { font-size: 21px; font-weight: var(--w-display); }
.sp-end p { color: var(--muted); line-height: 1.8; max-width: 52ch; }
.sp-end__score { font-size: 44px; font-weight: var(--w-display); line-height: 1.2; direction: ltr; }
.sp-end__score small { font-size: 20px; color: var(--muted); font-weight: var(--w-regular); }
.sp-end__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
@media (max-width: 640px) { .sp-card { padding: 16px; } .sq-stem { font-size: 16px; padding: 14px; } .sp-kit .kit-opts { grid-template-columns: 1fr; } }

/* ---------- STEP grammar course (step-course.html): the six stages, then a stage's lessons ----------
   The page is the IELTS lessons list's (reading-lessons.css: .rll-top, .rll-group, .rll-item); these are the stage cards
   and the states it doesn't have (locked, tests). */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cs-card { position: relative; top: 0; display: grid; gap: 8px; align-content: start; min-height: 0; padding: 22px; border-radius: 28px;
  border: 1px solid var(--border-strong); background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color var(--dur-fast), top var(--dur-fast), box-shadow var(--dur); }
.cs-card:hover { top: -2px; border-color: var(--ink); box-shadow: var(--shadow-float); }
.cs-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cs-card.is-current { border: 2px solid var(--highlight-edge); background: linear-gradient(150deg, var(--highlight-soft), var(--surface) 70%); }
.cs-card.is-done { background: linear-gradient(150deg, var(--t-speaking), var(--surface) 70%); }
.cs-card.is-locked { background: var(--canvas); }
.cs-card.is-locked .cs-card__name, .cs-card.is-locked .cs-card__sum { color: var(--muted); }
.cs-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.cs-card__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--t-plan); color: var(--c-plan);
  border: 1.5px solid var(--l-plan); font-size: 22px; font-weight: var(--w-display); }
.cs-card.is-current .cs-card__n { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }
.cs-card.is-done .cs-card__n { background: var(--c-speaking); border-color: var(--c-speaking); color: #fff; }
.cs-card.is-locked .cs-card__n { background: var(--lilac); border-color: var(--border-strong); color: var(--muted); }
.cs-card__name { font-size: 24px; font-weight: var(--w-display); line-height: 1.35; }
.cs-card__meta { font-size: 13.5px; color: var(--ink-2); }
.cs-card.is-locked .cs-card__meta { color: var(--muted); }
.cs-card__sum { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.cs-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.cs-card__facts > span { font-size: 12px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--lilac); color: var(--ink-2); }
.cs-card__foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.cs-card__foot .rh-bar i { background: var(--c-plan); }
.cs-card.is-done .cs-card__foot .rh-bar i { background: var(--c-speaking); }
.cs-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: var(--w-semibold); padding: 3px 12px; border-radius: var(--r-pill);
  background: var(--lilac); color: var(--ink-2); }
.cs-chip .icon { width: 13px; height: 13px; }
.cs-chip--now { background: var(--highlight); color: var(--ink); }
.cs-chip--done { background: var(--c-speaking); color: #fff; }
.cs-chip--lock { background: var(--surface); border: 1px solid var(--border-strong); }
.cs-level { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--ink-2); vertical-align: 1px; }
.cs-groups { display: grid; gap: var(--s-24); }
.cs-page .rll-group__n { background: var(--c-plan); }
.cs-unit-en { font-size: 12.5px; font-weight: var(--w-medium); color: var(--muted); margin-inline-start: 6px; }
.cs-page .rll-item__n .icon { display: block; }
.cs-page .rll-item__n { background: var(--t-plan); color: var(--c-plan); border-color: var(--l-plan); }
.cs-page .rll-item.is-next .rll-item__n { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }
.cs-page .rll-item.is-done .rll-item__n { background: var(--c-speaking); border-color: var(--c-speaking); color: #fff; }
.rll-item.is-locked { background: var(--canvas); border-style: dashed; }
.rll-item.is-locked:hover { border-color: var(--border-strong); }
.rll-item.is-locked .rll-item__link { cursor: default; }
.rll-item.is-locked .rll-item__title, .rll-item.is-locked .rll-item__sub { color: var(--muted); }
.cs-page .rll-item.is-locked .rll-item__n { background: var(--lilac); border-color: var(--border-strong); color: var(--muted); }
.cs-chip--lockmini { display: inline-flex; align-items: center; gap: 3px; background: var(--lilac); color: var(--muted); }
.cs-chip--lockmini .icon { width: 11px; height: 11px; }
.rll-item.is-test .rll-item__title { font-size: 15.5px; }
.cs-kind { font-size: 12px; font-weight: var(--w-semibold); padding: 1px 10px; border-radius: var(--r-pill); background: var(--t-plan); color: var(--c-plan); }
/* skipped (the stage's skip test was passed): green like done, but outlined — not the same as finishing it */
.cs-chip--skip { background: var(--surface); border: 1px solid var(--l-speaking); color: var(--c-speaking); }
.cs-chip--skipmini { background: var(--t-speaking); color: var(--c-speaking); }
.cs-page .rll-item.is-skipped .rll-item__n { background: var(--t-speaking) !important; border-color: var(--l-speaking) !important; color: var(--c-speaking) !important; }   /* reading-lessons.css colours it with !important */
/* «اختبار تخطّي المرحلة»: the skip test, in gold so it stands out (the stage page, and the course page above the stages) */
.cs-skip { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: var(--s-24); padding: 22px 24px; border-radius: 28px;
  border: 2px solid var(--highlight-edge); background: linear-gradient(135deg, var(--highlight), var(--highlight-soft) 45%, var(--surface));
  box-shadow: var(--shadow-float); }
.cs-skip__icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--ink); color: var(--highlight); }
.cs-skip__icon .icon { width: 28px; height: 28px; stroke-width: 2.6; }
.cs-skip__text { flex: 1; min-width: 0; }
.cs-skip h2 { font-size: 21px; font-weight: var(--w-display); line-height: 1.4; }
.cs-skip p { margin-top: 4px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.cs-skip p b { color: var(--ink); }
.cs-skip__best { white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.cs-skip__go { flex: none; background: var(--ink); color: #fff; padding-inline: 26px; font-weight: var(--w-display); box-shadow: var(--shadow-sm); }
.cs-skip__go:hover { background: var(--ink-2); color: #fff; }
.ct-units { display: grid; gap: 8px; width: 100%; max-width: 440px; margin: 4px auto 0; padding: 0; list-style: none; text-align: start; }
.ct-units li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ct-units li > span:first-child { flex: 1; min-width: 0; }
.ct-bar { position: relative; flex: none; width: 90px; height: 8px; border-radius: var(--r-pill); background: var(--canvas); border: 1px solid var(--border-strong); overflow: hidden; }
.ct-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--c-speaking); border-radius: var(--r-pill); }
.ct-units li.is-weak .ct-bar i { background: var(--highlight-edge); }
.ct-units b { width: 42px; text-align: end; font-size: 13px; }
@media (max-width: 640px) { .cs-card { padding: 18px; } .cs-card__name { font-size: 21px; } .cs-skip { flex-wrap: wrap; padding: 18px; gap: 14px; } .cs-skip__icon { width: 50px; height: 50px; } .cs-skip h2 { font-size: 18px; } .cs-skip .btn { width: 100%; } }

/* ---------- STEP grammar course: a lesson (step-lesson.html) ----------
   The page is the IELTS lesson's (reading-lessons.css: .rlv, .rl-sec, .rl-paper, .rl-note, .rlv-end, .rlv-pn);
   these are the pieces it doesn't have: examples with their meaning, ✗ → ✓ mistakes, the quiz card. */
.cl-pattern { border-inline-start-color: var(--highlight-edge); font-weight: var(--w-medium); }
.cl-exs, .cl-miss { display: grid; gap: 10px; }
.cl-ex { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--canvas); }
.cl-ex__en { font-size: 16.5px; font-weight: var(--w-semibold); line-height: 1.7; text-align: left; }
.cl-ex__ar { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.cl-ex__note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.cl-ex__note .icon { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--highlight-edge); }
.cl-mis { display: grid; gap: 8px; }
.cl-mis__paper { gap: 4px; border-inline-start-color: var(--terracotta); }
.cl-mis__bad { color: var(--terracotta); }
.cl-mis__bad s { text-decoration-thickness: 1.5px; }
.cl-mis__bad .rl-key { color: var(--terracotta); }
.cl-mis__good { color: var(--c-speaking); font-weight: var(--w-semibold); }
.cl-mis__good .rl-key { color: var(--c-speaking); }
.cl-mis__why { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); padding-inline: 4px; }
.cl-quiz { gap: 12px; }
.cl-quiz .sp-top { margin-top: 2px; }
.cl-quiz .kit { justify-items: center; }
.cl-pn--locked { color: var(--muted); cursor: default; }
.cl-pn--locked:hover { border-color: var(--border); background: var(--surface); }
.cl-pn--locked small { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.cl-pn--locked .icon { width: 13px; height: 13px; }

/* the full lessons from the Word files (step-lesson.js «tutorial») */
.rl-h2 > span:first-child { margin-inline-end: 10px; }
.cl-h2en { display: inline-block; vertical-align: 3px; font-size: 13px; font-weight: var(--w-semibold); color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 1px 10px; line-height: 1.7; }
.rl-sec--sum .cl-h2en { background: transparent; }
.cl-hl { background: none; color: #b4521f; font-weight: var(--w-bold); }       /* the Word file's orange key word */
.cl-goals { display: grid; gap: 10px; }
.cl-goals__t { font-size: 13px; font-weight: var(--w-semibold); color: var(--ink-2); }
.cl-goals__list { display: grid; gap: 8px; }
.cl-goals__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.8; }
.cl-goals__list .icon { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--c-speaking); stroke-width: 2.6; }
.cl-exbox { display: grid; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); overflow: hidden;
  border-inline-start: 4px solid var(--l-listening); }
.cl-exbox__i { display: grid; gap: 2px; padding: 12px 16px; }
.cl-exbox__i + .cl-exbox__i { border-top: 1px dashed var(--border); }
.cl-exbox__en { font-size: 16.5px; font-weight: var(--w-semibold); line-height: 1.7; text-align: left; }
.cl-exbox__ar { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.cl-note--note { background: var(--t-reading); border: 1px solid var(--l-reading); }
.cl-note--note .icon { color: var(--c-reading); }
.cl-note--compare { background: var(--t-listening); border: 1px solid var(--l-listening); }
.cl-note--compare .icon { color: var(--c-listening); }
.cl-note--key { background: var(--highlight-soft); border: 1px solid var(--highlight-line); }
.cl-note--key .icon { color: var(--highlight-edge); }
.cl-note .rl-note__t .cl-hl { color: inherit; }
.cl-table td { line-height: 1.75; }
.cl-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--lilac) 45%, transparent); }
.cl-try { display: grid; gap: 10px; }
.cl-try__i { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--canvas); }
.cl-try__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: var(--w-semibold); }
.cl-try__body { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.cl-try__q { justify-self: stretch; font-size: 16px; font-weight: var(--w-medium); line-height: 1.8; text-align: left; }
.cl-try__btn { display: inline-flex; align-items: center; gap: 6px; }
.cl-try__btn .icon { width: 16px; height: 16px; }
.cl-try__a { display: grid; gap: 4px; justify-self: stretch; padding: 10px 12px; border-radius: 10px; background: var(--tint-violet); border: 1px solid var(--l-speaking); }
.cl-try__a[hidden] { display: none; }
.cl-try__ans { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15.5px; font-weight: var(--w-bold); }
.cl-try__why { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.cl-blank { display: inline-block; width: 3.2em; height: 1.1em; vertical-align: -3px; border-bottom: 2px solid var(--ink-2); margin: 0 2px; }
@media (max-width: 640px) {
  .cl-h2en { display: table; margin-top: 4px; }
  .cl-try__i { grid-template-columns: minmax(0, 1fr); }
  .cl-try__n { width: 26px; height: 26px; }
}

/* ---------- STEP grammar course: a test (step-test.html) ---------- */
.ct-nav { display: grid; gap: 14px; justify-items: center; }
.ct-nav[hidden] { display: none; }
.ct-map { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 640px; }
.ct-dot { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: 13px;
  font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink-2); }
.ct-dot.is-done { background: var(--accent-soft); border-color: var(--ink); color: var(--ink); }
.ct-dot.is-here { outline: 2px solid var(--highlight-edge); outline-offset: 1px; }
.ct-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ct-review { display: grid; gap: 12px; }
.ct-review[hidden] { display: none; }
.ct-review > h2 { font-size: 19px; font-weight: var(--w-display); }
.ct-list { display: grid; gap: 10px; }
.ct-item { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--border-strong); background: var(--surface); }
.ct-item.is-wrong { border-color: var(--l-exam); }
.ct-item__head { display: flex; align-items: center; gap: 10px; }
.ct-item__no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--lilac); font-size: 13px; }
.ct-item__mark { font-size: 13px; font-weight: var(--w-semibold); }
.ct-item.is-right .ct-item__mark { color: var(--c-speaking); }
.ct-item.is-wrong .ct-item__mark { color: var(--terracotta); }
.ct-item .sq-stem { max-width: none; font-size: 15.5px; }
.ct-item > p { font-size: 14px; line-height: 1.85; }
.ct-item__why { color: var(--ink-2); }

/* lessons: numbered parts and the way on («الجزء التالي») */
.cl-page .rl-h2__n { background: var(--highlight); color: var(--ink); vertical-align: 1px; }
.rl-sec--sum .rl-h2__n { background: var(--surface); }
.cl-nextpart { justify-self: end; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--canvas); color: var(--ink); font-size: 13.5px; font-weight: var(--w-semibold); text-decoration: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.cl-nextpart:hover { border-color: var(--ink); background: var(--highlight-soft); }
.cl-nextpart .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.cl-tocn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-end: 6px; border-radius: 50%; background: var(--lilac);
  font-size: 11px; font-weight: var(--w-semibold); }
.rlv-toc a.is-on .cl-tocn { background: var(--highlight); color: var(--ink); }

/* ---------- STEP dashboard (step.html): the IELTS home's look — greeting + chips, one card for now, sections ---------- */
.sd-page .dash-title { font-size: clamp(30px, 3.2vw, 42px); font-weight: var(--w-regular); line-height: 1.3; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sd-chips:empty { display: none; }
.sd-chips a.hm-chip { color: var(--ink); text-decoration: none; }
.sd-chips a.hm-chip:hover { border-color: var(--ink); }
.sd-chip--ending { background: var(--highlight-soft); border-color: var(--highlight-line); }
.hm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 13px; color: var(--ink-2); }
.hm-chip .icon { width: 15px; height: 15px; }

.sd-hero { --k: var(--c-plan); display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 26px 30px; border-radius: 30px;
  border: 1px solid var(--l-plan); background: linear-gradient(115deg, var(--t-plan) 0%, color-mix(in srgb, var(--t-plan) 45%, #fff) 65%, #fff 100%); }
.sd-ring { width: 108px; height: 108px; }
.sd-ring b { font-size: 30px; }
.sd-hero__text { flex: 1 1 320px; min-width: 0; display: grid; gap: 4px; }
.sd-hero__eyebrow { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--w-semibold); color: var(--ink-2); }
.sd-hero__eyebrow .icon { width: 15px; height: 15px; }
.sd-hero h2 { font-size: clamp(22px, 2.3vw, 30px); font-weight: var(--w-medium); line-height: 1.4; }
.sd-hero__where { font-size: 14px; color: var(--ink-2); }
.sd-hero__where:empty { display: none; }
.sd-hero .btn { border-radius: var(--r-pill); }

.sd-sections { display: grid; gap: 14px; }
.sd-h { font-size: 21px; font-weight: var(--w-medium); padding-inline: 4px; }
.sd-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--border-strong); }
.sd-ico .icon { width: 22px; height: 22px; }
.sd-main { display: grid; gap: 16px; padding: 24px; border-radius: 28px; background: linear-gradient(140deg, var(--t-grammar), #fff 75%); border: 1px solid var(--l-grammar); }
.sd-main__head { display: flex; align-items: center; gap: 14px; }
.sd-main__head h3 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: var(--w-display); }
.sd-main__head h3 small { font-size: 13px; font-weight: var(--w-medium); color: var(--ink-2); }
.sd-ico--grammar { color: var(--c-grammar); }
.sd-weight { font-size: 13px; color: var(--ink-2); }
.sd-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sd-door { position: relative; top: 0; display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--ink); text-decoration: none; transition: border-color var(--dur-fast), top var(--dur-fast), box-shadow var(--dur); }
.sd-door:hover { top: -2px; border-color: var(--ink); box-shadow: var(--shadow-float); }
.sd-door:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sd-door__top { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.sd-door__top b { font-weight: var(--w-semibold); }
.sd-door__top .icon { width: 20px; height: 20px; color: var(--c-grammar); }
.sd-door__bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--lilac); overflow: hidden; }
.sd-door__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c-grammar); transition: width var(--dur-slow) var(--ease-out); }
.sd-door__meta { font-size: 13px; color: var(--ink-2); }
.sd-soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sd-card { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 22px; background: var(--tone-t); border: 1px solid var(--tone-l); }
.sd-card h3 { font-size: 17px; font-weight: var(--w-semibold); margin-top: 4px; }
.sd-card p { font-size: 13px; color: var(--ink-2); }
.sd-card .sd-ico { width: 40px; height: 40px; border-radius: 12px; color: var(--tone-c); }
.sd-card .sd-ico .icon { width: 19px; height: 19px; }
.sd-card--reading { --tone-t: color-mix(in srgb, var(--t-reading) 55%, #fff); --tone-l: var(--l-reading); --tone-c: var(--c-reading); }
.sd-card--listening { --tone-t: color-mix(in srgb, var(--t-listening) 55%, #fff); --tone-l: var(--l-listening); --tone-c: var(--c-listening); }
.sd-card--writing { --tone-t: color-mix(in srgb, var(--t-writing) 55%, #fff); --tone-l: var(--l-writing); --tone-c: var(--c-writing); }
.sd-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: #fff;
  border: 1px solid var(--border-strong); font-size: 12px; font-weight: var(--w-semibold); color: var(--ink-2); }
.sd-tag .icon { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .sd-hero { padding: 20px; border-radius: 24px; }
  .sd-hero .btn { width: 100%; justify-content: center; }
  .sd-ring { width: 88px; height: 88px; }
  .sd-doors { grid-template-columns: 1fr; }
  .sd-soon { grid-template-columns: 1fr 1fr; }
  .sd-main { padding: 18px; }
}
@media (max-width: 420px) { .sd-soon { grid-template-columns: 1fr; } }

/* ---------- STEP grammar (step-grammar.html): the dashboard's grammar card, bigger doors ---------- */
.sg-main { padding: 22px; }
.sg-door { gap: 12px; padding: 22px; }
.sg-door .sd-door__top { font-size: 20px; gap: 12px; }
.sg-door .sd-door__top b { font-weight: var(--w-display); }
.sg-door .sd-ico { width: 44px; height: 44px; }
.sg-door__line { font-size: 14px; color: var(--ink-2); }
.sg-door__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-accent); font-size: 14px; font-weight: var(--w-semibold); }
.sg-door__go::after { content: "←"; }
