/* Pixx Suite Docs — help centre styles on top of shared/pixx.css + hub/hub.css + hub/billing.css */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--panel3); color: #fff; padding: 8px 12px; border-radius: 8px; }
.doc-skip:focus { left: 12px; }

/* ---------- docs home ---------- */
.doc-homemain { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px clamp(14px, 3vw, 40px) 10px; }
.doc-hero { padding: 26px 0 8px; position: relative; }
.doc-hero h1 { margin: 0 0 6px; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.03em; background: linear-gradient(90deg, #fff, #c9b6ff 55%, #f0a6fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-hero p { margin: 0 0 18px; font-size: 16px; max-width: 640px; }
.doc-search input { width: 100%; max-width: 640px; height: 48px; padding: 0 16px 0 44px; border-radius: 14px; border: 1px solid var(--line2); color: var(--text); font-size: 16px;
  background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a8b7ca' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 14px center; }
.doc-search input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2); }
.doc-hits { max-width: 640px; margin-top: 8px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(20,21,31,.96); padding: 6px; box-shadow: var(--shadow); }
.doc-hits ul { list-style: none; margin: 0; padding: 0; }
.doc-hits li { padding: 8px 10px; border-radius: 10px; }
.doc-hits li:hover { background: rgba(var(--acc-rgb), .1); }
.doc-hits li > a { display: block; color: var(--text) !important; text-decoration: none; }
.doc-hits li > a small { color: var(--muted); display: block; margin-top: 2px; }
.doc-hitlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.doc-hitlinks a { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: #d6c9ff !important; text-decoration: none; }
.doc-hits p { margin: 8px 10px; }
.doc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 14px; }
.doc-controls .field { color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.doc-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; text-decoration: none; color: var(--text) !important; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.doc-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--card-acc), var(--card-acc2)); }
.doc-card:hover, .doc-card:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--card-acc) 55%, transparent); box-shadow: 0 12px 34px rgba(0,0,0,.32); }
.doc-card[hidden] { display: none; }
.doc-card-mark { flex: none; display: inline-flex; filter: drop-shadow(0 2px 10px color-mix(in srgb, var(--card-acc) 40%, transparent)); }
.doc-card-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-card-txt b { font-size: 16px; letter-spacing: -.01em; padding-right: 74px; }
.doc-card-txt small { color: var(--card-acc); font-weight: 600; font-size: 11.5px; }
.doc-card-txt span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.doc-card-level { position: absolute; right: 12px; top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.doc-empty { margin: 20px 0; }

/* ---------- guide page ---------- */
.doc-page { --doc-acc: var(--acc); --doc-acc2: var(--acc2); }
.doc-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 40px) 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
.doc-side { position: sticky; top: 74px; align-self: start; max-height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.doc-back { color: var(--muted) !important; text-decoration: none; font-weight: 600; font-size: 13px; }
.doc-back:hover { color: #fff !important; }
.doc-switch select { width: 100%; height: 34px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); padding: 0 8px; }
.doc-toc summary { cursor: pointer; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 4px 0 8px; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line2); }
.doc-toc li a { display: block; padding: 4px 10px; color: var(--muted) !important; text-decoration: none; font-size: 13px; line-height: 1.35; border-left: 2px solid transparent; margin-left: -1px; }
.doc-toc li.l3 a { padding-left: 22px; font-size: 12.5px; }
.doc-toc li a:hover { color: #fff !important; }
.doc-toc li a.on { color: #fff !important; border-left-color: var(--doc-acc); }
.doc-main { min-width: 0; max-width: 780px; }
.doc-crumbs { font-size: 12.5px; color: var(--dim); margin-bottom: 14px; }
.doc-crumbs a { color: var(--muted) !important; text-decoration: none; }
.doc-crumbs a:hover { color: #fff !important; }
.doc-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.doc-mark { flex: none; display: inline-flex; filter: drop-shadow(0 4px 16px color-mix(in srgb, var(--doc-acc) 45%, transparent)); }
.doc-kicker { margin: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--doc-acc); }
.doc-level { color: var(--muted); font-weight: 600; }
.doc-head h1 { margin: 0 0 6px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.025em; line-height: 1.15; }
.doc-summary { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.doc-open { background: linear-gradient(135deg, var(--card-acc), var(--card-acc2)) !important; color: #0b0b12 !important; text-decoration: none; }

.doc-body { font-size: 15.5px; line-height: 1.7; color: #dfe3ee; }
.doc-body h2 { margin: 38px 0 10px; font-size: 22px; letter-spacing: -.015em; color: #fff; scroll-margin-top: 80px; }
.doc-body h3 { margin: 26px 0 8px; font-size: 17px; color: #fff; scroll-margin-top: 80px; }
.doc-body h4 { margin: 20px 0 6px; font-size: 15px; color: #fff; scroll-margin-top: 80px; }
.doc-body h2, .doc-body h3, .doc-body h4 { position: relative; }
.doc-anchor { position: absolute; left: -22px; top: 0; opacity: 0; color: var(--dim) !important; text-decoration: none; font-weight: 400; padding-right: 6px; }
.doc-body h2:hover .doc-anchor, .doc-body h3:hover .doc-anchor, .doc-anchor:focus { opacity: 1; }
.doc-body p { margin: 10px 0; }
.doc-body a { color: #d6c9ff; text-decoration: underline; text-decoration-color: rgba(214,201,255,.4); text-underline-offset: 3px; }
.doc-body a:hover { color: #fff; text-decoration-color: #fff; }
.doc-body ul, .doc-body ol { margin: 10px 0; padding-left: 24px; }
.doc-body li { margin: 4px 0; padding-left: 2px; }
.doc-body li > ul, .doc-body li > ol { margin: 4px 0; }
.doc-body ol > li::marker { color: var(--doc-acc); font-weight: 700; }
.doc-body strong { color: #fff; }
.doc-body kbd { font: 600 12.5px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); border-bottom-width: 2px; color: #fff; white-space: nowrap; }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.doc-callout { display: block; margin: 16px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 14.5px; line-height: 1.6; }
.doc-callout b { margin-right: 4px; }
.doc-callout.tip { background: rgba(61,220,151,.07); border-color: rgba(61,220,151,.3); }
.doc-callout.tip b { color: var(--good); }
.doc-callout.note { background: rgba(var(--acc2-rgb), .07); border-color: rgba(var(--acc2-rgb), .3); }
.doc-callout.note b { color: var(--acc2); }
.doc-callout.warning { background: rgba(255,181,71,.07); border-color: rgba(255,181,71,.32); }
.doc-callout.warning b { color: var(--warn); }
.doc-fig { margin: 18px 0; }
.doc-fig img, .doc-body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line2); background: #0b0c12; }
.doc-fig figcaption { margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.doc-table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
.doc-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc-table th, .doc-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { background: rgba(255,255,255,.04); color: #fff; font-weight: 700; white-space: nowrap; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-foot { margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-updated { color: var(--dim); font-size: 12.5px; margin: 0 0 6px; }
.doc-help { color: var(--muted); margin: 0 0 18px; }
.doc-help a { color: #d6c9ff !important; }
.doc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-pn a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text) !important; background: rgba(255,255,255,.02); }
.doc-pn a:hover { border-color: rgba(var(--acc-rgb), .5); }
.doc-pn a small { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.doc-pn a.next { text-align: right; }

@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 10px; padding-top: 14px; }
  .doc-side { position: static; max-height: none; overflow: visible; padding-bottom: 0; }
  .doc-toc details { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: rgba(255,255,255,.02); }
  .doc-toc summary { padding: 4px 0; }
  .doc-toc details[open] summary { padding-bottom: 8px; }
  .doc-anchor { display: none; }
}
@media (max-width: 560px) {
  .doc-head { flex-direction: column; gap: 10px; }
  .doc-body { font-size: 15px; }
  .doc-pn { grid-template-columns: 1fr; }
  .doc-pn a.next { text-align: left; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-table table { min-width: 560px; }
}
@media print {
  .hub-top, .hub-foot2, .doc-side, .doc-pn, .doc-help, .doc-open, .doc-skip, .doc-anchor { display: none !important; }
  body.pxs-app { background: #fff !important; color: #000 !important; overflow: visible !important; height: auto !important; }
  .doc-wrap { display: block; max-width: none; padding: 0; }
  .doc-body, .doc-body h2, .doc-body h3, .doc-head h1, .doc-body strong { color: #000 !important; }
  .doc-body a { color: #000; }
  .doc-callout { background: none !important; border-color: #999 !important; }
  .doc-body img { border-color: #ccc; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .doc-card { transition: none; } .doc-card:hover { transform: none; } }

/* the page body grows with its content (the shared .pxs-app body is viewport-height, which made the browser
   scroll the document and carry the sticky header away after one screen) */
html:has(body.doc-page), html:has(body.doc-home) { height: auto; }
body.pxs-app.doc-page, body.pxs-app.doc-home { height: auto; min-height: 100vh; overflow: visible; }
