/**
 * @file
 * All reusable styling for EERE-themed skins go here.
 */

/* EERE + Bootstrap Barrio fixes */
.alert.fade.show {
	opacity: 1;
}
.alert svg {
  max-height: 2rem;
}
.skip-link a {
	color: #FFF;
}
.circle-icon {
  line-height: 30px !important;
}
.btn > a {
  color: inherit;
}
a.file {
  background-image: none;
  display: inline;
  padding-left: 0;
}
.file-icon {
	display: none;
}
.node .field--type-image {
  float: none;
  margin: 0;
}
.node .field--type-image img {
  margin-bottom: 0;
}
.pagination > li:not([role]) > span.page-link {
  padding: 0.3em 0.5em;
  height: auto;
  border: 1px solid;
}

/* WYSIWYG styles */
figcaption {
	color: #5E6A71;
	font-size: 0.9em;
}
figure {
	margin-bottom: 20px;
}
figure[style="float:right"] {
	margin-left: 12px;
}
figure[style="float:left"] {
	margin-right: 12px;
}
img, figure {
	height: auto;
}

/* Tables */
.table {
  --bs-table-bg: #fff;
}
.table caption {
	caption-side: top;
}
.table tr th {
  background-color: #007934;
  border: none;
}
.table tr th a {
	color: inherit;
	text-decoration: underline;
}
.table > :not(caption) > * > * {
  border-bottom-color: var(--bs-table-border-color);
}

/* Tabs */
.nav-tabs .nav-link {
	color: #0074a1;
}

/* Panels (e.g. facets) */
.panel {
	padding-bottom: 0;
}
.panel-title {
	margin: 0;
	padding: 0;
}

/* Result lists (views) */
.results-list .view-header {
	margin-bottom: 15px;
}
.results-list .view-footer {
	margin-top: 26px;
}
.results-item .summary {
	margin-bottom: 13px;
}
.results-item .footer {
	border-top: 0px none;
	margin-bottom: 15px;
	margin-top: 0;
	padding-bottom: 0;
	padding-top: 0
}
.views-exposed-form .row > * {
  flex: 0 0 auto;
  width: auto;
}

/* Icons */
svg.svg-inline--fa.circle-icon {
	width: 30px;
	padding: 3px;
}

/* Full Content node pages */
article.full .field {
	margin-bottom: 15px;
}

/* Navbar */
@media (max-width: 767px) {
	.navbar-brand {
		display: block;
	}
}
@media (min-width: 992px) {
	.navbar-nav .dropdown-menu {
		width: auto;
	}
}
.nav > li > span.dropdown-toggle {
	position: relative;
	display: block;
	padding: 10px 15px;
	cursor: pointer;
}
.navbar-nav > li > span.dropdown-toggle {
	padding-top: 10px;
	padding-bottom: 10px;
	line-height: 28px;

}
.navbar-dark .navbar-nav > li > span.dropdown-toggle {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}
@media (min-width: 768px) {
	.navbar-nav > li > span.dropdown-toggle {
		padding-top: 14px;
		padding-bottom: 14px;
	}
}
.navbar form {
	margin: 9px 0;
}
.navbar form .row {
	align-items: center;
	margin: 0;
}
.navbar form .js-form-item,
.navbar form .form-actions {
  display: inline-block;
  margin-bottom: 0 !important;
  margin-right: 0;
  padding: 0;
  vertical-align: middle;
}
.navbar form .form-actions {
  background: none;
  margin: 0;
  position: relative;
}
.navbar form .btn {
	color: #FFF;
}
.navbar form label {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px 1px 1px 1px);
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
@media (min-width: 992px) {
  .navbar form .js-form-item {
    margin-top: 0;
    margin-left: 1rem;
  }
}
.navbar input[type=text],
.navbar input[type=search] {
	background-color: transparent;
	border-width: 0;
	border-left: solid 1px #FFF;
	border-radius: 0;
	color: #FFF;
	height:  auto;
	padding: 0 0 0 10px;
	text-shadow: none;
	width: 12rem;
}
.navbar input[type=text]::placeholder,
.navbar input[type=search]::placeholder {
	color: #666;
}
.navbar .form-submit {
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}
.navbar .help-block {
	display: none;
}
.navbar-collapse {
  z-index: 2;
}
#mainnav {
  z-index: 3;
}

/* Sidenav */
.sidenav .nav > li > span {
  color: #666;
  display: block;
  font-size: 0.85em;
  padding: 8px;
  text-transform: uppercase;
}

/* Collapsiblock */
.collapsiblockTitle {
  position: relative;
}
.collapsiblockTitle button {
  background: #f5f5f5 none !important;
  border-bottom: 1px solid #ddd;
}
.collapsiblockTitle.collapsiblockTitleCollapsed button {
	border-bottom: none;
}
.collapsiblockTitle .panel-title {
  padding-right: 5px;
}
.collapsiblockTitle .caret {
  position: absolute;
  right: 10px;
  top: calc(50% - 3px);
}
.collapsiblockTitle.collapsiblockTitleCollapsed .caret {
  transform: rotate(-90deg);
}

/* Facets */
.facet-item label {
  font-weight: normal !important;
}
.facet-item__count {
  color: $link-active;
  padding-left: 4px;
}
.facet-item__value {
  padding-left: 0;
}
.block-facet--checkbox ul {
  margin-left: 0;
  padding-left: 0;
}
.block-facet--checkbox ul.item-list__checkbox {
  margin: 0;
  padding: 0;
}
.block-facet--checkbox ul li.facet-item {
  color: #686868;
  font-size: 0.85em;
  font-weight: normal;
  line-height: 1.1;
  list-style: none outside none;
  margin: 0;
  padding: 8px 15px;
  position: relative;
}
input.facets-checkbox {
  display: none;
}
input.facets-checkbox + label {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-left: 25px;
  position: relative;
  width: 100%;
}
input.facets-checkbox + label:hover {
  cursor: pointer;
}
input.facets-checkbox + label:before {
  border: 1px solid #0086ba;
  border-radius: 2px;
  content: "";
  color: #fff;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  height: 15px;
  width: 15px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
input.facets-checkbox + label:after {
  background-image: url("../images/right-arrow.svg");
}
input.facets-checkbox:checked + label:before,
input.facets-checkbox + label:hover:before {
  background: #0086ba url("../images/tick.svg") no-repeat scroll center center;
  background-size: 60% 60%;
}
a.facets-soft-limit-link {
  color: #0086ba;
  display: inline-block;
  font-size: 1em;
  margin: 10px 0 0 25px;
}

/* Forms */
.form-control::placeholder {
  color: #BBB;
}
.form-select.chosen-container,
.form-select + .chosen-container {
  border: 0;
  box-shadow: 0;
  font-size: 16px;
  height: auto;
  padding: 0;
  max-width: 100%;
}
.form-select.chosen-container .chosen-single,
.form-select + .chosen-container .chosen-single {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  height: 36px;
  padding: 6px 12px;
}
.form-select.chosen-container .chosen-single div,
.form-select + .chosen-container .chosen-single div {
	display: none;
}
.form-select.chosen-container .chosen-choices,
.form-select + .chosen-container .chosen-choices {
  border: 1px solid #bbb;
  border-radius: 4px;
  padding-top: 3px;
  padding-bottom: 3px;
  text-shadow: 0 1px #fff;
}
.form-select.chosen-container .chosen-choices li.search-field input[type="text"],
.form-select + .chosen-container .chosen-choices li.search-field input[type="text"] {
  color: #bbb;
  font-family: inherit;
}

/* Content */
.field--type-entity-reference .field__label,
.field__label,
.field--label {
  font-weight: 700;
}
.field--label-inline .field__label,
.field--label-inline .field__items,
.field--label-inline .field__item {
  display: inline;
}
.field--label-inline .field__label::after,
.field--label-inline .field--label::after {
  content: ':';
}
a.colorbox {
  cursor: zoom-in;
}
a.colorbox::after {
  content: none !important;
}
