/* openosint documentation — OpenBSD/SQLite aesthetic */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                           */
/* ------------------------------------------------------------------ */

#nav {
  background: #000000;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
}

#nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 18px;
  letter-spacing: 0.03em;
}

#nav a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Main content                                                         */
/* ------------------------------------------------------------------ */

#content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 40px 24px;
}

/* ------------------------------------------------------------------ */
/* Masthead / footer — man page chrome                                  */
/* ------------------------------------------------------------------ */

#masthead,
#footer {
  font-family: monospace;
  font-size: 13px;
  margin: 12px 0;
}

.mhead-l { text-align: left; }
.mhead-c { text-align: center; }
.mhead-r { text-align: right; }

hr {
  border: none;
  border-top: 1px solid #000000;
  margin: 8px 0;
}

/* ------------------------------------------------------------------ */
/* Section headings                                                     */
/* ------------------------------------------------------------------ */

h2 {
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 24px 0 6px 0;
  color: #000000;
}

/* ------------------------------------------------------------------ */
/* Indented section content — standard 4-ch man page indent            */
/* ------------------------------------------------------------------ */

.indent {
  margin-left: 28px;
}

p {
  margin: 0 0 10px 0;
  text-align: justify;
}

/* ------------------------------------------------------------------ */
/* Tables                                                               */
/* ------------------------------------------------------------------ */

table {
  border-collapse: collapse;
  margin: 8px 0 14px 0;
  width: 100%;
  font-size: 14px;
}

th {
  background: #000000;
  color: #ffffff;
  font-family: monospace;
  font-size: 12px;
  font-weight: normal;
  text-align: left;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  border-bottom: 1px solid #cccccc;
  padding: 4px 8px;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: #f5f5f5;
}

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

pre,
code {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

pre {
  background: #f0f0f0;
  border-left: 3px solid #000000;
  padding: 8px 12px;
  margin: 6px 0 14px 0;
  overflow-x: auto;
  line-height: 1.45;
}

code {
  background: #f0f0f0;
  padding: 1px 3px;
}

/* ------------------------------------------------------------------ */
/* Lists                                                                */
/* ------------------------------------------------------------------ */

ul, ol {
  margin: 0 0 10px 20px;
}

li {
  margin-bottom: 4px;
}

/* ------------------------------------------------------------------ */
/* Links                                                                */
/* ------------------------------------------------------------------ */

a {
  color: #00008b;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

/* ------------------------------------------------------------------ */
/* Dark mode — terminal users                                           */
/* ------------------------------------------------------------------ */

@media (prefers-color-scheme: dark) {
  body          { background: #0d0d0d; color: #d8d8d8; }
  #nav          { background: #1a1a1a; border-bottom: 1px solid #333; }
  hr            { border-top-color: #444444; }
  h2            { color: #d8d8d8; }
  pre           { background: #1a1a1a; border-left-color: #00ff88; }
  code          { background: #1a1a1a; color: #d8d8d8; }
  th            { background: #1a1a1a; color: #00ff88; }
  td            { border-bottom-color: #333333; }
  tr:nth-child(even) td { background: #141414; }
  a             { color: #6699ff; }
  a:visited     { color: #cc99ff; }
  #nav a        { color: #d8d8d8; }
}

/* ------------------------------------------------------------------ */
/* Print                                                                */
/* ------------------------------------------------------------------ */

@media print {
  #nav  { display: none; }
  body  { font-size: 12px; }
  pre   { border: 1px solid #000; }
}
