/* Scoped to the blog overview; the active theme is conveyed by color and underline. */
.blog-topic-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.blog-topic-tabs { display: flex; align-items: stretch; gap: 30px; min-width: 0; }
.blog-topic-tabs button {
  position: relative;
  min-height: 52px;
  padding: 0 0 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease;
}
.blog-topic-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--bronze-dark);
  content: "";
  transform: scaleX(0);
  transition: transform .18s ease;
}
.blog-topic-tabs button:hover { color: var(--ink-deep); }
.blog-topic-tabs button.is-active { color: var(--bronze-dark); font-weight: 650; }
.blog-topic-tabs button.is-active::after { transform: scaleX(1); }
.blog-topic-tabs button:focus-visible, .blog-topic-mobile select:focus-visible {
  outline: 2px solid var(--bronze-dark);
  outline-offset: 5px;
}
.blog-topic-count { flex: none; margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.blog-topic-mobile { display: none; }
@media (max-width: 960px) {
  .blog-topic-tabs { display: none; }
  .blog-topic-filter { position: relative; display: block; padding-bottom: 22px; }
  .blog-topic-mobile { display: grid; gap: 9px; width: 100%; min-width: 0; }
  .blog-topic-mobile > span { color: var(--muted); font-size: 12px; font-weight: 500; }
  .blog-topic-mobile select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 30px 10px 13px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--ink-deep);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }
  .blog-topic-count { position: absolute; top: 0; right: 0; margin: 0; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-topic-tabs button, .blog-topic-tabs button::after { transition: none; }
}
