/* HTML Meta Tag Generator — scoped under .aah-tool via the shared wrapper. */

.aah-metatags__sections {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 0.75rem;
}

/* In the side-by-side layout the two fieldsets sit in the
 * narrower left column, where two across would squeeze the
 * inputs — so they stack vertically there. Below 768px the
 * split stacks to full width and the two across fit again. */
@media (min-width: 768px) {
	.aah-split__controls .aah-metatags__sections {
		flex-direction: column;
	}
}

.aah-metatags__group {
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid var(--aah-border);
	border-radius: 8px;
	padding: 1rem;
}

.aah-metatags__group legend {
	font-weight: 700;
	padding: 0 0.4rem;
}

.aah-metatags__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
	font-size: 0.95em;
}

.aah-metatags__field:last-child {
	margin-bottom: 0;
}

.aah-metatags__field input[type="text"],
.aah-metatags__field input[type="url"],
.aah-metatags__field textarea,
.aah-metatags__field select {
	font-weight: 400;
}

.aah-metatags__field input[type="color"] {
	width: 64px;
	height: 44px;
	padding: 2px;
	border: 1px solid var(--aah-border);
	border-radius: 6px;
	background: var(--aah-bg);
	cursor: pointer;
}

.aah-metatags__hint {
	font-weight: 400;
	font-size: 0.85em;
	color: var(--aah-muted);
}

.aah-metatags__count {
	font-weight: 600;
	font-size: 0.85em;
	color: var(--aah-muted);
}

.aah-metatags__count--over {
	color: #b45309;
}

.aah-metatags__warn {
	font-weight: 600;
	font-size: 0.85em;
	color: #b91c1c;
}

.aah-metatags__warn:empty,
.aah-metatags__count:empty {
	display: none;
}

.aah-metatags__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

/* The preview and the generated HTML now stack in a single
 * column inside the right-hand output column, instead of
 * sitting side by side — a nested two-column layout inside
 * the split would squeeze both. */
.aah-metatags__panels {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
	margin-bottom: 0.75rem;
}

.aah-metatags__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.aah-metatags__col label {
	font-weight: 700;
}

.aah-metatags__col textarea {
	width: 100%;
	min-height: 320px;
	flex: 1;
	resize: vertical;
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.9em;
	line-height: 1.5;
}

.aah-metatags__preview {
	border: 1px solid var(--aah-border);
	border-radius: 6px;
	padding: 1rem;
	background: var(--aah-bg);
	min-height: 320px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.aah-metatags__google-url {
	color: #006621;
	font-size: 0.85em;
}

.aah-metatags__google-title {
	color: #1a0dab;
	font-size: 1.1em;
	line-height: 1.3;
}

.aah-metatags__google-title:hover {
	text-decoration: underline;
}

.aah-metatags__google-desc {
	color: #545454;
	font-size: 0.9em;
	line-height: 1.4;
}

.aah-metatags__social {
	border: 1px solid var(--aah-border);
	border-radius: 8px;
	overflow: hidden;
}

.aah-metatags__social-image {
	background: #f2f2f2;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--aah-muted);
	font-size: 0.9em;
}

.aah-metatags__social-image img {
	width: 100%;
	display: block;
}

.aah-metatags__social-body {
	padding: 0.75rem;
}

.aah-metatags__social-title {
	font-weight: 700;
	line-height: 1.3;
}

.aah-metatags__social-desc {
	color: var(--aah-muted);
	font-size: 0.9em;
	line-height: 1.4;
}

.aah-metatags__social-domain {
	color: var(--aah-muted);
	font-size: 0.85em;
}

.aah-metatags__status {
	color: var(--aah-muted);
	font-weight: 600;
}

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

@media (max-width: 700px) {
	.aah-metatags__sections {
		flex-direction: column;
	}
}
