:root {
	--hover: #c8daf2;
}

.home-header {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	gap: .25rem;
	padding: .5rem .5rem .25rem;
}

.home-header h1 {
	margin: 0;
}

.home-header h1 a {
	color: inherit;
	text-decoration: none;
}

.search-container {
	display: inline-block;
	position: relative;
	text-align: left;
}

#artist-search {
	border-radius: 0;
}

#search-results {
	position: absolute;
	z-index: 1;
	top: calc(100% - 1px);
	left: 0;
	right: 0;
	border: 1px solid #9aa9bd;
	border-top: 0;
	border-radius: 0;
	background: white;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

#search-results:empty {
	display: none;
}

#search-results ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#search-results a {
	display: block;
	padding: 4px 8px;
	color: inherit;
	text-decoration: none;
}

#search-results a:hover,
#search-results a:focus-visible {
	background: var(--hover);
	outline: none;
	box-shadow: none;
	border: 0;
}

.growth {
	max-width: 1000px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.growth-period > h2 {
	margin: 0;
	font-size: 1.25rem;
	text-align: center;
}

.growth-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.growth-chart {
	margin: 0;
}

.listener-chart-svg {
	display: block;
	width: 100%;
	height: auto;
}

.listener-chart {
	position: relative;
}

.artist-page {
	max-width: 700px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.artist-page h1 {
	margin-top: 0;
}

.artist-listener-count:empty {
	display: none;
}

.artist-page > a {
	display: inline-block;
	margin-bottom: 1rem;
}

.artist-page .listener-chart {
	max-width: 700px;
}

.listener-chart-tooltip {
	position: absolute;
	z-index: 1;
	padding: .375rem .5rem;
	border: 1px solid black;
	border-radius: 0;
	background: white;
	box-shadow: 2.25px 2.25px 0 rgba(0, 0, 0, 0.25);
	font-size: .75rem;
	line-height: 1.35;
	pointer-events: none;
	white-space: nowrap;
}

.growth-chart figcaption {
	margin: 0 0 .5rem;
	text-align: center;
}

.growth-change {
	margin-top: .5rem;
	color: #00a83a;
	font-weight: bold;
	text-align: center;
	white-space: nowrap;
}

@media (max-width: 620px) {
	.growth-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
