/* ── Core Mobile List — ARKAN UI core ─────────────────────────
   Scoped under .core-mlist*. Sibling to core-table.css's .core-table* —
   same design tokens, same states (loading/empty/error), card layout
   instead of rows. Pages switch to this under a container-width breakpoint
   (see documents.js's dmwv4ModeOf() for the established measurement
   pattern) rather than shrinking the desktop table. */

.core-mlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.core-mlist__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.core-mlist__item:active {
  background: color-mix(in srgb, var(--accent-primary) 6%, transparent);
}

/* ── Card content utility classes (used inside renderItem()) ── */
.core-mlist__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.core-mlist__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.core-mlist__date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.core-mlist__meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.core-mlist__meta {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.core-mlist__mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.core-mlist__sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ── Loading skeleton ── */
.core-mlist__item--skeleton {
  cursor: default;
  gap: 8px;
}
.core-mlist__skeleton-bar {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: var(--border-subtle);
  animation: core-mlist-pulse 1.3s ease-in-out infinite;
}
@keyframes core-mlist-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .core-mlist__skeleton-bar { animation: none; opacity: 0.7; }
}

/* ── Empty / error states ── */
.core-mlist__empty,
.core-mlist__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
}
.core-mlist__empty-icon {
  font-size: 20px;
  color: var(--text-disabled);
}
