/* Evo Search: theme-first styling, scoped to avoid affecting other modules. */
.es-search-container {
  container-type: inline-size;
  width: 100%;
  min-width: 0
}

.es-search-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0
}

.es-search-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0
}

.es-search-input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #666;
  border-radius: 6px;
  background: rgba(0, 0, 0, .12);
  color: inherit;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s
}

.es-search-input:focus {
  border-color: #138abf;
  animation: es-search-pulse 1.6s ease-in-out infinite
}

@keyframes es-search-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(19, 138, 191, .13), 0 0 5px rgba(19, 138, 191, .15)
  }

  50% {
    box-shadow: 0 0 0 4px rgba(19, 138, 191, .23), 0 0 15px rgba(19, 138, 191, .4)
  }
}

.es-search-button {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #777;
  background: linear-gradient(to bottom, #343434, #202020);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap
}

.es-search-button:hover,
.es-search-button:focus-visible {
  border-color: #138abf;
  color: #bfeaff
}

@container (min-width: 380px) {
  .es-search-controls {
    flex-direction: row;
    align-items: stretch
  }

  .es-search-input {
    flex: 1
  }

  .es-search-button {
    flex: 0 0 auto
  }
}

.es-search-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .92em;
  align-items: center
}

.es-search-options label {
  cursor: pointer
}

.es-search-page {
  container-type: inline-size;
  min-width: 0
}

.es-search-page h2 {
  margin: 0 0 15px
}

.es-search-page h3 {
  margin: 24px 0 10px
}

.es-search-count {
  font-size: .8em;
  opacity: .75;
  font-weight: normal
}

.es-search-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.es-search-table {
  width: 100%;
  border-spacing: 1px;
  table-layout: auto;
  min-width: 0
}

.es-search-table th,
.es-search-table td {
  padding: 9px 10px;
  vertical-align: middle;
  text-align: left
}

.es-search-table th {
  white-space: nowrap
}

.es-search-table td.es-number {
  text-align: center;
  font-variant-numeric: tabular-nums
}

.es-search-table .es-topic {
  font-weight: 600;
  min-width: 180px;
  overflow-wrap: anywhere
}

.es-search-table .es-last {
  white-space: nowrap;
  font-size: .92em
}

.es-search-module-list {
  display: grid;
  gap: 2px
}

.es-search-module-item {
  padding: 12px 14px;
  min-width: 0;
  overflow-wrap: anywhere
}

.es-search-module-title {
  font-weight: 600;
  font-size: 1.05em
}

.es-search-module-meta {
  font-size: .85em;
  opacity: .78;
  margin: 4px 0
}

.es-search-module-snippet {
  line-height: 1.5
}

.es-search-empty {
  padding: 12px 14px !important;
  opacity: .85
}

@media(prefers-reduced-motion:reduce) {
  .es-search-input:focus {
    animation: none;
    box-shadow: 0 0 0 2px rgba(19, 138, 191, .3)
  }

  * {
    scroll-behavior: auto
  }
}

/* Member search results follow the current Evo theme row colors. */
.es-search-user-list {
  display: grid;
  gap: 2px
}

.es-search-user-item {
  padding: 12px 14px !important;
  overflow-wrap: anywhere
}

.es-search-user-item a {
  font-weight: 600
}

/* Forum results adapt to the available module width, not just the device viewport. */
.es-search-table {
  max-width: 100%
}

.es-search-table th,
.es-search-table td {
  overflow-wrap: anywhere
}

.es-search-table .es-topic {
  min-width: 0
}

@container (max-width: 900px) {
  .es-search-table .es-hide-tablet {
          display: none
  }
}

@container (max-width: 600px) {
  .es-search-table .es-hide-phone {
          display: none
  }

  .es-search-table th,
  .es-search-table td {
          padding: 7px 5px
  }

  .es-search-table th:first-child,
  .es-search-table td:first-child {
          width: 28%
  }

  .es-search-table .es-topic {
          width: 72%
  }
}

/* Theme-neutral pagination. Explicitly reset theme/global button backgrounds. */
.es-search-page .es-forum-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
  color: inherit;
}

.es-search-page .es-page-summary {
  margin-right: 8px;
  color: inherit;
  opacity: .85;
}

.es-search-page .es-forum-pagination button.es-page-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  box-sizing: border-box;
  min-width: 34px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  opacity: .85;
  cursor: pointer;
  transition: opacity .15s ease, box-shadow .15s ease;
}

.es-search-page .es-forum-pagination button.es-page-link:hover:not(:disabled) {
  background: transparent;
  background-image: none;
  color: inherit;
  opacity: 1;
  box-shadow: inset 0 0 0 1px currentColor;
}

.es-search-page .es-forum-pagination button.es-page-current,
.es-search-page .es-forum-pagination button.es-page-current:hover {
  border-color: #15932b;
  background: transparent;
  background-image: none;
  color: inherit;
  box-shadow: inset 0 0 0 1px #15932b;
  font-weight: bold;
  opacity: 1;
  cursor: default;
}

.es-search-page .es-forum-pagination button.es-page-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.es-search-page .es-forum-pagination button.es-page-link:disabled {
  opacity: .45;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .es-search-page .es-forum-pagination button.es-page-link {
          transition: none;
  }
}

/* Animated partial-match checkbox. Uses inherited theme colors for both
light and dark Evo Xtreme themes; no theme-specific CSS is required. */
.es-search-page .es-partial-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: inherit;
  user-select: none;
}

.es-search-page .es-partial-checkbox {
  --es-checkbox-duration: .3s;
  display: inline-block;
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: inherit;
}

.es-search-page .es-partial-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  opacity: .8;
  cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.es-search-page .es-partial-toggle:hover input {
  opacity: 1;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 12%, transparent);
}

.es-search-page .es-partial-checkbox input:checked {
  border: 2px solid #15932b;
  opacity: 1;
}

.es-search-page .es-partial-checkbox input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.es-search-page .es-partial-checkbox svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: #15932b;
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 93;
  stroke-dashoffset: 94;
  transition: stroke-dasharray var(--es-checkbox-duration) ease,
          stroke-dashoffset var(--es-checkbox-duration) ease;
}

.es-search-page .es-partial-checkbox input:checked+svg {
  stroke-dasharray: 16 93;
  stroke-dashoffset: 109;
}

@media (prefers-reduced-motion: reduce) {

  .es-search-page .es-partial-checkbox input,
  .es-search-page .es-partial-checkbox svg {
          transition: none;
  }
}