.off-canvas-content {
  min-height: 100vh;
  position: relative;
  background: url(../images/bg.png) center -32px;
}
#content {
  background-color: #fff;
}
body:not(.browse) #content {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
}
a {
  color: #0e4d5c;
}
.thumbnail,
.item-file > a {
  border: none;
}
.show-page .thumbnail {
  margin-top: 1rem;
}
.grid-container {
  padding-right: 2rem;
  padding-left: 2rem;
}
.menu .is-active > a {
  background: #0e4d5c;
}
.float-right {
  margin-right: 1rem;
}
.keyboardInputInitiator {
  margin: 10px;
}
[type="text"] {
  display: inline;
}
[type="text"]:not(:only-child) {
  width: 100%;
  height: 2.23rem;
  border: 1px solid #e6e6e6;
}
.button:hover,
:hover[type="submit"],
:hover[type="button"],
#submit_search:hover,
.button:focus,
:focus[type="submit"],
:focus[type="button"],
#submit_search:focus {
  color: #fff;
}
.nav-header:hover,
a.site-title:hover {
  color: #fff;
  text-decoration: underline;
}
.subheader {
  margin-bottom: 3rem;
  margin-top: 1rem;
  color: black;
}
.metadata.subheader {
  margin-bottom: 1rem;  
}
.search-label.subheader {
  margin-top: 2.7rem;
}
.records.subheader {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.country.grid-x .small-1 {
  width: 2.8%;
}
.menu li:hover {
  text-decoration: underline;
}

#search-form [type="text"]:not(:only-child) {
  width: 61.5%;
  height: 40px;
  margin-left: -3px;
}
#submit_search {
  margin-top: 12px;
}
.page-input[type="text"]:not(:only-child) {
  width: 40%;
  height: 32px;
  margin: 0 10px 0 10px;
}
.page-input {
  margin: auto;
}
.page-input .pagination_next {
  margin-left: 10px;
}
.results-input[type="text"]:not(:only-child) {
  width: 45%;
  height: 36px;
  margin: 0 10px 0 -25px;
  text-align: center;
}
.accordion-title {
  font-size: 0.9rem;
}
li {
  list-style-type: none;
}
ul.list-description li {
    list-style: disc;
}
ul.featured-list .list-description li {
    list-style: disc;
    border: none;
  }
ul.featured-list li {
  height: auto;
  margin-bottom: 10px;
}
ul.title-list li {
  height: 280px;
}
.title-list li:not(:first-child),
.featured-list li:not(:first-child) {
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.external-header {
  font-weight: bold;
  margin-bottom: 30px;
}
#query {
  height: 40px;
  width: 75%;
}
#search-external-form #query {
  width: auto;
}
.pagination-nav {
  margin: 2em 0 0 0;
  text-align: center;
}

ul.pagination {
  margin: auto;
  width: 100%;
}
.pagination_previous a,
.pagination_next a {
  width: 2.25em;
  height: 2.25em;
  display: inline-block;
  text-indent: -9999px;
  -moz-box-shadow: rgba(0, 0, 0, 0.15) 0 0 10px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0 0 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0 0 10px;
  position: relative;
}
.pagination_previous a:after,
.pagination_next a:after {
  font-family: "FontAwesome";
  text-indent: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25em;
  text-align: center;
  line-height: 2.25em;
}
.pagination_previous a:after {
  content: "\f0d9";
}
.pagination_next a:after {
  content: "\f0da";
}
#next.pagination_next a:after {
  content: "\f0d9";
}
#previous.pagination_previous a:after {
  content: "\f0da";
}
#book-top .table {
  display: table;
  margin: auto;
  padding-left: 300px;
}
#book-top ul.pagination {
  margin-top: 5px;
}
#book-top .pagination-nav li {
  display: block;
  margin: 0 0 -5px 0;
}
#book-top .pagination-nav,
#book-top .page-input {
  display: table-cell;
}

#book-top .page-input {
  vertical-align: middle;
  padding-left: 10px;
}

#book-top .page-input input {
  width: 70px;
  text-align: center;
  border: 1px solid #dfe2e2;
  box-shadow: rgba(0, 0, 0, 0.15) 0 0 10px;
  background: none;
  height: 39px;
}

#book-top #hidden-previous {
  width: 1.25em;
  height: 12px;
}
#book-top #hidden-next {
  width: 1.25em;
  height: 7px;
}
#book-top .pagination_previous a,
#book-top .pagination_next a {
  width: 1.25em;
  height: 1.25em;
}

#book-top .pagination_previous a:after,
#book-top .pagination_next a:after {
  width: 1.25em;
  line-height: 1.25em;
}

#book-top .pagination_previous a:after {
  content: "\f0d8";
  background: #0e4d5c;
  color: #fff;
}

#book-top .pagination_next a:after {
  content: "\f0d7";
  background: #0e4d5c;
  color: #fff;
}
#book-top h5 {
  margin: 0;
  text-align: center;
}
#book-top h5.subheader {
    margin-bottom: 3rem;
}
.nav-middle {
  margin-top: 350px;
}
.nav-middle #previous,
.nav-middle #next {
  cursor: pointer;
}
.nav-middle #previous {  
  margin-left: 67px;  
}
svg.bi-chevron-left:hover, svg.bi-chevron-right:hover {
    fill: #767c74;
}

#sidebar-results,
#sidebar-no-results {
  display: none;
}
#sidebar-clear {
  float: right;
  cursor: pointer;
  margin-right: 17px;
  font-weight: bold;
}
#sidebar-clear {
  float: right;
  cursor: pointer;
  margin-right: 17px;
  font-weight: bold;
}
#sidebar-clear:hover {
  text-decoration: underline;
}
#sidebar-count {
  margin-bottom: 10px;
  background: #f9edbe;
  font-size: 1em;
  color: #0e4d5c;
}
#sidebar-list {
  height: 547px;
  overflow: auto;
}
.sidebar-list-element {
  list-style: none;
  margin-bottom: 10px;
  width: 95%;
  border-bottom: 1px dotted #dfe2e2;
}
#sidebar-note {
  font-size: 0.9em;
  font-style: italic;
  line-height: 1.5;
  margin: 5px 0 10px 0;
}

.search-form {
  /*   display: -webkit-flex;
  display: -ms-flexbox;
  display: flex; */
  width: 90%;
  background: #fefefe;
  border-radius: 5px;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.search-form input,
.search-form .button {
  margin-bottom: 4px;
  margin-right: -4px;
}

#solr-facets ul li {
  font-size: 0.9em;
}
.town-clicked {
  background-color: #fdd2cc;
}
.results-header {
  padding: 20px 0 0 20px;
}
.facets-header {
  margin-top: 20px;
}
.solr-results {
  border-bottom: 1px solid #dddddd;
}

label.town-count {
  margin: -3px 5px 0 0;
  font-size: 1em;
}

select {
  height: 2.23rem;
}

/* .morse-link {
  width: 78.5%;
} */
.callout.secondary {
  background-color: #eaeaea;
}
.callout.primary {
  background-color: #fff;
}
.callout.success {
  border: 1px solid #ccc;
}
.top-bar a,
.top-bar a:hover,
.top-bar a:focus {
  color: #0e4d5c;
}
.button,
[type="submit"],
[type="button"],
#submit_search,
.button.disabled,
.disabled[type="submit"],
.disabled[type="button"],
.disabled#submit_search,
.button[disabled],
[disabled][type="submit"],
[disabled][type="button"],
#submit_search[disabled],
.button.disabled:hover,
.disabled:hover[type="submit"],
.disabled:hover[type="button"],
.disabled#submit_search:hover,
.button[disabled]:hover,
[disabled]:hover[type="submit"],
[disabled]:hover[type="button"],
#submit_search[disabled]:hover,
.button.disabled:focus,
.disabled:focus[type="submit"],
.disabled:focus[type="button"],
.disabled#submit_search:focus,
.button[disabled]:focus,
[disabled]:focus[type="submit"],
[disabled]:focus[type="button"],
#submit_search[disabled]:focus {
  background-color: #0e4d5c;
  color: #fff;
}
#search-inside {
  margin: 1px -3px 5px 10px;
  height: 40px;
}
#search-sidebar {
  margin: 1px -3px 5px 0;
}
.site-title:focus,
.nav-header:focus {
  color: #fff;
}
#map_browse {
  width: 100%;
}
.geolocation_balloon {
  width: 180px;
}
.geolocation_balloon_title {
  text-align: center;
}
blockquote,
blockquote p {
  color: black;
  border: none;
  padding: 0;
}
.search-town-header {
  color: black;
  font-size: 1.25rem;
}
.simple-pages-content h3 {
  text-decoration: underline;
  color: #0e4d5c;
  font-size: 1.5rem;
  margin: 30px 0 30px 0;
}
.simple-pages-content ol li {
  list-style-type: decimal;
}
.simple-pages-content li p {
  margin: 20px 0 0 20px;
}
.simple-pages-content::before {
  content: "\a";
  white-space: pre;
}
.simple-pages-content p {
  margin: 20px 0 20px 0;
}
.tooltip {
  max-width: 20rem;
}
.a-tab.subheader {
  text-align: center;
}
.coordinates.subheader {
  margin-top: 1.5rem;
}
#contact-form {
  width: 35%;
}
.town-list {
  margin: 0 0.2rem 0 0.2rem;
}
.search-header {
  font-weight: bold;
  color: #0e4d5c;
  margin-left: 11px;
}
.map::before {
  content: url(../images/globe.png);
  display: block;
  height: 0;
  float: left;
  margin: -5px 0 0 -20px;
}
.button, #submit_search, .submit, #tag-menu li a {
  border-radius: 0.625rem; 
}
.map.button.large {
  padding-right: 0;
}
.featured.button.large,
.featured.button {
  background: #adceb9;
  color: black;
  font-size: 1.22rem;
  font-family: "Times New Roman", Times, serif;
  padding: 0.5em 1em;
}
#jssor_1 img:hover {
  cursor: pointer;
}
.header-btn-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
}
.header-btn-row a {
  text-align: center;
  margin-bottom: 0;
}
@media screen and (min-width: 641px) {
  .header-btn-row a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media screen and (max-width: 640px) {
  .header-btn-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-btn-row a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
@media screen and (max-width: 400px) {
  .header-btn-row {
    grid-template-columns: 1fr;
  }
}
.header-link {
  margin: 5px 0 20px 0;
  text-decoration: underline;
  font-size: 0.96em;
}
.header-link a {
  color: #fff;
}
.divider {
  background: url(../images/bg.png) center;
  height: 20px;
}
.home-search,
#submit_search {
  font-size: 1.25rem;
}
.home-opening {
  font-size: 1.1rem;
}
.description a,
.simple-pages-content a,
.note-block a,
.page-link,
.nearby-link a {
  color: #0645ad;
  text-decoration: underline;
}

p a:hover {
  text-decoration: underline;
}
.search-lead {
  font-weight: bold;
  font-size: 1.4rem;
}
.search-lead:before {
  content: "• ";
}
#tag-menu {
  font-size: 1.4rem;
}
.author-list a {
  text-decoration: underline;
}
.author-list.callout.secondary {
  margin-left: 15px;
}
span.category.has-tip {
  font-weight: bold;
  cursor: pointer;
}
.town-highlight {
  background-color: #efefc4;
}
.note-block {
  display: inline-block;
  width: 100%;
  text-align: left;
}
.note-block .multi-note {
    text-align: left;
    margin-left: 175px;
}
.nearby-header {
  font-size: 1.5em;
  font-weight: bold;
  color: black;
}
ul#nearby-list {
  margin-left: 0;
}
#nearby-block .accordion-item {
  background-color: #eaeaea;
}
button#loadMore,
button#showLess {
  margin: 15px 20px 0 0;
}
#nearby-list li,
#showLess {
  display: none;
}
.nearby-map {
  margin-left: 3rem;
}
.map-note {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
#search-again {
  margin-top: 50px;
}
.limit-by-soundex {
  margin: 0 0 1rem;
}
.collection-title {
  font-style: italic;
}
.hebrew-title {
    text-align: right;
}
.town-spacer:before {
    content:"\a";
    white-space: pre;
}
span.letter-symbol {  
    border-radius: 100px;
    background: #808080;
    color: white;
    padding: 0px 5px;
    font-size: small;
}      
.description-list li {
    list-style-type: disc;
} 
pre {
    font-family: "Source Sans Pro", sans-serif;   
    display: inline; 
}
.donate.button.large,
.donate.button {
    background-color: #ED7B01;
    color: white;
}
#az-list {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: solid 1px #EAEAEA;
    padding: 10px 0;
}
#az-list.disabled {
    color: grey;
    cursor: not-allowed;
}
.az-link.highlighted {
    color: #0E4D5C;
    font-weight: bold;
}
.az-link:hover {
    text-decoration: underline
}
#result-container {
    list-style-type: none;
    padding: 0;
}
.hidden {
    display: none;
}
.az-link.disabled {    
    opacity: 0.5;
    cursor: not-allowed;  
    cursor: -moz-not-allowed;
    cursor: -webkit-not-allowed;
}
#load-next-btn, #load-previous-btn {
    cursor: pointer;
    color: #0E4D5C;
    text-decoration: underline;
    margin: 20px 20px 20px 0;
    font-weight: bold;
}    

#sample-item {    
    display: flex; 
    align-items: center;   
}
#sample-item label, #sample-item li a{
    color: #fff;
}
#sample-item .town-count{    
    margin-right: 5px;
    margin-top: 1px;
}

@media screen and (max-width: 39.9375em) {
  .search-form {
    width: 95%;
  }
}

.hebrew-title {
    display: block;
    text-align: left;
    width: 95%;
}
.ad-banner {
    margin: 1rem 0 2rem -1rem;
}
.ad-banner img {
    border-radius: 0.625rem;
}

.custom-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.custom-list li {
    margin-bottom: 10px;
    margin-left: 15px;
}
.custom-list li:last-child {
    margin-bottom: 0;
}
.click-image {
    float: right;   
    margin: -3rem 0 0 -1rem;
}
#advanced-search-link {
  display: block; 
  line-height: 1; 
}
#advanced-search-link:hover {
  text-decoration: underline;
}

/* Layout Containers */
.search-header-row {
  margin-bottom: 40px; 
  position: relative;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-link{
  display: block;  
  margin-bottom: 2rem;;
}

.back-link:hover {
  text-decoration: underline;
}

.search-info {
    background-color: #f5f5f5;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0c4b5e;
}

.search-info p {
    margin: 0.5rem 0;
}

.search-info a {
    color: #0c4b5e;
    text-decoration: none;
}

.search-info a:hover {
    text-decoration: underline;
}

.results-count {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.collections-list {
    margin-top: 2em;
}

.collection {
    border-bottom: 1px solid #ddd;
    padding: 1.5em 0;
    margin-bottom: 1.5em;
}

.collection:last-child {
    border-bottom: none;
}

.collection-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.collection-thumbnail {
    flex-shrink: 0;
    width: 150px;
}

.collection-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}

.collection-thumbnail .no-image {
    width: 150px;
    height: 150px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-thumbnail .no-image::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 16px;
    line-height: 1.3;
}

.collection-info h3 a {
    color: #0e4d5c;
    text-decoration: none;
    font-style: italic;
}

.collection-info h3 a:hover {
    text-decoration: underline;
}

.collection-info .hebrew-title {
    margin: 0.3em 0;
    font-size: 16px;
    color: #000;
}

.collection-info .author {
    margin: 0.3em 0;
    color: #000;
}

.collection-info .publication-info {
    margin: 0.3em 0;
    color: #000;
}

.collection-info .description {
    margin: 0.8em 0 0 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Responsive layout */
@media screen and (max-width: 640px) {
    .collection-inner {
        flex-direction: column;
    }
    
    .collection-thumbnail {
        width: 100%;
        max-width: 200px;
    }
    
    .collection-thumbnail .no-image {
        width: 100%;
        height: 200px;
    }
}

/* --- Bibliographic Search Results Pagination --- */

.pagination-wrapper {
    text-align: center;
    margin: 20px 0;
}

.pagination-container {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.page-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #fff;
    color: #0c4b5e;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-nav-btn:hover {
    background: #f5f5f5;
    border-color: #0c4b5e;
}

.page-nav-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-wrapper .page-input {
    width: 50px !important;
    height: 32px !important;
    text-align: center;
    border: 1px solid #ccc !important;
    font-size: 14px;
    padding: 4px;
    margin: 0 !important;
    box-sizing: border-box;
}
}

.page-input:focus {
    outline: none;
    border-color: #0c4b5e;
}

.page-total {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.results-count-total {  
  font-size: 20px;
  color: #333;
  text-align: left;
  margin: 10px 0 20px 0;
}

/* --- Advanced Search Page Styles --- */

.notice {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.search-panel h5 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.search-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-item input,
.search-item select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cacaca;
  border-radius: 0;
  font-size: 1rem;
}

.button-container {
  margin-top: 1.5rem;
}

.button {
  margin-right: 1rem;
}

.button.hollow.secondary {
  border: 1px solid transparent;
  color: #0E4D5C;
  background-color: transparent;
}

.button.hollow.secondary:hover {
  border-color: #0E4D5C;
  color: #0E4D5C;
  background-color: #f5f5f5;
}

.button.hollow.secondary:focus,
.button.hollow.secondary:active {
  border: 1px solid transparent;
  color: #0E4D5C;
  background-color: transparent;
  outline: none;
}

mark {
background-color: #fff176;
background-color: #fde2b1;
color: inherit;
padding: 0 2px;
border-radius: 2px;
}

/* Hide the per-field keyboard icons rendered by keyboardInput widget */
#searchTerms ~ a,
#searchTerms ~ img,
#searchTerms + a,
#searchTerms + img,
#titleField ~ a,
#titleField ~ img,
#titleField + a,
#titleField + img,
.search-item a,
.search-item img {
    display: none !important;
}

#shared-keyboard-wrap {
    display: flex;
    justify-content: right;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
#shared-kb-icon {
    cursor: pointer;
}