/* docs.css — the open product tour, docs.html, on the Load Factor site system (lf- in site.css).
   (The signed-in tier is the video guide in the app's Guide tab: user_guide.css.)

   Under the centred hero the tour keeps the documentation convention: a sticky table of contents on the
   left and one measured column of screenshots. White ground, #F5F5F7 tiles, #D2D2D7 hairlines, Inter,
   #0E8A6B links, mint only on the call-to-action pill. */

:root { --docs-sidebar-w: 248px; --docs-nav-h: 48px; }

/* the redaction note under the hero */
.docs-notice {
    max-width: 640px;
    margin: 28px auto 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.docs-notice strong { color: var(--ink); font-weight: 600; }
.docs-notice a { color: var(--green); }

/* ---- the tour: contents + one column ---------------------------------- */
.docs-shell {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 88px 22px 120px;
    text-align: left;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--docs-nav-h) + 24px);
    flex: 0 0 var(--docs-sidebar-w);
    width: var(--docs-sidebar-w);
    max-height: calc(100vh - var(--docs-nav-h) - 48px);
    overflow-y: auto;
}

.docs-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.docs-toc { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.docs-toc:empty { display: none; }
.docs-toc a {
    display: block;
    margin-left: -1px;
    padding: 7px 0 7px 14px;
    border-left: 2px solid transparent;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease-out, border-color .2s ease-out;
}
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.docs-toc-locked { margin-top: 6px; }

.docs-sidebar-cta {
    margin-top: 24px;
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--paper2);
}
.docs-cta-head { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.docs-sidebar-cta p { font-size: 14px; line-height: 1.5; color: var(--ink2); margin: 0 0 12px; }

.docs-cta-btn, .docs-ghost-btn { color: var(--green); font-size: 15px; font-weight: 500; text-decoration: none; }
.docs-cta-btn:after, .docs-ghost-btn:after { content: "\00a0\203A"; }
.docs-cta-btn:hover, .docs-ghost-btn:hover { text-decoration: underline; }

.docs-main { flex: 1 1 auto; min-width: 0; }

.docs-loading {
    padding: 56px 32px;
    border-radius: 18px;
    background: var(--paper2);
    text-align: center;
    font-size: 17px;
    line-height: 1.5;
    color: var(--muted);
}
.docs-loading a { color: var(--green); }

/* ---- one feature, its steps ------------------------------------------- */
.docs-feature { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--docs-nav-h) + 24px); }
.docs-feature:last-child { border-bottom: 0; margin-bottom: 0; }
.docs-feature h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.docs-blurb { font-size: 19px; line-height: 1.45; color: var(--muted); margin: 0 0 32px; max-width: 640px; }

.docs-step { margin: 0 0 36px; }
.docs-step figcaption { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.docs-step-n { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.docs-step-label { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.docs-step-note { font-size: 15px; line-height: 1.5; color: var(--ink2); margin: 0 0 14px 2.1em; }
.docs-shot { border-radius: 14px; overflow: hidden; background: #E8E8ED; padding: 8px; }
.docs-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }

.docs-shell a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 1000px) {
    .docs-shell { flex-direction: column; gap: 32px; padding-top: 64px; }
    .docs-sidebar { position: static; width: 100%; flex: none; max-height: none; }
    .docs-toc { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
    .docs-toc a { margin: 0; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 980px; }
    .docs-toc a.active { border-color: var(--ink); }
}
@media (max-width: 734px) {
    .docs-shell { padding: 48px 20px 80px; }
    .docs-feature h2 { font-size: 26px; }
    .docs-blurb { font-size: 17px; }
    .docs-step-note { margin-left: 0; }
    .docs-toc a { min-height: 44px; }
    .docs-shot { padding: 4px; border-radius: 10px; }
}
