/* Scoped to the Dharma Shop help category blog. */
.dharma-help-index {
  --help-ink: #142b4d;
  --help-muted: #59636c;
  --help-line: #d9e1e7;
  --help-blue: var(--dharma-primary, #0067a7);
  max-width: 1240px;
  margin-inline: auto;
  color: var(--help-ink);
}

.dharma-help-index__intro {
  padding: clamp(1.5rem, 4vw, 3.25rem) 0 2rem;
  border-bottom: 1px solid var(--help-line);
}

.dharma-help-index__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--help-blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dharma-help-index__title {
  margin: 0;
  color: var(--help-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.dharma-help-index__description {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: var(--help-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.dharma-help-index__search {
  max-width: 660px;
  margin-top: 1.6rem;
}

.dharma-help-index__search label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--help-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.dharma-help-index__search .form-control {
  min-height: 52px;
  border: 1px solid #c8d3dc;
  border-radius: 3px;
  box-shadow: none;
  font-size: 1rem;
}

.dharma-help-index__search .form-control:focus {
  border-color: var(--help-blue);
  box-shadow: 0 0 0 3px rgba(0, 103, 167, 0.13);
}

.dharma-help-index__section {
  padding-top: 1.7rem;
}

.dharma-help-index__section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dharma-help-index__section-heading h2 {
  margin: 0;
  color: var(--help-ink);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dharma-help-index__count {
  margin: 0;
  color: var(--help-muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.dharma-help-index__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  border-top: 1px solid var(--help-line);
}

.dharma-help-index__item {
  min-width: 0;
  border-bottom: 1px solid var(--help-line);
}

.dharma-help-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.45rem 0 1.55rem;
}

.dharma-help-card__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.4;
}

.dharma-help-card__title a {
  color: var(--help-ink);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.dharma-help-card__title a:hover,
.dharma-help-card__title a:focus-visible {
  color: var(--help-blue);
  text-decoration: underline;
}

.dharma-help-card__excerpt {
  max-width: 62ch;
  margin: 0.65rem 0 1.15rem;
  color: var(--help-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.dharma-help-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--help-blue);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.dharma-help-card__link:hover,
.dharma-help-card__link:focus-visible {
  color: var(--help-ink);
  text-decoration: underline;
}

.dharma-help-index__no-results,
.dharma-help-index__empty {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--help-line);
  border-left: 3px solid var(--help-blue);
  color: var(--help-muted);
}

.dharma-help-index__empty h2 {
  margin: 0 0 0.4rem;
  color: var(--help-ink);
  font-size: 1.2rem;
}

.dharma-help-index__empty p {
  margin: 0;
}

.dharma-help-index__pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.dharma-help-index [hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  .dharma-help-index__intro {
    padding-top: 1.5rem;
  }

  .dharma-help-index__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dharma-help-index__section-heading {
    align-items: flex-start;
  }

  .dharma-help-card {
    padding-block: 1.2rem;
  }
}
