/**
 * PPN Search — Categorized results UI (polished v2).
 *
 * Loads on ALL front-end pages. Contains:
 *   1. Base modal overlay styles (fixed positioning, backdrop, hide/show)
 *      — previously in ppn-homepage-hero.css, moved here because the modal
 *        now renders on every page via the shared header.
 *   2. Modal header / body / tags (input, close, scrollbar, hint, chips)
 *   3. Categorized results layout (v2 polished)
 *   4. Chip row (filter pills + suggestion chips)
 *   5. Zero-state, loading, recent searches, etc.
 *
 * Respects design tokens from ppn-design-system.css.
 */

/* ══════════════════════════════════════════════════════════════════════
   1. MODAL OVERLAY — base positioning, hide/show, backdrop, container
      Moved from ppn-homepage-hero.css so it loads on every page.
   ══════════════════════════════════════════════════════════════════════ */
.hp-search-modal {
	--sm-ease: cubic-bezier(0.32, 0.94, 0.6, 1);
	position: fixed;
	inset: 0;
	z-index: 99993;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 280ms var(--sm-ease), visibility 0s 280ms;
}
.hp-search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	cursor: pointer;
}
.hp-search-modal__container {
	position: relative;
	width: 620px;
	max-width: min(94vw, 100vw - 32px);
	box-sizing: border-box;
	height: min(80vh, 640px);
	background: linear-gradient(180deg, var(--ppn-bg, #fffdf8) 0%, var(--ppn-bg-cream, #faf8f1) 100%);
	border-radius: var(--ppn-radius-xl, 14px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 280ms var(--sm-ease), transform 280ms var(--sm-ease);
}
/* Open state */
body.hp-search-modal--open .hp-search-modal {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 280ms var(--sm-ease), visibility 0s;
}
body.hp-search-modal--open .hp-search-modal__container {
	opacity: 1;
	transform: scale(1);
}
body.hp-search-modal--open {
	overflow: hidden;
}

/* Modal header (search input row) */
.hp-search-modal__header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	flex-shrink: 0;
	transition: border-color 200ms ease;
}
.hp-search-modal__header:focus-within {
	border-bottom-color: rgba(255, 159, 28, 0.28);
}
.hp-search-modal__form {
	display: flex;
	align-items: center;
	padding: 6px 12px 6px 22px;
}
.hp-search-modal__icon {
	flex-shrink: 0;
	color: rgba(68, 68, 68, 0.45);
	margin-right: 8px;
}
.hp-search-modal__input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	padding: 16px 10px;
	color: rgb(30, 30, 30);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 1.02rem;
	font-weight: 400;
	min-width: 0;
	-webkit-font-smoothing: antialiased;
}
.hp-search-modal__input:focus,
.hp-search-modal__input:focus-visible {
	outline: none;
	border: none;
	box-shadow: none;
}
.hp-search-modal__input::placeholder {
	color: rgba(68, 68, 68, 0.4);
}
.hp-search-modal__close {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: rgb(68, 68, 68);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 150ms var(--sm-ease);
}
.hp-search-modal__close:hover,
.hp-search-modal__close:focus-visible {
	background: rgba(68, 68, 68, 0.08);
	outline: none;
}

/* Modal body */
.hp-search-modal__body {
	overflow-y: auto;
	flex: 1 1 0;
	min-height: 0;
	padding: 0;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: rgba(150, 0, 0, 0.2) transparent;
}

/* Empty-state hint */
.hp-search-modal__hint {
	padding: 28px 20px;
	text-align: center;
}
.hp-search-modal__hint p {
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 0.82rem;
	color: rgba(68, 68, 68, 0.55);
	margin: 0 0 14px;
}
.hp-search-modal__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.hp-search-modal__tag {
	background: rgba(255, 159, 28, 0.08);
	border: 1px solid rgba(255, 159, 28, 0.22);
	border-radius: 999px;
	padding: 8px 16px;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	color: #8c5a1c;
	cursor: pointer;
	transition: background 150ms var(--sm-ease), transform 150ms var(--sm-ease), border-color 150ms var(--sm-ease);
}
.hp-search-modal__tag:hover {
	background: rgba(255, 159, 28, 0.18);
	transform: translateY(-1px);
	border-color: rgba(255, 159, 28, 0.42);
}
.hp-search-modal__tag:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 159, 28, 0.3);
}

/* Results container base visibility (v1 behavior preserved) */
.hp-search__results {
	display: none;
	padding: 0 0 12px;
}
.hp-search__results--open { display: block; }

/* Mobile: bottom sheet */
@media (max-width: 768px) {
	.hp-search-modal__container {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: 88vh;
		height: auto;
		border-radius: 16px 16px 0 0;
		transform: translate(0, 100%);
		opacity: 0;
	}
	body.hp-search-modal--open .hp-search-modal__container {
		transform: translate(0, 0);
		opacity: 1;
	}
	.hp-search-modal__form { padding: 4px 10px 4px 18px; }
	.hp-search-modal__input { font-size: 1rem; padding: 14px 10px; }
	.hp-search-modal__hint { padding: 20px 14px; }
}

/* ══════════════════════════════════════════════════════════════════════
   2. POLISHED RESULT LAYOUT + CHIPS (v2)
   ══════════════════════════════════════════════════════════════════════ */

:root {
	--pps-card-hover: rgba(255, 159, 28, 0.05);
	--pps-card-active: rgba(255, 159, 28, 0.10);
	--pps-accent: var(--ppn-saffron, #ff9f1c);
	--pps-accent-deep: var(--ppn-saffron-deep, #8c5a1c);
	--pps-hairline: rgba(15, 12, 6, 0.06);
	--pps-ink: rgba(15, 12, 6, 0.92);
	--pps-ink-2: rgba(15, 12, 6, 0.62);
	--pps-ink-3: rgba(15, 12, 6, 0.42);
	--pps-radius: 10px;
	--pps-radius-sm: 6px;
}

/* ══════════════════════════════════════════════════════════
   Results container — refined scrollbar + breathing room
   ══════════════════════════════════════════════════════════ */
.hp-search__results {
	padding: 0.25rem 0 0.35rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(140, 90, 28, 0.25) transparent;
}
.hp-search__results::-webkit-scrollbar { width: 8px; }
.hp-search__results::-webkit-scrollbar-track { background: transparent; }
.hp-search__results::-webkit-scrollbar-thumb {
	background: rgba(140, 90, 28, 0.18);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}
.hp-search__results::-webkit-scrollbar-thumb:hover {
	background: rgba(140, 90, 28, 0.32);
	background-clip: padding-box;
}

/* ══════════════════════════════════════════════════════════
   Category group
   ══════════════════════════════════════════════════════════ */
.hp-search__cat {
	padding: 0.15rem 0 0.45rem;
	margin-top: 0.25rem;
}
.hp-search__cat + .hp-search__cat {
	margin-top: 0.15rem;
	border-top: 1px solid var(--pps-hairline);
	padding-top: 0.55rem;
}
.hp-search__cat-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pps-accent-deep);
	padding: 0.55rem 1.1rem 0.35rem;
	background: transparent;
}
.hp-search__cat-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--pps-hairline), transparent);
}

/* ══════════════════════════════════════════════════════════
   Result card
   ══════════════════════════════════════════════════════════ */
.hp-search__result {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.68rem 1.1rem;
	border: 1px solid transparent;
	border-radius: var(--pps-radius);
	margin: 0 0.4rem;
	text-decoration: none;
	color: inherit;
	transition:
		background 140ms ease,
		border-color 140ms ease,
		transform 140ms ease,
		box-shadow 140ms ease;

	/* Stagger fade-up on first render */
	animation: pps-fade-up 260ms cubic-bezier(.2, .7, .3, 1) both;
}
.hp-search__result:hover,
.hp-search__result:focus-visible {
	background: var(--pps-card-hover);
	border-color: rgba(255, 159, 28, 0.18);
	transform: translateY(-1px);
	box-shadow:
		0 1px 2px rgba(15, 12, 6, 0.04),
		0 4px 14px rgba(255, 159, 28, 0.10);
	outline: none;
}
.hp-search__result--active {
	background: var(--pps-card-active);
	border-color: rgba(255, 159, 28, 0.32);
	box-shadow:
		inset 3px 0 0 var(--pps-accent),
		0 2px 8px rgba(255, 159, 28, 0.14);
}

@keyframes pps-fade-up {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Stagger each card by its DOM position inside a category */
.hp-search__cat .hp-search__result:nth-child(2) { animation-delay: 20ms; }
.hp-search__cat .hp-search__result:nth-child(3) { animation-delay: 40ms; }
.hp-search__cat .hp-search__result:nth-child(4) { animation-delay: 60ms; }

/* ══════════════════════════════════════════════════════════
   Thumbnail / icon
   ══════════════════════════════════════════════════════════ */
.hp-search__result-img {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: var(--pps-radius-sm);
	object-fit: cover;
	background: linear-gradient(135deg, #faf8f1, #f1e9d6);
	box-shadow: 0 0 0 1px rgba(15, 12, 6, 0.04);
	overflow: hidden;
}
.hp-search__result-img--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	filter: saturate(0.85);
}

/* ══════════════════════════════════════════════════════════
   Info block: title / excerpt
   ══════════════════════════════════════════════════════════ */
.hp-search__result-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.hp-search__result-row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}
.hp-search__result-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var(--pps-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hp-search__result-excerpt {
	font-size: 0.81rem;
	line-height: 1.45;
	color: var(--pps-ink-2);
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

/* ══════════════════════════════════════════════════════════
   Type badge — refined pills with better color semantics
   ══════════════════════════════════════════════════════════ */
.hp-search__result-badge {
	flex: 0 0 auto;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	border: 1px solid transparent;
	white-space: nowrap;
	line-height: 1;
	font-feature-settings: "tnum" 1;
}
.hp-search__result-badge--service {
	background: linear-gradient(180deg, rgba(255, 159, 28, 0.14), rgba(255, 159, 28, 0.08));
	color: #8c5a1c;
	border-color: rgba(255, 159, 28, 0.28);
}
.hp-search__result-badge--guide {
	background: linear-gradient(180deg, rgba(47, 117, 82, 0.12), rgba(47, 117, 82, 0.06));
	color: #1e6547;
	border-color: rgba(47, 117, 82, 0.22);
}
.hp-search__result-badge--faq {
	background: linear-gradient(180deg, rgba(109, 90, 207, 0.12), rgba(109, 90, 207, 0.06));
	color: #4c38b0;
	border-color: rgba(109, 90, 207, 0.22);
}
.hp-search__result-badge--page {
	background: linear-gradient(180deg, rgba(100, 116, 139, 0.12), rgba(100, 116, 139, 0.06));
	color: #475569;
	border-color: rgba(100, 116, 139, 0.22);
}
.hp-search__result-badge--other {
	background: rgba(15, 12, 6, 0.06);
	color: var(--pps-ink-2);
}

/* ══════════════════════════════════════════════════════════
   Price chip
   ══════════════════════════════════════════════════════════ */
.hp-search__result-price {
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--pps-accent-deep);
	padding: 0.12rem 0.5rem;
	border-radius: 6px;
	background: rgba(255, 159, 28, 0.10);
	font-feature-settings: "tnum" 1;
	letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════════════════
   Arrow affordance
   ══════════════════════════════════════════════════════════ */
.hp-search__result-view {
	flex: 0 0 auto;
	color: var(--pps-ink-3);
	font-size: 1rem;
	line-height: 1;
	padding: 0 0.15rem;
	transition: transform 160ms ease, color 160ms ease;
}
.hp-search__result:hover .hp-search__result-view,
.hp-search__result--active .hp-search__result-view {
	color: var(--pps-accent-deep);
	transform: translateX(2px);
}

/* ══════════════════════════════════════════════════════════
   Match highlight — subtle, composed
   ══════════════════════════════════════════════════════════ */
.hp-search__result mark,
.hp-search__empty mark {
	background: linear-gradient(180deg, transparent 55%, rgba(255, 159, 28, 0.32) 55%);
	color: inherit;
	padding: 0 0.05em;
	border-radius: 2px;
	font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   Zero-result state — inviting, visual
   ══════════════════════════════════════════════════════════ */
.hp-search__empty {
	padding: 2rem 1.2rem 1.85rem;
	text-align: center;
	animation: pps-fade-up 300ms cubic-bezier(.2, .7, .3, 1) both;
}
.hp-search__empty::before {
	content: "🔍";
	display: block;
	font-size: 2rem;
	margin-bottom: 0.5rem;
	opacity: 0.75;
}
.hp-search__empty-title {
	font-size: 1.02rem;
	color: var(--pps-ink);
	margin-bottom: 0.35rem;
	font-weight: 500;
}
.hp-search__empty-title strong {
	color: var(--pps-accent-deep);
	font-weight: 700;
}
.hp-search__empty-sub {
	font-size: 0.8rem;
	color: var(--pps-ink-3);
	margin-bottom: 1rem;
	letter-spacing: 0.01em;
}
.hp-search__empty-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-bottom: 1.3rem;
}
.hp-search__empty-tag {
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.38rem 0.9rem;
	background: rgba(255, 159, 28, 0.08);
	color: var(--pps-accent-deep);
	border: 1px solid rgba(255, 159, 28, 0.22);
	border-radius: 999px;
	transition:
		background 140ms ease,
		transform 140ms ease,
		border-color 140ms ease,
		box-shadow 140ms ease;
}
.hp-search__empty-tag:hover,
.hp-search__empty-tag:focus-visible {
	background: rgba(255, 159, 28, 0.18);
	border-color: rgba(255, 159, 28, 0.42);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(255, 159, 28, 0.18);
	outline: none;
}
.hp-search__empty-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.58rem 1.15rem;
	background: #25d366;
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
	transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.hp-search__empty-cta:hover,
.hp-search__empty-cta:focus-visible {
	background: #1fb757;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
	color: #fff;
	outline: none;
}

/* ══════════════════════════════════════════════════════════
   "See all N results" link
   ══════════════════════════════════════════════════════════ */
.hp-search__seeall {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.85rem 1rem;
	margin-top: 0.4rem;
	background: linear-gradient(180deg, rgba(255, 159, 28, 0.06), rgba(255, 159, 28, 0.02));
	color: var(--pps-accent-deep);
	font-weight: 600;
	font-size: 0.86rem;
	text-decoration: none;
	border-top: 1px solid var(--pps-hairline);
	transition: background 140ms ease, color 140ms ease;
}
.hp-search__seeall:hover,
.hp-search__seeall:focus-visible {
	background: linear-gradient(180deg, rgba(255, 159, 28, 0.14), rgba(255, 159, 28, 0.06));
	color: var(--pps-accent-deep);
	outline: none;
}

/* ══════════════════════════════════════════════════════════
   Loading state — shimmer skeleton
   ══════════════════════════════════════════════════════════ */
.hp-search__loading {
	padding: 0.35rem 0;
}
.hp-search__loading::before {
	content: "";
	display: block;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 159, 28, 0.35) 50%,
		transparent 100%
	);
	animation: pps-shimmer 1.4s ease-in-out infinite;
	background-size: 200% 100%;
}
.hp-search__loading::after {
	content: "";
	display: block;
	margin: 0.4rem 0.6rem;
	height: 54px;
	border-radius: var(--pps-radius);
	background: linear-gradient(
		90deg,
		rgba(15, 12, 6, 0.03) 0%,
		rgba(15, 12, 6, 0.08) 50%,
		rgba(15, 12, 6, 0.03) 100%
	);
	background-size: 200% 100%;
	animation: pps-shimmer 1.4s ease-in-out infinite;
}
@keyframes pps-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════
   Chip row (filter pills + suggestion chips above results)
   ══════════════════════════════════════════════════════════ */
.hp-search__chiprow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.6rem 1.1rem 0.4rem;
	border-bottom: 1px solid var(--pps-hairline);
}
.hp-search__chiprow-label {
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pps-ink-3);
	margin-right: 0.25rem;
}
.hp-search__chip {
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 500;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(15, 12, 6, 0.12);
	background: #fff;
	color: var(--pps-ink);
	transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, color 120ms ease;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 1;
}
.hp-search__chip:hover,
.hp-search__chip:focus-visible {
	background: rgba(255, 159, 28, 0.08);
	border-color: rgba(255, 159, 28, 0.3);
	color: var(--pps-accent-deep);
	transform: translateY(-1px);
	outline: none;
}
.hp-search__chip--suggest::before {
	content: "↗";
	font-size: 0.8rem;
	color: var(--pps-ink-3);
	margin-right: 0.1rem;
}
.hp-search__chip--filter {
	padding: 0.3rem 0.65rem;
}
.hp-search__chip--active {
	background: rgba(255, 159, 28, 0.14);
	border-color: rgba(255, 159, 28, 0.42);
	color: var(--pps-accent-deep);
	font-weight: 600;
}
.hp-search__chip-n {
	font-size: 0.66rem;
	font-weight: 700;
	padding: 0.08rem 0.4rem;
	border-radius: 999px;
	background: rgba(15, 12, 6, 0.06);
	color: var(--pps-ink-2);
	font-feature-settings: "tnum" 1;
}
.hp-search__chip--active .hp-search__chip-n {
	background: rgba(255, 159, 28, 0.3);
	color: var(--pps-accent-deep);
}

/* ══════════════════════════════════════════════════════════
   "Did you mean …?" suggestion in zero state
   ══════════════════════════════════════════════════════════ */
.hp-search__didyoumean {
	font-size: 0.9rem;
	color: var(--pps-ink-2);
	margin: 0.4rem 0 0.9rem;
}
.hp-search__didyoumean-term {
	display: inline-block;
	background: transparent;
	border: none;
	padding: 0.1rem 0.2rem;
	color: var(--pps-accent-deep);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 159, 28, 0.4);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	cursor: pointer;
	font-size: inherit;
	transition: color 120ms ease, text-decoration-color 120ms ease;
}
.hp-search__didyoumean-term:hover,
.hp-search__didyoumean-term:focus-visible {
	color: var(--pps-accent, #ff9f1c);
	text-decoration-color: var(--pps-accent, #ff9f1c);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.hp-search__chip:hover { transform: none; }
}
@media (max-width: 640px) {
	.hp-search__chiprow {
		padding: 0.5rem 0.85rem 0.35rem;
		gap: 0.3rem;
	}
	.hp-search__chip {
		font-size: 0.74rem;
		padding: 0.24rem 0.6rem;
	}
	.hp-search__chiprow-label {
		width: 100%;
		margin-bottom: 0.2rem;
	}
}

/* ══════════════════════════════════════════════════════════
   Category header count ("3 of 12")
   ══════════════════════════════════════════════════════════ */
.hp-search__cat-count {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 600;
	padding: 0.08rem 0.42rem;
	border-radius: 999px;
	background: rgba(15, 12, 6, 0.05);
	color: var(--pps-ink-2);
	letter-spacing: 0;
	text-transform: none;
	margin-left: 0.25rem;
	font-feature-settings: "tnum" 1;
}

/* ══════════════════════════════════════════════════════════
   Clear button (✕) inside input
   ══════════════════════════════════════════════════════════ */
.hp-search-modal__clear {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.4rem;
	margin: 0 0.2rem;
	color: var(--pps-ink-3);
	border-radius: 999px;
	transition: background 120ms ease, color 120ms ease;
	line-height: 0;
}
.hp-search-modal__clear:hover,
.hp-search-modal__clear:focus-visible {
	background: rgba(15, 12, 6, 0.06);
	color: var(--pps-ink);
	outline: none;
}

/* ══════════════════════════════════════════════════════════
   Keyboard shortcut footer bar
   ══════════════════════════════════════════════════════════ */
.hp-search-modal__footer {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 0.55rem 1.1rem;
	border-top: 1px solid var(--pps-hairline);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(247, 245, 239, 0.65));
	font-size: 0.72rem;
	color: var(--pps-ink-3);
	flex-wrap: wrap;
}
.hp-search-modal__footer kbd {
	display: inline-block;
	min-width: 20px;
	padding: 2px 5px;
	margin: 0 3px 0 0;
	border: 1px solid rgba(15, 12, 6, 0.15);
	border-radius: 4px;
	background: #fff;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--pps-ink-2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	vertical-align: middle;
	box-shadow: 0 1px 0 rgba(15, 12, 6, 0.06);
}
.hp-search-modal__footer-right {
	margin-left: auto;
}
@media (max-width: 640px) {
	.hp-search-modal__footer { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Header search icon (global)
   ══════════════════════════════════════════════════════════ */
.ppn-nav__icon--search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
	transition: background 140ms ease, color 140ms ease, transform 140ms ease;
	cursor: pointer;
}
.ppn-nav__icon--search:hover,
.ppn-nav__icon--search:focus-visible {
	background: rgba(255, 159, 28, 0.12);
	color: var(--pps-accent-deep, #8c5a1c);
	outline: none;
	transform: scale(1.04);
}
.ppn-nav__icon--search svg {
	width: 20px;
	height: 20px;
}
.ppn-nav__icon--search .screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
	.ppn-nav__icon--search:hover,
	.ppn-nav__icon--search:focus-visible { transform: none; }
}

/* ══════════════════════════════════════════════════════════
   Recent searches block (inside .hp-search-modal__hint)
   ══════════════════════════════════════════════════════════ */
.hp-search-modal__recent {
	margin-top: 1.1rem;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--pps-hairline);
	animation: pps-fade-up 280ms cubic-bezier(.2, .7, .3, 1) both;
}
.hp-search-modal__recent-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pps-ink-3);
	margin: 0 0 0.55rem;
	text-align: center;
}
.hp-search-modal__tag--recent {
	background: rgba(15, 12, 6, 0.04);
	color: var(--pps-ink);
	border-color: rgba(15, 12, 6, 0.09);
	position: relative;
	padding-left: 1.8rem;
}
.hp-search-modal__tag--recent::before {
	content: "↻";
	position: absolute;
	left: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.85rem;
	color: var(--pps-ink-3);
}
.hp-search-modal__tag--recent:hover,
.hp-search-modal__tag--recent:focus-visible {
	background: rgba(255, 159, 28, 0.10);
	color: var(--pps-accent-deep);
	border-color: rgba(255, 159, 28, 0.24);
}

/* ══════════════════════════════════════════════════════════
   Reduced motion
   ══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	.hp-search__result,
	.hp-search__empty {
		animation: none;
	}
	.hp-search__result:hover,
	.hp-search__empty-tag:hover,
	.hp-search__empty-cta:hover {
		transform: none;
	}
	.hp-search__result:hover .hp-search__result-view,
	.hp-search__result--active .hp-search__result-view {
		transform: none;
	}
	.hp-search__loading::before,
	.hp-search__loading::after {
		animation: none;
	}
}

/* ══════════════════════════════════════════════════════════
   Mobile refinements
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
	.hp-search__cat-title {
		padding: 0.5rem 0.9rem 0.25rem;
		font-size: 0.6rem;
	}
	.hp-search__result {
		margin: 0 0.2rem;
		padding: 0.6rem 0.85rem;
		gap: 0.7rem;
	}
	.hp-search__result-img {
		width: 38px;
		height: 38px;
	}
	.hp-search__result-name {
		font-size: 0.9rem;
	}
	.hp-search__result-excerpt {
		font-size: 0.76rem;
	}
	.hp-search__empty { padding: 1.6rem 0.8rem 1.5rem; }
	.hp-search__empty::before { font-size: 1.7rem; }
	.hp-search__empty-title { font-size: 0.94rem; }
	.hp-search__empty-tag { font-size: 0.78rem; padding: 0.32rem 0.75rem; }
}

/* ══════════════════════════════════════════════════════════
   Dark-mode (future — respects system preference if enabled)
   ══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
	.hp-search__results:not(.hp-search__results--force-light) {
		/* Reserved for when the full site supports dark mode.
		   Currently no-op to avoid half-dark states. */
	}
}
