/* Developer docs (firmasignal.com/docs/) on the site design system. Loaded after /trends-assets/site-system.css
   (tokens, top bar, hero, bands, footer) and /trends-assets/site-pages.css (fonts and base); this file adds the
   sidebar beside the article, code blocks, endpoint cards, tables and the phone layout. */
.dk-hero { padding: 48px 0 56px; }
.dk-hero h1 { max-width: 22ch; }
.dk-hero .fs-lead { max-width: 46em; }
.dk-hero .fs-lead code, .dk-facts code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--ivory); font: 500 .86em/1.5 var(--mono); overflow-wrap: anywhere; }
.dk-crumbs { margin-bottom: 18px; color: var(--faint-d); font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.dk-crumbs a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--coral); }
.dk-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 26px 0 0; }
.dk-facts div { min-width: 0; }
.dk-facts dt { margin-bottom: 4px; color: var(--faint-d); font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.dk-facts dd { margin: 0; }

.dk-band { padding: 56px 0 72px; }
.dk-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px; align-items: start; }
.dk-side { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.dk-side-title { margin: 0 0 10px; color: var(--slate); font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.dk-side ol { margin: 0; padding: 0; list-style: none; }
.dk-side li + li { margin-top: 2px; }
.dk-side a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.35; text-decoration: none; }
.dk-side a[aria-current="page"] { color: var(--coral); font-weight: 700; }
.dk-side ol ol { margin: 2px 0 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.dk-side ol ol a { padding: 4px 0; color: var(--slate); font-size: 14px; }
.dk-side a:hover, .dk-side a:focus-visible { color: var(--coral); }
.dk-side-key { margin: 16px 0 0; }
.dk-side-key .fs-btn { display: inline-flex; width: 100%; justify-content: center; box-sizing: border-box; }

.dk-article { min-width: 0; max-width: 820px; font-size: 16.5px; line-height: 1.65; overflow-wrap: break-word; }
.dk-article p, .dk-article ul, .dk-article ol, .dk-article .dk-table, .dk-article .dk-code { margin: 0 0 14px; }
.dk-article ul { padding-left: 1.2em; list-style: disc; }
.dk-article li + li { margin-top: 6px; }
.dk-article a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dk-article a:hover, .dk-article a:focus-visible { color: var(--coral); }
.dk-article :not(pre) > code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: 500 .86em/1.5 var(--mono); overflow-wrap: anywhere; }
.dk-section { padding: 0 0 36px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.dk-section:last-child { margin-bottom: 0; border-bottom: 0; }
.dk-section > h2 { margin-bottom: 18px; font: 600 clamp(26px, 1rem + 1.2vw, 32px)/1.15 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.dk-section h3 { margin: 0 0 10px; font: 700 19px/1.3 var(--sans); }
.dk-section h4 { margin: 18px 0 8px; color: var(--slate); font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.dk-steps { counter-reset: step; padding: 0 !important; list-style: none !important; }
.dk-steps > li { position: relative; padding: 0 0 8px 52px; counter-increment: step; }
.dk-steps > li + li { margin-top: 18px; }
.dk-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font: 700 15px/1 var(--mono); }

.dk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 !important; list-style: none !important; }
.dk-cards li { margin: 0 !important; }
.dk-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); font-weight: 400; text-decoration: none; }
.dk-cards a strong { font-size: 17px; }
.dk-cards a span { color: var(--slate); font-size: 15px; line-height: 1.45; }
.dk-cards a:hover, .dk-cards a:focus-visible { border-color: var(--coral); color: inherit; }

.dk-code { overflow: hidden; border-radius: 14px; background: #1d1726; color: #ece6f5; }
.dk-code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #b9aecb; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dk-copy { min-height: 32px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #ece6f5; font: 600 12px/1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
.dk-copy:hover, .dk-copy:focus-visible { border-color: var(--lime); color: var(--lime); }
.dk-code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 400 13.5px/1.6 var(--mono); tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.dk-code pre:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.dk-code .k { color: #c7b8ff; }
.dk-code .s { color: #c7f36b; }
.dk-code .n, .dk-code .b { color: #ffb4a2; }
.dk-code .h { color: #b9aecb; }

.dk-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dk-table:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.dk-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.dk-table th, .dk-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dk-table tr:last-child > * { border-bottom: 0; }
.dk-table thead th { background: var(--paper); color: var(--slate); font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dk-table tbody th { font-weight: 700; }
.dk-table td code, .dk-table th code { white-space: nowrap; }
.dk-table code { overflow-wrap: normal; }
.dk-table td code { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }

.dk-endpoint { padding: 24px 24px 10px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; scroll-margin-top: 92px; }
.dk-endpoint h3 { font-size: 20px; }
.dk-endpoint h3 span { color: var(--slate); font-weight: 500; }
.dk-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dk-route > code { font-size: 14px !important; }
.dk-method { padding: 3px 9px; border-radius: 7px; color: #fff; font: 700 12px/1.3 var(--mono); letter-spacing: .04em; }
.dk-method--get { background: #2f6f4f; }
.dk-method--post { background: #6d4bd3; }
.dk-scope { padding: 3px 9px; border-radius: 999px; background: var(--lilac); font-size: 13px; font-weight: 600; }
.dk-scope code { border: 0 !important; background: transparent !important; padding: 0 !important; }
.dk-scope--none { background: var(--paper); color: var(--slate); }
.dk-exchange { margin-top: 6px; }
.dk-example { margin: 0 0 14px; }
.dk-example summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.dk-example[open] summary { margin-bottom: 8px; }
.dk-client { margin-bottom: 18px; scroll-margin-top: 92px; }
.dk-note { padding: 12px 16px; border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; background: var(--lilac); font-size: 15px; }
.dk-quote { margin: 0 0 14px; padding: 14px 18px; border-left: 4px solid var(--ink); background: var(--paper); font-size: 15px; }

@media (max-width: 960px) {
  .dk-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dk-side { position: static; max-height: none; }
  .dk-side ol ol { display: none; }
}
@media (max-width: 640px) {
  .dk-hero { padding: 36px 0 44px; }
  .dk-band { padding: 32px 0 48px; }
  .dk-article { font-size: 16px; }
  .dk-cards { grid-template-columns: minmax(0, 1fr); }
  .dk-endpoint { padding: 18px 14px 6px; border-radius: 14px; }
  .dk-steps > li { padding-left: 44px; }
  .dk-code pre { font-size: 12.5px; }
  .dk-table th, .dk-table td { padding: 8px; }
  .dk-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dk-table--stack table, .dk-table--stack tbody, .dk-table--stack tr, .dk-table--stack th, .dk-table--stack td { display: block; }
  .dk-table--stack tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .dk-table--stack tr:last-child { border-bottom: 0; }
  .dk-table--stack th, .dk-table--stack td { padding: 2px 0; border: 0; }
  .dk-table--stack tbody th { padding-bottom: 4px; font-size: 15px; }
  .dk-table--stack td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 8px; }
  .dk-table--stack td::before { content: attr(data-label); color: var(--slate); font: 500 10.5px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
}
@media print {
  .fs-top, .dk-side, .dk-copy, .fs-foot-wrap { display: none !important; }
  .dk-layout { display: block; }
  .dk-code { background: #fff; color: #000; border: 1px solid #999; }
}
