/*
 * Plain, functional styling. Served as a file rather than inlined so the
 * Content-Security-Policy can forbid inline styles outright.
 */
:root { color-scheme: light dark; }

body {
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 { font-size: 1.3rem; }
h2 { font-size: 1.05rem; margin-top: 2rem; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #8884; vertical-align: top; }
th { font-weight: 600; opacity: .7; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

code, .hash { font-size: .8rem; word-break: break-all; opacity: .85; }
.state { font-size: .75rem; padding: .1rem .45rem; border: 1px solid #8886; border-radius: 3px; }
.box { border: 1px solid #8886; padding: .8rem 1rem; margin: 1rem 0; border-radius: 4px; }
.error { border-color: #c0392b; }
.notice { border-color: #27ae60; }
.secret { background: #8882; padding: .5rem; border-radius: 3px; user-select: all; display: block; margin: .3rem 0; }

label { display: block; margin: .7rem 0 .2rem; font-size: .85rem; opacity: .8; }
input[type=text], input[type=password], select {
  width: 100%; padding: .45rem; font: inherit;
  border: 1px solid #8886; border-radius: 3px; background: transparent; color: inherit;
}
button {
  font: inherit; padding: .45rem .9rem; margin-top: .8rem; cursor: pointer;
  border: 1px solid #8886; border-radius: 3px; background: transparent; color: inherit;
}
nav { font-size: .85rem; margin-bottom: 1.5rem; opacity: .8; }
progress { width: 100%; height: 1.1rem; }
.muted { opacity: .6; font-size: .85rem; }
.field-error { color: #c0392b; font-size: .8rem; }

/*
 * The command helper.
 *
 * Plain like the rest of the page. The one rule worth stating: a reader without
 * JavaScript sees every platform's steps rather than none, because the panels
 * are hidden by a class the script adds meaning to, not by a `hidden` attribute
 * the markup ships with. An authority who cannot read the decrypt command
 * cannot open their evidence.
 */
textarea {
  width: 100%; padding: .45rem; font: inherit; font-size: .8rem;
  border: 1px solid #8886; border-radius: 3px; background: transparent; color: inherit;
}

.helper { margin: 1rem 0; }
.helper-summary { font-size: .9rem; margin: .3rem 0 .8rem; }

.tabs { display: flex; gap: .3rem; margin-bottom: .6rem; flex-wrap: wrap; }
.tab { margin-top: 0; font-size: .8rem; padding: .3rem .7rem; opacity: .6; }
.tab.is-active { opacity: 1; border-color: currentColor; font-weight: 600; }

/* Without the script every recipe stays visible; with it, one at a time. */
.js .recipe { display: none; }
.js .recipe.is-active { display: block; }

.steps { padding-left: 1.2rem; margin: .5rem 0; }
.steps li { margin-bottom: .8rem; font-size: .9rem; }
.command {
  display: block; background: #8882; padding: .5rem .6rem; border-radius: 3px;
  margin: .35rem 0; user-select: all; white-space: pre-wrap; font-size: .78rem;
}
.copy { margin: 0 0 .5rem; font-size: .72rem; padding: .15rem .5rem; }

.notes { padding-left: 1.2rem; margin: .5rem 0; }
.notes li { font-size: .82rem; opacity: .75; margin-bottom: .35rem; }

.box.warn { border-color: #d68910; }
