/* recruit/steps — the process line: numbered columns on a rule with square markers. */
.rc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: process; }
.rc-steps__item { position: relative; min-width: 0; padding-top: 24px; border-top: 1px solid var(--rc-line); counter-increment: process; }
.rc-steps__item::before { content: counter(process, decimal-leading-zero); display: block; margin-bottom: 32px; font: 500 24px/1 var(--rc-font-mono); color: var(--rc-accent); }
.rc-steps__item::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--rc-accent); }
.rc-steps__item h3 { font-size: 18px; }
.rc-steps__item p { margin-top: 16px; font-size: 15px; line-height: 1.7; }
.rc-section--steps .rc-photo { min-height: 0; aspect-ratio: 5 / 2; margin-top: 56px; }
@media (max-width: 1023px) {
  .rc-steps { grid-template-columns: 1fr; gap: 0; }
  .rc-steps__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding-block: 24px; }
  .rc-steps__item::before { grid-row: span 2; margin: 0; padding-top: 4px; font-size: 20px; }
  .rc-steps__item::after { display: none; }
  .rc-steps__item p { grid-column: 2; margin-top: 4px; }
}
@media (max-width: 767px) {
  .rc-section--steps .rc-photo { aspect-ratio: 4 / 3; margin-top: 40px; }
}

/* ---------- Shared parts of the a3 layouts (flow, rail, list) ---------- */
.rc-steps__kicker { display: block; font: 12px/1.6 var(--rc-font-mono); letter-spacing: .04em; color: var(--rc-accent); }
.rc-steps__foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; }
.rc-steps__foot p { max-width: 760px; }
.rc-steps__foot .rc-button--text { flex: none; }

/* flow: columns joined by arrows (a3 home 04, sell-your-jobs hand-off, about process). */
.rc-steps.rc-steps--flow { grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 0; border-block: 1px solid var(--rc-line); }
.rc-steps--flow .rc-steps__item { display: block; padding: 30px; border-top: 0; border-right: 1px solid var(--rc-line); }
.rc-steps--flow .rc-steps__item:first-child { padding-left: 0; }
.rc-steps--flow .rc-steps__item:last-child { border-right: 0; }
.rc-steps--flow .rc-steps__item::before { content: none; }
.rc-steps--flow .rc-steps__item::after { content: none; }
.rc-steps--flow .rc-steps__item:not(:last-child)::after {
  content: "→"; display: block; top: 28px; right: -13px; left: auto; z-index: 1; width: auto; height: auto;
  padding: 0 6px; background: var(--rc-bg); color: var(--rc-accent); font: 22px/1 var(--rc-font-mono);
}
.rc-steps--flow .rc-steps__item h3 { margin: 16px 0 10px; font-size: 24px; }
.rc-steps--flow .rc-steps__item p { margin-top: 0; font-size: 15px; }

/* Split layouts: rail (heading + photo | rail) and list (list | aside). */
.rc-steps-split { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.rc-steps-split > * { min-width: 0; }
.rc-steps-split .rc-section__intro { margin-bottom: 0; }
.rc-section--steps .rc-steps-split .rc-photo { aspect-ratio: auto; height: 320px; margin-top: 28px; }

/* rail: vertical line with numbered dots (a3 how-it-works pipeline). */
.rc-steps.rc-steps--rail { display: block; }
.rc-steps--rail .rc-steps__item { display: block; margin-left: 16px; padding: 0 0 32px 52px; border-top: 0; border-left: 1px solid var(--rc-accent); }
.rc-steps--rail .rc-steps__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.rc-steps--rail .rc-steps__item::before {
  content: counter(process, decimal-leading-zero); position: absolute; top: 0; left: -17px; display: grid; place-items: center;
  width: 32px; height: 32px; margin: 0; padding: 0; border: 1px solid var(--rc-accent); border-radius: 50%;
  background: var(--rc-bg); color: var(--rc-accent); font: 12px/1 var(--rc-font-mono);
}
.rc-steps--rail .rc-steps__item::after { content: none; }
.rc-steps--rail .rc-steps__item h3 { margin-bottom: 12px; font-size: 24px; }
.rc-steps--rail .rc-steps__item p { max-width: 600px; margin-top: 0; font-size: 16px; }
.rc-steps--rail .rc-steps__kicker { margin-bottom: 8px; }

/* list: compact numbered lines beside a fit-check aside (a3 revenue-share join). */
.rc-steps-split--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-steps-split--list:not(:has(.rc-steps__aside)) { grid-template-columns: minmax(0, 1fr); }
.rc-steps.rc-steps--list { display: block; margin-top: 24px; }
.rc-steps--list .rc-steps__item { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 18px 0; border-top: 1px solid var(--rc-line); }
.rc-steps--list .rc-steps__item::before { content: counter(process, decimal-leading-zero); margin: 0; padding-top: 2px; font: 13px/1.7 var(--rc-font-mono); color: var(--rc-accent); }
.rc-steps--list .rc-steps__item::after { content: none; }
.rc-steps--list .rc-steps__item h3 { flex: 1; min-width: 0; font: 400 16px/1.7 var(--rc-font-body); letter-spacing: 0; color: var(--rc-text); }
.rc-steps--list .rc-steps__item p { flex-basis: 100%; margin: 0; padding-left: 40px; font-size: 15px; }
.rc-steps--list .rc-steps__kicker { flex-basis: 100%; padding-left: 40px; }
.rc-steps__aside { padding: 32px; background: var(--rc-surface); }
.rc-steps__aside-label { font: 12px/1.6 var(--rc-font-mono); letter-spacing: .04em; color: var(--rc-accent); }
.rc-steps__aside-title { margin: 16px 0; }
.rc-steps__checks { border-top: 1px solid var(--rc-line); }
.rc-steps__checks li { position: relative; padding: 20px 0 20px 32px; border-bottom: 1px solid var(--rc-line); }
.rc-steps__checks li::before { content: "✓"; position: absolute; left: 0; color: var(--rc-accent); }
.rc-steps__checks h4 { margin-bottom: 6px; font-size: 19px; line-height: 1.3; }
.rc-steps__checks p { font-size: 15px; }
.rc-steps__aside .rc-button--text { margin-top: 16px; }

@media (max-width: 1023px) {
  .rc-steps-split { grid-template-columns: 1fr; gap: 32px; }
  .rc-steps-split--list { grid-template-columns: 1fr; }
  .rc-steps--flow .rc-steps__item { padding: 24px; }
  .rc-steps--flow .rc-steps__item p { grid-column: auto; }
}
@media (max-width: 767px) {
  .rc-steps__foot { display: block; }
  .rc-steps__foot .rc-button--text { margin-top: 12px; }
  .rc-steps.rc-steps--flow { grid-template-columns: 1fr; grid-auto-flow: row; }
  .rc-steps--flow .rc-steps__item, .rc-steps--flow .rc-steps__item:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rc-line); }
  .rc-steps--flow .rc-steps__item:last-child { border-bottom: 0; }
  .rc-steps--flow .rc-steps__item:not(:last-child)::after { content: "↓"; top: auto; right: 20px; bottom: -11px; }
  .rc-steps--flow .rc-steps__item h3 { margin-top: 10px; font-size: 23px; }
  .rc-section--steps .rc-steps-split .rc-photo { height: 240px; }
  .rc-steps--rail .rc-steps__item { padding-left: 34px; }
  .rc-steps__aside { padding: 24px; }
}
