/* Global typography, page layout, helpers and shared components */

:root {
  font-size: 16px;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.7em;
  font-size: 13px;

  @media (min-width: 48em) {
    font-size: 16px;
  }
}

h1, h2, h3, h4, h5, h6, label {
  color: var(--atlas-heading);
}

/* Kept from normalize.css (formerly via Pure), which overrode Bootstrap here */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

a {
  text-decoration: none;
}

/* -- Layout -- */

#wrapper {
  min-height: 100%;
  position: relative;
}

#container {
  padding-top: 104px;
  min-height: 100%;

  @media (max-width: 500px) {
    padding-top: 70px;
  }
}

#content {
  padding-bottom: 300px; /* height of the footer */
  overflow: hidden;
}

#footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.application {
  background-color: white;

  .header {
    border-bottom: solid 1px var(--atlas-border) !important;
  }
}

/* -- Helpers -- */

.center,
.is-center {
  text-align: center;
}

.upcase {
  text-transform: uppercase;
}

.l-box {
  padding: 1em;
}

/* -- Components -- */

.box {
  display: block;
  padding: 20px;
  background-color: #fff;
  box-shadow: var(--atlas-shadow);

  &.no-border {
    box-shadow: none;
    background-color: transparent;
  }

  &.no-padding {
    padding: 0;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding-inline: 10px;
  border-radius: 999px;
  background-color: #f5f7fa;
  color: #69707a;
  font-size: 12px;
  line-height: 16px;
  vertical-align: middle;
  white-space: nowrap;

  &.is-small {
    height: 20px;
    padding-inline: 8px;
    font-size: 11px;
  }
}

/* Search box above the admin tables */
.admin-search {
  max-width: 24em;
  margin-bottom: 1em;
}
