/*
 * The docs (/docs/ and its pages, bin/docs_content.py): one page per feature
 * for WordPress, Shopify and any website. The platform switch (docs.js) shows
 * the steps for the visitor's platform and remembers it; #wordpress, #shopify
 * or #website in the address (the apps' "Learn more" links) picks it.
 */
.dx { padding-block: 28px 72px; }
.dx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.dx-crumb { font-size: 14px; color: var(--muted); margin-right: auto; }
.dx-crumb a { color: var(--muted); text-decoration: none; }
.dx-crumb a:hover { color: var(--brand); text-decoration: underline; }
.dx-pf-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.dx-pf { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--layer); border: 1px solid var(--line-2); border-radius: 11px; }
.dx-pf button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: 600 14px/1 var(--sans); color: var(--ink-2); padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.dx-pf button svg { width: 16px; height: 16px; flex: none; }
.dx-pf button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(16,18,32,.14); }
.dx-pf button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.dx-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.dx-side { position: sticky; top: 88px; display: grid; gap: 16px; font-size: 14px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.dx-side h2 { margin: 0 0 4px; font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dx-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.dx-side a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px; border-radius: 7px; color: var(--ink-2); text-decoration: none; }
.dx-side a:hover { background: var(--layer); }
.dx-side a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dx-main { min-width: 0; }
.dx-main h1 { font: 700 clamp(30px, 4vw, 42px)/1.12 var(--sans); letter-spacing: -.025em; margin: 0 0 10px; text-wrap: balance; }
.dx-lede { font-size: 18px; color: var(--ink-2); margin: 0 0 16px; max-width: 64ch; }
.dx-main h2 { font: 700 22px/1.3 var(--sans); letter-spacing: -.01em; margin: 38px 0 12px; scroll-margin-top: 96px; }
.dx-main h2 a.dx-hash { color: var(--line-2); text-decoration: none; margin-left: 6px; font-weight: 500; }
.dx-main h2:hover a.dx-hash { color: var(--muted); }
.dx-main p, .dx-main li { max-width: 68ch; }
.dx-main p { margin: 0 0 12px; }

.dx-badge { display: inline-flex; align-items: center; font: 600 12px/1 var(--sans); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.dx-free { background: var(--ok-soft); color: var(--ok); }
.dx-pro { background: var(--brand-soft); color: var(--brand); }
.dx-business { background: #f0eeff; color: var(--violet); }
.dx-soon { background: var(--amber-soft); color: var(--amber); }
.dx-side .dx-badge { font-size: 10.5px; padding: 3px 6px; }

.dx-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dx-k { font-size: 13px; color: var(--muted); }
.dx-av { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 8px; }
.dx-av svg { width: 14px; height: 14px; flex: none; }
.dx-av.on { background: var(--ok-soft); color: var(--ok); }
.dx-av.soon { background: var(--amber-soft); color: var(--amber); }

.dx-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.dx-flow div { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; font-size: 14.5px; background: var(--layer); }
.dx-flow b { display: block; color: var(--brand); font-size: 13px; margin-bottom: 3px; }

.dx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: dx; }
.dx-steps > li { counter-increment: dx; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.dx-steps > li::before { content: counter(dx); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--brand-line); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.dx-steps b.t { display: block; }
.dx-path { font: 500 13px/1.5 var(--mono); background: var(--layer-2); border-radius: 6px; padding: 2px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dx-soonbox { border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; background: var(--layer); max-width: 68ch; }
.dx-soonbox p:last-child { margin-bottom: 0; }
.dx-note { border-left: 3px solid var(--brand-line); padding: 4px 0 4px 14px; color: var(--ink-2); margin: 14px 0; max-width: 66ch; }

.dx-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 70ch; }
.dx-faq summary { cursor: pointer; font-weight: 600; }
.dx-faq details p { margin: 8px 0 0; color: var(--ink-2); }
.dx-related { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-related a { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.dx-related a:hover { border-color: var(--brand); color: var(--brand); }
.dx-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.dx-pager a { flex: 1 1 220px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.dx-pager a:hover { border-color: var(--brand); }
.dx-pager small { display: block; color: var(--muted); font-size: 12px; }
.dx-pager a.next { text-align: right; }

/* The docs home. */
.dx-hero h1 { margin-bottom: 8px; }
.dx-start { border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; margin-top: 26px; }
.dx-start h2 { margin-top: 0; }
.dx-start .dx-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dx-start .dx-steps > li { background: var(--layer); border-radius: 12px; padding: 12px; font-size: 14.5px; }
.dx-start .dx-steps li > div > span { color: var(--muted); display: block; }
.dx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dx-cat { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.dx-cat h3 { margin: 0; font: 600 16px/1.3 var(--sans); }
.dx-cat p { margin: 0; color: var(--muted); font-size: 14px; }
.dx-cat ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.dx-cat li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dx-cat li a { color: var(--ink-2); text-decoration: none; }
.dx-cat li a:hover { color: var(--brand); text-decoration: underline; }
.dx-cat .dx-badge { font-size: 11px; padding: 3px 6px; }
.dx-cat li.later { color: var(--muted); }

[data-pf-only][hidden] { display: none !important; }

@media (max-width: 860px) {
	.dx-grid { grid-template-columns: 1fr; gap: 24px; }
	/* On a phone the page comes first; the list of pages follows it. */
	.dx-side { order: 2; position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; }
}
