/* ==========================================================================
   practice-mode.css -- the read-only viewer's "Practice mode" pill and note on
   the course pages (courses.html, course-viewer.html, form.html).
   --------------------------------------------------------------------------
   practice-mode.js reveals the pill (`.js-practice-badge`, static in each page's
   header) and puts `is-practice` on <body> once GET /me says the signed-in
   person is a viewer. The look is the dashboard's View-only pill
   (dashboard-shell.css section 7), so the same person reads the same signal on
   every page; the tokens are base.css's, which every course page loads. Outlined,
   not filled: a state label, not an alert. Hidden by base.css's [hidden] rule.
   ========================================================================== */

.practice-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 2px var(--spacing-sm);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-light);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  white-space: nowrap;
  cursor: help;
}

.practice-badge__icon {
  flex-shrink: 0;
}

/* The one-line note: the sentence a finished practice run shows, or the line
   where a document a viewer cannot open would have opened. It explains, it does
   not warn. */
.practice-note {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  margin: var(--spacing-xs) 0;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* Centred on the FIRST line, so a note that wraps on a phone keeps the eye
   beside its opening words: (1.5 line-height minus the 12px glyph) / 2. */
.practice-note__icon {
  flex-shrink: 0;
  margin-top: 0.32em;
}
