.words-step-face {
	position: absolute;
	left: 0;
	top: 0;
	width: 1280px;
	height: 720px;
	transform-origin: 0 0;
	overflow: hidden;
	pointer-events: auto;
}
.words-step-scroll {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	touch-action: pan-y;
	overscroll-behavior: contain;
}
.words-step-column {
	box-sizing: border-box;
	width: var(--words-reading-width);
	max-width: 100%;
	margin: 0 auto;
	padding: var(--words-space-above) 0 var(--words-space-below);
}
.words-step-action {
	display: flex;
	margin-top: var(--words-button-gap);
}
.words-step-face [hidden] { display: none !important; }
.words-step-fading, .words-step-fading * { pointer-events: none !important; }

/* The shared page owns its blocks; the embedded column uses frame geometry. */
.words-step-face .words-step-column {
	width: var(--words-reading-width);
	max-width: 100%;
	padding: var(--words-space-above) 0 var(--words-space-below);
}
.words-step-face .words-step-scroll { touch-action: pan-y; mask-image: none; -webkit-mask-image: none; }
/* An empty Author page has a real first line, even when its editor is closed.
   Written pages retain the shared editor's presentation. */
.words-step-unwritten .words-p[data-copy] { min-height: 1lh; }
/* Any live blank line keeps its tools in place when blur removes the editor-only
   BR. Saving omits blanks from the copy without removing the line under the caret. */
.words-step-author-page .words-step-working-line { min-height: 1lh; }
.words-step-unwritten .words-p.editing { background: transparent; box-shadow: none; }
.words-step-unwritten .words-block:not(:hover) > .words-block-tools { opacity: 0; visibility: hidden; }
body:has(.words-step-unwritten .words-p.editing) #canvas-author-edit-hint { display: none; }

/* These cues are face-owned and follow live input, including editor-only BRs. */
.words-step-author-page .words-step-column {
	position: relative;
	min-height: 100%;
	padding-top: max(var(--words-space-above), 20px);
}
.words-step-author-page.words-step-empty-outline .words-step-column::before {
	content: '';
	position: absolute;
	top: max(var(--words-space-above), 20px);
	bottom: var(--words-space-below);
	left: 0;
	right: 0;
	outline: 1px solid var(--rule);
	outline-offset: -1px;
	pointer-events: none;
}
.words-step-empty-caret .words-step-empty-entry.editing {
	caret-color: var(--accent);
	caret-shape: block;
}
.words-step-face .words-step-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding-inline-start: .8em;
	opacity: .35;
	pointer-events: none;
	user-select: none;
}

/* Type and form padding use shared Words' screen-sized values divided by the
   actual enclosing frame scale. */
.words-step-face .words-btn,
.words-step-face .words-signup-input,
.words-step-face .words-signup-submit {
	box-sizing: border-box;
	min-height: calc(var(--words-step-target-height, 0px) / var(--words-render-scale, 1));
}

/* Upright phones and tablets read outside the canvas frame. Landscape tablets
   and wider screens keep the frame's placement. */
@media (max-width: 1024px) and (orientation: portrait) {
	.words-step-face {
		transform: none !important;
		--words-render-scale: 1 !important;
		top: calc(var(--words-page-top, 0px) + var(--s-3));
		bottom: calc(var(--words-page-bottom, 0px) + var(--s-3));
		width: 100%;
		height: auto;
	}
	.words-step-face .words-step-column {
		padding-left: var(--s-8);
		padding-right: var(--s-8);
	}
}
