/* Step nav (Kirk, Nov 29): the screen-to-screen arrow links sit at the bottom of the page as buttons.
   Same tappable colour and pill pattern as "Learn more" / "Start Founder Plan" (#4f46e5, hover #0071e3),
   44px touch target. Labels, arrows, links and order are unchanged; position and styling only.
   Selectors repeat .pf-step-nav to outrank the older per-page wayfinding colours (climb-v8, contrast-fix). */
body.pf-horse .pf-step-nav-wrap { box-sizing:border-box; width:100%; margin:48px 0 0; padding:28px 0 8px; border-top:1px solid var(--hair, #3c3833); }
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav {
  display:flex !important; flex-direction:row !important; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:12px !important; margin:0 !important; }
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a {
  display:inline-flex !important; flex-direction:row !important; align-items:center; justify-content:center; gap:8px;
  box-sizing:border-box; min-height:44px; min-width:44px; padding:0 22px; border-radius:980px;
  background:#4f46e5; border:1px solid #4f46e5; color:#fff !important;
  font-size:15px !important; font-weight:500; line-height:1; text-decoration:none; white-space:nowrap;
  transition:background .15s ease, border-color .15s ease; }
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a *,
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a::before,
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a:hover *,
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a:hover::before { color:#fff !important; font-size:15px !important; line-height:1; }
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a:hover { background:#0071e3; border-color:#0071e3; }
body.pf-horse .pf-step-nav-wrap .step-arrows.pf-step-nav.pf-step-nav a:focus-visible { outline:2px solid #8b84f5; outline-offset:3px; }

/* Climb: the page is a grid of body children, so give the step nav its own full-width bottom row. */
@media (min-width: 900px) {
  body.pf-horse.pf-climb {
    grid-template-rows:auto minmax(16px, 1fr) auto auto auto auto minmax(16px, 1fr) auto !important;
    grid-template-areas:"nav nav" ". ." "crumb race" "copy race" "card race" "card rail" ". ." "stepnav stepnav" !important; }
  body.pf-horse.pf-climb > .pf-step-nav-wrap { grid-area:stepnav; margin:0 !important; }
}
@media (max-width: 899px) {
  body.pf-horse.pf-climb > .pf-step-nav-wrap { order:7; width:calc(100% - 40px) !important; margin:40px 20px 0 !important; }
}

/* Find and Pitch, desktop (Kirk, Nov 29): only the button row and its divider move, to the same height
   as Climb's row on the first screen. The page text stays exactly where it was (normal flow, unchanged
   gap under the menu). Climb's row ends clamp(32px, 4svh, 56px) above the bottom of the window; its row
   box is 81px tall, so the same formula is used here. Phones keep the normal flow. */
@media (min-width: 900px) {
  body.pf-horse.pf-find .page > .pf-step-nav-wrap, body.pf-horse.pf-pitch .page > .pf-step-nav-wrap {
    position:absolute; left:56px; right:56px; width:auto; margin:0;
    top:calc(100svh - clamp(32px, 4svh, 56px) - 81px); }
  /* keep the row's old in-flow space (48px gap + 81px row) so the text and cards do not move */
  body.pf-horse.pf-find .page, body.pf-horse.pf-pitch .page { padding-bottom:calc(36px + 48px + 81px); }
}

/* Find and Pitch, desktop (Kirk, Nov 29): the "01 · Find" / "02 · Pitch" line and everything under it
   starts at the same height as Climb's "03 · Climb" line. Climb's start follows the window height
   (about 35% of it, minus 126px), so the same formula sets the gap under the menu here, and the
   text is top-aligned in its column instead of centred. No copy or font sizes change. */
@media (min-width: 900px) {
  body.pf-horse.pf-find .page > .nav + *, body.pf-horse.pf-pitch .page > .nav + * { margin-top:max(16px, calc(35svh - 210px)) !important; }
  body.pf-horse.pf-find .stage > .copy, body.pf-horse.pf-pitch .stage > .copy { justify-content:flex-start !important; }
}
