.page {
  padding: 2rem 0;
}

@media (min-width: 997px) {
  .page {
    max-width: 800px;
    margin: auto;
  }
}

.searchBar {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 0.5rem;
  background-color: var(--ifm-background-color);
  color: var(--ifm-color-content);
}

.rulesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.ruleCard {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--ifm-heading-color);
  transition: all 0.2s ease-in-out;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  &:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
}

.noSearchResults {
  text-align: center;
  padding: 3rem;
  color: var(--ifm-color-emphasis-600);
  min-height: 30vh;
}

.cardHeader {
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0 0 0.5rem 0;
  }
}

.cardBody {
  flex: 1;
  p {
    margin: 0;
  }
}
