html {
	scroll-padding-top: 70px;
}
:target {
	background-color: var(--type-ranking);
	font-weight: bold;
}
h1 {
	font-size: var(--h1-font-size);
	padding: var(--h1-padding);
	line-height: 1.1;
}
p.desc {
	max-width: 800px;
	margin: 0.5em auto 2em auto;
	line-height: 1.2;
}
#items {
	max-width: 100%;
	width: 100%;
	text-align: right;
	line-height: 1.1;
	border-collapse: collapse;
	border-spacing: 0;
}
#items a {
	/* text-decoration: none; */
	display: inline-block;
	width: 100%;
}
#items thead th,
#items tbody td {
	padding: var(--graph-spacing-v) var(--graph-spacing-h);
	border-bottom: var(--graph-line-between);
}
#items thead th {
	padding-bottom: var(--graph-spacing-v);
	border-bottom: 1px solid var(--battleship-grey);
}
#items tbody tr:not(.ad):hover {
	--graph-color: var(--graph-hl-color);
	background-color: var(--pale-grey);
	font-weight: bold;
}
#items tbody .null {
	/* display: none; */
	color: var(--pale-grey) !important;
}
#items .null a {
	color: var(--pale-grey-two);
}
#items .name {
	text-align: left;
	padding-left: 0;
	padding-right: 0;
}
#items .name,
#items .value {
	/*background: var(--graph-bg);*/
	width: 50%;
	position: relative;
	/*background: linear-gradient(90deg, var(--graph-color) 0%, var(--graph-color) var(--pct), transparent var(--pct));*/
}
#items .value a {
	text-decoration: none;
}
#items .value::after {
	content: "";
	display: block;
	width: 100%;
	height: var(--graph-height);
	position: absolute;
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, var(--graph-color) 0%, var(--graph-color) var(--pct), transparent var(--pct));
}
#items:not(.filtered) tbody .nr.same-value {
	/*visibility: hidden;*/
	color: transparent;
}
#items:not(.filtered) tbody tr:hover .nr.same-value {
	color: var(--my-black);
}
#items .hide {
	display: none;
}


#selector-form {
	max-width: 355px;
	margin: auto;
	position: relative;
}
label[for=selector] {
	display: block;
	width: 0;
	height: 0;
	overflow: hidden;
	cursor: pointer;
}
label[for=selector]::after {
	position: absolute;
	content: "\25BC";
	height: 40px;
	line-height: 42px;
	/* font-size: .625em;
	color: rgba(0,0,0,.3); */
	font-size: 1em;
	color: var(--battleship-grey);
	right: 15px;
	top: 15px;
	pointer-events: none;
	z-index: 2;
}
#selector {
	background-color: var(--pale-grey-two);
	color: var(--my-black);
	font-size: inherit;
	width: 100%;
	height: 70px;
	line-height: 70px;
	padding: 0 20px;
	padding-right: 2.5em;
	border: 0;
	margin: 0 auto 30px auto;
	border-radius: 0;
	text-indent: 0.01px;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--battleship-grey-light);
}
#selector:hover {
	background-color: var(--my-white);
	box-shadow: inset 0 0 0 1px var(--pale-grey-two);
}

label[for=filter-input] {
	color: var(--battleship-grey);
	font-weight: bold;
}
#filter-input {
	width: calc(100% - 40px);
	padding: 10px;
	margin: 20px;
	border-color: var(--battleship-grey-light);
	box-shadow: 0 0 0 20px var(--pale-grey);
}

.fat-block-header {
	font-weight: bold;
	height: var(--fat-header-box-height);
	line-height: var(--fat-header-box-height);
	font-size: var(--fat-header-font-size);
	background-color: var(--pale-grey);
	padding: 0 20px;
	margin: 20px 0;
	position: relative;
}
.thin-block-header {
	font-weight: bold;
	height: var(--thin-header-box-height);
	line-height: var(--thin-header-box-height);
	font-size: var(--thin-header-font-size);
	text-transform: var(--thin-header-font-transform);
	background-color: var(--pale-grey);
	padding: 0 20px;
	margin: 20px 0;
	position: relative;
}
.ranking-list {
	margin: 0;
	padding: 0;
	column-count: var(--column-cnt);
	column-gap: 20px;
}
.ranking-list > * {
	break-inside: avoid;
	list-style: none;
	margin: 0;
	padding: 2px 20px;
	border-bottom: 1px solid var(--pale-grey-two);
}

@media (max-width: 420px) {
	body {
		--column-cnt: 1;
		font-size: 16px;
		line-height: 1.1;
	}
	#items .value {
		width: auto;
		padding-right: 0;
	}
	#items .nr {
		padding-left: 0;
	}
}

/* blok s odkazy/ikonkami na sdílení na soc. sítích */
#filter-form .social {
	position: relative;
	margin-top: 55px;
	padding: 26px 20px 20px 20px;
	background-color: var(--pale-grey);
}
#filter-form .social::before {
	content: "share this comparison chart";
	position: absolute;
	top: -23px;
	left: 0;
	color: var(--battleship-grey);
	font-weight: bold;
	font-size: 12px;
	text-transform: uppercase;
}
@media (min-width: 660px) {
	#filter-form {
		display: flex;
		column-gap: 20px;
	}
	#filter-form .filter-input {
		flex: 1;
	}
	#filter-form .social {
		margin-top: 33px;
	}
}
