/* Deliberately plain. This page is read by people who are mid-incident and by
   people deciding whether to trust it; both are better served by something that
   looks like a reference document than by something that looks like a product. */

:root {
	--bg: #ffffff;
	--fg: #14161a;
	--muted: #5c6370;
	--line: #d8dce3;
	--accent: #b45309;
	--accent-bg: #fff8ed;
	--ok: #15803d;
	--ok-bg: #f0fdf4;
	--err: #b91c1c;
	--err-bg: #fef2f2;
	--code-bg: #f6f7f9;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #14161a;
		--fg: #e6e8ec;
		--muted: #9aa3b2;
		--line: #2b3038;
		--accent: #f0a94c;
		--accent-bg: #241d12;
		--ok: #4ade80;
		--ok-bg: #10221a;
		--err: #f87171;
		--err-bg: #2a1414;
		--code-bg: #1b1f25;
	}
}

* { box-sizing: border-box; }

body {
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
	max-width: 46rem;
	background: var(--bg);
	color: var(--fg);
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header { border-bottom: 2px solid var(--fg); padding-bottom: 1rem; margin-bottom: 1.5rem; }

h1 {
	margin: 0;
	font-size: 2rem;
	letter-spacing: -0.02em;
}

.tagline { margin: 0.4rem 0 0; color: var(--muted); }

h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

.lede { color: var(--muted); margin-top: 0; }

/* ------------------------------------------------------------------ tabs */

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--line);
}

.tabs button {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 0.6rem 0.85rem;
	font: inherit;
	color: var(--muted);
	cursor: pointer;
}

.tabs button:hover { color: var(--fg); }

.tabs button[aria-selected="true"] {
	color: var(--fg);
	border-bottom-color: var(--accent);
	font-weight: 600;
}

/* ----------------------------------------------------------------- forms */

label {
	display: block;
	margin: 1rem 0 0.3rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.hint-inline { font-weight: 400; color: var(--muted); }

.hint { color: var(--muted); font-size: 0.875rem; margin: 0.35rem 0 0; }

input, textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--mono);
	font-size: 0.9rem;
}

input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

textarea { resize: vertical; }

button[type="submit"], .secondary {
	margin-top: 1rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--fg);
	border-radius: 4px;
	background: var(--fg);
	color: var(--bg);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.secondary { background: none; color: var(--fg); font-weight: 400; }

button[disabled] { opacity: 0.5; cursor: default; }

/* --------------------------------------------------------------- results */

.result, .error, .status {
	margin-top: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	border-left-width: 4px;
}

.result.found { border-left-color: var(--ok); background: var(--ok-bg); }
.result.none { border-left-color: var(--muted); }
.result.warn { border-left-color: var(--accent); background: var(--accent-bg); }

.error { border-left-color: var(--err); background: var(--err-bg); color: var(--err); }

.status { font-size: 0.85rem; color: var(--muted); }

.result h3 { margin-top: 0; }

.big-address {
	display: block;
	font-family: var(--mono);
	font-size: 1.1rem;
	font-weight: 600;
	word-break: break-all;
	margin: 0.5rem 0;
	user-select: all;
}

dl { margin: 0.75rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
dt { color: var(--muted); font-size: 0.875rem; }
dd { margin: 0; font-family: var(--mono); font-size: 0.875rem; word-break: break-all; }

/* ------------------------------------------------------------------ code */

pre {
	background: var(--code-bg);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 0.85rem;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.5;
	white-space: pre;
}

pre#statement { white-space: pre-wrap; word-break: break-word; }

code { font-family: var(--mono); font-size: 0.875em; }
p code, li code, td code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; }
pre code { background: none; padding: 0; }

/* ----------------------------------------------------------------- steps */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps > li { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.steps h3 { margin-top: 0; }

/* ---------------------------------------------------------------- tables */

table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.875rem; }
td { padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { white-space: nowrap; padding-right: 1rem; }

/* ---------------------------------------------------------------- footer */

footer {
	margin-top: 3rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.85rem;
}

a { color: var(--accent); }

ul { padding-left: 1.2rem; }
li { margin: 0.4rem 0; }
