/* The demo page (#35290), over the app's own stylesheet: only what a static page needs. */

/* The layout is the app's room (body.layout-chat, #35539): one screen tall, the header and the
   room's bar in place and the messages scrolling in the card; on a phone the page scrolls, with
   the menu and the room's bar stuck to the top and the composer to the bottom (demo.js). */
.layout-demo .demo-chat { display: flex; flex-direction: column; gap: 0.75rem; }
.layout-demo .demo-note { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.layout-demo .site-nav > a { color: var(--white); }

/* Nothing is live: the controls look as they do, but don't act. */
.layout-demo .message button, .layout-demo .demo-composer { pointer-events: none; }
.layout-demo .message .consensus-toggle { pointer-events: auto; }   /* the one live button: it opens the folded discussion */
/* Not dimmed (#35539): on a phone it is stuck over the messages, which would show through. */
.layout-demo .demo-composer textarea { width: 100%; font: inherit; resize: none; }

/* The Escalate button, just pressed: a press shading it, and a fingertip's ring. */
.escalate-md.is-touched { position: relative; background: var(--brand); color: var(--white); border-color: var(--brand);
	box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.25); transform: translateY(1px); }
.escalate-md.is-touched::after {
	content: ""; position: absolute; left: 62%; top: 55%; width: 1.6rem; height: 1.6rem; margin: -0.8rem 0 0 -0.8rem;
	border-radius: 50%; border: 2px solid var(--accent); background: rgb(232 103 23 / 0.18);
}
.layout-demo .site-nav > a[aria-current="page"] { border-bottom-color: var(--white); }

/* Words whole in the consensus's tables: on a phone they scroll sideways rather than break
   mid-word (the app's .prose rule, not yet its messages'). */
.layout-demo .markdown table { overflow-wrap: normal; }
.layout-demo .ct-item { min-width: 0; }   /* a grid item: without it a wide table widens the item */
