@media (max-width: 782px) {
	body.page header#masthead {
		padding-top: 12px !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
	
	body.page #content.site-content {
		padding-top: 15px !important;
		margin-top: 0 !important;
	}
	
	body.page #primary,
		    body.page main#main,
		    body.page article.page,
		    body.page .entry-header {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}

/* Compact blog search results only */
body.search-results article {
	margin-top: 0 !important;
	margin-bottom: 20px !important;
	padding-bottom: 16px !important;
}

body.search-results article + article {
	margin-top: 0 !important;
}

/* Smaller titles */
body.search-results article .entry-title {
	font-size: 1.6rem !important;
	line-height: 1.25 !important;
	margin-bottom: 10px !important;
}

body.search-results article .entry-header {
	margin-bottom: 8px !important;
}

/* Compact descriptions */
body.search-results article .entry-content,
body.search-results article .entry-summary {
	margin: 0 !important;
	padding: 0 !important;
}

body.search-results article .entry-content p,
body.search-results article .entry-summary p {
	font-size: 1rem !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	display: -webkit-box;
	overflow: hidden;
}

/* Remove unnecessary details */
body.search-results article .byline,
body.search-results article .cat-links,
body.search-results article .tags-links,
body.search-results article .comments-link {
	display: none !important;
}

/* Keep dates small and tidy */
body.search-results article .entry-footer {
	margin-top: 8px !important;
	padding: 0 !important;
	border-top: 0 !important;
	font-size: .85rem !important;
	line-height: 1.4 !important;
}

body.search-results article .entry-footer::before {
	display: none !important;
}

/* Search results – compact mobile layout */
/* Shorten descriptions to three lines */
body.search-results article .entry-summary,
body.search-results article .entry-content {
	max-height: 4.5em !important;
	line-height: 1.5 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

body.search-results article .entry-summary p,
body.search-results article .entry-content p {
	font-size: 16px !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

/* Reduce space between results */
body.search-results article {
	margin-bottom: 20px !important;
	padding-bottom: 12px !important;
}

body.search-results article .entry-header {
	margin-bottom: 8px !important;
}

body.search-results article .entry-footer {
	margin-top: 8px !important;
}

/* Reduce unnecessary mobile header spacing */
@media (max-width: 782px) {
	body.search-results #masthead {
		min-height: 0 !important;
		padding-bottom: 15px !important;
		margin-bottom: 0 !important;
	}
	
	body.search-results .site-content,
	  body.search-results .site-main {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
	
	body.search-results .page-header {
		margin-top: 0 !important;
		margin-bottom: 25px !important;
	}
	
	body.search-results .page-title {
		font-size: 1.6rem !important;
	}
}

/* Align mobile search result text */
@media (max-width: 782px) {
	body.search-results article .entry-summary,
	
	  body.search-results article .entry-content {
		padding-left: 5.5vw !important;
		padding-right: 5.5vw !important;
		box-sizing: border-box !important;
	}
	
	/* Slightly smaller gold titles */
	body.search-results article .entry-title {
		font-size: 1.4rem !important;
		line-height: 1.3 !important;
	}
}

/* Reduce space above mobile search results */
@media (max-width: 782px) {
	body.search-results #masthead {
		min-height: 0 !important;
		height: auto !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
	
	body.search-results #content {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
	
	body.search-results .page-header {
		padding-top: 15px !important;
		margin-top: 0 !important;
		margin-bottom: 20px !important;
	}
}

/* Pull mobile search results closer to menu */
@media (max-width: 782px) {
	body.search-results #content {
		margin-top: -100px !important;
	}
}