/* Maestro Chronicle Studio 1.4 — the Chronicle's search, in the Chronicle's own language. */
.chron-search__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  margin-left: auto; margin-right: 12px;
  font: inherit; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  /* Same size, shape and place; it was simply too quiet against the dark to
     read as something you can press. */
  color: #dcebff; background: linear-gradient(180deg, rgba(127, 208, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(159, 205, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(200, 230, 255, 0.14), 0 0 16px -6px rgba(127, 208, 255, 0.5);
  border-radius: 999px; cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.chron-search__open:hover {
  color: #fff; border-color: rgba(159, 205, 255, 0.85);
  background: linear-gradient(180deg, rgba(127, 208, 255, 0.2), rgba(127, 208, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(220, 240, 255, 0.22), 0 0 22px -4px rgba(127, 208, 255, 0.75);
}
.chron-search__open:focus-visible { outline: 2px solid #9fdcff; outline-offset: 3px; }
.chron-search__open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.chron-search { position: absolute; inset: 0; z-index: 6; display: flex; justify-content: center; padding: 96px 24px 40px; overflow-y: auto; background: rgba(3, 8, 17, 0.86); backdrop-filter: blur(10px); }
.chron-search[hidden] { display: none; }
.chron-search__box { width: min(760px, 100%); animation: chron-search-in 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes chron-search-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chron-search__box { animation: none; } }
.chron-search__label { display: block; margin: 0 0 10px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #7fd0ff; }
.chron-search__field { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(159, 205, 255, 0.3); background: rgba(6, 14, 28, 0.92); }
.chron-search__field:focus-within { border-color: #7fd0ff; box-shadow: 0 0 0 3px rgba(127, 208, 255, 0.18); }
.chron-search__field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #7fd0ff; stroke-width: 1.7; stroke-linecap: round; }
.chron-search__field input {
  flex: 1 1 auto; min-width: 0; min-height: 32px; border: 0; background: none; color: #eaf3ff;
  font: inherit; font-size: clamp(16px, 1.4vw, 20px);
}
.chron-search__field input::placeholder { color: #6f83a0; }
.chron-search__field input:focus { outline: none; }
.chron-search__close { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(159, 205, 255, 0.24); background: none; color: #b6cdec; font: inherit; font-size: 12px; cursor: pointer; }
.chron-search__close:hover { color: #fff; border-color: rgba(159, 205, 255, 0.5); }
.chron-search__hint { margin: 10px 2px 0; font-size: 12.5px; color: #8fa3bd; }
.chron-search__results { display: grid; gap: 10px; margin-top: 18px; }
.chron-search__hit {
  display: grid; gap: 6px; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid rgba(159, 205, 255, 0.16); background: rgba(10, 20, 38, 0.7); color: #eaf3ff; font: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.chron-search__hit:hover, .chron-search__hit.is-active { border-color: rgba(127, 208, 255, 0.55); background: rgba(16, 32, 58, 0.9); }
.chron-search__hit:focus-visible { outline: 2px solid #9fdcff; outline-offset: 2px; }
.chron-search__hit-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #7fd0ff; }
.chron-search__where { color: #8fa3bd; }
.chron-search__title { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; color: #fff; }
.chron-search__excerpt { font-size: 13.5px; line-height: 1.6; color: #b6cdec; }
.chron-search__hit mark { background: rgba(127, 208, 255, 0.24); color: #fff; border-radius: 3px; padding: 0 2px; }
.chron-search__none { margin: 18px 2px 0; font-size: clamp(15px, 1.2vw, 18px); color: #eaf3ff; }
.chron-search__tips { margin: 8px 2px 0; font-size: 13px; color: #8fa3bd; }
.chron-search__browse { margin-top: 14px; min-height: 40px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(159, 205, 255, 0.3); background: none; color: #b6cdec; font: inherit; font-size: 13px; cursor: pointer; }
.chron-search__browse:hover { color: #fff; border-color: #7fd0ff; }

@media (max-width: 900px) { .chron-search { padding: 84px 16px 32px; } }
@media (max-width: 720px) {
  .chron-search__open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chron-search__open { padding: 8px; margin-right: 8px; }
  .chron-search { padding: 72px 12px 24px; }
  .chron-search__field { gap: 8px; padding: 10px; }
  .chron-search__close { padding: 6px 10px; }
  .chron-search__hit { padding: 12px 13px; }
}

/* Beside the topics it speaks in their voice, not the header's: the same small
   uppercase letters, a hairline to set it apart, and none of the pill. */
.chron-filter .chron-search__open--inline {
  margin: 0 4px 0 0; padding: 8px 4px; min-height: 0;
  font-size: 10.5px; letter-spacing: 0.22em;
  color: #b6cdec; background: none; border: 0; box-shadow: none; border-radius: 0;
  position: relative; gap: 7px;
}
.chron-filter .chron-search__open--inline::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: rgba(188, 212, 246, 0.28);
}
.chron-filter .chron-search__open--inline svg { width: 13px; height: 13px; }
.chron-filter .chron-search__open--inline:hover,
.chron-filter .chron-search__open--inline:focus-visible {
  color: var(--core); background: none; border: 0;
  box-shadow: none; text-shadow: 0 0 14px rgba(127, 208, 255, 0.55);
}
.chron-filter .chron-search__open--inline:focus-visible { outline: 2px solid #9fdcff; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 760px) {
  .chron-filter .chron-search__open--inline span { position: static; width: auto; height: auto; clip-path: none; }
}
