/* wishyou.today learning: sign courses (generated from tools/learning/engine/sign-css.mjs) */
/* ===== learning sign ===== */
.lang-sign { --gloss: 'Karla', sans-serif; }
/* the player: a clip in a white box, a tap area over it, visible controls under it */
.sp { margin: 0; display: grid; gap: 8px; width: 100%; max-width: 440px; justify-self: center; min-width: 0; }
.sp__box { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--accent, var(--yellow)); overflow: hidden; }
.sp__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.sp__tap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sp__tap:focus-visible { outline: 3px solid var(--blue); outline-offset: -6px; }
.sp__tap i { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); }
.sp__tap i svg { width: 28px; height: 28px; }
.sp.is-playing .sp__tap i { opacity: 0; }
@media (hover: hover) { .sp.is-playing .sp__tap:hover i { opacity: 1; } }
.sp__msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 700; color: var(--ink); background: #fff; }
.sp__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.sp__bar button { min-height: 44px; min-width: 44px; padding: 6px 12px; font: 700 14.5px 'Karla', sans-serif; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); cursor: pointer; touch-action: manipulation; }
.sp__bar button[aria-pressed="true"] { background: var(--yellow); }
.sp__speed { display: inline-flex; }
.sp__speed button + button { border-left-width: 0; }
@media (max-width: 420px) { .sp__bar { gap: 6px; } .sp__bar button { padding: 6px 9px; font-size: 14px; } }
.sp__cap { display: grid; gap: 2px; justify-items: center; text-align: center; }
.sp__en { font: 800 clamp(18px, 2.6vw, 24px) 'Unbounded', sans-serif; letter-spacing: -0.02em; text-transform: lowercase; color: var(--ink); }
.sp__gl { font: 800 15px var(--gloss); letter-spacing: 0.04em; color: var(--soft-ink); }
.sp__how { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--soft-ink); text-align: left; }
.sp__how b { color: var(--ink); }
.sp__src { font-size: 13.5px; font-weight: 700; color: #5c5590; text-align: center; }
.sp__src a { color: inherit; }
.sp--small { max-width: 260px; gap: 4px; }
.sp--small .sp__box { box-shadow: 3px 3px 0 var(--ink); border-width: 3px; }
.sp--small .sp__tap i { width: 44px; height: 44px; }
.sp--small .sp__tap i svg { width: 20px; height: 20px; }
/* a gloss line: tap-to-watch chips, an optional marker line over a span, the English under it */
.gl { display: grid; gap: 8px; min-width: 0; }
.gl__chips { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 6px; }
.gl__chip { min-height: 44px; min-width: 44px; padding: 6px 10px; font: 800 17px var(--gloss); letter-spacing: 0.03em; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; touch-action: manipulation; overflow-wrap: anywhere; }
.gl__chip[aria-expanded="true"] { background: var(--yellow); }
.gl__chip--fs { border-style: dashed; }
.gl__chip--plain { box-shadow: none; cursor: default; border-color: transparent; background: transparent; }
.gl__p { font: 800 18px var(--gloss); color: var(--soft-ink); align-self: flex-end; padding-bottom: 8px; }
.gl__nm { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 6px; padding-top: 22px; position: relative; border-top: 3px solid var(--purple); }
.gl__nmlab { position: absolute; top: 2px; left: 0; font: 800 12px 'Karla', sans-serif; letter-spacing: 0.02em; color: #5c3f8f; white-space: nowrap; }
.gl__en { margin: 0; color: var(--soft-ink); font-size: 16px; line-height: 1.4; }
.gl__note { margin: 0; font-size: 13px; font-weight: 700; color: #6b6496; }
.gl__watch:empty { display: none; }
.gl__watch { display: grid; gap: 8px; padding: 10px; border: 2px dashed var(--ink); background: #faf9fe; }
.gl--small .gl__chip { font-size: 15px; min-height: 40px; padding: 4px 8px; }
/* fingerspelling: one letter clip after another */
.fsp__letters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fsp__letters span { min-width: 36px; padding: 4px 6px; text-align: center; font: 800 18px var(--gloss); border: 2px solid var(--ink); background: #fff; }
.fsp__letters span.is-now { background: var(--yellow); }
.fsp__note { margin: 0; text-align: center; font-size: 13.5px; font-weight: 700; color: #6b6496; }
/* sign quizzes: small players as options */
.sq-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.sq-opt { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.sq-opt .btn { width: 100%; }
.sq-opt.is-right .sp__box { box-shadow: 0 0 0 5px var(--green); }
.sq-opt.is-wrong .sp__box { box-shadow: 0 0 0 5px var(--pink); }
.opt.gl-opt { font: 800 18px var(--gloss); letter-spacing: 0.03em; }
.sq-type { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sq-type input { min-height: 48px; font: 800 18px var(--gloss); text-transform: uppercase; padding: 6px 12px; border: 3px solid var(--ink); max-width: 100%; }
/* sign it: the learner signs, then compares and ticks */
.signit { display: grid; gap: 14px; }
.signit__task { font: 800 clamp(18px, 2.4vw, 22px) 'Karla', sans-serif; color: var(--ink); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); cursor: pointer; }
.checks input { width: 22px; height: 22px; flex: none; }
.mirror { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1); border: 4px solid var(--ink); background: var(--ink); justify-self: center; }
/* matching signs and meanings */
.smatch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.smatch__col { display: grid; gap: 10px; min-width: 0; }
.smatch button.opt[aria-pressed="true"] { background: var(--yellow); }
.smatch .sp--small { max-width: none; }
@media (max-width: 520px) { .smatch { grid-template-columns: 1fr; } }
/* honesty notices and sign word list */
.notice { display: grid; gap: 8px; }
.notice ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.notice li { line-height: 1.45; }
/* an exam's notices: one line, the full list under "read the notes" */
.notice--short { gap: 6px; padding-top: 12px; padding-bottom: 12px; }
.notice__line { margin: 0; font-weight: 700; line-height: 1.45; color: var(--ink); }
.notice__more summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.notice__more summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.notice__more ul { margin-top: 6px; }
.notice__more p { margin: 6px 0 0; line-height: 1.5; color: var(--soft-ink); }
.swl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.swl > li[data-id] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); }
.swl .swl__gl { font: 800 19px var(--gloss); letter-spacing: 0.03em; }
.swl .swl__en { font-weight: 700; color: var(--soft-ink); }
.swl .swl__how { grid-column: 1 / -1; margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--soft-ink); }
.swl .swl__act { display: flex; gap: 8px; }
.swl .swl__play { grid-column: 1 / -1; }
.swl .swl__play:empty { display: none; }
.swl .wl-day h3 { margin: 18px 0 2px; font: 900 18px 'Unbounded', sans-serif; text-transform: lowercase; color: var(--paper); }
/* the unit pickers (signs, cards): long unit names never push the select past a phone's edge */
.filters > .field { max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.filters .field select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .sp__tap i { transition: none; } }
/* ===== end learning sign ===== */
