/**
 * Blog single sidebar — layout, search, recent posts (no contact forms).
 */

.pmn-blog-has-sidebar .site-content {
	overflow-x: hidden;
}

.pmn-blog-has-sidebar #secondary.pmn-blog-sidebar {
	flex: 0 0 300px;
	width: 300px;
	max-width: 300px;
	min-width: 0;
	box-sizing: border-box;
	align-self: flex-start;
}

.pmn-blog-sidebar .pmn-sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
}

.pmn-blog-sidebar .pmn-sidebar-widget__title {
	margin: 0 0 0.875rem;
	padding: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pmn-ink, #0f172a);
}

.pmn-blog-sidebar .pmn-sidebar-card {
	background: #fff;
	border: 1px solid var(--pmn-border, #e2e8f0);
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	padding: 1.25rem;
}

.pmn-sidebar-search__form {
	margin: 0;
	width: 100%;
}

.pmn-sidebar-search__inner {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.pmn-sidebar-search__field {
	width: 100%;
	height: 2.75rem;
	padding: 0 0.875rem;
	border: 1px solid var(--pmn-border, #e2e8f0);
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	color: var(--pmn-ink, #0f172a);
	background: #f8fafc;
	box-sizing: border-box;
}

.pmn-sidebar-search__field:focus {
	outline: none;
	border-color: var(--pmn-accent, #ef4444);
	background: #fff;
}

.pmn-sidebar-search__submit {
	width: 100%;
	height: 2.75rem;
	border: none;
	border-radius: 0.375rem;
	background: var(--pmn-accent, #ef4444);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.pmn-sidebar-search__submit:hover {
	background: var(--pmn-accent-hover, #dc2626);
}

.pmn-sidebar-recent__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pmn-sidebar-recent__item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--pmn-border, #e2e8f0);
}

.pmn-sidebar-recent__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pmn-sidebar-recent__link {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--pmn-ink, #0f172a);
	text-decoration: none;
}

.pmn-sidebar-recent__link:hover {
	color: var(--pmn-accent, #ef4444);
}

.pmn-sidebar-recent__date {
	font-size: 0.75rem;
	color: var(--pmn-muted, #64748b);
}

@media (min-width: 922px) {
	.pmn-blog-has-sidebar .pmn-blog-sidebar .pmn-sidebar-inner {
		position: sticky;
		top: 5.5rem;
	}
}

/* Search results (primary column) */
.pmn-search-results-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.pmn-search-result-card.elementskit-post-image-card {
	border: 1px solid var(--pmn-border, #e2e8f0);
	border-radius: 0.75rem;
	overflow: hidden;
	background: #fff;
}

.pmn-search-result-card .entry-title a {
	color: var(--pmn-ink, #0f172a);
	text-decoration: none;
	font-weight: 700;
}

.pmn-search-result-card .entry-title a:hover {
	color: var(--pmn-accent, #ef4444);
}

.pmn-search-no-results p {
	color: var(--pmn-muted, #64748b);
}
