.results {
	display: flex;
	flex-direction: column;
	row-gap: 3rem;
	min-width: 0;
}

/* HEADER */

.results .header {
	display: flex;
	align-items: center;
	column-gap: 0.5rem;
	color: var(--color-black);
	font-family: var(--heading-font);
	font-size: 20px;
}

.results .header h2 {
	color: var(--color-black);
	font-family: var(--heading-font);
	font-size: 20px;
	font-weight: normal;
	margin: 0;
}

.results .header .experiment-alias {
	display: flex;
	align-items: center;
	column-gap: 0.5rem;
	background: var(--color-white);
	border-radius: 50px;
	padding: 0.25rem 1.5rem;
	border: 1px solid #e0e0e0;
	cursor: pointer;
}

.results .header .experiment-alias span {
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 20px;
	border: 1px solid transparent;
	text-wrap: pretty;
	text-align: left;
}

.results .header .experiment-alias span[contenteditable='true'] {
	outline: 0;
	border-bottom: 1px solid var(--text-color-gray);
}

.results .variant-anchors {
	display: flex;
	justify-content: flex-end;
	column-gap: 0.5rem;
	margin-top: 0.5rem;
}

.results .variant-anchors button {
	color: var(--color-darkblue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* TABLES */

.results .tables {
	display: flex;
	flex-direction: column;
	row-gap: 2rem;
}

.results .card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0px 2px 6px 0px #00000040;
}

.results .card .subgrid {
	display: flex;
}

.results .card h2 {
	text-align: center;
	color: var(--color-black);
	font-size: 18px;
	font-weight: normal;
	margin: 0 0 1rem;
}

.results .table {
	display: grid;
	grid-auto-rows: min-content;
	color: var(--text-color-gray);
	padding-bottom: 2rem;
}

.results .table.scrollable {
	overflow-x: scroll;
}

.results .table > span {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem 0;
	border-top: 1px solid var(--color-border-gray);
	border-left: 1px solid var(--color-border-gray);
	background: var(--color-white);
	overflow: hidden;
	white-space: nowrap;
}

.results .table .heading {
	background: var(--color-lightgray);
	border-top: none;
	&:first-child {
		border-left: none;
	}
}

.results .table .left-align {
	justify-content: flex-start;
	padding-left: 1rem;
	border-left: none;
}

.results .table .border-right {
	border-right: 2px solid var(--text-color-gray);
}

.results .table .border-right + span {
	border-left: 0;
}

.results .table .double-column {
	grid-column: span 2;
}

.results .table .positive {
	background: var(--color-lightgreen);
	color: var(--text-color-green);
	font-weight: bold;
}

.results .table .negative {
	background: var(--color-lightred);
	color: var(--text-color-red);
	font-weight: bold;
}

/* SCROLLBAR */

.results .table::-webkit-scrollbar {
	box-shadow: 0px -1px 0px 0px #f0f0f0 inset, 0px 1px 0px 0px #e8e8e8 inset;
	height: 0.5rem;
}

.results .table::-webkit-scrollbar-track {
	background: var(--color-scrollbar-white);
	border-radius: 0.25rem;
}

.results .table::-webkit-scrollbar-thumb {
	background: var(--color-scrollbar-gray);
	border-radius: 0.25rem;
}

.results .table::-webkit-scrollbar-thumb:hover {
	background: var(--color-scrollbar-darkgray);
}
