/** Global styles that apply anywhere **/
:root {
	background-color: var(--brand-2);
}

body {
	overflow-y: scroll;
}

ul,
ol {
	font-weight: 400;
	margin: 0;
	padding: 0 0 0 1.5em;
	font-size: 0.875rem;
}

p,
b,
span {
	line-height: 1.4285;
	font-weight: 400;
	color: var(--neutral-1);
	font-size: 0.875rem;
}

a {
	line-height: 1.4285;
	font-weight: 400;
	font-size: 0.875rem;
}

p {
	margin: 0;
	padding: 0;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
	color: var(--neutral-1);
	font-weight: 500;
	margin: 0;
	padding: 0;
}

h5 {
	font-size: 0.875rem;
}

/* General rules */
html,
body {
	width: 100%;
	min-height: 100vh;
	font-family: 'Golos Text', sans-serif;
}

@supports (height: 100dvh) {
	html,
	body {
		min-height: 100dvh;
	}
}

b,
strong {
	color: var(--neutral-1);
	font-weight: 500;
	margin: 0;
	padding: 0;
}

button,
input[type='submit'] {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.625rem;

	height: 2.5rem;
	width: fit-content;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;

	cursor: pointer;
	border: none;

	background-color: var(--neutral-1);
	color: var(--white);

	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;

	:disabled {
		background-color: #ccc;
		cursor: not-allowed;
	}
}

button:hover,
input[type='submit']:hover {
	background-color: var(--neutral-3);
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

input {
	padding: 0.5rem 1rem;
	height: 1.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--neutral-4);
	font: inherit;
	font-weight: 400;
	font-size: 0.875rem;
}

input:focus {
	outline-color: var(--brand-1);
}

input:disabled {
	opacity: 0.5;
}

input:read-only {
	background-color: var(--neutral-5);
}

label {
	font-size: 0.875rem;
}

label:has(input:disabled),
input:disabled ~ label {
	opacity: 0.5;
}

input[type='checkbox'] {
	padding: 0;
	margin: 0;
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--brand-1);
	position: relative;

	&:indeterminate:after {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		content: '';
		display: block;
		width: 100%;
		height: 100%;
		border-radius: 0.125rem;
		background-color: var(--brand-1);
		background-image: url("data:image/svg+xml,%3Csvg width='10' height='2' viewBox='0 0 10 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.75 0.75L8.75 0.750001' stroke='%231e1d1b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 10px 2px;
	}
}
