/* Rwanda56 theme overrides */

body {
	background-color: var(--wbg-lightbluegray);
}

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--border-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin-bottom: 20px;
}

.site-header .navbar-light .navbar-brand {
	display: flex;
	align-items: center;
}

.site-header .navbar-light .navbar-brand .navbar-brand--logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header .navbar-light .navbar-brand .navbar-brand--logo img {
	border: none;
	display: block;
}

.site-header .navbar-light .navbar-brand .navbar-brand--sitename {
	border-left: 1px solid var(--wbg-lightbluegray);
	margin-left: .8rem;
	padding-left: .8rem;
	display: flex;
	align-items: center;
}

.site-header .navbar-light .navbar-brand .navbar-brand--sitename * {
	display: block;
}

.site-header .navbar-light .navbar-brand .navbar-brand--sitename .nada-site-title {
	margin-bottom: 0;
	line-height: 1.2;
	white-space: nowrap;
	font-size: 1.35rem;
}

/* Navigation - hover and active: bottom border only */
.site-header .navbar-light .navbar-nav .nav-link {
	border-top: none;
	border-bottom: 2px solid transparent;
	padding-top: 1rem;
	padding-bottom: 0.35rem;
}

.site-header .navbar-light .navbar-nav .nav-link::after {
	display: none;
}

.site-header .navbar-light .navbar-nav .nav-link:hover,
.site-header .navbar-light .navbar-nav .nav-link.active,
.site-header .navbar-light .navbar-nav .nav-link.active:hover {
	color: var(--color-link);
	border-top: none;
	border-bottom-color: #005cab;
}

.site-header .navbar-light .navbar-nav .dropdown-menu a.dropdown-item.nav-menu-child {
	border-left: none;
	border-bottom: 2px solid transparent;
}

.site-header .navbar-light .navbar-nav .dropdown-menu a.dropdown-item.nav-menu-child:hover,
.site-header .navbar-light .navbar-nav .dropdown-menu a.dropdown-item.nav-menu-child.active,
.site-header .navbar-light .navbar-nav .dropdown-menu a.dropdown-item.nav-menu-child.active:hover,
.site-header .navbar-light .navbar-nav .dropdown-menu a.dropdown-item.nav-menu-child.active:focus,
.site-header .navbar-light .navbar-nav .dropdown-menu a.dropdown-item.nav-menu-child.active:active {
	background: none !important;
	background-color: transparent !important;
	border-bottom-color: #005cab;
}

footer .full-row-footer-components,
footer .full-row-footer-black-components {
	background-color: #005cab;
}

footer .nisr-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer .nisr-footer-logo {
	background-color: #fff;
	padding: 0.5rem 0.75rem;
	border-radius: var(--border-radius-sm);
}

footer .nisr-footer-logo img {
	max-width: 150px;
	height: auto;
	border: none;
	display: block;
}

footer .nisr-footer-heading {
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

footer .nisr-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

footer .nisr-footer-links li {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	line-height: 1.45;
}

footer .nisr-footer-links--bulleted li {
	position: relative;
	padding-left: 1rem;
}

footer .nisr-footer-links--bulleted li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 0.55rem;
	height: 0.15rem;
	border-radius: 1px;
	background-color: #fff;
}

footer .nisr-footer-links a,
footer .nisr-footer-external-link,
footer .nisr-footer-bottom-title a,
footer .nisr-footer-copyright {
	color: #fff;
	text-decoration: none;
}

footer .nisr-footer-links a:hover,
footer .nisr-footer-links a:focus,
footer .nisr-footer-external-link:hover,
footer .nisr-footer-bottom-title a:hover {
	color: #fff;
	text-decoration: underline;
}

footer .nisr-footer-tagline {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0;
}

footer .nisr-footer-tagline--muted {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.7);
}

footer .nisr-footer-external-link i {
	font-size: 0.75rem;
	margin-left: 0.25rem;
}

footer .nisr-footer-bottom-title,
footer .nisr-footer-copyright {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

/* Catalog / collection cards (home, collections index) */
.home-featured-cards .row {
	row-gap: 0;
}

.home-featured-card {
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	column-gap: .85rem;
	row-gap: .3rem;
	height: 100%;
	background: var(--bg-color-card);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-md);
	padding: 1rem 1.15rem;
	text-decoration: none;
	color: var(--color-main);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-featured-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card);
	border-color: var(--color-link);
	text-decoration: none;
	color: var(--color-main);
}

.home-featured-card-icon {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	width: 3.25rem;
	height: 3.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wbg-lightblue);
	border: 1px solid rgba(0, 119, 200, 0.12);
	border-radius: var(--border-radius-sm);
	color: var(--color-link);
	font-size: 1.35rem;
	line-height: 1;
}

.home-featured-card:hover .home-featured-card-icon {
	background: var(--color-link);
	color: #fff;
	border-color: var(--color-link);
}

.home-featured-card--collection {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: .85rem;
}

.home-featured-card--collection .home-featured-card-media {
	flex: 0 0 4.5rem;
	width: 4.5rem;
	height: 4.5rem;
	grid-column: unset;
	grid-row: unset;
}

.home-featured-card--collection .home-featured-card-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .2rem;
}

.home-featured-card--collection .home-featured-card-content .home-featured-card-title,
.home-featured-card--collection .home-featured-card-content .home-featured-card-desc {
	margin: 0;
	padding: 0;
}

.home-featured-card--collection .home-featured-card-content .home-featured-card-title {
	line-height: 1.35;
	font-size: 0.95rem;
	font-weight: 600;
}

.home-featured-card--collection .home-featured-card-content .home-featured-card-desc {
	line-height: 1.45;
}

.home-featured-card--collection .home-card-chip {
	margin-top: .15rem;
}

.home-featured-card-media {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	width: 4.5rem;
	height: 4.5rem;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--wbg-lightbluegray);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-sm);
}

.home-featured-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
	border-radius: 0;
	display: block;
}

.home-featured-card-body {
	grid-column: 2;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.home-featured-card .home-badge-featured {
	position: static;
	display: inline-block;
	align-self: flex-start;
	margin-bottom: .5rem;
}

.home-featured-card > .home-featured-card-title {
	grid-column: 2;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	color: var(--color-main);
	align-self: start;
}

.home-featured-card-body .home-featured-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	color: var(--color-main);
}

.home-featured-card:hover .home-featured-card-title,
.home-featured-card:hover .home-featured-card-body .home-featured-card-title {
	color: var(--color-link);
}

.home-featured-card-meta {
	grid-column: 2;
	font-size: .85rem;
	color: var(--wbg-lightgray);
	line-height: 1.45;
	margin: 0;
}

.home-card-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	grid-column: 2;
	justify-self: start;
	margin: 0;
	padding: .25rem .65rem;
	font-size: .75rem;
	font-weight: 600;
	color: var(--color-link);
	background: var(--wbg-lightblue);
	border: 1px solid rgba(0, 119, 200, 0.12);
	border-radius: 999px;
	line-height: 1.3;
}

.home-card-chip i {
	font-size: .7rem;
	opacity: .85;
}

.home-featured-card:hover .home-card-chip {
	background: var(--color-link);
	border-color: var(--color-link);
	color: #fff;
}

.home-featured-card-type {
	display: block;
	font-weight: 600;
	color: var(--color-link);
	margin-bottom: .35rem;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.home-featured-card-desc {
	grid-column: 2;
	font-size: .85rem;
	color: var(--wbg-lightgray);
	line-height: 1.45;
	margin: 0;
	min-height: 0;
	max-height: calc(1.45em * 2);
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	text-overflow: ellipsis;
	word-break: break-word;
}

.contributing-repos .page-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 2rem 0 1rem;
	border-bottom: none;
	padding-bottom: 0;
}

.contributing-repos h3 {
	border-bottom: none;
	padding-bottom: 0;
}

.contributing-repos > div:first-child .page-title {
	margin-top: 0;
}

.about-collection .collections-page-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.75rem;
}
