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

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

.natural-searches__form {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

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

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

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

.natural-searches__button:hover {
	background: var(--ns-accent-hover);
}

.natural-searches__button:disabled {
	opacity: 0.6;
	cursor: default;
}

.natural-searches__status {
	margin: 0.9rem 0 0;
	color: var(--ns-muted);
	font-size: 1.15rem;
	min-height: 1.2em;
}

.natural-searches__status.is-error {
	color: #b32d2e;
}

.natural-searches.is-loading .natural-searches__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: ns-spin 0.7s linear infinite;
}

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

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

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

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

/* Placeholder thumbnail (no image available). */
.natural-searches__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;
}

.natural-searches__thumb--placeholder svg {
	width: 38px;
	height: 38px;
}

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

.natural-searches__skel-box,
.natural-searches__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: ns-shimmer 1.4s ease infinite;
	border-radius: 6px;
}

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

.natural-searches__skel-line {
	height: 0.85rem;
	margin-bottom: 0.6rem;
}

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

.natural-searches__skel-line--meta {
	width: 32%;
}

.natural-searches__skel-line--short {
	width: 55%;
	margin-bottom: 0;
}

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

.natural-searches__thumb {
	flex: 0 0 auto;
}

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

.natural-searches__body {
	flex: 1 1 auto;
	min-width: 0;
}

.natural-searches__title {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ns-title);
}

.natural-searches__title a {
	color: inherit;
	text-decoration: none;
}

.natural-searches__title a:hover {
	color: var(--ns-accent);
	text-decoration: underline;
}

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

.natural-searches__excerpt {
	margin: 0;
	color: var(--ns-text);
	font-size: 1.4rem;
	line-height: 1.6;
}

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

	.natural-searches__input {
		flex: 1 1 100%;
		font-size: 1.1rem;
	}

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

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

	.natural-searches__thumb {
		width: 100%;
	}

	.natural-searches__thumb img,
	.natural-searches__thumb--placeholder,
	.natural-searches__skel-box {
		width: 100%;
		height: 170px;
	}

	.natural-searches__title {
		font-size: 1.4rem;
	}

	.natural-searches__excerpt {
		font-size: 1.15rem;
	}

	.natural-searches__meta {
		font-size: 1rem;
	}

	.natural-searches__status {
		font-size: 1.05rem;
	}
}

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

	.natural-searches__title {
		font-size: 1.3rem;
	}
}

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

.natural-searches__images {
	position: relative;
	margin: 1.25rem 0 0;
}

.natural-searches__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 */
}

.natural-searches__imgtrack::-webkit-scrollbar {
	display: none;
}

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

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

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

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

.natural-searches__imgnav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--ns-border);
	border-radius: 50%;
	background: var(--ns-card);
	color: var(--ns-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;
}

.natural-searches__imgnav:hover {
	background: var(--ns-card-hover);
}

.natural-searches__imgnav--prev {
	left: -12px;
}

.natural-searches__imgnav--next {
	right: -12px;
}

@media ( max-width: 600px ) {
	.natural-searches__imgcard {
		width: 132px;
	}

	.natural-searches__imgcard img {
		height: 90px;
	}

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

	.natural-searches__imgnav--next {
		right: 4px;
	}
}

/* display:flex above would beat the UA's [hidden] rule — restate it. */
.natural-searches__imgnav[hidden],
.natural-searches__images[hidden] {
	display: none;
}
