/* reskin-materials.css — course-detail Materials panel interactions.
   The Import surface (#surface-import) was reskinned to the App_Shell handoff in
   PR2f and now lives in appshell.css under #lysia-root #surface-import; the
   former #surface-import rules here were superseded and removed. What remains is
   the #surface-courses materials drag / inline-edit chrome, still live (see
   courses.js: mat-kind-btn, mat-name-edit, is-drop-target). */

/* ===== course-detail Materials panel — relabel / rename interactions =======
   Scoped under #surface-courses so it can't leak to the Import surface. The
   base chip/row/folder styling lives in style.css; this only adds the drag,
   inline-edit, and hover affordances for the per-course materials tree. */

/* Drag affordance on a material row (graded rows aren't draggable). */
#surface-courses .mat-row[draggable="true"] { cursor: grab; }
#surface-courses .mat-row[draggable="true"]:active { cursor: grabbing; }
#surface-courses .mat-row.is-dragging { opacity: 0.4; }

/* Kind section as a drop target: tint + accent ring while a row hovers it. */
#surface-courses .folder.is-drop-target {
  background: var(--accent-quiet);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  border-radius: var(--r-sm);
}

/* Kind chip rendered as a real <button> — reset UA chrome, keep the chip look,
   add a clickable hover. */
#surface-courses .mat-kind-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  line-height: 1.4;
  cursor: pointer;
  transition: background var(--dur-fast, 150ms) ease, color var(--dur-fast, 150ms) ease;
}
#surface-courses .mat-kind-btn:hover { background: var(--accent); color: var(--accent-ink); }
#surface-courses .mat-kind-btn.ai:hover { background: var(--accent); color: var(--accent-ink); }
#surface-courses .mat-kind-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Title is double-click-to-rename: text cursor + subtle dotted underline on hover. */
#surface-courses .mat-name-edit { cursor: text; }
#surface-courses .mat-name-edit:hover {
  text-decoration: underline dotted var(--ink-subtle);
  text-underline-offset: 2px;
}
#surface-courses .mat-name-edit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Inline editors (kind <select> + rename <input>) — match the cream/slate
   form vocabulary used by the Import review table. */
#surface-courses .mat-kind-select,
#surface-courses .mat-name-input {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 4px 7px;
}
#surface-courses .mat-name-input { flex: 1; min-width: 0; }
#surface-courses .mat-kind-select { flex: none; }
#surface-courses .mat-kind-select:focus-visible,
#surface-courses .mat-name-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
