/* CSS Flexbox Generator styles. */

.aah-flex__settings {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

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

.aah-flex__field select,
.aah-flex__field input {
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
}

.aah-flex__hint {
	font-weight: 400;
	font-size: 0.85em;
	color: var(--aah-muted, #5c5c5c);
}

.aah-flex__items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.aah-flex__card {
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	padding: 12px;
}

.aah-flex__card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.aah-flex__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

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

/* Side-by-side layout: the preview and the code boxes
 * stack in a single column inside the right-hand
 * output column instead of sitting side by side. */
.aah-flex__panels {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 12px;
}

.aah-flex__col {
	min-width: 0;
}

.aah-flex__col label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.aah-flex__stage {
	display: flex;
	min-height: 220px;
	box-sizing: border-box;
	padding: 16px;
	border: 1px dashed var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	background: #fafafa;
}

.aah-flex__box {
	padding: 16px;
	color: #ffffff;
	text-align: center;
	border-radius: 4px;
}

.aah-flex__col textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 160px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	white-space: pre;
}

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

.aah-flex__warnings {
	color: var(--aah-muted, #5c5c5c);
}

.aah-flex__explainer {
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	padding: 12px 16px;
	margin-bottom: 12px;
}

.aah-flex__explainer summary {
	font-weight: 700;
	cursor: pointer;
}

.aah-flex__explainer dl {
	margin: 12px 0 0 0;
}

.aah-flex__explainer dt {
	font-weight: 700;
	margin-top: 8px;
}

.aah-flex__explainer dd {
	margin: 2px 0 0 0;
}
