/**
 * PunjabiTime News — WAR styling.
 * Right-side homepage “War News” box + /war/ category page (heading, intro,
 * War-only search). Additive; light + dark mode. Loaded last via sandbox.
 */

/* ============================================================
   Homepage right-side “War News” box
   (replaces only the .pt-top-grid__list aside)
   ============================================================ */
.pt-war-box {
	background: #fff;
	border: 1px solid #e6e2d8;
	border-radius: 6px;
	padding: 14px 14px 12px;
	display: flex;
	flex-direction: column;
}
.pt-war-box__head {
	border-bottom: 2px solid #b3261e;
	margin: 0 0 10px;
	padding-bottom: 6px;
}
.pt-war-box__title {
	font-size: 1.05rem;
	line-height: 1.2;
	margin: 0;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #b3261e;
}
.pt-war-box__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pt-war-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid #efece4;
}
.pt-war-item:first-child { padding-top: 0; }
.pt-war-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-war-item__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
	display: block;
	background: #f1eee6;
}
.pt-war-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pt-war-item__thumb--empty { background: #ece8df; }
.pt-war-item__body { flex: 1 1 auto; min-width: 0; }
.pt-war-item__title {
	font-size: .92rem;
	line-height: 1.3;
	margin: 0 0 4px;
	font-weight: 600;
}
.pt-war-item__title a { color: inherit; text-decoration: none; }
.pt-war-item__title a:hover { text-decoration: underline; }
.pt-war-item .pt-meta {
	font-size: .72rem;
	line-height: 1.2;
	opacity: .8;
}
.pt-war-box__more {
	align-self: flex-start;
	margin-top: 12px;
	font-size: .8rem;
	font-weight: 600;
	color: #b3261e;
	text-decoration: none;
	border: 1px solid #b3261e;
	border-radius: 4px;
	padding: 6px 12px;
	transition: background .15s ease, color .15s ease;
}
.pt-war-box__more:hover { background: #b3261e; color: #fff; }
.pt-war-box__empty {
	font-size: .9rem;
	opacity: .75;
	margin: 6px 0 4px;
	padding: 16px 4px;
	text-align: center;
}

/* ============================================================
   /war/ category page header + search
   ============================================================ */
.pt-war-archive-head {
	margin: 0 0 18px;
}
.pt-war-archive-head h1 {
	margin: 0 0 6px;
	color: #b3261e;
}
.pt-war-archive-intro {
	margin: 0 0 14px;
	font-size: .98rem;
	opacity: .85;
	max-width: 60ch;
}
.pt-war-search {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin: 0 0 6px;
}
.pt-war-search input[type="search"] {
	flex: 1 1 auto;
	padding: 9px 12px;
	border: 1px solid #d8d3c7;
	border-radius: 4px;
	font-size: .95rem;
	background: #fff;
	color: inherit;
}
.pt-war-search button {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 0;
	border-radius: 4px;
	background: #b3261e;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.pt-war-search button:hover { background: #921b15; }
.pt-war-search__hint {
	font-size: .76rem;
	opacity: .65;
	margin: 0 0 18px;
}

/* ============================================================
   Dark mode
   ============================================================ */
.pt-dark-mode .pt-war-box {
	background: #1d1d1f;
	border-color: #34343a;
}
.pt-dark-mode .pt-war-item { border-bottom-color: #2c2c31; }
.pt-dark-mode .pt-war-item__thumb { background: #2a2a2e; }
.pt-dark-mode .pt-war-search input[type="search"] {
	background: #1d1d1f;
	border-color: #3a3a40;
	color: #f2f2f2;
}
.pt-dark-mode .pt-war-box__title,
.pt-dark-mode .pt-war-archive-head h1,
.pt-dark-mode .pt-war-box__more { color: #ff6a5e; }
.pt-dark-mode .pt-war-box__more { border-color: #ff6a5e; }
.pt-dark-mode .pt-war-box__more:hover { background: #ff6a5e; color: #1d1d1f; }

/* ============================================================
   Responsive: on mobile the box sits full width below content
   ============================================================ */
@media (max-width: 860px) {
	.pt-war-box { margin-top: 8px; }
}
