/* v72.70: docs written on the website (js/docs-live.js) */
.dk-page { max-width: 1180px; }
.dk { --dk-line: var(--line, rgba(0,0,0,.09)); --dk-soft: rgba(22,22,26,.04); --dk-hi: rgba(47,124,246,.1); position: relative; margin-top: 8px; }
.dk-head { padding: 4px 0 8px; }
.dk-title { display: block; width: 100%; border: 0; outline: none; resize: none; overflow: hidden; background: transparent; font: inherit; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink, #0b0b0b); padding: 0; margin: 0 0 6px; }
.dk-title::placeholder { color: rgba(22,22,26,.28); }
.dk-metarow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; }
.dk-metatext:empty, .dk-status:empty { display: none; }
.dk-status.bad { color: #c0392b; font-weight: 600; }
.dk-ppl { display: inline-flex; align-items: center; }
.dk-ppl[hidden] { display: none; }
.dk-pp { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface, #fff); display: inline-flex; }
.dk-pp:first-child { margin-left: 0; }
.dk-pp .tm-av { width: 26px; height: 26px; font-size: 10px; }
.dk-pp.more { width: 26px; height: 26px; border-radius: 50%; background: #e9e9ee; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }
.dk-acts { margin-left: auto; display: flex; gap: 6px; }
.dk-acts .btn.on { background: var(--ink, #0b0b0b); color: #fff; border-color: var(--ink, #0b0b0b); }
.dk-acts .btn .jjs-ico { width: 15px; height: 15px; }

/* the toolbar */
.dk-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 5px 6px; margin: 4px 0 10px; background: var(--surface, #fff); border: 1px solid var(--dk-line); border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.05); overflow-x: auto; scrollbar-width: none; }
.dk-bar::-webkit-scrollbar { display: none; }
.dk-bb { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 32px; min-width: 32px; justify-content: center; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ink, #0b0b0b); font: inherit; font-size: 13px; cursor: pointer; }
.dk-bb .jjs-ico { width: 17px; height: 17px; }
.dk-bb:hover:not(:disabled), .dk-bb:focus-visible { background: rgba(22,22,26,.07); outline: none; }
.dk-bb.on { background: rgba(22,22,26,.12); }
.dk-bb:disabled { opacity: .35; cursor: default; }
.dk-turn { padding: 0 8px; min-width: 110px; justify-content: space-between; font-weight: 600; }
.dk-caret { font-size: 10px; opacity: .6; }
.dk-sep { flex: 0 0 auto; width: 1px; height: 20px; background: var(--dk-line); margin: 0 4px; }
.dk-grow { flex: 1 1 auto; }
.dk-ro .dk-bar { display: none; }

.dk-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: #fff7e8; border: 1px solid #f3d9a4; font-size: 14px; margin-bottom: 12px; }
.dk-banner.bad { background: #fdeeee; border-color: #f2c4c4; }
.dk-banner[hidden] { display: none; }

/* the page */
.dk-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.dk-sideon .dk-wrap { grid-template-columns: minmax(0, 1fr) 340px; }
.dk-paper { min-width: 0; background: var(--surface, #fff); border: 1px solid var(--dk-line); border-radius: 16px; padding: 28px 40px 8px 56px; min-height: 60vh; }
.dk-tail { height: 120px; cursor: text; }
.dk-ro .dk-tail { cursor: default; height: 40px; }
.dk-body { outline: none; font-size: 15.5px; line-height: 1.65; color: var(--ink, #16161a); }
.dk-body[hidden], .dk-prev[hidden] { display: none; }

/* one part */
.dk-b { position: relative; margin: 0; padding: 2px 0; border-radius: 6px; }
.dk-b:focus { outline: none; }
.dk-tx, .dk-cap, .dk-cell { outline: none; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.65em; caret-color: var(--ink, #0b0b0b); }
.dk-tx a, .dk-cap a, .dk-cell a, .dk-static a { color: #2f6fd6; text-decoration: underline; text-underline-offset: 2px; }
.dk-tx code, .dk-cell code, .dk-static code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: rgba(22,22,26,.07); border-radius: 4px; padding: 1px 4px; }
.dk-empty > .dk-tx:focus::before, .dk-one > .dk-b.dk-empty > .dk-tx::before { content: attr(data-ph); color: rgba(22,22,26,.3); position: absolute; pointer-events: none; }
.dk-ro .dk-one > .dk-b.dk-empty > .dk-tx::before { content: none; }
.dk-t-h1 .dk-tx { font-size: 28px; font-weight: 700; line-height: 1.3; margin-top: 18px; }
.dk-t-h2 .dk-tx { font-size: 22px; font-weight: 700; line-height: 1.35; margin-top: 14px; }
.dk-t-h3 .dk-tx { font-size: 18px; font-weight: 700; line-height: 1.4; margin-top: 10px; }
.dk-b:first-child .dk-tx { margin-top: 0; }
.dk-t-quote .dk-tx { border-left: 3px solid rgba(22,22,26,.25); padding-left: 14px; color: #4a4a52; }
.dk-t-code .dk-tx { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.55; background: #f4f4f6; border-radius: 8px; padding: 10px 14px; }
.dk-t-ul, .dk-t-ol, .dk-t-todo { display: flex; align-items: flex-start; gap: 8px; }
.dk-t-ul .dk-tx, .dk-t-ol .dk-tx, .dk-t-todo .dk-tx { flex: 1 1 auto; min-width: 0; }
.dk-b[data-ind="1"] { margin-left: 26px; } .dk-b[data-ind="2"] { margin-left: 52px; } .dk-b[data-ind="3"] { margin-left: 78px; }
.dk-mark { flex: 0 0 auto; min-width: 18px; text-align: right; color: #55555c; user-select: none; font-variant-numeric: tabular-nums; }
.dk-chk { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .27em; border-radius: 5px; border: 1.5px solid rgba(22,22,26,.45); background: var(--surface, #fff); display: grid; place-items: center; padding: 0; cursor: pointer; color: transparent; }
.dk-chk .jjs-ico { width: 13px; height: 13px; stroke-width: 3; }
.dk-done .dk-chk { background: #2f7cf6; border-color: #2f7cf6; color: #fff; }
.dk-done .dk-tx { text-decoration: line-through; color: rgba(22,22,26,.45); }
.dk-t-hr { padding: 10px 0; cursor: default; }
.dk-t-hr hr { border: 0; border-top: 1px solid rgba(22,22,26,.18); margin: 0; }
.dk-at { color: #2f6fd6; background: rgba(47,124,246,.1); border-radius: 4px; padding: 0 3px; font-weight: 600; white-space: nowrap; }

/* pictures and files */
.dk-t-img { margin: 8px 0; width: var(--dk-w, 100%); max-width: 100%; }
.dk-imgbox { position: relative; border-radius: 10px; overflow: hidden; background: var(--dk-soft); min-height: 60px; cursor: pointer; }
.dk-imgbox img { display: block; width: 100%; height: auto; }
.dk-imgbad .dk-imgbox { display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: 13px; }
.dk-cap { font-size: 13px; color: #6b6b73; text-align: center; padding: 4px 0 0; }
.dk-cap.dk-capempty:not(:focus) { display: none; }
.dk-t-img:focus-within .dk-cap.dk-capempty::before, .dk-t-img:focus .dk-cap.dk-capempty { display: block; }
.dk-cap.dk-capempty:focus::before { content: attr(data-ph); color: rgba(22,22,26,.3); position: absolute; pointer-events: none; left: 0; right: 0; }
.dk-t-img:focus .dk-imgbox, .dk-t-file:focus .dk-file, .dk-t-hr:focus hr { box-shadow: 0 0 0 2px #2f7cf6; }
.dk-t-hr:focus hr { border-top-color: #2f7cf6; }
.dk-up { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.dk-up[hidden] { display: none; }
.dk-uploading img { opacity: .6; }
.dk-t-file { margin: 4px 0; display: flex; align-items: center; gap: 8px; }
.dk-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: var(--dk-soft); color: var(--ink, #0b0b0b); cursor: pointer; text-align: left; }
.dk-file .jjs-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.dk-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dk-file small { color: var(--muted); white-space: nowrap; }
.dk-t-file .dk-up { position: static; }

/* tables */
.dk-tw { overflow-x: auto; margin: 6px 0; }
.dk-table { border-collapse: collapse; width: 100%; table-layout: auto; font-size: 14px; }
.dk-table td { border: 1px solid rgba(22,22,26,.16); padding: 0; vertical-align: top; min-width: 90px; }
.dk-cell { padding: 6px 10px; min-height: 1.5em; line-height: 1.5; }
.dk-thr td { background: #f4f4f6; font-weight: 700; }
.dk-cell:focus { box-shadow: inset 0 0 0 2px #2f7cf6; }
.dk-tbar { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0 4px; }
.dk-tbar[hidden] { display: none; }
.dk-tb { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--dk-line); background: var(--surface, #fff); color: var(--ink, #0b0b0b); cursor: pointer; }
.dk-tb:hover { background: rgba(22,22,26,.06); }

/* the handle, comment count and who is writing, beside each part */
.dk-grip { position: absolute; left: -34px; top: 3px; width: 24px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: rgba(22,22,26,.4); cursor: pointer; opacity: 0; padding: 0; }
.dk-grip .jjs-ico { width: 15px; height: 15px; }
.dk-b:hover > .dk-grip, .dk-b:focus-within > .dk-grip, .dk-grip:focus-visible { opacity: 1; }
.dk-grip:hover { background: rgba(22,22,26,.07); color: var(--ink, #0b0b0b); }
.dk-cmb { position: absolute; right: -34px; top: 3px; display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 8px; background: #fff3dc; color: #8a5a00; font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 6px; cursor: pointer; }
.dk-cmb[hidden] { display: none; }
.dk-cmb .jjs-ico { width: 13px; height: 13px; }
.dk-hascm { background: rgba(255,196,0,.1); }
.dk-who { position: absolute; right: 0; top: -9px; background: #8e44ad; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; pointer-events: none; z-index: 2; }
.dk-who[hidden] { display: none; }
.dk-held { box-shadow: inset 2px 0 0 #8e44ad; background: rgba(142,68,173,.04); }
.dk-picked { background: var(--dk-hi); }
.dk-picking { caret-color: transparent; }
.dk-flash { animation: dkFlash 2.2s ease; }
@keyframes dkFlash { 0%, 40% { background: rgba(255,196,0,.28); } 100% { background: transparent; } }
.dk-dropping .dk-paper { box-shadow: 0 0 0 3px rgba(47,124,246,.45); }

/* menus */
.dk-pop { position: fixed; z-index: 1000; min-width: 210px; max-width: min(320px, calc(100vw - 16px)); max-height: min(380px, calc(100vh - 16px)); overflow-y: auto; background: var(--surface, #fff); border: 1px solid var(--panel-border, rgba(0,0,0,.1)); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.16); padding: 5px; display: flex; flex-direction: column; }
.dk-pop button { display: flex; align-items: center; gap: 9px; text-align: left; font: inherit; font-size: 13.5px; background: none; border: 0; padding: 7px 10px; border-radius: 7px; color: var(--ink, #0b0b0b); cursor: pointer; }
.dk-pop button .jjs-ico { width: 16px; height: 16px; flex: 0 0 auto; color: #55555c; }
.dk-pop button span { min-width: 0; display: flex; flex-direction: column; }
.dk-pop button small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.dk-pop button:hover:not(:disabled), .dk-pop button:focus-visible, .dk-pop button.kb { background: rgba(22,22,26,.07); outline: none; }
.dk-pop button.on { font-weight: 700; }
.dk-pop button:disabled { opacity: .4; cursor: default; }
.dk-pop button.danger, .dk-pop button.danger .jjs-ico { color: #c0392b; }
.dk-pop hr { border: 0; border-top: 1px solid var(--line, rgba(0,0,0,.09)); margin: 4px 0; }
.dk-pophead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px 2px; }
.dk-popnone { font-size: 13px; color: var(--muted); padding: 8px 10px; }
.dk-linkpop { padding: 10px; gap: 8px; width: 300px; }
.dk-linkpop input { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2, rgba(0,0,0,.16)); }

/* the side panel: comments and history */
.dk-side { position: sticky; top: 56px; max-height: calc(100vh - 72px); overflow-y: auto; background: var(--surface, #fff); border: 1px solid var(--dk-line); border-radius: 16px; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dk-side[hidden] { display: none; }
.dk-sidehead { display: flex; align-items: center; gap: 8px; }
.dk-sidehead b { font-size: 15px; }
.dk-cmseg .seg { width: 100%; }
.dk-cmseg .seg button { flex: 1 1 0; }
.dk-th { border: 1px solid var(--dk-line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface, #fff); }
.dk-th.done { opacity: .75; }
.dk-cmnew { border-color: #2f7cf6; box-shadow: 0 0 0 1px #2f7cf6; }
.dk-quote { display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px; color: #6b6b73; border: 0; border-left: 3px solid #f0b400; background: #fffaeb; padding: 4px 8px; border-radius: 0 6px 6px 0; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
div.dk-quote { cursor: default; }
.dk-quote.gone { text-decoration: line-through; cursor: default; }
.dk-cm { display: flex; flex-direction: column; gap: 3px; }
.dk-cmmeta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dk-cmmeta .tm-av { width: 24px; height: 24px; font-size: 10px; }
.dk-cmmeta b { font-size: 13px; }
.dk-cmmeta small { color: var(--muted); font-size: 11.5px; }
.dk-cmacts { margin-left: auto; display: flex; gap: 2px; }
.dk-cmtext { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; padding-left: 31px; }
.dk-throw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dk-throw .btn .jjs-ico { width: 13px; height: 13px; }
.dk-cmform { position: relative; display: flex; flex-direction: column; gap: 6px; }
.dk-cmform textarea { font: inherit; font-size: 13.5px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2, rgba(0,0,0,.16)); resize: vertical; min-height: 56px; }
.dk-cmform .fv-suggest { left: 0; width: 100%; bottom: calc(100% + 4px); }
.dk-cmrow { display: flex; justify-content: flex-end; gap: 6px; }
.dk-cmonly { display: flex; align-items: center; gap: 4px; }
.dk-none { margin: 4px 0; }
.dk-hsave { display: flex; gap: 6px; }
.dk-hsave input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line2, rgba(0,0,0,.16)); }
.dk-hline { display: flex; align-items: center; gap: 4px; }
.dk-hrow { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left; font: inherit; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink, #0b0b0b); }
.dk-hrow b { font-size: 13.5px; }
.dk-hrow small { color: var(--muted); font-size: 12px; }
.dk-hrow:hover { background: rgba(22,22,26,.05); }
.dk-hrow.on { background: var(--dk-hi); border-color: rgba(47,124,246,.35); }

/* an older version, read only */
.dk-static { font-size: 15.5px; line-height: 1.65; }
.dk-static h1 { font-size: 28px; } .dk-static h2 { font-size: 22px; } .dk-static h3 { font-size: 18px; }
.dk-static blockquote { border-left: 3px solid rgba(22,22,26,.25); margin: 0; padding-left: 14px; color: #4a4a52; }
.dk-static pre { background: #f4f4f6; border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; font-size: 13.5px; }
.dk-static table { border-collapse: collapse; width: 100%; font-size: 14px; }
.dk-static td, .dk-static th { border: 1px solid rgba(22,22,26,.16); padding: 6px 10px; text-align: left; vertical-align: top; }
.dk-static th { background: #f4f4f6; }
.dk-static img { max-width: 100%; border-radius: 10px; }
.dk-static figure { margin: 8px 0; } .dk-static figcaption { font-size: 13px; color: #6b6b73; text-align: center; }
.dk-s-todo { display: flex; gap: 8px; } .dk-s-todo.done span + span { text-decoration: line-through; color: rgba(22,22,26,.45); }

/* the Docs list */
.dk-ic { background: #2f7cf6; }
.pill.dk-new { background: #2f7cf6; color: #fff; border-color: #2f7cf6; }

@media (max-width: 1100px) {
  .dk-sideon .dk-wrap { grid-template-columns: minmax(0, 1fr); }
  .dk-side { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); max-height: none; border-radius: 0; box-shadow: -16px 0 40px rgba(0,0,0,.14); padding-bottom: 90px; }
}
@media (max-width: 720px) {
  .dk-title { font-size: 24px; }
  .dk-paper { padding: 16px 16px 4px 28px; border-radius: 12px; }
  .dk-grip { left: -26px; width: 22px; opacity: .55; }
  .dk-cmb { right: 0; top: -10px; }
  .dk-acts .btn span { display: none; }
  .dk-acts { margin-left: 0; }
  .dk-metarow { gap: 8px; }
  .dk-body { font-size: 16px; }
  .dk-tail { height: 140px; }
  .dk-b[data-ind="1"] { margin-left: 18px; } .dk-b[data-ind="2"] { margin-left: 36px; } .dk-b[data-ind="3"] { margin-left: 54px; }
}
@media print {
  .dk-bar, .dk-side, .dk-grip, .dk-cmb, .dk-who, .dk-acts, .dk-tbar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .dk-flash { animation: none; background: rgba(255,196,0,.2); } }
