/* Shalvit Online School — site search (owner order 2026-11-19 ~17:08).
   House premium: deep navy #14264c (the campus/house navy used across the
   site) with gold. The button is a small, clean magnifier that docks at
   the right edge of .site-head in every header state — public, premium
   public, and the member slim bar — because search.js places it as a
   direct child of the header, after the nav. */

.site-head { position: relative; }
.shv-search-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14264c;
  color: #f3d98b;
  border: 1px solid #d4af37;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
  align-self: center;
}
.shv-search-btn:hover { background: #1d3565; }
.shv-search-btn:focus-visible { outline: 3px solid #d4af37; outline-offset: 2px; }
.shv-search-btn-label { letter-spacing: .01em; }
@media (max-width: 560px) {
  .shv-search-btn { padding: 7px 9px; }
  .shv-search-btn-label { display: none; }
}

body.shv-search-open { overflow: hidden; }
.shv-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 38, 76, .55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px;
}
.shv-search-overlay[hidden] { display: none; }
.shv-search-panel {
  background: #fffbeb;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border-top: 4px solid #d4af37;
  box-shadow: 0 24px 60px -18px rgba(20, 38, 76, .55);
  overflow: hidden;
}
.shv-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #14264c;
  color: #f3d98b;
  padding: 12px 14px;
}
.shv-search-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.02rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d4af37;
  background: #ffffff;
  color: #292524;
}
.shv-search-input:focus { outline: 3px solid rgba(212, 175, 55, .55); }
.shv-search-close {
  background: transparent;
  border: 1px solid rgba(243, 217, 139, .6);
  color: #f3d98b;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.shv-search-body { overflow-y: auto; padding: 10px 12px 16px; }
.shv-search-group {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #14264c;
  border-bottom: 2px solid #d4af37;
  padding: 12px 4px 5px;
  margin-bottom: 6px;
}
.shv-search-item {
  display: block;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 10px;
  color: #292524;
}
.shv-search-item:hover, .shv-search-item.active { background: #fef3c7; }
.shv-search-item-t { display: block; font-weight: 700; color: #14264c; }
.shv-search-item-s {
  display: block;
  font-size: .88rem;
  color: #57534e;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shv-search-item-p { display: block; font-size: .85rem; font-weight: 700; color: #b45309; margin-top: 3px; }
.shv-search-mine {
  background: #14264c;
  color: #f3d98b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: 2px;
}
.shv-search-hint { padding: 14px 6px 4px; color: #57534e; font-size: .94rem; line-height: 1.55; }
.shv-search-hint em { font-style: normal; font-weight: 700; color: #14264c; }
.shv-search-recents { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 2px; align-items: center; }
.shv-search-chip {
  background: #ffffff;
  border: 1px solid #d4af37;
  color: #14264c;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.shv-search-clear {
  background: none; border: none; color: #78716c; font: inherit;
  font-size: .82rem; text-decoration: underline; cursor: pointer;
}
.shv-search-empty { padding: 16px 8px 6px; line-height: 1.55; color: #44403c; }
.shv-search-care { font-weight: 800; color: #14264c; }
@media (max-width: 560px) {
  .shv-search-overlay { padding: 0; }
  .shv-search-panel { max-height: 100dvh; height: 100dvh; border-radius: 0; border-top: none; }
}
