/* The Template step (components/template_step.cljs, template_choices.cljs):
   the templates in the list at the left, the chosen template's example at
   the right: its first slide at the step picture size, its name and its
   description (docs/design-system.md, Step cards). */

.template-example {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.template-example__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  max-width: var(--content-narrow);
}

.template-example__title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.template-example__description,
.template-example__note {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

/* A template's slide is often white on the white card; a line marks its
   edge. A click on it opens the slides full size. */
.template-choices__slide {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: var(--radius-media);
  box-shadow: 0 0 0 var(--border-width) var(--color-border);
  cursor: zoom-in;
}

.template-choices__slide:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.template-choices__no-description {
  font-size: var(--text-note);
}

/* On a phone the description goes under the slide. */
@media (max-width: 860px) {
  .template-example {
    flex-direction: column;
  }
}
