/* Carregando (esqueleto), vazio e erro (D-06).
   Container em carregamento: aria-busy="true" + texto .sr-only "Carregando…" em role="status". Os blocos .skeleton são decorativos (aria-hidden). */
.skeleton {
  display: block; height: 1rem; border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--c-ink-200) 0%, var(--c-ink-50) 50%, var(--c-ink-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.4s linear infinite;
}
.skeleton--title { height: 1.5rem; width: 60%; margin-bottom: var(--sp-3); }
.skeleton--text + .skeleton--text { margin-top: var(--sp-2); }
.skeleton--short { width: 40%; }
.skeleton--block { height: 8rem; border-radius: var(--r-md); }
.skeleton--circle { width: 3rem; height: 3rem; border-radius: 50%; }
@keyframes skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Estados vazio / erro (inline) */
.state { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-4); text-align: center; border: 1px dashed var(--c-ink-200); border-radius: var(--r-lg); background: var(--c-ink-50); }
.state .icon { width: 2.5rem; height: 2.5rem; color: var(--c-ink-500); }
.state__title { margin: 0; font-size: var(--fs-400); }
.state__text { margin: 0; max-width: 32rem; color: var(--c-ink-700); }
.state--error { border-style: solid; border-color: var(--c-danger); background: var(--c-danger-bg); }
.state--error .icon { color: var(--c-danger); }

/* Páginas de erro (404, 500) */
.error-page { padding-block: var(--sp-8); text-align: center; }
.error-page__code { display: block; margin-bottom: var(--sp-3); font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--c-primary-700); }
.error-page .lead { max-width: 36rem; margin-inline: auto; }
.error-page .cluster { justify-content: center; margin-top: var(--sp-5); }

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--c-ink-200); }
}
