/**
 * SI News AI Writer — front-end blocks (TL;DR, source, author box, disclosure).
 * Neutral, theme-friendly, flat. No gradients.
 */

.si-news-tldr {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	background: #f5f7ff;
	border: 1px solid #e2e6f7;
	border-left: 4px solid #4338ca;
	border-radius: 8px;
}
.si-news-tldr__label {
	margin: 0 0 .4em;
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #4338ca;
}
.si-news-tldr__text { margin: 0 0 .6em; font-weight: 600; }
.si-news-tldr__list { margin: 0; padding-left: 1.2em; }
.si-news-tldr__list li { margin: .25em 0; }

.si-news-source {
	margin: 1.5em 0 0;
	padding-top: .9em;
	border-top: 1px solid #e5e7eb;
	font-size: .9em;
	color: #6b7280;
}
.si-news-source a { color: #4338ca; }

.si-news-disclosure {
	margin: .6em 0 0;
	font-size: .82em;
	font-style: italic;
	color: #9ca3af;
}

.si-news-author {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 1.75em 0 0;
	padding: 1.1em 1.25em;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}
.si-news-author__avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: block;
}
.si-news-author__body { flex: 1; min-width: 0; }
.si-news-author__name {
	display: inline-block;
	margin-bottom: .25em;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}
.si-news-author__name:hover { color: #4338ca; }
.si-news-author__bio { margin: 0; font-size: .9em; color: #6b7280; line-height: 1.5; }

/* In-body auto links (let the theme colour them, just ensure they read as links) */
.si-news-autolink { text-decoration: underline; }

/* Related articles block */
.si-news-related { margin: 2.25em 0 0; padding-top: 1.3em; border-top: 1px solid #e5e7eb; }
.si-news-related__title { margin: 0 0 .9em; font-size: 1.1em; }
.si-news-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}
.si-news-related__item a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.si-news-related__thumb {
	flex: 0 0 auto;
	width: 66px;
	height: 50px;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f5f9;
}
.si-news-related__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.si-news-related__text { font-size: .92em; font-weight: 600; line-height: 1.35; }
.si-news-related__item a:hover .si-news-related__text { color: #4338ca; }

/* Topic hub grid */
.si-news-hub { margin: 1.5em 0; }
.si-news-hub__title { margin: 0 0 .9em; }
.si-news-hub__grid {
	display: grid;
	grid-template-columns: repeat(var(--si-hub-cols, 3), minmax(0, 1fr));
	gap: 22px;
}
.si-news-hub__link { display: block; text-decoration: none; color: inherit; }
.si-news-hub__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
	margin-bottom: .6em;
}
.si-news-hub__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.si-news-hub__link:hover .si-news-hub__thumb img { transform: scale(1.04); }
.si-news-hub__cardtitle { display: block; font-size: 1.05em; font-weight: 700; line-height: 1.3; }
.si-news-hub__link:hover .si-news-hub__cardtitle { color: #4338ca; }
.si-news-hub__excerpt { display: block; margin-top: .4em; font-size: .9em; color: #6b7280; line-height: 1.5; }
.si-news-hub__date { display: block; margin-top: .5em; font-size: .8em; color: #9ca3af; }

@media (max-width: 782px) { .si-news-hub__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .si-news-hub__grid { grid-template-columns: 1fr; } }
