/* Home · Retouch on phones (≤ 600 px), layered on retouch/css/retouch.css (the new Retouch section: the "Retouching"
   title painted sharp by a brush, the lede, the photo + frame map demo and the 1-2-3 timeline).
   Option C "Three in a row" (picked 2026-11-16 from the proposals page, since deleted): the timeline turned sideways
   under the photo, three short columns, the rail filling left to right with the demo. The photo's bar (Photo | Frame
   Map, Undo, Replay) is gone on phones, so the photo and the steps fit one screen; the demo still plays on its own.
   Phone rules only, so the desktop section is untouched. "html body" wins over retouch.css. */

@media (max-width: 600px) {
  /* ---------- Opener: the desktop's title + lede, sized as the phone's Stacking and Editing openers. Gaps kept tight
     so title, photo and steps fit one screen between the top and bottom pills (2026-11-16). ---------- */
  html body .rtx .rtx-open { margin-bottom: var(--m-open-gap); }
  html body .rtx .rtx-word { font-size: 17.6vw; }     /* the widest "Retouching" that fits between the gutters */
  html body .rtx .rtx-lede { margin-top: 8px; font-size: 16px; }
  html body .rtx .rtx-lede span { display: block; }   /* "Something soft?" / "Paint it back from any frame." */
  html body .rtx .cx__more { margin-top: 28px; }

  /* ---------- No bar under the photo ---------- */
  html body .rtx .rd__bar { display: none; }

  /* ---------- The three steps in a row, right under the photo ---------- */
  html body .rtx .rde__side { max-width: none; margin-top: 14px; }
  html body .rtx .rde__steps { --node: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html body .rtx .rde__steps li,
  html body .rtx .rde__steps li:last-child { padding: calc(var(--node) + 10px) 0 0; }
  /* The rail from each node to the next one, across; the last one runs to the end of the row. */
  html body .rtx .rde__steps li::before, html body .rtx .rde__steps li::after,
  html body .rtx .rde__steps li:last-child::before, html body .rtx .rde__steps li:last-child::after {
    left: calc(var(--node) + 6px); right: -6px; top: calc(var(--node) / 2 - 1px); bottom: auto;
    width: auto; height: 2px;
  }
  html body .rtx .rde__steps li:last-child::before, html body .rtx .rde__steps li:last-child::after { right: 0; }
  html body .rtx .rde__steps li::after { transform: scaleX(var(--p, 0)); transform-origin: left; }
  html body .rtx .rde__node { font-size: 12px; }
  html body .rtx .rde__steps b { font-size: 16px; line-height: 20px; text-wrap: balance; }
  html body .rtx .rde__steps p { display: none; }     /* step titles only on phones (2026-11-16) */
}
