/* search-modal.css — header search modal that searches across episodes,
 * voices, and stories. Loaded by every page; activated by clicking the
 * search icon in the sticky header.
 */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.search-modal.is-open { display: block; }
.search-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 45, 82, 0.5);
}
.search-modal__panel {
  position: relative;
  max-width: 720px;
  margin: 80px auto 0;
  background: var(--ha-paper);
  border: 1px solid var(--ha-navy);
  padding: 24px 24px 28px;
  max-height: 80vh;
  overflow-y: auto;
}
.search-modal__panel input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  font: 18px var(--font-sans);
  border: 1px solid var(--ha-navy);
  background: var(--ha-off-white);
  color: var(--ha-navy);
}
.search-modal__panel input[type="search"]:focus {
  border-color: var(--ha-red);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}
.search-modal__panel input[type="search"]:focus-visible {
  outline: 2px solid var(--ha-red);
  outline-offset: 2px;
  border-color: var(--ha-red);
}
.search-modal__results { margin-top: 18px; }
.search-modal__results .search-group {
  margin-bottom: 22px;
}
.search-modal__results .search-group h4 {
  font: 700 11px/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ha-navy-600);
  margin-bottom: 10px;
}
.search-modal__results a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 45, 82, 0.08);
  color: var(--ha-navy);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}
.search-modal__results a:last-child { border-bottom: 0; }
.search-modal__results a:hover { background: var(--ha-cream); color: var(--ha-red); }
.search-modal__hint {
  font-size: 12px;
  color: var(--ha-navy-600);
  margin-top: 12px;
}
@media (max-width: 480px) {
  .search-modal__panel { margin: 24px 14px 0; max-height: calc(100vh - 48px); }
}
