:root {
  --radius: 1em;
  --small-radius: 0.5em;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body > section {
  display: flex;
  min-height: 100vh;
}

#env-banner {
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  position: fixed;
  padding: 0.5em 0;
}

#env-banner + section {
  padding-top: 2.5rem;
  min-height: calc(100vh - 2.5rem);
}

main#authentication {
  width: 100%;
  padding: 1em;
  display: flex;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--system-white);
}

main#authentication > section {
  width: 24rem;
  margin: 0 auto;
}

main.content {
  width: 100%;
  padding: 2em;
  box-sizing: border-box;
}

main>header {
  display: flex;
  margin-bottom: 1em;
  flex-direction: column;
  justify-content: space-between;
}

#home-headline>.group-items,
header>.group-items {
  flex-direction: column;
}

.group-items {
  gap: .5em;
  width: 100%;
  display: flex;
}

.group-items.center {
  align-items: center;
}

.group-items.end {
  align-items: flex-end;
}

.group-items.center > .button {
  margin: 0;
  height: 100%;
  line-height: 120%;
}

#homepage-card-stack .group-items {
  gap: 1.5em;
}

.spread-items {
  gap: .5em;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

menu.spread-items {
  margin: 0;
  padding: 0;
  flex-direction: row-reverse;
}

menu.spread-items > * {
    margin: 0;
    width: fit-content;
}

.group-items.document {
  flex-wrap: wrap;
}

.group-items.document > .button {
  margin-top: 0;
}

.pagination .group-items {
  width: fit-content;
}

h1,
p {
  margin: 1em 0;
}

.title--icon {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.title--icon > a {
  display: flex;
}

.title--icon > span {
  display: none;
}

table {
  width: 100%;
  border-radius: .5em;
}

th {
  padding: 1.5em;
}

td {
  padding: 1em 1.5em;
}

form select {
  padding: 1em;
  border-radius: 0.5em;
}

.box {
  border-radius: var(--radius);
  padding: 2rem 1rem;
  max-width: 24em;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.warning {
  gap: .5em;
  width: 100%;
  display: flex;
  padding: 1em;
  margin-bottom: 1em;
  box-sizing: border-box;
  border-radius: var(--small-radius);
}

.warning > p {
  margin: 0;
}

.warning > svg {
  margin-top: .25em;
  min-width: max-content;
  min-height: max-content;
}

.card {
  padding: 1.25em;
  border-radius: 0.5em;
  margin-bottom: 0.5rem;
}

.form-field {
  margin-bottom: 0.75em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  padding: 0.75rem;
  background-color: var(--system-white);
  border: 0.0625em solid var(--system-gray-300);
  outline: none;
  border-radius: 0.375rem;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
  background-color: var(--system-white);
  border-color: var(--system-gray-400);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-label-container {
  display: flex;
  flex-direction: column;
}

.checkbox-form {
  display: block;
  border: 0.063rem solid var(--system-gray-300);
  border-radius: 0.188rem;
  background-color: var(--system-white);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.checkbox-label {
  margin-top: 0;
}

.checkbox-container input[type="checkbox"] {
  border: 0.063rem solid var(--system-gray-300);
  border-radius: 0.188rem;
  background-color: var(--system-white);
}

.checkbox-container input[type="checkbox"]:checked {
  background-color: black;
  border-color: var(--system-coal-300);
}

.checkbox-paragraph {
  font-size: 0.75rem;
  color: #666;
}

.checkbox-paragraph a {
  color: #666;
  text-decoration: underline;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-container {
  display: flex;
  gap: 15px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.empty-state {
  height: 100vh;
  display: flex;
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.empty-state > * {
  max-width: 18em;
}

.empty-state > img {
  margin: 2em;
  width: 50vmin;
  object-fit: contain;
}

/* Sidebar */

#main-menu-toggler-icon {
  z-index: 2;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  bottom: 1rem;
  display: flex;
  position: fixed;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

input[type=checkbox].toggler {
  display: none;
}

input[type=checkbox].toggler:checked + aside {
  transform: translateX(0);
}

aside {
  z-index: 1;
  width: 17em;
  padding: 1em;
  height: 100%;
  display: flex;
  position: fixed;
  max-height: 100vh;
  box-sizing: border-box;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
  transform: translateX(calc(-100% + 0.25rem));
}

aside header {
  gap: .75rem;
  display: flex;
  flex-shrink: 0;
  align-items: end;
  margin-bottom: 1.5rem;
}

aside h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: initial;
}

aside .logo {
  width: 2rem;
  height: 2rem;
}

aside nav {
  flex: 1;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

aside div {
  flex-grow: 1;
}

aside nav section {
  display: flex;
  flex-direction: column;
}

aside nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

aside nav li {
  list-style: none;
  margin-top: .5em;
}

aside nav li > span {
  display: block;
  font-size: .75em;
  font-weight: 600;
  padding: .75em 1em;
  text-transform: uppercase;
}

aside nav li a,
aside nav li a:visited,
aside nav li a:hover {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .75em;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  border-radius: var(--small-radius);
}

.icon--stroke,
.icon {
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  margin-bottom: 0.1em;
}

aside nav li a > * {
  vertical-align: bottom;
}

/**/

@media (min-width: 480px) {
  .box {
    margin: 1rem;
  }
  header nav,
  header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header nav ul li {
    margin: 0 0 0 2em;
  }
}

@media (min-width: 48rem) {
  .title--icon > span {
    display: initial;
  }

  .spread-items {
    flex-wrap: nowrap;
  }

  #home-headline > .group-items,
  header > .group-items {
    flex-direction: row;
  }
}

@media (min-width: 56rem) {
  main.content {
    padding: 1em;
    margin: 1em 1em 0 20em;
    max-width: calc(100vw - 22em);
  }

  main > header {
    flex-direction: row;
  }

  header > .group-items {
    flex-direction: row;
  }

  #main-menu-toggler-icon {
    display: none;
  }
}
