/* ASL tutor page (asl-tutor.html). Uses the site's tokens from base.css, so light/dark themes follow the site. */
.asl { padding-block: 32px 64px; }
.asl__title { font-family: var(--font-serif); color: var(--text-heading); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.asl__lede { max-width: var(--measure); color: var(--text-soft); font-size: 1.08rem; margin: 0 0 24px; }

.asl__intro { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); max-width: 720px; }
.asl__notes { margin: 0 0 16px; padding-left: 1.2em; color: var(--text); }
.asl__notes li { margin-bottom: 6px; }
.asl__hand { border: 0; padding: 0; margin: 0 0 20px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.asl__hand legend { float: left; margin-right: 6px; color: var(--text-soft); }
.asl__hand label { cursor: pointer; }

.asl__status { min-height: 1.5em; color: var(--text-soft); margin: 14px 0; }
.asl__status[data-kind="error"] { color: #b42318; }
.asl__status[data-kind="ok"] { color: #2e7d32; }
[data-theme="dark"] .asl__status[data-kind="error"] { color: #f97066; }
[data-theme="dark"] .asl__status[data-kind="ok"] { color: #7cc488; }

.asl__tutor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.asl__tutor[hidden] { display: none; }
.asl__stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.asl__stage video, .asl__stage canvas { display: block; width: 100%; height: auto; transform: scaleX(-1); /* mirror view */ }
.asl__stage canvas { position: absolute; inset: 0; height: 100%; }
.asl__seen { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, 0.6); color: #fff; border-radius: 8px;
  padding: 6px 10px; font: 600 1.05rem var(--font-mono); display: flex; flex-direction: column; }
.asl__seen small { font-weight: 400; font-size: 0.78rem; opacity: 0.8; }

.asl__panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm); }
.asl__target { text-align: center; }
.asl__label { display: block; color: var(--text-soft); font-size: 0.9rem; }
.asl__letter { display: block; font: 700 4.2rem/1.1 var(--font-serif); color: var(--accent); }
.asl__holdbar { height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.asl__holdbar div { height: 100%; width: 0; background: var(--accent); transition: width 0.08s linear; }
.asl__feedback { min-height: 1.4em; margin: 4px 0; font-weight: 600; }
.asl__feedback[data-kind="success"] { color: #2e7d32; }
[data-theme="dark"] .asl__feedback[data-kind="success"] { color: #7cc488; }
.asl__ref { display: block; width: 100%; height: auto; max-width: 240px; margin: 8px auto; border-radius: var(--radius); }
.asl__tips { list-style: none; padding: 0; margin: 8px 0; min-height: 3em; }
.asl__tips li { background: var(--accent-soft); border-radius: 6px; padding: 6px 10px; margin-bottom: 6px; color: var(--text); }
.asl__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.asl__actions .btn { flex: 1; }
.asl__progress { color: var(--text-soft); font-size: 0.9rem; margin: 12px 0 0; }
.asl__link { background: none; border: 0; padding: 0; color: var(--accent-ink); cursor: pointer; text-decoration: underline; font: inherit; }

.asl__about { max-width: var(--measure); margin-top: 40px; }
.asl__about h2 { font-family: var(--font-serif); color: var(--text-heading); }

@media (max-width: 820px) {
  .asl__tutor { grid-template-columns: 1fr; }
  .asl__ref { max-width: 180px; }
}
