/* Open Graph Preview Checker styles. */

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

.aah-ogpreview__field textarea {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.95em;
	font-weight: 400;
	min-height: 180px;
}

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

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

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

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

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

.aah-ogpreview__card {
	max-width: 500px;
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	overflow: hidden;
	background: var(--aah-bg, #ffffff);
}

.aah-ogpreview__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 16px;
	background: var(--aah-bg-soft, #fafafa);
	border-bottom: 1px solid var(--aah-border, #d9d9d9);
	text-align: center;
}

.aah-ogpreview__card--large .aah-ogpreview__image {
	min-height: 200px;
}

.aah-ogpreview__card--x-large .aah-ogpreview__image {
	min-height: 180px;
}

.aah-ogpreview__card--x-small .aah-ogpreview__image {
	min-height: 80px;
}

.aah-ogpreview__image-url {
	font-size: 0.85em;
	color: var(--aah-muted, #5c5c5c);
	word-break: break-all;
}

.aah-ogpreview__image-none {
	font-weight: 700;
	color: var(--aah-muted, #5c5c5c);
}

/* When the real image loads it fills the image area
 * (padding off, natural aspect ratio). */
.aah-ogpreview__image--has-img {
	padding: 0;
}

.aah-ogpreview__image img {
	display: block;
	width: 100%;
	height: auto;
}

.aah-ogpreview__body {
	padding: 12px 16px;
}

.aah-ogpreview__domain {
	font-size: 0.85em;
	color: var(--aah-muted, #5c5c5c);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 4px;
}

.aah-ogpreview__title {
	font-weight: 700;
	font-size: 1.05em;
	margin-bottom: 4px;
}

.aah-ogpreview__desc {
	font-size: 0.95em;
	color: var(--aah-ink, #232323);
}

.aah-ogpreview__empty {
	color: var(--aah-muted, #5c5c5c);
	font-style: italic;
}

/* The small summary card lays the image beside the text. */
.aah-ogpreview__card--x-small {
	display: flex;
}

.aah-ogpreview__card--x-small .aah-ogpreview__image {
	flex: 0 0 120px;
	border-bottom: none;
	border-right: 1px solid var(--aah-border, #d9d9d9);
}

.aah-ogpreview__card--x-small .aah-ogpreview__body {
	flex: 1;
}

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

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

.aah-ogpreview__list {
	margin: 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 4px;
}

.aah-ogpreview__issue--missing {
	color: var(--aah-crimson-dark, #b81f2e);
}

.aah-ogpreview__issue--warning {
	color: #8a5a00;
}
