@use 'mixins' as mixins;
@use 'variables' as *;

* {
  box-sizing: border-box;
}

body,
form,
html {
  font-size: $sky-font-size-base;
  font-family: $sky-font-family;
}

body {
  background-color: var(--sky-background-color-neutral-light);
  color: var(--sky-text-color-default);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.1;
}

h2 {
  font-size: 26px;
  font-weight: 300;
}

h3 {
  font-size: 19px;
  color: var(--sky-text-color-deemphasized);
}

h4 {
  font-size: 14px;
}

h5 {
  font-size: 12px;
}

h6 {
  font-size: 10px;
}

h4,
h5,
h6 {
  font-weight: 600;
}

h1 {
  font-size: 34px;
  font-weight: 300;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--sky-text-color-action-primary);
  text-decoration: none;

  &:hover,
  &:active {
    color: var(--sky-text-color-action-primary-hover);
    text-decoration: underline;
  }

  &.sky-href[href=''],
  &.sky-href:not([href]) {
    &,
    &:hover,
    &:active {
      color: inherit !important;
      text-decoration: none !important;
    }
  }
}

.sky-pull-right {
  float: right;
}

.sky-list-unstyled {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;

  li:not(:last-of-type) {
    padding-bottom: var(--sky-padding-half);
  }
}

mark.sky-highlight-mark {
  background-color: var(--sky-highlight-color-warning);
  color: var(--sky-text-color-default);
}

.sky-rounded-corners {
  border-radius: $sky-border-radius;
}

.sky-rounded-circle {
  border-radius: 50%;
}

.sky-shadow {
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.sky-field-status-active {
  @include mixins.sky-field-status('active');
}

.sky-field-status-invalid {
  @include mixins.sky-field-status('invalid');
}

.sky-field-status-success {
  @include mixins.sky-field-status('success');
}
