// Brand section (copyright)

@use '../core' as *;

.#{$prefix}-footer-base {
  background-color: $color-crimson-500;
  color: $color-white-base;

  &__inner {
    border-top: 1px solid rgb(255 255 255 / .25);
    display: flex;
    flex-direction: column;
    margin-left: auto;
    padding-top: $spacing-sm;
    padding-bottom: $spacing-sm;
  }

  &__logo {
    margin: 0 auto;
  }

  &__list {
    padding: 0;
    list-style: none;
    text-align: center;
  }

  &__item {
    font-size: $ts-14;
    margin-top: $spacing-xs;
  }

  &__link {
    color: $color-white-base;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      color: $color-white-base;
    }
  }

  // Experimental "light" mode for simple sites without the need
  // for a footer system.

  &--light {
    background-color: $color-white-base;
    color: $color-black-500;
  }

  &--light a {
    color: $color-black-500;
  }

  &--light a:hover {
    color: $color-blue-500;
    text-decoration: underline;
  }

  &--light a:focus {
    outline-color: $color-blue-500;
  }

  &--light &__inner {
    border-top-color: $color-black-100;
  }

  &--light &__logo {
    color: $color-crimson-500;
  }
}

@include mq($breakpoint-md) {
  .#{$prefix}-footer-base {
    &__inner {
      flex-direction: row;
      align-items: center;
      margin-top: 0;
      margin-right: 0;
      margin-bottom: 0;
      justify-content: flex-end;
    }

    &__logo {
      display: inline-flex;
      margin: 0;
    }

    &__list {
      margin-top: 0;
      margin-bottom: 0;
      margin-left: $spacing-sm;
      display: flex;
    }

    &__item {
      margin-top: 0;
    }

    &__item:not(:first-child) {
      margin-left: $spacing-sm;
    }
  }
}
