:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #647084;
  --line: #d9e0ea;
  --line-strong: #bfcbda;
  --blue: #245fd4;
  --blue-dark: #17459d;
  --code-bg: #f1f4f8;
  --sidebar: #eef2f7;
  --warning-bg: #fff7e6;
  --warning-line: #f2c766;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.docs-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.docs-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.brand-mark {
  display: inline-block;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 4px 7px;
  margin-bottom: 10px;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.brand p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.search-box {
  margin-bottom: 22px;
}

.search-box label {
  display: block;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 11px;
  font-size: 14px;
}

.search-results {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-top: 8px;
}

.search-results.active {
  display: block;
}

.search-results a {
  display: block;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.search-results span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.nav-section {
  margin: 22px 0;
}

.nav-section h2 {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.nav-section a {
  display: block;
  color: #30405a;
  font-size: 14px;
  padding: 6px 0;
}

.nav-section a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

.docs-main {
  min-width: 0;
}

.docs-topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 38px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.docs-topbar a {
  color: var(--muted);
  font-size: 13px;
}

.docs-content {
  max-width: 980px;
  padding: 48px 56px 80px;
}

.breadcrumbs {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--blue);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: 42px;
  margin: 0 0 16px;
}

h2 {
  border-top: 1px solid var(--line);
  font-size: 28px;
  margin: 44px 0 16px;
  padding-top: 28px;
}

h3 {
  font-size: 21px;
  margin: 28px 0 10px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: #43506a;
  font-size: 19px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}

.card h3 {
  font-size: 18px;
  margin-top: 0;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.flow {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 28px 0;
}

.flow div {
  border-right: 1px solid var(--line);
  min-height: 120px;
  padding: 16px;
}

.flow div:last-child {
  border-right: 0;
}

.flow strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.flow span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  color: #172033;
  overflow-x: auto;
  padding: 18px;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
}

:not(pre) > code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 1px 4px;
}

table {
  border-collapse: collapse;
  margin: 22px 0;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sidebar);
}

.note {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-line);
  margin: 24px 0;
  padding: 16px 18px;
}

.page-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin-top: 56px;
  padding-top: 20px;
}

@media (max-width: 920px) {
  .docs-shell {
    display: block;
  }

  .docs-sidebar {
    height: auto;
    position: relative;
  }

  .docs-topbar {
    padding: 12px 20px;
    position: relative;
  }

  .docs-content {
    padding: 34px 22px 60px;
  }

  h1 {
    font-size: 34px;
  }

  .card-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .flow div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: auto;
  }

  .flow div:last-child {
    border-bottom: 0;
  }
}
