/*
 * Static text items of the form layouts (sys/jsp/layouts/text.jsp): the item's title shown as
 * paragraphs. The item's CSS field picks a style: rqtext-intro, rqtext-note, rqtext-info,
 * rqtext-warning, or any site class. Colors follow the look50 tokens when they are defined,
 * with the classic look as fallback.
 */
.rqlaytext {
	font-size: 14px;
	line-height: 20px;
	color: var(--l50-fg-2, #46555F);
	margin: 4px 0 12px 0;
}

.rqlaytext p {
	margin: 0 0 8px 0;
}

.rqlaytext p:last-child {
	margin-bottom: 0;
}

/* the introduction of a tab or a section, above its content: as wide as that content, so its edges line
   up with the cards and groups around it */
.rqlaytext.rqtext-intro {
	max-width: none;
}

/* a quiet remark */
.rqlaytext.rqtext-note {
	font-size: 13px;
	line-height: 18px;
	color: var(--l50-muted, #5B6872);
}

/* framed messages */
.rqlaytext.rqtext-info,
.rqlaytext.rqtext-warning {
	padding: 10px 14px;
	border-radius: var(--l50-r, 6px);
	border-left: 4px solid;
}

.rqlaytext.rqtext-info {
	background: var(--l50-accent-soft, #E6F0F8);
	border-left-color: var(--l50-accent, #2A76B3);
	color: var(--l50-fg, #12202B);
}

.rqlaytext.rqtext-warning {
	background: var(--l50-pre-bg, #FCF0DA);
	border-left-color: var(--l50-mark, #E0A100);
	color: var(--l50-pre-fg, #6B4400);
}

/* in the layout editor: an empty text keeps a visible, grabbable frame */
.rqlaytext.rqlaytextdesign {
	min-height: 20px;
	border: 1px dashed var(--l50-line, #DCE3EA);
	padding: 4px 8px;
}
