#search-page {
	margin: 0 auto;
	width: 100%;
	max-width: 780px;
	box-sizing: border-box;
	font-family: HelveticaNeue, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #222;
}

#search-page input,
#search-page button,
#search-page select {
	font-family: inherit;
}

#search-page h1 {
	font-family: GaramondClassic, Georgia, serif;
	font-size: 2em;
	line-height: 1.4;
	text-align: left;
	margin-bottom: 16px;
}

#search-form {
	background: #f8f8f8;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.search-bar-row {
	display: flex;
	gap: 8px;
}

#search-query {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	font-size: 16px;
	line-height: 1.3;
	color: #222;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#search-query:hover {
	border-color: #999;
}

#search-query:focus {
	border-color: #555;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

#search-submit {
	flex: 0 0 auto;
	padding: 10px 20px;
	font-size: 15px;
	line-height: 1.3;
	font-weight: bold;
	color: #fff;
	background: #333;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#search-submit:hover {
	background: #555;
}

.search-help {
	margin-top: 8px;
	font-size: 12px;
	color: #555;
	line-height: 1.5;
}

.search-help code {
	background: #ececec;
	padding: 1px 4px;
	border-radius: 3px;
}

.search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 14px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	flex: 1 1 180px;
	min-width: 0;
}

.filter-group label {
	font-size: 12px;
	line-height: 1.3;
	font-weight: bold;
	text-transform: none;
	margin-bottom: 4px;
	color: #444;
}

.filter-group select {
	-webkit-appearance: none;
	appearance: none;
	padding: 8px 32px 8px 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #222;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px 12px;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-group select:hover {
	border-color: #999;
}

.filter-group select:focus {
	border-color: #555;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.volume-filter-box {
	margin-top: 14px;
	border-top: 1px solid #e2e2e2;
	padding-top: 10px;
}

.volume-filter-box summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: bold;
	color: #333;
}

.volume-count-badge {
	font-weight: normal;
	color: #666;
}

.volume-filter-actions {
	margin: 10px 0 8px;
}

#clear-volumes-btn {
	font-size: 12px;
	line-height: 1.3;
	color: #222;
	padding: 4px 10px;
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 4px;
	cursor: pointer;
}

.volume-checkbox-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.volume-col-group h3 {
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	font-weight: bold;
	text-transform: none;
	margin: 0 0 6px;
	color: #222;
}

.volume-checkbox-list {
	max-height: 220px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 8px;
}

.volume-checkbox-item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	line-height: 1.4;
	padding: 3px 0;
	cursor: pointer;
}

.volume-checkbox-item input {
	margin-top: 2px;
	flex: 0 0 auto;
}

.search-notice {
	padding: 10px 14px;
	margin-bottom: 16px;
	background: #fff8e1;
	border: 1px solid #e6d18a;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
}

.search-summary {
	font-size: 14px;
	color: #444;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.search-empty {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	margin: 0;
	padding: 20px 0;
}

.search-results {
	list-style: none;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}

.search-result-item {
	margin-bottom: 0;
	padding: 14px 0 18px;
	border-bottom: 1px solid #eee;
}

.result-meta {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
	margin-bottom: 4px;
}

.result-pages {
	color: #888;
	margin-left: 4px;
}

.result-title {
	margin: 0 0 6px;
	font-family: GaramondClassic, Georgia, serif;
	font-size: 20px;
	line-height: 1.3;
	text-transform: none;
}

.result-title a,
.result-title a:visited {
	color: #111;
	text-decoration: none;
}

.result-title a:hover {
	text-decoration: underline;
}

.result-snippet {
	margin: 4px 0 0;
	font-family: GaramondClassic, Georgia, serif;
	font-size: 17px;
	line-height: 1.5;
	color: #333;
}

.result-snippet a,
.result-snippet a:visited {
	color: inherit;
	text-decoration: none;
}

.result-snippet a:hover {
	color: #000;
}

.result-snippet-fn {
	font-size: 15px;
	color: #555;
	margin: 6px 0 0;
}

.snippet-label {
	font-family: HelveticaNeue, sans-serif;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	color: #777;
	margin-right: 4px;
}

#search-page mark,
mark.search-hit {
	background: #fff3a8;
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}

.search-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 24px 0 16px;
	font-size: 14px;
}

.search-pagination a,
.search-pagination a:visited {
	color: #000;
	text-decoration: none;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.search-pagination a:hover {
	background: #f2f2f2;
}

.search-pagination .disabled {
	color: #aaa;
	padding: 6px 12px;
	border: 1px solid #eee;
	border-radius: 4px;
}

@media (max-width: 640px) {
	.search-bar-row {
		flex-direction: column;
	}

	#search-submit {
		width: 100%;
	}
}