/* Device Finder — loaded only on its own page.
 *
 * Every colour, radius and shadow is a site token. The original carried its own
 * palette (#0066FF, Inter, its own radius scale); none of that survives, because
 * a tool that looks like a different site is a tool people distrust. */

.finder__noscript {
  background: var(--sg-amber-bg); border: 1px solid var(--sg-amber-line);
  border-radius: var(--sg-r-sm); padding: 14px 16px; margin: 0 0 18px;
}

/* --- Step indicator ------------------------------------------------------ */
.finder__steps {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; margin: 0 0 22px; padding: 0 0 16px;
  border-bottom: 1px solid var(--sg-line);
}
.finder__step {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--sg-muted);
}
.finder__step span {
  display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%;
  background: var(--sg-shell); border: 1px solid var(--sg-line);
  font-size: 12.5px; font-weight: 800;
}
.finder__step.is-active { color: var(--sg-navy); }
.finder__step.is-active span { background: var(--sg-navy); border-color: var(--sg-navy); color: #fff; }
.finder__step.is-done span { background: var(--sg-sky); border-color: var(--sg-sky); color: var(--sg-midnight); }

.finder__panel { display: none; }
.finder__panel.is-active { display: block; }
.finder__panel h2 { margin-top: 0; }
.finder__lead { color: var(--sg-muted); margin: -.2em 0 1.2em; }

/* --- Step 1: the job ----------------------------------------------------- */
.finder__usecases {
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .finder__usecases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .finder__usecases { grid-template-columns: 1fr 1fr 1fr; } }

.finder__uc {
  display: block; text-align: left; cursor: pointer;
  padding: 14px 15px; border: 1px solid var(--sg-line); border-radius: var(--sg-r-sm);
  background: var(--sg-paper); font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.finder__uc:hover { border-color: var(--sg-blue); transform: translateY(-2px); box-shadow: var(--sg-shadow); }
.finder__uc.is-on { border-color: var(--sg-navy); box-shadow: inset 0 0 0 1px var(--sg-navy); background: var(--sg-tint); }
.finder__uc-icon { display: block; font-size: 21px; line-height: 1; margin-bottom: 8px; }
.finder__uc-name { display: block; font-weight: 800; color: var(--sg-midnight); margin-bottom: 3px; }
.finder__uc-desc { display: block; font-size: 13px; color: var(--sg-muted); line-height: 1.45; }

/* --- Step 2: the filters -------------------------------------------------- */
.finder__group { border: 0; padding: 0; margin: 0 0 20px; }
.finder__group legend {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sg-muted); padding: 0; margin-bottom: 9px;
}
.finder__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.finder__chip {
  cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--sg-line); background: var(--sg-paper); color: var(--sg-midnight);
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.finder__chip:hover:not(:disabled) { border-color: var(--sg-blue); }
.finder__chip.is-on { background: var(--sg-navy); border-color: var(--sg-navy); color: #fff; }
/* Dead ends are disabled, not removed — the range should not appear to change
   shape while you are choosing. */
.finder__chip.is-dead { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.finder__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-ghost {
  cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px;
  padding: 11px 18px; border-radius: var(--sg-r-sm);
  border: 1px solid var(--sg-line); background: var(--sg-paper); color: var(--sg-navy);
}
.btn-ghost:hover { border-color: var(--sg-blue); background: var(--sg-tint); }
.finder__nav .btn-solid[disabled] { opacity: .45; cursor: not-allowed; }

/* --- Step 3: the devices -------------------------------------------------- */
.finder__results {
  display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 4px;
}
@media (min-width: 620px) { .finder__results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .finder__results { grid-template-columns: 1fr 1fr 1fr; } }

.finder__card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--sg-line); border-radius: var(--sg-r-sm); background: var(--sg-paper);
}
.finder__card img {
  width: 100%; height: 150px; object-fit: contain;
  background: var(--sg-shell); border-bottom: 1px solid var(--sg-line); padding: 12px;
}
.finder__card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.finder__card h3 { font-size: 15.5px; margin: 0 0 10px; }

.finder__spec { margin: 0 0 11px; font-size: 13px; }
.finder__spec div { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--sg-line); }
.finder__spec div:last-child { border-bottom: 0; }
.finder__spec dt { color: var(--sg-muted); flex: 0 0 42%; }
.finder__spec dd { margin: 0; color: var(--sg-midnight); font-weight: 600; }

.finder__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.finder__tags span {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--sg-tint); color: var(--sg-navy);
}
.finder__ids {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px;
  font-family: var(--sg-mono); font-size: 11.5px; color: var(--sg-muted);
}
.finder__ids b { color: var(--sg-midnight); font-weight: 700; }
.finder__card a { margin-top: auto; font-weight: 700; font-size: 13.5px; }
.finder__guide { margin-bottom: 16px; }
.finder__empty {
  padding: 22px; text-align: center; color: var(--sg-muted);
  background: var(--sg-shell); border-radius: var(--sg-r-sm);
}
