/* meenzdog – search results, 404, blog archive/single (W4). meenzdog.de has no
   posts; archives only exist for completeness. Search and 404 were measured on
   Salient (scratchpad/w4/sal-search.json, 404 at 1440). */

/* ---- Search: Salient "masonry-no-sidebar" layout ---- */
.ml-search-header {
	background: #f4f4f4;
	min-height: 250px;
	display: flex;
	align-items: center;
	text-align: center;
}
.ml-search-header .ml-container { width: 100%; }
.ml-search-header h1 {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-size: 40px;
	line-height: 50px;
	font-weight: 600;
	margin: 0 0 8px;
}
.ml-search-header .result-num {
	font-family: 'Work Sans', sans-serif;
	font-size: 18px;
	line-height: 28px;
}
.ml-search-main { padding-top: 60px; padding-bottom: 40px; } /* Salient: main-content 60 above, container-wrap 40 below */
#search-results {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 30px;
}
#search-results article.result { padding: 15px; }
#search-results .inner-wrap {
	background: #fff;
	border: 1px solid #e7e7e7;
	height: 100%;
}
#search-results .inner-wrap > a { display: block; }
#search-results .inner-wrap img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
#search-results h2.title {
	padding: 25px;
	margin: 0 0 1px;
	font-family: "Lora", serif;
	font-size: 17px;
	line-height: 22px;
	font-weight: 600;
}
#search-results h2.title a { color: var(--ml-accent); }
#search-results h2.title a:hover { color: inherit; }
#search-results h2.title span {
	display: block;
	margin-top: 3px;
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-size: 12px;
	line-height: 22px;
	font-weight: 400;
	color: #999;
}
#search-results .ml-search-none { grid-column: 1 / -1; }
#search-results .ml-search-none .nova-search-form { max-width: 480px; margin-top: 20px; }

@media (max-width: 1000px) { #search-results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 690px) { #search-results { grid-template-columns: 1fr; } }

/* ---- Pagination (Salient #pagination, centred; 33×32 items 3px apart, 12px/11px bold, no border, current = accent) ---- */
.ml-pagination { text-align: center; margin-bottom: 10px; }
.ml-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3px;
}
.ml-pagination .page-numbers li { list-style: none; margin: 0; }
.ml-pagination a.page-numbers,
.ml-pagination span.page-numbers {
	display: inline-block;
	min-width: 33px;
	padding: 11px 13px 10px;
	border: 0;
	border-radius: 0;
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-size: 12px;
	line-height: 11px;
	font-weight: 700;
	color: #000;
	text-align: center;
	transition: all .3s ease;
}
/* !important: 30-woocommerce.css (W2) paints every #pagination a white with !important — on the search
   page Salient shows black digits on a transparent background (reported to W2). */
#pagination.ml-pagination a.page-numbers { color: #000 !important; line-height: 11px; }
#pagination.ml-pagination a.page-numbers:hover { background: var(--ml-accent); color: #fff; }
#pagination.ml-pagination span.page-numbers.current { background: var(--ml-accent); color: #fff; }

/* ---- 404 (Salient #error-404: 10% padding, 250px "404" + 54px "Page Not Found" in #dd3333).
   Salient prints no footer section on the 404 and stretches .container-wrap to the viewport. ---- */
.ml-404 { text-align: center; min-height: calc(100vh - var(--ml-header-height)); }
@media (max-width: 1200px) { .ml-404 { min-height: calc(100vh - var(--ml-header-height-mobile)); } }
#error-404 { padding: 10% 0; }
#error-404 h1 {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-size: 250px;
	line-height: 250px;
	font-weight: 700;
	color: #dd3333;
	margin: 0 0 7px;
}
#error-404 h2 {
	font-family: 'Open Sans', Helvetica, sans-serif;
	font-size: 54px;
	line-height: 44px;
	font-weight: 700;
	color: #dd3333;
	margin: 0 0 7px;
}
/* has-icon button: 168×50, text 78px wide, arrow in a 32px translucent circle 10px from the right edge. */
#error-404 .ml-btn { display: inline-flex; align-items: center; gap: 20px; margin: 50px 0 10px; padding: 15px 10px 15px 28px; }
#error-404 .ml-btn svg { flex: 0 0 auto; width: 32px; height: 32px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); margin: -6px 0; }
@media (max-width: 690px) {
	#error-404 h1 { font-size: 150px; line-height: 150px; }
	#error-404 h2 { font-size: 34px; line-height: 40px; }
}

/* ---- Blog archive / single (no posts on meenzdog.de — plain Salient-like list) ---- */
.ml-blog { padding-top: var(--ml-content-pad-y); padding-bottom: var(--ml-content-pad-y); }
.ml-blog__row { display: flex; gap: 50px; align-items: flex-start; }
.ml-blog__main { flex: 1 1 auto; min-width: 0; }
.ml-blog__sidebar { flex: 0 0 300px; }
.ml-blog__heading { margin-bottom: 30px; }
.ml-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; margin-bottom: 40px; }
.ml-post-card__media img { display: block; width: 100%; height: auto; }
.ml-post-card__cat { display: inline-block; margin: 15px 0 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ml-post-card__title { font-size: 22px; line-height: 30px; margin-bottom: 10px; }
.ml-post-card__title a { color: #000; }
.ml-post-card__title a:hover { color: var(--ml-accent); }
.ml-post__tags { margin-top: 30px; }
.ml-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding-top: 30px; border-top: 1px solid #e5e5e5; }
.ml-author__avatar { border-radius: 50%; }
.ml-sidebar .widget { margin-bottom: 40px; }
.ml-sidebar .widget h4 { margin-bottom: 15px; }
@media (max-width: 1000px) {
	.ml-blog__row { flex-direction: column; }
	.ml-blog__sidebar { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 690px) { .ml-posts { grid-template-columns: 1fr; gap: 30px; } }
