/* User-guide doc shell — shared styles for /support/user-guide/* pages */

html, body { margin: 0; background: var(--bg); color: var(--fg-1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { font-feature-settings: "ss01", "cv11"; }
.page { position: relative; min-height: 100vh; }

/* a11y skip-to-main: visually hidden until keyboard focus (mirrors _marketing.css) */
.skip-to-main { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: #2EE6B0; color: #052A20; font: 500 13px/1 var(--font-sans); text-decoration: none; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.4); transform: translateY(-200%); transition: transform 160ms ease; }
.skip-to-main:focus, .skip-to-main:focus-visible { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* Doc backdrop — sky-blue centered at top mirrors the homepage arc; the top-left corner is left dark so the wordmark sits on the same base as elsewhere. Solid fallback colour reads --bg so token changes propagate. */
body { background: radial-gradient(ellipse 50% 30% at 50% 0%, rgba(91,184,255,.16) 0%, transparent 65%), radial-gradient(circle 360px at 78% 32%, rgba(46,230,176,.08) 0%, transparent 70%), radial-gradient(circle 300px at 18% 60%, rgba(46,230,176,.06) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 100% 100%, rgba(22,181,160,.06) 0%, transparent 60%), var(--bg); background-attachment: fixed; }
body::before, body::after { content: ''; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(80px); }
body::before { top: -340px; left: 50%; margin-left: -600px; width: 1200px; height: 1000px; background: radial-gradient(circle, rgba(91,184,255,.18), rgba(91,184,255,.05) 45%, transparent 70%); }
body::after { bottom: -340px; right: -260px; width: 1100px; height: 1100px; background: radial-gradient(circle, rgba(46,230,176,.10), rgba(46,230,176,.03) 45%, transparent 70%); }

.stars-layer { position: fixed; inset: 0; pointer-events: none; opacity: .5; }
.stars-1 { background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 47% 12%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 8% 62%, rgba(255,255,255,.4), transparent); }

/* Top nav */
nav.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; padding: 18px 56px; gap: 24px; backdrop-filter: blur(8px); background: rgba(5,11,26,.75); border-bottom: 1px solid rgba(255,255,255,.05); }
.logo { display: inline-flex; align-items: center; text-decoration: none; filter: drop-shadow(0 0 14px rgba(0,170,144,.55)) drop-shadow(0 0 4px rgba(0,170,144,.4)); }
.logo img { display: block; height: 30px; width: auto; }
.nav-pill { display: inline-flex; align-items: center; gap: 4px; background: rgba(20,30,55,.5); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 5px; margin: 0 auto; }
.nav-link { font: 400 14px/1 var(--font-sans); color: #B8C4D8; padding: 10px 16px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 160ms; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { background: #2EE6B0; color: #052A20; font-weight: 500; }
.nav-link.active:hover { background: #4DF2C0; }
.nav-link svg { opacity: .6; }
.cta-pill { display: inline-flex; align-items: center; gap: 8px; background: #2EE6B0; color: #052A20; padding: 11px 20px; border-radius: 999px; font: 500 14px/1 var(--font-sans); text-decoration: none; transition: all 160ms; }
.cta-pill:hover { background: #4DF2C0; transform: translateY(-1px); }
.nav-item { position: relative; display: inline-flex; }
.nav-item > .nav-link svg { transition: transform 200ms ease; }
.nav-item:hover > .nav-link svg, .nav-item:focus-within > .nav-link svg { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease, visibility 200ms; background: rgba(15, 25, 45, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.10); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 30px rgba(46,230,176,.06); padding: 14px; z-index: 100; }
.dropdown-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover > .dropdown-menu, .nav-item:focus-within > .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-mega { width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown-stack { width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
.dropdown-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: #fff; transition: background 160ms ease; }
.dropdown-item:hover { background: rgba(46,230,176,.08); }
.dropdown-item.active { background: rgba(46,230,176,.10); }
.dropdown-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: rgba(46,230,176,.12); border: 1px solid rgba(46,230,176,.25); display: flex; align-items: center; justify-content: center; color: #2EE6B0; }
.dropdown-text { min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.dropdown-title { font: 500 13px/1.3 var(--font-sans); color: #fff; letter-spacing: -0.005em; margin-bottom: 4px; }
.dropdown-desc { font: 400 12px/1.4 var(--font-sans); color: #93A3BD; letter-spacing: -0.005em; }
.dropdown-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.06); font: 500 13px/1 var(--font-sans); color: #2EE6B0; text-decoration: none; }

/* Doc shell */
.doc-shell { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr) 240px; gap: 48px; padding: 32px 40px 80px; }

/* Left TOC sidebar */
.toc-side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; }
.toc-side::-webkit-scrollbar { width: 6px; }
.toc-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 3px; }
.toc-search { position: relative; margin-bottom: 20px; }
.toc-search input { width: 100%; box-sizing: border-box; background: rgba(8,16,32,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 14px 10px 36px; color: #fff; font: 400 13px/1.4 var(--font-sans); outline: none; transition: border-color 160ms; }
.toc-search input::placeholder { color: #5C6577; }
.toc-search input:focus { border-color: rgba(46,230,176,.4); }
.toc-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #5C6577; }
.toc-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font: 500 10px/1 var(--font-mono); color: #93A3BD; }
.toc-h { font: 500 11px/1 var(--font-mono); color: #5C6577; letter-spacing: .14em; text-transform: uppercase; margin: 24px 0 10px; padding: 0 10px; }
.toc-h:first-child { margin-top: 0; }
.toc-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.toc-list a { display: block; padding: 7px 10px; font: 400 13px/1.4 var(--font-sans); color: #B8C4D8; text-decoration: none; border-radius: 6px; transition: all 140ms; letter-spacing: -0.005em; border-left: 2px solid transparent; }
.toc-list a:hover { background: rgba(255,255,255,.04); color: #fff; }
.toc-list a.active { background: rgba(46,230,176,.10); color: #2EE6B0; border-left-color: #2EE6B0; }

/* Main content */
.doc-main { min-width: 0; }
.doc-breadcrumbs { display: flex; align-items: center; gap: 8px; font: 400 13px/1 var(--font-sans); color: #5C6577; margin-bottom: 16px; flex-wrap: wrap; }
.doc-breadcrumbs a { color: #93A3BD; text-decoration: none; transition: color 160ms; }
.doc-breadcrumbs a:hover { color: #2EE6B0; }
.doc-breadcrumbs .sep { color: #5C6577; opacity: .6; }
.doc-eyebrow { font: 500 11px/1 var(--font-mono); color: #2EE6B0; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.doc-main h1 { font: 500 44px/1.1 var(--font-sans); letter-spacing: -0.03em; margin: 0 0 16px; color: #fff; }
.doc-main h2 { font: 500 28px/1.2 var(--font-sans); letter-spacing: -0.02em; margin: 56px 0 16px; color: #fff; padding-top: 8px; }
.doc-main h3 { font: 500 18px/1.3 var(--font-sans); letter-spacing: -0.015em; margin: 32px 0 12px; color: #fff; }
.doc-main p { font: 400 16px/1.7 var(--font-sans); color: #C8D4E8; margin: 0 0 16px; letter-spacing: -0.005em; }
.doc-main p.lead { font-size: 18px; color: #93A3BD; margin-bottom: 32px; }
.doc-main a { color: #2EE6B0; text-decoration: none; border-bottom: 1px solid rgba(46,230,176,.3); transition: border-color 160ms; }
.doc-main a:hover { border-bottom-color: #2EE6B0; }
.doc-main code { font: 500 13px/1.4 var(--font-mono); background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 4px; color: #5BB8FF; border: 1px solid rgba(255,255,255,.06); }
.doc-main ul, .doc-main ol { padding-left: 24px; margin: 0 0 20px; }
.doc-main ul li, .doc-main ol li { font: 400 16px/1.7 var(--font-sans); color: #C8D4E8; margin-bottom: 6px; letter-spacing: -0.005em; }

/* Chapter cards (overview page) */
.chapter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 48px; }
.chapter-card { display: block; padding: 22px; background: rgba(20,40,70,.3); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; backdrop-filter: blur(12px); text-decoration: none; transition: all 200ms ease; }
.chapter-card:hover { border-color: rgba(46,230,176,.3); background: rgba(20,40,70,.45); transform: translateY(-2px); }
.chapter-num { font: 500 11px/1 var(--font-mono); color: #5C6577; letter-spacing: .12em; margin-bottom: 8px; }
.chapter-title { font: 500 17px/1.3 var(--font-sans); color: #fff; letter-spacing: -0.01em; margin-bottom: 6px; }
.chapter-desc { font: 400 13px/1.5 var(--font-sans); color: #93A3BD; letter-spacing: -0.005em; margin: 0; }

/* Step blocks */
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.step:last-child { border-bottom: none; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: rgba(46,230,176,.12); border: 1px solid rgba(46,230,176,.3); display: flex; align-items: center; justify-content: center; font: 500 16px/1 var(--font-sans); color: #2EE6B0; }
.step-h { font: 500 18px/1.3 var(--font-sans); color: #fff; margin: 0 0 8px; letter-spacing: -0.01em; }
.step-d { font: 400 15px/1.6 var(--font-sans); color: #C8D4E8; margin: 0; }

/* Callouts */
.callout { padding: 18px 22px; background: rgba(91,184,255,.06); border: 1px solid rgba(91,184,255,.2); border-left: 3px solid #5BB8FF; border-radius: 10px; margin: 24px 0; }
.callout.tip { background: rgba(46,230,176,.06); border-color: rgba(46,230,176,.2); border-left-color: #2EE6B0; }
.callout.warn { background: rgba(255,184,77,.05); border-color: rgba(255,184,77,.2); border-left-color: #FFB84D; }
.callout-h { font: 500 12px/1 var(--font-mono); color: #5BB8FF; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.callout.tip .callout-h { color: #2EE6B0; }
.callout.warn .callout-h { color: #FFB84D; }
.callout p { margin: 0; font-size: 14px; line-height: 1.6; }

/* Right rail */
.rail { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.rail-h { font: 500 11px/1 var(--font-mono); color: #5C6577; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.rail-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.rail-list a { display: block; padding: 5px 0 5px 12px; font: 400 13px/1.4 var(--font-sans); color: #93A3BD; text-decoration: none; border-left: 2px solid rgba(255,255,255,.06); transition: all 140ms; letter-spacing: -0.005em; }
.rail-list a:hover { color: #fff; border-left-color: rgba(46,230,176,.3); }
.rail-list a.active { color: #2EE6B0; border-left-color: #2EE6B0; }
.rail-action { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(20,40,70,.4); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font: 500 13px/1.3 var(--font-sans); color: #fff; text-decoration: none; transition: all 160ms; }
.rail-action:hover { border-color: rgba(46,230,176,.3); }
.rail-action svg { color: #2EE6B0; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.06); }
.pager a { display: block; padding: 18px 22px; background: rgba(20,40,70,.25); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; text-decoration: none; transition: all 160ms; }
.pager a:hover { border-color: rgba(46,230,176,.3); background: rgba(20,40,70,.4); }
.pager-dir { font: 500 11px/1 var(--font-mono); color: #5C6577; letter-spacing: .12em; margin-bottom: 6px; }
.pager-title { font: 500 15px/1.3 var(--font-sans); color: #fff; letter-spacing: -0.01em; }
.pager-prev { text-align: left; }
.pager-next { text-align: right; }

/* Hotkeys table */
.hotkey-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.hotkey-table th, .hotkey-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); font: 400 14px/1.4 var(--font-sans); color: #C8D4E8; }
.hotkey-table th { font: 500 11px/1 var(--font-mono); color: #5C6577; letter-spacing: .12em; text-transform: uppercase; }
.hotkey-table kbd { display: inline-block; padding: 4px 8px; border-radius: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-bottom-color: rgba(255,255,255,.2); font: 500 12px/1 var(--font-mono); color: #fff; margin-right: 4px; }

/* FAQ */
.faq-q { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-q:last-child { border-bottom: none; }
.faq-q summary { cursor: pointer; font: 500 17px/1.3 var(--font-sans); color: #fff; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: '+'; color: #2EE6B0; font: 400 22px/1 var(--font-sans); transition: transform 160ms; }
.faq-q[open] summary::after { content: '×'; transform: rotate(0deg); }
.faq-q .faq-a { padding: 14px 0 0; }
.faq-q .faq-a p { font: 400 15px/1.7 var(--font-sans); color: #93A3BD; margin: 0; letter-spacing: -0.005em; }

/* Search results dropdown */
.doc-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: rgba(15,25,45,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 30px rgba(46,230,176,.06); padding: 6px; z-index: 200; max-height: 380px; overflow-y: auto; }
.doc-search-results::-webkit-scrollbar { width: 6px; }
.doc-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 3px; }
.doc-search-item { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #fff; transition: background 120ms; }
.doc-search-item:hover, .doc-search-item.is-active { background: rgba(46,230,176,.12); }
.doc-search-item.is-sub { padding-left: 18px; }
.doc-search-doc { color: #2EE6B0; }
.doc-search-chev { color: #5C6577; }
.doc-search-t { font: 500 13px/1.3 var(--font-sans); color: #fff; letter-spacing: -0.005em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-search-item.is-sub .doc-search-t { font-weight: 400; color: #C8D4E8; }
.doc-search-t mark { background: rgba(46,230,176,.22); color: #2EE6B0; padding: 0 2px; border-radius: 3px; }
.doc-search-s { font: 400 11px/1 var(--font-mono); color: #5C6577; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.doc-search-empty { padding: 14px; text-align: center; font: 400 13px/1.4 var(--font-sans); color: #5C6577; }

/* Print — strip chrome, switch to light theme for paper readability */
@media print {
  nav.top, .toc-side, .rail, .pager, .doc-breadcrumbs, .stars-layer, .mobile-drawer, .doc-search-results, .toc-search, .burger-btn { display: none !important; }
  html, body, .page { background: #fff !important; color: #000 !important; }
  .doc-shell { display: block; padding: 0; max-width: none; margin: 0; gap: 0; grid-template-columns: 1fr; }
  .doc-main h1, .doc-main h2, .doc-main h3 { color: #000 !important; }
  .doc-main p, .doc-main li { color: #1a1a1a !important; }
  .doc-main p.lead { color: #444 !important; }
  .doc-main a { color: #006699 !important; border-bottom-color: #99ccdd !important; }
  .doc-main code { background: #f3f3f3 !important; color: #333 !important; border-color: #ddd !important; }
  .doc-eyebrow { color: #2a8e6c !important; }
  .step-num { background: #e8faf0 !important; border-color: #bfe6d2 !important; color: #2a8e6c !important; }
  .callout { background: #f5f8fc !important; border-color: #ccd7e6 !important; border-left-color: #4d8ec4 !important; page-break-inside: avoid; }
  .callout.tip { background: #f0fbf6 !important; border-color: #bfe6d2 !important; border-left-color: #2a8e6c !important; }
  .callout.warn { background: #fff7e6 !important; border-color: #ffd99c !important; border-left-color: #c98a1a !important; }
  .callout-h { color: #4d8ec4 !important; }
  .callout.tip .callout-h { color: #2a8e6c !important; }
  .callout.warn .callout-h { color: #c98a1a !important; }
  .hotkey-table th { color: #555 !important; }
  .hotkey-table th, .hotkey-table td { border-bottom-color: #ddd !important; color: #1a1a1a !important; }
  .hotkey-table kbd { background: #f3f3f3 !important; border-color: #ccc !important; color: #000 !important; }
  .chapter-card { background: #fff !important; border-color: #ddd !important; page-break-inside: avoid; }
  .chapter-num { color: #555 !important; }
  .chapter-title { color: #000 !important; }
  .chapter-desc { color: #444 !important; }
  .faq-q summary { color: #000 !important; }
  .faq-q[open] .faq-a p { color: #1a1a1a !important; }
  .doc-main { font-size: 11pt; }
}

@media (max-width: 1280px) {
  .doc-shell { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .rail { display: none; }
}
@media (max-width: 1024px) {
  nav.top { padding: 14px 24px; gap: 16px; justify-content: space-between; }
  .nav-pill { display: none; }
  .doc-shell { grid-template-columns: 1fr; gap: 24px; padding: 20px 24px 48px; }
  .toc-side { position: static; max-height: none; padding: 18px; background: rgba(20,40,70,.2); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
  .doc-main h1 { font-size: 32px; }
  .doc-main h2 { font-size: 22px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.top { padding: 12px 18px; gap: 12px; }
  .cta-pill { padding: 9px 14px; font-size: 12px; gap: 6px; }
  .cta-pill svg { width: 12px; height: 12px; }
  .doc-shell { padding: 16px 18px 40px; }
  .doc-main h1 { font-size: 26px; }
  .step { grid-template-columns: 36px 1fr; gap: 14px; }
}
