.pbe-content-hub {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

body.pbe-content-hub-page .site-content {
  width: min(1160px, calc(100% - 32px));
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body.pbe-content-hub-page .content-area,
body.pbe-content-hub-page .site-main,
body.pbe-content-hub-page .entry-content {
  width: 100%;
  max-width: none;
}

body.pbe-content-hub-page .entry-header {
  display: none;
}

body.pbe-content-hub-page .entry-content {
  margin: 0;
}

.pbe-content-hub {
  padding: 16px 0 72px;
}

.pbe-content-filter {
  --pbe-filter-accent: #b5687b;
  display: flex;
  gap: clamp(24px, 3.2vw, 40px);
  align-items: center;
  width: 100%;
  margin: 0 0 28px;
  padding: 0 0 12px;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid rgba(68, 64, 74, .14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.pbe-content-filter::-webkit-scrollbar {
  display: none;
}

.pbe-content-filter a {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  padding: 7px 0 9px;
  border-radius: 0;
  color: #746f77;
  font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .035em;
  text-decoration: none;
  transition: color .18s ease;
}

.pbe-content-filter a i {
  display: none;
}

.pbe-content-filter a::after {
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--pbe-filter-accent);
  content: '';
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .18s ease, transform .18s ease;
}

.pbe-content-filter a:hover {
  color: var(--pbe-filter-accent);
}

.pbe-content-filter a.is-active {
  color: #2e2a31;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  transform: none;
}

.pbe-content-filter a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.pbe-content-filter a:focus-visible {
  border-radius: 3px;
  outline: 2px solid color-mix(in srgb, var(--pbe-filter-accent) 72%, white);
  outline-offset: 5px;
}

.pbe-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pbe-card-grid .post-list-thumb {
  float: none;
  width: 100%;
  height: 320px;
  margin: 0;
  content-visibility: visible;
}

.pbe-card-grid .post-thumb a {
  height: 320px;
}

.pbe-card-grid .post-excerpt {
  width: 96%;
}

.pbe-fallback-card,
.pbe-content-empty {
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 36px rgba(95, 72, 87, .10);
}

.pbe-fallback-card {
  overflow: hidden;
}

.pbe-fallback-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pbe-fallback-card h3,
.pbe-fallback-card p {
  margin-right: 22px;
  margin-left: 22px;
}

.pbe-content-empty {
  grid-column: 1 / -1;
  padding: 28px 16px;
  color: rgba(68, 64, 74, .68);
  text-align: center;
}

.pbe-content-pagination {
  margin: 30px 0 0;
}

.pbe-content-pagination ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pbe-content-pagination a,
.pbe-content-pagination span {
  display: grid;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 7px 22px rgba(95, 72, 87, .09);
}

.pbe-content-pagination .current {
  color: #fff;
  background: var(--theme-skin-matching, #e98daf);
}

.dark .pbe-fallback-card,
.dark .pbe-content-empty {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(30, 29, 36, .84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.dark .pbe-content-empty {
  color: rgba(255, 255, 255, .58);
}

.dark .pbe-content-filter {
  --pbe-filter-accent: #e5a7b8;
  border-bottom-color: rgba(255, 255, 255, .15);
}

.dark .pbe-content-filter a {
  color: rgba(255, 255, 255, .62);
}

.dark .pbe-content-filter a:hover {
  color: var(--pbe-filter-accent);
}

.dark .pbe-content-filter a.is-active {
  color: #fff;
}

@media (max-width: 680px) {
  .pbe-content-hub {
    width: min(100% - 20px, 1120px);
  }

  body.pbe-content-hub-page .site-content {
    width: min(100% - 20px, 1160px);
  }

  .pbe-content-hub {
    padding-top: 24px;
  }

  .pbe-content-filter {
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 11px;
  }

  .pbe-content-filter a {
    padding: 6px 0 8px;
    font-size: 14px;
  }

  .pbe-content-filter a::after {
    bottom: -12px;
  }

  .pbe-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pbe-card-grid .post-list-thumb,
  .pbe-card-grid .post-thumb a {
    height: 300px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .pbe-content-filter a,
  .pbe-content-filter a::after {
    transition: none;
  }
}
