.news-archive {
  --news-archive-border: rgba(0, 0, 0, 0.12);
  --news-archive-muted: #5f676d;
  margin-bottom: 32px;
}

.news-archive [hidden] {
  display: none !important;
}

.news-archive__toolbar {
  margin-bottom: 18px;
}

.news-archive__toolbar h1 {
  font-size: 28px;
  margin: 0;
}

.news-archive__form {
  border-bottom: 1px solid var(--news-archive-border);
  margin-bottom: 18px;
  padding-bottom: 14px;
  width: 100%;
}

.news-archive__search {
  position: relative;
  width: 100%;
}

.news-archive__period-dropdown > .btn {
  background: #eee;
  border-color: #d8d8d8;
  color: #333;
  min-width: 116px;
  text-align: left;
  white-space: nowrap;
}

.news-archive__period-dropdown .caret {
  margin-left: 6px;
}

.news-archive__period-dropdown .dropdown-menu {
  min-width: 220px;
  padding: 0;
}

.news-archive__period-dropdown .dropdown-menu > li > button {
  background: transparent;
  border: 0;
  color: #164b2d;
  display: block;
  padding: 11px 20px;
  text-align: left;
  width: 100%;
}

.news-archive__period-dropdown .dropdown-menu > li > button:hover,
.news-archive__period-dropdown .dropdown-menu > li > button:focus,
.news-archive__period-dropdown .dropdown-menu > li > button.is-active {
  background: #f5f5f5;
  color: #164b2d;
  outline: none;
}

.news-archive__search .form-control {
  min-width: 0;
}

.news-archive__submit {
  min-width: 54px;
}

.news-archive__suggestions {
  background: #fff;
  border: 1px solid var(--news-archive-border);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  left: 0;
  max-height: 320px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 40;
}

.news-archive-suggestion {
  align-items: flex-start;
  color: inherit;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
}

.news-archive-suggestion:hover,
.news-archive-suggestion:focus,
.news-archive-suggestion.is-active {
  background: #f5f5f5;
  color: inherit;
  text-decoration: none;
}

.news-archive-suggestion__icon {
  color: var(--news-archive-muted);
  flex: 0 0 18px;
  padding-top: 2px;
  text-align: center;
}

.news-archive-suggestion__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-archive-suggestion__title {
  font-weight: 600;
}

.news-archive-suggestion__meta,
.news-archive-suggestion__excerpt,
.news-archive-suggestion--muted {
  color: var(--news-archive-muted);
  font-size: 13px;
}

.news-archive-suggestion__excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-archive-card {
  border-bottom: 1px solid var(--news-archive-border);
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.news-archive-card__meta {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.news-archive-card__meta time {
  color: var(--news-archive-muted);
  font-size: 13px;
}

.news-archive-card__book {
  white-space: nowrap;
}

.news-archive-card__body img {
  height: auto;
  max-width: 100%;
}

.news-archive__empty {
  color: var(--news-archive-muted);
  padding: 18px 0;
  text-align: center;
}

.news-archive__actions {
  margin-top: 10px;
  text-align: center;
}

.news-archive.is-loading {
  opacity: 0.75;
}

@media (max-width: 767px) {
  .news-archive__period-dropdown > .btn {
    min-width: 110px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .news-archive-card__meta {
    justify-content: space-between;
  }
}
