/* ────────────────────────────────────────────────────────────
   03-search-results.css — Search results page layout
   Scoped to body.search-results.
   Load order: 03-* composite tier — auto-loaded by functions.php
   ──────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════
   CONTENT WIDTH
   ══════════════════════════════════════════════════════════════ */

.search-results .content-area {
	max-width: var(--container-narrow);
	margin-inline: auto;
	margin-bottom: var(--spacing-xl);
}


/* ══════════════════════════════════════════════════════════════
   RESULT ITEMS — spacing + divider
   ══════════════════════════════════════════════════════════════ */

.search-results .post,
.search-results .page {
	padding: var(--spacing-lg) 0;
	border-bottom: 1px solid var(--color-gray-stroke);
}

.search-results .post:first-of-type {
	padding-top: var(--spacing-md);
}

.search-results .inside-article {
	max-width: none;
	padding:0 !important;
}

.search-results .page-header {
	padding: 0 !important;
	margin: var(--spacing-lg) 0 !important;
}

.search-results h1 {
	font-size: var(--text-heading-lg);
	color: var(--color-blue-primary);
	padding: 0;
}


/* ══════════════════════════════════════════════════════════════
   ENTRY TITLE
   ══════════════════════════════════════════════════════════════ */

.search-results .entry-title {
	font-family: var(--font-primary);
	font-size: var(--text-heading-md);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-snug);
	color: var(--color-text-heading);
	margin-bottom: var(--spacing-xs);
}

.search-results .entry-title a {
	color: inherit;
	text-decoration: none;
}

.search-results .entry-title a:hover {
	color: var(--color-blue-primary);
}


/* ══════════════════════════════════════════════════════════════
   EXCERPT
   ══════════════════════════════════════════════════════════════ */

.search-results .entry-summary {
	font-size: var(--text-body-base);
	line-height: var(--line-height-loose);
	color: var(--color-text-body);
	margin-bottom: 0;
	margin-top: 0;
}

.search-results .entry-summary p {
	margin-bottom: 0;
}


/* ══════════════════════════════════════════════════════════════
   READ MORE LINK — targets GP's native .read-more class
   ══════════════════════════════════════════════════════════════ */

.search-results .read-more {
	display: inline-flex;
	align-items: center;
	color: var(--color-orange-primary) !important;
	font-family: var(--font-primary);
	font-size: var(--text-body-lg);
	font-weight: var(--font-weight-bold);
	text-decoration: none !important;
	white-space: nowrap;
}

.search-results .read-more::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 0.2em;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M8.88888 3.3335L13.3333 8.00016M13.3333 8.00016L8.88888 12.6668M13.3333 8.00016L2.66666 8.00016' stroke='%23E55D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s ease-in-out;
}

.search-results .read-more:hover {
	color: #9A3F19 !important;
	text-decoration: none !important;
}

.search-results .read-more:hover::after {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M8.88888 3.3335L13.3333 8.00016M13.3333 8.00016L8.88888 12.6668M13.3333 8.00016L2.66666 8.00016' stroke='%239A3F19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	transform: translateX(2px);
}


/* ══════════════════════════════════════════════════════════════
   PAGINATION — matches vertical listing style
   ══════════════════════════════════════════════════════════════ */

.search-results .paging-navigation {
	display: flex;
	justify-content: center;
	margin-top: var(--spacing-xl);
}

.search-results .paging-navigation .nav-links {
	display: flex;
	align-items: center;
	gap: var(--spacing-xxs);
}

/* Numbered page boxes */
.search-results .paging-navigation .page-numbers:not(.next):not(.prev) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 var(--spacing-xs);
	border: 1px solid var(--color-gray-stroke);
	color: var(--color-text-heading);
	font-family: var(--font-primary);
	font-size: var(--text-body-sm);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
}

.search-results .paging-navigation .page-numbers.current {
	background-color: var(--color-blue-primary);
	border-color: var(--color-blue-primary);
	color: var(--color-white) !important;
}

.search-results .paging-navigation .page-numbers:not(.current):not(.next):not(.prev):hover {
	border-color: var(--color-blue-primary);
	color: var(--color-blue-primary);
}

.search-results .paging-navigation .page-numbers.dots {
	border: none;
}

/* Prev / Next text links */
.search-results .paging-navigation .page-numbers.prev,
.search-results .paging-navigation .page-numbers.next {
	color: var(--color-text-heading);
	font-family: var(--font-primary);
	font-size: var(--text-body-base);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
	padding: 0 var(--spacing-xs);
}

.search-results .paging-navigation .page-numbers.prev:hover,
.search-results .paging-navigation .page-numbers.next:hover {
	color: var(--color-blue-primary);
	text-decoration: underline;
}
