.keywords {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  &.keywords--loading {
    display: block;

    text-align: center;
  }

  /* Row: intro text. */
  .keywords__description {
    margin: 0;
    padding: 0;

    font-size: var(--font-size-tiny);
  }

  /* Row: keywords input. */
  .keywords__input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    font-size: var(--font-size-tiny);
  }

  .keywords__input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-weight: var(--font-weight-medium);
  }

  /* Row: rank source selector and evaluate button */
  .keywords__rank-evaluate {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: var(--font-size-tiny);
  }

  /* Row: generate content guidance button */
  .keywords__generate-guidance {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding: 1rem 0;
  }

  /* Loading */
  .keywords__loading {
    text-align: center;
  }

  /* Evaluate results */
  .keywords__evaluate-results {
    padding: 1.25rem 0.75rem;

    animation: var(--conductor-pop-in);

    border: var(--form-border);
    border-radius: var(--form-border-radius);

    table {
      width: 100%;
      border-spacing: 0;
      border-collapse: separate;

      line-height: 1.25rem;
    }

    /* Header styles */
    th {
      padding-bottom: 1.25rem;

      font-size: var(--font-size-small);
      font-weight: var(--font-weight-medium);
    }

    /* Body styles */
    tbody td {
      padding-bottom: 0.5rem;

      font-size: var(--font-size-tiny);
    }

    tbody tr:last-child td {
      padding-bottom: 1rem;

      border-bottom: var(--form-border);
    }

    /* Footer styles */
    tfoot {
      font-size: var(--font-size-small);
      font-weight: var(--font-weight-medium);
      line-height: 1.25rem;
    }

    tfoot tr:first-child td {
      padding-top: 1rem;
    }

    /* Column alignment and emphasis */
    th:first-child,
    td:first-child {
      text-align: left;
    }

    th:last-child,
    td:last-child {
      text-align: right;
    }

    th:last-child,
    tfoot td:last-child {
      font-weight: var(--font-weight-heavy);
    }
  }
}
