/* The 원고 불러오기 tab's cards (books/imports): what each source does, then its buttons at the
   bottom, so the buttons line up across a row, and a link to its manual chapter. The grid itself is
   in responsive.css (.import-cards). */
.import-card {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: var(--block-space);
  text-align: start;
}

.import-card__title {
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

.import-card__description {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.import-card__points {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  padding-inline-start: 1.2em;
}

.import-card__note {
  color: var(--color-subtle-dark);
  font-size: 0.8rem;
  margin: 0;
}

.import-card__actions {
  margin-block-start: auto;
  padding-block-start: 0.6em;

  > form { inline-size: 100%; } /* an app's 열기 (button_to) spans the card */
}

.import-card__manual {
  --btn-background: var(--color-selected);
  --btn-border-color: transparent;
  --btn-border-radius: 2em;
  --btn-color: var(--color-link);
  --btn-gap: 0.3em;
  --btn-padding: 0.3em 0.9em;
  --hover-size: 0;

  align-self: center;
  font-size: 0.8rem;
  font-weight: 500;

  &:hover {
    --btn-border-color: var(--color-link);
  }
}

/* The book icon takes the button's text color (a mask, since an <img> can't). */
.import-card__manual-icon {
  background-color: currentColor;
  block-size: 1.1em;
  flex: none;
  inline-size: 1.1em;
  mask: url("/assets/phosphor/book-open-82f2ce6d.svg") center / contain no-repeat;
}
