:root {
  --scalar-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --scalar-font-code: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --scalar-custom-header-height: 64px;
  --docs-ink: #202b3c;
  --docs-muted: #586579;
  --docs-rule: #e4e9f1;
  --docs-accent: #315edb;
}

body { margin: 0; font-family: var(--scalar-font); }

.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  height: var(--scalar-custom-header-height);
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid var(--docs-rule);
}

.docs-brand {
  display: flex;
  align-items: center;
  flex: 0 0 280px;
  box-sizing: border-box;
  padding: 0 24px;
  color: var(--docs-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.platform-nav { display: flex; align-items: stretch; gap: 8px; }
.platform-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
  color: var(--docs-muted);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.platform-nav a:hover { background: #f7f9fc; color: var(--docs-ink); }
.platform-nav a[aria-current="page"] { color: var(--docs-accent); font-weight: 700; }
.platform-nav a[aria-current="page"]::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--docs-accent);
  content: "";
}
.docs-header a:focus-visible { outline: 2px solid var(--docs-accent); outline-offset: -4px; }

/* Give the guides one reading column; keep Scalar's API examples beside each endpoint. */
.introduction-section .section-columns { display: block; }
.introduction-section .section-column { width: 100%; max-width: none; }
.introduction-section .section-column + .section-column { display: none; }
.introduction-section .section-content { max-width: 860px; }
.introduction-section .markdown { line-height: 1.8; }
#app .introduction-description-heading {
  scroll-margin-top: var(--refs-viewport-offset, var(--scalar-custom-header-height));
}
.introduction-section .markdown h1 {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--docs-rule);
  font-size: 22px;
  line-height: 1.45;
}
.introduction-section .markdown h2 { margin-top: 28px; font-size: 18px; }
.introduction-section .markdown table { font-size: 14px; line-height: 1.7; }
.introduction-section .markdown :is(th, td) { padding: 12px 14px; vertical-align: top; }
.introduction-section .markdown :is(th, td):first-child { min-width: 100px; }
.introduction-section .markdown li { margin-top: 8px; }
body:not([data-platform="common"]) .introduction-section .badge { display: none; }

@media (max-width: 700px) {
  :root { --scalar-custom-header-height: 100px; }
  .docs-header { flex-direction: column; }
  .docs-brand { flex: 0 0 46px; padding: 0 20px; font-size: 15px; }
  .platform-nav { flex: 1; gap: 0; padding: 0 8px; }
  .platform-nav a { flex: 1; padding: 0 12px; }
  #app .introduction-section .markdown table {
    display: block;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  #app .introduction-section .markdown :is(th, td) { min-width: 180px; }
  #app .introduction-section .markdown :is(th, td):first-child { min-width: 90px; }
}
