/* Learning supports (v2/supports.js; docs/platform/ACCESSIBILITY-POWER-UPS.md part c): the family page card, the
   sitting and break notes, and the classes the family's choices set on <html>. Nothing here is per course. */

/* The family page card. */
.sup-card > summary { cursor: pointer; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 4px; }
.sup-field { display: grid; gap: 4px; align-content: start; }
.sup-field select, .sup-pu select { font: inherit; min-height: 40px; max-width: 100%; }
.sup-pu { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 6px 0 0; }
.sup-pu legend { padding: 0 4px; }
.sup-pu-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.2fr) auto; gap: 8px; align-items: center; padding: 4px 0; }
.sup-lock { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.sup-lock input { width: 18px; height: 18px; margin: 0; }
@media (max-width: 520px) { .sup-pu-row { grid-template-columns: 1fr auto; } .sup-pu-row > label:first-child { grid-column: 1 / -1; } }

/* The sitting and break notes: at the bottom corner, never over the work's own buttons for long. */
.sup-note { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(11,31,58,.2); margin: 0; }

/* Tap instead of drag: the tapping way, first, at the top of every drag activity. */
html.sup-tap :is(.rm-pairs, .rm-order, [data-rc-shelf], .sci-sort, .sci-equation, .sci-leafdiag, .sci-me, .sci-proc, .sci-willow, .bioa-dt, .bioa-cs)::before {
  content: "Tap a card, then tap where it goes. Or use Tab and Enter.";
  display: block; font-weight: 600; font-size: .92rem; margin: 0 0 8px; color: var(--ink);
}
html.sup-tap .rm-linemap + .rm-line-help, html.sup-tap .nb-labelbar .meta { font-weight: 600; }

/* Speak instead of type: the mic as the main button. The page code puts it first (v2/blocks.js coach panel,
   v2/diagnose.js Show my thinking), so the Tab order matches the screen; the tutor page, Explain it and the teaching
   coach already have it first. */
html.sup-speak .c-form .c-mic { background: var(--navy, #0b2a5e); color: #fff; border-color: transparent; width: 48px; }
html.sup-speak .c-form .c-mic.on { background: var(--magenta, #c2185b); }

/* Every drag also by tapping: a notebook label picked up by a tap (v2/notebook.js) shows it is in hand. */
.nb .nb-lbl.nb-carry rect { stroke: var(--nb-focus, #0b2a5e); stroke-width: 3; stroke-dasharray: 5 3; }
