.pm-category-hub {
  --pm-cat-bg: #0d1019;
  --pm-cat-panel: rgba(18, 21, 34, 0.94);
  --pm-cat-panel-strong: rgba(20, 23, 38, 0.98);
  --pm-cat-line: rgba(155, 92, 255, 0.12);
  --pm-cat-line-strong: rgba(155, 92, 255, 0.2);
  --pm-cat-ink: #eef1ff;
  --pm-cat-muted: rgba(198, 205, 235, 0.8);
  --pm-cat-soft: rgba(166, 173, 205, 0.72);
  --pm-cat-green: rgba(88, 255, 182, 0.86);
  --pm-cat-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --pm-cat-shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.28);
  --pm-cat-radius-xl: 24px;
  --pm-cat-radius-lg: 18px;
  --pm-cat-radius-md: 14px;
  --pm-cat-motion: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --pm-cat-card-bg-hover: radial-gradient(
    circle at top left,
    rgba(88, 255, 182, 0.06),
    rgba(12, 14, 20, 0.95)
  );
  --pm-cat-card-shadow-hover: 0 18px 38px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(88, 255, 182, 0.35);
}

.pm-category-hub .content-area,
.pm-category-hub .site-main {
  width: 100%;
}

.pm-category-hub .widget-area.sidebar {
  display: none !important;
}

.pm-category-hub .site-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.pm-category-hub .page-header,
.pm-category-hub .site-main > article,
.pm-category-hub .paging-navigation {
  grid-column: 1 / -1;
}

.pm-category-hub .page-header {
  position: relative;
  overflow: hidden;
  padding: 34px clamp(22px, 3vw, 36px) !important;
  border: 1px solid var(--pm-cat-line-strong) !important;
  border-radius: var(--pm-cat-radius-xl) !important;
  background:
    radial-gradient(140% 150% at 0% 0%, rgba(155, 92, 255, 0.18), transparent 55%),
    radial-gradient(120% 120% at 100% 0%, rgba(88, 255, 182, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(19, 22, 37, 0.98), rgba(13, 16, 25, 0.98)) !important;
  box-shadow: var(--pm-cat-shadow) !important;
}

.pm-category-hub .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.14));
  opacity: 0.9;
}

.pm-category-hub .page-header > * {
  position: relative;
  z-index: 1;
}

.pm-category-hub .pm-cat-archive-kicker {
  margin: 0 0 10px;
  color: rgba(201, 185, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pm-category-hub .page-header .page-title {
  margin: 0;
  max-width: 16ch;
  color: var(--pm-cat-ink) !important;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: pretty;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.pm-category-hub .taxonomy-description {
  margin-top: 14px;
  max-width: 72ch;
  color: var(--pm-cat-muted) !important;
  font-size: 1.02rem;
  line-height: 1.72;
}

.pm-category-hub .taxonomy-description p:last-child {
  margin-bottom: 0;
}

.pm-category-hub .pm-cat-archive-rail {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.pm-category-hub .pm-cat-archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pm-category-hub .pm-cat-archive-stat,
.pm-category-hub .pm-cat-archive-link-card {
  border: 1px solid rgba(155, 92, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 21, 34, 0.96), rgba(14, 17, 28, 0.98));
  box-shadow: var(--pm-cat-shadow-soft);
}

.pm-category-hub .pm-cat-archive-stat {
  min-height: 108px;
  padding: 16px 16px 14px;
}

.pm-category-hub .pm-cat-archive-stat-label {
  display: block;
  margin-bottom: 18px;
  color: rgba(176, 182, 212, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pm-category-hub .pm-cat-archive-stat strong {
  display: block;
  color: #f5f7ff;
  font-size: 1.1rem;
  line-height: 1.35;
  text-wrap: balance;
}

.pm-category-hub .pm-cat-archive-links {
  padding: 2px 0;
}

.pm-category-hub .pm-cat-archive-links-kicker {
  margin: 0 0 12px;
  color: rgba(176, 182, 212, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pm-category-hub .pm-cat-archive-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pm-category-hub .pm-cat-archive-link-card {
  display: block;
  min-height: 132px;
  padding: 16px 16px 15px;
  color: inherit;
  text-decoration: none !important;
  transition:
    border-color var(--pm-cat-motion),
    box-shadow var(--pm-cat-motion),
    background-color var(--pm-cat-motion);
}

.pm-category-hub .pm-cat-archive-link-card:visited,
.pm-category-hub .pm-cat-archive-link-card:hover,
.pm-category-hub .pm-cat-archive-link-card:focus,
.pm-category-hub .pm-cat-archive-link-card:active {
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 16px !important;
}

.pm-category-hub .pm-cat-archive-link-card:hover,
.pm-category-hub .pm-cat-archive-link-card:focus-visible {
  border-color: rgba(88, 255, 182, 0.2);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(88, 255, 182, 0.08);
}

.pm-category-hub .pm-cat-archive-link-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--pm-cat-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pm-category-hub .pm-cat-archive-link-title {
  display: block;
  margin-bottom: 8px;
  color: #f4f6ff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.pm-category-hub .pm-cat-archive-link-desc {
  display: block;
  color: var(--pm-cat-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.pm-category-hub .site-main > article {
  grid-column: span 6;
  margin: 0 !important;
}

.pm-category-hub .site-main > article:first-of-type {
  grid-column: 1 / -1;
}

.pm-category-hub .site-main > article .inside-article {
  height: 100%;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(155, 92, 255, 0.12) !important;
  border-radius: var(--pm-cat-radius-xl) !important;
  background:
    linear-gradient(180deg, rgba(19, 22, 37, 0.96), rgba(13, 16, 25, 0.98)) !important;
  box-shadow: var(--pm-cat-shadow-soft) !important;
  transition:
    border-color var(--pm-cat-motion),
    box-shadow var(--pm-cat-motion);
}

.pm-category-hub .site-main > article .inside-article:hover {
  border-color: rgba(155, 92, 255, 0.22) !important;
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(155, 92, 255, 0.06) !important;
  transform: none !important;
}

.pm-category-hub .site-main > article .entry-header,
.pm-category-hub .site-main > article .entry-summary,
.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] {
  padding-left: 24px;
  padding-right: 24px;
}

.pm-category-hub .site-main > article .entry-header {
  padding-top: 24px;
  margin-bottom: 0 !important;
}

.pm-category-hub .site-main > article .entry-summary {
  padding-top: 14px;
}

.pm-category-hub .site-main > article .entry-summary p {
  margin: 0;
  color: var(--pm-cat-muted);
  line-height: 1.66;
}

.pm-category-hub .site-main > article .entry-title {
  margin: 0;
}

.pm-category-hub .site-main > article .entry-title a,
.pm-category-hub .site-main > article .entry-title a:visited {
  color: #f3f5ff !important;
  text-decoration: none !important;
  line-height: 1.04;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.pm-category-hub .site-main > article .entry-title a:hover,
.pm-category-hub .site-main > article .entry-title a:focus-visible {
  color: #ffffff !important;
}

.pm-category-hub .site-main > article .entry-meta {
  color: rgba(173, 180, 211, 0.78) !important;
  font-size: 0.84rem;
}

.pm-category-hub .site-main > article .entry-meta a,
.pm-category-hub .site-main > article .entry-meta a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.pm-category-hub .site-main > article .post-image {
  margin: 0;
}

.pm-category-hub .site-main > article .post-image a {
  display: block;
}

.pm-category-hub .site-main > article .post-image picture,
.pm-category-hub .site-main > article .post-image img {
  display: block;
  width: 100%;
}

.pm-category-hub .site-main > article .post-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 22px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .tags-links,
.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .comments-link {
  display: none;
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .gp-icon {
  display: none;
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .cat-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(155, 92, 255, 0.16);
  border-radius: 999px;
  background: rgba(16, 19, 32, 0.96);
  color: rgba(214, 219, 245, 0.9) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .cat-links a:hover,
.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] .cat-links a:focus-visible {
  border-color: rgba(88, 255, 182, 0.18);
  color: #f4f7ff !important;
}

.pm-category-hub .site-main > article:first-of-type .inside-article {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-areas:
    "header media"
    "summary media"
    "meta media";
  align-items: start;
}

.pm-category-hub .site-main > article:first-of-type .entry-header {
  grid-area: header;
  padding-top: 28px;
  padding-right: 12px;
}

.pm-category-hub .site-main > article:first-of-type .entry-title a {
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.pm-category-hub .site-main > article:first-of-type .entry-summary {
  grid-area: summary;
  padding-top: 16px;
  padding-right: 18px;
}

.pm-category-hub .site-main > article:first-of-type .entry-summary p {
  font-size: 1.01rem;
  line-height: 1.76;
}

.pm-category-hub .site-main > article:first-of-type .entry-meta[aria-label="Meta wpisu"] {
  grid-area: meta;
  align-self: end;
  margin-top: 22px;
  padding-right: 18px;
  padding-bottom: 28px;
}

.pm-category-hub .site-main > article:first-of-type .post-image {
  grid-area: media;
  height: 100%;
}

.pm-category-hub .site-main > article:first-of-type .post-image a,
.pm-category-hub .site-main > article:first-of-type .post-image picture,
.pm-category-hub .site-main > article:first-of-type .post-image img {
  height: 100%;
}

.pm-category-hub .site-main > article:first-of-type .post-image img {
  min-height: 100%;
  aspect-ratio: auto;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-title a {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-summary p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.pm-category-hub .paging-navigation {
  padding: 20px 22px !important;
  border: 1px solid rgba(155, 92, 255, 0.12) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(16, 19, 30, 0.96), rgba(12, 15, 24, 0.98)) !important;
  box-shadow: var(--pm-cat-shadow-soft) !important;
}

.pm-category-hub .paging-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pm-category-hub .paging-navigation a,
.pm-category-hub .paging-navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(155, 92, 255, 0.16);
  border-radius: 999px;
  background: rgba(16, 19, 30, 0.96);
  color: rgba(225, 229, 247, 0.9);
  text-decoration: none !important;
}

.pm-category-hub .paging-navigation a:hover,
.pm-category-hub .paging-navigation a:focus-visible,
.pm-category-hub .paging-navigation .current {
  color: #ffffff !important;
  border-color: rgba(88, 255, 182, 0.2);
  background: rgba(20, 24, 38, 0.98);
}

@media (max-width: 1200px) {
  .pm-category-hub .page-header .page-title {
    max-width: 14ch;
  }

  .pm-category-hub .pm-cat-archive-rail {
    grid-template-columns: 1fr;
  }

  .pm-category-hub .site-main > article:first-of-type .inside-article {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  }
}

@media (max-width: 1024px) {
  .pm-category-hub .site-main {
    gap: 22px;
  }

  .pm-category-hub .site-main > article {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .pm-category-hub .site-main {
    gap: 18px;
  }

  .pm-category-hub .page-header {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .pm-category-hub .page-header .page-title {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .pm-category-hub .taxonomy-description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .pm-category-hub .pm-cat-archive-stats,
  .pm-category-hub .pm-cat-archive-link-grid {
    grid-template-columns: 1fr;
  }

  .pm-category-hub .pm-cat-archive-stat,
  .pm-category-hub .pm-cat-archive-link-card {
    min-height: 0;
  }

  .pm-category-hub .site-main > article .entry-header,
  .pm-category-hub .site-main > article .entry-summary,
  .pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pm-category-hub .site-main > article .entry-header {
    padding-top: 18px;
  }

  .pm-category-hub .site-main > article:first-of-type .inside-article {
    display: block;
  }

  .pm-category-hub .site-main > article:first-of-type .post-image {
    margin-top: 16px;
  }

  .pm-category-hub .site-main > article:first-of-type .entry-title a,
  .pm-category-hub .site-main > article:not(:first-of-type) .entry-title a {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .pm-category-hub .site-main > article:first-of-type .entry-summary,
  .pm-category-hub .site-main > article .entry-summary {
    padding-top: 14px;
  }

  .pm-category-hub .site-main > article:not(:first-of-type) .entry-summary p {
    -webkit-line-clamp: unset;
  }

  .pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] {
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .pm-category-hub .paging-navigation {
    padding: 16px !important;
    border-radius: 18px !important;
  }
}

/* === Home-inspired refinement ======================================= */
.pm-category-hub {
  --pm-cat-rule-start: rgba(155, 92, 255, 0.92);
  --pm-cat-rule-mid: rgba(185, 140, 255, 0.78);
  --pm-cat-rule-end: rgba(88, 255, 182, 0.52);
  --pm-cat-rule-shadow: 0 0 18px rgba(155, 92, 255, 0.16),
    0 0 10px rgba(88, 255, 182, 0.08);
  --pm-cat-pill-border: rgba(88, 255, 182, 0.26);
  --pm-cat-pill-bg: rgba(18, 26, 33, 0.92);
  --pm-cat-pill-text: rgba(230, 232, 245, 0.92);
}

.pm-category-hub .page-header {
  overflow: visible;
  padding: clamp(12px, 2vw, 22px) 0 clamp(8px, 1.2vw, 14px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pm-category-hub .page-header::before {
  display: none;
}

.pm-category-hub .page-header::after {
  content: "";
  display: block;
  width: clamp(78px, 9vw, 132px);
  height: 3px;
  margin-top: clamp(12px, 1.4vw, 18px);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--pm-cat-rule-start) 0%,
    var(--pm-cat-rule-mid) 48%,
    var(--pm-cat-rule-end) 100%
  );
  box-shadow: var(--pm-cat-rule-shadow);
}

.pm-category-hub .pm-cat-archive-kicker {
  margin-bottom: 8px;
}

.pm-category-hub .page-header .page-title {
  max-width: min(14ch, 100%);
  font-size: clamp(2.15rem, 1.5rem + 3vw, 3.8rem);
  line-height: 0.92;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.pm-category-hub .taxonomy-description {
  max-width: min(60ch, 100%);
  margin-top: 12px;
  font-size: clamp(0.98rem, 0.94rem + 0.35vw, 1.08rem);
  line-height: 1.55;
}

.pm-category-hub .pm-cat-archive-rail {
  display: block;
  margin-top: 18px;
}

.pm-category-hub .pm-cat-archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pm-category-hub .pm-cat-archive-stat {
  min-height: 0;
  min-width: 132px;
  padding: 11px 13px 10px;
  border-radius: 14px;
  border-color: rgba(155, 92, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 18, 30, 0.96), rgba(16, 20, 33, 0.94));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.pm-category-hub .pm-cat-archive-stat-label {
  margin-bottom: 8px;
  font-size: 9px;
}

.pm-category-hub .pm-cat-archive-stat strong {
  font-size: 0.96rem;
  line-height: 1.35;
}

.pm-category-hub .pm-cat-archive-links-kicker,
.pm-category-hub .pm-cat-archive-loop-head h2 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9caee;
}

.pm-category-hub .pm-cat-archive-links-kicker {
  margin-bottom: 12px;
}

.pm-category-hub .pm-cat-archive-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pm-category-hub .pm-cat-archive-link-card {
  min-height: 0;
  padding: 15px 15px 14px;
  border-radius: 14px;
  border-color: rgba(155, 92, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.pm-category-hub .pm-cat-archive-link-title {
  font-size: 1rem;
}

.pm-category-hub .pm-cat-archive-link-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pm-category-hub .pm-cat-archive-loop-head {
  grid-column: 1 / -1;
  margin: 2px 0 -8px;
}

.pm-category-hub .pm-cat-archive-loop-head h2 {
  margin: 0;
}

.pm-category-hub .pm-cat-archive-loop-head p {
  max-width: 56ch;
  margin: 10px 0 0;
  color: rgba(217, 223, 248, 0.78);
  font-size: 0.98rem;
  line-height: 1.5;
}

.pm-category-hub .site-main > article .inside-article {
  display: flex;
  flex-direction: column;
  border-color: rgba(155, 92, 255, 0.18) !important;
  border-radius: 14px !important;
  background: rgba(12, 14, 20, 0.9) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.7) !important;
}

.pm-category-hub .site-main > article .inside-article:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(88, 255, 182, 0.36) !important;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(88, 255, 182, 0.14) !important;
}

.pm-category-hub .site-main > article .post-image {
  order: 1;
}

.pm-category-hub .pm-cat-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pm-category-hub .pm-cat-card-cat {
  display: inline-block;
  color: var(--pm-cat-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pm-category-hub .pm-cat-card-readtime {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--pm-cat-pill-border);
  border-radius: 999px;
  background: var(--pm-cat-pill-bg);
  color: var(--pm-cat-pill-text);
  font-size: 0.7rem;
  white-space: nowrap;
}

.pm-category-hub .site-main > article .entry-header {
  order: 2;
  padding-top: 18px;
}

.pm-category-hub .site-main > article .entry-meta {
  font-size: 0.8rem;
}

.pm-category-hub .site-main > article .entry-summary {
  order: 3;
  padding-top: 10px;
}

.pm-category-hub .site-main > article .entry-summary p {
  color: #dee2ff;
}

.pm-category-hub .site-main > article .entry-meta[aria-label="Meta wpisu"] {
  display: none !important;
}

.pm-category-hub .site-main > article:first-of-type .entry-header {
  padding-top: 22px;
}

.pm-category-hub .site-main > article:first-of-type .entry-title a {
  font-size: clamp(2rem, 2.4vw, 3rem);
  line-height: 0.98;
}

.pm-category-hub .site-main > article:first-of-type .entry-summary {
  padding-top: 12px;
  padding-bottom: 22px;
}

.pm-category-hub .site-main > article:first-of-type .entry-summary p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.pm-category-hub .site-main > article:first-of-type .post-image img {
  aspect-ratio: 16 / 9;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-title a {
  font-size: clamp(1.28rem, 1.05rem + 0.9vw, 1.8rem);
  line-height: 1.1;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-summary p {
  -webkit-line-clamp: 4;
}

.pm-category-hub .paging-navigation {
  margin-top: 6px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pm-category-hub .paging-navigation .nav-links {
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}

.pm-category-hub .paging-navigation a,
.pm-category-hub .paging-navigation .page-numbers {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  border-color: #262a42;
  background: rgba(15, 18, 32, 0.94);
  color: #dfe3ff;
}

.pm-category-hub .paging-navigation a:hover,
.pm-category-hub .paging-navigation a:focus-visible,
.pm-category-hub .paging-navigation .current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pm-primary), #7b34ff 40%, #5d2bff 75%);
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.25);
}

@media (max-width: 1200px) {
  .pm-category-hub .pm-cat-archive-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pm-category-hub .page-header {
    padding: 10px 0 10px !important;
  }

  .pm-category-hub .page-header::after {
    margin-top: 14px;
  }

  .pm-category-hub .page-header .page-title {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .pm-category-hub .taxonomy-description {
    max-width: 34ch;
    font-size: 0.95rem;
  }

  .pm-category-hub .pm-cat-archive-stats {
    gap: 8px;
    margin-bottom: 16px;
  }

  .pm-category-hub .pm-cat-archive-stat {
    flex: 1 1 120px;
  }

  .pm-category-hub .pm-cat-archive-link-grid {
    grid-template-columns: 1fr;
  }

  .pm-category-hub .pm-cat-archive-loop-head {
    margin-bottom: -2px;
  }

  .pm-category-hub .pm-cat-archive-loop-head p {
    margin-top: 8px;
    font-size: 0.92rem;
  }

  .pm-category-hub .site-main > article:first-of-type .entry-title a,
  .pm-category-hub .site-main > article:not(:first-of-type) .entry-title a {
    font-size: clamp(1.65rem, 7.4vw, 2.3rem);
  }

  .pm-category-hub .site-main > article:first-of-type .entry-summary {
    padding-bottom: 18px;
  }
}

/* === Premium rhythm pass ============================================ */
.pm-category-hub .site-main {
  gap: 24px;
}

.pm-category-hub .page-header {
  padding-top: clamp(14px, 2.2vw, 24px) !important;
  padding-bottom: clamp(10px, 1.6vw, 16px) !important;
}

.pm-category-hub .page-header .page-title {
  max-width: min(13ch, 100%);
  font-size: clamp(2.35rem, 1.7rem + 3.4vw, 4.1rem);
  letter-spacing: -0.055em;
}

.pm-category-hub .taxonomy-description {
  max-width: min(58ch, 100%);
  margin-top: 14px;
  line-height: 1.58;
}

.pm-category-hub .pm-cat-archive-stats {
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 20px;
}

.pm-category-hub .pm-cat-archive-stat {
  min-width: 138px;
  padding: 12px 14px 11px;
}

.pm-category-hub .pm-cat-archive-link-grid {
  gap: 16px;
}

.pm-category-hub .pm-cat-archive-link-card {
  padding: 16px 16px 15px;
}

.pm-category-hub .pm-cat-archive-loop-head {
  margin: 8px 0 2px;
}

.pm-category-hub .pm-cat-archive-loop-head p {
  margin-top: 9px;
}

.pm-category-hub .site-main > article .inside-article {
  border-radius: 16px !important;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out,
    background 0.22s ease-out !important;
}

.pm-category-hub .site-main > article .post-image {
  order: 1;
}

.pm-category-hub .site-main > article .post-image a {
  display: block;
  background: #0a0d15;
}

.pm-category-hub .site-main > article .post-image img {
  aspect-ratio: 16 / 9.45;
}

.pm-category-hub .site-main > article .entry-header {
  padding: 18px 20px 0;
}

.pm-category-hub .pm-cat-card-topline {
  margin-bottom: 12px;
}

.pm-category-hub .pm-cat-card-cat {
  font-size: 0.68rem;
}

.pm-category-hub .pm-cat-card-readtime {
  min-height: 23px;
  padding: 2px 8px;
  font-size: 0.69rem;
}

.pm-category-hub .site-main > article .entry-title a,
.pm-category-hub .site-main > article .entry-title a:visited {
  line-height: 1.02;
}

.pm-category-hub .site-main > article .entry-summary {
  padding: 12px 20px 21px;
}

.pm-category-hub .site-main > article .entry-summary p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.pm-category-hub .site-main > article .inside-article:hover,
.pm-category-hub .site-main > article .inside-article:focus-within {
  transform: translateY(-3px) !important;
  border-color: rgba(88, 255, 182, 0.45) !important;
  box-shadow: var(--pm-cat-card-shadow-hover) !important;
  background: var(--pm-cat-card-bg-hover) !important;
}

.pm-category-hub .site-main > article:first-of-type .inside-article {
  display: flex !important;
  flex-direction: column !important;
}

.pm-category-hub .site-main > article:first-of-type .entry-header {
  padding: 18px 20px 0;
}

.pm-category-hub .site-main > article:first-of-type .entry-title a {
  font-size: clamp(2rem, 2.15vw, 2.85rem);
  line-height: 0.98;
}

.pm-category-hub .site-main > article:first-of-type .entry-summary {
  padding: 12px 20px 22px;
}

.pm-category-hub .site-main > article:first-of-type .entry-summary p {
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.62;
}

.pm-category-hub .site-main > article:first-of-type .post-image {
  margin-top: 0 !important;
}

.pm-category-hub .site-main > article:first-of-type .post-image img {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-header {
  padding-top: 16px;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-title a {
  font-size: clamp(1.34rem, 1.1rem + 0.9vw, 1.82rem);
  line-height: 1.08;
}

.pm-category-hub .site-main > article:not(:first-of-type) .entry-summary p {
  -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
  .pm-category-hub .site-main {
    gap: 20px;
  }

  .pm-category-hub .page-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .pm-category-hub .page-header .page-title {
    max-width: 100%;
    font-size: clamp(2.05rem, 8.2vw, 2.85rem);
  }

  .pm-category-hub .taxonomy-description {
    max-width: 33ch;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.56;
  }

  .pm-category-hub .pm-cat-archive-stats {
    gap: 8px;
    margin-bottom: 18px;
  }

  .pm-category-hub .pm-cat-archive-stat {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 10px 12px;
  }

  .pm-category-hub .pm-cat-archive-link-card {
    padding: 14px 14px 13px;
  }

  .pm-category-hub .pm-cat-archive-link-desc {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .pm-category-hub .pm-cat-archive-loop-head {
    margin: 10px 0 4px;
  }

  .pm-category-hub .pm-cat-archive-loop-head h2 {
    font-size: 1rem;
  }

  .pm-category-hub .pm-cat-archive-loop-head p {
    max-width: 32ch;
    margin-top: 7px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .pm-category-hub .site-main > article .inside-article {
    border-radius: 14px !important;
  }

  .pm-category-hub .site-main > article .post-image img {
    aspect-ratio: 16 / 9.6;
  }

  .pm-category-hub .site-main > article .entry-header {
    padding: 16px 16px 0;
  }

  .pm-category-hub .pm-cat-card-topline {
    margin-bottom: 10px;
  }

  .pm-category-hub .site-main > article .entry-summary {
    padding: 10px 16px 18px;
  }

  .pm-category-hub .site-main > article .entry-summary p {
    font-size: 0.93rem;
    line-height: 1.56;
  }

  .pm-category-hub .site-main > article:first-of-type .entry-title a {
    font-size: clamp(1.76rem, 7.2vw, 2.32rem);
  }

  .pm-category-hub .site-main > article:not(:first-of-type) .entry-title a {
    font-size: clamp(1.48rem, 6.5vw, 1.96rem);
  }

  .pm-category-hub .site-main > article:first-of-type .entry-summary {
    padding: 10px 16px 18px;
  }
}
