/* Harbor journal: final shared rules and responsive variants. */
.hb-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.hb-post-card {
  background: var(--ocf-bg-alt);
  border-radius: var(--hb-radius);
  overflow: hidden;
}

.hb-post-card > a {
  display: block;
  height: 100%;
  color: var(--ocf-body);
  text-decoration: none;
}

.hb-post-card > a > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.hb-post-card__copy {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.hb-post-card__copy > * {
  margin: 0;
}

.hb-post-card h2 {
  font-size: 26px;
  line-height: 34px;
}

.hb-post-card:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hb-journal__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hb-journal__filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ocf-border);
  border-radius: 999px;
  color: var(--ocf-heading);
  font-size: 14px;
  text-decoration: none;
}

.hb-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ocf-border);
  border-radius: 999px;
  color: var(--ocf-heading);
  font-size: 14px;
  text-decoration: none;
}

.hb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ocf-border);
  border-radius: 999px;
  color: var(--ocf-heading);
  font-size: 14px;
  text-decoration: none;
}

.hb-journal__filters [aria-current] {
  background: var(--ocf-primary);
  color: var(--ocf-heading-alt);
}

.hb-pagination .current {
  background: var(--ocf-primary);
  color: var(--ocf-heading-alt);
}

.hb-pagination {
  margin-top: 48px;
}

.hb-pagination ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.hb-article__grid {
  display: grid;
  grid-template-columns: 288px minmax(0, 800px);
  gap: 64px;
  justify-content: center;
}

.hb-article__toc {
  align-self: start;
  position: sticky;
  top: 32px;
  font-size: 14px;
}

.hb-article__toc h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.hb-article__toc ol {
  padding-left: 20px;
}

.hb-article__toc li {
  margin-bottom: 16px;
}

.hb-article__toc a {
  color: var(--hb-accent-text);
}

.hb-article__grid:has(.hb-article__toc[hidden]) {
  grid-template-columns: minmax(0, 800px);
}

@media (max-width: 991px) {
  .hb-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hb-article__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .hb-article__toc {
    position: static;
  }
  .hb-post-card__copy {
    padding: 24px;
  }
}

@media (max-width: 599px) {
  .hb-post-grid {
    grid-template-columns: 1fr;
  }
  .hb-post-card > a > img {
    height: 220px;
  }
  .hb-journal__filters {
    gap: 8px;
  }
  .hb-journal__filters a {
    padding: 10px 16px;
  }
}

/* OCF_AGENT_BLOCK:hide-harbor-blog-card-dates START */
.hb-post-card time,
.hb-post-card__date,
.hb-post-card__meta,
.hb-post-card [class*="date"],
.hb-post-card [class*="meta"] {
  display: none !important;
}
/* OCF_AGENT_BLOCK:hide-harbor-blog-card-dates END */
