/*
 * JP Financial — archives.css
 * Native view layer extracted intact from Additional CSS in Phase 7.
 */

.jp-category-page,
.jp-category-archive {
  background: #f5f4f0;
  color: #001c10;
  overflow-x: hidden;
}

.jp-category-hero {
  display: flex;
  align-items: center;
  min-height: 536px;
  padding: 174px 76px 96px;
  background: #001208;
  color: #ffffff;
}

.jp-category-hero__inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.jp-category-hero__eyebrow {
  margin: 0 0 28px;
  color: #dafba2;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jp-category-hero__title {
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-family: "TWK Everett", "TWK_Everett", Inter, sans-serif;
  font-size: clamp(58px, 7.4vw, 116px);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: 0;
}

.jp-category-hero__text {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.42;
}

.jp-category-container {
  width: min(100% - 260px, 1500px);
  margin: 0 auto;
}

.jp-category-filters-section {
  position: relative;
  padding: 54px 0 40px;
  background: #f5f4f0;
}

/* Keep native category archives on the same filter controls as the blog. */
.jp-category-filters-section .jp-blog-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.jp-category-filters-section .jp-blog-category-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: transparent;
  color: #6b6b6b;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: .56px;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.jp-category-filters-section .jp-blog-category-filter:hover,
.jp-category-filters-section .jp-blog-category-filter:focus-visible,
.jp-category-filters-section .jp-blog-category-filter.is-active {
  border-color: #dafba2;
  background: #dafba2;
  color: #00352d;
  text-decoration: none;
}

.jp-category-filters-section::before {
  position: absolute;
  top: 0;
  right: 130px;
  left: 130px;
  height: 1px;
  background: #d4d4d4;
  content: "";
}

.jp-category-grid-section {
  padding: 0 0 96px;
  background: #f5f4f0;
}

.jp-category-grid .jp-post-grid-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
}

.jp-category-grid .jp-post-card {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.jp-category-grid .jp-post-card:hover,
.jp-category-grid .jp-post-card:focus-visible {
  background: transparent;
  box-shadow: none;
}

.jp-category-grid .jp-post-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.jp-category-grid .jp-post-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.jp-category-grid .jp-post-card:hover .jp-post-card-image img,
.jp-category-grid .jp-post-card:focus-visible .jp-post-card-image img {
  transform: scale(1.04);
}

.jp-category-grid .jp-post-card-body {
  gap: 10px;
  padding: 20px 0 0;
}

.jp-category-grid .jp-post-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 16px;
  color: #00352d;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.jp-category-grid .jp-post-card-meta span[aria-hidden="true"] {
  width: 20px;
  height: 1px;
  overflow: hidden;
  background: #b4b4b4;
  color: transparent;
}

.jp-category-grid .jp-post-card-meta span:last-child {
  color: #8e8e8e;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.jp-category-grid .jp-post-card-title {
  color: #001c10;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -.3px;
}

.jp-category-grid .jp-post-card-excerpt {
  color: #6b6b6b;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
}

.jp-category-grid .jp-post-card-date {
  margin-top: 4px;
  color: #8e8e8e;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.jp-category-grid .jp-post-card:hover .jp-post-card-title,
.jp-category-grid .jp-post-card:focus-visible .jp-post-card-title {
  color: #00352d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.jp-category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  color: #00352d;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 18px;
  text-decoration: none;
}

.jp-category-pagination .current,
.jp-category-pagination a:hover,
.jp-category-pagination a:focus-visible {
  border-color: #dafba2;
  background: #dafba2;
  color: #00352d;
}

.jp-category-empty {
  margin: 0;
  color: #6b6b6b;
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.jp-category-newsletter-wrapper {
  background: #f5f4f0;
}

@media (max-width: 1180px) {
  .jp-category-container {
    width: calc(100% - 96px);
  }
}

@media (max-width: 920px) {
  .jp-category-hero {
    min-height: 520px;
    padding: 150px 40px 80px;
  }

  .jp-category-grid .jp-post-grid-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jp-category-filters-section::before {
    right: 48px;
    left: 48px;
  }
}

@media (max-width: 767px) {
  .jp-category-hero {
    min-height: 520px;
    padding: 132px 24px 72px;
  }

  .jp-category-hero__eyebrow {
    margin-bottom: 22px;
    font-size: 13px;
    letter-spacing: .16em;
  }

  .jp-category-hero__title {
    font-size: 44px;
    line-height: 1.04;
  }

  .jp-category-hero__text {
    margin-top: 22px;
    font-size: 20px;
    line-height: 1.35;
  }

  .jp-category-container {
    width: calc(100% - 48px);
  }

  .jp-category-filters-section {
    padding: 38px 0 34px;
  }

  .jp-category-filters-section .jp-blog-category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .jp-category-filters-section .jp-blog-category-filters::-webkit-scrollbar {
    display: none;
  }

  .jp-category-filters-section .jp-blog-category-filter {
    flex: 0 0 auto;
  }

  .jp-category-filters-section::before {
    right: 24px;
    left: 24px;
  }

  .jp-category-grid .jp-post-grid-items {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .jp-category-grid .jp-post-card-title {
    overflow-wrap: anywhere;
  }

  .jp-category-grid-section {
    padding-bottom: 72px;
  }
}
