/* Router.law: plain, calm, infrastructure-style. No external fonts or images. */
:root {
  --fg: #1b1f24; --muted: #57606a; --line: #d0d7de; --bg: #ffffff; --panel: #f6f8fa;
  --accent: #0b5cad; --ok: #1a7f37; --warn: #9a6700; --bad: #cf222e;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6edf3; --muted: #9da7b3; --line: #30363d; --bg: #0d1117; --panel: #161b22;
          --accent: #58a6ff; --ok: #3fb950; --warn: #d29922; --bad: #f85149; }
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
header.site, footer.site { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
footer.site { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 0.875rem; margin-top: 3rem; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: baseline; }
/* Header, footer and page text share one column: 60rem wide with 1rem side padding. */
header.site nav, footer.site > * { max-width: 60rem; margin-left: auto; margin-right: auto; padding: 0 1rem; }
header.site .brand { font-weight: 700; text-decoration: none; color: var(--fg); margin-right: auto; }
main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; }
pre { background: var(--panel); border: 1px solid var(--line); padding: 0.75rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.375rem 0.5rem; text-align: left; vertical-align: top; }
.lede { font-size: 1.125rem; color: var(--muted); }
.notice { background: var(--panel); border-left: 3px solid var(--warn); padding: 0.5rem 0.75rem; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 1rem; padding: 0 0.5rem; font-size: 0.8125rem; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 0.375rem 0.5rem; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; }
button { padding: 0.375rem 0.875rem; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }
fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0.75rem 0; padding: 0.5rem 0.75rem; }
legend { font-weight: 600; padding: 0 0.25rem; }
label { display: block; font-weight: 600; margin-top: 0.5rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.choice { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.25rem 0; }
.choice input { margin-top: 0.3rem; flex: none; }
.choice label { margin: 0; font-weight: 400; }
.choice label strong { display: block; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.25rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
