/* Document viewer, Solid design (spec §3.7): flat filled shapes. The viewer on a pale tint of the accent
   with no border (a small lift in the light scheme), the toolbars filled with the accent, white icons, filled fields, and a flat
   page. Loaded after document.css, only where the design is chosen. It changes design tokens and our own
   fallbacks, never a property a Style control writes, so the Style tab still wins. */
.hafe-design-solid :is(.hafe-document, .hafe-embed) {
	--hafe-shadow: var(--hafe-solid-lift);
	--hafe-radius: 1rem;
	--hafe-radius-sm: 0.5rem;
	--hafe-pill: 0.5rem;
}

.hafe-design-solid :is(.hafe-document, .hafe-embed) {
	--hafe-document-paper: color-mix(in srgb, var(--hafe-accent) 7%, var(--hafe-surface));
	--hafe-document-frame: transparent;
	--hafe-document-back: color-mix(in srgb, var(--hafe-accent) 13%, var(--hafe-surface));
	--hafe-document-bar: var(--hafe-accent);
	--hafe-document-bar-ink: var(--hafe-on-accent);
	--hafe-document-hover: color-mix(in srgb, currentcolor 16%, transparent);
	--hafe-document-press: var(--hafe-on-accent);
	--hafe-document-press-ink: var(--hafe-accent-ink);
	--hafe-document-field-line: transparent;
	--hafe-document-ring: currentcolor;
	--hafe-document-sheet: none;
}

.hafe-scheme-dark.hafe-design-solid :is(.hafe-document, .hafe-embed) {
	--hafe-document-paper: color-mix(in srgb, var(--hafe-accent) 10%, var(--hafe-surface));
	--hafe-document-back: color-mix(in srgb, var(--hafe-accent) 18%, var(--hafe-surface));
	--hafe-document-press-ink: var(--hafe-accent);
}

/* In the side panel, on the tint: hovers and the open tab in the accent. */
.hafe-design-solid .hafe-document__side {
	--hafe-document-hover: var(--hafe-tint-strong);
	--hafe-document-press: var(--hafe-accent);
	--hafe-document-press-ink: var(--hafe-on-accent);
}
