/* adapted from https://github.com/kognise/water.css */
:root {
  --body-font: var(--source);
  --background-body: #fff;
  --background-ui: #f7f7f7;
  --background-alt: #f7f7f7;
  --selection: #9e9e9e;
  --text-main: #363636;
  --links: #0076d1;
  --focus: rgba(0, 150, 191, 0.67);
  --border: #dbdbdb;
  --animation-duration: 0.1s;
  --button-hover: #ddd;
  --scrollbar-thumb: #d5d5d5;
  --scrollbar-thumb-hover: #c4c4c4;
  --form-font: sans-serif;
  --form-placeholder: #949494;
  --form-text: #000;
  --input-thumb: #000;
  --highlight: #ff0;
  --select-arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='63' width='117' fill='%23161f27'%3E%3Cpath d='M115 2c-1-2-4-2-5 0L59 53 7 2a4 4 0 00-5 5l54 54 2 2 3-2 54-54c2-1 2-4 0-5z'/%3E%3C/svg%3E");
}
html {
  scrollbar-color: var(--scrollbar-thumb) var(--background-body);
  scrollbar-width: thin;
}
body {
  line-height: 1.4;
  word-wrap: break-word;
  color: var(--extra-dark-blue);
  background: var(--background-body);
  font-family: var(--body-font);
  text-rendering: optimizeLegibility;
  /* font-feature-settings: "kern" 1, "onum" 0, "liga" 0, "tnum" 1; */
}

h1 {
  font-family: var(--circular);
  font-weight: 700;
}

h2 {
  font-family: var(--circular);
  font-weight: 700;
}

h3 {
  font-family: var(--circular);
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1rem 0;
}
p {
  margin: 1rem 0;
  font-family: var(--source);
  font-weight: 400;
  color: var(--extra-dark-blue);
}

text {
  font-family: var(--source);
  color: var(--extra-dark-blue);
}

input.button {
  font-family: "Circular";
  font-weight: 600;
  border-radius: 0;
  border: var(--light-plum) solid 1px;
  text-align: center;
}
button,
input,
textarea {
  transition: background-color var(--animation-duration) linear,
    border-color var(--animation-duration) linear,
    color var(--animation-duration) linear,
    box-shadow var(--animation-duration) linear,
    transform var(--animation-duration) ease;
}
mark {
  background-color: var(--highlight);
  border-radius: 2px;
  padding: 0 2px;
}
button,
input[type="button"],
input[type="checkbox"],
input[type="radio"],
input[type="range"],
input[type="submit"],
select {
  cursor: pointer;
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  display: block;
}
button,
input,
select,
textarea {
  color: var(--form-text);
  background-color: var(--background-ui);
  font-family: var(--form-font);
  font-size: inherit;
  padding: 0.5em;
  border: none;
  border-radius: 4px;
  outline: none;
}
input[type="checkbox"],
input[type="radio"] {
  height: 1em;
  width: 1em;
}
input[type="radio"] {
  border-radius: 100%;
}
input {
  vertical-align: top;
}
label {
  vertical-align: middle;
  margin-bottom: 4px;
  display: inline-block;
}
button,
input:not([type="checkbox"]):not([type="radio"]),
input[type="range"],
select,
textarea {
  -webkit-appearance: none;
}
textarea {
  display: block;
  margin-right: 0;
  box-sizing: border-box;
  resize: vertical;
}
textarea:not([cols]) {
  width: 100%;
}
textarea:not([rows]) {
  min-height: 40px;
  height: 140px;
}
select {
  background: var(--background-ui) var(--select-arrow) calc(100% - 12px) 50%/12px
    no-repeat;
  padding-right: 32px;
}
select::-ms-expand {
  display: none;
}
select[multiple] {
  padding-right: 8px;
  background-image: none;
  overflow-y: auto;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--button-hover);
}
button:focus,
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(0, 150, 191, 0.67);
  box-shadow: 0 0 0 2px var(--focus);
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
::-moz-placeholder {
  color: var(--form-placeholder);
}
:-ms-input-placeholder {
  color: var(--form-placeholder);
}
::-ms-input-placeholder {
  color: var(--form-placeholder);
}
::placeholder {
  color: var(--form-placeholder);
}
fieldset {
  border: 1px solid var(--focus);
  border-radius: 6px;
  margin: 0 0 12px;
  padding: 10px;
}
legend {
  font-size: 0.9em;
  font-weight: 600;
}
a {
  color: var(--links);
}
a:hover {
}
img,
video {
  max-width: 100%;
  height: auto;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
}
table {
  border-collapse: collapse;
  margin-bottom: 10px;
  width: 100%;
  table-layout: fixed;
}
table caption,
td,
th {
  text-align: left;
}
td,
th {
  padding: 6px;
  vertical-align: top;
  word-wrap: break-word;
}
thead {
  border-bottom: 1px solid var(--border);
}
tfoot {
  border-top: 1px solid var(--border);
}
tbody tr:nth-child(2n) {
  background-color: var(--background-alt);
}
/* ::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--background-ui);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
::-moz-selection {
  background-color: var(--selection);
}
::selection {
  background-color: var(--selection);
} */
details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--background-alt);
  padding: 10px 10px 0;
  margin: 1em 0;
  border-radius: 6px;
  overflow: hidden;
}
details[open] {
  padding: 10px;
}
details > :last-child {
  margin-bottom: 0;
}
details[open] summary {
  margin-bottom: 10px;
}
summary {
  display: list-item;
  background-color: var(--background-ui);
  padding: 10px;
  margin: -10px -10px 0;
  cursor: pointer;
  outline: none;
}
summary:focus,
summary:hover {
  text-decoration: underline;
}
details > :not(summary) {
  margin-top: 0;
}
summary::-webkit-details-marker {
  color: var(--text-main);
}
