/* ==========================================================================
   Plugin Docs: friendly docs theme
   Coral accent on white, bold geometric headings, soft rounded cards with
   gentle shadows, red icon tiles. Inspired by the GoDocs shot on Dribbble;
   all shapes and illustrations here are original.
   ========================================================================== */

:root {
  --brand: #e9524d;
  --brand-solid: #d9433e;
  --brand-hover: #c23631;
  --brand-ink: #c2352f;
  --tint: #fdeeed;
  --navy: #14508c;
  --amber: #b45309;
  --amber-tint: #fff5e1;
  --ok: #17803d;
  --ok-tint: #e5f6ec;
  --bg: #f5f6fa;
  --card: #ffffff;
  --card-2: #fafafd;
  --ink: #17181c;
  --ink-2: #4a4d57;
  --muted: #7d818d;
  --line: #e8e9f0;
  --code-bg: #fdf1f0;
  --shadow-sm: 0 2px 8px rgba(23, 24, 28, .06);
  --shadow: 0 10px 30px rgba(23, 24, 28, .08);
  --shadow-lg: 0 24px 60px -12px rgba(23, 24, 28, .28);
  --radius: 16px;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --header-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #f0615c;
  --brand-solid: #e5504b;
  --brand-hover: #f0615c;
  --brand-ink: #ff8a85;
  --tint: #2d1a1b;
  --navy: #2a6fb3;
  --amber: #fbbf24;
  --amber-tint: #2b2310;
  --ok: #4ade80;
  --ok-tint: #12281a;
  --bg: #0e0f13;
  --card: #17181e;
  --card-2: #1c1e25;
  --ink: #eceef4;
  --ink-2: #b4b8c4;
  --muted: #8a8e9b;
  --line: #292b34;
  --code-bg: #2a1c1d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
svg.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
kbd { font: 600 11px/1 var(--body); padding: 3px 7px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
#progress { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; background: var(--brand); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 6px 20px -14px rgba(23, 24, 28, .25); }
.bar { display: flex; align-items: center; gap: 36px; height: 100%; }
/* wordmark follows the wpallsolution.com logo: "wp" in text colour, "allsolution" in red (same in light and dark) */
.logo { color: var(--ink); font: 700 26px/1 "Space Grotesk", var(--head); letter-spacing: -.02em; }
.logo span { color: rgb(217, 67, 62); }
.logo:hover { text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 30px; margin: 0 auto; font: 600 13.5px/1 var(--head); }
.navlink { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 8px 0; border: 0; background: none; color: var(--ink); }
.navlink:hover { color: var(--brand-ink); text-decoration: none; }
.navlink.active { color: var(--brand-ink); }
.drop { position: relative; }
.drop-menu { position: absolute; top: calc(100% + 14px); left: -16px; width: 340px; padding: 8px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: none; }
.drop.open .drop-menu { display: block; }
.drop-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); }
.drop-item:hover { background: var(--tint); text-decoration: none; }
.drop-item strong { display: block; font: 700 14px/1.3 var(--head); }
.drop-item small { color: var(--muted); font-size: 12.5px; }
.actions-r { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1.5px solid var(--brand-solid); border-radius: 8px; background: var(--brand-solid); color: #fff; font: 600 13px/1 var(--head); transition: background .15s, color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; text-decoration: none; box-shadow: 0 8px 18px -8px var(--brand-solid); transform: translateY(-1px); }
.btn.line { background: transparent; color: var(--brand-ink); border-color: var(--brand-solid); }
.btn.line:hover { background: var(--tint); color: var(--brand-ink); box-shadow: none; }
.btn.white { background: #fff; border-color: #fff; color: var(--brand-ink); }
.btn.white:hover { background: #fff; color: var(--brand-hover); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink-2); font-size: 17px; }
.icon-btn:hover { color: var(--brand-ink); border-color: var(--brand); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: inline-block; }
.menu-btn { display: none; }

/* ---------- home: stage and sheet ---------- */
.stage { position: relative; overflow: hidden; padding: 30px 0 0; }
.stage::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 0; width: 150%; height: 600px; transform: translateX(-50%); border-radius: 0 0 50% 50% / 0 0 140px 140px; background: var(--brand); }
.stage .bg-l, .stage .bg-r { position: absolute; z-index: 0; border-radius: 50%; background: var(--navy); }
.stage .bg-l { width: 340px; height: 340px; left: -190px; top: 90px; }
.stage .bg-r { width: 300px; height: 300px; right: -170px; top: 120px; }
.sheet { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 64px 68px 70px; background: var(--card); border-radius: 30px 30px 0 0; box-shadow: var(--shadow-lg); }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; align-items: center; }
.hero h1 { margin: 0 0 20px; font: 800 clamp(34px, 4.4vw, 54px)/1.1 var(--head); letter-spacing: -.02em; }
.hero p.lead { margin: 0 0 30px; max-width: 520px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.searchbar { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 540px; padding: 6px 6px 6px 20px; border: 0; border-radius: 12px; background: var(--card); box-shadow: 0 10px 34px rgba(23, 24, 28, .12), 0 0 0 1px var(--line); text-align: left; color: var(--muted); font: 400 14.5px/1 var(--body); cursor: text; }
.searchbar:hover { box-shadow: 0 12px 38px rgba(23, 24, 28, .16), 0 0 0 1.5px var(--brand); }
.searchbar .grow { flex: 1; }
.searchbar .go { padding: 14px 24px; border-radius: 9px; background: var(--brand-solid); color: #fff; font: 600 13px/1 var(--head); }
.hint { margin: 16px 0 0; font: 400 13px/1.6 var(--body); color: var(--ink-2); }
.hint b { color: var(--brand-ink); font: 700 12px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; margin-right: 6px; }
.hint a { font-weight: 600; margin-right: 12px; }
.hero-art { display: block; width: 100%; max-width: 520px; margin-left: auto; }
.section { padding-top: 50px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
.section-title h2 { margin: 0; font: 800 clamp(24px, 3vw, 30px)/1.2 var(--head); letter-spacing: -.015em; }
.section-title span { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border-radius: 14px; background: var(--card); box-shadow: 0 8px 28px rgba(23, 24, 28, .07), 0 0 0 1px var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -10px rgba(23, 24, 28, .2), 0 0 0 1.5px color-mix(in srgb, var(--brand) 60%, var(--line)); text-decoration: none; }
.tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 11px; background: var(--brand-solid); color: #fff; font-size: 21px; box-shadow: 0 8px 16px -8px var(--brand-solid); }
.tile.sm { width: 36px; height: 36px; margin: 0; border-radius: 9px; font-size: 17px; box-shadow: none; }
.tile.soft { background: var(--tint); color: var(--brand-ink); box-shadow: none; }
.card h3 { margin: 0; font: 700 18px/1.3 var(--head); letter-spacing: -.01em; transition: color .15s; }
.card:hover h3 { color: var(--brand-ink); }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.card .foot .go { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font: 700 12.5px/1 var(--head); transition: gap .2s; }
.card:hover .foot .go { gap: 10px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font: 600 11.5px/1.2 var(--head); }
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.guide { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: all .18s; }
.guide:hover { box-shadow: 0 8px 24px -8px rgba(23, 24, 28, .18), 0 0 0 1.5px var(--brand); transform: translateX(3px); text-decoration: none; }
.guide .grow { flex: 1; min-width: 0; }
.guide strong { display: block; font: 700 14.5px/1.35 var(--head); }
.guide small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.guide .chev { color: var(--muted); }
.cta { position: relative; display: grid; grid-template-columns: 170px 1fr auto; gap: 30px; align-items: center; margin: 64px 0 0; padding: 34px 44px; border-radius: 22px; background: var(--brand); color: #fff; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta h2 { margin: 0 0 6px; font: 800 26px/1.2 var(--head); }
.cta p { margin: 0; opacity: .92; }
.cta .rocket { width: 150px; margin: -18px 0 -30px; transform: rotate(8deg); }
.cta > * { position: relative; z-index: 1; }

/* ---------- plugin / category banners ---------- */
.banner { position: relative; margin: 30px 0 0; padding: 40px 46px; border-radius: 22px; background: var(--brand); color: #fff; overflow: hidden; }
.banner::before { content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: var(--navy); opacity: .9; }
.banner::after { content: ""; position: absolute; right: 120px; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.banner > * { position: relative; z-index: 1; }
.banner .crumbs { margin-bottom: 20px; }
.banner .crumbs a, .banner .crumbs li { color: rgba(255, 255, 255, .85); }
.banner .crumbs li:last-child { color: #fff; }
.banner h1 { margin: 0 0 12px; max-width: 760px; font: 800 clamp(28px, 4vw, 42px)/1.12 var(--head); letter-spacing: -.02em; }
.banner p { margin: 0; max-width: 640px; opacity: .93; font-size: 16.5px; }
.banner .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.banner .pill { background: rgba(255, 255, 255, .2); color: #fff; }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .7; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: none; }
.crumbs li:last-child { color: var(--ink-2); font-weight: 600; }

.article-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.article-list a { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: all .18s; }
.article-list a:hover { box-shadow: 0 8px 24px -10px rgba(23, 24, 28, .2), 0 0 0 1.5px var(--brand); transform: translateX(4px); text-decoration: none; }
.article-list .grow { flex: 1; min-width: 0; }
.article-list strong { display: block; font: 700 16px/1.35 var(--head); }
.article-list small { color: var(--muted); font-size: 12.5px; }
.article-list .chev { color: var(--muted); }
.plain-select { padding: 8px 12px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 13px/1.2 var(--body); }

/* ---------- doc layout ---------- */
.doc { display: grid; grid-template-columns: 272px minmax(0, 1fr) 210px; gap: 30px; padding: 32px 0 20px; align-items: start; }
.doc.two { grid-template-columns: 272px minmax(0, 1fr); }
.side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding: 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); scrollbar-width: thin; }
.side-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-head:hover { text-decoration: none; }
.side-head strong { display: block; font: 700 14.5px/1.3 var(--head); }
.side-head small { color: var(--muted); font-size: 12.5px; }
.tree { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.tree > li > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 700 13px/1.35 var(--head); text-align: left; }
.tree > li > button:hover { background: var(--card-2); }
.tree .ci { color: var(--muted); font-size: 17px; }
.tree .chev { margin-left: auto; color: var(--muted); font-size: 13px; transition: transform .2s; }
.tree > li.open > button .chev { transform: rotate(90deg); }
.tree > li.open > button .ci { color: var(--brand-ink); }
.tree ul { display: none; margin: 2px 0 8px 22px; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--line); }
.tree > li.open > ul { display: block; }
.tree ul a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.tree ul a:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.tree ul a.current { background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; font-size: 13.5px; scrollbar-width: thin; }
.toc h4 { margin: 0 0 10px; font: 700 12px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc a.sub { padding-left: 28px; font-size: 13px; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.active { color: var(--brand-ink); font-weight: 600; border-left-color: var(--brand); }
.docbar { display: none; }

/* ---------- article ---------- */
.article-card { padding: 42px 50px 38px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.article-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-head h1 { margin: 14px 0 16px; font: 800 clamp(28px, 3.6vw, 40px)/1.15 var(--head); letter-spacing: -.02em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.print-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); font: 600 12.5px/1 var(--head); }
.print-btn:hover { color: var(--brand-ink); border-color: var(--brand); }
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.8; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose h2 { margin: 2.1em 0 .6em; color: var(--ink); font: 800 clamp(21px, 2.6vw, 26px)/1.25 var(--head); letter-spacing: -.015em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 1.7em 0 .5em; color: var(--ink); font: 700 18px/1.35 var(--head); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose a { font-weight: 550; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul { margin: 0 0 20px; padding: 0; list-style: none; }
.prose ul > li { position: relative; margin: 0 0 9px; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.prose ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: s; }
.prose ol > li { position: relative; margin: 0 0 12px; padding-left: 44px; min-height: 30px; counter-increment: s; }
.prose ol > li::before { content: counter(s); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font: 800 12.5px/1 var(--head); }
.prose li > ul, .prose li > ol { margin: 10px 0 4px; }
.prose code { padding: 2px 7px; border-radius: 6px; background: var(--code-bg); color: var(--brand-ink); font: 500 .86em/1 var(--mono); }
.prose pre { position: relative; margin: 0 0 22px; padding: 18px 20px; overflow: auto; border-radius: 12px; background: #17181c; color: #eceef4; font: 400 14px/1.65 var(--mono); }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border: 1px solid #3a3d48; border-radius: 7px; background: #23252d; color: #c9ccd8; font: 600 11.5px/1.4 var(--body); opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.prose hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }
.prose em { color: var(--ink); }
.table-wrap { margin: 0 0 26px; overflow-x: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th { padding: 13px 16px; background: var(--card-2); color: var(--ink); text-align: left; font: 700 12px/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line); }
.prose td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: var(--card-2); }
.prose td:first-child { color: var(--ink); font-weight: 550; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 13px/1 var(--body); }
.tick-yes { background: var(--ok-tint); color: var(--ok); }
.tick-no { background: var(--tint); color: var(--brand-ink); }

.callout-toc { margin: 0 0 30px; padding: 22px 26px 14px; border-radius: 14px; background: var(--tint); }
.callout-toc h2 { margin: 0 0 12px !important; font: 800 12px/1.3 var(--head) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink) !important; }
.callout-toc ol { margin: 0 0 8px; }
.callout-toc ol > li { margin: 0 0 6px; padding-left: 36px; min-height: 26px; }
.callout-toc ol > li::before { width: 24px; height: 24px; background: var(--brand-solid); color: #fff; font-size: 12px; }
.callout-toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.callout-toc a:hover { color: var(--brand-ink); }
.callout-note { --c: var(--brand); display: flex; gap: 14px; margin: 4px 0 24px; padding: 16px 20px; border-radius: 12px; border-left: 4px solid var(--c); background: var(--tint); }
.callout-note.warn { --c: var(--amber); background: var(--amber-tint); }
.callout-note > .ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 16px; }
.callout-note.warn > .ico { color: var(--amber); }
.callout-note > div { flex: 1; min-width: 0; }
.callout-note p { margin: 0; line-height: 1.7; }
.callout-note p + p { margin-top: 8px; }

.prose figure { margin: 8px auto 30px; }
.prose figure img { display: block; margin: 0 auto; border-radius: 12px; box-shadow: 0 10px 34px rgba(23, 24, 28, .14), 0 0 0 1px var(--line); background: #fff; cursor: zoom-in; }
.prose figure.shot-small img { max-width: 360px; }
.prose figcaption { margin-top: 14px; color: var(--muted); font-size: 13.5px; text-align: center; }
.prose figure.shot-missing img { display: none; }
.prose figure.shot-missing::before { content: "Screenshot to add: " attr(data-shot); display: block; padding: 40px 20px; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 12px; background: var(--tint); color: var(--brand-ink); text-align: center; font-size: 14px; font-weight: 500; }

.prose details.faq-item { margin: 0 0 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.prose details.faq-item[open] { box-shadow: 0 10px 28px -14px rgba(23, 24, 28, .25), 0 0 0 1.5px var(--brand); }
.prose details.faq-item summary { position: relative; display: block; padding: 18px 58px 18px 22px; list-style: none; cursor: pointer; color: var(--ink); font: 700 16.5px/1.4 var(--head); }
.prose details.faq-item summary::-webkit-details-marker { display: none; }
.prose details.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font: 600 20px/28px var(--body); text-align: center; transition: transform .2s, background .2s, color .2s; }
.prose details.faq-item[open] summary::after { content: "−"; background: var(--brand-solid); color: #fff; }
.prose details.faq-item summary:hover { color: var(--brand-ink); }
.prose details.faq-item .faq-body { padding: 0 22px 8px; }
.prose details.faq-item .faq-body p { margin: 0 0 14px; }

.prose .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin: 10px 0 34px; }
.prose .pricing-card { display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 16px; background: var(--card); box-shadow: 0 8px 28px rgba(23, 24, 28, .07), 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.prose .pricing-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -10px rgba(23, 24, 28, .2), 0 0 0 1.5px var(--brand); }
.prose .pricing-card h3 { margin: 0 0 12px; font: 700 16px/1.3 var(--head); }
.prose .pricing-price { margin: 0 !important; color: var(--ink); font: 800 46px/1 var(--head); letter-spacing: -.03em; }
.prose .pricing-price .cur { margin-right: 2px; font-size: 22px; font-weight: 700; vertical-align: top; position: relative; top: 6px; color: var(--brand-ink); }
.prose .pricing-note { margin: 8px 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.prose .pricing-card ul { margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.prose .pricing-card li { margin: 0 0 9px; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
.prose .pricing-card li::before { left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2317803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5l2.3 2.3L9.5 3.8'/%3E%3C/svg%3E") no-repeat center / 11px; }
.prose a.pricing-btn { display: block; margin-top: auto; padding: 13px 16px; border-radius: 9px; background: var(--brand-solid); color: #fff; text-align: center; text-decoration: none; font: 700 13px/1 var(--head); transition: background .15s; }
.prose a.pricing-btn:hover { background: var(--brand-hover); }

.feedback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding: 18px 22px; border-radius: 14px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line); }
.feedback strong { font: 700 14.5px/1.3 var(--head); }
.feedback .btns { display: flex; gap: 10px; }
.feedback button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); font: 600 13px/1 var(--head); transition: all .15s; }
.feedback button:hover { color: var(--brand-ink); border-color: var(--brand); }
.feedback .thanks { display: none; align-items: center; gap: 8px; color: var(--ok); font: 700 14px/1 var(--head); }
.feedback.done .btns, .feedback.done strong { display: none; }
.feedback.done .thanks { display: inline-flex; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: all .18s; }
.pager a:hover { box-shadow: 0 12px 28px -12px rgba(23, 24, 28, .25), 0 0 0 1.5px var(--brand); transform: translateY(-3px); text-decoration: none; }
.pager small { color: var(--muted); font: 700 11.5px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.pager strong { color: var(--brand-ink); font: 700 15.5px/1.4 var(--head); }
.pager .next { text-align: right; }
.pager .only-next { grid-column: 2; }
.related { margin-top: 38px; }
.related h3 { margin: 0 0 14px; font: 800 18px/1.3 var(--head); }

/* ---------- search palette, lightbox ---------- */
.pal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(20, 22, 30, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pal.open { display: flex; }
.pal-box { width: 100%; max-width: 660px; overflow: hidden; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 20px; }
.pal-input input { flex: 1; height: 64px; border: 0; outline: 0; background: none; color: var(--ink); font: 500 17px/1 var(--body); }
.pal-input input::placeholder { color: var(--muted); }
.pal-body { max-height: 52vh; overflow: auto; padding: 8px 10px 12px; }
.pal-group { padding: 12px 12px 6px; color: var(--muted); font: 700 11px/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.pal-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; color: var(--ink); }
.pal-item .ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--card-2); color: var(--ink-2); font-size: 17px; }
.pal-item .grow { flex: 1; min-width: 0; }
.pal-item strong { display: block; font: 700 14.5px/1.35 var(--head); }
.pal-item small { display: block; overflow: hidden; margin-top: 1px; color: var(--muted); font-size: 12.8px; white-space: nowrap; text-overflow: ellipsis; }
.pal-item .ret { display: none; color: var(--brand-ink); }
.pal-item:hover { text-decoration: none; }
.pal-item.sel { background: var(--tint); }
.pal-item.sel .ic { background: var(--brand-solid); color: #fff; }
.pal-item.sel .ret { display: block; }
mark { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, #facc15 50%, transparent); color: inherit; }
.pal-empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 18px; padding: 11px 22px; border-top: 1px solid var(--line); background: var(--card-2); color: var(--muted); font-size: 12.5px; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 28px; background: rgba(14, 15, 19, .85); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }

/* ---------- footer, misc ---------- */
.site-footer { margin-top: 0; background: var(--card); box-shadow: 0 -1px 0 var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; padding: 28px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--brand-ink); }
.not-found { padding: 100px 28px; text-align: center; }
.not-found .big { color: var(--brand); font: 800 clamp(80px, 16vw, 160px)/1 var(--head); letter-spacing: -.04em; }
.not-found h1 { margin: 6px 0 8px; font: 800 30px/1.2 var(--head); }
.not-found p { margin: 0 0 24px; color: var(--muted); }
.empty-state { padding: 54px 20px; border-radius: 14px; background: var(--card); text-align: center; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.q-form { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 22px; padding: 6px 6px 6px 18px; border-radius: 12px; background: var(--card); color: var(--muted); box-shadow: 0 10px 30px rgba(23, 24, 28, .14); }
.q-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--ink); font: 500 15.5px/1 var(--body); }
.scrim { position: fixed; inset: 0; z-index: 140; display: none; background: rgba(20, 22, 30, .5); }
.scrim.open { display: block; }
.fade { animation: fade .4s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .doc, .doc.two { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
  .sheet { padding: 52px 44px 56px; }
  .topnav { gap: 22px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 18px; }
  .bar { gap: 14px; }
  .logo { font-size: 19px; }
  .topnav { position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px; display: none; background: var(--card); box-shadow: 0 16px 24px -16px rgba(23, 24, 28, .3); }
  .topnav.open { display: flex; }
  .topnav .navlink { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .drop-menu { position: static; width: auto; margin: 6px 0; box-shadow: none; border: 0; padding: 0; }
  .actions-r { margin-left: auto; }
  .actions-r .btn { display: none; }
  .menu-btn { display: grid; }
  .stage { padding-top: 18px; }
  .stage::before { height: 520px; border-radius: 0 0 50% 50% / 0 0 70px 70px; }
  .sheet { padding: 36px 22px 44px; border-radius: 22px 22px 0 0; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { max-width: 380px; margin: 0 auto; order: -1; }
  .searchbar .go { padding: 12px 16px; }
  .cta { grid-template-columns: 1fr; padding: 30px 24px; text-align: left; }
  .cta .rocket { display: none; }
  .banner { padding: 30px 24px; border-radius: 18px; }
  .doc, .doc.two { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 14px; }
  .docbar { display: flex; align-items: center; gap: 12px; position: sticky; top: var(--header-h); z-index: 50; margin: 0 -18px; padding: 10px 18px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); font-size: 14px; }
  .docbar button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); font: 700 12.5px/1 var(--head); }
  .docbar span { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
  .side { position: fixed; z-index: 150; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-102%); transition: transform .25s ease; }
  .side.open { transform: none; }
  .article-card { padding: 26px 20px 24px; border-radius: 16px; }
  .prose { font-size: 16px; }
  .prose .pricing-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .pager .only-next { grid-column: auto; }
  .print-btn { display: none; }
}
@media (max-width: 520px) {
  .grid, .guide-grid { grid-template-columns: 1fr; }
  .searchbar .go { display: none; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media print {
  .top, .side, .toc, .docbar, .feedback, .pager, .related, .site-footer, .print-btn, #progress { display: none !important; }
  body { background: #fff; }
  .doc { display: block; padding: 0; }
  .article-card { box-shadow: none; padding: 0; }
}

/* breathing room above the footer on inner pages (the home sheet runs straight into it) */
#app > .wrap { padding-bottom: 70px; }

/* keep running text a comfortable length; tables, screenshots, pricing and FAQ use the full width */
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > .callout-note { max-width: 790px; }
