/* Search composes the inspected news components; mobile entry is 3131:13278. */
.fs-root {
  min-height: 1108px;
}
.fs-query,
.fs-overlay-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--fh-border);
  border-radius: 52px;
  background: #fff;
  padding: 0 16px;
  height: 48px;
}
.fs-query {
  margin: 20px 0 12px;
}
.fs-query input,
.fs-overlay-input input {
  background: transparent;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--fh-text);
  font: inherit;
}
.fs-query:focus-within,
.fs-overlay-input:focus-within {
  outline: 2px solid var(--fh-primary);
  outline-offset: 2px;
}
.fs-query input::placeholder,
.fs-overlay-input input::placeholder {
  color: var(--fh-muted);
  opacity: 1;
}
.fs-query input::-webkit-search-cancel-button,
.fs-overlay-input input::-webkit-search-cancel-button {
  display: none;
}
.fs-query #clear-search {
  padding: 4px 8px;
  color: var(--fh-muted);
  font-size: 24px;
  background: none;
}
.fs-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.fs-tools p {
  margin: 0;
  color: var(--fh-muted);
}
.fs-tools select,
.fs-filters select,
.fs-filters input:not([type="radio"], [type="checkbox"]) {
  font: inherit;
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  padding: 6px;
  max-width: 100%;
}
.fs-tools label {
  white-space: nowrap;
}
.fs-empty {
  text-align: center;
  background: var(--fh-surface);
  border-radius: 16px;
  padding: 40px 20px;
}
.fs-empty h2 {
  font-size: 18px;
}
.fs-empty button,
.fs-more,
.fs-filters button,
.fs-saved button {
  background: var(--fh-primary);
  color: white;
  border-radius: 24px;
  padding: 8px 16px;
  font: inherit;
}
.fs-active {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fs-active:empty {
  display: none;
}
.fs-active button {
  border: 1px solid var(--fh-border);
  border-radius: 20px;
  background: #fff;
  padding: 4px 12px;
}
.fs-root mark {
  background: #ffe2e3;
  color: inherit;
  border-radius: 2px;
}
.fs-root .fn-pagination:has(button:only-child),
.fs-root .fn-pagination:empty {
  display: none;
}
.fs-root .fn-pagination button {
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--fh-text);
  font: inherit;
}
.fs-root .fn-pagination button[aria-current] {
  background: var(--fh-primary);
  color: white;
}
.fs-root .fn-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.fs-filters,
.fs-saved {
  margin-top: 24px;
  border: 1px solid var(--fh-border);
  border-radius: 16px;
  padding: 12px 16px;
}
.fs-filters summary,
.fs-saved summary {
  cursor: pointer;
}
.fs-filters form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.fs-filters fieldset {
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  min-width: 0;
  padding: 12px;
}
.fs-filters legend {
  padding: 0 4px;
}
.fs-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}
.fs-filters h2 {
  font-size: 16px;
}
.fs-filters .filter-sheet-heading,
.fs-filters .filter-sheet-actions,
.fs-filters [data-date-error] {
  grid-column: 1/-1;
}
.fs-filters .jalali-range {
  display: flex;
  gap: 12px;
}
.fs-filters .jalali-range label {
  min-width: 0;
  flex: 1;
  display: block;
}
.fs-filters .jalali-range input {
  width: 100%;
}
.fs-filters .filter-sheet-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.fs-saved [data-saved-searches] > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.fs-root [hidden] {
  display: none !important;
}
.fs-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fh-text);
  overflow: auto;
}
.fs-overlay::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.fs-overlay-top {
  position: relative;
  height: 108px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 27px;
}
.fs-white-brand {
  position: absolute;
  top: 43px;
  right: 26px;
}
.fs-overlay-close {
  position: absolute;
  left: 33px;
  top: 52px;
  padding: 0;
  width: 34px;
  height: 34px;
}
.fs-overlay-form {
  position: relative;
  min-height: max(893px, calc(100dvh - 108px));
  padding: 29px 16px 48px;
  background: #fff;
  border-radius: 24px 24px 0 0;
}
.fs-overlay-input {
  height: 47px;
  padding: 0 16px;
  border-radius: 40px;
  border-color: #e6e6e6;
}
.fs-overlay-input input {
  font-size: 14px;
  line-height: 22px;
}
.fs-overlay-submit {
  position: absolute;
  top: 597px;
  left: 16px;
  right: 16px;
  height: 47px;
  border-radius: 51.43px;
  background: var(--fh-primary);
  color: #fff;
  font:
    600 18.76px/29px YekanBakh,
    sans-serif;
}
.fs-search-open {
  overflow: hidden;
}
@media (min-width: 1101px) {
  .fs-overlay {
    max-width: 720px;
    height: 420px;
    inset: 0;
    margin: auto;
    background: white;
    border-radius: 24px;
  }
  .fs-overlay-top {
    background: #3f3f3f;
  }
  .fs-overlay-form {
    min-height: 300px;
  }
  .fs-overlay-submit {
    top: 180px;
  }
}
@media (max-width: 1100px) {
  .fs-root {
    min-height: 1108px;
  }
  .fs-tools {
    font-size: 12px;
  }
  .fs-filters form {
    grid-template-columns: 1fr;
  }
  .fs-query {
    margin-top: 16px;
  }
  .fs-root .fn-video-rail {
    display: none;
  }
  .fs-root .fn-heading {
    align-items: flex-start;
  }
  .fs-root .fn-heading > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .fs-root .fn-pagination {
    display: none;
  }
  .fs-more {
    display: block;
    margin: 20px auto;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.fs-root .fn-pagination {
  gap: 8px;
}
/* Preserve native text-input geometry; stronger keyboard focus stays on its wrapper. */
.fs-query:focus-within {
  outline: none;
  border-color: var(--fh-muted);
}
.fs-overlay-input:focus-within {
  outline: none;
  border-color: #e6e6e6;
}
.fs-overlay-input:has(input:focus-visible) {
  box-shadow: inset 0 0 0 0.5px #e6e6e6;
}
@media (max-width: 1100px) {
  .fs-overlay-form {
    margin-left: 1px;
  }
  .fs-overlay-input {
    position: absolute;
    top: 29px;
    left: 15px;
    right: 16px;
  }
  .fs-overlay-submit {
    right: 15px;
  }
}
