/* Regex Tester styles. */

.aah-regex__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
	font-weight: 700;
	font-size: 0.95em;
}

.aah-regex__field input,
.aah-regex__field textarea {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.95em;
	font-weight: 400;
}

.aah-regex__field textarea {
	min-height: 110px;
}

.aah-regex__flags {
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	padding: 8px 12px;
	margin: 0 0 12px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.aah-regex__flags legend {
	font-weight: 700;
	font-size: 0.95em;
	padding: 0 4px;
}

.aah-regex__flags label {
	font-weight: 400;
	font-size: 0.95em;
	display: flex;
	gap: 4px;
	align-items: center;
}

.aah-regex__examples {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 12px;
}

.aah-regex__examples-label {
	font-weight: 700;
	font-size: 0.95em;
}

.aah-regex__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.aah-regex__status {
	font-weight: 600;
}

.aah-regex__status:empty {
	display: none;
}

.aah-regex__warning {
	font-weight: 700;
	color: #8a5a00;
}

.aah-regex__results {
	margin-bottom: 12px;
}

.aah-regex__results h3 {
	margin: 0 0 8px;
}

.aah-regex__preview {
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	padding: 12px 16px;
	margin-bottom: 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.aah-regex__preview mark {
	background: #ffe08a;
	padding: 0 2px;
	border-radius: 2px;
}

.aah-regex__list {
	margin: 0;
	padding-left: 1.4rem;
	display: grid;
	gap: 8px;
}

.aah-regex__match-head {
	font-weight: 700;
}

.aah-regex__groups {
	font-size: 0.95em;
	color: var(--aah-muted, #5c5c5c);
}
