
#header-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: right;
  border: 0px solid red;
  margin-right: 15px;
}
#footer-menu {
	/* center filters horizontally and allow wrapping when many are added */
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1rem 1.5rem; /* row-gap column-gap */
	padding: 0.5rem 1rem;
	box-sizing: border-box;
}
#footer-menu a {
	/* fallback for any links directly inside #menu */
	padding-left:10px;
	padding-right:10px;
	font-weight:bold;
	font-size:1.05em;
	display: inline-block;
}
/* Update menu: shows recently added/modified entries, and links to filter by stereoscope subtype or tag */
.footer-menu-update {
	max-width:50%;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	letter-spacing: 0px;
	font-size: 0.9rem;
	margin-right:10px;
}
.footer-menu-update p {
	text-align: left;
	font-size: larger;
	margin: 0;
	padding-left:30px;
	font-weight: bold;
	color: #ffffffcc; /* slightly translucent to match header/footer */
}
.footer-menu-update a {
	display: inline-block;
	color: #ffffff;
	text-decoration: none;
	text-wrap: nowrap;
}



.dashboard-menu-update {
	max-width:50%;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	letter-spacing: 0px;
	font-size: 0.9rem;
	margin-right:10px;
}
.dashboard-menu-update a {
	display: inline-block;
	color: #4d212d;
	text-decoration: none;
	text-wrap: nowrap;
}




.link-hover a
{
	color: #333333;
}
.link-hover a:hover
{
	color: #662c3c;
	border-bottom: 1px dotted #662c3c;
}

/* Entries */
.entries-grid {
	max-width:700px;
	margin:auto;
	border:0px solid red;
	padding:10px;
}
.entries-grid.two-cols {
  	column-count: 2;
  	column-gap: 2rem;
}
.entries-grid.one-col {
  	column-count: 1;
}
.entries-grid-sticky {
  	display: flex;
}
.entries-grid a {
  	display: block;
  	break-inside: avoid;
  	margin: 0 0 0.25rem 0;
}
/* Keep the header + first entry together */
.entries-letter-block {
	margin-top:10px;
  	break-inside: avoid;
  	-webkit-column-break-inside: avoid; /* Safari */
  	border:0px solid green;
}
/* Ensure links behave like blocks in columns */
.entries-link {
  	display: block;
  	break-inside: avoid;
  	-webkit-column-break-inside: avoid;
  	text-decoration: none;
  	border:0px solid blue;
  	padding-top:5px;
  	padding-bottom:10px;
}
.entries-letter-label {
  	break-inside: avoid;
  	-webkit-column-break-inside: avoid;
  	margin-top:0px;
  	padding-bottom: 25px;
  	font-size:2.5em;
  	color: #4d212d;
  	border:0px solid red;
  	padding-top:10px;
}

/* Single entry */
#entry {
	max-width:800px;
	margin:auto;
	padding:10px;
	border:0px solid blue;
}
#entry .classification ul {
	list-style-type: none;	
	font-size: 1.1rem;
	margin-bottom:10px;
}
#entry .classification ul:not(ul ul) {
	border-left: 2px solid #662c3c;
	margin-left: 2px;
}
#entry .classification li {
	margin-bottom:5px;
}
#entry .classification li a {
	border-bottom: 1px dotted #662c3c;
}
#entry .classification ul > li {
	padding-left: 0rem;       /* level 1 */
}
#entry .classification ul ul > li {
    font-weight: normal; 
	padding-left: 2.5rem;      /* level 1 */
}
#entry img.img-landscape
{
	max-width:100%;
}
#entry img.img-portrait
{
	width:75%;
}
.entry-copyright-arrow
{
	font-size:20px;
	color: #662c3c;
}
.entry-symbol {
	font-weight: bold;
	color: #666;
}
.entry-see-also a{
	
	background-color:rgba(102, 44, 60, 0.5);
	color: #ffffff;
	padding-top:2px;
	padding-bottom:3px;
	padding-right: 8px;
	padding-left: 8px;
	border-radius: 2px;
	font-weight: bold;
	font-size: smaller;
	white-space: nowrap;
}
.entry-publish {
	font-size:smaller;
	text-align:center;
}
.entry-image-border {
	border:3px solid #cccccc;
}
.entry-timeline {
  border-left: 2px solid #662c3c;
  padding-left: 1.5rem;
  margin-left: 1px;
}
.entry-timeline a{
	border-bottom: 1px dotted #662c3c;
}
.entry-line {
  border-top: 1px solid #662c3c;
  width:100%;
}
.entry-company-dash
{
	display: inline-block;
	width:20px;
	text-align: center;
}
.entry-company-from
{
	display: inline-block;
	width:50px;
}
.entry-company-to
{
	display: inline-block;
	width:50px;
}
.citations ul{
	list-style: none;
	margin-left: 0px;
	padding-left:0px;
}
.citations li {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.75em;
  margin-bottom: 0.5em;
}
.citation-num {
  text-align: right;
  white-space: nowrap;
  font-size:smaller;
}
.citation-text {
  min-width: 0; /* important for proper wrapping */
}
.sources ul
{
  	list-style: none;
	margin-left: 0px;
	padding-left:0px;
}
.sources li {
  margin-bottom: 0.5em;
}

.search
{
	font-size: 1.1rem;
}
.search input, button{
	font-size: 1.1rem;
	padding: 5px 10px;
}
.search input[type="text"] {
	border: 1px solid #cccccc;
	border-radius: 4px;
}
.search button {
	font-weight: bold;
	color: #662c3c;
	background-color: #ffffff;
	border: 1px solid #662c3c;
	border-radius: 4px;
	cursor: pointer;
}
.search label {
	font-weight: bold;
	color: #662c3c;
	padding-bottom: 40px;
}
.search ul
{
	list-style: none;
	margin-left: 0px;
	padding-left:0px;
}

.search-result-excerpt
{
	font-size: smaller;
	margin-bottom:20px;
}
.stereoview-classification {
	font-weight: bold;

		border-left: 2px solid #662c3c;
  	padding-left: 1.5rem;
  	margin-left: 1px;
}
.stereoview-classification a:hover {
	text-decoration: underline;
}

/* Pagination */
.pagination {
	margin:auto;
	text-align:center;
}
.pagination a {
	padding-left:10px;
	padding-right:10px;
	padding-bottom:10px;
}
.pagination-nolink {
	padding-left:10px;
	padding-right:10px;
}
.listbox-container {
 	padding-left:10px;
}


/* Small phones (landscape) */
@media (min-width: 402px) {
	
	.stereoview-classification {
		font-size: 1.9rem;
	}

	#footer-menu
	{
		justify-content: left;
	}
	select {
		font-size: 1.1rem;
	}
	select {
		height: auto;
	}
	select[size] {
		size: 8;
	}
	option {
		padding: 1rem;
	}
	#entry img.img-portrait
	{
		width:100%;
	}
	#entry img.img-landscape
	{
		max-width:100%;
	}
}


/* Small phones (landscape) */
@media (min-width: 480px) {

	.stereoview-classification {
		font-size: 1.6rem;
	}
	
	#footer-menu {
		justify-content: left;
	}
	#header-filters {
  	justify-content: right;
	}
	#content {
	  padding-left:10px;
	  padding-right:10px;
	}
	select {
		font-size: 1.1rem;
	}
	select {
		height: auto;
	}
	select[size] {
		size: 8;
	}
	option {
		padding: 1rem;
	}
	#entry img.img-portrait
	{
		width:100%;
	}
	#entry img.img-landscape
	{
		max-width:100%;
	}
}
/* Large phones / small tablets */
@media (min-width: 600px) {

	.stereoview-classification {
		font-size: 1.6rem;
	}

	#footer-menu {
		justify-content: left;
	}    
	#header-filters {
  		justify-content: right;
	}
	#content {
	  padding-left:20px;
	  padding-right:20px;
	}
	select {
		font-size: 1.1rem;
	}
	select {
		height: auto;
	}
	select[size] {
		size: 8;
	}
	option {
		padding: 1rem;
	}
	#entry img.img-portrait
	{
		width:100%;
	}
	#entry img.img-landscape
	{
		max-width:100%;
	}
}
/* Tablets (portrait) */
@media (min-width: 768px) {

	.stereoview-classification {
		font-size: 1.0rem;
	}
	
	#footer-menu {
		justify-content: center;
	}
	#header-filters {
  		justify-content: right;
	}
	#content {
	  padding-left:35px;
	  padding-right:35px;
	}
	.entry-publish {
		text-align:left;
	}
	#entry img.img-portrait
	{
		width:80%;
	}
}
/* Tablets (landscape) / small laptops */
@media (min-width: 992px) {

	.stereoview-classification {
		font-size: 1.0rem;
	}

	#footer-menu {
		justify-content: center;
	}
	#header-filters {
  		justify-content: right;
	}
	.entry-publish {
		text-align:left;
	}
	#entry img.img-portrait
	{
		width:80%;
	}
}
/* Desktops */
@media (min-width: 1200px) {

	.stereoview-classification {
		font-size: 1.0rem;
	}

	#footer-menu {
		justify-content: center;
	}
	#header-filters {
  	justify-content: right;
	}
	.entry-publish {
		text-align:left;
	}
	#entry img.img-portrait
	{
		width:80%;
	}

}
/* Large desktops / wide screens */
@media (min-width: 1400px) {

	#footer-menu {
		justify-content: center;
	}
	#header-filters {
  	justify-content: right;
	}
	.entry-publish {
		text-align:left;
	}
	#entry img.img-portrait
	{
		width:80%;
	}

}