/* ============================================================
   Category, tag and theme lists (post/list_view.html): rules whose
   selectors name a class only that template uses. Loaded only there.
   ============================================================ */


.list-page-header {
  position: relative;
  padding-top: max(30px, var(--hr-space-9));
  padding-bottom: max(15px, calc(var(--hr-space-9) / 2));
  text-align: center;
}

.page-grid .list-page-header .list-page-header__title {
  font-size: 36px;
  line-height: 1.1;
  font-weight: var(--hr-w-semibold);
  text-decoration: none;
}

.page-grid .list-page-header .list-page-header__title::after {
  content: none;
}

.list-page-header__count {
  position: absolute;
  right: 0;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 var(--hr-space-3);
  border-radius: var(--hr-radius-pill);
  background: rgba(94,175,107,0.10);
  border: 1px solid rgba(94,175,107,0.22);
  color: rgba(0,0,0,0.72);
  font-weight: var(--hr-w-semibold);
  font-size: 0.95rem;
  pointer-events: none;
  user-select: none;
}

.list-page-header__lead {
  margin: var(--hr-space-5) auto 0;
  max-width: 70ch;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
}

.list-page-header__lead a {
  color: #5EAF6B;
  font-weight: var(--hr-w-semibold);
  text-decoration: none;
  text-underline-offset: 3px;
}

.list-page-header__lead a:hover {
  text-decoration: underline;
}

.list-page-header__lead p {
  margin: 0;
}

.list-page-header__lead p + p {
  margin-top: 10px;
}

.page-grid.is-category-page .pagination {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.page-grid.is-category-page .pagination a,
.page-grid.is-category-page .pagination .disabled,
.page-grid.is-category-page .pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--hr-radius-pill);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: var(--hr-w-medium);
}

.page-grid.is-category-page .pagination a:hover {
  border-color: transparent;
  background: rgba(94, 175, 107, 0.1);
  color: #1a502c;
}

.page-grid.is-category-page .pagination .current {
  background: #5EAF6B1F;
  border-color: transparent;
  color: #1A502C;
  font-weight: var(--hr-w-semibold);
}

.page-grid.is-category-page .pagination .disabled {
  opacity: 0.55;
}

@media (max-width: 600px) {
.page-grid.is-category-page .pagination .pagination__first,
  .page-grid.is-category-page .pagination .pagination__last {
    display: none;
  }
}

.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hr-space-3);
  width: 268px;
  height: 48px;
  padding: 0 var(--hr-space-5);
  margin: 30px auto 0;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #696E80 1%, rgba(255, 56, 60, 0.8) 99%) border-box;
  color: #1f1f1f;
  text-decoration: none;
}

.page-grid.is-category-page.is-webinar-page .list-page-header__lead {
  margin-top: var(--hr-space-8);
}

.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta:hover {
  background: #FF383C;
  border-color: #FF383C;
  color: var(--hr-paper);
}

.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #FF383C;
}

.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta:hover .webinar-youtube-cta__icon {
  color: var(--hr-paper);
}

.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta__label {
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 768px) {
.page-grid.is-category-page.is-webinar-page .webinar-youtube-cta {
    width: min(100%, 268px);
  }
}

@media (max-width: 1024px) {
.page-grid .list-page-header .list-page-header__title {
    font-size: 28px;
  }

.list-page-header__count {
    position: static;
    margin: var(--hr-space-3) auto 0;
  }
}

@media (max-width: 768px) {
.list-page-header {
    padding-top: var(--hr-space-4);
  }
}

/* "Allt innehåll" under the list */
.all-content .container.all-content__inner {
  padding: 0;
  margin: 1.5rem auto;
}
