/* ============================================================================
   Search results page (templates/search.html) + query-title / search field.
   ========================================================================== */
.hmd-search__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 1.5rem;
	color: var(--ink);
}
.hmd-search__field { max-width: 640px; }
.hmd-search__field .wp-block-search__input {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-family: var(--font-body);
	padding: 0.875rem 1.25rem;
	color: var(--ink);
}
.hmd-search__field .wp-block-search__button {
	background: var(--magenta);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8125rem;
	margin: 4px;
	padding: 0.5rem 1.25rem;
}
.hmd-search__field .wp-block-search__button:hover { background: var(--magenta-deep); }

/* Results list */
.hmd-search-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hmd-search-list > li { margin: 0; }
.hmd-search-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1.5rem 1.75rem;
	transition: transform 0.15s, box-shadow 0.15s;
}
.hmd-search-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08); }
.hmd-search-card__title { margin: 0 0 0.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.hmd-search-card__title a { color: var(--ink); text-decoration: none; }
.hmd-search-card__title a:hover { color: var(--magenta); }
.hmd-search-card__excerpt { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
a.hmd-search-card__more,
.hmd-search-card__more {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--magenta) !important;
	text-decoration: none;
}

/* Pagination */
.hmd-search-pagination { margin-top: 2.5rem; }
.hmd-search-pagination a,
.hmd-search-pagination .wp-block-query-pagination-numbers {
	font-family: var(--font-display);
	font-weight: 800;
	color: var(--ink);
}
.hmd-search-pagination a:hover { color: var(--magenta); }
.hmd-search-pagination .page-numbers.current { color: var(--magenta); }

/* Empty state */
.hmd-search-empty { text-align: center; padding: 3rem 0; }
.hmd-search-empty h2 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 0.75rem;
}
.hmd-search-empty .wp-block-buttons { justify-content: center; margin-top: 1.5rem; }
