.navbar__inner {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	max-width: 80rem;
	margin-left: auto;
	margin: auto;
}

@media (min-width: 640px) {
	.navbar__inner {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media (min-width: 1024px) {
	.navbar__inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

.main-wrapper {
	> :not(.hero) {
		max-width: 96rem;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	> .theme-back-to-top-button {
		width: 3rem;
	}
}

// Theme the theme switcher icon to always be white
.navbar__items.navbar__items--right > :nth-child(2),
.navbar-sidebar__brand > :nth-child(2) {
	color: #f5f6f7;

	> :first-child:hover {
		background-color: rgba($color: #000000, $alpha: 0.3);
		border-radius: 0.375rem;
	}
}

.navbar-sidebar__back,
.navbar__toggle {
	color: #f5f6f7;
}

// Search
[data-theme='light'] .DocSearch {
	/* --docsearch-primary-color: var(--ifm-color-primary); */
	/* --docsearch-text-color: var(--ifm-font-color-base); */
	--docsearch-muted-color: var(--ifm-color-secondary-darkest);
	--docsearch-container-background: rgba(94, 100, 112, 0.7);
	/* Modal */
	--docsearch-modal-background: var(--ifm-color-secondary-lighter);
	/* Search box */
	--docsearch-searchbox-background: var(--ifm-color-secondary);
	--docsearch-searchbox-focus-background: var(--ifm-color-white);
	/* Hit */
	--docsearch-hit-color: var(--ifm-font-color-base);
	--docsearch-hit-active-color: var(--ifm-color-white);
	--docsearch-hit-background: var(--ifm-color-white);
	/* Footer */
	--docsearch-footer-background: var(--ifm-color-white);
}

[data-theme='dark'] .DocSearch {
	--docsearch-text-color: var(--ifm-font-color-base);
	--docsearch-muted-color: var(--ifm-color-secondary-darkest);
	--docsearch-container-background: rgba(47, 55, 69, 0.7);
	/* Modal */
	--docsearch-modal-background: var(--ifm-background-color);
	/* Search box */
	--docsearch-searchbox-background: var(--ifm-background-color);
	--docsearch-searchbox-focus-background: var(--ifm-color-black);
	/* Hit */
	--docsearch-hit-color: var(--ifm-font-color-base);
	--docsearch-hit-active-color: var(--ifm-color-primary-contrast-background);
	--docsearch-hit-background: var(--ifm-color-emphasis-100);
	/* Footer */
	--docsearch-footer-background: var(--ifm-background-surface-color);
	--docsearch-key-gradient: linear-gradient(-26.5deg, var(--ifm-color-emphasis-200) 0%, var(--ifm-color-emphasis-100) 100%);
}
