/* Shared tokens, mirrored from the marketing site's DESIGN.md. Paper = proof, flat = prose. */
:root {
  --copy-paper: #f5f7f9;
  --notice-paper: #fdfcf9;
  --white: #ffffff;
  --toner: #111820;
  --pencil: #5a6673;
  --ruled-line: #d3dae1;
  --sign-blue: #0b4f9e;
  --sign-blue-tint: #e4ecf8;
  --error: #b42318;
  --error-tint: #fbe9e7;
  --ok: #1b6b3a;
  --ok-tint: #e3f3e8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--copy-paper);
  color: var(--toner);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--sign-blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
.muted { color: var(--pencil); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--sign-blue); outline-offset: 2px; box-shadow: 0 0 0 4px var(--white); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 600px; }

.topbar { background: var(--white); border-bottom: 1px solid var(--ruled-line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.topbar img { height: 36px; width: auto; display: block; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--toner); padding: 8px 0; }
.topbar nav a[aria-current="page"] { color: var(--sign-blue); font-weight: 600; }

main { padding: 24px 0 48px; }

/* Documents sit on Notice paper; prose stays flat. */
.paper {
  background: var(--notice-paper);
  border: 1px solid var(--ruled-line);
  border-top: 4px solid var(--sign-blue);
  border-radius: var(--radius);
  padding: 20px;
}
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; background: var(--sign-blue-tint); color: var(--sign-blue);
}
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pill-error { background: var(--error-tint); color: var(--error); }
.pill-muted { background: var(--ruled-line); color: var(--pencil); }

table.ruled { width: 100%; border-collapse: collapse; }
table.ruled th, table.ruled td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--ruled-line); vertical-align: top; }
table.ruled th { color: var(--pencil); font-weight: 600; font-size: 13px; border-top: 0; }

.button, button.button {
  display: inline-block; min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  background: var(--sign-blue); color: var(--white); border: 1px solid var(--sign-blue);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button-secondary { background: var(--white); color: var(--sign-blue); }
.button-danger { background: var(--white); color: var(--error); border-color: var(--error); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--ruled-line); border-radius: var(--radius); background: var(--white); width: 100%;
}
.field .error { color: var(--error); font-size: 14px; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: var(--radius); background: var(--sign-blue-tint); margin-bottom: 8px; }
.messages li.error { background: var(--error-tint); color: var(--error); }
.messages li.success { background: var(--ok-tint); color: var(--ok); }
