/* =========================================================
   LUMISCHEMA NEWS ARCHIVE
   ========================================================= */

/* ---------------------------------------------------------
   MAIN LAYOUT
   --------------------------------------------------------- */

.ls-news-main {
	min-width: 0;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.ls-news-header {
	margin-bottom: 22px;
}

.ls-news-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 750;
	letter-spacing: -0.4px;
}

.ls-news-description {
	max-width: 850px;
	color: #667085;
}

.ls-news-description p {
	margin: 0;
}

/* ---------------------------------------------------------
   CATEGORY BAR
   --------------------------------------------------------- */

.ls-news-category-scroll {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	margin-bottom: 25px;
	padding-bottom: 4px;

	scrollbar-width: none;

	-webkit-overflow-scrolling: touch;
}

.ls-news-category-scroll::-webkit-scrollbar {
	display: none;
}

.ls-news-category-inner {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	min-width: max-content;
}

.ls-news-category-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	height: 32px;
	padding: 0 13px;

	border: 1px solid #d9dee7;
	border-radius: 18px;

	background: #fff;
	color: #475467;

	font-size: 12px;
	font-weight: 600;
	line-height: 1;

	text-decoration: none;

	transition:
		background-color .18s ease,
		color .18s ease,
		border-color .18s ease,
		transform .18s ease;
}

.ls-news-category-pill:hover {
	background: #0878E8;
	color: #FFFFFF;
	border-color: #0878E8;
	text-decoration: none;
}

.ls-news-category-pill.is-active {
	background: #172337 !important;
	border-color: #172337 !important;
	color: #FFFFFF !important;
}

.ls-news-category-pill.is-active:hover,
.ls-news-category-pill.is-active:focus {
	background: #172337 !important;
	border-color: #172337 !important;
	color: #FFFFFF !important;
}

/* ---------------------------------------------------------
   POST GRID
   --------------------------------------------------------- */

.ls-news-post-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 25px 17px;
}

/* ---------------------------------------------------------
   POST CARD
   --------------------------------------------------------- */

.ls-news-card {
	min-width: 0;
}

.ls-news-card-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 9px;
	background: #f1f3f5;
	text-decoration: none;
}

.ls-news-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;

	transition: transform .25s ease;
}

.ls-news-card-image:hover img {
	transform: scale(1.035);
}

.ls-news-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;

	background: #f1f3f5;
	color: #98a2b3;

	font-size: 12px;
	font-weight: 700;
}

/* ---------------------------------------------------------
   CARD CONTENT
   --------------------------------------------------------- */

.ls-news-card-content {
	padding-top: 9px;
}

.ls-news-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
	min-width: 0;
}

/* CATEGORY */

.ls-news-card-category {
	display: inline-block;

	max-width: 60%;

	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;

	color: #155eef;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	text-transform: uppercase;
	letter-spacing: .25px;
}

/* VIEWS */

.ls-news-card-views {
	flex-shrink: 0;

	padding: 3px 7px;

	border-radius: 10px;

	background: #f2f4f7;

	color: #667085;

	font-size: 9px;
	font-weight: 600;
	line-height: 1;
}

/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.ls-news-card-title {
	margin: 0;

	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.1px;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	overflow: hidden;
}

.ls-news-card-title a {
	color: #101828;
	text-decoration: none;
}

.ls-news-card-title a:hover {
	color: #155eef;
}

/* ---------------------------------------------------------
   META
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   META
   Date = left
   Dot  = exact center
   Time = right
   --------------------------------------------------------- */

.ls-news-card-meta {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;

	width: 100%;
	margin-top: 7px;

	color: #667085;

	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
}

/* DATE — LEFT */
.ls-news-card-meta > span:first-child {
	justify-self: start;
	text-align: left;
}

/* DOT — CENTER */
.ls-news-meta-dot {
	display: block;

	width: 3px;
	height: 3px;

	margin: 0;

	border-radius: 50%;
	background: currentColor;
}

/* READING TIME — RIGHT */
.ls-news-card-meta > span:last-child {
	justify-self: end;
	text-align: right;
}

/* ---------------------------------------------------------
   EMPTY
   --------------------------------------------------------- */

.ls-news-empty {
	padding: 50px 20px;
	text-align: center;
	background: #f8fafc;
	border-radius: 10px;
}

.ls-news-empty h2 {
	margin: 0 0 7px;
	font-size: 20px;
}

.ls-news-empty p {
	margin: 0;
	color: #667085;
	font-size: 14px;
}

/* ---------------------------------------------------------
   PAGINATION
   --------------------------------------------------------- */

.ls-news-pagination {
	margin-top: 35px;
	text-align: center;
}

.ls-news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 34px;
	height: 34px;

	margin: 3px;

	border: 1px solid #d9dee7;
	border-radius: 6px;

	font-size: 12px;
	text-decoration: none;
	color: #475467;
}

.ls-news-pagination .current {
	background: #155eef;
	border-color: #155eef;
	color: #fff;
}

/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

.ls-news-sidebar {
	min-width: 0;
}

.ls-news-sidebar .widget {
	margin-bottom: 28px;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1100px) {

	

	.ls-news-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 768px) {

	

	.ls-news-title {
		font-size: 25px;
	}

	

	.ls-news-category-scroll {
		margin-left: -15px;
		margin-right: -15px;
		padding-left: 15px;
		padding-right: 15px;
		margin-bottom: 20px;
	}

	.ls-news-category-inner {
		gap: 6px;
	}

	.ls-news-category-pill {
		height: 30px;
		padding: 0 11px;
		font-size: 11px;
	}

	.ls-news-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}

	/*
	 * Only the first 20 posts are displayed on mobile.
	 */

	.ls-news-card-desktop-only {
		display: none;
	}

	.ls-news-card-content {
		padding-top: 7px;
	}

	.ls-news-card-top {
		margin-bottom: 5px;
	}

	.ls-news-card-category {
		font-size: 8px;
	}

	.ls-news-card-views {
		padding: 3px 6px;
		font-size: 8px;
	}

	.ls-news-card-title {
		font-size: 14px;
		line-height: 1.3;
	}

		.ls-news-card-meta {
		grid-template-columns: 1fr auto 1fr;

		margin-top: 6px;

		font-size: 9px;
		line-height: 1.2;
	}

	.ls-news-sidebar {
		margin-top: 40px;
	}

}

/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 400px) {

	

	.ls-news-category-scroll {
		margin-left: -12px;
		margin-right: -12px;
		padding-left: 12px;
		padding-right: 12px;
	}

	.ls-news-post-grid {
		gap: 20px 10px;
	}

	.ls-news-card-title {
		font-size: 13.5px;
	}

}

/* =========================================================
   FINAL CONTENT EDGE ALIGNMENT
   Keep News aligned with the site's normal content edge.
   ========================================================= */

.ls-news-card-views { padding: 3px 7px; }
.ls-news-card-views .lumischema-views-icon { width: 12px; height: 12px; flex-basis: 12px; }

/* Author archive byline */
.ls-author-card-byline { margin-top: 7px; color: #667085; font-size: 12px; }
.ls-author-card-byline a { color: #0878E8; font-weight: 600; text-decoration: none; }
.ls-author-card-byline a:hover { text-decoration: none; }

/* Unified GeneratePress content alignment and shared sidebar sizing (v2.1.6). */

body.category .ls-news-sidebar,
body.category .ls-news-sidebar * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
body.category .ls-news-sidebar a {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* At 769–900px, keep the same two-column sidebar layout as Single-News. */

/* Loading state applied by js/lumischema-news.js while a category is fetched. */
.ls-news-main.ls-news-is-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* Post card (.ls-pcard) and pager (.ls-pager) styles live in post-cards.css. */
.ls-pcard-grid > .ls-news-empty { grid-column: 1 / -1; }

/* The old News pagination box rules must not fight the new pager. */
.ls-news-pagination.ls-pager { text-align: left; margin-top: 24px; }
.ls-news-pagination.ls-pager .page-numbers:not(ul) { margin: 0; }
