.search-naturally {
	--sn-radius: 12px;
	--sn-border: #e2e5ea;
	/* Button + link accent. Change this one value to match your theme's brand color. */
	--sn-accent: #1a1a1a;
	--sn-accent-hover: #333333;
	--sn-title: #111418;
	--sn-text: #3a414b;
	--sn-muted: #6b7280;
	--sn-card: #ffffff;
	--sn-card-hover: #f7f9fc;
	--sn-input-bg: #ffffff;

	max-width: 760px;
	margin: 0 0 1.5rem;
	font-size: 16px;
}

.search-naturally__form {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.search-naturally__input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 0.95rem 1.15rem;
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	background: var(--sn-input-bg);
	color: var(--sn-title);
	font-size: 1.2rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-naturally__input:focus {
	outline: none;
	border-color: var(--sn-accent);
	box-shadow: 0 0 0 3px rgba( 17, 20, 24, 0.1 );
}

.search-naturally__button {
	padding: 0.9rem 1.6rem;
	border: 0;
	border-radius: var(--sn-radius);
	background: var(--sn-accent);
	color: #fff;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.search-naturally__button:hover {
	background: var(--sn-accent-hover);
}

.search-naturally__button:disabled {
	opacity: 0.6;
	cursor: default;
}

.search-naturally__status {
	margin: 0.9rem 0 0;
	color: var(--sn-muted);
	font-size: 1.15rem;
	min-height: 1.2em;
}

.search-naturally__status.is-error {
	color: #b32d2e;
}

.search-naturally.is-loading .search-naturally__status::after {
	content: "";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-left: 0.5em;
	vertical-align: -1px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sn-spin 0.7s linear infinite;
}

@keyframes sn-spin {
	to { transform: rotate( 360deg ); }
}

.search-naturally__results {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.search-naturally__result {
	display: flex;
	gap: 1.1rem;
	padding: 1.1rem 1.2rem;
	background: var(--sn-card);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.search-naturally__result:hover {
	background: var(--sn-card-hover);
	box-shadow: 0 6px 20px rgba( 17, 20, 24, 0.08 );
	transform: translateY( -1px );
}

/* Placeholder thumbnail (no image available). */
.search-naturally__thumb--placeholder {
	width: 128px;
	height: 92px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 135deg, #eef1f6, #e2e7ef );
	color: #9aa2ae;
}

.search-naturally__thumb--placeholder svg {
	width: 38px;
	height: 38px;
}

/* Skeleton loading cards. */
.search-naturally__result--skeleton,
.search-naturally__result--skeleton:hover {
	cursor: default;
	background: var(--sn-card);
	box-shadow: none;
	transform: none;
}

.search-naturally__skel-box,
.search-naturally__skel-line {
	background: linear-gradient( 90deg, rgba( 17, 20, 24, 0.06 ) 25%, rgba( 17, 20, 24, 0.12 ) 37%, rgba( 17, 20, 24, 0.06 ) 63% );
	background-size: 400% 100%;
	animation: sn-shimmer 1.4s ease infinite;
	border-radius: 6px;
}

.search-naturally__skel-box {
	width: 128px;
	height: 92px;
	border-radius: 10px;
	flex: 0 0 auto;
}

.search-naturally__skel-line {
	height: 0.85rem;
	margin-bottom: 0.6rem;
}

.search-naturally__skel-line--title {
	height: 1.15rem;
	width: 70%;
	margin-bottom: 0.75rem;
}

.search-naturally__skel-line--meta {
	width: 32%;
}

.search-naturally__skel-line--short {
	width: 55%;
	margin-bottom: 0;
}

@keyframes sn-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

.search-naturally__thumb {
	flex: 0 0 auto;
}

.search-naturally__thumb img {
	width: 128px;
	height: 92px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.search-naturally__body {
	flex: 1 1 auto;
	min-width: 0;
}

.search-naturally__title {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sn-title);
}

.search-naturally__title a {
	color: inherit;
	text-decoration: none;
}

.search-naturally__title a:hover {
	color: var(--sn-accent);
	text-decoration: underline;
}

.search-naturally__meta {
	color: var(--sn-muted);
	font-size: 1.15rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-bottom: 0.55rem;
}

.search-naturally__excerpt {
	margin: 0;
	color: var(--sn-text);
	font-size: 1.4rem;
	line-height: 1.6;
}

/* ---- Mobile ---------------------------------------------------------- */
@media ( max-width: 600px ) {
	.search-naturally__form {
		gap: 0.5rem;
	}

	.search-naturally__input {
		flex: 1 1 100%;
		font-size: 1.1rem;
	}

	/* Full-width tappable search button. */
	.search-naturally__button {
		flex: 1 1 100%;
		width: 100%;
		font-size: 1.1rem;
	}

	/* Stack the card: banner image on top, text full width below. */
	.search-naturally__result {
		flex-direction: column;
		gap: 0.85rem;
		padding: 1rem;
	}

	.search-naturally__thumb {
		width: 100%;
	}

	.search-naturally__thumb img,
	.search-naturally__thumb--placeholder,
	.search-naturally__skel-box {
		width: 100%;
		height: 170px;
	}

	.search-naturally__title {
		font-size: 1.4rem;
	}

	.search-naturally__excerpt {
		font-size: 1.15rem;
	}

	.search-naturally__meta {
		font-size: 1rem;
	}

	.search-naturally__status {
		font-size: 1.05rem;
	}
}

/* ---- Small phones ---------------------------------------------------- */
@media ( max-width: 380px ) {
	.search-naturally__thumb img,
	.search-naturally__thumb--placeholder,
	.search-naturally__skel-box {
		height: 140px;
	}

	.search-naturally__title {
		font-size: 1.3rem;
	}
}

/* ---- Image results strip ---------------------------------------------- */

.search-naturally__images {
	position: relative;
	margin: 1.25rem 0 0;
}

.search-naturally__imgtrack {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x proximity; /* mandatory fights the arrows' programmatic smooth scroll */
	scrollbar-width: none; /* arrows are the affordance; keep the row clean */
	-webkit-overflow-scrolling: touch;
	padding: 2px; /* room for the card focus ring */
}

.search-naturally__imgtrack::-webkit-scrollbar {
	display: none;
}

.search-naturally__imgcard {
	flex: 0 0 auto;
	width: 168px;
	scroll-snap-align: start;
	text-decoration: none;
	border: 1px solid var(--sn-border);
	border-radius: 10px;
	background: var(--sn-card);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.search-naturally__imgcard:hover {
	box-shadow: 0 6px 20px rgba( 17, 20, 24, 0.12 );
	transform: translateY( -1px );
}

.search-naturally__imgcard img {
	display: block;
	width: 100%;
	height: 112px;
	object-fit: cover;
}

.search-naturally__imgcaption {
	display: block;
	padding: 0.45rem 0.6rem;
	font-size: 0.95rem;
	line-height: 1.35;
	color: var(--sn-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-naturally__imgnav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--sn-border);
	border-radius: 50%;
	background: var(--sn-card);
	color: var(--sn-title);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba( 17, 20, 24, 0.15 );
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-naturally__imgnav:hover {
	background: var(--sn-card-hover);
}

.search-naturally__imgnav--prev {
	left: -12px;
}

.search-naturally__imgnav--next {
	right: -12px;
}

@media ( max-width: 600px ) {
	.search-naturally__imgcard {
		width: 132px;
	}

	.search-naturally__imgcard img {
		height: 90px;
	}

	/* Keep the arrows inside the viewport on small screens. */
	.search-naturally__imgnav--prev {
		left: 4px;
	}

	.search-naturally__imgnav--next {
		right: 4px;
	}
}

/* display:flex above would beat the UA's [hidden] rule: restate it. */
.search-naturally__imgnav[hidden],
.search-naturally__images[hidden] {
	display: none;
}

/* ---------------------------------------------------------------------------
 * In-widget notices.
 *
 * The indexing one is admin-only and says so: an owner who searches their own
 * site an hour after signing up needs to know the library is still filling,
 * and a visitor does not. The demo one is public on purpose: a search box
 * showing canned results should say it is, so a live page can't be left that
 * way by accident.
 * ------------------------------------------------------------------------- */

.search-naturally__indexing {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	background: #f0f6fc;
	color: #1d2327;
	font-size: 0.875em;
	line-height: 1.5;
}

.search-naturally__indexing--demo {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.search-naturally__indexing a {
	white-space: nowrap;
}
