/* =====================================================================
   card-search.css
   Terminal-styled card search, shared by /work/ and /writing/.
   Same query-line pattern as the corpus search on the Lab: amber prompt
   glyph, bottom border only, glowing caret. One learned pattern for
   "type here to interrogate this page" everywhere on the site.
   ===================================================================== */

.card-search {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 1.25rem 0 0.6rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  transition: border-color 0.2s;
}
.card-search:focus-within { border-color: var(--accent, #f5a623); }

.card-search-prompt {
  color: var(--accent, #f5a623);
  font-weight: 500;
  flex: none;
  user-select: none;
}

.card-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text, #e8e8e0);
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  padding: 2px 0;
  caret-color: var(--accent, #f5a623);
}
.card-search-input:focus { outline: none; }
.card-search-input::placeholder { color: var(--text-faint, #555560); }
/* Kill the native clear button; Escape is the clear, and the WebKit x
   breaks the terminal illusion. */
.card-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.card-search-count {
  flex: none;
  font-size: 11px;
  color: var(--text-faint, #555560);
  letter-spacing: 0.06em;
  min-width: 44px;
  text-align: right;
}

.card-search-key {
  flex: none;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  color: var(--text-faint, #555560);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 3px;
  padding: 1px 6px;
  user-select: none;
}

.card-search-empty {
  font-size: 12px;
  color: var(--text-faint, #555560);
  letter-spacing: 0.04em;
  padding: 1.5rem 0 0;
}

/* Search visibility class; deliberately separate from the Work page tag
   filter's .hidden so the two compose as an AND instead of overwriting
   each other. */
.project-entry.search-hidden,
.article-entry.search-hidden { display: none; }

@media (max-width: 680px) {
  .card-search-key { display: none; } /* no keyboard, no shortcut hint */
}
