/*
 * Renderer shell styling. An external stylesheet rather than an inline <style>
 * so this document needs nothing from `style-src 'unsafe-inline'` — Redoc
 * itself still injects styles at runtime, which is what that allowance is for.
 *
 * Only the shell's own chrome lives here: the loading slot and the error
 * states. Everything below the fold is Redoc's own styling.
 */

:root {
  color-scheme: light dark;
}

body {
  margin: 0;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.shell-message {
  max-width: 44rem;
  margin-inline: auto;
  padding: 3rem 1.5rem;
}

.shell-message h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.shell-message code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* --- API switcher -------------------------------------------------------- */

.docs-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.docs-switcher-home {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.docs-switcher-label {
  opacity: 0.7;
}

.docs-switcher-select {
  font: inherit;
  padding: 0.25rem 0.5rem;
  max-width: 60vw;
}

/* Non-prod marker. Deliberately obvious: the try-it console executes real
   calls, so which environment you are pointed at is not a detail. */
.docs-switcher-env {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(200, 120, 0, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}
