/**
 * styles/sidebarBlocks.css
 *
 * Styling for the five new Default-theme sidebar blocks:
 * Volume By Year, Most Read, Most Cited, Editor's Picks,
 * and Global Participation. Deliberately self-contained (plain CSS,
 * not LESS) so it does not depend on the theme's LESS variable set.
 */

.themeCustomBlock { margin-bottom: 1.5em; }
.themeCustomBlock h2 { margin-bottom: 0.5em; }

.themeSidebarList {
	list-style: none;
	margin: 0;
	padding: 0;
}
.themeSidebarList > li {
	padding: 0.4em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	line-height: 1.4;
}
.themeSidebarList > li:last-child { border-bottom: none; }
.themeSidebarList a { text-decoration: none; }
.themeSidebarList a:hover { text-decoration: underline; }

.themeSidebarList .countBadge {
	display: inline-block;
	float: right;
	min-width: 22px;
	padding: 1px 7px;
	margin-left: 8px;
	border-radius: 10px;
	background: rgba(30, 98, 146, 0.1);
	color: #1E6292;
	font-size: 0.7rem;
	font-weight: 600;
	text-align: center;
}

.volumesByYearList .yearGroup { border-bottom: none; padding-top: 0.6em; }
.volumesByYearList .yearGroup:first-child { padding-top: 0; }
.volumesByYearList .yearLabel {
	display: block;
	color: #1E6292;
	margin-bottom: 0.25em;
}
.volumesByYearList .yearGroup ul {
	list-style: none;
	margin: 0 0 0 0.25em;
	padding: 0;
}
.volumesByYearList .yearGroup ul li { padding: 0.2em 0; }

.mostReadList, .mostCitedList { counter-reset: themeSidebarRank; }
.mostReadList > li, .mostCitedList > li {
	position: relative;
	padding-left: 1.5em;
}
.mostReadList > li:before, .mostCitedList > li:before {
	counter-increment: themeSidebarRank;
	content: counter(themeSidebarRank);
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 1.1em;
	height: 1.1em;
	line-height: 1.1em;
	font-size: 0.65rem;
	text-align: center;
	border-radius: 50%;
	background: #1E6292;
	color: #fff;
}

.globalParticipationList > li {
	display: flex;
	align-items: center;
}
.globalParticipationList .flagEmoji {
	font-size: 1.15rem;
	margin-right: 0.5em;
	line-height: 1;
}
.globalParticipationList .countryName {
	flex: 1 1 auto;
}
