/* ==========================================================================
   reset.css — ریست مینیمال و مدرن
   بر پایه‌ی normalize و custom شده برای Delmonti.
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

body {
	min-height: 100vh;
	min-height: 100dvh; /* iOS dynamic viewport (نوار مرورگر) */
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	fill: currentColor;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: none;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

ul[role='list'],
ol[role='list'] {
	list-style: none;
}

ul,
ol {
	list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

#root,
#main {
	isolation: isolate;
}

table {
	border-collapse: collapse;
}

:where(:focus-visible) {
	outline: 2px solid var(--color-accent, #0071e3);
	outline-offset: 2px;
	border-radius: 4px;
}

/* جلوگیری از انیمیشن برای کاربرانی که ترجیح می‌دهن. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
