:root {
  --orange: #F97316; --orange-mid: #FA9450; --orange-soft: #FDBA74; --orange-deep: #C2410C;
  --ink: #101828; --ink-2: #1D2939; --ink-3: #344054; --ink-0: #0A101C; --line: #E4E7EC; --page: #F6F7F9;
  --text: #101828; --muted: #667085; --good: #12B76A; --sky: #93C5FD; --mint: #A6E3C5; --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.55 "IBM Plex Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- header (approved) ---------- */
.hdr { background: var(--ink); color: #fff; position: relative; z-index: 3; }
.hdr .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .w { font: 800 21px/1 "Sora", sans-serif; letter-spacing: -0.035em; }
.brand .w i { font-style: normal; color: var(--orange); }
.brand .w small { font-weight: 600; font-size: .62em; color: #98A2B3; letter-spacing: 0; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r); color: #D0D5DD; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { color: #fff; background: var(--ink-2); }
.spacer { flex: 1; }
.right { display: flex; align-items: center; gap: 10px; }
.upsell { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--ink-3); border-radius: var(--r); font-size: 13.5px; color: #D0D5DD; white-space: nowrap; }
.upsell .tag { background: var(--orange); color: var(--ink); font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r); font: 600 14.5px "IBM Plex Sans", sans-serif; white-space: nowrap; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
.btn.ghost { color: #fff; background: transparent; }
.btn.ghost:hover { background: var(--ink-2); }
.btn.primary { background: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-mid); }
.btn.primary:active { transform: translateY(1px); }
.btn:focus-visible, .nav a:focus-visible, .burger:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.burger { display: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--ink-3); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }
.short { display: none; }
.nav a[aria-current="page"] { color: #fff; background: var(--ink-2); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- documentation ---------- */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.dnav { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; background: #fff; border-right: 1px solid #EAECF0; padding: 18px 14px 40px; }
.dsearch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid #D0D5DD; border-radius: var(--r); margin-bottom: 14px; }
.dsearch:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }
.dsearch svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dsearch input { flex: 1; min-width: 0; border: 0; outline: none; font: 14px "IBM Plex Sans", sans-serif; background: transparent; }
.dgrp { display: flex; flex-direction: column; gap: 1px; margin-bottom: 16px; }
.dgrp b { font: 600 11.5px "IBM Plex Sans", sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px 6px; }
.dgrp a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: #344054; }
.dgrp a:hover { background: #F9FAFB; color: var(--ink); }
.dgrp a[aria-current="page"] { background: #FFF4ED; color: var(--orange-deep); font-weight: 600; }
.dgrp a[hidden] { display: none; }
.dgrp .m { font: 600 9.5px "IBM Plex Mono", monospace; color: #027A48; background: #ECFDF3; border-radius: 4px; padding: 1px 4px; }
.dmain { padding: 32px 40px 80px; min-width: 0; }
.dmain.has-code { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.dart { font-size: 15.5px; line-height: 1.7; color: #344054; min-width: 0; }
.dmain:not(.has-code) .dart { max-width: 860px; }
.crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.dart h1 { font: 800 34px/1.12 "Sora", sans-serif; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 12px; }
.dart h2 { font: 700 20px/1.3 "Sora", sans-serif; letter-spacing: -0.02em; color: var(--ink); margin: 32px 0 10px; }
.dart p { margin: 0 0 12px; }
.dart ul, .dart ol { margin: 0 0 12px; padding-left: 22px; }
.dart li { margin-bottom: 6px; }
.dart a { color: var(--orange-deep); font-weight: 600; }
.dart code { font: 500 13.5px "IBM Plex Mono", monospace; background: #F2F4F7; border-radius: 5px; padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; }
.dart pre { margin: 0 0 14px; background: #0D1321; color: #D0D5DD; border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13px/1.65 "IBM Plex Mono", monospace; }
.dart pre code { background: none; padding: 0; color: inherit; font: inherit; }
.dart table, .tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 14px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #EAECF0; }
.dart th { text-align: left; font: 600 12px "IBM Plex Sans", sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; background: #F9FAFB; border-bottom: 1px solid #EAECF0; }
.dart td { padding: 10px 12px; border-bottom: 1px solid #F2F4F7; vertical-align: top; line-height: 1.5; overflow-wrap: break-word; }
/* a field or parameter name stays whole on wide screens; only a phone may break it */
.dart td:first-child code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 640px) { .dart td:first-child code { white-space: normal; overflow-wrap: anywhere; } }
.dart tr:last-child td { border-bottom: 0; }
.fields tr.sub td:first-child { padding-left: 28px; }
.fields tr.sub code { color: #475467; }
.lead { font-size: 17px; color: #475467; }
.ep-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; min-width: 0; }
.ep-bar code { flex: 1; min-width: 0; background: none; color: #fff; font: 500 14px "IBM Plex Mono", monospace; overflow-wrap: anywhere; padding: 0; }
.verb { font: 600 11.5px "IBM Plex Mono", monospace; color: var(--ink); background: var(--mint); border-radius: 6px; padding: 2px 8px; flex: none; }
.copy { font: 600 12.5px "IBM Plex Sans", sans-serif; color: #fff; background: rgba(255,255,255,.08); border: 1px solid #475467; border-radius: 8px; padding: 5px 10px; cursor: pointer; flex: none; }
.copy.done { color: #6CE9A6; border-color: #6CE9A6; }
.plan-pill { display: inline-flex; align-items: center; font: 600 12.5px "IBM Plex Sans", sans-serif; color: var(--orange-deep); background: #FFF4ED; border-radius: 999px; padding: 3px 10px; margin-right: 6px; }
.plan-pill.grey { color: #475467; background: #F2F4F7; font-weight: 500; }
.plan-pill a { color: inherit; }
.req { font: 600 11px "IBM Plex Sans", sans-serif; color: #B42318; background: #FEF3F2; border-radius: 4px; padding: 1px 5px; }
.ex { color: var(--muted); font-size: 13px; }
.errs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ecode { font: 600 12.5px "IBM Plex Mono", monospace; color: #B42318; background: #FEF3F2; border-radius: 6px; padding: 2px 8px; }
.dcode { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* on a wide, tall screen the column stays beside the page and fits the window: Try it and the code at their own height,
   the answer filling what is left with its scrollbar in view */
@media (min-width: 1241px) and (min-height: 820px) {
  .dcode { position: sticky; top: 80px; height: calc(100vh - 96px); }
  .dcode > .cbox { flex: none; }
  .dcode > .cbox.ans { flex: 1 1 auto; min-height: 200px; display: flex; flex-direction: column; }
  .dcode > .cbox.ans .cpre.json { flex: 1 1 auto; min-height: 0; max-height: none; }
  .dcode .cpre[data-l] { max-height: 150px; overflow-y: auto; }
}
.cbox { background: #0D1321; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(16,24,40,.6); }
.ctabs { display: flex; align-items: center; gap: 2px; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.ctabs button[role="tab"] { font: 600 12.5px "IBM Plex Sans", sans-serif; color: #98A2B3; background: transparent; border: 0; border-radius: 7px; padding: 6px 10px; cursor: pointer; }
.ctabs button[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
.ctabs .copy { margin-left: auto; }
.ctitle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #98A2B3; padding: 4px 6px; }
.ctitle .st { font: 600 11px "IBM Plex Mono", monospace; color: #0D1321; background: var(--mint); border-radius: 5px; padding: 1px 6px; }
/* code wraps: never a sideways scroll */
.cpre { margin: 0; padding: 14px 16px; font: 400 12.75px/1.7 "IBM Plex Mono", monospace; color: #D0D5DD; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.cpre.json { max-height: 460px; overflow-y: auto; }
/* scrollbars in the brand's orange with a face you can see, and the menu fading out at its foot */
.dnav { scrollbar-width: thin; scrollbar-color: #FDBA74 transparent; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
.dnav::-webkit-scrollbar { width: 8px; }
.dnav::-webkit-scrollbar-thumb { background: #FDBA74; border-radius: 6px; }
.dnav::-webkit-scrollbar-thumb:hover { background: #F97316; }
.cpre { scrollbar-width: thin; scrollbar-color: #C2410C #141C2C; }
.cpre::-webkit-scrollbar { width: 10px; height: 10px; }
.cpre::-webkit-scrollbar-track { background: #141C2C; }
.cpre::-webkit-scrollbar-thumb { background: #C2410C; border-radius: 6px; border: 2px solid #141C2C; }
.cpre::-webkit-scrollbar-thumb:hover { background: #F97316; }

/* try it: dark like the code beside it */
.try .tget { margin-left: auto; font: 600 12px "IBM Plex Sans", sans-serif; color: #0D1321; background: #F97316; border-radius: 7px; padding: 5px 10px; }
.try .tget:hover { background: #FA9450; }
.tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 14px 14px; }
.try.many .tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* five parameters or more: three to a row */
.tf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tf.tkey { grid-column: 1 / -1; }
.tf span { font: 600 11px "IBM Plex Sans", sans-serif; color: #98A2B3; letter-spacing: .02em; }
.tf em { font-style: normal; color: #FDA29B; font-weight: 500; margin-left: 6px; }
.tf input, .tf select { width: 100%; min-width: 0; background: #141C2C; color: #E4E7EC; border: 1px solid #283245; border-radius: 8px; padding: 6px 9px; font: 500 12.5px "IBM Plex Mono", monospace; }
.tf input::placeholder { color: #5D6B82; }
.tf input:focus, .tf select:focus { outline: 0; border-color: #F97316; box-shadow: 0 0 0 3px rgba(249,115,22,.22); }
.trun { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.run { font: 700 13.5px "IBM Plex Sans", sans-serif; color: #0D1321; background: #F97316; border: 0; border-radius: 8px; padding: 7px 22px; cursor: pointer; }
.run:hover { background: #FA9450; }
.run:disabled { opacity: .7; cursor: progress; }
.run:focus-visible, .try .tget:focus-visible, .cbtn:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }
.tnote { font-size: 12.5px; color: #98A2B3; }
.tnote.bad { color: #FDA29B; }
.ctitle .st.bad { background: #FDA29B; }
.cbtn { margin-left: auto; font: 600 12px "IBM Plex Sans", sans-serif; color: #D0D5DD; background: rgba(255,255,255,.08); border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.cbtn:hover { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 640px) { .tbody, .try.many .tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .tbody, .try.many .tbody { grid-template-columns: minmax(0, 1fr); } }
/* the colours (docs.js), the same in every language and in the answer */
.tk-k { color: #C4B5FD; } .tk-s { color: #A6E3C5; } .tk-n { color: #FDBA74; } .tk-b { color: #F9A8D4; }
.tk-p { color: #93C5FD; } .tk-c { color: #667085; font-style: italic; } .tk-u { color: #FDE68A; } .tk-x { color: #667085; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid #EAECF0; transition: border-color .15s, box-shadow .15s; }
.dart .card { color: #475467; font-weight: 400; }
.card:hover { border-color: var(--orange-soft); box-shadow: 0 10px 24px -18px rgba(249, 115, 22, .7); }
.card b { font: 700 15px "Sora", sans-serif; color: var(--ink); }
.card span { font-size: 13.5px; line-height: 1.5; }
.tagline { color: var(--muted); font-size: 14px; }
.eplist { display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #EAECF0; overflow: hidden; }
.dart .eplist a { display: grid; grid-template-columns: auto minmax(0, 240px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid #F2F4F7; color: #344054; font-weight: 400; }
.dart .eplist a:first-child { border-top: 0; }
.dart .eplist a:hover { background: #FFFBF7; }
.eplist code { background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eplist .d { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eplist .pl { font: 600 12px "IBM Plex Sans", sans-serif; color: var(--orange-deep); background: #FFF4ED; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.dgrp a:focus-visible, .card:focus-visible, .copy:focus-visible, .ctabs button:focus-visible, .eplist a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* the footer: the site's own links and its copyright, nothing from the company */
.foot { background: var(--ink-0); color: #98A2B3; font-size: 14px; }
.foot .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.07); }
.foot .brand { color: #fff; }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; font: 600 13px "IBM Plex Sans", sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot a:hover { color: #fff; }
.foot a:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.foot-st { display: inline-flex; align-items: center; gap: 7px; }
.foot-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #98A2B3; }
.foot-st[data-state="up"]::before { background: var(--good); }
.foot-st[data-state="degraded"]::before { background: #F79009; }
.foot-st[data-state="down"]::before { background: #F04438; }
.foot-legal { padding-top: 22px; font-size: 13px; }


@media (max-width: 1240px) { .dmain.has-code { grid-template-columns: minmax(0, 1fr); } .dcode { position: static; } }
@media (max-width: 1100px) { .upsell { display: none; } }
@media (max-width: 980px) {
  .nav, .right .ghost { display: none; } .burger { display: grid; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .dnav { position: static; max-height: none; border-right: 0; border-bottom: 1px solid #EAECF0; }
  .dmain { padding: 24px 16px 64px; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dart .eplist a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .eplist .d { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .long { display: none; } .short { display: inline; } .hdr .wrap { gap: 12px; }
  .dart h1 { font-size: 28px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
