/* Article search and topic filters for /articles/ and category archives.
   Brand: burgundy #891642, gold #D4AF37, Inter (theme --font-primary). */

.bbl-article-tools {
  --bbl-burgundy: #891642;
  --bbl-gold: #D4AF37;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 0 36px;
  font-family: var(--font-primary, "Inter", sans-serif);
  color: #111;
}

.bbl-article-search {
  max-width: 720px;
}

.bbl-article-search__label,
.bbl-article-filters__label {
  margin: 0 0 10px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

.bbl-article-search__row {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-bottom: 2px solid var(--bbl-burgundy);
  background: transparent;
}

.bbl-article-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #111;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.bbl-article-search__input::placeholder {
  color: #888;
  opacity: 1;
}

.bbl-article-search__input::-webkit-search-decoration,
.bbl-article-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.bbl-article-search__row:focus-within {
  border-bottom-color: var(--bbl-gold);
}

.bbl-article-search__submit {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--bbl-burgundy);
  color: #fff;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bbl-article-search__submit:hover,
.bbl-article-search__submit:focus-visible {
  background: #6e1034;
  color: #fff;
}

.bbl-article-search__submit:focus-visible {
  outline: 2px solid var(--bbl-gold);
  outline-offset: 2px;
}

.bbl-article-filters {
  margin-top: 28px;
}

.bbl-article-filters__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbl-article-filters__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 6px;
  border-bottom: 2px solid transparent;
  color: #222;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bbl-article-filters__link:hover,
.bbl-article-filters__link:focus-visible {
  color: var(--bbl-burgundy);
  border-bottom-color: var(--bbl-gold);
}

.bbl-article-filters__link:focus-visible {
  outline: 2px solid var(--bbl-gold);
  outline-offset: 3px;
}

.bbl-article-filters__link.is-current {
  color: var(--bbl-burgundy);
  border-bottom-color: var(--bbl-burgundy);
  font-weight: 600;
}

.bbl-article-filters__count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bbl-gold);
  line-height: 1;
}

@media (max-width: 767px) {
  .bbl-article-tools {
    padding: 24px 0 28px;
  }

  .bbl-article-search {
    max-width: none;
  }

  .bbl-article-search__input {
    height: 48px;
    font-size: 16px;
  }

  .bbl-article-search__submit {
    padding: 0 16px;
    font-size: 13px;
  }

  .bbl-article-filters {
    margin-top: 22px;
  }

  .bbl-article-filters__list {
    gap: 8px 20px;
  }

  .bbl-article-filters__link {
    font-size: 15px;
  }
}
