/* InformSign Vault. Light only, deliberately: there is no dark theme, and every
   text-bearing element states its own colour so nothing inherits one from a
   user agent or a future theme (InformSign's 2026-10-13 white-on-white lesson). */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #0f172a;      /* slate-900 */
  --muted: #475569;     /* slate-600 */
  --border: #cbd5e1;    /* slate-300 */
  --surface: #f8fafc;   /* slate-50 */
  --page: #ffffff;
  --danger: #b91c1c;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--page); color: var(--text); }

body {
  margin: 0 auto;
  max-width: 720px;
  padding: 0 16px 48px;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 { color: var(--text); line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
p, li, dt, dd, td, th, label, legend, small { color: var(--text); }
.muted { color: var(--muted); }
.error { color: var(--danger); }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.brand { color: var(--text); font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.site-nav { display: flex; gap: 16px; color: var(--text); }
.back-link { margin: 16px 0 0; color: var(--text); }

main { color: var(--text); }

.site-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.site-footer form { margin: 0; }

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  max-width: 100%;
}
input:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button, .button {
  font: inherit;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { background: var(--primary-dark); color: #ffffff; }

.link-button {
  color: var(--primary);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}
.link-button:hover { color: var(--primary-dark); background: none; }

.stack { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 16px 0; }
.stack button { align-self: flex-start; }

button.danger { background: var(--danger); border-color: var(--danger); color: #ffffff; }
button.danger:hover { background: #991b1b; color: #ffffff; }

.banner {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.documents, .plain { list-style: none; padding: 0; margin: 16px 0; }
.documents li, .plain li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.document-title { font-weight: 600; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.hash { overflow-wrap: anywhere; word-break: break-all; }

.check { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.check label input, .stack label input { margin-right: 8px; }
