/* Demo locks (demoLock.js): a control that has nothing to act on in a demo, because the demo's subject is
   pinned. It looks as it does in the real tool and says why it is fixed when clicked, instead of ignoring the
   click. The demos' own file: common.css is not changed for a demo (docs/modules/site_info.md, "The rule").
   The note takes common.css's tooltip colours (--tt-*), which every page loads. */
[data-demo-locked] {
    cursor: not-allowed;
}

.demo-lock-note {
    position: fixed;
    z-index: 2000;
    max-width: min(300px, calc(100vw - 16px));
    padding: 8px 11px;
    border: 1px solid var(--tt-line);
    border-radius: 9px;
    background: var(--tt-surface);
    box-shadow: var(--tt-shadow);
    color: var(--tt-ink);
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.demo-lock-note.is-on {
    opacity: 1;
}
