/* The "Next step" block on the static pages (nextStepBlock() in
   scripts/site-chrome.mjs). Built on the shared tokens in /blog/tokens.css, so
   it follows the page's light/dark theme. Mirrors the app's NavGrid: one
   bordered block divided by hairlines, a mono meta line, a title, an arrow CTA. */
.next-step { margin-top: 18px; }
.next-step .ns-kicker { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-600); }
.next-step .ns-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.12; margin: 4px 0 12px; }
.next-step .ns-grid { display: flex; flex-direction: column; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.next-step .ns-cell { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: var(--color-text); text-decoration: none; border-top: 1px solid var(--color-line); transition: background .12s ease; }
.next-step .ns-cell:first-child { border-top: 0; }
.next-step .ns-cell:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.next-step .ns-meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-600); }
.next-step .ns-pro { border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 9.5px; line-height: 15px; color: var(--color-text); }
.next-step .ns-t { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.next-step .ns-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--color-neutral-700); margin-top: 2px; }
.next-step .ns-cell:hover .ns-cta { color: var(--color-text); }
.next-step .ns-cta svg { width: 13px; height: 13px; }

/* Wide layout: the same cells in a row, for a full-width placement. */
.next-step.ns-wide .ns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); flex-direction: row; }
.next-step.ns-wide .ns-cell { border-top: 0; border-left: 1px solid var(--color-line); padding: 18px 20px; }
.next-step.ns-wide .ns-cell:first-child { border-left: 0; }

/* Email capture */
.ns-email { margin-top: 14px; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 14px 16px; background: var(--color-neutral-100); }
.ns-email[hidden] { display: none; }
.ns-email label { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.ns-email .ns-email-row { display: flex; gap: 6px; }
.ns-email input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--color-divider); border-radius: 8px; background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 13px; }
.ns-email input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.ns-email button { height: 38px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.ns-email button:disabled { opacity: .6; cursor: default; }
.ns-email .ns-email-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--color-neutral-600); }
.ns-email .ns-email-status { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--color-text); }
.ns-email .ns-email-status.is-error { color: var(--color-danger); }
.ns-email.is-done .ns-email-note { display: none; }

@media (max-width: 900px) {
  .next-step .ns-cell { padding: 14px 16px; min-height: 44px; }
  .ns-email button, .ns-email input { height: 44px; }
}
