/* css/accessibility-panel.css
 *
 * Wave 16.I (2026-05-13) — Accessibility persona panel + Media Board
 * template. Lives in the third rail tab "♿ Access" alongside the
 * Assistant + Discussion panels.
 *
 * Self-contained — do NOT bleed into builder.css. Lifts cleanly into
 * /use.html if we ever surface persona-aware rendering there.
 */

.access-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.access-section {
  padding: 14px;
  border-bottom: 1px solid #f1f1f4;
}
.access-section:last-child { border-bottom: 0; }

.access-section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2b2e34;
}
.access-section-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8d9098;
  line-height: 1.4;
}

/* Persona toggle list — each persona is a row with icon + label
 * + checkbox-styled toggle on the right. */
.persona-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.persona-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.persona-row:hover {
  background: #fafafa;
  border-color: #e6e6ea;
}
.persona-row[data-active="true"] {
  background: #fff7e6;
  border-color: #f4a833;
}
.persona-row-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex: 0 0 auto;
  /* No emoji-name announcement — VO will speak the label after. */
  aria-hidden: true;
}
.persona-row-text {
  flex: 1 1 auto;
  min-width: 0;
}
.persona-row-label {
  font-weight: 600;
  font-size: 13px;
  color: #2b2e34;
}
.persona-row-hint {
  font-size: 11px;
  color: #6c6f76;
  line-height: 1.3;
}
.persona-row-toggle {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #d8d8de;
  border-radius: 4px;
  background: #fff;
  position: relative;
}
.persona-row[data-active="true"] .persona-row-toggle {
  background: #f4a833;
  border-color: #f4a833;
}
.persona-row[data-active="true"] .persona-row-toggle::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.persona-row:focus-within {
  outline: 2px solid #f4a833;
  outline-offset: 2px;
}

.persona-summary {
  margin-top: 12px;
  padding: 8px 10px;
  background: #f4f7fa;
  border-radius: 8px;
  font-size: 12px;
  color: #2b2e34;
  line-height: 1.4;
}
.persona-summary-empty {
  color: #8d9098;
  font-style: italic;
}

/* ── Media Board section ─────────────────────────────────────── */

.media-board-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.media-board-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 260px;
  border: 1px solid #d8d8de;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
  background: #fff;
  color: #2b2e34;
}
.media-board-textarea:focus {
  outline: 2px solid #f4a833;
  outline-offset: 1px;
  border-color: #f4a833;
}
.media-board-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.media-board-counter {
  font-size: 11px;
  color: #8d9098;
  font-variant-numeric: tabular-nums;
}
.media-board-submit {
  appearance: none;
  border: 0;
  background: #f4a833;
  color: #2b2e34;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.media-board-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.media-board-msg {
  margin: 0;
  font-size: 12px;
  color: #6c6f76;
  min-height: 16px;
}
.media-board-msg--err { color: #c84c3a; }
.media-board-msg--ok  { color: #2f7d31; }
