/**
 * Print Assistant News – Frontend Styles
 */

.pan-news-teaser {
	margin: 0;
}

.pan-news-teaser-item {
	padding: var(--wp--preset--spacing--50, 1.5rem) 0;
	border-bottom: 1px solid var(--wp--preset--color--line, #e5e5e5);
}

.pan-news-teaser-item:first-child {
	padding-top: 0;
}

.pan-news-teaser-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pan-news-teaser .pan-news-title {
	margin: 0 0 var(--wp--preset--spacing--30, 0.75rem);
	font-size: inherit;
	line-height: 1.25;
}

.pan-news-teaser .pan-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
	margin-bottom: var(--wp--preset--spacing--30, 0.75rem);
	font-size: inherit;
}

.pan-news-teaser .pan-news-meta-sep {
	margin: 0;
}

.pan-news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pan-news-item {
	padding: 1rem 0;
	border-bottom: 1px solid #e5e5e5;
}

.pan-news-item:last-child {
	border-bottom: none;
}

.pan-news-date {
	display: block;
	font-size: 0.8125rem;
	color: #666;
	margin-bottom: 0.25rem;
}

.pan-news-title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	line-height: 1.4;
}

.pan-news-title a {
	text-decoration: none;
	color: inherit;
}

.pan-news-title a:hover {
	color: #2271b1;
}

.pan-external-link::after {
	content: " ↗";
	font-size: 0.75em;
	opacity: 0.6;
}

.post-type-archive-print_news .pan-external-link::after,
.pa-news-feed .pan-external-link::after,
.pa-home-news-teaser .pan-external-link::after {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 0.95em;
	margin-left: 0.35em;
	vertical-align: -0.1em;
	opacity: 0.72;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.post-type-archive-print_news .pan-news-meta,
.pa-news-feed .pan-news-meta,
.pa-home-news-teaser .pan-news-meta {
	align-items: baseline;
}

.post-type-archive-print_news .pan-news-meta-sep,
.pa-news-feed .pan-news-meta-sep {
	margin: 0;
}

.post-type-archive-print_news .pan-news-meta:not(:has(.pan-news-source)) .pan-news-meta-sep,
.pa-news-feed .pan-news-meta:not(:has(.pan-news-source)) .pan-news-meta-sep,
.pa-home-news-teaser .pan-news-meta:not(:has(.pan-news-source)) .pan-news-meta-sep {
	display: none;
}

.pan-news-summary {
	margin: 0 0 0.5rem;
	color: #444;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.pan-news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.8125rem;
}

.pan-news-category {
	color: #2271b1;
	font-weight: 500;
}

.pan-news-list .pan-news-source {
	color: #666;
}

.pan-no-news {
	color: #666;
	font-style: italic;
}

/* Ticker */
.pan-news-ticker {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
}

.pan-ticker-item {
	display: grid;
	grid-template-columns: 5.5rem 1fr auto;
	gap: 0.75rem;
	align-items: baseline;
	padding: 0.625rem 1rem;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.875rem;
	line-height: 1.5;
}

.pan-ticker-item:last-child {
	border-bottom: none;
}

.pan-ticker-item:nth-child(even) {
	background: #fafafa;
}

.pan-ticker-date {
	color: #666;
	white-space: nowrap;
}

.pan-ticker-title a {
	text-decoration: none;
	color: #1d2327;
	font-weight: 500;
}

.pan-ticker-title a:hover {
	color: #2271b1;
}

.pan-ticker-category {
	color: #2271b1;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	text-align: right;
}

@media (max-width: 600px) {
	.pan-ticker-item {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.pan-ticker-category {
		text-align: left;
	}
}
