/**
 * NanoCellect Filters - Branded Styles
 * Based on NanoCellect Brand Playbook v1.0
 */

/* Brand Colors - Primary Palette (Blue tones inspired by 488nm laser) */
:root {
	--nano-primary-blue: #00699B;
	--nano-dark-blue: #0A3D66;
	--nano-light-blue: #B3D2E1; /* 30% tint of primary blue */
	--nano-orange: #D83B95; /* Magenta for Clear button */
	--nano-orange-light: #F5D8E8;
	--nano-gray-light: #F5F5F5;
	--nano-gray-medium: #CCCCCC;
	--nano-gray-dark: #666666;
	--nano-text: #1A1A1A; /* 85% process black for softer contrast */
	--nano-white: #FFFFFF;
	--nano-field-height: 44px; /* Consistent height for all fields and buttons */
	--nano-pill-radius: 50px; /* Pill-shaped border radius */
}

/* Filter Container */
.nanocellect-scientific-filters {
	background: var(--nano-gray-light);
	border: 1px solid var(--nano-gray-medium);
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 30px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	align-items: end;
}

/* Mobile Filters Toggle Button */
.nanocellect-filters-toggle-mobile {
	display: none; /* Hidden on desktop by default */
	width: 100%;
	height: var(--nano-field-height);
	padding: 0 20px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: var(--nano-pill-radius);
	background: var(--nano-white);
	color: var(--nano-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.nanocellect-filters-toggle-mobile:hover {
	border-color: var(--nano-primary-blue);
}

.nanocellect-filters-toggle-mobile[aria-expanded="true"] {
	border-color: var(--nano-primary-blue);
	box-shadow: 0 0 0 2px var(--nano-light-blue);
}

.nanocellect-filters-toggle-mobile[aria-expanded="true"] .nanocellect-filters-toggle-arrow {
	transform: rotate(180deg);
}

.nanocellect-filters-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--nano-primary-blue);
	flex-shrink: 0;
}

.nanocellect-filters-toggle-text {
	flex: 1;
	text-align: left;
}

.nanocellect-filters-toggle-arrow {
	font-size: 10px;
	color: var(--nano-gray-dark);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

/* Filters Container (collapsible on mobile) */
.nanocellect-filters-container {
	display: contents; /* On desktop, acts as if it doesn't exist */
}

/* Sticky Header for Desktop */
@media (min-width: 769px) {
	.nanocellect-scientific-filters {
		position: sticky;
		top: 20px;
		z-index: 100;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}
	
	/* Hide mobile toggle on desktop */
	.nanocellect-filters-toggle-mobile {
		display: none;
	}
	
	/* Show filters container on desktop */
	.nanocellect-filters-container {
		display: contents;
	}
}

/* Individual Filter Groups */
.nanocellect-filter {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nanocellect-filter label {
	font-weight: 600;
	color: var(--nano-text);
	font-size: 14px;
	margin-bottom: 4px;
}

/* Search Input */
.nanocellect-filter--search {
	position: relative;
}

.nanocellect-filter--search input[type="text"] {
	width: 100%;
	height: var(--nano-field-height);
	padding: 0 20px;
	padding-right: 50px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: var(--nano-pill-radius);
	font-size: 14px;
	color: var(--nano-text);
	background: var(--nano-white);
	box-sizing: border-box;
	line-height: normal;
	vertical-align: middle;
}

.nanocellect-filter--search input[type="text"]:focus {
	outline: none;
	border-color: var(--nano-primary-blue);
	box-shadow: 0 0 0 2px var(--nano-light-blue);
}

/* Search Icon - Positioned relative to input field */
.nanocellect-filter--search::after {
	content: "";
	position: absolute;
	right: 8px;
	bottom: calc(var(--nano-field-height) / 2);
	width: 28px;
	height: 28px;
	transform: translateY(50%);
	display: block;
	background: var(--nano-white);
	border-radius: 50%;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M7.333 12.667A5.333 5.333 0 1 0 7.333 2a5.333 5.333 0 0 0 0 10.667ZM14 14l-2.9-2.9' stroke='%230066CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 16px 16px;
	margin: 0;
	padding: 0;
}

/* Date Input Fields */
.nanocellect-filter--date-start,
.nanocellect-filter--date-end {
	position: relative;
}

.nanocellect-filter--date-start input[type="date"],
.nanocellect-filter--date-end input[type="date"] {
	width: 100%;
	height: var(--nano-field-height);
	padding: 0 20px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: var(--nano-pill-radius);
	font-size: 14px;
	color: var(--nano-text);
	background: var(--nano-white);
	box-sizing: border-box;
	line-height: normal;
	vertical-align: middle;
	-webkit-appearance: none;
	-moz-appearance: textfield;
}

.nanocellect-filter--date-start input[type="date"]:focus,
.nanocellect-filter--date-end input[type="date"]:focus {
	outline: none;
	border-color: var(--nano-primary-blue);
	box-shadow: 0 0 0 2px var(--nano-light-blue);
}

/* Style the date picker icon/calendar button */
.nanocellect-filter--date-start input[type="date"]::-webkit-calendar-picker-indicator,
.nanocellect-filter--date-end input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.6;
	margin-left: 8px;
}

.nanocellect-filter--date-start input[type="date"]::-webkit-calendar-picker-indicator:hover,
.nanocellect-filter--date-end input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

/* Dropdown Container */
.nanocellect-dropdown {
	position: relative;
	width: 100%;
}

.nanocellect-dropdown-toggle {
	width: 100%;
	height: var(--nano-field-height);
	padding: 0 20px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: var(--nano-pill-radius);
	background: var(--nano-white);
	color: var(--nano-text);
	font-size: 14px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s ease;
	text-align: left;
	box-sizing: border-box;
}

.nanocellect-dropdown-toggle-text {
	flex: 1;
}

.nanocellect-dropdown-toggle:hover {
	border-color: var(--nano-primary-blue);
}

.nanocellect-dropdown-toggle.active {
	border-color: var(--nano-primary-blue);
	box-shadow: 0 0 0 2px var(--nano-light-blue);
}

.nanocellect-dropdown-toggle::after {
	content: "▼";
	font-size: 10px;
	color: var(--nano-gray-dark);
	transition: transform 0.2s ease;
}

.nanocellect-dropdown-toggle.active::after {
	transform: rotate(180deg);
}

/* Dropdown Menu */
.nanocellect-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--nano-white);
	border: 1px solid var(--nano-gray-medium);
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
}

.nanocellect-dropdown-menu.active {
	display: block;
}

/* Dropdown Options */
.nanocellect-dropdown-option {
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid var(--nano-gray-light);
}

.nanocellect-dropdown-option:last-child {
	border-bottom: none;
}

.nanocellect-dropdown-option:hover {
	background: var(--nano-light-blue);
}

/* Toggle Switch */
.nanocellect-toggle {
	position: relative;
	width: 40px;
	height: 20px;
	flex-shrink: 0;
}

.nanocellect-toggle input[type="checkbox"] {
	opacity: 0;
	width: 0;
	height: 0;
}

.nanocellect-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--nano-gray-medium);
	transition: 0.3s;
	border-radius: 20px;
}

.nanocellect-toggle-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: var(--nano-white);
	transition: 0.3s;
	border-radius: 50%;
}

.nanocellect-toggle input:checked + .nanocellect-toggle-slider {
	background-color: var(--nano-primary-blue);
}

.nanocellect-toggle input:checked + .nanocellect-toggle-slider:before {
	transform: translateX(20px);
}

.nanocellect-dropdown-option-label {
	flex: 1;
	font-size: 14px;
	color: var(--nano-text);
}

.nanocellect-facet-count {
	color: var(--nano-gray-dark);
	font-weight: 500;
	margin-left: 4px;
}

/* Sort Dropdown (Standard Select) */
.nanocellect-filter--sort select {
	width: 100%;
	height: var(--nano-field-height);
	padding: 0 20px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: var(--nano-pill-radius);
	background: var(--nano-white);
	color: var(--nano-text);
	font-size: 14px;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	padding-right: 45px;
}

.nanocellect-filter--sort select:focus {
	outline: none;
	border-color: var(--nano-primary-blue);
	box-shadow: 0 0 0 2px var(--nano-light-blue);
}

/* Action Buttons */
.nanocellect-scientific-filters .nanocellect-filter--submit {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
}

.nanocellect-scientific-filters .nanocellect-btn,
.nanocellect-scientific-filters button.nanocellect-btn {
	height: var(--nano-field-height);
	padding: 0 24px;
	border-radius: var(--nano-pill-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.nanocellect-scientific-filters .nanocellect-btn-primary,
.nanocellect-scientific-filters button.nanocellect-btn-primary {
	background: var(--nano-primary-blue);
	background-color: var(--nano-primary-blue);
	color: var(--nano-white);
}

.nanocellect-scientific-filters .nanocellect-btn-primary:hover,
.nanocellect-scientific-filters button.nanocellect-btn-primary:hover {
	background: var(--nano-dark-blue);
	background-color: var(--nano-dark-blue);
}

.nanocellect-scientific-filters .nanocellect-btn-secondary,
.nanocellect-scientific-filters button.nanocellect-btn-secondary {
	background: var(--nano-white);
	background-color: var(--nano-white);
	color: var(--nano-orange);
	border: 2px solid var(--nano-orange);
}

.nanocellect-scientific-filters .nanocellect-btn-secondary:hover,
.nanocellect-scientific-filters button.nanocellect-btn-secondary:hover {
	background: var(--nano-orange-light);
	background-color: var(--nano-orange-light);
}

/* Selected Count Badge */
.nanocellect-dropdown-selected-count {
	display: inline-block;
	background: var(--nano-primary-blue);
	color: var(--nano-white);
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 10px;
	margin-left: 8px;
	min-width: 18px;
	text-align: center;
}

/* Results - Mobile first: 1 column (1 result per row) */
.nanocellect-scientific-results {
	margin-top: 30px;
	margin-bottom: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.nanocellect-scientific-results .nanocellect-scientific-result,
.nanocellect-scientific-results article.nanocellect-scientific-result {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
	width: 100%;
	max-width: 100%;
	display: block;
	box-sizing: border-box;
}

/* Inner Grid - Image and Content within each result */
.nanocellect-scientific-results .nanocellect-result-grid,
.nanocellect-scientific-results article .nanocellect-result-grid,
.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-result-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 20px;
	align-items: start;
	margin: 0;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Image - Left column */
.nanocellect-scientific-results .nanocellect-result-image,
.nanocellect-scientific-results article .nanocellect-result-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1200 / 627;
	overflow: hidden;
	border-radius: 8px;
	background: var(--nano-gray-light);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0;
	padding: 0;
	display: block;
	grid-column: 1;
}

.nanocellect-scientific-results .nanocellect-result-image img {
	display: none;
}

.nanocellect-scientific-results .nanocellect-result-image a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	position: absolute;
	top: 0;
	left: 0;
}

.nanocellect-scientific-results .nanocellect-result-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--nano-gray-light);
	color: var(--nano-gray-dark);
	text-decoration: none;
	position: absolute;
	top: 0;
	left: 0;
}

.nanocellect-scientific-results .nanocellect-placeholder-icon {
	font-size: 48px;
	opacity: 0.5;
}

/* Content - Right column */
.nanocellect-scientific-results .nanocellect-result-content,
.nanocellect-scientific-results article .nanocellect-result-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	grid-column: 2;
	min-width: 0;
}

/* Event cards without images */
.nanocellect-scientific-results .nanocellect-event-card {
	background: var(--nano-gray-light);
	border-radius: 8px;
	padding: 0;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.nanocellect-scientific-results .nanocellect-event-card-has-link {
	transition: background-color 0.2s ease;
}

.nanocellect-scientific-results .nanocellect-event-card-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	padding: 0;
	box-sizing: border-box;
}

.nanocellect-scientific-results .nanocellect-event-card-has-link:hover {
	background: #E8E8E8;
}

.nanocellect-scientific-results .nanocellect-event-card:not(.nanocellect-event-card-has-link) {
	padding: 0;
}

.nanocellect-scientific-results .nanocellect-event-card:not(.nanocellect-event-card-has-link) .nanocellect-event-card-inner {
	padding: 24px 20px;
}

.nanocellect-scientific-results .nanocellect-event-card-inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
	padding: 24px 20px;
	box-sizing: border-box;
}

.nanocellect-scientific-results .nanocellect-event-card-image {
	flex-shrink: 0;
	max-width: 50%;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.nanocellect-scientific-results .nanocellect-event-card-image img {
	max-height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	border-radius: 8px;
}

.nanocellect-scientific-results .nanocellect-event-card-image a {
	display: inline-block;
	height: 100%;
	line-height: 0;
	text-decoration: none;
}

.nanocellect-scientific-results .nanocellect-event-card .nanocellect-result-content {
	grid-column: 1;
	width: 100%;
	flex: 1;
	gap: 14px;
}

.nanocellect-scientific-results .nanocellect-event-card .nanocellect-result-author {
	padding-bottom: 8px;
}

.nanocellect-scientific-results .nanocellect-result-type {
	font-size: 12px;
	font-weight: 600;
	color: var(--nano-gray-dark);
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	margin-top: 0;
}

.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-scientific-title,
.nanocellect-scientific-results h3.nanocellect-scientific-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	padding: 0;
	border: none;
	color: #4d4d4f;
}

.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-scientific-title a,
.nanocellect-scientific-results h3.nanocellect-scientific-title a {
	color: #4d4d4f;
	text-decoration: none;
	transition: color 0.2s ease;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-scientific-title a:hover,
.nanocellect-scientific-results h3.nanocellect-scientific-title a:hover {
	color: var(--nano-primary-blue);
	text-decoration: none;
}

/* Event card link styling - entire card is clickable */
.nanocellect-scientific-results .nanocellect-event-card-link {
	color: var(--nano-text);
}

.nanocellect-scientific-results .nanocellect-event-card-link:hover {
	color: var(--nano-text);
	text-decoration: none;
}

.nanocellect-scientific-results .nanocellect-event-card .nanocellect-scientific-title,
.nanocellect-scientific-results .nanocellect-event-card-link .nanocellect-scientific-title {
	color: #4d4d4f;
}

.nanocellect-scientific-results .nanocellect-event-card-link:hover .nanocellect-scientific-title,
.nanocellect-scientific-results .nanocellect-event-card-has-link:hover .nanocellect-scientific-title {
	color: #4d4d4f;
}

.nanocellect-scientific-results .nanocellect-result-author {
	font-size: 14px;
	color: #4d4d4f;
	font-weight: 500;
	margin-top: 4px;
	margin-bottom: 0;
}

.nanocellect-scientific-results .nanocellect-meta-separator {
	font-size: 11px;
	padding: 0 5px;
	display: inline-block;
}

.nanocellect-scientific-results .nanocellect-result-products {
	font-size: 14px;
	color: var(--nano-gray-dark);
	margin-top: 4px;
	margin-bottom: 0;
}

.nanocellect-scientific-results .nanocellect-scientific-excerpt {
	color: var(--nano-text);
	line-height: 1.6;
	font-size: 15px;
	margin-top: 8px;
	margin-bottom: 0;
}

/* Events Tabs */
.nanocellect-events-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--nano-gray-medium);
}

.nanocellect-tab {
	display: inline-block;
	padding: 12px 24px;
	background: transparent;
	color: var(--nano-text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.nanocellect-events-tabs .nanocellect-tab:hover,
.nanocellect-tab:hover {
	color: #00b0d2;
	background: transparent;
	text-decoration: none;
}

.nanocellect-tab-active {
	color: var(--nano-primary-blue);
	border-bottom-color: var(--nano-primary-blue);
	background: transparent;
}

.nanocellect-tab-active:hover {
	background: transparent;
}

/* Responsive: Tablet portrait and below (768px and below) */
@media (max-width: 768px) {
	/* Show mobile toggle button */
	.nanocellect-filters-toggle-mobile {
		display: flex;
	}
	
	/* Filter form: Stack all filters to 1 column */
	.nanocellect-scientific-filters {
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column;
		gap: 15px;
	}
	
	/* Hide filters container by default on mobile */
	.nanocellect-filters-container {
		display: none;
		flex-direction: column;
		gap: 15px;
		width: 100%;
	}
	
	/* Show filters container when expanded */
	.nanocellect-filters-container[aria-hidden="false"] {
		display: flex;
	}
	
	.nanocellect-scientific-filters .nanocellect-filter {
		width: 100%;
		max-width: 100%;
	}
	
	.nanocellect-scientific-filters .nanocellect-filter--submit {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
	}
	
	.nanocellect-scientific-filters .nanocellect-btn {
		flex: 1;
		min-width: 120px;
	}
	
	/* Outer grid: 1 result per row on mobile (already set in base, but ensure it here) */
	.nanocellect-scientific-results {
		display: grid;
		grid-template-columns: 1fr;
		gap: 30px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.nanocellect-scientific-results .nanocellect-scientific-result,
	.nanocellect-scientific-results article.nanocellect-scientific-result {
		width: 100%;
		max-width: 100%;
		grid-column: 1;
		box-sizing: border-box;
	}
	
	/* Inner grid: Keep image and content side-by-side on mobile, full width */
	.nanocellect-scientific-results .nanocellect-result-grid,
	.nanocellect-scientific-results article .nanocellect-result-grid,
	.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-result-grid {
		display: grid;
		grid-template-columns: 1fr 1.5fr;
		gap: 20px;
		align-items: start;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.nanocellect-scientific-results .nanocellect-result-image,
	.nanocellect-scientific-results article .nanocellect-result-image {
		grid-column: 1;
	}
	
	.nanocellect-scientific-results .nanocellect-result-content,
	.nanocellect-scientific-results article .nanocellect-result-content {
		grid-column: 2;
	}
	
	.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-scientific-title,
	.nanocellect-scientific-results h3.nanocellect-scientific-title {
		font-size: 16px;
		color: #4d4d4f;
	}
}

/* Desktop: 2-column layout (769px and above) */
@media (min-width: 769px) {
	.nanocellect-scientific-results {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
		margin-top: 30px;
		margin-bottom: 0;
		padding: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.nanocellect-scientific-results .nanocellect-scientific-result,
	.nanocellect-scientific-results article.nanocellect-scientific-result {
		width: 100%;
		max-width: 100%;
	}
	
	.nanocellect-scientific-results .nanocellect-result-grid,
	.nanocellect-scientific-results article .nanocellect-result-grid,
	.nanocellect-scientific-results .nanocellect-scientific-result .nanocellect-result-grid {
		display: grid;
		grid-template-columns: 1fr 1.5fr;
		gap: 20px;
		align-items: start;
	}
	
	.nanocellect-scientific-results .nanocellect-result-image,
	.nanocellect-scientific-results article .nanocellect-result-image {
		grid-column: 1;
	}
	
	.nanocellect-scientific-results .nanocellect-result-content,
	.nanocellect-scientific-results article .nanocellect-result-content {
		grid-column: 2;
	}
}

/* Pagination */
.nanocellect-pagination {
	margin-top: 40px;
	text-align: center;
}

nav.nanocellect-pagination ul,
.nanocellect-pagination ul,
.nanocellect-pagination > ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	width: auto;
	max-width: 100%;
}

/* Override any theme styles that might make list items stack */
nav.nanocellect-pagination li,
.nanocellect-pagination li,
.nanocellect-pagination > ul > li,
.nanocellect-pagination ul > li {
	margin: 0;
	padding: 0;
	list-style: none;
	display: block;
	float: none;
	width: auto;
	height: auto;
	clear: none;
}

.nanocellect-pagination a.page-numbers,
.nanocellect-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: 50%;
	color: var(--nano-text);
	text-decoration: none;
	transition: all 0.2s ease;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	box-sizing: border-box;
	margin: 0;
}

.nanocellect-pagination a.page-numbers:hover {
	background: var(--nano-light-blue);
	border-color: var(--nano-primary-blue);
	color: var(--nano-primary-blue);
}

.nanocellect-pagination .page-numbers.current {
	background: var(--nano-primary-blue);
	color: var(--nano-white);
	border-color: var(--nano-primary-blue);
}

.nanocellect-pagination .page-numbers.current:hover {
	background: var(--nano-dark-blue);
	border-color: var(--nano-dark-blue);
}

/* Prev/Next buttons - keep circular style */
.nanocellect-pagination a.prev,
.nanocellect-pagination a.next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--nano-gray-medium);
	border-radius: 50%;
	color: var(--nano-text);
	text-decoration: none;
	transition: all 0.2s ease;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	box-sizing: border-box;
}

.nanocellect-pagination a.prev:hover,
.nanocellect-pagination a.next:hover {
	background: var(--nano-light-blue);
	border-color: var(--nano-primary-blue);
	color: var(--nano-primary-blue);
}

/* No Results */
.nanocellect-no-results {
	text-align: center;
	padding: 40px 20px;
	color: var(--nano-gray-dark);
	font-size: 16px;
}

/* Filter Chips - Active Filters Display */
.nanocellect-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	align-items: center;
}

.nanocellect-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--nano-white);
	border: 1px solid var(--nano-primary-blue);
	border-radius: var(--nano-pill-radius);
	padding: 6px 12px;
	font-size: 14px;
	color: var(--nano-text);
}

.nanocellect-chip-label {
	flex: 1;
}

.nanocellect-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--nano-primary-blue);
	color: var(--nano-white);
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	transition: all 0.2s ease;
	cursor: pointer;
	flex-shrink: 0;
}

.nanocellect-chip-remove,
.nanocellect-chip-remove:link,
.nanocellect-chip-remove:visited,
.nanocellect-chip-remove:active {
	color: var(--nano-white);
}

.nanocellect-chip-remove:hover {
	background: var(--nano-dark-blue);
	color: var(--nano-white);
	text-decoration: none;
	transform: scale(1.1);
}

.nanocellect-chip-remove:hover,
.nanocellect-chip-remove:hover:link,
.nanocellect-chip-remove:hover:visited {
	color: var(--nano-white);
}
