﻿.google-preferred-source {
	--gps-columns: 44px minmax(0, 1fr) 24px;
	--gps-gap: 18px;
	--gps-min-height: 78px;
	--gps-padding: 15px 18px;
	--gps-radius: 8px;
	--gps-icon-size: 44px;
	--gps-arrow-size: 24px;
	--gps-font-size: 17px;

	clear: both;
	width: 100%;
	margin: 28px 0 25px;
}

/*
 * По-специфичният селектор е умишлен.
 * Herald има общо правило за .entry-content div a:hover, което премахва
 * долния border и padding-bottom. Тук ги фиксираме за всички състояния.
 */
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link,
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:hover,
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:focus,
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:active {
	display: grid;
	grid-template-columns: var(--gps-columns);
	align-items: center;
	gap: var(--gps-gap);

	box-sizing: border-box;
	width: 100%;
	min-height: var(--gps-min-height);
	margin: 0 !important;
	padding: var(--gps-padding) !important;

	border: 1px solid rgba(59, 125, 216, 0.72) !important;
	border-radius: var(--gps-radius);
	background: #fff;
	box-shadow: 0 2px 10px rgba(33, 71, 122, 0.05);

	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;

	color: #2d3138;
	text-decoration: none !important;
	line-height: normal;

	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}

/* При hover се сменят единствено цветовете. Няма движение или преоразмеряване. */
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:hover {
	padding: var(--gps-padding) !important;
	border: 1px solid #3b7dd8 !important;
	background: #f8fbff;
	color: #1f252d;
	box-shadow: 0 2px 10px rgba(33, 71, 122, 0.05);
	transform: none !important;
}

.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:focus {
	color: #1f252d;
}

.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:focus-visible {
	outline: 3px solid rgba(59, 125, 216, 0.24);
	outline-offset: 3px;
	border-color: #3b7dd8 !important;
}

.google-preferred-source__google-icon,
.google-preferred-source__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	position: static;
	transform: none;
}

.google-preferred-source__google-icon {
	width: var(--gps-icon-size);
	height: var(--gps-icon-size);
}

.google-preferred-source__google-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.google-preferred-source__text {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	position: static;
	transform: none;

	font-size: var(--gps-font-size);
	font-weight: 700;
	line-height: 1.42;
	letter-spacing: -0.1px;
}

.google-preferred-source__arrow {
	width: var(--gps-arrow-size);
	height: var(--gps-arrow-size);
	color: #2f73d6;
}

.google-preferred-source__arrow svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:hover .google-preferred-source__text,
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:hover .google-preferred-source__google-icon,
.single .herald-entry-content .google-preferred-source > .google-preferred-source__link:hover .google-preferred-source__arrow {
	margin: 0;
	padding: 0;
	position: static;
	transform: none !important;
}

@media (max-width: 991px) {
	.google-preferred-source {
		--gps-columns: 40px minmax(0, 1fr) 22px;
		--gps-gap: 15px;
		--gps-min-height: 76px;
		--gps-padding: 14px 16px;
		--gps-icon-size: 40px;
		--gps-arrow-size: 22px;
		--gps-font-size: 16px;

		margin: 26px 0 23px;
	}
}

@media (max-width: 767px) {
	.google-preferred-source {
		--gps-columns: 38px minmax(0, 1fr) 20px;
		--gps-gap: 12px;
		--gps-min-height: 74px;
		--gps-padding: 14px;
		--gps-radius: 7px;
		--gps-icon-size: 38px;
		--gps-arrow-size: 20px;
		--gps-font-size: 15px;

		margin: 24px 0 21px;
	}

	.google-preferred-source__text {
		line-height: 1.45;
		letter-spacing: 0;
	}
}

@media (max-width: 380px) {
	.google-preferred-source {
		--gps-columns: 36px minmax(0, 1fr) 18px;
		--gps-gap: 10px;
		--gps-padding: 13px 12px;
		--gps-icon-size: 36px;
		--gps-arrow-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single .herald-entry-content .google-preferred-source > .google-preferred-source__link {
		transition: none;
	}
}
