/* Site search: the header popover and the /paieska results list. */

.public-search-popover {
  position: relative;
}

/* The whole pill shows focus (.public-search:focus-within), not the bare input. */
.public-header .public-search input:focus,
.public-header .public-search input:focus-visible {
  outline: none;
  box-shadow: none;
}

.public-search__clear {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #5d675f;
}

.public-search__clear:hover,
.public-search__clear:focus-visible {
  background: rgba(21, 35, 29, 0.08);
  color: #15231d;
}

.public-search__clear svg {
  width: 0.9rem;
  height: 0.9rem;
}

.public-search-popover__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(26rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100vh - 7rem));
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid rgba(21, 35, 29, 0.16);
  border-radius: 0.85rem;
  background: #fffef9;
  box-shadow: 0 22px 48px -24px rgba(21, 35, 29, 0.6);
}

.public-search-popover__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 1.4rem 1rem;
  color: #5d675f;
  font-size: 0.85rem;
  text-align: center;
}

.public-search-popover__status svg {
  width: 1rem;
  height: 1rem;
}

.public-search-popover__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  text-align: left;
}

.public-search-popover__item:hover,
.public-search-popover__item.is-selected {
  background: rgba(76, 174, 80, 0.12);
}

.public-search-popover__icon {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #edf2e9;
  color: #3f9843;
}

.public-search-popover__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.public-search-popover__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.public-search-popover__title {
  overflow: hidden;
  color: #15231d;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-search-popover__meta {
  color: #5d675f;
  font-size: 0.75rem;
}

.public-search-popover__all {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem;
  border-top: 1px solid rgba(21, 35, 29, 0.12);
  color: #3f9843;
  font-size: 0.82rem;
  font-weight: 750;
}

.public-search-popover__all:hover {
  text-decoration: underline;
}

.public-search-popover mark,
.po-search-hit mark {
  background: transparent;
  color: inherit;
  font-weight: 800;
}

/* Phone menu: the list opens in the menu flow instead of floating over it. */
.public-mobile-menu .public-search-popover__panel {
  position: static;
  width: 100%;
  max-height: none;
  margin-top: 0.5rem;
  box-shadow: none;
}

.public-mobile-menu .public-search-popover__item,
.public-mobile-menu .public-search-popover__all {
  min-height: 2.75rem;
}

.public-mobile-menu .public-search__clear {
  width: 2.75rem;
  height: 2.75rem;
}

/* /paieska results */

.po-search-form {
  margin-top: 1.5rem;
}

.po-search-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
}

.po-search-top__title {
  margin: 0;
  color: #15231d;
  font-size: 1.6rem;
  font-weight: 800;
}

.po-search-top .po-search-form {
  margin-top: 0;
}

.po-search-top .po-search-form input {
  border-color: rgba(21, 35, 29, 0.24);
}

.po-search-page .po-search-results {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(21, 35, 29, 0.18);
  border-radius: 0.75rem;
  background: #fffef9;
}

.po-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.po-search-filters .pill-tag,
.po-search-suggestions .pill-tag {
  border-radius: 0.35rem;
}

.po-search-count,
.po-search-note {
  margin: 0 0 0.5rem;
  color: #5d675f;
  font-size: 0.85rem;
}

.po-search-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  background: #fff4e5;
  color: #6b4a12;
}

.po-search-note p {
  margin: 0;
}

.po-search-note button,
.po-search-more {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  font-weight: 750;
}

.po-search-note button:disabled {
  opacity: 0.6;
}

.po-search-more {
  display: block;
  margin: 1rem auto 0;
  color: #3f9843;
}

.po-search-more:hover,
.po-search-note button:hover:not(:disabled) {
  background: rgba(21, 35, 29, 0.05);
}

.po-search-list {
  max-width: 48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.po-search-hit {
  display: flex;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(21, 35, 29, 0.1);
}

.po-search-hit:last-child {
  border-bottom: 0;
}

.po-search-hit__body {
  min-width: 0;
  flex: 1;
}

.po-search-hit__crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.2rem;
  color: #5d675f;
  font-size: 0.78rem;
}

.po-search-hit__crumb svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  color: #3f9843;
}

.po-search-hit__crumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-search-hit__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
}

.po-search-hit__title a {
  color: #1d5fd1;
}

.po-search-hit__title a:hover,
.po-search-hit__title a:focus-visible {
  text-decoration: underline;
}

.po-search-hit__snippet {
  margin: 0.3rem 0 0;
  color: #3c463f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.po-search-hit__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.45rem 0 0;
  color: #5d675f;
  font-size: 0.78rem;
}

.po-search-hit__type {
  font-weight: 750;
  color: #3f9843;
}

.po-search-hit__thumb {
  flex: none;
  align-self: flex-start;
  width: 8rem;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 16 / 9;
}

.po-search-hit__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.po-search-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  color: #5d675f;
  text-align: center;
}

.po-search-status h2 {
  margin: 0;
  color: #15231d;
  font-size: 1.2rem;
  font-weight: 800;
}

.po-search-status p {
  margin: 0;
}

.po-search-status > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #3f9843;
}

.po-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 639px) {
  .po-search-page .po-search-results {
    padding: 1rem;
  }

  .po-search-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .po-search-filters .pill-tag {
    flex: none;
    min-height: 2.75rem;
  }

  .po-search-hit__thumb {
    width: 5.5rem;
  }
}
