:root {
  --brand-primary: #19b3ff;
  --brand-primary-dark: #1092d8;
  --brand-navy: #004b70;
  --brand-ink: #010203;
  --accent-sky: #c7e9fd;
  --text-primary: #102437;
  --text-muted: #576777;
  --surface: #ffffff;
  --surface-muted: #f5fbff;
  --border: rgba(0, 75, 112, 0.12);
  --shadow: 0 24px 42px rgba(0, 38, 64, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* MkDocs Material theme overrides */
  --md-primary-fg-color: var(--brand-primary);
  --md-primary-fg-color--dark: var(--brand-primary-dark);
  --md-accent-fg-color: var(--accent-sky);
  --md-typeset-color: var(--text-primary);
  --md-default-bg-color: var(--surface);
  --md-code-bg-color: var(--surface-muted);
}

body {
  font-family: "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.md-header {
  background-color: var(--brand-primary);
}

.md-typeset a {
  color: var(--brand-navy);
}

.md-typeset code {
  border-radius: var(--radius-sm);
}

.md-button {
  border-radius: var(--radius-md);
}

/* Hide right sidebar ToC since we integrated it */
.md-sidebar--secondary {
  display: none;
}

/* Make content wider */
.md-content {
  max-width: 100%;
}

/* Optional: Adjust grid layout */
.md-grid {
  max-width: 100%;
}

.md-footer {
  display: none;
}

.bf-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  background-color: var(--brand-navy);
  color: #fff;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.bf-back-link:hover {
  background-color: var(--brand-primary-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 38, 64, 0.24);
  text-decoration: none;
}

@media screen and (max-width: 720px) {
  .bf-back-link {
    display: none;
  }
}

#redoc-container {
  height: 90vh;
  /* break out of the parnet div on the right hand side?  */
  margin-right: -250px;
}