/* docs-v4.css: /plugins/ and the plugin docs on the v4 light system (2026-11-13).
   Loaded after shell.css (tokens --sv-*). Replaces pf/docs/glass/space/amb/read for these pages; the markup
   is still what zerobot-ops\bbb-docs\gen-docs-frost.js writes, moved over by tools/shell/plugins-v4.cjs.
   Per plugin colour: --a on the hero, doc and get sections (bright, so only marks and tints use it). */

.dp-page { --dp-r: 24px; --dp-r2: 16px; --dp-code: #0f1115; }
.dp-page main { display: block; }
.dp-page h1, .dp-page h2, .dp-page h3 { letter-spacing: 0; }
.dp-page code { font: 500 .88em/1.5 'IBM Plex Mono', ui-monospace, Consolas, monospace; background: #f1f2f4; color: var(--sv-ink); border-radius: 6px; padding: .08em .38em; overflow-wrap: anywhere; }
.dp-page pre { margin: 0; overflow: auto; font: 400 13px/1.6 'IBM Plex Mono', ui-monospace, Consolas, monospace; background: var(--dp-code); color: #e6e9ee; border-radius: var(--dp-r2); padding: 18px 20px; tab-size: 2; }
.dp-page pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.dp-page .mrise > span { display: inline; }
.dp-mute { color: var(--sv-mute); }
.dp-mono { font-family: var(--sv-num); }
:where(.dp-page) a { color: inherit; }
.dp-page [hidden] { display: none !important; }
html.lock, html.lock body { overflow: hidden; }

/* ---------- buttons ---------- */
.vbtn, .cbtn, .gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 500 15px/1.2 var(--sv-body); padding: 12px 20px; transition: background-color .45s var(--sv-ease), box-shadow .45s var(--sv-ease), transform .5s var(--sv-glide);
}
.vbtn { background: var(--sv-acc); color: #fff; }
.vbtn:hover { background: var(--sv-acc-h); }
.cbtn { background: #111827; color: #fff; }
.cbtn:hover { background: #000; }
.gbtn { background: #fff; color: var(--sv-ink); box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .12); }
.gbtn:hover, .gbtn:focus-visible { background: #f3f4f6; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .3); }
.vbtn:focus-visible { background: var(--sv-acc-h); }
.cbtn:focus-visible { background: #000; }
/* hover language 2026-11-13: an arrow at the end of a button slides 3 px right */
:is(.vbtn, .cbtn, .gbtn) svg:last-child { transition: transform var(--hv-t) var(--hv-ease); }
@media (hover: hover) { :is(.vbtn, .cbtn, .gbtn):hover svg:last-child { transform: translateX(3px); } }
:is(.vbtn, .cbtn, .gbtn):focus-visible svg:last-child { transform: translateX(3px); }
/* nothing bounces on a press (owner rule 2026-11-13): a tiny dim, no scale */
.vbtn:active, .cbtn:active, .gbtn:active, .rbtn:active { opacity: .86; }
.rbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: #fff; color: var(--sv-ink); box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .12); transition: box-shadow .4s, background-color .4s, transform .5s var(--sv-glide);
}
.rbtn:hover, .rbtn:focus-visible { background: #f3f4f6; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .35); }
.rbtn.ok:hover { background: #000; }
.rbtn.ok { background: #111827; color: #fff; }
.dp-btns, .dp-go, .dp-ilinks, .dp-page .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* item icons (Minecraft textures) */
.dp-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08); }
.dp-ic img { image-rendering: pixelated; width: 26px; height: 26px; }
.dp-ic--s { width: 34px; height: 34px; border-radius: 10px; background: #f3f4f6; box-shadow: none; }
.dp-ic--s img { width: 20px; height: 20px; }
.dp-ic--g { width: 40px; height: 40px; border-radius: 12px; }
.dp-ic--g img { width: 22px; height: 22px; }

/* section heads */
.dp-h2, .dp-ph, .dp-page .sec-h { margin: 0; font: 500 clamp(2.2rem, 4.2vw, 4.6rem)/1 var(--sv-display); color: var(--sv-ink); text-wrap: balance; }
.su-k, .goal-k, .dp-pk { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--sv-mute); }
.dp-media-l { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--sv-ink2); max-width: 42ch; }

/* ---------- overview hero ---------- */
.dp-ihero { min-height: clamp(460px, 62svh, 720px); }
.dp-ihero-row { display: grid; gap: 28px 64px; align-items: end; }
@media (min-width: 1024px) { .dp-ihero-row { grid-template-columns: auto minmax(0, 1fr); } .dp-ihero .sv-h1 { white-space: nowrap; } }
.dp-ihero-side { display: grid; gap: 22px; }
.dp-ihero-side .sv-lead { margin: 0; max-width: 54ch; }
.dp-ifacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dp-ifacts li { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.dp-ifacts b { font: 600 24px/1 var(--sv-num); color: var(--sv-ink); }
.dp-ifacts span { font-size: 13px; line-height: 1.35; color: var(--sv-mute); }
@media (max-width: 639px) { .dp-ifacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- overview: the shelf ---------- */
.dp-all { padding: 24px 0 0; }
.dp-isheet { max-width: 1760px; margin: 0 auto; padding-inline: var(--sv-pad); }
.dp-isheet > .goal-k { margin-top: 32px; }
.dp-isheet > .sec-h { margin-bottom: 28px; }
.dp-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -4px 12px; }
.dp-filter::-webkit-scrollbar { display: none; }
.dp-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 16px;
  font: 500 14px/1 var(--sv-body); background: #fff; color: var(--sv-ink2); box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08);
  transition: background-color .45s var(--sv-ease), color .45s var(--sv-ease);
}
.dp-chip img { image-rendering: pixelated; }
@media (hover: hover) { .dp-chip:not([aria-pressed="true"]):hover { background: #f3f4f6; color: var(--sv-ink); } }
.dp-chip:not([aria-pressed="true"]):focus-visible { background: #f3f4f6; color: var(--sv-ink); }
.dp-chip span { font: 500 12px/1 var(--sv-num); color: var(--sv-mute); }
.dp-chip[aria-pressed="true"] { background: #111827; color: #fff; box-shadow: none; }
.dp-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }
.dp-group { margin-top: 36px; }
.dp-group-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dp-group-h h2 { margin: 0; font: 500 clamp(1.8rem, 2.6vw, 2.8rem)/1.05 var(--sv-display); color: var(--sv-ink); }
.dp-count { margin-left: auto; font: 500 13px/1 var(--sv-num); color: var(--sv-mute); }
.dp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
/* desktop: the column count comes from the group size (plugins-v4.cjs sets --cols / --cols-w), so no row is left half empty */
@media (min-width: 1100px) { .dp-cards { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
@media (min-width: 1700px) { .dp-cards { grid-template-columns: repeat(var(--cols-w, var(--cols, 4)), minmax(0, 1fr)); } }
/* a group of two: wide cards lie down (picture left, text right) so they stay as low as the other rows */
@media (min-width: 1100px) {
  .dp-cards[style*="--cols:2;"] .dp-card { flex-direction: row; }
  .dp-cards[style*="--cols:2;"] .dp-card-pic { flex: 0 0 52%; aspect-ratio: 2 / 1; }
  .dp-cards[style*="--cols:2;"] .dp-card-b { padding: 22px 24px; justify-content: center; }
}
/* hover language 2026-11-13: hairline to the accent, the name gets the drawn underline, the cover zooms 2% in
   its clip; no shadow lift, no scale on the card */
.dp-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--hv-hair); transition: box-shadow var(--hv-t) var(--hv-ease); }
.dp-card-pic { position: relative; margin: 0; aspect-ratio: 2 / 1; background: #e5e7eb; overflow: hidden; }
.dp-card-pic .dp-soon { position: absolute; left: 12px; top: 12px; z-index: 1; }
.dp-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hv-ease); }
.dp-card-a, .dp-pn-n { background-image: linear-gradient(var(--hv), var(--hv)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 var(--hv-w); transition: background-size var(--hv-t) var(--hv-ease); }
.dp-pn-n { width: fit-content; }
.dp-card-a:focus-visible { outline: none; }
.dp-card:has(.dp-card-a:focus-visible) { box-shadow: 0 0 0 1.5px var(--hv), 0 0 0 5px rgba(45, 91, 117, .22); }
.dp-card:focus-within .dp-card-a { background-size: 100% var(--hv-w); }
@media (hover: hover) {
  .dp-card:hover, .dp-pn:hover { box-shadow: 0 0 0 1.5px var(--hv); }
  .dp-card:hover .dp-card-pic img { transform: scale(1.02); }
  .dp-card:hover .dp-card-a, .dp-pn:hover .dp-pn-n { background-size: 100% var(--hv-w); }
}
.dp-pn:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--hv), 0 0 0 5px rgba(45, 91, 117, .22); }
.dp-pn:focus-visible .dp-pn-n { background-size: 100% var(--hv-w); }
/* text links inside the plugin pages: the drawn underline; the ones in running text keep a quiet line at rest */
.dp-page main a:not([class]):not(.dp-toc a) { background-image: linear-gradient(var(--hv), var(--hv)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 var(--hv-w); transition: background-size var(--hv-t) var(--hv-ease), color var(--hv-t) var(--hv-ease); }
.dp-page main :is(.dp-sec, .dp-prose, .dp-bundle-c, .dp-small, dd, .rv) a:not([class]):not(.dp-toc a) { text-decoration: none; padding-bottom: 1px; background-image: linear-gradient(var(--hv), var(--hv)), linear-gradient(var(--hv-rest), var(--hv-rest)); background-size: 0 var(--hv-w), 100% 1px; }
@media (hover: hover) {
  .dp-page main a:not([class]):not(.dp-toc a):hover { background-size: 100% var(--hv-w); color: var(--hv); }
  .dp-page main :is(.dp-sec, .dp-prose, .dp-bundle-c, .dp-small, dd, .rv) a:not([class]):not(.dp-toc a):hover { background-size: 100% var(--hv-w), 100% 1px; }
}
.dp-page main a:not([class]):not(.dp-toc a):focus-visible { background-size: 100% var(--hv-w); color: var(--hv); }
.dp-page main :is(.dp-sec, .dp-prose, .dp-bundle-c, .dp-small, dd, .rv) a:not([class]):not(.dp-toc a):focus-visible { background-size: 100% var(--hv-w), 100% 1px; }
.dp-bundle--main { --hv: #9cc3dc; --hv-rest: rgba(255, 255, 255, .3); }
.dp-soon { display: inline-block; align-self: flex-start; background: #fff; color: var(--sv-ink); font-size: 12.5px; font-weight: 500; border-radius: 999px; padding: 5px 10px; }
.dp-card-b { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.dp-card-b h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--sv-ink); }
.dp-card-a { text-decoration: none; }
.dp-card-a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.dp-card-t { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--sv-ink2); }
.dp-card-m { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--sv-mute); }
.dp-card-m span:not([class]) { font-family: var(--sv-num); }
.dp-card-p { font-weight: 500; color: var(--sv-acc); }
.dp-card-soon { font-weight: 500; color: var(--sv-ink2); }
.dp-card-free { font-weight: 500; color: #15803d; }

/* ---------- overview: bundles + try + ZeroBot ---------- */
.dp-get { padding: clamp(56px, 7vw, 112px) 0 0; }
.dp-get > * { max-width: 1760px; margin-inline: auto; padding-inline: var(--sv-pad); }
.dp-bundles { margin-bottom: 24px; }
.dp-bundles > .dp-h2 { margin-bottom: 0; }
.dp-bundle-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.dp-bundle { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dp-bundle h3 { margin: 0; font: 500 26px/1.1 var(--sv-display); color: var(--sv-ink); }
.dp-bundle-c { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sv-ink2); flex: 1; }
.dp-bundle-c a { text-decoration: underline; text-decoration-color: #d1d5db; text-underline-offset: 3px; }
.dp-bundle-c a:hover { text-decoration-color: var(--sv-ink); }
.dp-bundle .vbtn, .dp-bundle .gbtn { align-self: flex-start; }
.dp-bundle--main { background: #111827; color: #fff; }
.dp-bundle--main h3 { color: #fff; }
.dp-bundle--main .dp-bundle-c { color: rgba(255, 255, 255, .72); }
.dp-bundle--main .dp-bundle-c a { text-decoration-color: rgba(255, 255, 255, .3); }
.dp-bundle--main .vbtn { background: #fff; color: #111827; }
@media (min-width: 1280px) { .dp-bundle-list { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }

.dp-get-in { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.dp-panel { background: #fff; border-radius: var(--dp-r); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dp-panel > * { margin: 0; }
.dp-panel .dp-pk { margin: 0; }
.dp-panel .dp-ph { font-size: clamp(1.9rem, 2.6vw, 2.8rem); }
.dp-panel p { font-size: 16px; line-height: 1.6; color: var(--sv-ink2); }
.dp-panel p a { text-decoration: underline; text-decoration-color: #d1d5db; text-underline-offset: 3px; }
.dp-panel .dp-small { font-size: 14px; color: var(--sv-mute); }
.dp-panel--quiet { background: rgba(255, 255, 255, .55); }
.dp-panel--buy { background: #111827; color: #fff; }
.dp-panel--buy .dp-ph { color: #fff; }
.dp-panel--buy .dp-pk, .dp-panel--buy .dp-small { color: rgba(255, 255, 255, .6); }
.dp-panel--buy p { color: rgba(255, 255, 255, .74); }
.dp-panel--buy p:not(.dp-btns) a { text-decoration-color: rgba(255, 255, 255, .35); color: #fff; }
.dp-panel--buy .vbtn { background: #fff; color: #111827; }
.dp-panel .dp-btns { padding-top: 2px; }
.dp-addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f3f4f6; border-radius: 16px; padding: 8px 8px 8px 18px; }
.dp-addr code { background: none; padding: 0; font-size: clamp(15px, 1.4vw, 19px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dp-why li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--sv-ink2); }
.dp-why li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--a, var(--sv-acc)); }
.dp-why--plain li::before { background: #cbd5e1; }

/* ---------- "Got an idea?": one compact row ---------- */
.dp-cta {
  width: calc(100% - 2 * var(--sv-pad)); max-width: calc(1760px - 2 * var(--sv-pad)); margin: clamp(40px, 5vw, 80px) auto 24px;
  background: #fff; border-radius: var(--dp-r); padding: clamp(24px, 2.6vw, 36px) clamp(22px, 3vw, 44px);
  display: grid; gap: 16px 40px; align-items: center;
}
.dp-cta > * { margin: 0; }
.dp-cta .sec-h { font-size: clamp(2.2rem, 3.6vw, 3.8rem); }
.dp-cta p { font-size: 16.5px; line-height: 1.6; color: var(--sv-ink2); max-width: 62ch; }
.dp-cta p a { text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 3px; }
.dp-cta .cbtn { justify-self: start; }
@media (min-width: 1024px) { .dp-cta { grid-template-columns: auto minmax(0, 1fr) auto auto; } .dp-cta .sec-h { white-space: nowrap; } }
@media (max-width: 639px) { .dp-cta { width: calc(100% - 16px); } }
/* ---------- plugin page hero ---------- */
.dp-hero { position: relative; overflow: hidden; background: var(--sv-ground); padding: 112px 0 clamp(32px, 4vw, 64px); }
.dp-hero > .sv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dp-bg { display: none; }
.dp-hero-in { position: relative; z-index: 1; max-width: 1760px; margin: 0 auto; padding-inline: var(--sv-pad); display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 1024px) { .dp-hero-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.dp-hcopy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.dp-hcopy > * { margin: 0; }
.dp-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--sv-mute); }
.dp-crumb a { text-decoration: none; transition: color .4s; }
.dp-crumb a:hover { color: var(--sv-ink); }
.dp-name { margin: 0; font: 500 clamp(3.2rem, 7vw, 8rem)/.95 var(--sv-display); color: var(--sv-ink); overflow-wrap: anywhere; }
.dp-t { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; color: var(--sv-ink2); max-width: 44ch; }
.dp-spec { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.dp-spec div { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 14px; }
.dp-spec dt { font-size: 12px; color: var(--sv-mute); margin: 0 0 3px; }
.dp-spec dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--sv-ink); }
.dp-cover { margin: 0; border-radius: var(--dp-r); overflow: hidden; background: #e5e7eb; aspect-ratio: 2 / 1; box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .35); }
.dp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- in game: heading column + the gallery ---------- */
.dp-media { max-width: 1760px; margin: 0 auto; padding: clamp(40px, 5vw, 80px) var(--sv-pad) 0; display: grid; gap: 24px 48px; }
/* desktop: the heading and the thumbnails share the left column, the big frame takes the right (.gal is display: contents) */
@media (min-width: 1024px) {
  .dp-media { grid-template-columns: minmax(260px, .42fr) minmax(0, 1.58fr); grid-template-rows: auto 1fr; grid-template-areas: 'head stage' 'ui stage'; row-gap: 28px; }
  .dp-media-head { grid-area: head; }
  .dp-media .dp-gal { display: contents; }
  .dp-media .gal-stage { grid-area: stage; align-self: start; }
  .dp-media .gal-ui { grid-area: ui; align-self: end; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'th th' 'n nav'; align-items: center; gap: 14px; }
  .dp-media .gal-thumbs { grid-area: th; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .dp-media .gal-thumbs:has(.gal-th:nth-child(7)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp-media .gal-th { width: auto; }
  .dp-media .gal-n { grid-area: n; }
  .dp-media .gal-nav { grid-area: nav; }
}
.dp-media-head > * { margin: 0; }
.dp-media .dp-h2 { font-size: clamp(2.2rem, 3.6vw, 4rem); }
.gal { width: 100%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gal-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--dp-r); overflow: hidden; background: #111315; touch-action: pan-y; cursor: pointer; user-select: none; isolation: isolate; outline-offset: 4px; }
.gal-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translate3d(calc(var(--dir, 1) * 2.2%), 0, 0) scale(1.015); transition: opacity .7s var(--sv-glide), transform .9s var(--sv-glide), visibility 0s linear .9s; }
.gal-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--sv-glide), transform .9s var(--sv-glide), visibility 0s; z-index: 1; }
.gal-bg { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; filter: blur(34px) brightness(.55) saturate(1.1); }
.gal-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.dp-zoom-a { position: absolute; inset: 0; cursor: zoom-in; }
.dp-clip { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--sv-ink); font-size: 12.5px; font-weight: 500; line-height: 1; }
.gal-ui { display: flex; align-items: center; gap: 12px; }
html:not(.js) .gal-ui { display: none; }
.gal-thumbs { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-th { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; border: 0; background: #e5e7eb; opacity: .55; transition: opacity .35s var(--sv-ease), box-shadow .35s var(--sv-ease); }
.gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-th:hover { opacity: .85; }
.gal-th[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827; }
.dp-th-v { position: relative; }
.dp-th-v::after { content: ''; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -5px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.gal-n { flex: none; margin: 0; font: 500 13px/1 var(--sv-num); color: var(--sv-mute); }
.gal-n b { color: var(--sv-ink); font-weight: 600; }
.gal-nav { flex: none; display: flex; gap: 8px; }
@media (max-width: 479px) { .gal-n { display: none; } .gal-th { width: 64px; } }

/* ---------- the docs: contents card + the text card ---------- */
.dp-doc { padding: clamp(40px, 5vw, 80px) 0 0; }
.dp-sheet { max-width: 1760px; margin: 0 auto; padding-inline: var(--sv-pad); display: grid; gap: 16px; }
@media (min-width: 1024px) { .dp-sheet { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; } }
@media (min-width: 1536px) { .dp-sheet { grid-template-columns: 280px minmax(0, 1fr); } }
.dp-toc { background: #fff; border-radius: var(--dp-r); padding: 10px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 72px; z-index: 5; }
.dp-toc::-webkit-scrollbar { display: none; }
.dp-toc a { flex: none; display: block; padding: 9px 14px; border-radius: 12px; font-size: 14.5px; color: var(--sv-ink2); text-decoration: none; transition: background-color .4s var(--sv-ease), color .4s var(--sv-ease); }
.dp-toc a:hover { background: #f3f4f6; color: var(--sv-ink); }
.dp-toc a.is-here { background: #f3f4f6; color: var(--sv-ink); font-weight: 500; box-shadow: inset 3px 0 0 var(--a, var(--sv-acc)); }
.dp-toc .dp-toc-buy { background: #111827; color: #fff; text-align: center; }
.dp-toc .dp-toc-buy:hover { background: #000; color: #fff; }
@media (min-width: 1024px) {
  .dp-toc { flex-direction: column; padding: 14px; top: 96px; overflow: visible; max-height: calc(100vh - 120px); overflow-y: auto; }
  .dp-toc .dp-toc-buy { margin-top: 10px; }
}
@media (max-width: 1023px) { .dp-toc { box-shadow: 0 8px 24px -16px rgba(17, 24, 39, .25); } .dp-toc a.is-here { box-shadow: none; } }

.dp-body { background: #fff; border-radius: var(--dp-r); padding: clamp(22px, 3.2vw, 56px); min-width: 0; color: var(--sv-ink2); font-size: 16.5px; line-height: 1.7; }
.dp-sec { scroll-margin-top: 100px; }
.dp-sec + .dp-sec { margin-top: clamp(40px, 4.5vw, 72px); padding-top: clamp(32px, 3.5vw, 56px); border-top: 1px solid var(--sv-hair); }
.dp-sec > h2 { margin: 0 0 14px; font: 500 clamp(2rem, 3.2vw, 3.4rem)/1.02 var(--sv-display); color: var(--sv-ink); }
.dp-sec h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--sv-ink); scroll-margin-top: 100px; }
.dp-sec p, .dp-sec ul, .dp-sec ol { margin: 0 0 14px; }
.dp-sec > p, .dp-prose > p, .dp-prose > ul, .dp-prose > ol, .dp-sec > ul { max-width: 78ch; }
.dp-sec a, .dp-prose a { color: var(--sv-ink); text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 3px; transition: text-decoration-color .4s; }
.dp-sec a:hover { text-decoration-color: var(--sv-ink); }
.dp-sub { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--sv-ink); max-width: 56ch; }
.dp-prose ul, .dp-prose ol, .dp-sec > ul { padding-left: 1.2em; }
.dp-prose li { margin: 0 0 6px; }
.dp-prose pre { margin: 10px 0 14px; }
.dp-prose strong { color: var(--sv-ink); font-weight: 600; }
.dp-mono-h { font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace !important; font-size: 15px !important; }
.dp-note { font-size: 14.5px; color: var(--sv-mute); background: #f7f7f8; border-radius: 12px; padding: 12px 14px; }

.dp-facts { margin: 16px 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.dp-facts div { background: #f5f6f7; border-radius: 14px; padding: 14px 16px; min-width: 0; }
.dp-facts dt { font-size: 12.5px; color: var(--sv-mute); margin: 0 0 4px; }
.dp-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sv-ink); overflow-wrap: anywhere; }

/* columns, not a grid: feature lists differ a lot in length, columns keep both sides filled */
.dp-feats { list-style: none; margin: 18px 0 0; padding: 0; columns: 2 380px; column-gap: 12px; }
.dp-feat { background: #f7f7f8; border-radius: 18px; padding: 22px 24px; min-width: 0; break-inside: avoid; margin: 0 0 12px; }
.dp-feat h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.dp-n { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: #111827; color: #fff; font: 600 12px/1 var(--sv-num); }
.dp-feat .dp-prose { font-size: 15.5px; line-height: 1.6; }
.dp-feat .dp-prose ul { margin: 0; }

.dp-steps { list-style: none; counter-reset: st; margin: 12px 0 16px; padding: 0; display: grid; gap: 8px; }
.dp-steps li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.dp-steps li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f3f4f6; font: 600 13px/1 var(--sv-num); color: var(--sv-ink); margin-top: 1px; }

.dp-more, .dp-file { margin-top: 16px; border-radius: 16px; background: #f5f6f7; }
.dp-more summary, .dp-file summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; border-radius: 16px; font-weight: 500; font-size: 15px; color: var(--sv-ink); transition: background-color .3s; }
.dp-more summary::-webkit-details-marker, .dp-file summary::-webkit-details-marker { display: none; }
.dp-more summary:hover, .dp-file summary:hover { background-color: #eceef0; }
.dp-more-in { padding: 0 18px 14px; font-size: 15px; }
.dp-file-n { font: 500 14px/1.4 'IBM Plex Mono', ui-monospace, Consolas, monospace; overflow-wrap: anywhere; min-width: 0; }
.dp-file-l { margin-left: auto; flex: none; font: 500 12px/1 var(--sv-num); color: var(--sv-mute); }
.dp-more summary .dp-file-t { margin-left: auto; }
.dp-file-t { flex: none; position: relative; width: 12px; height: 12px; }
.dp-file-t::before, .dp-file-t::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 1px; transition: transform .45s var(--sv-glide); }
.dp-file-t::after { transform: rotate(90deg); }
details[open] > summary .dp-file-t::after { transform: rotate(0deg); }
.dp-code { position: relative; padding: 0 8px 8px; }
.dp-code pre { max-height: 640px; }
.dp-copy-code { position: absolute; right: 18px; top: 10px; z-index: 1; border: 0; cursor: pointer; border-radius: 999px; padding: 7px 14px; font: 500 13px/1 var(--sv-body); background: #fff; color: #111827; }

.dp-table { margin-top: 14px; overflow-x: auto; }
.dp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.dp-table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--sv-mute); padding: 0 16px 10px 0; border-bottom: 1px solid rgba(17, 24, 39, .14); }
.dp-table td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--sv-hair); vertical-align: top; color: var(--sv-ink2); overflow-wrap: anywhere; }
.dp-table td:first-child code { white-space: nowrap; }
.dp-table td:last-child, .dp-table th:last-child { padding-right: 0; }
@media (max-width: 767px) {
  .dp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dp-table table, .dp-table tbody, .dp-table tr, .dp-table td { display: block; }
  .dp-table tr { padding: 12px 0; border-top: 1px solid var(--sv-hair); }
  .dp-table tr:last-child { border-bottom: 1px solid var(--sv-hair); }
  .dp-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 10px; }
  .dp-table td > span { min-width: 0; }
  .dp-table td::before { content: attr(data-label); font-size: 12px; font-weight: 500; color: var(--sv-mute); padding-top: .2em; }
  .dp-table td:first-child { grid-template-columns: minmax(0, 1fr); padding-bottom: 6px; }
  .dp-table td:first-child::before { display: none; }
  .dp-table td:first-child code { white-space: normal; }
}

.dp-faq { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; margin-top: 12px; }
.dp-q { background: #f7f7f8; border-radius: 16px; }
.dp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 14px 20px; cursor: pointer; list-style: none; }
.dp-q summary::-webkit-details-marker { display: none; }
.dp-q summary { border-radius: 16px; transition: background-color var(--hv-t) var(--hv-ease); }
.dp-q summary h3 { width: fit-content; background-image: linear-gradient(var(--hv), var(--hv)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 var(--hv-w); transition: background-size var(--hv-t) var(--hv-ease); }
@media (hover: hover) {
  .dp-q summary:hover { background-color: #eff0f2; }
  .dp-q summary:hover h3 { background-size: 100% var(--hv-w); }
  .dp-copy-code:hover { background: #e5e7eb; }
}
.dp-q summary:focus-visible { outline-offset: -2px; }
.dp-q summary:focus-visible h3 { background-size: 100% var(--hv-w); }
.dp-copy-code { transition: background-color var(--hv-t) var(--hv-ease); }
.dp-panel--buy { --hv: #9cc3dc; --hv-rest: rgba(255, 255, 255, .3); }
.dp-q summary h3 { margin: 0; font-size: 16px; font-weight: 600; }
.dp-a { padding: 0 20px 16px; font-size: 15.5px; line-height: 1.6; }
.dp-a p:last-child { margin-bottom: 0; }
.dp-plus { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: background-color .3s; }
.dp-plus::before, .dp-plus::after { content: ''; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; margin-top: -.75px; background: #111827; border-radius: 1px; transition: transform .45s var(--sv-glide); }
.dp-plus::after { transform: rotate(90deg); }
.dp-q[open] .dp-plus { background: #111827; }
.dp-q[open] .dp-plus::before, .dp-q[open] .dp-plus::after { background: #fff; transform: rotate(0deg); }

/* prev / next */
.dp-pns { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.dp-pn { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--dp-r); padding: 20px 24px; text-decoration: none; transition: box-shadow .5s var(--sv-glide); }
.dp-pn { box-shadow: 0 0 0 1px var(--hv-hair); transition: box-shadow var(--hv-t) var(--hv-ease); }
.dp-pn--next { align-items: flex-end; text-align: right; }
.dp-pn-k { font-size: 13px; color: var(--sv-mute); }
.dp-pn-b { display: flex; align-items: center; gap: 10px; }
.dp-pn-n { font: 500 clamp(1.4rem, 2vw, 2rem)/1.1 var(--sv-display); color: var(--sv-ink); }
@media (max-width: 479px) { .dp-pns { grid-template-columns: 1fr; } .dp-pn--next { align-items: flex-start; text-align: left; } }

/* ---------- full-size screenshots (docs.js) ---------- */
.dp-zoom { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 64px 12px 84px; background: rgba(239, 239, 239, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--sv-ink); font-family: var(--sv-body); }
.dp-zoom[hidden] { display: none; }
.dp-zoom img { max-width: 100%; max-height: calc(100dvh - 148px); width: auto; height: auto; border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); transform-origin: 0 0; }
.dp-zx { position: absolute; right: 16px; top: 16px; }
.dp-zbar { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.dp-zbar p { margin: 0; font: 500 13px/1 var(--sv-num); color: var(--sv-mute); }
.dp-zbar b { color: var(--sv-ink); }
html.anim .dp-zoom { transition: opacity .3s var(--sv-glide); }
html.anim .dp-zoom.dp-z0 { opacity: 0; }
html.anim .dp-zoom.dp-z0 > :not(img) { opacity: 0; }
html.anim .dp-zoom > :not(img) { transition: opacity .3s .08s; }
html.anim .dp-zoom img.dp-fly { transition: transform .42s var(--sv-glide); }
html.anim .dp-zoom.dp-pop img { animation: dp-pop .4s var(--sv-glide); }
@keyframes dp-pop { from { opacity: 0; transform: scale(.96); } }
.dp-zoom img.dp-wait { min-width: min(60vw, 900px); aspect-ratio: 16 / 9; background: linear-gradient(100deg, #e5e7eb 30%, #f3f4f6 50%, #e5e7eb 70%) 0 0 / 300% 100%; }
html.anim .dp-zoom img.dp-wait { animation: dp-shim 1.2s linear infinite; }
@keyframes dp-shim { to { background-position: -300% 0; } }

/* plugin pages: the get panels sit in their own section under the docs */
.dp-plugin .dp-get { padding-top: 16px; }
.dp-plugin .dp-get > .dp-pns { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .gal-slide, .gal-slide.on, .dp-card, .dp-card-pic img, .dp-plus::before, .dp-plus::after, .dp-file-t::before, .dp-file-t::after { transition: none !important; }
}
