/* ===== Category navigation on the archives (same look as the blog home hero) ===== */
.blog-hero__nav ul { margin: 0; padding: 0; list-style: none; }
.blog-hero__nav li { margin: 0; }
.blog-hero__nav a { color: inherit; text-decoration: none; }
.blog-hero__nav button {
  margin: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}
.blog-hero__nav [hidden] { display: none !important; }

.blog-hero__nav {
  position: relative;
  padding: 0;
}
.blog-archive-page .blog-hero__nav { margin-bottom: 8px; }
@media (max-width: 1199px) {
  .blog-archive-page .blog-hero__nav ul.blog-hero__categories { margin-bottom: 0; }
  .blog-archive-page .blog-hero__nav { margin-bottom: 22px; }
}
@media (min-width: 1200px) {
  .blog-archive-page .blog-hero__nav { margin-bottom: 50px; }
}
.blog-hero__nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}
@media (min-width: 1200px) { .blog-hero__nav-toggle { display: none; } }

.blog-hero__nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.blog-hero__nav ul.blog-hero__categories {
  display: flex;
  flex-direction: column;
  margin: 0 0 -34px 6px;
  padding: 4px 0 8px;
}
@media (min-width: 1200px) {
  /* always visible on desktop, no JS needed */
  .blog-hero__nav ul.blog-hero__categories {
    display: flex !important;
    flex-direction: row;
    gap: 4px;
    margin: 0;
    padding: 0;
  }
}

.blog-hero__categories li { border-bottom: 1px solid var(--border-secondary); }
.blog-hero__categories li:last-child { border-bottom: 0; }
@media (min-width: 1200px) { .blog-hero__categories li { border-bottom: 0; } }

.blog-hero__categories li a {
  display: block;
  padding: 17px 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--segmentedTabs-button-text-default);
  text-overflow: ellipsis;
  transition: background-color 0.2s ease;
}
.blog-hero__categories li a:hover { color: var(--text-accent); }
.blog-hero__categories li a[aria-current="page"] { color: var(--text-main); font-weight: 600; }
@media (min-width: 1200px) {
  .blog-hero__categories li a { padding: 6px 12px; border-radius: 20px; }
  .blog-hero__categories li a:hover { color: inherit; background: var(--hover-overlay); }
  .blog-hero__categories li a[aria-current="page"] { background: var(--hover-overlay); }
}

@media (min-width: 1200px) {
  .blog-hero__nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}
