// A mixin to make it easy to add Material elevation
// to elements with CSS.

@mixin elevation ( $dp ) {
	@if $dp==0 {
		box-shadow: none;
	}
	@else if $dp==1 {
		box-shadow:
			0 1px 1px 0 color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 2px 1px -1px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 1px 3px 0 color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==2 {
		box-shadow:
			0 2px 2px 0 color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 3px 1px -2px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 1px 5px 0 color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==3 {
		box-shadow:
			0 3px 4px 0 color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 3px 3px -2px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 1px 8px 0 color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==4 {
		box-shadow:
			0 4px 5px 0 color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 1px 10px 0 color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 2px 4px -1px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==6 {
		box-shadow:
			0 6px 10px 0 color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 1px 18px 0 color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 3px 5px -1px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==8 {
		box-shadow:
			0 8px 10px 1px color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 3px 14px 2px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 5px 5px -3px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==9 {
		box-shadow:
			0 9px 12px 1px color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 3px 16px 2px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 5px 6px -3px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==12 {
		box-shadow:
			0 12px 17px 2px color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 5px 22px 4px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 7px 8px -4px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==16 {
		box-shadow:
			0 16px 24px 2px color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 6px 30px 5px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 8px 10px -5px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	} @else if $dp==24 {
		box-shadow:
			0 24px 38px 3px color-mix(in srgb, var(--color-neutral-100) 14%, transparent),
			0 9px 46px 8px color-mix(in srgb, var(--color-neutral-100) 12%, transparent),
			0 11px 15px -7px color-mix(in srgb, var(--color-neutral-100) 20%, transparent);
	}
}
