/* The shared search box (search.js, docs/search.md): big, round, a 🔍 on the start side and a ✕ on the end side. */
.sb { position: relative; display: flex; align-items: center; margin: 12px 0 14px; }
.sb-icon { position: absolute; inset-inline-start: 18px; font-size: 22px; line-height: 1; pointer-events: none; color: var(--muted); display: flex; }
.sb .sb-input { width: 100%; min-height: 56px; font: 500 18px/1.3 var(--font); color: var(--ink); background: var(--card);
  padding: 12px 56px; border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.sb .sb-input::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.sb .sb-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.sb .sb-input::-webkit-search-cancel-button { display: none; }
.sb-x { position: absolute; inset-inline-end: 9px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--muted); font: 700 18px/1 var(--font); display: grid; place-items: center; }
.sb-x[hidden] { display: none; }
.sb-x:hover { filter: brightness(.95); }
.sb-x:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.sb-count { margin: -4px 4px 10px; font: 700 14px var(--font); color: var(--muted); }
.sb-empty { text-align: center; padding: 22px 16px; margin: 6px 0 12px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.sb-empty-e { font-size: 48px; line-height: 1; display: block; margin-bottom: 6px; }
.sb-empty p { margin: 4px 0; font: 600 17px/1.5 var(--font); color: var(--ink); }
.sb-empty .sb-empty-tip { font-weight: 600; font-size: 15px; color: var(--muted); }
.sb-empty .sb-clear { margin-top: 10px; }

/* A "jump there" button a query can show above the results ("Go to Grade 8", "Go to Science"). */
.sb-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.sb-jump { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font: 600 16px var(--font); text-decoration: none; box-shadow: var(--shadow-sm); }
.sb-jump:hover { background: var(--primary-dark); text-decoration: none; }
.sb-jump:active { transform: translateY(1px); }
.sb-jump:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* A label on a result that says where it lives ("in Fun Games", "Qudurat · Math"). */
.sb-where { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font: 800 12px/1.5 var(--font);
  background: rgba(255, 255, 255, .9); color: #0a1330; }

@media (max-width: 560px) {
  .sb .sb-input { min-height: 54px; font-size: 17px; padding-inline: 48px; }
  .sb-icon { inset-inline-start: 14px; font-size: 20px; }
  .sb-x { width: 38px; height: 38px; }
  .sb-jump { font-size: 16px; }
}

/* Items search.js hides keep hidden even when their own CSS sets a display. */
[data-s][hidden] { display: none !important; }
