.abds-seo-snippet-preview {
	font-family: arial, sans-serif;
	border: 1px solid var( --abds-color-border );
	border-radius: var( --abds-radius );
	padding: var( --abds-space-3 );
	margin-top: var( --abds-space-2 );
}

/*
 * The snippet-preview title/url/description colours below are DELIBERATELY
 * Google's own SERP colours (#1a0dab / #006621 / #545454), not design tokens:
 * this block must look like a real Google result, so it stays pinned to
 * Google's palette regardless of the plugin's theme.
 */
.abds-seo-snippet-title {
	color: #1a0dab;
	font-size: 18px;
	line-height: 1.3;

	/* Truncation (with an explicit "…") is already computed by pixel width
	   in JS (see snippet-width.js) — the text handed here already fits the
	   600px desktop budget. Wrapping (not clipping) is deliberate: this
	   sidebar is much narrower than 600px, so the already-correct text
	   still needs to flow across lines rather than being clipped again. */
	overflow-wrap: break-word;
}

.abds-seo-snippet-url {
	color: #006621;
	font-size: 13px;
}

.abds-seo-snippet-description {
	color: #545454;
	font-size: 13px;
	line-height: 1.4;
}

.abds-seo-char-count.is-over {
	color: var( --abds-color-poor-text );
	font-weight: var( --abds-font-weight-semibold );
}

.abds-seo-block-rec .components-button.is-link {
	text-align: left;
	white-space: normal;
	height: auto;
}

.abds-seo-history-entry {
	border-bottom: 1px solid var( --abds-color-border );
	padding: var( --abds-space-2 ) 0;
}

.abds-seo-history-entry:last-child {
	border-bottom: none;
}

.abds-seo-history-meta {
	color: var( --abds-color-text-muted );
	font-size: var( --abds-font-size-sm );
	margin-bottom: var( --abds-space-1 );
}

.abds-seo-history-values {
	font-size: 13px;
	margin-bottom: 6px;
	overflow-wrap: break-word;
}

.abds-seo-history-before {
	color: var( --abds-color-poor-text );
	text-decoration: line-through;
}

.abds-seo-history-after {
	color: var( --abds-color-good-text );
}

.abds-seo-prepublish-list {
	list-style: disc;
	margin: 0 0 0 20px;
	padding: 0;
}

.abds-seo-prepublish-list li {
	margin-bottom: 4px;
}

.abds-seo-ai-suggest {
	margin-top: 8px;
}

.abds-seo-ai-diff {
	font-size: 13px;
	margin-bottom: 8px;
}

.abds-seo-ai-diff-before,
.abds-seo-ai-diff-after {
	border-radius: var( --abds-radius );
	padding: 6px var( --abds-space-2 );
	margin-bottom: var( --abds-space-1 );
	overflow-wrap: break-word;
}

.abds-seo-ai-diff-before {
	background: var( --abds-color-poor-bg );
}

.abds-seo-ai-diff-after {
	background: var( --abds-color-good-bg );
}

.abds-seo-ai-suggest-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.abds-seo-serp-list {
	margin: 0 0 0 20px;
	padding: 0;
}

.abds-seo-serp-list li {
	margin-bottom: 10px;
}

.abds-seo-serp-domain {
	display: block;
	color: var( --abds-color-good-text );
	font-size: var( --abds-font-size-sm );
}

.abds-seo-serp-snippet {
	margin: 2px 0 0;
	color: var( --abds-color-text-muted );
	font-size: var( --abds-font-size-sm );
}

/*
 * Monthly report. The print rules are the PDF deliverable: this plugin
 * ships no PDF engine, so "Друк / зберегти PDF" is the browser's own
 * print-to-PDF over these styles. They are also the seam a Stage 7
 * white-label export restyles — the report's markup is branding-free by
 * design (see ABDS_SEO_Monthly_Report_Builder).
 */
.abds-seo-report-header {
	margin: 16px 0 24px;
}

.abds-seo-report-header h2 {
	margin: 0 0 4px;
}

.abds-seo-report-section {
	margin-bottom: 28px;
}

@media print {
	/* WordPress' own chrome is not part of the report. */
	#adminmenumain,
	#wpadminbar,
	#wpfooter,
	.abds-seo-no-print,
	.notice,
	.update-nag {
		display: none !important;
	}

	#wpcontent,
	#wpbody-content {
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
		width: 100% !important;
	}

	.abds-seo-monthly-report {
		margin: 0;
		color: #000;
	}

	/* A section split across a page break is far harder to read than a
	   slightly emptier page. */
	.abds-seo-report-section {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.abds-seo-monthly-report table {
		border-collapse: collapse;
		width: 100%;
	}

	.abds-seo-monthly-report th,
	.abds-seo-monthly-report td {
		border: 1px solid #ccc;
		padding: 4px 6px;
	}

	/* Zebra striping wastes toner and adds nothing on paper. */
	.abds-seo-monthly-report .striped > tbody > :nth-child(odd) {
		background: transparent !important;
	}
}
