/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --font-size--2: clamp(0.7813rem, 0.7747rem + 0.0326vi, 0.8rem);
  --font-size--1: clamp(0.9375rem, 0.9158rem + 0.1087vi, 1rem);
  --font-size-0: clamp(1.125rem, 1.0815rem + 0.2174vi, 1.25rem);
  --font-size-1: clamp(1.35rem, 1.2761rem + 0.3696vi, 1.5625rem);
  --font-size-2: clamp(1.62rem, 1.5041rem + 0.5793vi, 1.9531rem);
  --font-size-3: clamp(1.944rem, 1.771rem + 0.8651vi, 2.4414rem);
  --font-size-4: clamp(2.3328rem, 2.0827rem + 1.2504vi, 3.0518rem);
  --font-size-5: clamp(2.7994rem, 2.4462rem + 1.7658vi, 3.8147rem);

  --color-shade: #f2f0f0;
  --color-background: #f7f7f7;
  --color-foreground: #1a1a1a;
  --color-primary: #0073e6;
  --color-primary--shade: #0d549b;
  --color-focus: #fd0;
}

html {
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-size: var(--font-size-0);
}

.container {
  max-width: min(100% - 2rem, var(--container-max-width, 800px));
  margin-inline: auto;
}

h1 {
  font-size: var(--font-size-4);
  font-weight: bold;
  margin-bottom: 15px;
}

h2 {
  font-size: var(--font-size-2);
  font-weight: bold;
  margin-bottom: 15px;
}

h3 {
  font-size: var(--font-size-1);
  font-weight: bold;
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: var(--font-size-0);
  font-weight: bold;
  margin-bottom: 5px;
}

input {
  border: 2px solid var(--color-foreground);
  font-size: inherit;
  padding-block: 5px;
  padding-inline: 5px;
  display: block;
}

input:focus {
  box-shadow: inset 0 0 0 2px;
  outline: 2px solid var(--color-focus);
}

.error-message {
  margin-top: 5px;
  display: block;
}

button {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-background);
  padding-block: 10px;
  padding-inline: 15px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

* + button {
  margin-top: 15px;
}

button:hover {
  background-color: var(--color-primary--shade);
}

button:focus:not(:hover) {
  border-color: var(--color-focus);
  color: var(--color-foreground);
  background-color: var(--color-focus);
  box-shadow: 0 2px 0 var(--color-foreground);
  outline: 2px solid transparent;
}

a:focus {
  background-color: var(--color-focus);
  box-shadow:
    0 -2px #fd0,
    0 4px var(--color-foreground);
  color: var(--color-foreground);
  outline: 2px solid transparent;
  text-decoration: none;
}

table {
  width: 100%;
}

table + h3 {
  margin-top: 45px;
}

p + h3 {
  margin-top: 30px;
}

tr {
  text-align: left;
  border-bottom: 1px solid var(--color-foreground);
}

td,
th {
  padding-inline: 15px;
  padding-block: 5px;
}

th {
  font-weight: bold;
}

.hero {
  padding-top: 40px;
  padding-bottom: 60px;
  background-color: var(--color-shade);
  margin-bottom: 50px;
}

.hero p {
  font-size: var(--font-size-0);
  margin-bottom: 20px;
}

#results thead th {
  width: 33.333%;
}

#results thead th:first-child {
  width: 66.666%;
}

#results thead th:nth-child(2),
#results tbody td:nth-child(2) {
  text-align: right;
}

.phase-banner {
  padding-block: 5px;
  border-bottom: 1px solid var(--color-foreground);
}

footer {
  margin-top: auto;
  font-size: var(--font-size--1);
  padding-bottom: 15px;
  padding-top: 70px;
}
