.templates-page-shell {
  padding: 20px 0 56px;
}

.templates-page-stack {
  display: grid;
  gap: 24px;
}

.template-guide {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  background:
    radial-gradient(circle at top left, rgba(240, 98, 146, 0.08), transparent 26%),
    rgba(255, 255, 255, 0.82);
}

.template-guide-title,
.template-guide-copy {
  margin: 0;
}

.template-guide-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.template-guide-copy {
  color: var(--color-dark-soft);
  line-height: 1.65;
}

.template-filter-bar {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  background:
    radial-gradient(circle at top left, rgba(240, 98, 146, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(108, 124, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.82);
}

.template-filter-bar-head {
  display: grid;
  gap: 6px;
}

.template-filter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.template-filter-copy {
  margin: 0;
  color: var(--color-dark-soft);
  line-height: 1.6;
}

.template-filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#template-grid-anchor {
  scroll-margin-top: 112px;
}

@media (max-width: 960px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .templates-page-shell {
    padding-top: 16px;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }
}
