/* The Game API page, in Material's light and dark colors. */

/* This page's tables are wide: let its content use the whole window (the side nav stays). */
body:has(#game-api) .md-grid { max-width: none; }

/* Signatures, colored with Material's code colors so they match code blocks in both themes. */
.game-api-members .k { color: var(--md-code-hl-keyword-color); }
.game-api-members .t { color: var(--md-code-hl-name-color); }
.game-api-members .f { color: var(--md-code-hl-function-color); }
.game-api-members .m { color: var(--md-code-hl-generic-color); }
.game-api-members .n { color: var(--md-code-hl-number-color); }
.game-api-members .p { color: var(--md-code-hl-punctuation-color); }
.game-api-members .v { color: var(--md-code-hl-variable-color); }
#game-api-search {
  width: 100%;
  padding: 0.6em 0.8em;
  font-size: 0.8rem;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
}
#game-api-search:focus { outline: 2px solid var(--md-accent-fg-color); }
#game-api-status { color: var(--md-default-fg-color--light); font-size: 0.7rem; }
#game-api-results details {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 4px;
  margin: 0.4em 0;
  padding: 0.3em 0.6em;
}
#game-api-results summary { cursor: pointer; font-size: 0.75rem; }
.game-api-meta { color: var(--md-default-fg-color--light); font-size: 0.65rem; margin-left: 0.4em; }
table.game-api-members { width: 100%; table-layout: fixed; font-size: 0.62rem; margin: 0.5em 0; border-collapse: collapse; }
table.game-api-members th:nth-child(1) { width: 7.5em; }
table.game-api-members th, table.game-api-members td {
  padding: 0.25em 0.6em;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere; /* long signatures wrap instead of widening the table */
}
table.game-api-members code { background: none; padding: 0; font-size: inherit; }
tr.game-api-hit { background: var(--md-accent-fg-color--transparent); }
