// Every website specialised in scientific articles deals with a column
// container between 760px and 800px
$document-container-width: 780px;

///////////////////////////////////////////////////////////

.document-layout {
  $label-column-size: 96px;

  position: relative;
  width: 100%;

  &__header {
    display: flex;
    justify-content: space-between;
    padding: $card-spacer-y $card-spacer-x;
    border-bottom: 1px solid $border-color;
  }
  &__main-controls {
    display: flex;
    align-items: center;
  }
  &__side-controls {
    display: flex;
    align-items: center;
  }
  &__saving {
    color: $primary;
    display: flex;

    &__spinner {
      width: 16px;
      height: 16px;
    }
    &__icon {
      font-size: 20px;
      // fading icon apparition with a little pulse
      // wait a little, then fading icon on hiding
      animation: fade-in 200ms ease-in-out, fade-out 100ms ease-in-out 2000ms 1 normal forwards, pulse 200ms ease-in-out 0ms 1;
    }
  }
  &__body {    
    // max-width: $document-container-width
    padding: $card-spacer-x;
    margin: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  &__separator-label {
    font-weight: bold;
    border-bottom: 1px solid $gray-200;
    padding-bottom: space-x(0.5);
    margin-bottom: space-x(1.5);
  }
  &__title {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.4;
    word-wrap: break-word;
    // margin-bottom: space-x(3)
    font-family: $headings-font-family;
  }
  &__hdata {
    display: flex;
    margin-bottom: space-x(0.5);
    line-height: 1.3em;
    font-size: 15px;

    &__label {
      font-weight: bold;
      flex-basis: $label-column-size;
      flex-shrink: 0;
    }
    &__content {
      color: $gray-600;
    }
  }
  &__abstract {
    margin-top: space-x(3);
    margin-bottom: space-x(3);

    &__content {
      color: $gray-800;
      font-size: 18px;
      line-height: 1.4;
    }
  }
}