/*record searcher pages*/
.searchpanel {
	/*area above records with searchbar, dropdowns, next prev page etc...*/
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 20px;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	min-height: 15vh;
	height: auto;
	background-color: rgb(54, 54, 54);
	flex-wrap: wrap;
}


.resultspanel {
	/*area that shows the records*/
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 85vh;
}

.search-intro {
	flex: 1 0 100%;
	max-width: 1000px;
	padding: 18px 0 4px;
	text-align: center;
}

.search-intro h1 {
	margin: 8px 0;
	font-size: clamp(24px, 4vw, 36px);
}

.search-intro p {
	max-width: 820px;
	margin: 0 auto 8px;
	color: #d3d9d3;
	line-height: 1.65;
}

.record-link {
	color: inherit !important;
	text-decoration: none;
}

.record-link:hover,
.record-link:focus-visible {
	color: #b9d8b5 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.search-noscript {
	margin: 24px auto;
	padding: 0 20px;
	max-width: 900px;
	line-height: 1.7;
}

.btnsearch {
	/*search button, also used for next and prev page buttons and the tabs*/
	background-color: rgb(97, 146, 100);
	color: white;
	font: inherit;               /* buttons ignore the page font by default */
	font-size: 16px;
	text-align: center;
	padding: 12px 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btnsearch:hover:not(:disabled) {
	/*when mouse is over buttons*/
	background-color: rgb(116, 168, 119);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.btnsearch:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.btnsearch:focus-visible {
	outline: 2px solid #8ab4f8;
	outline-offset: 2px;
}

.btnsearch:disabled {
	/*while loading, and prev/next at the first/last page*/
	opacity: 0.4;
	cursor: not-allowed;
	box-shadow: none;
}
.searchbar {
	/*green background on query pieces, used on everything in resultspanel*/
	width: max-content;
	display: flex;
	align-items: center;
	padding: 8px;
	border-radius: 28px;
	font-family: 'SourceCodePro';
    margin-top: 8px;
	background-color: rgb(43, 54, 44);
}

.searchbar-input {
	/*input inside searchbar*/
	background: transparent;
	border: none;
	outline: none;
	font-family: 'SourceCodePro';
	color: white;
}


.searchpanel form {
	/*positioning for searchpanel*/
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	justify-content: center;
	width: 100%;
}


.searchpanel *,
.dropdown-menu *,
.dropdown-menu label {
	/*manages sizing of query sections*/
	font-size: 18px;
}


.searchbar input[type="date"] {
	/*makes dates input look good*/
	color: rgb(216, 216, 216);
	color-scheme: dark;
}

.dropdown {
	/*manages positioning of dropdown*/
	cursor: pointer;
	position: relative;
}

.dropdown-menu {
	/*the dropdown once clicked*/
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	background: rgb(43, 54, 44);
	border-radius: 8px;
	user-select: none;
	pointer-events: all;
}

.dropdown.open .dropdown-menu {
	/*manages display*/
	display: flex;
}

.dropdown-menu label {
	/*the text and tickbox in the dropdowns*/
	display: flex;
	gap: 6px;
	color: white;
	white-space: nowrap;
	cursor: pointer;
}

.center-bottom {
	/*manages button positioning for next, prev and search buttons*/
	position: static;
	display: flex;
	justify-content: center;
	gap: 20px;
	width: 100%;
}


.data-attribution {
	width: 100%;
	margin: 0;
	color: #aaa;
	font-size: 12px;
	text-align: center;
}

.data-attribution a {
	color: inherit;
}

.billrecord {
	/*the card each record is on*/
	margin: 8px 16px;
	padding: 36px;
	box-sizing: border-box;
	background-color: rgb(54, 54, 54);
}
.billrecord:hover {
  background-color: #464646;
  transform: translateY(-4px);
}

.billrecordnohover {
	/*the card each record is on*/
	margin: 8px 16px;
	padding: 36px;
	box-sizing: border-box;
	background-color: rgb(54, 54, 54);
}

.sponsors {
	/*container that all sponsors go into*/
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.sponsor {
	/*for each sponsor*/
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.sponsor-img {
	/*for each sponsor image*/
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
}

.sponsor p {
	/*<p> in sponsor*/
	font-size: 12px;
	text-align: center;
	margin: 0;
}


.skeletonbillrecord {
	/*card that skeleton stuff goes into*/
	margin: 8px 16px;
	padding: 36px;
	box-sizing: border-box;
	background-color: rgb(54, 54, 54);
}

.skeleton-title {
	/*title for skeleton, top line*/
	height: 28px;
	width: 100%;
	background-color: rgb(40, 40, 40);
	margin-bottom: 12px;
	border-radius: 2px;
}

.skeleton-p {
	/*line that looks like paragraph*/
	height: 16px;
	width: 100%;
	background-color: rgb(40, 40, 40);
	margin-bottom: 8px;
	border-radius: 2px;
}

.skeleton-short {
	/*goes on bottom*/
	height: 16px;
	width: 25%;
	background-color: rgb(40, 40, 40);
	border-radius: 2px;
}

.skeleton-shorts {
	/*container that holds the short lines*/
	display: flex;
	gap: 8px;
}

.skeletonbillrecord {
	/*animation stuff for skeleton*/
	animation: shimmer 1.5s ease-in-out infinite alternate;
	animation-delay: calc(var(--i, 0) * 0.2s);
	background: linear-gradient(135deg, rgb(40, 40, 40) 25%, rgb(74, 119, 85) 50%, rgb(40, 40, 40) 75%);
	background-size: 200% 100%;
}

@keyframes shimmer {
	/*more animation stuff*/
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

summary {
  cursor: pointer;
  font-weight: bold;
  margin: 8px 0;
}