/* AnimSpark docs — the site's tokens, fonts and buttons (site.css) with a docs layout on top:
 * top bar · grouped sidebar (a drawer under 960 px) · a 720 px reading column · "On this page" on wide screens.
 * Everything here is prefixed d- so nothing leaks into or out of the marketing pages. */

.d-body { --top: 60px; --side: 264px; --toc: 224px; --col: 720px; }
html:has(.d-body) { scroll-padding-top: calc(var(--top, 60px) + 20px); }
.d-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 14px; }
.d-skip:focus { top: 10px; }

/* ── top bar ── */
.d-top { position: sticky; top: 0; z-index: 60; height: var(--top); background: rgba(252, 252, 252, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.d-top-in { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 10px; }
.d-logo { flex: none; }
.d-docs-tag { flex: none; margin-left: 2px; padding: 4px 8px; border-radius: 7px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .15s, background .15s; }
.d-docs-tag:hover { color: var(--ink); background: rgba(0, 0, 0, .035); }
.d-search-btn { display: flex; align-items: center; gap: 9px; height: 36px; width: min(340px, 100%); margin: 0 auto 0 28px; padding: 0 8px 0 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .03); color: var(--muted); font: 400 14px/1 var(--sans); cursor: pointer; transition: box-shadow .15s; }
.d-search-btn:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .24), 0 1px 2px rgba(0, 0, 0, .05); }
.d-search-btn svg, .d-search-icon svg, .d-search-in svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.d-search-ph { flex: 1; text-align: left; }
.d-search-k { margin-left: auto; }
.d-top-links { display: flex; align-items: center; gap: 2px; }
.d-top-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 8px; font: 500 14px/1 var(--sans); color: var(--dim); transition: color .15s, background .15s; }
.d-top-links a:hover { color: var(--ink); background: rgba(0, 0, 0, .045); }
.d-top-links .d-gh { width: 34px; padding: 0; justify-content: center; }
.d-top-cta { display: flex; flex: none; align-items: center; gap: 8px; margin-left: 6px; }
.d-top-cta .btn svg, .d-side-foot .btn svg { flex: none; }
.d-top-cta .btn { height: 34px; padding: 0 13px; border-radius: 9px; font-size: 14px; }
.d-search-icon, .d-menu-btn { display: none; width: 38px; height: 38px; flex: none; place-items: center; border: 0; background: none; border-radius: 9px; color: var(--ink); cursor: pointer; }
.d-search-icon:hover, .d-menu-btn:hover { background: rgba(0, 0, 0, .045); }
.d-menu-btn span { display: block; width: 16px; height: 1.5px; margin: 2.5px auto; background: var(--ink); border-radius: 1px; transition: transform .22s var(--ease), opacity .15s; }
.d-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.d-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.d-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── shell ── */
.d-shell { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.d-side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); overflow-y: auto; padding: 26px 16px 40px 24px; border-right: 1px solid var(--line); overscroll-behavior: contain; scrollbar-width: thin; }
.d-nav-g + .d-nav-g { margin-top: 22px; }
.d-nav-h { margin: 0 0 6px; padding: 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.d-nav ul { list-style: none; margin: 0; padding: 0; }
.d-nav a { position: relative; display: block; padding: 6px 10px; border-radius: 8px; font: 450 14px/1.35 var(--sans); color: var(--dim); transition: color .12s, background .12s; }
.d-nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .035); }
.d-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: rgba(31, 138, 134, .08); }
.d-nav a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2.5px; border-radius: 2px; background: var(--tl-accent); }
.d-side-foot { display: none; }
.d-scrim { display: none; }

.d-main { display: grid; grid-template-columns: minmax(0, var(--col)) var(--toc); justify-content: center; gap: 56px; padding: 44px 40px 0; min-width: 0; }
.d-doc { min-width: 0; padding-bottom: 72px; }

/* ── the page ── */
.d-eyebrow { margin: 0 0 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tl-accent); }
.d-doc h1 { margin: 0; font: 600 clamp(30px, 3.4vw, 40px)/1.1 var(--sans); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.d-lede { margin: 14px 0 0; font-size: 18px; line-height: 1.55; letter-spacing: -.012em; color: var(--dim); text-wrap: pretty; }
.d-prose { margin-top: 30px; font-size: 16px; line-height: 1.72; color: var(--text); }
.d-prose > :first-child { margin-top: 0; }
.d-prose p { margin: 0 0 18px; text-wrap: pretty; }
.d-prose h2 { margin: 52px 0 14px; font: 600 24px/1.25 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.d-prose h3 { margin: 34px 0 10px; font: 600 18px/1.35 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.d-prose h4 { margin: 26px 0 8px; font: 600 15.5px/1.4 var(--sans); color: var(--ink); }
.d-prose h2, .d-prose h3, .d-prose h4 { position: relative; scroll-margin-top: calc(var(--top) + 20px); }
.d-anchor { position: absolute; left: -22px; top: 0; width: 18px; color: var(--faint); font-weight: 500; opacity: 0; transition: opacity .15s; }
.d-prose h2:hover .d-anchor, .d-prose h3:hover .d-anchor, .d-anchor:focus { opacity: 1; }
.d-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(31, 138, 134, .45); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.d-prose a:hover { text-decoration-color: var(--tl-accent); }
.d-prose strong { font-weight: 600; color: var(--ink); }
.d-prose ul, .d-prose ol { margin: 0 0 18px; padding-left: 22px; }
.d-prose li { margin: 5px 0; padding-left: 3px; }
.d-prose li > ul, .d-prose li > ol { margin: 6px 0 4px; }
.d-prose li > p { margin: 0 0 8px; }
.d-prose ul > li::marker { color: var(--faint); }
.d-prose ol > li::marker { color: var(--muted); font: 500 14px var(--mono); }
.d-prose code { padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .05); font: 500 .86em/1 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.d-prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

/* exact UI labels — a small chip that reads as a button name */
.d-ui { display: inline-block; padding: 0 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: 550 .9em/1.6 var(--sans); letter-spacing: -.005em; color: var(--ink); white-space: nowrap; }
/* keyboard keys */
.d-keys { display: inline-flex; gap: 3px; vertical-align: 1px; }
kbd { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 var(--line-2); font: 500 11.5px/1 var(--mono); color: var(--dim); }

/* callouts */
.d-callout { display: flex; gap: 12px; margin: 24px 0; padding: 14px 16px; border-radius: 12px; background: var(--cb); box-shadow: inset 0 0 0 1px var(--cl); }
.d-callout-i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--cc); }
.d-callout-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-callout-b { min-width: 0; font-size: 15px; line-height: 1.62; }
.d-callout-b > :last-child { margin-bottom: 0; }
.d-callout-b p { margin: 0 0 8px; }
.d-callout-t { font-weight: 600; color: var(--ink); margin-bottom: 2px !important; }
.d-note { --cc: var(--tl-video); --cb: rgba(83, 133, 189, .06); --cl: rgba(83, 133, 189, .2); }
.d-tip { --cc: var(--tl-accent); --cb: rgba(31, 138, 134, .06); --cl: rgba(31, 138, 134, .2); }
.d-warning { --cc: #b26a00; --cb: rgba(214, 140, 20, .07); --cl: rgba(214, 140, 20, .26); }

/* steps */
.d-steps { list-style: none; counter-reset: step; margin: 28px 0; padding: 0 !important; }
.d-steps > li { position: relative; counter-increment: step; margin: 0; padding: 0 0 26px 44px !important; }
.d-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px/1 var(--mono); color: var(--ink); }
.d-steps > li::after { content: ''; position: absolute; left: 13.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line-2); }
.d-steps > li:last-child { padding-bottom: 4px !important; }
.d-steps > li:last-child::after { display: none; }
.d-steps > li > h3 { margin: 2px 0 8px; font-size: 17px; }
.d-steps > li > :last-child { margin-bottom: 0; }

/* code */
.d-code { position: relative; margin: 20px 0 24px; border-radius: 12px; background: #16181c; color: #e8e8e6; overflow: hidden; }
.d-code-bar { display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: #9ba0a8; }
.d-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); tab-size: 2; }
.d-code pre code { padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
.d-copy { position: absolute; right: 8px; top: 5px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .06); color: #b9bdc4; font: 500 12px/1 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.d-code:not(:has(.d-code-bar)) .d-copy { top: 9px; }
.d-copy:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.d-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.d-copy.done { color: #7fd6b0; }

/* tables */
.d-table { margin: 20px 0 26px; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.d-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.d-table th { text-align: left; padding: 10px 14px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.d-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table td:first-child { font-weight: 550; color: var(--ink); white-space: nowrap; }

/* screenshots */
.d-fig { margin: 26px 0 30px; }
.d-fig img { width: 100%; height: auto; border-radius: 12px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 12px 32px -18px rgba(0, 0, 0, .28); }
.d-fig-narrow img { width: auto; max-width: min(100%, 420px); }
.d-fig figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* the walkthrough video */
.d-video { margin: 28px 0 8px; }
.d-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0c0f; box-shadow: 0 0 0 1px var(--line), 0 16px 40px -22px rgba(0, 0, 0, .45); }
.d-video-frame video, .d-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #0b0c0f; }
.d-video-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, .3); transition: transform .2s var(--out); }
.d-video-play:hover { transform: scale(1.06); }
.d-video-play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.d-video.playing .d-video-play { display: none; }
.d-video figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.d-video-t { font-weight: 600; font-size: 15px; color: var(--ink); }
.d-video-d { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.d-chapters { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; margin: 10px 0 0; padding: 0; }
.d-chapters button { display: flex; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font: 400 14px/1.4 var(--sans); color: var(--dim); cursor: pointer; }
.d-chapters button:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
.d-chapters button span { flex: none; font: 500 12.5px/1.6 var(--mono); color: var(--tl-accent); }

/* cards (docs home) */
.d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 30px; }
.d-prose a.d-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 17px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .03); text-decoration: none; transition: box-shadow .18s, transform .18s var(--out); }
.d-prose a.d-card:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 10px 26px -16px rgba(0, 0, 0, .3); transform: translateY(-1px); }
.d-card-t { display: flex; align-items: center; gap: 8px; font: 600 16px/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.d-card-t svg { width: 15px; height: 15px; margin-left: auto; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s var(--out), stroke .18s; }
.d-card:hover .d-card-t svg { transform: translateX(2px); stroke: var(--ink); }
.d-card-d { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* details (FAQ) */
.d-details { margin: 0; border-bottom: 1px solid var(--line); }
.d-prose > h2 + .d-details, .d-prose > .d-details:first-child { border-top: 1px solid var(--line); }
.d-prose > .d-details + h2 { margin-top: 44px; }
.d-details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; font: 600 16px/1.4 var(--sans); letter-spacing: -.012em; color: var(--ink); cursor: pointer; }
.d-details summary::-webkit-details-marker { display: none; }
.d-details summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.d-details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.d-details > :not(summary) { margin-left: 2px; margin-right: 2px; }
.d-details[open] > :last-child { margin-bottom: 18px; }

/* page footer */
.d-doc-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.d-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13.5px; color: var(--muted); }
.d-help a:hover { color: var(--ink); }
.d-help a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }
.d-pns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.d-pn { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; transition: box-shadow .15s; min-width: 0; }
.d-pn:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.d-pn-next { text-align: right; grid-column: 2; }
.d-pn-k { font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.d-pn-t { font: 600 15px/1.35 var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-pn-prev .d-pn-t::before { content: '← '; color: var(--faint); }
.d-pn-next .d-pn-t::after { content: ' →'; color: var(--faint); }
.d-site-foot { border-top: 1px solid var(--line); }
.d-site-foot > div { max-width: 1480px; margin: 0 auto; padding: 22px 24px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.d-site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.d-site-foot nav a:hover { color: var(--ink); }

/* on this page */
.d-toc { position: sticky; top: calc(var(--top) + 44px); align-self: start; max-height: calc(100vh - var(--top) - 70px); overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; }
.d-toc-h { margin: 0 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.d-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.d-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 13px; border-left: 1.5px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: color .12s, border-color .12s; }
.d-toc-3 a { padding-left: 25px; font-size: 13px; }
.d-toc a:hover { color: var(--ink); }
.d-toc a.active { color: var(--ink); font-weight: 550; border-left-color: var(--tl-accent); }

/* buttons inside prose keep the site's button look */
.d-prose a.btn { text-decoration: none; }
.d-prose a.btn-ink { color: #fff; }

/* docs home */
.d-home .d-doc h1 { font-size: clamp(34px, 4.2vw, 48px); letter-spacing: -.04em; }
.d-home .d-lede { font-size: 19px; }
.d-prose a.d-watch { display: flex; align-items: center; gap: 16px; margin: 8px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--night); color: var(--on-night-dim); text-decoration: none; box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .6); transition: transform .18s var(--out); }
.d-prose a.d-watch:hover { transform: translateY(-1px); }
.d-watch p { margin: 0 !important; font-size: 14.5px; line-height: 1.5; }
.d-watch strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--on-night); }
.d-watch-go { margin-left: auto; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--ink); font-size: 17px; }

/* ── search dialog ── */
.d-search { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(12, 12, 14, .32); }
.d-search[hidden] { display: none; }
.d-search-box { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; animation: d-pop .16s var(--out); }
@keyframes d-pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.d-search-in { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.d-search-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 16.5px/1 var(--sans); color: var(--ink); }
.d-search-in input::-webkit-search-cancel-button { display: none; }
.d-search-res { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.d-search-res:empty { display: none; }
.d-search-res a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.d-search-res a[aria-selected="true"] { background: rgba(31, 138, 134, .08); }
.d-sr-p { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.d-sr-h { display: block; margin-top: 2px; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.d-sr-t { display: -webkit-box; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-search-res mark { background: rgba(31, 138, 134, .16); color: inherit; border-radius: 3px; padding: 0 1px; }
.d-search-empty { margin: 0; padding: 22px 18px 26px; font-size: 14.5px; color: var(--muted); }
.d-search-empty[hidden] { display: none; }

/* ── responsive ── */
@media (max-width: 1240px) {
  .d-main { grid-template-columns: minmax(0, var(--col)); }
  .d-toc { display: none; }
  .d-top-links a:not(.d-gh) { display: none; }
}
@media (max-width: 960px) {
  .d-shell { grid-template-columns: minmax(0, 1fr); }
  .d-menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-left: -8px; }
  .d-side { position: fixed; top: var(--top); left: 0; bottom: 0; z-index: 58; width: min(320px, 86vw); height: auto; background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-102%); visibility: hidden; transition: transform .26s var(--out), visibility 0s .26s; padding-bottom: 28px; }
  .d-side.open { transform: none; visibility: visible; transition: transform .26s var(--out); box-shadow: 20px 0 50px -30px rgba(0, 0, 0, .35); }
  .d-scrim { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 57; background: rgba(12, 12, 14, .22); }
  .d-scrim[hidden] { display: none; }
  .d-main { padding: 32px 32px 0; }
  .d-search-btn { margin-left: 18px; width: min(300px, 100%); }
  .d-side-foot { display: grid; gap: 8px; margin-top: 26px; padding: 18px 10px 0; border-top: 1px solid var(--line); }
  .d-side-foot > a:not(.btn) { font-size: 14.5px; color: var(--dim); padding: 3px 0; }
  .d-side-foot .btn { height: 40px; margin-top: 4px; }
}
@media (max-width: 760px) {
  .d-top-in { padding: 0 14px 0 16px; gap: 6px; }
  .d-top-links, .d-top-cta, .d-search-btn { display: none; }
  .d-search-icon { display: grid; margin-left: auto; }
  .d-main { padding: 26px 16px 0; }
  .d-cards { grid-template-columns: minmax(0, 1fr); }
  .d-pns { grid-template-columns: minmax(0, 1fr); }
  .d-pn-next { grid-column: 1; }
  .d-prose { font-size: 15.5px; }
  .d-prose h2 { margin-top: 42px; font-size: 21.5px; }
  .d-anchor { display: none; }
  .d-lede { font-size: 16.5px; }
  .d-code pre { font-size: 12.5px; }
  .d-steps > li { padding-left: 38px !important; }
  .d-search { padding-top: 8px; }
  .d-search-box { max-height: calc(100dvh - 16px); }
  .d-watch img { width: 96px; }
  .d-site-foot > div { padding: 20px 16px 26px; }
}
@media (prefers-reduced-motion: reduce) { .d-side, .d-search-box, .d-card, .d-video-play { transition: none; animation: none; } }
