.ac-all-recipes {
  padding-block: var(--space-10) var(--space-20);
}

/* Breadcrumb reset */
.ac-all-recipes .ac-breadcrumb {
  background: transparent;
  border: none;
  padding-inline: 0;
  padding-block: var(--space-2) var(--space-4);
}
.ac-all-recipes .ac-breadcrumb__inner { padding: 0; }

/* Header */
.ac-all-recipes__header {
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.ac-all-recipes__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.15;
}

.ac-all-recipes__sub {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: 0;
}

/* Card grid - flexbox instead of CSS Grid so a trailing partial row
   (e.g. the last page of pagination, which rarely has an exact
   multiple of the column count) fills naturally instead of leaving
   empty reserved columns. Percentage-based flex-basis keeps full
   rows pixel-identical to the previous grid layout. */
.ac-all-recipes__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.ac-all-recipes__grid > .recipe-card {
  flex: 1 1 calc((100% - 3 * var(--space-6)) / 4);
  max-width: 400px;
}

@media (max-width: 1024px) {
  .ac-all-recipes__grid > .recipe-card { flex-basis: calc((100% - 2 * var(--space-6)) / 3); }
}
@media (max-width: 700px) {
  .ac-all-recipes__grid > .recipe-card { flex-basis: calc((100% - 1 * var(--space-6)) / 2); }
}
@media (max-width: 420px) {
  .ac-all-recipes__grid > .recipe-card { flex-basis: 100%; max-width: 100%; }
}
