:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #20242a;
  background: #f4f6f8;
}

body {
  margin: 0;
}

.site-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem max(1rem, calc((100% - 60rem) / 2));
  color: white;
  background: #26384a;
}

.site-header a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

main {
  max-width: 60rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.introduction {
  color: #58636f;
}

.card {
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid #d8dde3;
  border-radius: 0.35rem;
  background: white;
}

form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

select,
button {
  padding: 0.5rem 0.65rem;
  font: inherit;
}

select {
  min-width: 18rem;
}

button {
  border: 1px solid #315f87;
  border-radius: 0.25rem;
  color: white;
  background: #315f87;
  cursor: pointer;
}


.page-heading,
.actions,
.field-row,
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button {
  display: inline-block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.25rem;
  color: white;
  background: #315f87;
  text-decoration: none;
}

.stacked-form {
  display: grid;
  align-items: stretch;
  max-width: 48rem;
}

.stacked-form label,
.stacked-form fieldset {
  display: grid;
  gap: 0.35rem;
}

.stacked-form input,
.stacked-form textarea,
.stacked-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem;
  font: inherit;
}

.field-row > *,
.option-row > :first-child {
  flex: 1;
}

.option-row > :last-child {
  width: 8rem;
}

.meta,
.hint,
.points {
  color: #58636f;
  font-size: 0.9rem;
}

.exam-layout-elements { padding-left: 1.5rem; }

.exam-page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.exam-page-title label { font-weight: 600; }

.exam-page-title input {
  margin-left: 0.35rem;
  padding: 0.45rem;
  font: inherit;
  font-weight: normal;
}

.exam-layout-element {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid #e1e5e9;
  border-radius: 0.25rem;
}

.exam-layout-element .meta { margin: 0.25rem 0 0; }

.exam-layout-answers {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
}

.exam-layout-answers > li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.exam-question-assignment {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e5e9;
}

.exam-question-assignment > p { margin: 0 0 0.5rem; }

.exam-question-assignment label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: #dcefe2;
}

.flash.error {
  background: #f8dddd;
}

.danger {
  border-color: #9b3030;
  background: #9b3030;
}

.media-attachment-list {
  padding: 0;
  list-style: none;
}

.media-attachment-list > li {
  margin: 1rem 0;
}

.media-thumbnail {
  display: block;
  width: auto;
  max-width: min(100%, 24rem);
  height: auto;
  max-height: 16rem;
  margin-bottom: 0.5rem;
  border: 1px solid #d8dde3;
  border-radius: 0.25rem;
  object-fit: contain;
}

.media-vault-preview {
  margin-bottom: 1rem;
}

.media-audio-preview {
  display: block;
  width: min(100%, 30rem);
  margin: 1rem 0;
}

.media-video-preview {
  display: block;
  width: auto;
  max-width: min(100%, 32rem);
  height: auto;
  max-height: 20rem;
  margin: 1rem 0;
  background: #20242a;
}

nav {
  margin-bottom: 1rem;
}


.header-nav {
  display: flex;
  gap: 1rem;
}


.help-content pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
