
#app {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2rem;
	font-weight: 400;
}

#acs-search-app a, .green {
	text-decoration: none;
	transition: .4s;
	padding: 3px;
}

#acs-search-app a:not(.download-btn) {
	background-image: linear-gradient(var(--bedstone-palette-interactive), var(--bedstone-palette-interactive));
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0% 99%;
	transition: .2s ease;
	color: var(--bedstone-palette-text);
}

#acs-search-app a:hover:not(.download-btn) {
	background-image: linear-gradient(var(--bedstone-palette-interactive), var(--bedstone-palette-interactive));
	background-size: 100% 2px;
	background-repeat: no-repeat;
	background-position: 0% 99%;
	color: var(--bedstone-palette-interactive);
}

@media (max-width:781px) {
	.search-panel {
		display: flex;
		flex-direction: column-reverse;
	}
	
	.search-panel__filters {
		width: 100% !important;
		margin-top: 1em !important;
	}
	
	.search-panel__results {
		width: 100% !important;
	}
}

.container {
	width: 100%;
	margin: 0 auto;
}

.search-panel__filters {
	float: left;
	width: calc(25% - 1em);
	margin-right: 1em;
}

.search-panel__results {
	float: left;
}

.resources .hit {
	display: flex;
	align-items: center;
	padding: .8rem;
	margin-bottom: .6rem;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background-color: #fff;
	width: 100%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.resources .hit-icon {
	flex-shrink: 0;
	margin-right: 1rem;
}

.hit-content {
	flex-grow: 1;
	margin-right: 1rem;
	clear: both;
	display: flex;
	flex-direction: column;
}

.hit-content__thumbnail {
	flex: 0 0 150px;
	margin-right: 1em;
}

@media (max-width:767px) {
	.hit-content__thumbnail {
		display: none;
	}
}

.hit-content__thumbnail img {
	width: 100%;
	object-fit: cover;
	aspect-ratio: 1/1;
}

.hit-content__text {
	flex: 1 1 100%;
}

.hit-meta {
	font-size: .84em;
	letter-spacing: .03em;
	font-weight: 600;
}

.hit-title {
	margin: 0;
	color: #007bff;
	font-size: 1.2rem;
	font-weight: 400;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.lock-icon {
	color: #6c757d;
	text-decoration: none;
	cursor: pointer;
	font-size: .9rem;
	transition: color .2s;
}

.lock-icon:hover {
	color: #007bff;
	text-decoration: none;
}

.hit-action {
	flex-shrink: 0;
}

.download-btn {
	background-color: #dc3545;
	color: #fff;
	padding: .5rem 1rem !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color .2s;
}

.download-btn:hover {
	background-color: #c82333;
	color: #fff;
	text-decoration: none;
}

.login-btn {
	background-color: #007bff;
	color: #fff;
	padding: .5rem 1rem;
	border: none;
	border-radius: 4px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s;
}

.login-btn:hover {
	background-color: #0056b3;
}

.ais-Hits-list {
	list-style: none;
}

.ais-SearchBox-submit, .ais-SearchBox-reset {
	display: none;
}

.ais-Pagination-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ais-Pagination-item {
	display: inline-block;
	margin: 0 5px;
}

.ais-RefinementList {
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	margin-bottom: 1rem;
	overflow: hidden;
}

.ais-SearchBox-form {
	margin: 0;
}

.ais-Hits-list {
	padding: 0;
	margin: 0;
}

.ais-RefinementList-searchBox {
	border-bottom: 1px solid #ddd;
}

.ais-RefinementList-searchBox input {
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .9rem;
}

.ais-RefinementList-searchBox input::placeholder {
	color: #999;
}

.ais-RefinementList-list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 300px;
	overflow-y: auto;
}

.ais-RefinementList-item {
	padding: .25rem .75rem;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
}

.ais-RefinementList-item:last-child {
	border-bottom: none;
}

.ais-RefinementList-item:hover {
	background-color: #f8f9fa;
}

.ais-RefinementList-checkbox {
	margin-right: .5rem;
	width: 16px;
	height: 16px;
}

.ais-RefinementList-labelText {
	flex-grow: 1;
	color: #666;
	font-size: .9rem;
}

.ais-RefinementList-count {
	display: none;
}

.ais-HierarchicalMenu {
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	margin-bottom: 1rem;
	overflow: hidden;
}

.ais-HierarchicalMenu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 300px;
	overflow-y: auto;
}

.ais-HierarchicalMenu-item {
	padding: .25rem .75rem;
	border-bottom: 1px solid #f0f0f0;
}

.ais-HierarchicalMenu-item:last-child {
	border-bottom: none;
}

.ais-HierarchicalMenu-item:hover {
	background-color: #f8f9fa;
}

.ais-HierarchicalMenu-link--selected .ais-HierarchicalMenu-label {
	color: #e6193c !important;
}

.ais-HierarchicalMenu-link {
	color: #666;
	text-decoration: none;
	font-size: .9rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ais-HierarchicalMenu-link--selected {
	font-weight: 700;
	color: #007bff;
}

.selected-indicator {
	margin-right: .5rem;
	color: #007bff;
}

.ais-HierarchicalMenu-count {
	color: #999;
	font-size: .8rem;
}

.filter-section, .ais-SearchBox {
	margin-bottom: 1rem;
}

.filter-header {
	background-color: #f8f9fa;
	color: #666;
	font-weight: 600;
	font-size: .8rem;
	padding: .5rem;
	border: 1px solid #ddd;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	margin: 0;
}

.filter-section .ais-RefinementList, .filter-section .ais-HierarchicalMenu {
	border-top: none;
	border-radius: 0 0 4px 4px;
	margin-bottom: 0;
}

@media (min-width:782px) {
	#acs-search-app[data-show=all] .hit-content {
		display: flex;
		flex-direction: row;
	}
	
	[data-show=resources] .search-panel {
		display: grid;
		grid-template-columns: .8fr 1fr 1fr;
		column-gap: 1.5em;
	}
	
	[data-show=resources] .ais-SearchBox {
		grid-column-start: 1;
		grid-column-end: 1;
	}
	
	[data-show=resources] .search-panel__results {
		width: 100%;
		grid-column-start: 2;
		grid-column-end: 4;
		grid-row-start: 1;
		grid-row-end: 4;
	}
	
	[data-show=resources] .search-panel__filters {
		width: 100%;
		margin-right: 1em;
		grid-column-start: 1;
		grid-row-start: 2;
	}
}

@media (max-width:781px) {
	[data-show=resources] .search-panel {
		display: flex;
		flex-direction: column;
	}
}

#acs-search-app[data-show=all] .hit-content p {
	margin-bottom: 0;
}

#acs-search-app[data-show=all] .hit-content__thumbnail {
	display: none;
}

#acs-search-app[data-show=all] .ais-Hits-list {
	font-size: .8em;
}

#acs-search-app[data-show=all] .hit-title {
	font-size: 1.2em;
}
