/* Documentation: two columns, the menu and the page */
.docs { display: grid; grid-template-columns: 284px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.dmenu { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--hair); background: #fbfcfe; }
.dsearch { padding: 18px 16px 12px; position: relative; }
.dsearch label { display: grid; grid-template-columns: 16px minmax(0, 1fr) 22px; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 12px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--hair); }
.dsearch label:focus-within { box-shadow: 0 0 0 2px var(--cobalt); }
.dsearch svg { width: 16px; height: 16px; color: var(--steel); }
.dsearch input { border: 0; outline: 0; background: transparent; min-width: 0; font: 500 14px Manrope, system-ui, sans-serif; color: var(--ink); }
.dsearch kbd { font: 500 11px ui-monospace, monospace; color: var(--steel); height: 22px; display: grid; place-items: center; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--hair); }
.dres { position: absolute; left: 16px; right: 16px; top: 64px; z-index: 5; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -18px rgba(18,26,43,.35); padding: 6px; max-height: 60vh; overflow: auto; }
.dres[hidden] { display: none; }
.dres .g { font-size: 11.5px; color: var(--steel); padding: 8px 10px 4px; }
.dres a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink); }
.dres a span { display: block; font-size: 12px; color: var(--steel); }
.dres a.on, .dres a:hover { background: var(--ice); }
.dres mark { background: #fdf3c4; color: inherit; border-radius: 3px; padding: 0 1px; }
.dres .none { padding: 12px 10px; font-size: 13px; color: var(--steel); }

.dscroll { overflow-y: auto; padding: 4px 12px 28px; scrollbar-width: thin; scrollbar-color: #b9c9ee transparent;
  -webkit-mask-image: linear-gradient(transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
.dscroll::-webkit-scrollbar, .dpage pre::-webkit-scrollbar { width: 8px; height: 8px; }
.dscroll::-webkit-scrollbar-thumb, .dpage pre::-webkit-scrollbar-thumb { background: #b9c9ee; border-radius: 8px; }
.dgroup { margin-top: 14px; }
.dgroup .h { font-size: 11.5px; color: var(--steel); padding: 0 12px 6px; }
.dgroup a { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: #4a5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgroup a:hover { background: #f1f4f9; color: var(--ink); }
.dgroup a[aria-current="page"] { background: #fff; color: var(--cobalt); box-shadow: 0 0 0 1px var(--hair); }
.dgroup a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--mint); }
.dgroup .m { font: 600 10.5px ui-monospace, monospace; color: var(--cobalt); background: var(--ice); border-radius: 5px; padding: 2px 5px; flex: none; }

.dpage { min-width: 0; padding: 40px 48px 72px; max-width: 920px; }
.crumb { font-size: 13px; color: var(--steel); margin: 0 0 10px; }
.crumb a { color: var(--steel); }
.crumb a:hover { color: var(--cobalt); }
.dkw { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--steel); }
.dtitle { display: block; font-size: 36px; line-height: 1.12; letter-spacing: -.035em; font-weight: 600; color: var(--ink); }
.dlede { margin: 14px 0 0; font-size: 16.5px; line-height: 1.65; color: #3d4a5f; max-width: 720px; }
.dpage h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.dpage h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.dpage p { color: #3d4a5f; font-size: 15px; line-height: 1.7; max-width: 720px; }
.dpage a.in { color: var(--cobalt); }
.dpage a.in:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dchip { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; background: #f1f4f9; color: #4a5568; white-space: nowrap; }
.dchip.blue { background: var(--ice); color: var(--cobalt); }
.dchip.green { background: #e6f6ef; color: #12805a; }

.callbar { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) 96px; align-items: center; gap: 12px; height: 52px; padding: 0 6px 0 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.callbar .verb { font: 600 12px ui-monospace, monospace; color: #fff; background: var(--cobalt); border-radius: 7px; padding: 6px 9px; }
.callbar code { font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callbar .btn { height: 40px; }

/* Try it */
.try { margin-top: 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; overflow: hidden; }
.try-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.try-head span:last-child { font-size: 13px; color: var(--steel); }
.try-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.tf label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.tf label span { color: var(--steel); }
.tf input { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--hair); font: 500 14px Manrope, system-ui, sans-serif; color: var(--ink); background: #fbfcfe; outline: 0; }
.tf input:focus { box-shadow: inset 0 0 0 2px var(--cobalt); background: #fff; }
.try-url { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; align-items: center; }
.try-url code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: #3d4a5f; background: #f6f8fb; border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.try-url .btn { height: 44px; }
.answer { border-top: 1px solid var(--hair); }
.answer-head { display: flex; gap: 14px; align-items: center; padding: 12px 18px; font-size: 13px; color: var(--steel); }
.answer-head .ok { color: #12805a; font-weight: 600; }
.answer-head .bad { color: #c2410c; font-weight: 600; }

pre.json, pre.codeb { margin: 0; padding: 16px 18px; background: #0f1a33; color: #dbe5f8; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4d6aa8 transparent; }
pre .k { color: #a9c3ff; } pre .s { color: #8fe0bf; } pre .n { color: #ffd27a; } pre .b { color: #f4a3c0; } pre .c { color: #8ea3c7; }

.tabs-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.tabs-bar button { height: 32px; min-width: 92px; border: 0; border-radius: 8px; background: transparent; font: 500 13px Manrope, system-ui, sans-serif; color: #4a5568; cursor: pointer; white-space: nowrap; }
.tabs-bar button[aria-selected="true"] { background: var(--ice); color: var(--cobalt); }
.tabs-bar .btn { margin-left: auto; height: 32px; width: 92px; font-size: 13px; }

/* Rows: parameters, returns, errors */
.rows { border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; overflow: hidden; }
.rowp { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 14px 18px; border-top: 1px solid #f0f3f7; font-size: 14px; }
.rowp:first-child { border-top: 0; }
.rowp .nm code { font: 600 13px ui-monospace, monospace; color: var(--ink); }
.rowp .nm span { display: block; font-size: 12px; color: var(--steel); margin-top: 2px; }
.rowp .ds { color: #3d4a5f; line-height: 1.6; }
.rowp .vals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rowp .vals code { font: 12px ui-monospace, monospace; background: #f1f4f9; color: #3d4a5f; border-radius: 6px; padding: 3px 7px; }

.pn { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn a { display: block; padding: 16px 18px; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); background: #fff; }
.pn a:hover { box-shadow: 0 0 0 1px #c9d7f2; }
.pn a span { display: block; font-size: 12.5px; color: var(--steel); }
.pn a b { font-weight: 600; font-size: 15px; color: var(--ink); }
.pn a.next { text-align: right; }

/* Landing cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dcard { padding: 20px; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.dcard p { margin: 0; font-size: 14px; line-height: 1.6; }
.dcard ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.dcard li a { font: 500 13px ui-monospace, monospace; color: var(--cobalt); }
.dcard .go-l { font-size: 13.5px; color: var(--cobalt); font-weight: 500; }
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sstep { padding: 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.sstep .no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--cobalt); font-size: 13px; font-weight: 600; }
.sstep p { margin: 0; font-size: 14px; line-height: 1.6; }
.sstep .btn { height: 38px; font-size: 13.5px; }
.eplist { border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; overflow: hidden; }
.ep { display: grid; grid-template-columns: 64px 190px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 54px; padding: 10px 18px; border-top: 1px solid #f0f3f7; font-size: 14px; }
.ep:first-child { border-top: 0; }
.ep .verb { font: 600 11.5px ui-monospace, monospace; color: var(--cobalt); background: var(--ice); border-radius: 6px; padding: 4px 8px; justify-self: start; }
.ep a { font: 500 13.5px ui-monospace, monospace; color: var(--ink); white-space: nowrap; }
.ep a:hover { color: var(--cobalt); }
.ep span:last-child { color: #4a5568; }
.copyrow { display: grid; grid-template-columns: 180px minmax(0, 1fr) 92px; gap: 14px; align-items: center; min-height: 58px; padding: 10px 18px; border-top: 1px solid #f0f3f7; font-size: 14px; }
.copyrow:first-child { border-top: 0; }
.copyrow b { font-weight: 600; }
.copyrow code { font: 13px ui-monospace, monospace; color: #3d4a5f; overflow-wrap: anywhere; }
.copyrow .btn { height: 34px; font-size: 13px; }
.news { border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; overflow: hidden; }
.new { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-top: 1px solid #f0f3f7; font-size: 14px; color: #3d4a5f; }
.new:first-child { border-top: 0; }
.new time { color: var(--steel); white-space: nowrap; }
.dfaq { display: grid; gap: 12px; }
.dfaq .qa p { margin: 0; }

/* Inline code, snippets, steps and prompts */
.dpage p code, .rowp .ds code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f4f9; color: var(--ink); border-radius: 5px; padding: 1px 5px; }
.dpage p.small { font-size: 13.5px; color: var(--steel); margin: 0 0 10px; }
.dpage h2 code.tname { font: 600 20px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cobalt); }
.dtitle.withlogo { display: flex; align-items: center; gap: 14px; }
.dtitle.withlogo img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.dpage .rows, .dpage .eplist, .dpage .snip, .dpage .asks { margin: 14px 0; }
.snip { border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; overflow: hidden; }
.snip-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 18px; font-size: 13px; color: var(--steel); }
.snip-bar .btn { height: 32px; width: 92px; font-size: 13px; }
.dsteps { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; }
.dsteps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); background: #fff; }
.dsteps .no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--cobalt); font-size: 13px; font-weight: 600; }
.dsteps p { margin: 0; }
.asks { display: grid; gap: 10px; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 12px; background: var(--ice); font-size: 14.5px; color: var(--ink); }
.ask .btn { height: 34px; font-size: 13px; background: #fff; }
.dpage .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; }

@media (max-width: 980px) {
  .docs { grid-template-columns: 1fr; }
  .dmenu { position: static; height: auto; max-height: 420px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .dpage { padding: 28px 16px 56px; }
  .start, .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dtitle { font-size: 28px; }
  .try-form { grid-template-columns: 1fr; }
  .try-url { grid-template-columns: 1fr; }
  .rowp, .copyrow, .new { grid-template-columns: 1fr; gap: 6px; }
  .ep { grid-template-columns: 56px minmax(0, 1fr); }
  .ep span:last-child { grid-column: 1 / -1; }
  .callbar { grid-template-columns: auto minmax(0, 1fr) 76px; }
  .tabs-bar { flex-wrap: wrap; }
  .tabs-bar button { min-width: 0; padding: 0 10px; }
  .pn { grid-template-columns: 1fr; }
  .ask { grid-template-columns: 1fr; }
  .dpage .tiles { grid-template-columns: 1fr; }
}
.dsearch input::-webkit-search-cancel-button { display: none; }
