/* Docs chrome shares product tokens with website/openbot.css (Chazakah brand). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-elev: #111111;
  --bg-header: rgba(0, 0, 0, 0.78);
  --ink: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.64);
  --faint: rgba(245, 245, 245, 0.42);
  --line: rgba(245, 245, 245, 0.14);
  --fill: #ffffff;
  --fill-ink: #0a0a0a;
  --chip: #161616;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --card: #111111;
  --sidebar-w: 16.5rem;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --code-bg: #161616;
  --callout-bg: #161616;
  --callout-note-bg: #1a1408;
  --callout-note-line: rgba(243, 212, 138, 0.35);
  --method-get-bg: #13261c;
  --method-get-ink: #8fd6b0;
  --method-post-bg: #141c2a;
  --method-post-ink: #9bb6e8;
  --method-delete-bg: #2a1414;
  --method-delete-ink: #e89b9b;
  --method-put-bg: #2a2414;
  --method-put-ink: #e8d09b;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #f6f6f6;
  --bg-header: rgba(255, 255, 255, 0.82);
  --ink: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.62);
  --faint: rgba(10, 10, 10, 0.45);
  --line: rgba(10, 10, 10, 0.12);
  --fill: #0a0a0a;
  --fill-ink: #ffffff;
  --chip: #f3f3f3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --card: #ffffff;
  --code-bg: #f3f3f3;
  --callout-bg: #f3f3f3;
  --callout-note-bg: #fff8e8;
  --callout-note-line: rgba(106, 75, 5, 0.28);
  --method-get-bg: #e6f2ed;
  --method-get-ink: #0f6b4c;
  --method-post-bg: #e8eef8;
  --method-post-ink: #1a4a8a;
  --method-delete-bg: #f8e8e8;
  --method-delete-ink: #8a1a1a;
  --method-put-bg: #f8f0e0;
  --method-put-ink: #7a5a10;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
}
pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow: auto;
  line-height: 1.45;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--fill);
  color: var(--fill-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
  flex: none;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.wordmark .docs-label {
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.active {
  color: var(--ink);
  background: var(--chip);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.theme-toggle,
.menu-toggle {
  appearance: none;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.menu-toggle { display: none; }
.search-box {
  width: min(14rem, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
}
.search-box::placeholder { color: var(--faint); }

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 1.25rem 0.85rem 2.5rem 1rem;
  border-right: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 0.88rem;
}
.sidebar .group { margin-bottom: 1.15rem; }
.sidebar .group-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.25rem;
}
.sidebar a {
  display: block;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.sidebar a:hover {
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
}
.sidebar a.active {
  background: var(--fill);
  color: var(--fill-ink);
  font-weight: 600;
}
.content {
  max-width: 48rem;
  padding: 2rem clamp(1rem, 4vw, 2.75rem) 4rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); }
h1 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.card:hover {
  border-color: var(--ink);
  background: var(--chip);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.card span { color: var(--muted); font-size: 0.9rem; }
.callout {
  background: var(--callout-bg);
  border-left: 3px solid var(--ink);
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}
.callout.note {
  background: var(--callout-note-bg);
  border-left-color: var(--callout-note-line);
}
.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-nav a { font-weight: 600; }
.site-footer {
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }
ul, ol { padding-left: 1.2rem; }
li { margin: 0.35rem 0; }
.method {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}
.method.get { background: var(--method-get-bg); color: var(--method-get-ink); }
.method.post { background: var(--method-post-bg); color: var(--method-post-ink); }
.method.delete { background: var(--method-delete-bg); color: var(--method-delete-ink); }
.method.put, .method.patch { background: var(--method-put-bg); color: var(--method-put-ink); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    width: min(18rem, 88vw);
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.2s;
    box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .menu-toggle { display: inline-flex; align-items: center; }
  .primary-nav { display: none; }
  body.nav-open .primary-nav {
    display: flex;
    width: 100%;
    order: 5;
  }
  .header-actions { margin-left: 0; }
}
