/* The site's own pages: sign-in, account, people. Same ledger look as the explorer page:
   dark ink masthead, white sheets on a cool grey desk, hairline rules. System fonts only. */
:root {
  color-scheme: light;
  --page: #f3f5f8;
  --sheet: #ffffff;
  --ink: #131c26;
  --ink-2: #55616e;
  --rule: #e1e6ec;
  --rule-strong: #c2cad4;
  --mast: #14263a;
  --mast-ink: #f2f6fa;
  --mast-ink-2: #a9b8c8;
  --accent: #1b64be;
  --solid: #1b64be;
  --wash: #e9f1fb;
  --alert: #a3261f;
  --alert-wash: #fbeceb;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0c1117;
    --sheet: #151b23;
    --ink: #e8edf3;
    --ink-2: #9aa6b3;
    --rule: #262e38;
    --rule-strong: #3c4653;
    --mast: #0f1c2b;
    --mast-ink: #f2f6fa;
    --mast-ink-2: #93a4b6;
    --accent: #6aabf1;
    --solid: #1b64be;
    --wash: #15273c;
    --alert: #f0958e;
    --alert-wash: #3a1a18;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); }
h1, h2, p, dl, ol, ul { margin: 0; }
h1 { font: 600 26px/1.2 var(--display); text-wrap: balance; }
h2 { font: 600 17px/1.3 var(--font); text-wrap: balance; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .95em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.mast { background: var(--mast); color: var(--mast-ink); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { font: 600 20px/1.2 var(--display); color: var(--mast-ink); text-decoration: none; }
.mast nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.mast nav a, .nav-button { color: var(--mast-ink-2); text-decoration: none; font: inherit; }
.mast nav a:hover, .nav-button:hover { color: var(--mast-ink); text-decoration: underline; }
.mast nav form { margin: 0; }
.nav-button { background: none; border: 0; padding: 0; cursor: pointer; }
.mast :focus-visible { outline-color: var(--mast-ink); }

main.wrap { display: grid; gap: 20px; padding-top: 32px; padding-bottom: 56px; }
.card { display: grid; gap: 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; min-width: 0; }
.card.narrow { max-width: 480px; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.pad { padding: 20px 24px 0; }
.pad + .pad { padding-top: 4px; padding-bottom: 14px; }
.stack { display: grid; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }

.field { display: grid; gap: 5px; }
label { font-size: 14px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input:not([type]), select {
  width: 100%; min-height: 42px; padding: 8px 11px; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px;
}
input.code { font-family: var(--mono); font-size: 20px; letter-spacing: .12em; max-width: 14ch; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.check input { width: 17px; height: 17px; accent-color: var(--solid); }
.hint { font-size: 13px; color: var(--ink-2); }
.field-error { font-size: 13px; color: var(--alert); }
.field-error:empty { display: none; }

.btn { display: inline-block; min-height: 42px; padding: 9px 18px; font: 600 15px/1.5 var(--font); color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--solid); border-color: var(--solid); color: #fff; justify-self: start; }

.alert, .notice { padding: 11px 14px; border-radius: 8px; font-size: 15px; }
.alert { background: var(--alert-wash); color: var(--alert); }
.alert ul { margin: 0; padding-left: 18px; }
.alert.validation-summary-valid { display: none; }
.notice { background: var(--wash); }
.card.notice { border-color: var(--accent); }
code.big { display: inline-block; padding: 8px 14px; border: 1px dashed var(--rule-strong); border-radius: 6px; font-size: 20px; letter-spacing: .06em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.steps { display: grid; gap: 18px; padding-left: 22px; }
.steps li { padding-left: 4px; }
.steps form { margin-top: 10px; }
.qr { margin: 12px 0 8px; padding: 12px; background: #fff; border-radius: 8px; width: max-content; max-width: 100%; }
.qr svg { display: block; max-width: 100%; height: auto; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.codes code { display: block; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; text-align: center; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; font-weight: 400; color: var(--ink-2); padding: 10px 16px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
