/* ============================================================
 * ds-upload — file dropzone component (MODEC / MUI-style).
 *
 * Layout: centered column with a brand-blue document icon, a
 * "Click to upload or drag and drop" primary line, and a small
 * supporting hint below ("PNG, JPG, PDF (max. 10MB)").
 *
 * Click anywhere on the surface to open the file picker (handled
 * by JS). Drag-over state is signalled with `.is-dragover`; a
 * "files selected" state with `.is-filled`.
 *
 * Variants:
 *   • default — generous padding for the primary upload of a page
 *   • --sm    — compact, for secondary uploads (e.g. inline within
 *               a form section)
 * ============================================================ */
@layer components {

.ds-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  text-align: center;
  background: var(--color-bg-surface);
  border: 1.5px dashed var(--color-border-default);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-family-sans);
}
.ds-upload:hover,
.ds-upload:focus-visible {
  border-color: var(--color-accent);
  background: rgba(63, 91, 255, 0.03);
  outline: none;
}
.ds-upload.is-dragover {
  border-color: var(--color-accent);
  background: rgba(63, 91, 255, 0.06);
}
.ds-upload.is-filled {
  border-style: solid;
  border-color: var(--color-border-default);
}

.ds-upload__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.ds-upload__primary {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0.15px;
}
.ds-upload__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: pointer;
}

.ds-upload__support {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}

/* Compact variant — for inline / secondary uploads. */
.ds-upload--sm {
  padding: 18px 16px;
  gap: 6px;
}
.ds-upload--sm .ds-upload__icon { width: 24px; height: 24px; }
.ds-upload--sm .ds-upload__primary { font-size: 14px; }
.ds-upload--sm .ds-upload__support { font-size: 12px; }

} /* end @layer components */
