/* General Container Styles */
.searchblock__layout-container,
#block-framingham-default-search,
.searchblock__title {
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  max-width: 1140px; /* Default max-width, adjust as needed */
}

.searchblock__title {
  margin-top: 100px;
  padding-bottom: calc(25px + 35 * (100vw - 575px) / 865);
}

/* Typography */
#block-framingham-default-search h2 {
  font-size: 2.5rem; /* h1 equivalent */
  font-weight: bold;
}

.searchstax-search-input {
  font-size: 1.75rem; /* h3 equivalent */
  font-weight: bold;
}

/* Search Input Styles */
.searchstax-search-input-wrapper {
  margin-bottom: 100px;
  position: relative;
}
@media (max-width: 575.98px) {
  .searchstax-search-input-wrapper {
    margin-bottom: 50px;
  }
}

.searchstax-search-input {
  border: 1px solid #808080;
  display: block;
  text-transform: uppercase;
  padding: 20px;
  height: 80px;
  width: 100%;
  margin-bottom: 0 !important;
  position: relative;
  font-family: "Graphik", sans-serif;
  font-weight: 700;
}

.searchstax-search-input::placeholder {
  opacity: 1;
  color: #e5e4e2;
}

.searchstax-search-icon,
.searchstax-search-close {
  position: absolute;
  right: 6px;
  top: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-color: #fcb614;
  height: 60px;
  width: 60px;
  border: none;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  padding: 34px;
}

/* Search Layout */
.searchblock__layout-facet-result-container {
  display: flex;
  gap: 20px;
}
@media (max-width: 767.98px) {
  .searchblock__layout-facet-result-container {
    flex-direction: column;
  }
}

.searchblock__layout-facet-container {
  min-width: 200px;
  flex-shrink: 0;
}

.searchblock__layout-result-container {
  min-width: 0;
  flex-grow: 1;
}

/* Search Results */
.view-content .search_header_stats {
  font-size: 20px;
  color: #808080;
  font-weight: bold;
  margin-bottom: 50px;
}

.search-result,
.searchstax-external-promotion {
  border-bottom: 1px solid #e5e4e2;
  margin-top: 30px;
  padding-bottom: 30px;
}

.searchstax-external-promotion {
  margin-bottom: 30px;
}

.search-result:first-of-type,
.searchstax-external-promotion:first-of-type {
  margin-top: 0;
}

.search-result--path {
  color: #a9a9a9;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}

.search-result--content a,
.search-result--content a h1 {
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  text-transform: unset;
  letter-spacing: normal;
  margin: 0;
}

.search-result--content em {
  font-weight: bold;
  font-style: normal;
  text-decoration: underline solid #ceb888;
}

.search-result--label {
  color: #a9a9a9;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.search-result--image figure {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Facets */
.searchstax-facet-title {
  font-weight: bold;
}
@media (max-width: 575.98px) {
  .searchstax-facet-title {
    cursor: pointer;
  }
  .searchstax-facet-title:after {
    content: " (click to show)";
    font-weight: normal;
    font-size: 14px;
    color: #808080;
  }
  .searchstax-facet-title.searchstax-facet-title--active:after {
    content: " (click to hide)";
  }
}

.searchstax-facet-values-container {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  gap: 5px;
}
.searchstax-facet-values-container.searchstax-facet-values-container--hidden-on-mobile {
  display: none;
}
@media (min-width: 576px) {
  .searchstax-facet-values-container.searchstax-facet-values-container--hidden-on-mobile {
    display: flex;
  }
}

.searchstax-facet-value-container {
  display: flex;
  min-width: max-content;
  gap: 10px;
}

.searchstax-facet-show-button {
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
}

.searchstax-facets-container-mobile {
  display: none;
}

.searchstax-search-result-title-container {
  margin-bottom: 0;
  font-weight: 400;
}

.searchstax-search-result-common.search-result--path {
  font-size: 1rem;
}

.searchstax-search-result-ribbon {
  color: #7d7d7d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

#searchAccessibilityContainer {
  /* screen reader only */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
}

#search_header_stats,
#block-framingham-default-mainpagecontent {
  display: none !important;
}

.searchstax-related-searches-container {
  font-weight: bold;
  margin-bottom: 10px;
}

.searchstax-related-search-item {
  font-weight: normal;
  cursor: pointer;
}

.searchstax-related-search-item:hover {
  text-decoration: underline;
}

.searchstax-search-result-common:last-child {
  margin-bottom: 0;
}
