/* Containers */

.container {
  margin-left: var(--container-margin-y);
  margin-right: var(--container-margin-y);
}


/* Visibility */

.hidden,
.sr-only {
  display: none;
}

.inline {
  display: inline !important;
}

.inline-flex {
  display: inline-flex !important;
}


/* Headings */

.heading {
  /* TODO: Refactor to remove color duplication in other heading classes */
  color: var(--color-fg-lighter);
  margin: 1rem 0;
}

.heading--xl {
  font-weight: 900;
  font-size: 2.3rem;
}

.heading--alt {
  text-transform: uppercase;
  color: var(--color-fg-lightest);
  font-size: 1.05rem;
  font-weight: 400;
}

.heading--divider,
.heading--box {
  margin: 1rem auto -0.25rem;
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;

  > span {
    background: hsl(var(--colog-bg-heading-divider));
    color: var(--colog-fg-heading-divider);
    padding: .4rem .8rem;
    border-radius: .45rem;
    position: relative;
    line-height: 1.4rem;
    text-shadow: var(--bright-text-shadow);

    small {
      font-weight: normal;
    }
  }
}

.heading--box {
  margin: -2.3rem 0 2.2rem;
}

.heading--divider {
  &:before {
    content: " ";
    display: block;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, hsla(var(--colog-bg-heading-divider), 34%), transparent) 1;
    position: relative;
    top: 0.75rem;
  }
}

.heading--cli {
  > span {
    background: hsl(0, 0%, 39%);
  }
}


/* Indicators */

.indicator-up {
  --dot-size: .65rem;
  width: var(--dot-size);
  height: var(--dot-size);
  background: var(--color-indicator-up);
  display: inline-block;
  border-radius: 50%;
}


/* Text */

.text-normal {
  font-weight: normal;
}

.font-default {
  font-family: var(--font-family-default);
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-danger {
  color: var(--color-fg-danger);
}

.text-green {
  color: green;
}

.text-faint {
  color: var(--color-fg-lightest);
}

.text-xl {
  font-size: 1.55rem;
}

.text-sm {
  font-size: 0.85rem !important;
  line-height: 1.3;
}

.text-line-through {
  text-decoration: line-through;
}

button.text-danger {
  border: none;
  background: none;
  display: inline;
  padding: 0;
  margin: 0;
}

.underline {
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-link-lighter);
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
