:root {
  --nexus-focus: #005fcc;
}

/* Keep long API examples and tables usable on a 360px viewport. */
.md-typeset__table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.md-typeset table:not([class]) {
  min-width: 38rem;
}

.nexus-live-catalog__controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.nexus-live-catalog__currency {
  border: 1px solid var(--md-primary-fg-color);
  border-radius: .25rem;
  background: transparent;
  color: var(--md-primary-fg-color);
  cursor: pointer;
  font: inherit;
  padding: .45rem .7rem;
}

.nexus-live-catalog__currency[aria-pressed="true"] {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.nexus-live-catalog__status {
  color: var(--md-default-fg-color--light);
}

.nexus-live-catalog__table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.nexus-live-catalog__table {
  min-width: 58rem;
}

:is(a, button, input, select, textarea):focus-visible {
  outline: .2rem solid var(--nexus-focus);
  outline-offset: .15rem;
}

[data-md-color-scheme="slate"] {
  --nexus-focus: #8ab4ff;
}

@media (max-width: 37.5rem) {
  .md-typeset table:not([class]) {
    min-width: 32rem;
  }

  .nexus-live-catalog__table {
    min-width: 48rem;
  }
}
