/* SEAgent's own styles, loaded after the framework's. Brand colours come from Global settings > Colours
   (text-primary, btn-primary...), so nothing here hard codes them */

/* Integrations: a service's heading with its icon and status */
.seo-integration-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.seo-integration-head > div {
	flex: 1;
	min-width: 0;
}
.seo-integration-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 24%;
	background: #f3f5f9;
	font-size: 26px;
}
.seo-integration-icon i {
	color: inherit;
}
.seo-status {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	background: #f3f5f9;
	color: #5b6272;
}
.seo-status-ok {
	background: #e3f6ef;
	color: #0b6b55;
}
.seo-status-problem {
	background: #fdecea;
	color: #b3261e;
}
.seo-facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 20px;
}
.seo-facts dt {
	font-weight: 500;
	color: #74788d;
}
.seo-facts dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}
.seo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}
.seo-actions form {
	margin: 0;
}

/* the Overview's welcome before a site is connected */
.seo-welcome {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

/* the line under the period picker: what's shown, and Sync now */
.seo-showing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: -8px 0 16px;
}
.seo-sync {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.seo-chart {
	position: relative;
	height: 320px;
}

/* keyword and page tables: the name takes the room and wraps, the numbers line up */
.seo-table td,
.seo-table th {
	vertical-align: middle;
}
.seo-table th {
	font-weight: 600;
	font-size: 12px;
	color: #74788d;
	border-top: 0;
	white-space: nowrap;
}
.seo-name {
	max-width: 280px;
	overflow-wrap: anywhere;
}
.seo-num {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.seo-table .stats-change {
	font-size: 12px;
}

@media (max-width: 575.98px) {
	.seo-welcome {
		flex-direction: column;
	}
	.seo-chart {
		height: 240px;
	}
}

/* Claude's insights on the Overview */
.seo-insights-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.seo-insights-head form {
	margin: 0;
}
.seo-insights-summary {
	font-size: 15px;
	line-height: 1.6;
	max-width: 70em;
}
.seo-insights-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: grid;
	gap: 14px;
}
.seo-insights-list li {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid #e9ecef;
}
.seo-insight-kind {
	font-size: 12px;
	align-self: start;
	white-space: nowrap;
}
.seo-insight-text {
	min-width: 0;
	max-width: 70em;
	overflow-wrap: anywhere;
}
.seo-insight-action {
	font-size: 13px;
}
@media (max-width: 575.98px) {
	.seo-insights-list li {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
