/* SellProof docs (site/docs, site/de/docs): built by scripts/make_docs.py from docs/site/{en,de}/*.html. */
@font-face { font-family: Inter; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF,U+1E00-1E9F,U+20A0-20C0; }
:root { --ink: #18221e; --soft: #4a5a53; --muted: #6b7a73; --line: #e1e8e4; --bg: #fbfcfb; --side: #f3f6f4; --brand: #1f6f5c;
  --brand-soft: #e6f1ec; --warn: #fff6e0; --warn-line: #e8c46a; --code: #eef2f0; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 24px;
  background: rgba(251,252,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.top .logo svg { width: 26px; height: 26px; }
.top .docs-home { color: var(--muted); font-weight: 500; font-size: 1.08rem; text-decoration: none; margin-left: -10px; }
.top .docs-home:hover { color: var(--brand); }
.top .back { display: none; width: 40px; height: 40px; margin-left: -10px; border-radius: 10px; place-items: center; color: var(--ink); }
.top .back:hover { background: var(--side); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .94rem; }
.top nav a { color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.buy { background: var(--brand); color: #fff; padding: 7px 14px; border-radius: 9px; font-weight: 600; white-space: nowrap; }
.top nav .lang { font-size: .85rem; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 0 24px; }
.side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; padding: 28px 0 40px; }
.side summary { display: none; }
.side ol { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.side li a { display: flex; gap: 10px; padding: 7px 12px; border-radius: 8px; color: var(--soft); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.side li a::before { counter-increment: d; content: counter(d); color: var(--muted); font-size: .8rem; min-width: 1em; padding-top: 2px; }
.side li a:hover { background: var(--side); color: var(--ink); }
.side li a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side .extra { margin-top: 22px; padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: .9rem; display: flex; flex-direction: column; gap: 8px; }
.side .extra a { color: var(--soft); text-decoration: none; }
.side .extra a:hover { color: var(--brand); }
.side .extra a.home { display: none; }

/* content */
article { padding: 36px 0 64px; max-width: 780px; min-width: 0; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.15; margin: .25em 0 .35em; }
.lead { font-size: 1.12rem; color: var(--soft); margin-top: 0; }
h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 2.2em 0 .5em; line-height: 1.3; padding-top: 4px; }
h3 { font-size: 1.1rem; margin: 1.7em 0 .4em; }
h2 a.anchor, h3 a.anchor { color: var(--line); text-decoration: none; margin-left: 6px; font-weight: 400; visibility: hidden; }
h2:hover a.anchor, h3:hover a.anchor { visibility: visible; }
p, li { color: #26332e; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 42px; margin: 12px 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
b.ui, .ui { font-weight: 600; background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: .95em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
code { background: var(--code); border-radius: 5px; padding: .1em .35em; font-size: .9em; word-break: break-word; }
kbd { border: 1px solid #c8d2cd; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font: 600 .85em Inter, sans-serif; background: #fff; }
.note, .tip, .warn { border-radius: 12px; padding: 14px 18px; margin: 1.3em 0; border: 1px solid var(--line); background: #fff; }
.note p, .tip p, .warn p { margin: .3em 0; }
.tip { background: var(--brand-soft); border-color: #cfe3da; }
.warn { background: var(--warn); border-color: var(--warn-line); }
.note strong:first-child, .tip strong:first-child, .warn strong:first-child { display: block; margin-bottom: 2px; }
figure { margin: 1.6em 0; }
figure video { height: auto; aspect-ratio: 16 / 9; background: #1d2421; }
figure img, figure video { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(20,40,30,.06); }
figure.narrow { max-width: 300px; }
figure.float { float: right; max-width: 260px; margin: 0 0 1em 28px; }
figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1f5f3; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.4em 0; }
.cards a { display: block; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cards a:hover { border-color: #a9cbbd; box-shadow: 0 6px 18px rgba(20,60,45,.07); }
.cards strong { display: block; margin-bottom: 4px; }
.cards span { color: var(--soft); font-size: .92rem; line-height: 1.5; display: block; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); clear: both; }
.pager a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); background: #fff; }
.pager a small { display: block; color: var(--muted); font-size: .8rem; }
.pager a.next { text-align: right; }
.pager a:hover { border-color: #a9cbbd; }
.help-box { margin-top: 2.4em; color: var(--soft); font-size: .95rem; }

footer { border-top: 1px solid var(--line); padding: 22px 24px 40px; font-size: .9rem; color: var(--muted); }
footer .in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--soft); }
footer .in span { margin-right: auto; }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .top { padding: 0 16px; gap: 10px; }
  .top nav { gap: 12px; }
  .top nav .hide-s { display: none; }
  .top nav a.buy { padding: 6px 11px; font-size: .88rem; }
  .side { position: static; max-height: none; padding: 16px 0 0; }
  .side details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .side summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; min-height: 44px; }
  .side summary::-webkit-details-marker { display: none; }
  .side summary::after { content: "▾"; color: var(--muted); }
  .side details[open] summary::after { content: "▴"; }
  .side details > div { padding: 0 8px 12px; }
  .side li a { padding: 10px 12px; }
  article { padding-top: 22px; }
  figure.float { float: none; max-width: 300px; margin: 1.2em 0; }
  .pager { flex-direction: column; }
}

/* Moving between docs pages: the next page is preloaded on hover (speculation rules in each page's head) and
   cross-fades in; the top bar and the side menu stay put. Browsers without support just load the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: docs-top; }
  .side { view-transition-name: docs-side; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
  ::view-transition-group(docs-top), ::view-transition-group(docs-side) { animation-duration: 0s; }
}

/* no double-tap zoom on controls and pictures (pinch zoom still works) */
a, button, summary, figure img { touch-action: manipulation; }
/* pictures open full size (script at the end of each page) */
figure img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,18,15,.92); display: grid; place-items: center; padding: 56px 12px 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: #fff; touch-action: pinch-zoom; }
.lb-x { position: fixed; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-x:hover, .lb-x:focus-visible { background: rgba(255,255,255,.26); }
html.lb-on { overflow: hidden; }
@media (max-width: 860px) {
  .side .extra a.home { display: block; font-weight: 600; color: var(--brand); }
  .top .docs-home { display: none; }
  .top .back { display: grid; }
  .top { gap: 4px; }
  .top nav { margin-left: auto; }
}
