/* HTTP status codes - search/filter controls + reference card grid.
   Follows the DM screen pattern; colors come from theme tokens only. */

.hs { color: var(--text); }
.hs-intro { color: var(--muted); margin: 0.25rem 0 1rem; max-width: 62ch; }

/* Controls */
.hs-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1.25rem; }
.hs-search { flex: 1 1 18rem; }
.hs-search input {
    font: inherit; width: 100%;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem;
}
.hs-search input:focus { outline: 2px solid var(--accent-weak); border-color: var(--accent); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hs-chip {
    font: inherit; cursor: pointer; font-size: 0.85rem;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
}
.hs-chip:not([aria-pressed="true"]):hover { border-color: var(--accent); color: var(--accent-strong); }
.hs-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.hs-chip[aria-pressed="true"]:focus-visible { outline-color: var(--text); }
.hs-count { color: var(--faint); font-size: 0.85rem; margin: 0; }

/* Grid */
.hs-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.hs-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 0.85rem; display: flex; flex-direction: column; gap: 0.5rem;
    box-shadow: var(--shadow); min-width: 0;
}
/* `display: flex` above would otherwise defeat the `hidden` attribute the filter controller sets. */
.hs-card[hidden] { display: none; }
.hs-card-head { display: flex; align-items: baseline; gap: 0.5rem; }
.hs-code {
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 1.1rem; font-weight: 700; color: var(--accent-strong);
}
.hs-title { font-size: 1rem; margin: 0; flex: 1 1 auto; min-width: 0; }
.hs-badge {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 0.05rem 0.5rem; white-space: nowrap;
}
.hs-summary { margin: 0; font-size: 0.9rem; }
.hs-link {
    display: inline-flex; align-items: center; gap: 0.25rem; margin-top: auto;
    color: var(--faint); font-size: 0.8rem; text-decoration: none; white-space: nowrap;
}
.hs-link:hover { color: var(--accent-strong); }

.hs-empty { color: var(--muted); }
