:root {
  --background: #ffffff;
  --surface: #f5f6f8;
  --text: #1d1f23;
  --muted: #5f6570;
  --border: #dde0e5;
  --link: #1f5fbf;
  --keyword: #8a3ab9;
  --type: #0f7069;
  --function: #2b58c4;
  --string: #a14a12;
  --number: #9a5b00;
  --comment: #6b7280;
  --case: #7a4d00;
  --parameter: #444a55;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #16181c;
    --surface: #1f2228;
    --text: #e4e6ea;
    --muted: #9aa1ad;
    --border: #30343c;
    --link: #7fb0ff;
    --keyword: #d09cf0;
    --type: #5fd0c4;
    --function: #8db4ff;
    --string: #f0a878;
    --number: #f2c46b;
    --comment: #8a919c;
    --case: #e8b86a;
    --parameter: #c8ccd4;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header .home {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

#search {
  flex: 1;
  min-width: 0;
  max-width: 28rem;
  padding: 6px 10px;
  font: inherit;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
}

#results {
  max-width: 60rem;
  margin: 0 auto;
  padding: 8px 16px;
  list-style: none;
  border-bottom: 1px solid var(--border);
}

#results li {
  padding: 4px 0;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 8px 16px 64px;
}

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

code,
pre {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

pre {
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

h1 code {
  font-size: 0.9em;
}

.crumbs,
.file,
.summary,
.kind,
.undocumented {
  color: var(--muted);
}

.file {
  margin-top: -8px;
  font-size: 0.9em;
}

.kind {
  font-size: 0.8em;
  font-weight: 500;
}

.summary::before {
  content: " - ";
}

.summary:empty::before {
  content: "";
}

.listing {
  padding-left: 1.2em;
}

.listing li {
  margin: 4px 0;
}

.contents ul {
  columns: 14rem;
  padding-left: 1.2em;
}

.item {
  margin: 28px 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.members {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

.members .item {
  margin: 18px 0;
  border-top: none;
}

.anchor {
  color: var(--text);
  text-decoration: none;
}

.section {
  margin-bottom: 4px;
  font-size: 1em;
}

.parameters dt {
  margin-top: 6px;
}

.parameters dd {
  margin-left: 16px;
}

.parameters dd p {
  margin: 0;
}

table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

th,
td {
  padding: 4px 8px;
  border: 1px solid var(--border);
}

.t-keyword {
  color: var(--keyword);
}

.t-type,
.t-interface,
.t-typeParameter,
.t-namespace {
  color: var(--type);
}

.t-function,
.t-method {
  color: var(--function);
}

.t-string {
  color: var(--string);
}

.t-number {
  color: var(--number);
}

.t-comment {
  color: var(--comment);
  font-style: italic;
}

.t-enumMember {
  color: var(--case);
}

.t-parameter {
  color: var(--parameter);
}

@media (max-width: 40rem) {
  body {
    font-size: 15px;
  }

  header {
    gap: 10px;
  }

  .members {
    margin-left: 4px;
    padding-left: 8px;
  }
}
