/* =========================================================================
   X (@tarimyazari) feed block — shipped by the Tarım Dünyası plugin, not by
   the shared NewsOS theme: the surface belongs to this portal, so its styling
   travels with it and no other tenant of the theme inherits it.

   Colours come from the theme's design tokens (--td-*) with literal
   fallbacks, so the block is correct here and merely plain anywhere else.
   Mobile-first: one column at 390, two from 768, three from 1024. Nothing
   here sets a min-width, so the row can never push the page sideways.
   ========================================================================= */

.td-xfeed__row {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.td-xfeed__row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.td-xfeed__row { grid-template-columns: repeat(3, 1fr); }
}

.td-xfeed__item {
	background: var(--td-surface, #fff);
	border: 1px solid var(--td-line, #E4E9E1);
	border-radius: var(--td-r, 10px);
	overflow: hidden;
}

.td-xfeed__link {
	color: inherit;
	display: block;
	height: 100%;
	text-decoration: none;
}

.td-xfeed__link:focus-visible {
	outline: 2px solid var(--td-green, #2E7D14);
	outline-offset: 2px;
}

.td-xfeed__img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	max-width: 100%;
	object-fit: cover;
	width: 100%;
}

.td-xfeed__t {
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
	padding: 14px 16px 6px;
}

.td-xfeed__d {
	color: var(--td-muted, #6B7A66);
	display: block;
	font-size: 0.8rem;
	padding: 0 16px 14px;
}

.td-xfeed__src {
	color: var(--td-muted, #6B7A66);
	font-size: 0.8rem;
	margin: 12px 0 0;
}

.td-xfeed__src a { color: inherit; }
