

.news-ads-zone {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Same local reset .news-ads-related and search.css's .na-search already
   carry: a theme with no global box-sizing reset would otherwise size the
   backlink/sticky-toggle padding+border on top of the declared width
   instead of inside it. */
.news-ads-zone *,
.news-ads-zone *::before,
.news-ads-zone *::after {
	box-sizing: border-box;
}

.news-ads-item {
	display: inline-block;
	max-width: 100%;
	transition: opacity .15s ease, transform .15s ease;
}

.news-ads-item:not(.news-ads-item--backlink):hover {
	opacity: .92;
}

.news-ads-item img,
.news-ads-item video {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Colors/spacing here are the pre-Settings-page defaults; the live values
   the site owner actually configured in Settings ← Style are printed as an
   !important inline <style> block by StyleSettings::output_css() on every
   page load and take over from here — but this static rule stays
   !important too as the fallback for the rare case that block never prints
   (a theme that skips wp_head() entirely, an editor-canvas preview). */
.news-ads-item--backlink {
	display: block;
	width: 100%;
	background-color: #ee4d2d !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
	padding: 14px 16px !important;
	border-radius: 6px !important;
	transition: background-color .15s ease;
}

.news-ads-item--backlink:hover {
	background-color: #d13c1f !important;
	color: #fff !important;
	text-decoration: none;
}

.news-ads-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff !important;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .15);
	text-align: center;
	padding: 6px 0;
}

.news-ads-sticky-body {
	width: 100%;
}

.news-ads-sticky-toggle {
	position: absolute;
	top: -30px;
	inset-inline-end: 14px;
	width: 30px;
	height: 30px;
	border: none !important;
	border-radius: 8px 8px 0 0;
	background-color: #fff !important;
	box-shadow: 0 -2px 6px rgba(0, 0, 0, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	color: #667085 !important;
}

.news-ads-sticky-icon {
	display: none;
	line-height: 0;
}

.news-ads-sticky-icon--close {
	display: flex;
}

.news-ads-sticky.is-collapsed {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.news-ads-sticky.is-collapsed .news-ads-sticky-body {
	display: none;
}

.news-ads-sticky.is-collapsed .news-ads-sticky-toggle {
	position: static;
	border-radius: 8px 8px 0 0;
}

.news-ads-sticky.is-collapsed .news-ads-sticky-icon--close {
	display: none;
}

.news-ads-sticky.is-collapsed .news-ads-sticky-icon--open {
	display: flex;
}

.news-ads-related {
	--na-related-accent: #ee4d2d;
	--na-related-radius: 10px;
	--na-related-ratio: 16/9;
	--na-related-gap: 14px;
	--na-related-card-bg: #f0ece0;
	--na-related-title-color: inherit;
	--na-related-title-size: 15px;
	--na-related-title-weight: 600;
	margin: 28px 0;
	box-sizing: border-box;
}

.news-ads-related * {
	box-sizing: border-box;
}

.news-ads-related-heading {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	position: relative;
	padding-inline-start: 12px;
}

.news-ads-related-heading::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .15em;
	bottom: .15em;
	width: 4px;
	border-radius: 4px;
	background: var(--na-related-accent);
}

.news-ads-related-item {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.news-ads-related-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--na-related-title-color);
	font-size: var(--na-related-title-size);
	font-weight: var(--na-related-title-weight);
	line-height: 1.5;
	transition: color .2s ease;
}

.news-ads-related-date {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	opacity: .65;
	font-variant-numeric: tabular-nums;
	unicode-bidi: isolate;
}

.news-ads-related--no-date .news-ads-related-date {
	display: none;
}

.news-ads-related-thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--na-related-radius);
	background: var(--na-related-card-bg);
	aspect-ratio: var(--na-related-ratio);
}

.news-ads-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
	transition: transform .3s ease;
}

.news-ads-related--hover-fade .news-ads-related-item:hover {
	opacity: .85;
}

.news-ads-related--hover-lift .news-ads-related-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.news-ads-related--hover-zoom .news-ads-related-item:hover .news-ads-related-thumb img {
	transform: scale(1.08);
}

.news-ads-related--list .news-ads-related-items {
	display: flex;
	flex-direction: column;
	gap: var(--na-related-gap);
}

.news-ads-related--list .news-ads-related-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.news-ads-related--list .news-ads-related-item:hover .news-ads-related-title {
	color: var(--na-related-accent);
}

.news-ads-related--list .news-ads-related-thumb {
	flex: 0 0 88px;
	width: 88px;
}

.news-ads-related--list .news-ads-related-body {
	flex: 1 1 auto;
	min-width: 0;
}

.news-ads-related--grid .news-ads-related-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--na-related-gap);
}

.news-ads-related--grid .news-ads-related-thumb {
	margin-bottom: 8px;
}

.news-ads-related--grid .news-ads-related-item:hover .news-ads-related-title {
	color: var(--na-related-accent);
}

.news-ads-related--overlay .news-ads-related-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--na-related-gap);
}

.news-ads-related--overlay .news-ads-related-item {
	position: relative;
	aspect-ratio: var(--na-related-ratio);
	border-radius: var(--na-related-radius);
	overflow: hidden;
	background-color: rgba(0, 0, 0, .1);
	background-size: cover;
	background-position: center;
}

.news-ads-related-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 65%);
}

.news-ads-related--overlay .news-ads-related-title {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 14px;
	color: #fff;
}

.news-ads-related--numbered .news-ads-related-items {
	display: flex;
	flex-direction: column;
	gap: var(--na-related-gap);
}

.news-ads-related--numbered .news-ads-related-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	counter-increment: news-ads-related-counter;
}

.news-ads-related--numbered .news-ads-related-items {
	counter-reset: news-ads-related-counter;
}

.news-ads-related--numbered .news-ads-related-item::before {
	content: counter(news-ads-related-counter);
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--na-related-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.news-ads-related--numbered .news-ads-related-item:hover .news-ads-related-title {
	color: var(--na-related-accent);
}

@media (max-width: 480px) {
	.news-ads-related--grid .news-ads-related-items,
	.news-ads-related--overlay .news-ads-related-items {
		grid-template-columns: repeat(2, 1fr);
	}
}

.news-ads-price-hub {
	font-size: 15px;
	color: #1f2937;
}

.news-ads-price-hub__updated {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.news-ads-price-hub__updated::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	flex: none;
}

.news-ads-price-hub__updated time {
	font-weight: 600;
	color: #374151;
}

.news-ads-price-hub__table-wrap {
	background: #ffffff;
	border: 1px solid #e9ebf0;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
	overflow: hidden;
	/* The compact layout below follows the table's own width, not the screen's:
	   a narrow sidebar on a wide screen needs it as much as a phone does. */
	container: na-price-table / inline-size;
}

.news-ads-price-hub__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.news-ads-price-hub__table th,
.news-ads-price-hub__table td {
	padding: 14px 16px;
	text-align: start;
}

.news-ads-price-hub__table thead th {
	font-weight: 600;
	font-size: 13px;
	color: #6b7280;
	background: #f8fafc;
	border-bottom: 1px solid #e9ebf0;
}

.news-ads-price-hub__table tbody tr:not(:last-child) td {
	border-bottom: 1px solid #f1f3f5;
}

.news-ads-price-hub__table tbody tr:nth-child(even) {
	background: #fbfbfc;
}

.news-ads-price-hub__table tbody tr {
	transition: background-color .15s ease;
}

.news-ads-price-hub__table tbody tr:hover {
	background: #f5f7fa;
}

.news-ads-price-hub__table tbody tr.news-ads-price-hub__divider-row,
.news-ads-price-hub__table tbody tr.news-ads-price-hub__divider-row:hover {
	background: transparent;
}

.news-ads-price-hub__divider {
	background: #f8fafc;
	color: #374151;
	font-weight: 700;
	font-size: 13px;
}

.news-ads-price-hub__label {
	color: #374151;
	font-weight: 500;
}

.news-ads-price-hub__prev-cell {
	color: #9ca3af;
	font-size: 13px;
}

.news-ads-price-hub__value {
	font-weight: 700;
	font-size: 15px;
	color: #111827;
	font-variant-numeric: tabular-nums;
}

.news-ads-price-hub__prev {
	font-variant-numeric: tabular-nums;
}

.news-ads-price-hub__unit {
	color: #9ca3af;
	font-size: 12px;
	margin-inline-start: 2px;
}

.news-ads-price-hub__empty {
	color: #d1d5db;
}

.news-ads-price-hub__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #e9ebf0;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}

.news-ads-price-hub__badge-label {
	color: #374151;
	font-weight: 500;
}

.news-ads-price-hub__badge-value {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.news-ads-price-hub__trend {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	padding: 3px 8px;
	border-radius: 999px;
}

.news-ads-price-hub__trend--up {
	color: #15803d;
	background: rgba(21, 128, 61, .1);
}

.news-ads-price-hub__trend--down {
	color: #b91c1c;
	background: rgba(185, 28, 28, .1);
}

.news-ads-price-hub__trend--flat {
	color: #6b7280;
	background: rgba(107, 114, 128, .1);
}

@keyframes news-ads-price-hub-flash {
	0% { background-color: rgba(255, 214, 0, .35); }
	100% { background-color: transparent; }
}

.news-ads-price-hub__row--flash {
	animation: news-ads-price-hub-flash 1.5s ease-out;
}

/* A narrow table (a sidebar, a phone) shows one line per item: the name, then
   the price and its change. The previous price is left out there — the change
   badge already says how far it moved. The wrapper class in front of each rule
   outranks the site-wide price table settings printed in the head. */
@container na-price-table (max-width: 460px) {
	.news-ads-price-hub__table-wrap .news-ads-price-hub__table,
	.news-ads-price-hub__table-wrap .news-ads-price-hub__table tbody {
		display: block;
		width: 100%;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		align-items: center;
		column-gap: 8px;
		padding: 11px 14px;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table tbody tr:not(:last-child) {
		border-bottom: 1px solid #f1f3f5;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table tbody tr:nth-child(even) {
		background: transparent;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table td {
		display: block;
		padding: 0;
		border-bottom: none !important;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table td.news-ads-price-hub__prev-cell {
		display: none;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__label {
		font-weight: 600;
		font-size: 13.5px;
		line-height: 1.6;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__value {
		font-size: 14px;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__unit {
		display: none;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table td.news-ads-price-hub__divider {
		grid-column: 1 / -1;
		padding: 0;
		background: transparent;
	}

	.news-ads-price-hub__table-wrap .news-ads-price-hub__table tbody tr.news-ads-price-hub__divider-row {
		display: block;
		padding: 8px 14px;
		background: #f8fafc;
	}
}

/* --- News code -----------------------------------------------------------
   The short identifier printed on each article so a reader can quote one item.
   Styled lightly and with inherited typography: it sits inside somebody else's
   article template, where a strong opinion about fonts or colour would look
   like a mistake. */

.na-news-code {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 16px 0;
	font-size: .9em;
	line-height: 1.8;
	color: inherit;
	opacity: .85;
}

.na-news-code__label {
	font-weight: 600;
}

.na-news-code__value {
	/* Left to right even in a right-to-left article: it is a number, and mixing
	   it into RTL flow reorders the digits on screen. */
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
	user-select: all;
}
