/* Plain Chalk — empty states and error states (one light theme).
   Every zero-result, no-input, missing-data and error panel shares this
   shape: plain words do the work, no illustration, no exclamation, no blame.
   Linked from each page that can show one of these states. Not imported by styles.css. */

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  margin: 18px 0;
  max-width: 66ch;
}

.empty-state--inline {
  box-shadow: none;
  padding: 22px 20px;
}

.empty-state h2,
.empty-state h3 {
  font-family: var(--font-ui), system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text);
}

.empty-state h2 { font-size: 1.15rem; }
.empty-state h3 { font-size: 1.05rem; }

.empty-state p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 10px;
  max-width: 60ch;
}

.empty-state p:last-child { margin-bottom: 0; }

.empty-state .fine {
  font-size: 0.85rem;
}

.empty-state .empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.empty-state .empty-actions .btn {
  min-height: 44px;
}

.empty-state[role="status"] {
  scroll-margin-top: 72px;
}

/* Missing data reads as our gap, never as a zero count. */
.empty-state--gap {
  border-left: 3px solid var(--brand-strong);
}

/* 404 page: the same panel, centred in the hero width. */
.state-404 {
  margin-top: 20px;
}

.state-404-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.state-404-list a {
  font-weight: 600;
}

.state-404-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.state-404-search input[type="search"] {
  flex: 1;
  min-width: 200px;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
}

.state-404-search input[type="search"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .empty-state { padding: 22px 18px; }
}
