/* next-steps.css — the "What to do next" card (js/next-steps.js), shared by
   /health/ and the locked /keywords/ view. One owner for both pages — the
   same list must read the same everywhere. Tokens from main.css :root only;
   the measured badge mirrors the .gsc-badge "Verified" treatment, modelled
   is deliberately quieter, risk borrows the danger tone. */

.ns-card .card-sub { max-width: 720px; }

/* ── Carousel ──────────────────────────────────────────────────
   One ranked task per slide, next slide peeking so scrollability is
   self-evident. Native scroll + snap (touch, wheel, keyboard all work);
   the head's arrows page it. A right-edge fade stands in for the hidden
   scrollbar. */
.ns-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(520px, 82%);
  gap: 12px;
  padding: 4px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent);
}
.ns-track::-webkit-scrollbar { display: none; }
.ns-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.ns-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--wash-rgb), 0.03);
  box-shadow: inset 0 1px 0 var(--edge-hi);
  scroll-snap-align: start;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ns-slide.is-hiding { opacity: 0; transform: scale(0.96); }

/* Hide-this-task — quiet until hovered, always reachable. */
.ns-hide {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--muted-3);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.ns-hide:hover { color: var(--text); background: rgba(var(--wash-rgb), 0.06); }
.ns-hide:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Head chrome in the card header: counter + paging arrows. */
.ns-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.ns-count {
  margin-right: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.ns-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ns-arrow:hover:not([disabled]) { color: var(--text); border-color: rgba(var(--accent-rgb), 0.4); }
.ns-arrow[disabled] { opacity: 0.35; cursor: default; }
.ns-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ns-nav.is-idle .ns-arrow { display: none; } /* everything fits — no paging */

.ns-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 20px; /* clear the hide button */
}
.ns-rank {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ns-headline {
  margin-top: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.4;
}

/* "N hidden · Restore" — under the track, above the honest footer. */
.ns-hidden-line {
  margin: 0 20px 6px;
  color: var(--muted-2);
  font-size: 12px;
}
.ns-restore {
  padding: 0;
  background: none;
  border: none;
  color: var(--accent-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ns-restore:hover { text-decoration: underline; text-underline-offset: 3px; }
.ns-restore:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ns-slide { transition: none; }
}
.ns-meta {
  color: var(--muted-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Which claim is each number? Measured = the owner's own Google data
   (same visual family as the Verified badge); modelled = an estimate,
   styled a step quieter; risk = no click figure at all, on purpose. */
.ns-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--r-chip);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ns-badge--measured {
  color: var(--accent-text);
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.ns-badge--modeled {
  color: var(--muted);
  background: rgba(var(--wash-rgb), 0.05);
  border: 1px solid var(--line-strong);
}
.ns-badge--risk {
  color: var(--danger);
  background: rgba(255, 122, 122, 0.08);
  border: 1px solid rgba(255, 122, 122, 0.25);
}

.ns-evidence {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.ns-action-text {
  margin-top: 4px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}

.ns-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  /* auto pins the row to the slide's bottom edge, so short and tall
     slides in one view keep their buttons on a shared baseline. */
  margin-top: auto;
  padding-top: 12px;
}
.ns-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.ns-ask:hover { border-color: rgba(var(--accent-rgb), 0.4); color: var(--accent-bright); }
.ns-link {
  color: var(--accent-bright);
  font-size: 12px;
  text-decoration: none;
}
.ns-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── The honest footer ─────────────────────────────────────────── */
.ns-connect,
.ns-empty,
.ns-missing {
  margin: 12px 20px 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.ns-connect a { color: var(--accent-bright); }
.ns-missing {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ns-missing-lead { color: var(--muted-2); }
.ns-missing ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.ns-missing li { margin-top: 3px; color: var(--muted-2); font-size: 12px; }
.ns-missing a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ns-missing a:hover { color: var(--text); }

/* The money figure. Visually distinct from the basis badges rather than a
   third one, because it is a different KIND of claim: the badges say how we
   know the click number, this says what that number is worth. It carries its
   own two-word provenance line — "est. × measured value" — because a hybrid
   figure wearing a single "Measured" pill would let the measured half vouch
   for the modelled half. */
.ns-money {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 1px 8px;
  border-radius: var(--r-chip);
  font-size: 11px;
  font-weight: 650;
  color: var(--accent-text);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
  cursor: help;
}
.ns-money-basis {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  text-transform: none;
}
