/* CLAY DOCS (lib/docs.js). Light, Inter, the landing's tokens (public/hosting.css): ink #111, the
   clay accent for the handwritten bits, white cards on a warm paper, one shadow. Three columns on a
   desk (the sidebar, the page, "On this page"), one on a phone with the sidebar sliding in. */
@font-face { font-family: Inter; src: url(/fonts/Inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
:root {
  --ink: #111; --ink-2: #333; --grey: #5f5f5f; --grey-2: #8a8a8a; --line: #e9e6e2; --paper: #faf9f7; --card: #fff;
  --clay: #c87f5e; --clay-text: #a35a39; --clay-soft: #f6ece6; --ok: #16a34a;
  --r: 18px; --r-s: 12px; --shadow: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px -12px rgba(17,17,17,.12);
  --curve: cubic-bezier(.32,.72,0,1); --side: 264px; --toc: 220px; --bar: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 20px); }
body.dc { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { flex: none; }
kbd { font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--grey-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: #fff; }

/* ── the bar ── */
.dc-bar { position: sticky; top: 0; z-index: 40; height: var(--bar); background: rgba(250,249,247,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.dc-bar-in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.dc-mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.dc-mark-docs { text-decoration: none; color: var(--grey); font-weight: 500; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); }
.dc-search-top { margin-left: 18px; display: inline-flex; align-items: center; gap: 10px; height: 40px; width: min(340px, 34vw); padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--grey-2); font: inherit; font-size: 14.5px; cursor: pointer; text-align: left; }
.dc-search-top span { flex: 1; }
.dc-search-top svg, .dc-search-btn svg, .dc-search-big svg { width: 17px; height: 17px; }
.dc-bar-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.dc-link { text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 12px; border-radius: 999px; color: var(--ink-2); }
.dc-link:hover { background: rgba(17,17,17,.05); }
.dc-cta { text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; }
.dc-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--ink); place-items: center; padding: 0; }
.dc-burger svg { width: 22px; height: 22px; }

/* ── three columns ── */
.dc-wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); gap: 48px; }
.dc-home { grid-template-columns: var(--side) minmax(0, 1fr); }

/* the sidebar */
.dc-side { position: sticky; top: var(--bar); align-self: start; max-height: calc(100vh - var(--bar)); overflow-y: auto; padding: 28px 4px 40px 0; scrollbar-width: thin; }
.dc-search-btn { width: 100%; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--grey-2); font: inherit; font-size: 14.5px; cursor: pointer; margin-bottom: 22px; text-align: left; }
.dc-search-btn span { flex: 1; }
.dc-group { margin-bottom: 22px; }
.dc-group p { margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }
.dc-group a { display: block; text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; transition: background .15s; }
.dc-group a:hover { background: rgba(17,17,17,.045); }
.dc-group a[aria-current] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }

/* the page */
.dc-main { min-width: 0; padding: 32px 0 96px; }
.dc-crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--grey-2); margin: 0 0 14px; }
.dc-crumb a { text-decoration: none; }
.dc-crumb a:hover { color: var(--ink); }
.dc-crumb svg { width: 14px; height: 14px; }
.dc-art { max-width: 760px; }
.dc-eyebrow { margin: 0 0 8px; color: var(--clay-text); font-weight: 600; font-size: 15px; }
.dc-art h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.dc-lead { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--grey); max-width: 62ch; }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--grey-2); }
.dc-meta > span { margin-right: 6px; }
.dc-mini { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.dc-mini:hover { border-color: #d6d2cd; }
.dc-mini svg { width: 15px; height: 15px; }
.dc-art h2 { position: relative; margin: 44px 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.dc-hash { position: absolute; left: -24px; top: 0; text-decoration: none; color: var(--grey-2); opacity: 0; transition: opacity .15s; }
.dc-art h2:hover .dc-hash { opacity: 1; }
.dc-art > p { margin: 0 0 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.dc-art p b, .dc-art li b { color: var(--ink); font-weight: 650; }
.dc-art code { font: 500 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1eeea; border-radius: 6px; padding: 2px 6px; }
.dc-art a:not([class]) { text-decoration: underline; text-decoration-color: rgba(17,17,17,.25); text-underline-offset: 3px; }

.dc-steps { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.dc-steps li > div, .dc-csteps li > div { min-width: 0; }
.dc-steps li, .dc-csteps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.dc-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.dc-steps li > div > b, .dc-csteps li > div > b { display: block; font-size: 16.5px; letter-spacing: -.01em; margin-top: 3px; }
.dc-steps p, .dc-csteps p { margin: 4px 0 0; color: var(--grey); font-size: 15.5px; line-height: 1.55; }
.dc-list { margin: 8px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.dc-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.dc-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.dc-note { display: flex; gap: 12px; margin: 20px 0 24px; padding: 16px 18px; border-radius: var(--r); background: var(--clay-soft); border: 1px solid rgba(200,127,94,.22); }
.dc-note svg { width: 20px; height: 20px; color: var(--clay-text); margin-top: 2px; }
.dc-note p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* something to say to your AI */
.dc-prompt { margin: 18px 0 24px; border-radius: var(--r); background: #0d0d0e; color: #fff; padding: 18px 18px 14px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); }
.dc-prompt p { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.92); }
.dc-pacts { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-pacts .dc-copy, .dc-ai { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.dc-pacts .dc-copy { background: #fff; color: var(--ink); border-color: #fff; }
.dc-pacts svg, .dc-ai svg { width: 16px; height: 16px; }
.dc-copy.did { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }

.dc-go { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.dc-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.dc-btn svg { width: 16px; height: 16px; transition: transform .25s var(--curve); }
.dc-btn:hover svg { transform: translateX(3px); }

.dc-faq { display: grid; gap: 10px; margin: 8px 0 28px; }
.dc-faq details { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 0 20px; }
.dc-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 16.5px; }
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary svg { width: 18px; height: 18px; color: var(--grey-2); transition: transform .3s var(--curve); }
.dc-faq details[open] summary svg { transform: rotate(180deg); }
.dc-faq details p { margin: 0 0 18px; color: var(--grey); line-height: 1.65; }

/* cards: the index and "From here" */
.dc-lbl { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); margin: 0 0 12px; }
.dc-next { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.dc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dc-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); transition: transform .3s var(--curve), box-shadow .3s; }
.dc-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 16px 32px -16px rgba(17,17,17,.2); }
.dc-card i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--paper); margin-bottom: 8px; font-style: normal; color: var(--ink); }
.dc-card i svg { width: 19px; height: 19px; }
.dc-card b { font-size: 16px; letter-spacing: -.01em; }
.dc-card span { color: var(--grey); font-size: 14px; line-height: 1.5; }
.dc-home .dc-art { margin-bottom: 8px; }
.dc-sec { margin: 40px 0 0; }
.dc-search-big { margin-top: 26px; display: flex; align-items: center; gap: 12px; width: min(560px, 100%); height: 54px; padding: 0 12px 0 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--grey-2); font: inherit; font-size: 16px; cursor: pointer; box-shadow: var(--shadow); text-align: left; }
.dc-search-big span { flex: 1; }

.dc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin-top: 40px; }
.dc-pn a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 600; background: #fff; }
.dc-pn a.r { text-align: right; grid-column: 2; }
.dc-pn a span { font-size: 13px; color: var(--grey-2); font-weight: 500; }

/* on this page */
.dc-toc { position: sticky; top: var(--bar); align-self: start; padding: 92px 0 40px; max-height: calc(100vh - var(--bar)); overflow-y: auto; }
.dc-toc p { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }
.dc-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--grey); font-size: 13.5px; line-height: 1.4; transition: color .15s, border-color .15s; }
.dc-toc a:hover, .dc-toc a.on { color: var(--ink); border-color: var(--ink); }
.dc-ai-note { display: flex; gap: 8px; margin-top: 26px; padding: 12px; border-radius: var(--r-s); background: #fff; box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.5; color: var(--grey); }
.dc-ai-note svg { width: 16px; height: 16px; color: var(--clay); margin-top: 1px; }

/* ── the real elements ── */
.dc-live { margin: 20px 0 28px; }
.dc-dim { color: var(--grey-2); font-size: 14px; margin: 8px 0 0; }
.dc-code { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 6px 6px 14px; margin: 8px 0; }
.dc-code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none !important; padding: 0 !important; font-size: 14px !important; scrollbar-width: none; }
.dc-code .dc-copy { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dc-seg { display: inline-flex; gap: 4px; padding: 4px; margin: 16px 0 12px; border-radius: 999px; background: #efece8; }
.dc-seg button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; color: var(--grey); cursor: pointer; }
.dc-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17,17,17,.1); }
.dc-csteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dc-csteps a { text-decoration: underline; text-underline-offset: 3px; }
.dc-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dc-plan { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); border: 1.5px solid transparent; }
.dc-plan.on { border-color: var(--ink); }
.dc-plan > b { font-size: 17px; }
.dc-price { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 12px; }
.dc-price span { font-size: 13px; font-weight: 500; color: var(--grey-2); letter-spacing: 0; }
.dc-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dc-plan li { display: flex; gap: 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.dc-plan li svg { width: 15px; height: 15px; color: var(--ok); margin-top: 2px; }
.dc-types { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-table { overflow-x: auto; margin-top: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.dc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.dc-table th, .dc-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); }
.dc-table thead th { border-top: 0; font-size: 13px; color: var(--grey); }
.dc-caps h3 { margin: 30px 0 10px; font-size: 19px; letter-spacing: -.015em; }
.dc-caps dl { margin: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.dc-caps dt { padding: 14px 18px 2px; font-weight: 650; font-size: 15px; border-top: 1px solid var(--line); }
.dc-caps dt:first-child { border-top: 0; }
.dc-caps dd { margin: 0; padding: 0 18px 14px; color: var(--grey); font-size: 14.5px; line-height: 1.55; }
.dc-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.dc-tags i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--grey); }
.dc-tools .tl-sheet { margin: 0; }

/* ── search ── */
.dc-find { border: 0; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 640px); border-radius: 20px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.35); background: #fff; color: var(--ink); overflow: hidden; margin: 10vh auto auto; }
.dc-find::backdrop { background: rgba(10,10,12,.32); backdrop-filter: blur(3px); }
.dc-find-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dc-find-in svg { width: 20px; height: 20px; color: var(--grey-2); }
.dc-find input { flex: 1; min-width: 0; border: 0; outline: 0; height: 58px; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.dc-hits { overflow-y: auto; max-height: calc(min(70vh, 640px) - 60px); padding: 8px; }
.dc-hits a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.dc-hits a.on, .dc-hits a:hover { background: var(--paper); }
.dc-hits b { display: block; font-size: 15.5px; }
.dc-hits small { color: var(--grey-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dc-hits span { display: block; color: var(--grey); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.dc-hits mark { background: var(--clay-soft); color: inherit; border-radius: 3px; }
.dc-none { padding: 22px; margin: 0; color: var(--grey); text-align: center; }

/* ── the foot ── */
.dc-foot { border-top: 1px solid var(--line); }
.dc-foot-in { max-width: 1440px; margin: 0 auto; padding: 22px 24px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--grey); }
.dc-foot a { text-decoration: none; }
.dc-foot a:hover { color: var(--ink); }
.dc-lang { margin-left: auto; }
.dc-lang select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; color: var(--ink); }
.dc-scrim { display: none; }

/* ── narrower ── */
@media (max-width: 1180px) {
  .dc-wrap { grid-template-columns: var(--side) minmax(0, 1fr); }
  .dc-toc { display: none; }
}
@media (max-width: 900px) {
  :root { --bar: 58px; }
  .dc-bar-in { padding: 0 12px 0 6px; gap: 6px; }
  .dc-burger { display: grid; }
  .dc-mark-docs { padding-left: 10px; }
  .dc-search-top { margin-left: auto; width: 40px; padding: 0; justify-content: center; border: 0; background: transparent; color: var(--ink); }
  .dc-search-top span, .dc-search-top kbd { display: none; }
  .dc-search-top svg { width: 21px; height: 21px; }
  .dc-bar-r { margin-left: 0; }
  .dc-bar-r .dc-link { display: none; }
  .dc-cta { padding: 9px 14px; font-size: 14px; }
  .dc-mark-docs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .dc-wrap, .dc-home { display: block; padding: 0 16px; }
  .dc-side { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; background: var(--paper); padding: 20px 14px 40px; transform: translateX(-104%); transition: transform .4s var(--curve); box-shadow: 0 0 60px rgba(0,0,0,.2); }
  body.side-open .dc-side { transform: none; }
  .dc-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10,10,12,.3); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.side-open .dc-scrim { opacity: 1; pointer-events: auto; }
  .dc-main { padding: 22px 0 72px; }
  .dc-lead { font-size: 17px; }
  .dc-art h2 { font-size: 22px; margin-top: 36px; }
  .dc-hash { display: none; }
  .dc-steps li, .dc-csteps li { padding: 16px; gap: 12px; grid-template-columns: 30px 1fr; }
  .dc-n { width: 28px; height: 28px; }
  .dc-pn { grid-template-columns: 1fr; }
  .dc-pn a.r { grid-column: auto; }
  .dc-cards { grid-template-columns: 1fr; }
  .dc-lang { margin-left: 0; width: 100%; }
  .dc-find { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 420px) { .dc-mark-docs { display: none; } }
