/* Home · Export on phones (≤ 600 px), layered on the export/css sheets of the final Export section
   (export/home-section.html: "Exporting" + "RAW in, DNG out. Or any format you need.", 01 format, 02 colour space,
   the two gradient strips, the gamut diagram). Script: mobile/js/export-mobile.js.
   From proposal A "Diagram first" (2026-11-16), reworked: the horseshoe under the title; then ONE row with 01 Format |
   02 Colour space, split by a hairline, each a sideways scroll row of chips with faded edges; then the two strips at
   half width side by side; then the app's line. Phone rules only, so the desktop section is untouched. */

.xm-short { display: none; }

@media (max-width: 600px) {
  /* ---------- Opener, as the phone's Retouching ---------- */
  html body .gm--home .exx-open { margin-bottom: 28px; }
  html body .gm--home .exx-word { font-size: 17.6vw; }
  html body .gm--home .exx-lede { margin-top: 12px; font-size: 16px; }
  html body .gm--home .exx-lede span { display: block; }
  html body .gm--home .cx__more { margin-top: 28px; }

  /* ---------- The diagram first ---------- */
  html body .gm--home .gm-block { display: flex; flex-direction: column; gap: 0; }
  html body .gm--home .gm-visual { order: -1; margin-bottom: 28px; }
  html body .gm--home .fx-chart { width: 250px; margin-top: 40px; }
  html body .gm--home .gm-caption { display: none; }

  /* ---------- 01 Format | 02 Colour space, one row ---------- */
  html body .gm--home .gm-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html body .gm--home .gm-controls > :not(.gm-step) { grid-column: 1 / -1; }
  html body .gm--home .gm-step { min-width: 0; margin: 0; padding-right: 12px; }
  html body .gm--home .gm-step + .gm-step { margin: 0; padding: 0 0 0 12px; border-left: 1px solid #ffffff17; }
  html body .gm--home .gm-sub { display: none; }
  html body .gm--home .gm-step h3 { margin: 0 0 10px; gap: 8px; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
  html body .gm--home .gm-step h3 .fx-step__n { width: 24px; border-width: 1.3px; font-size: 10.5px; }
  html body .gm--home .xm-long { display: none; }
  html body .gm--home .xm-short { display: inline; }

  /* Each choice: a row of chips that scrolls sideways; an edge fades only where there is more to scroll to
     (export-mobile.js sets --fl / --fr). The 3 px padding keeps the picked chip's ring inside the clip. */
  html body .gm--home .gm-fmts,
  html body .gm--home .gm-spaces {
    --fl: 0px; --fr: 0px;
    position: relative;
    display: flex; gap: 6px;
    margin: -3px 0; padding: 3px 2px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  }
  html body .gm--home .gm-fmts::-webkit-scrollbar,
  html body .gm--home .gm-spaces::-webkit-scrollbar { display: none; }
  html body .gm--home .gm-fmt,
  html body .gm--home .gm-space { flex: none; min-height: 46px; border-radius: 12px; }
  html body .gm--home .gm-fmt { min-width: 58px; padding: 7px 10px; gap: 1px; align-content: center; }
  html body .gm--home .gm-fmt b { font-size: 14.5px; }
  html body .gm--home .gm-fmt span { font-size: 10px; color: var(--muted); }
  html body .gm--home .gm-fmt em { display: none; }
  html body .gm--home .gm-space { display: grid; place-items: center; padding: 0 12px; font-size: 13.5px; text-align: center; white-space: nowrap; }

  /* ---------- The two strips, half width each, side by side ---------- */
  html body .gm--home .gm-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  html body .gm--home .gm-strip { align-content: start; gap: 6px; }
  html body .gm--home .gm-strip > span { display: contents; }                 /* label, strip, then the count under it */
  html body .gm--home .gm-strip b { order: 0; font-size: 12.5px; white-space: nowrap; }
  html body .gm--home .gm-strip canvas { order: 1; height: 22px; border-radius: 6px; }
  html body .gm--home .gm-strip em { order: 2; margin-top: -1px; font-size: 12px; color: var(--muted); text-align: right; }
  html body .gm--home .sf-eq .sf-n,
  html body .gm--home .sf-eq i { display: none; }                            /* "01 + 02 →": the steps above carry the numbers */
  html body .gm--home .gm-line { min-height: 2.8em; margin-top: 10px; font-size: 14px; }
}
