/* API docs: the landing page's night/day look, laid out for reading and copying code. */
.docs { min-height: 100vh; }
.docs-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px 24px; background: rgb(5 5 7 / .78); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.docs-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 500; font-size: 16px; }
.docs-brand .logo { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 0 16px rgb(246 160 124 / .35); }
.docs-brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ffb86b; padding: 2px 8px; border: 1px solid rgb(255 184 107 / .35); border-radius: 999px; }
.docs-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); transition: border-color .2s, box-shadow .3s; }
.docs-search:focus-within { border-color: rgb(255 255 255 / .3); box-shadow: 0 0 0 4px rgb(167 139 250 / .12); }
.docs-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .6; flex: none; }
.docs-search input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 9px 0; font-size: 14px; color: inherit; min-width: 0; }
.docs-search kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid rgb(255 255 255 / .15); opacity: .6; }
.docs-top-links { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.docs-top-links > a:not(.lp-cta) { color: rgb(255 255 255 / .7); font-size: 14px; }
.docs-menu { display: none; }

.docs-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; gap: 48px; padding: 0 24px; }
.docs-nav { position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 62px); overflow-y: auto; padding: 28px 0 40px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.docs-nav-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .4); margin: 18px 10px 6px; }
.docs-nav-group:first-child { margin-top: 0; }
.docs-nav a { position: relative; padding: 7px 10px; border-radius: 8px; color: rgb(255 255 255 / .62); font-size: 14px; transition: color .2s, background .2s; }
.docs-nav a:hover { color: #fff; background: rgb(255 255 255 / .04); }
.docs-nav a.active { color: #fff; background: rgb(255 255 255 / .06); }
.docs-nav a.active::before { content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(#ffb86b, #fda4af); box-shadow: 0 0 10px rgb(253 164 175 / .7); }
.docs-nav a.dim { opacity: .3; }

.docs-main { min-width: 0; padding: 40px 0 120px; font-size: 15.5px; line-height: 1.72; color: rgb(255 255 255 / .78); }
.docs-main section { padding: 36px 0 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.docs-main section:last-child { border-bottom: 0; }
.docs-main h1 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 18px; color: #fff; }
.docs-main h2 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.03em; margin: 0 0 14px; color: #fff; }
.docs-main h3 { font-size: 17px; margin: 22px 0 10px; color: #fff; }
.docs-main a { color: #ffb86b; }
.docs-main b { color: #fff; font-weight: 500; }
.docs-lede { font-size: 18px; color: rgb(255 255 255 / .75); max-width: 760px; }
.docs-inline, .docs-main td code { font-family: var(--mono); font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08); color: #f4f4f5; white-space: nowrap; }
.docs-hero { padding-top: 12px !important; }

.docs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.docs-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .09); background: linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / .012)); color: inherit !important; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; isolation: isolate; }
.docs-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(255 184 107 / .12), transparent 50%); }
.docs-card:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / .2); }
.docs-card:hover::after { opacity: 1; }
.docs-card b { font-size: 16px; }
.docs-card span { font-size: 13.5px; color: rgb(255 255 255 / .55); }

.docs-steps { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.docs-steps li::marker { color: #ffb86b; font-family: var(--mono); }
.docs-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Code with language tabs */
.docs-code { margin: 18px 0 22px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .1); background: #0a0a0d; overflow: hidden; box-shadow: 0 30px 70px -40px rgb(0 0 0 / .9); }
.docs-code-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid rgb(255 255 255 / .07); background: rgb(255 255 255 / .02); }
.docs-code-tabs span { flex: 1; }
.docs-code-tabs button { min-height: 0; padding: 6px 12px; border-radius: 8px; border: 0; background: transparent !important; color: rgb(255 255 255 / .5); font-size: 12.5px; font-weight: 500; position: relative; }
.docs-code-tabs button::after { display: none !important; }
.docs-code-tabs button:hover { color: #fff; }
.docs-code-tabs button.on { color: #fff; background: rgb(255 255 255 / .07) !important; }
.docs-code-tabs button.on::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ffb86b, #fda4af); }
.docs-copy { border: 1px solid rgb(255 255 255 / .12) !important; }
.docs-code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #e7e7ea; white-space: pre; }
.docs-code pre[hidden] { display: none; }
.docs-code pre.enter { animation: code-in .35s var(--ease) both; }
@keyframes code-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.docs-code .tk-c { color: rgb(255 255 255 / .38); }
.docs-code .tk-s { color: #a7f3d0; }
.docs-code .tk-k { color: #c4b5fd; }

/* Endpoint lists, tables, callouts */
.docs-endpoints { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 20px; }
.docs-ep { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .07); background: rgb(255 255 255 / .02); transition: border-color .2s, background .2s; }
.docs-ep:hover { border-color: rgb(255 255 255 / .16); background: rgb(255 255 255 / .04); }
.docs-ep code { font-family: var(--mono); font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-ep em { font-style: normal; font-size: 13px; color: rgb(255 255 255 / .5); }
.m { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-align: center; padding: 3px 0; border-radius: 6px; }
.m.get { color: #86efac; background: rgb(74 222 128 / .1); }
.m.post { color: #93c5fd; background: rgb(147 197 253 / .12); }
.m.patch { color: #fde68a; background: rgb(251 191 36 / .12); }
.m.delete { color: #fca5a5; background: rgb(248 113 113 / .12); }
.docs-table { overflow-x: auto; margin: 14px 0 20px; border: 1px solid rgb(255 255 255 / .08); border-radius: 12px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-table th { text-align: left; font-weight: 500; font-size: 12.5px; color: rgb(255 255 255 / .55); padding: 10px 14px; background: rgb(255 255 255 / .03); border-bottom: 1px solid rgb(255 255 255 / .08); }
.docs-table td { padding: 10px 14px; border-bottom: 1px solid rgb(255 255 255 / .05); vertical-align: top; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 18px 0; }
.docs-callout { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid rgb(255 184 107 / .22); background: linear-gradient(180deg, rgb(255 184 107 / .06), transparent); }
.docs-callout b { font-size: 14.5px; }
.docs-callout span { font-size: 13.5px; color: rgb(255 255 255 / .62); line-height: 1.55; }
.docs-foot-note { font-size: 14px; color: rgb(255 255 255 / .55); margin-top: 26px; }
.docs-main section.no-match { display: none; }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .docs-main section { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .docs-main section.in { opacity: 1; transform: none; }
}

/* Phones */
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; gap: 0; padding: 0 18px; }
  .docs-top { padding: 10px 16px; gap: 10px; }
  .docs-search { display: none; }
  .docs-top-links > a:not(.lp-cta) { display: none; }
  .docs-top-links .lp-cta { padding: 7px 12px !important; font-size: 12.5px; }
  .docs-menu { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; min-height: 0; border-radius: 10px; border: 1px solid rgb(255 255 255 / .14); background: transparent !important; color: inherit; }
  .docs-menu::after { display: none !important; }
  .docs-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .docs-nav { position: fixed; top: 58px; left: 0; right: 0; bottom: 0; max-height: none; z-index: 19; padding: 20px 22px 60px; background: #050507; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  body.nav-open .docs-nav { opacity: 1; transform: none; pointer-events: auto; }
  .docs-nav a { font-size: 16px; padding: 10px; }
  .docs-ep { grid-template-columns: 56px minmax(0, 1fr); }
  .docs-ep em { grid-column: 2; }
  .docs-main { padding-top: 24px; }
}

/* Day */
html[data-theme="day"] .docs-top { background: rgb(246 239 230 / .82); }
html[data-theme="day"] .docs-search { border-color: rgb(20 24 40 / .12); background: rgb(255 255 255 / .7); }
html[data-theme="day"] .docs-search kbd { border-color: rgb(20 24 40 / .2); }
html[data-theme="day"] .docs-top-links > a:not(.lp-cta), html[data-theme="day"] .docs-nav a { color: rgb(16 19 28 / .65); }
html[data-theme="day"] .docs-nav a:hover, html[data-theme="day"] .docs-nav a.active { color: #10131c; background: rgb(20 24 40 / .05); }
html[data-theme="day"] .docs-nav-group { color: rgb(16 19 28 / .42); }
html[data-theme="day"] .docs-main { color: rgb(16 19 28 / .78); }
html[data-theme="day"] .docs-main h1, html[data-theme="day"] .docs-main h2, html[data-theme="day"] .docs-main h3, html[data-theme="day"] .docs-main b { color: #10131c; }
html[data-theme="day"] .docs-main a { color: #c2410c; }
html[data-theme="day"] .docs-lede { color: rgb(16 19 28 / .72); }
html[data-theme="day"] .docs-inline, html[data-theme="day"] .docs-main td code { background: rgb(20 24 40 / .05); border-color: rgb(20 24 40 / .1); color: #10131c; }
html[data-theme="day"] .docs-card { border-color: rgb(20 24 40 / .1); background: linear-gradient(180deg, #fff, rgb(255 255 255 / .6)); }
html[data-theme="day"] .docs-card span, html[data-theme="day"] .docs-ep em, html[data-theme="day"] .docs-callout span, html[data-theme="day"] .docs-foot-note { color: rgb(16 19 28 / .58); }
html[data-theme="day"] .docs-ep { border-color: rgb(20 24 40 / .09); background: rgb(255 255 255 / .6); }
html[data-theme="day"] .docs-ep code { color: #10131c; }
html[data-theme="day"] .docs-table { border-color: rgb(20 24 40 / .1); }
html[data-theme="day"] .docs-table th { color: rgb(16 19 28 / .55); background: rgb(20 24 40 / .03); border-color: rgb(20 24 40 / .1); }
html[data-theme="day"] .docs-table td { border-color: rgb(20 24 40 / .06); }
html[data-theme="day"] .docs-callout { border-color: rgb(234 88 12 / .25); background: linear-gradient(180deg, rgb(255 214 120 / .2), transparent); }
html[data-theme="day"] .docs-menu { border-color: rgb(20 24 40 / .15); }
@media (max-width: 900px) { html[data-theme="day"] .docs-nav { background: #f6efe6; } }

/* Undo the dashboard's global label and nav styles in the top bar */
.docs-search { flex-direction: row !important; height: 40px; margin: 0; font-size: 14px; text-transform: none; letter-spacing: 0; }
.docs-top-links a, .docs-top-links .lp-cta { text-transform: none !important; letter-spacing: -.005em !important; border-bottom: 0; }
.docs-top-links { flex: none; }
