/**
 * Modern CSS Reset
 *
 * @package Svaros_Partneriai
 */

*,
*::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%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	min-height: 100vh;
	line-height: var(--sp-leading-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul,
ol {
	list-style: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

button {
	cursor: pointer;
	font-family: inherit;
	background: none;
	border: none;
	color: inherit;
}

/* Screen reader text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	padding: var(--sp-space-2) var(--sp-space-4);
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--sp-color-primary);
	color: var(--sp-color-white);
	z-index: var(--sp-z-toast);
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -100%;
	left: var(--sp-space-4);
	z-index: var(--sp-z-toast);
	padding: var(--sp-space-2) var(--sp-space-4);
	background: var(--sp-color-primary);
	color: var(--sp-color-white);
	border-radius: var(--sp-radius-md);
}

.skip-link:focus {
	top: var(--sp-space-4);
}
