/* /lead-services/how-it-works/ (layout d). Page-only pieces. */

/* steps: timeline with a photo beside each step */
.hw-step { display: grid; gap: var(--s4); }
.hw-step__img { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 3 / 2; background: var(--em-tint); }
.hw-step__img img { width: 100%; height: 100%; object-fit: cover; }
.hw-step__cta { font-weight: 600; }
.hw-steps > li { padding-bottom: var(--s7); }
.hw-src { margin-top: var(--s6); max-width: 70ch; }
@media (min-width: 768px) {
  .hw-step { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s6); align-items: start; }
}
@media (min-width: 1100px) {
  /* desktop: the steps become a numbered grid of cards, photo on top, so the sequence fits the page width */
  .hw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
  .hw-steps > li { padding: 0; }
  .hw-steps > li::after { display: none; }
  .hw-steps > li::before { top: -14px; left: -10px; z-index: 2; width: 48px; height: 48px; box-shadow: 0 0 0 5px #fff, var(--sh-2); }
  .hw-step { grid-template-columns: 1fr; gap: 18px; height: 100%; align-content: start; }
  .hw-step__img { order: -1; aspect-ratio: 16 / 10; }
  .hw-step > div p { max-width: none; }
}

/* prep: intro beside the printable sheet */
.hw-prep { display: grid; gap: var(--s6); align-items: start; }
.hw-prep__intro > * + * { margin-top: var(--s4); }
.hw-prep__intro .lede { color: var(--muted); }
@media (min-width: 1100px) { .hw-prep { grid-template-columns: 5fr 7fr; gap: var(--s8); } .hw-prep__intro { position: sticky; top: calc(var(--hdr-h) + 32px); } }

/* call band spacing */
.hw-band { padding-block: 0 var(--section); }

/* tenant notice: a paper letter */
.hw-notice { display: grid; gap: var(--s6); align-items: start; }
.hw-notice__aside > * + * { margin-top: var(--s4); }
.hw-notice__aside .btn { margin-top: var(--s5); }
.hw-letter { padding: var(--s6) var(--s5); border-radius: 4px; max-width: 640px; }
.hw-letter > * + * { margin-top: var(--s3); }
.hw-letter__from { font-size: .85rem; color: var(--muted); text-align: right; }
.hw-letter h3 { font-size: 1.35rem; margin-top: var(--s4); }
.hw-letter ul { display: grid; gap: 4px; padding-left: 1.2em; list-style: disc; }
.hw-letter ul li::marker { color: var(--gold-500); }
@media (min-width: 768px) { .hw-letter { padding: var(--s7); } }
@media (min-width: 1100px) { .hw-notice { grid-template-columns: 4fr 7fr; gap: var(--s8); } .hw-letter { transform: rotate(-.6deg); } }


/* phones (shared tokens only). Steps fold through the shared numbered accordion; the pass/fail table uses the shared column switch. */
@media (max-width: 767px) {

  /* steps: text and photo use the full width under the title row */
  .hw-steps > li { padding-bottom: 0; }
  .hw-step { gap: 10px; }
  .hw-steps > li.is-open .hw-step, .hw-steps:not(.fold-on) .hw-step { padding-bottom: 14px; }
  .hw-step .fold__body + .fold__body { margin-top: 8px; }
  .hw-step .tl__meta { font-size: var(--fs-meta); }
  .hw-step__img { aspect-ratio: var(--ar-media); }
  .hw-src { margin-top: var(--gap-head); }

  .hw-prep { gap: var(--gap-block); }

  /* tenant notice: Print sits right after the first paragraph */
  .hw-notice { gap: var(--gap-block); }
  .hw-notice__aside { display: flex; flex-direction: column; align-items: flex-start; }
  .hw-notice__aside > * { order: 2; }
  .hw-notice__aside > h2, .hw-notice__aside > h2 + p { order: 0; }
  .hw-notice__aside > .btn { order: 1; margin-top: 12px; }
  .hw-letter { padding: 20px var(--card-pad-sm); font-size: var(--fs-body-sm); line-height: 1.5; }
  .hw-letter > * + * { margin-top: 10px; }
  .hw-letter__from { font-size: var(--fs-meta); }
  .hw-letter h3 { font-size: var(--fs-h3); margin-top: 10px; }
}
