/* Theme lifted from maxwelldulin.com so this sits alongside the rest of the site. */

:root {
  --bg:        #fafaff;
  --ink:       #22015a;
  --heading:   #240160;
  --accent:    #5f04fb;
  --rule:      #b9afca;
  --muted:     #c5c0ce;
  --code-bg:   #f2ebff;
  --bar-from:  #17013c;
  --bar-to:    #4003ab;
  --ok:        #22015a;
  --bad:       #ff007f;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

.TopBox {
  background: linear-gradient(90deg, var(--bar-from), var(--bar-to));
  width: 100%;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 15%;
}

.TopBox h1 {
  color: #fff;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 40px;
  font-weight: 400;
}

.TopBox .subtitle {
  color: var(--rule);
  font-size: 16px;
  margin-top: 6px;
}

.TopBox .subtitle a { color: #fff; font-size: inherit; }
.TopBox .subtitle a:hover { color: var(--rule); }

.outershell {
  margin: 0 15% 120px;
}

h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  font-size: 30px;
  font-weight: 400;
  margin: 45px 0 10px;
  padding-bottom: 5px;
}

h3 {
  color: var(--heading);
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 8px;
}

p { font-size: 18px; line-height: 1.55; }

a { color: var(--ink); font-size: inherit; text-decoration: underline; }
a:hover { color: var(--rule); }

code {
  background-color: var(--code-bg);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.Box {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 24px;
}

.note { font-size: 15px; color: var(--ink); line-height: 1.5; }
.muted { color: var(--muted); }

#boot-error { margin-top: 24px; }

/* ------------------------------------------------------------------ form */

.field { margin-bottom: 18px; }

label {
  display: block;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

label .hint { font-weight: 400; color: var(--muted); }

input[type=text], input[type=number], select, textarea {
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--heading);
  border-radius: 4px;
  width: 100%;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
}

input[type=text], textarea { font-family: ui-monospace, Menlo, Consolas, monospace; }
textarea { resize: vertical; min-height: 68px; }

select { max-width: 260px; }
input[type=number] { max-width: 140px; }

:is(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
}

/* text/hex toggle sitting next to the label */
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.toggle { display: flex; gap: 0; margin-bottom: 5px; }

.toggle button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--heading);
  font-family: inherit;
  font-size: 13px;
  padding: 3px 12px;
  cursor: pointer;
}
.toggle button:first-child { border-radius: 4px 0 0 4px; }
.toggle button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.toggle button[aria-pressed=true] { background: var(--ink); color: #fff; }

.row { display: flex; gap: 22px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }

/* ---------------------------------------------------------------- output */

.out { margin-bottom: 16px; }

.out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.out pre {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow-y: auto;
}

button.copy {
  background: var(--ink);
  color: var(--rule);
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  padding: 4px 14px;
  cursor: pointer;
}
button.copy:hover { color: #fff; }

.error {
  color: var(--bad);
  font-size: 15px;
  margin: 10px 0 0;
}

.verdict { font-size: 15px; margin: 4px 0; }
.verdict.pass::before { content: 'PASS  '; font-weight: 700; color: var(--ok); }
.verdict.fail::before { content: 'FAIL  '; font-weight: 700; color: var(--bad); }

details summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 16px;
  padding: 4px 0;
}

ul { font-size: 18px; line-height: 1.7; }

.BottomBox {
  border-top: 1px solid var(--rule);
  margin: 60px 15% 0;
  padding: 20px 0 40px;
  font-size: 15px;
  color: var(--ink);
}

@media (max-width: 985px) {
  .TopBox { padding: 0 7%; height: auto; padding-top: 26px; padding-bottom: 26px; }
  .TopBox h1 { font-size: 28px; }
  .outershell { margin: 0 7% 80px; }
  .BottomBox { margin: 60px 7% 0; }
}
