.hba {
  color: var(--hba-navy);
  background: var(--hba-background, #fff);
  font-family: var(--hba-font, "Proxima Nova", Arial, sans-serif);
  scroll-margin-top: 8rem;
}

.hba__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hba__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, var(--hba-title-size, 52px));
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hba__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.625rem;
}

.hba__filter,
.hba__page-button {
  appearance: none;
  border: 1px solid var(--hba-border);
  border-radius: 999px;
  background: var(--hba-button, #fff);
  color: var(--hba-button-text, var(--hba-navy));
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0.8rem 1.15rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hba__filter:hover,
.hba__filter:focus-visible,
.hba__page-button:hover:not(:disabled),
.hba__page-button:focus-visible:not(:disabled) {
  border-color: var(--hba-orange);
  outline: none;
  transform: translateY(-1px);
}

.hba__filter.is-active {
  border-color: var(--hba-orange);
  background: var(--hba-orange);
  color: var(--hba-active-text, #fff);
}

.hba__results {
  min-height: 18rem;
  transition: opacity 160ms ease;
}

.hba.is-loading .hba__results {
  opacity: 0.45;
  pointer-events: none;
}

.hba__grid {
  display: grid;
  grid-template-columns: repeat(var(--hba-columns, 3), minmax(0, 1fr));
  gap: var(--hba-gap, 32px);
}

.hba-card {
  overflow: hidden;
  border: 1px solid var(--hba-border);
  border-radius: var(--hba-radius, 20px);
  background: var(--hba-card, #fff);
  box-shadow: 0 1rem 2.5rem rgba(8, 30, 63, 0.07);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hba-card:hover {
  box-shadow: 0 1.25rem 3rem rgba(8, 30, 63, 0.12);
  transform: translateY(-0.25rem);
}

.hba-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #edf2f6;
}

.hba-card__image,
.hba-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hba-card:hover .hba-card__image {
  transform: scale(1.025);
}

.hba-card__placeholder {
  background: linear-gradient(135deg, #e7eef4, #f8fafc);
}

.hba-card__body {
  padding: 1.5rem;
}

.hba-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  color: var(--hba-gray);
  font-size: 0.8rem;
}

.hba-card__meta span {
  color: var(--hba-orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hba-card__title {
  margin: 0;
  font-size: var(--hba-card-title-size, 22px);
  line-height: 1.2;
}

.hba-card__title a,
.hba-card__link {
  color: inherit;
  text-decoration: none;
}

.hba-card__excerpt {
  margin: 1rem 0 1.25rem;
  color: var(--hba-gray);
  line-height: 1.65;
}

.hba-card__link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 800;
}

.hba-card__link:hover,
.hba-card__link:focus-visible {
  color: var(--hba-orange);
}

.hba__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.hba__pagination[hidden] {
  display: none;
}

.hba__page-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.hba__page-state {
  color: var(--hba-gray);
  font-size: 0.9rem;
}

.hba__empty {
  padding: 4rem 1.5rem;
  border: 1px dashed var(--hba-border);
  border-radius: 1.25rem;
  text-align: center;
  color: var(--hba-gray);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hba-toc {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--hba-toc-border, #d9e2eb);
  font-family: "Proxima Nova", Arial, sans-serif;
}

.hba-toc[hidden],
.hba-toc.is-pending {
  display: none;
}

.hba-toc__title {
  margin: 0 0 1rem;
  color: var(--hba-toc-title, #081e3f);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hba-toc__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hba-toc__link {
  display: block;
  color: var(--hba-toc-text, #706f6f);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.hba-toc__link:hover,
.hba-toc__link:focus-visible,
.hba-toc__link.is-active {
  color: var(--hba-toc-active, #f78a30);
  outline: none;
  transform: translateX(0.2rem);
}

.hba-toc-target {
  scroll-margin-top: 8rem;
}

@media (max-width: 1024px) {
  .hba__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hba__filters {
    justify-content: flex-start;
  }

  .hba__grid {
    grid-template-columns: repeat(var(--hba-columns-tablet, 2), minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
	.hba-toc {
		padding: 1.25rem;
		border: 1px solid var(--hba-toc-border, #d9e2eb);
		border-radius: 1rem;
	}

  .hba__header {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .hba__filters {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
  }

  .hba__filter {
    flex: 0 0 auto;
  }

  .hba__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hba-card__body {
    padding: 1.25rem;
  }

  .hba-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .hba__pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .hba__page-state {
    order: -1;
    text-align: center;
  }
}

