.homepage {
	overflow-x: hidden;
}

.problems {
	display: inline-block;
	position: relative;
}

.eslint-actions {
	display: inline-flex;
	flex-wrap: wrap;
	flex-direction: column;
	width: 100%;
	gap: 1rem;

	@media all and (min-width: 640px) {
		flex-direction: row;
	}
}

.eslint-install-code-wrapper {
	position: relative;
}

.eslint-install-code {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	background-color: var(--lightest-background-color);
	border-radius: var(--border-radius);
	border: 1px solid var(--divider-color);
	padding: 0.75rem 1.25rem 0.75rem calc(0.5rem + 1vw);
	white-space: nowrap;
	margin-top: 1.5rem;
	margin-block-start: 1.5rem;
	overflow-x: auto;
	max-width: 100%;
	color: var(--headings-color);

	[data-theme="dark"] & {
		background-color: var(--color-neutral-700);
	}

	code {
		color: var(--headings-color);
	}

	input {
		all: unset;
		min-width: 30ch;
		color: inherit;
		font-family: var(--mono-font);
	}
}

.eslint-install-code__btn {
	padding: 0;

	.c-icon {
		color: var(--body-text-color);
	}

	&:hover,
	&:focus,
	&:active {
		.c-icon {
			color: var(--link-color);
		}
	}

	&[data-copied="true"] {
		.c-icon {
			color: var(--link-color);
		}
	}
}

.eslint-install-code__announcement {
	padding: 0.25rem 0.75rem;
	font-size: 0.875rem;
	font-size: var(--step--1);
	border-radius: var(--border-radius);
	display: block;
	position: absolute;
	top: calc(100% + 0.5rem);
	offset-block-start: calc(100% + 0.5rem);
	transition: opacity 1s linear 3s;

	&[data-fades-out] {
		opacity: 0;
	}
}

.eslint-versions-col {
	display: flex;
	flex-direction: column;

	@media all and (min-width: 1023px) {
		align-items: flex-end;
	}

	@media all and (min-width: 800px) {
		padding-block-start: var(--space-xl-2xl);
		padding-top: var(--space-xl-2xl);
	}
}

.eslint-versions-container {
	display: flex;
	flex-direction: column;
	padding-block-end: 2rem;
	padding-bottom: 2rem;
}

.eslint-versions {
	margin-top: 3rem;
	margin-block-start: 3rem;
	margin-bottom: 1rem;
	margin-block-end: 1rem;
	display: inline-flex;
	flex-direction: column;

	dt {
		border-bottom: 1px solid var(--divider-color);
		margin-bottom: 0.5em;
		padding-right: 1rem;
		border-block-end: 1px solid var(--divider-color);
		padding: 0.25em 0;
		margin-block-end: 0.5em;
		padding-inline-end: 1rem;
	}

	dd {
		margin-left: 0;
		margin-bottom: 1rem;
		padding-right: 1rem;
		margin-inline-start: 0;
		margin-block-end: 1rem;
		padding-inline-end: 1rem;
		display: flex;
		align-items: center;
	}

	dd:last-of-type {
		margin-bottom: 0;
		margin-block-end: 0;
	}

	.c-icon {
		margin-right: 0.5rem;
		margin-inline-end: 0.5rem;
	}
}

.eslint-top-sponsors {
	padding-top: 1.5rem;

	.sponsor-text {
		font-size: 1.2rem;
		padding-bottom: 0.25rem;
	}

	.sponsors {
		gap: 0.5rem;
		align-items: center;

		/* reset */
		justify-content: unset !important;
		margin-bottom: unset !important;
		margin-block-end: unset !important;

		@media all and (min-width: 640px) {
			column-gap: 1rem;
		}

		@media all and (max-width: 1023px) {
			margin-top: unset !important;
			margin-block-start: unset !important;
		}
	}
}

/* homepage metrics section */
.metrics {
	background-color: var(--lightest-background-color);
	color: var(--link-color);
	font-size: 1.125rem;
	border-radius: var(--border-radius);
	padding: var(--space-l-2xl) 0;

	@media all and (min-width: 768px) {
		display: flex;
		justify-content: space-evenly;
	}

	@media all and (min-width: 1024px) {
		padding: var(--space-l-2xl);
	}
}

.metrics__item {
	flex: 1;
	display: block;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.metrics__value {
	display: block;
	font-size: var(--step-6);
	line-height: 1;
	font-family: var(--mono-font);
	flex: 9999;
	margin-bottom: 0.75rem;
	margin-block-end: 0.75rem;

	@media all and (min-width: 1536px) {
		font-size: var(--step-4);
	}
}

/* Homepage Features Section */
.features-wrapper.grid {
	align-items: center;
}

.features {
	border-left: 4px solid var(--lighter-background-color);
	padding-left: 1.5rem;
	border-inline-start: 4px solid var(--lighter-background-color);
	padding-inline-start: 1.5rem;
}

.feature {
	padding: 2rem 0;

	&:not(:last-of-type) {
		border-bottom: 1px solid var(--divider-color);
		border-block-end: 1px solid var(--divider-color);
	}

	.donate-page & {
		border-bottom: none;
		border-block-end: none;
	}
}

.feature__title {
	font-size: var(--step-1);
	font-family: var(--text-font);
	margin-bottom: 0.5rem;
	margin-block-end: 0.5rem;
}

.feature__description {
	margin-bottom: 1.25rem;
	margin-block-end: 1.25rem;
}

.feature__details-link {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

.features-image {
	display: none;

	img {
		margin: 2rem auto;

		.donate-page & {
			overflow: hidden;
			display: block;
			border-radius: var(--border-radius);
		}
	}

	@media all and (min-width: 1023px) {
		display: block;
	}
}

.deprecation-notice {
	font-size: 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 4px 0;
	background-color: var(--color-neutral-500);
	color: white;

	a {
		color: white;
		padding: 0 4px;
	}

	.hourglass-icon {
		margin-right: 5px;
	}

	@media all and (max-width: 865px) {
		display: block;
		text-align: center;
		padding: 4px 6px;

		.hourglass-icon {
			position: relative;
			margin-right: 0;
			top: 2px;
		}
	}
}
