/* Orkige Help - hand-written, self-contained (no vendored frameworks). */
:root {
	--bg: #ffffff; --fg: #1c2733; --muted: #5c6c7c; --line: #dde4ea;
	--accent: #0a6aa8; --code-bg: #f2f5f8; --nav-bg: #f7f9fb;
	--hit: #fff3c2;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #14181d; --fg: #dbe3ea; --muted: #93a2b1; --line: #2b333c;
		--accent: #5fb2e6; --code-bg: #1d232a; --nav-bg: #181e24;
		--hit: #4d431a;
	}
}
* { box-sizing: border-box; }
body {
	margin: 0; background: var(--bg); color: var(--fg);
	font: 15px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
}
header {
	display: flex; align-items: center; gap: 1.2rem;
	padding: 0.6rem 1.2rem; border-bottom: 1px solid var(--line);
	position: sticky; top: 0; background: var(--bg); z-index: 10;
}
header .home { font-weight: 700; color: var(--fg); text-decoration: none; }
.searchbox { position: relative; flex: 1; max-width: 34rem; }
#search {
	width: 100%; padding: 0.4rem 0.7rem; border: 1px solid var(--line);
	border-radius: 6px; background: var(--nav-bg); color: var(--fg);
	font: inherit;
}
#results {
	position: absolute; left: 0; right: 0; top: 2.4rem; max-height: 70vh;
	overflow: auto; background: var(--bg); border: 1px solid var(--line);
	border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#results a {
	display: block; padding: 0.5rem 0.8rem; color: var(--fg);
	text-decoration: none; border-bottom: 1px solid var(--line);
}
#results a:last-child { border-bottom: none; }
#results a:hover, #results a.selected { background: var(--nav-bg); }
#results .where { font-weight: 600; }
#results .where .page { color: var(--muted); font-weight: 400; }
#results .excerpt { color: var(--muted); font-size: 0.9em; }
#results .excerpt mark { background: var(--hit); color: inherit; }
#results .none { padding: 0.6rem 0.8rem; color: var(--muted); }
.shell { display: flex; align-items: flex-start; }
nav {
	width: 15.5rem; flex: none; padding: 1rem 1.2rem; position: sticky;
	top: 3.2rem; max-height: calc(100vh - 3.2rem); overflow: auto;
	background: var(--nav-bg); border-right: 1px solid var(--line);
	min-height: calc(100vh - 3.2rem);
}
nav h2, .toc h2 {
	font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--muted); margin: 1rem 0 0.3rem;
}
nav ul, .toc ul { list-style: none; margin: 0; padding: 0; }
nav li a, .toc li a {
	display: block; padding: 0.18rem 0.4rem; color: var(--fg);
	text-decoration: none; border-radius: 4px; font-size: 0.92rem;
}
nav li a:hover, .toc li a:hover { background: var(--code-bg); }
nav li.current a { color: var(--accent); font-weight: 600; }
main { flex: 1; min-width: 0; }
article { max-width: 50rem; padding: 1.4rem 2.2rem 4rem; }
.toc {
	width: 14rem; flex: none; padding: 1rem 1.2rem; position: sticky;
	top: 3.2rem; max-height: calc(100vh - 3.2rem); overflow: auto;
	font-size: 0.9rem;
}
h1, h2, h3, h4 { line-height: 1.25; scroll-margin-top: 3.6rem; }
h1 { font-size: 1.7rem; }
h2 { border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; }
a { color: var(--accent); }
code {
	background: var(--code-bg); border-radius: 4px; padding: 0.08em 0.32em;
	font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
pre {
	background: var(--code-bg); border: 1px solid var(--line);
	border-radius: 6px; padding: 0.8rem 1rem; overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: 0.85rem; }
table { border-collapse: collapse; margin: 1rem 0; display: block;
	overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 0.35rem 0.6rem;
	text-align: left; vertical-align: top; }
th { background: var(--nav-bg); }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
li { margin: 0.15rem 0; }
li p { margin: 0.4rem 0; }
footer {
	padding: 1rem 1.2rem; color: var(--muted); font-size: 0.8rem;
	border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; gap: 1rem;
	flex-wrap: wrap;
}
footer a { color: var(--muted); }
.directory { list-style: none; padding: 0; }
.directory li { margin: 0.55rem 0; }
.directory .snippet { display: block; color: var(--muted);
	font-size: 0.88em; }
header .header-links { margin-left: auto; display: flex; gap: 1.1rem; }
header .header-links a { color: var(--fg); text-decoration: none; }
header .header-links a:hover { color: var(--accent); }
/* the landing page (site root) and the legal pages share this sheet */
.hero {
	padding: 3.4rem 1.6rem 2.6rem; text-align: center;
	border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 2.5rem; margin: 0 0 0.7rem; }
.hero .tagline {
	max-width: 44rem; margin: 0 auto 1.5rem; color: var(--muted);
	font-size: 1.05rem;
}
.hero .actions {
	display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
	margin: 0;
}
.action {
	display: inline-block; padding: 0.5rem 1.1rem; border-radius: 6px;
	border: 1px solid var(--line); text-decoration: none; font-weight: 600;
	color: var(--fg);
}
.action:hover { border-color: var(--accent); color: var(--accent); }
.action.primary {
	background: var(--accent); border-color: var(--accent); color: #ffffff;
}
.action.primary:hover { color: #ffffff; }
.landing article { max-width: 58rem; margin: 0 auto; }
.features {
	display: grid; gap: 0.2rem 1.8rem;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.feature h3 { margin-bottom: 0.2rem; }
.feature p { margin-top: 0.2rem; color: var(--muted); }
@media (max-width: 60rem) { nav, .toc { display: none; } }
