/**
 * File: next-steps.css
 * Purpose: The "Where to next?" hand-off block (app/Views/public/partials/
 *          next_steps.php) at the end of every guide, estimator page, the
 *          guides hub and the FAQ. Compact cards — a round icon beside the
 *          tag, title and a two-line description — four across on a desktop
 *          column, two on a tablet-width block, one on a phone (the block is a
 *          size container, so the count follows the block's own width). Reads
 *          the iSpec tokens declared in site-shell.css :root (--teal, --ink,
 *          --muted, --line). Loaded per view (guides/show.php, guides/index.php,
 *          faq.php, estimator/shell.php), after site.css.
 * Shared: byte-identical on the three ispecllc.com cost subdomain trees.
 * Author: iSpec LLC
 * Created: 2026-10-09
 * Last Modified: 2026-10-09 — compact one-row cards (owner: "smaller cards so on desktop
 *          it's 1 row, maybe 200 px"); the landing-style image band is gone
 * Last Modified: 2026-10-09 — new file ("Where to next?" hand-off block)
 */

/* ── BLOCK FRAME ─────────────────────────────────────── */
.next-steps {
  container: next-steps / inline-size;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line);
}
.next-steps-title {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

/* ── GRID: 4 across → 2 → 1, by the block's width ─────── */
.next-steps-grid > .next-step-col {
  flex: 0 0 auto;
  width: 25%;
}
@container next-steps (max-width: 699.98px) {
  .next-steps-grid > .next-step-col { width: 50%; }
}
@container next-steps (max-width: 399.98px) {
  .next-steps-grid > .next-step-col { width: 100%; }
}

/* ── CARD ────────────────────────────────────────────── */
.next-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  height: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.next-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 20, 19, 0.1);
  color: inherit;
  text-decoration: none;
}
.next-step-icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--teal);
  background: rgba(87, 193, 182, 0.14);
  background: color-mix(in srgb, var(--teal) 14%, white);
}
.next-step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.next-step-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.next-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.next-step-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── PRIMARY CARD ────────────────────────────────────── */
.next-step-card[data-primary="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.next-step-card[data-primary="true"]:hover {
  box-shadow: 0 0 0 1px var(--teal), 0 8px 24px rgba(10, 20, 19, 0.1);
}
