/* Template detail pages */

.template-detail { padding-bottom: 3rem; }

.template-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .template-hero { grid-template-columns: 1fr; }
}

.template-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.template-preview svg { width: 100%; height: 100%; }

.template-info__category {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.template-info__category a {
  color: var(--orange);
  text-decoration: none;
}

.template-info__category a:hover { text-decoration: underline; }

.template-info__excerpt {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.template-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.template-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.template-features li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.template-features svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 0.15rem;
}

.template-body {
  max-width: 48rem;
}

.template-section {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.template-section:first-of-type { border-top: none; padding-top: 0; }

.template-section h2 { font-size: 1.25rem; }

.field-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.field-list li {
  padding: 0.5rem 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-section h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }

.template-editorial {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
