/* Reading layout, scoped to documentation so the homepage remains unchanged. */
.doc-content .definition-list {margin: 20px 0 32px;}
.doc-content .definition-list > div {display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,3fr);gap:12px 24px;padding:14px 0;border-bottom:1px solid var(--doc-sidebar-border);}
.doc-content .definition-list dt {font-weight:650;line-height:1.5;}
.doc-content .definition-list dd {margin:0;line-height:1.65;}
@media(max-width:640px){.doc-content .definition-list > div{grid-template-columns:1fr;gap:6px;}}
.doc-layout {
    gap: clamp(24px, 3vw, 48px);
    padding-block: 32px 64px;
}

.doc-sidebar {
    height: auto;
    max-height: calc(100dvh - 120px);
    padding: 20px;
}

.doc-sidebar__disclosure > summary {
    padding: 4px 0 12px;
    color: var(--text-color);
    border-bottom: 1px solid var(--doc-sidebar-border);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.doc-sidebar__disclosure > summary:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 5px;
    border-radius: 3px;
}

.doc-layout .doc-content {
    width: 100%;
    max-width: 920px;
    padding: 0;
    text-align: left;
    background: none;
}

.doc-layout .doc-content section {
    padding: 0;
    text-align: left;
    background: none;
}

.doc-layout .doc-content h1 {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    line-height: 1.12;
    margin-bottom: 20px;
}

.doc-layout .doc-content h2::after {
    left: 0;
    transform: none;
}

.doc-content > p,
.doc-section > p,
.doc-section > ul,
.doc-section > ol {
    max-width: 75ch;
}

.doc-content .doc-section {
    margin-top: 32px;
}

.doc-content .doc-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.doc-content .doc-illustration {
    margin: 20px 0 28px;
}

.doc-content .doc-illustration a {
    display: inline-block;
    max-width: 100%;
}

.doc-content .doc-illustration img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--doc-sidebar-border);
    border-radius: 8px;
}

.doc-content .doc-illustration[data-doc-asset="project-history"] img {
    width: 360px;
}

.doc-scene-shell { display:none; position:relative; inset:auto; margin:0; padding:0; width:100%; max-width:none; max-height:none; border:1px solid var(--doc-sidebar-border); border-radius:8px; background:var(--bg-color); color:var(--text-color); }
.doc-scene-available .doc-scene-shell { display:block; }
.doc-scene-viewport { position:relative; width:100%; height:auto; aspect-ratio:var(--doc-scene-ratio,1280 / 800); max-height:760px; overflow:hidden; }
.doc-illustration[data-doc-scene] { position:relative; }
.doc-illustration[data-doc-scene="project-manager"] { --doc-scene-ratio:1280 / 760; }
.doc-illustration[data-doc-scene="processing-graph"] { --doc-scene-ratio:1600 / 760; }
.doc-illustration[data-doc-scene="code-workspace"] { --doc-scene-ratio:1382 / 688; }
.doc-illustration[data-doc-scene="code-chat"] { --doc-scene-ratio:360 / 614; }
.doc-illustration[data-doc-scene="code-chat"] .doc-scene-shell { max-width:362px; }
.doc-illustration[data-doc-scene="main-window"] { --doc-scene-ratio:900 / 730; }
.doc-illustration[data-doc-scene="program-modes"] { --doc-scene-ratio:900 / 400; }
.doc-illustration:is([data-doc-scene="main-window"],[data-doc-scene="program-modes"]) .doc-scene-shell { max-width:902px; }
.doc-illustration:is([data-doc-scene="canny-result"],[data-doc-scene="processing-chain"]) { --doc-scene-ratio:1278 / 700; }
.doc-illustration[data-doc-scene="capture-practice"] { --doc-scene-ratio:1918 / 420; }
.doc-scene-placeholder { position:absolute; inset:0; margin:0; display:grid; place-items:center; padding:24px; text-align:center; color:var(--secondary-text-color); }
.doc-scene-ready .doc-scene-placeholder { display:none; }
.doc-illustration:not(.doc-scene-ready) .doc-scene-stage { visibility:hidden; }
.doc-scene-stage { position:absolute; top:0; left:0; width:1280px; height:760px; transform-origin:0 0; }
.doc-scene-stage screph-selector-demo { display:block; width:1280px; height:800px; }
.doc-scene-stage screph-settings-demo { display:block; }
.doc-scene-caption { display:none; align-items:center; gap:12px; justify-content:space-between; margin-top:8px; color:var(--secondary-text-color); font-size:.85rem; }
.doc-scene-caption button, .doc-scene-controls button { font:inherit; padding:7px 12px; background:var(--bg-color); color:var(--text-color); border:1px solid var(--doc-sidebar-border); border-radius:5px; }
.doc-scene-controls { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; padding:10px; border-top:1px solid var(--doc-sidebar-border); font-size:.85rem; }
.doc-scene-controls button:focus-visible, .doc-scene-caption button:focus-visible { outline:2px solid var(--link-color); outline-offset:2px; }
.doc-illustration:not(.doc-scene-ready) .doc-scene-controls { visibility:hidden; }
.doc-scene-ready .doc-scene-shell { display:block; }
.doc-scene-ready .doc-scene-caption { display:flex; }
.doc-scene-available .doc-scene-caption { display:flex; flex-wrap:wrap; justify-content:flex-end; }
.doc-scene-caption > span { margin-right:auto; }
.doc-scene-hint, .doc-scene-instruction { flex-basis:100%; }
.doc-scene-ready [data-scene-open] { visibility:hidden; }
.doc-scene-large .doc-scene-viewport { overflow:auto; max-height:560px; }
.doc-scene-large .doc-scene-viewport::after { content:""; display:block; width:var(--scene-content-width); height:var(--scene-content-height); }
.doc-scene-shell[data-expanded] { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; border:0; border-radius:0; display:flex; flex-direction:column; visibility:visible; }
.doc-scene-shell[data-expanded] .doc-scene-viewport { flex:1; min-height:0; max-height:none; }
.doc-scene-shell[data-expanded] .doc-scene-controls { flex:none; }
.doc-scene-shell::backdrop { background:var(--bg-color); }
.doc-illustration:fullscreen { background:var(--bg-color); }
@media print {
  .doc-scene-shell, .doc-scene-caption button, [data-scene-status] { display:none !important; }
  .doc-scene-caption { display:block; }
}

@media (max-width: 992px) {
    .doc-layout {
        gap: 28px;
        padding-top: 20px;
    }

    .doc-sidebar {
        margin: 0;
        padding: 14px 18px;
        max-height: none;
        border: 1px solid var(--doc-sidebar-border);
    }

    .doc-sidebar__disclosure:not([open]) > summary {
        padding-bottom: 4px;
        border-bottom: 0;
    }
}

/* Same input-transparent presentation frame as the live desktop demos. */
.screph-ui-highlight{position:absolute;left:0;top:0;z-index:50;overflow:visible;pointer-events:none;user-select:none}
