/* GenLayer GenVM SDK — Custom Styles */

/* ── Font ── */
@font-face {
  font-family: 'Switzer';
  src: url('switzer-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gl-font: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gl-blue: #1210FF;
}

body {
  font-family: var(--gl-font);
}

/* ── Light mode — subtle, restrained ── */
html[data-theme="light"] {
  --pst-color-primary: #2b2b2b;
  --pst-color-link: var(--gl-blue);
  --pst-color-link-hover: #0e0ccc;
}

/* ── Dark mode — softer, not purple ── */
html[data-theme="dark"] {
  --pst-color-primary: #e0e0e0;
  --pst-color-link: #7b9aff;
  --pst-color-link-hover: #99b3ff;
}

/* ── Navbar ── */
.bd-header {
  border-bottom: 1px solid var(--pst-color-border);
}

.bd-header .navbar-brand img {
  max-height: 28px;
}

/* ── Headings — use text color, not brand color ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--pst-color-primary);
  font-family: var(--gl-font);
}

/* ── Sidebar ── */
.bd-sidebar .nav-link.active {
  font-weight: 600;
}

/* ── Inline code — subtle tint ── */
html[data-theme="light"] code.literal {
  color: #333;
  background: #f5f5f7;
}

html[data-theme="dark"] code.literal {
  color: #d4d4d8;
  background: #27272a;
}

/* ── Tables — cleaner look ── */
table.docutils {
  font-size: 0.9em;
}

/* ── Details/summary (collapsible sections) ── */
details {
  margin: 0.5em 0 1em;
}

details summary {
  cursor: pointer;
  padding: 0.4em 0;
  font-weight: 500;
}

details summary:hover {
  color: var(--pst-color-link);
}

/* ── Mobile — more margin, hide version switcher ── */
@media (max-width: 768px) {
  .bd-main .bd-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .bd-header .version-switcher__container {
    display: none !important;
  }
}

/* ── Navbar icon links — tighter spacing ── */
.navbar-icon-links .navbar-nav {
  gap: 0;
}

.navbar-icon-links .nav-link {
  padding: 0.25rem 0.35rem;
}
