.categoryBar-card-wrap {
  display: block !important;
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 1rem !important;
  padding: 48px 16px 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, rgba(73, 177, 245, 0.08), rgba(255, 255, 255, 0) 36%),
    rgba(248, 250, 252, 0.78) !important;
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.06) !important;
  align-items: initial !important;
}

.categoryBar-frame-label {
  position: absolute;
  top: 13px;
  left: 16px;
  color: #243447;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1;
}

#categoryBar {
  width: 100%;
}

.categoryBar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, max-content));
  justify-content: start;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

.categoryBar-list-item {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(73, 177, 245, 0.22);
  background: rgba(255, 255, 255, 0.92);
  list-style: none;
  box-shadow: 0 8px 20px rgba(31, 35, 40, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.categoryBar-pin {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #f05b57;
  font-size: 9px;
  box-shadow: 0 4px 10px rgba(31, 35, 40, 0.12);
}

.categoryBar-pin i {
  line-height: 1;
}

.categoryBar-list-item:hover {
  border-color: rgba(73, 177, 245, 0.46);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 35, 40, 0.12);
}

.categoryBar-list-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  min-width: 168px;
  padding: 16px 16px 14px 42px;
  color: #243447 !important;
}

.categoryBar-list-name {
  align-self: center;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

.categoryBar-list-meta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(73, 177, 245, 0.13);
  color: #2878ad;
  font-size: 0.82rem;
  line-height: 1;
}

.article-tag-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

.article-tag-badges--home {
  margin: 0.55rem 0 0.15rem;
}

.article-tag-badges--sort {
  margin-top: 0.45rem;
}

#archive .article-sort-item,
#category .article-sort-item,
#tag .article-sort-item {
  align-items: flex-start;
}

#archive .article-sort-item.no-article-cover,
#category .article-sort-item.no-article-cover,
#tag .article-sort-item.no-article-cover {
  height: auto;
  min-height: 80px;
}

#archive .article-sort-item-info,
#category .article-sort-item-info,
#tag .article-sort-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.1rem 0 0.9rem;
}

#archive .article-sort-item-img + .article-sort-item-info,
#category .article-sort-item-img + .article-sort-item-info,
#tag .article-sort-item-img + .article-sort-item-info {
  padding-right: 0;
  padding-left: 0.8rem;
}

#archive .article-sort-item-title,
#category .article-sort-item-title,
#tag .article-sort-item-title {
  order: 1;
}

#archive .article-sort-item-time,
#category .article-sort-item-time,
#tag .article-sort-item-time {
  order: 2;
  margin-top: 0.18rem;
}

#archive .article-tag-badges,
#category .article-tag-badges,
#tag .article-tag-badges {
  order: 3;
}

.article-tag-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(73, 177, 245, 0.24);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: #2878ad !important;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 14px rgba(31, 35, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.article-tag-badge i {
  flex: 0 0 auto;
  font-size: 0.74em;
  line-height: 1;
}

.article-tag-badge span {
  min-width: 0;
}

.article-tag-badge:hover {
  border-color: rgba(73, 177, 245, 0.5);
  color: #1d6f9f !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.1);
}

@media screen and (max-width: 650px) {
  .categoryBar-card-wrap {
    padding: 46px 12px 12px !important;
  }

  #categoryBar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .categoryBar-list {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .categoryBar-list-link {
    min-width: 0;
    padding: 15px 14px 13px 40px;
  }

  .categoryBar-list-name {
    font-size: 1rem;
  }
}
