/*
 * Styles for the search overlay defined in framer-search.js.
 *
 * Kept in its own file so the existing framer-hover.css stays focused on
 * Framer-button hover shims and isn't bloated with modal chrome.
 *
 * Palette matches the rest of the site:
 *   - Selwyn navy        rgb(34, 58, 111)
 *   - Lighter hover navy rgb(54, 88, 165)
 *   - Off-white panel    rgb(255, 255, 255)
 *   - Muted secondary    rgb(110, 120, 140)
 */

.fs-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  font-family: 'Sora', 'Sora Placeholder', sans-serif;
}

.fs-modal.fs-open {
  display: flex;
}

.fs-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 12, 12, 0.55);
  cursor: pointer;
}

.fs-panel {
  position: relative;
  width: min(640px, 92vw);
  max-height: 75vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 12, 12, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fs-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 22px 24px;
  font-size: 18px;
  font-family: inherit;
  color: rgb(13, 12, 12);
  border-bottom: 1px solid rgba(13, 12, 12, 0.08);
  background: transparent;
}

.fs-input::placeholder {
  color: rgb(110, 120, 140);
}

.fs-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.fs-empty {
  padding: 24px;
  color: rgb(110, 120, 140);
  font-size: 14px;
  text-align: center;
}

.fs-hit {
  display: block;
  padding: 12px 24px;
  color: rgb(13, 12, 12);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 12, 12, 0.04);
  transition: background-color 0.15s ease-out;
}

.fs-hit:last-child {
  border-bottom: none;
}

.fs-hit:hover,
.fs-hit:focus {
  background-color: rgba(34, 58, 111, 0.06);
}

.fs-hit-title {
  font-size: 15px;
  font-weight: 600;
  color: rgb(34, 58, 111);
}

.fs-hit-snippet {
  font-size: 13px;
  color: rgb(80, 90, 105);
  margin-top: 2px;
  line-height: 1.35;
}

.fs-hit-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(110, 120, 140);
  margin-top: 4px;
}
