/* Navigation aids: welcome card, quick picks, collapsible filters, labels */

.welcome {
  max-width: 76rem; margin: 1rem auto 0; padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--cobalt);
  border-radius: var(--radius-m); background: var(--surface);
}
.welcome[hidden] { display: none; }
.welcome h2 { font: 800 1.4rem/1.15 var(--display); margin: 0 0 0.6rem; }
.welcome ol { margin: 0 0 0.75rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; max-width: 62rem; }
.welcome-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 76rem) { .welcome { margin-inline: 1.25rem; } }

.filters-toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
.filters-toggle .badge {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
  border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 0.78rem; font-variant-numeric: tabular-nums;
}
.filters-toggle[aria-expanded="true"] { border-color: var(--cobalt); }

.presets { gap: 0.5rem !important; }
.presets-label { color: var(--muted); font-size: 0.9rem; margin-right: 0.25rem; }
.presets button {
  font: 600 0.88rem/1 var(--body); color: var(--ink); cursor: pointer;
  padding: 0.5rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.presets button:hover { border-color: var(--cobalt); }
.presets button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.presets button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.filter-panel { border-top: 1px dashed var(--line); margin-top: 0.75rem; }
.filter-panel[hidden] { display: none; }
.filters > .row.presets:last-child, .filters > .row.presets { padding-bottom: 0.75rem; }

.score { position: relative; }
.score-label { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.15rem; }

.tag.startup { background: var(--warn-soft); border-color: transparent; color: var(--warn); font-weight: 600; }
.result-line strong { font-variant-numeric: tabular-nums; }
.result-line .linkish { margin-left: 0.5rem; }

@media (max-width: 40rem) {
  .presets { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .presets::-webkit-scrollbar { display: none; }
  .presets button { flex: 0 0 auto; }
  .presets-label { flex: 0 0 auto; }
}
