/* ── Shared step-page top/bottom navigation bar ──────────────────────────
 * Replaces inline `<nav style="...">` blocks across step1–step6 templates
 * so we can apply consistent mobile rules in one place.
 *
 * Desktop: 3-column flex (← Prev | STEP X OF 6 · Title | Next →) — matches
 * the prior inline style. Mobile (< 600px): stacks to two rows so the badge
 * stays readable and prev/next become full-width 44px tap targets.
 *
 * Also exported: .step-bottombar (same shape, used at the bottom of the page
 * with a "Dashboard" middle link instead of the step badge).
 */

.step-topbar,
.step-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 0.75rem 1.25rem;
    font-family: 'DM Sans', sans-serif;
    gap: 0.75rem;
}
.step-topbar    { margin-bottom: 1.5rem; }
.step-bottombar { margin-top: 2rem; }

.step-topbar__prev,
.step-topbar__next,
.step-bottombar__prev,
.step-bottombar__next,
.step-bottombar__home {
    color: #3da5e0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    /* 44 × 44 minimum tap target per Apple HIG / WCAG 2.5.5 */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.5rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.step-topbar__prev:hover,
.step-topbar__next:hover,
.step-bottombar__prev:hover,
.step-bottombar__next:hover,
.step-bottombar__home:hover {
    background: rgba(61, 165, 224, 0.10);
    color: #6ec8f3;
}
.step-bottombar__home {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.step-topbar__badge {
    color: #c9973a;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    text-align: center;
    /* keep the badge from being squeezed when the screen is narrow */
    flex: 1 1 auto;
    min-width: 0;
    /* Wrap gracefully on very narrow viewports rather than cropping */
    overflow-wrap: anywhere;
}

/* ── Mobile: stack into two rows so the badge keeps its full width ─────── */
@media (max-width: 600px) {
    .step-topbar,
    .step-bottombar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "badge badge"
            "prev  next";
        gap: 0.5rem 0.75rem;
        padding: 0.6rem 0.85rem;
    }
    .step-topbar__badge   { grid-area: badge; font-size: 0.92rem; }
    .step-topbar__prev,
    .step-bottombar__prev { grid-area: prev; justify-content: flex-start; }
    .step-topbar__next,
    .step-bottombar__next { grid-area: next; justify-content: flex-end; }
    .step-bottombar__home {
        grid-area: badge;
        justify-content: center;
        font-size: 0.85rem;
    }
}
