/* Blog category archive — one sheet for every blog category (category.php).
   Namespace: .hs-blogcat__*
   Sections: 1 hero & meta, 2 figure, 3 section intro, 4 article grid,
   5 pagination, 6 empty state, 7 other categories, 8 closing CTA,
   9 responsive, 10 reduced motion, 11 load-order guard.

   IMAGE SLOTS — declared in category.php, rendered at 1200 × 800:
     FIG. 01 — hero panel visual — placehold.co/1200x800/0B2742/F59E0B

   Card styling lives in assets/css/post-card.css and is never touched here.
   Orange stays a small accent only: it comes from the shared title rule in
   page.css (.hs-page__title::after) and the primary button in the closing CTA,
   so no decorative orange is added here. */

/* 1. Hero and term metadata ------------------------------------------------ */
.hs-blogcat__hero {
  padding-bottom: clamp(44px, 5vw, 68px);
}

.hs-blogcat__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px 56px;
  align-items: start;
}

.hs-blogcat__hero-copy {
  min-width: 0;
}

.hs-blogcat__desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--hs-slate);
  max-width: 62ch;
  margin: 24px 0 0;
}

.hs-blogcat__desc p {
  color: inherit;
  margin: 0 0 0.9rem;
}

.hs-blogcat__desc > :last-child {
  margin-bottom: 0;
}

.hs-blogcat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 44px;
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hs-mist);
}

.hs-blogcat__meta-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  min-width: 0;
}

.hs-blogcat__meta-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-slate);
}

.hs-blogcat__meta-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hs-ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.hs-blogcat__hero-actions,
.hs-blogcat__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* 2. Hero figure ----------------------------------------------------------- */
.hs-blogcat__figure {
  margin: 0;
  min-width: 0;
}

.hs-blogcat__figure-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-card);
  background-color: var(--hs-white);
}

.hs-blogcat__figure-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hs-slate);
}

.hs-blogcat__figure-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-blue);
}

.hs-blogcat__figure-text {
  flex: 1 1 auto;
}

.hs-blogcat__figure-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hs-slate);
  font-variant-numeric: tabular-nums;
}/* 3. Section intro: heading left, note right (house pattern) ---------------- */
.hs-blogcat__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 44px;
}

.hs-blogcat__h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0;
}

.hs-blogcat__intro-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hs-slate);
  max-width: 56ch;
  margin: 0;
}

/* 4. Article grid (cards themselves stay in post-card.css) ------------------ */
.hs-blogcat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px 24px;
  align-items: stretch;
}

/* 5. Pagination ------------------------------------------------------------- */
.hs-blogcat__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--hs-mist);
}

.hs-blogcat__pagination-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-slate);
  font-variant-numeric: tabular-nums;
}

.hs-blogcat__pagination-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hs-blogcat__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--hs-navy);
  background-color: var(--hs-white);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-control);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hs-blogcat__pagination .page-numbers:hover {
  border-color: #b9cbda;
  background-color: var(--hs-cloud);
  text-decoration: none;
}

.hs-blogcat__pagination .page-numbers:focus-visible {
  outline: none;
  border-color: var(--hs-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.18);
}

.hs-blogcat__pagination .page-numbers.current {
  color: var(--hs-white);
  background-color: var(--hs-navy);
  border-color: var(--hs-navy);
}

.hs-blogcat__pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0;
  border-color: transparent;
  background-color: transparent;
  color: var(--hs-slate);
}

/* 6. Empty state ------------------------------------------------------------ */
.hs-blogcat__empty {
  max-width: 760px;
}

.hs-blogcat__empty-title {
  font-size: 22px;
  margin: 0 0 14px;
}

.hs-blogcat__empty-text {
  margin: 0 0 26px;
  max-width: 68ch;
}/* 7. Other categories ------------------------------------------------------- */
.hs-blogcat__cats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
}

.hs-blogcat__cat-item {
  border-top: 1px solid var(--hs-mist);
  min-width: 0;
}

.hs-blogcat__cat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  min-height: 44px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
}

.hs-blogcat__cat:hover {
  text-decoration: none;
}

.hs-blogcat__cat-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hs-navy);
  transition: color 0.18s ease;
}

.hs-blogcat__cat:hover .hs-blogcat__cat-name {
  color: var(--hs-blue);
}

.hs-blogcat__cat:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.18);
}

.hs-blogcat__cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-slate);
  font-variant-numeric: tabular-nums;
}

/* 8. Closing call to action ------------------------------------------------- */
.hs-blogcat__cta {
  border-bottom: 0;
}

.hs-blogcat__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hs-blogcat__cta-title {
  font-size: clamp(24px, 2.8vw, 34px);
  color: var(--hs-white);
  max-width: 34ch;
  margin: 0 0 12px;
}

.hs-blogcat__cta-text {
  font-size: 16px;
  color: #c4d5e2;
  max-width: 56ch;
  margin: 0;
}

.hs-blogcat__cta-actions {
  flex: none;
}

/* 9. Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hs-blogcat__hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hs-blogcat__figure {
    max-width: 640px;
  }
}

@media (max-width: 900px) {
  .hs-blogcat__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .hs-blogcat__cats {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hs-blogcat__cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  /* Single-column article list on small screens. */
  .hs-blogcat__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hs-blogcat__meta {
    gap: 0 24px;
  }

  .hs-blogcat__pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .hs-blogcat__hero-actions,
  .hs-blogcat__empty-actions,
  .hs-blogcat__cta-actions {
    width: 100%;
  }

  .hs-blogcat__hero-actions .hs-btn,
  .hs-blogcat__empty-actions .hs-btn,
  .hs-blogcat__cta-actions .hs-btn {
    width: 100%;
  }
}

/* 10. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hs-blogcat__cat-name,
  .hs-blogcat__pagination .page-numbers {
    transition: none;
  }
}/* ---------------------------------------------------------------------------
   Load-order guard.
   page.css is enqueued by functions.php for page templates only, while
   category.php also uses the shared page classes (.hs-page__hero,
   .hs-page__title, .hs-page__panel, .hs-prose). The scoped rules below repeat
   the page.css values for this template only, so the archive renders
   identically whether or not page.css is enqueued on is_category().
   assets/css/page.css stays the source of truth; these declarations are not a
   redesign of it.
   --------------------------------------------------------------------------- */
.hs-blogcat .hs-page__hero {
  background-color: var(--hs-cloud);
  border-bottom: 1px solid var(--hs-mist);
  padding: clamp(48px, 6vw, 80px) 0;
}

.hs-blogcat .hs-page__title {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 900px;
  overflow-wrap: break-word;
}

.hs-blogcat .hs-page__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 24px;
  background-color: var(--hs-orange);
}

.hs-blogcat .hs-page__panel {
  width: 100%;
  max-width: 760px;
  background-color: var(--hs-white);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 1px 2px rgba(11, 39, 66, 0.04), 0 20px 40px -32px rgba(11, 39, 66, 0.35);
}

.hs-blogcat .hs-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--hs-ink);
}

.hs-blogcat .hs-page__panel > :first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .hs-blogcat .hs-page__hero {
    padding: 40px 0;
  }

  .hs-blogcat .hs-page__title::after {
    margin-top: 18px;
  }

  .hs-blogcat .hs-prose {
    font-size: 16px;
  }
}/* Two columns: the category listing on the left, the inquiry aside on the right.
   The aside is sticky by itself (assets/css/inquiry-aside.css). */
.hs-blogcat__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 48px;
  align-items: start;
}

.hs-blogcat__main {
  min-width: 0;
}

@media (max-width: 900px) {
  .hs-blogcat__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}