/* Where the gradient strips go (export/gradient-strips-placement.html). On top of formats.css + gamut-merged.css.
   Both options: less room under the title, the diagram a bit smaller, the dots caption under the diagram. */

.gm--v1, .gm--v2 { position: relative; }
.sp-tag { position: absolute; top: 22px; left: 28px; z-index: 3; margin: 0; }
.gm--v1 .exx-open, .gm--v2 .exx-open { margin-bottom: clamp(28px, 3vw, 48px); }
.gm--v1 .fx-chart, .gm--v2 .fx-chart { width: min(100%, 380px); }
.gm--v1 .gm-caption, .gm--v2 .gm-caption { width: min(100%, 400px); margin-top: 12px; font-size: 13.5px; }

/* ===================== Option 1 · the strips close the left column ===================== */
.gm--v1 .gm-step h3 { font-size: clamp(22px, 2vw, 28px); gap: 12px; }
.gm--v1 .gm-step h3 .fx-step__n { width: 34px; font-size: 13px; }
.gm--v1 .gm-sub { margin: 4px 0 12px 46px; font-size: 14px; }
.gm--v1 .gm-step + .gm-step { margin-top: 22px; }
.gm--v1 .gm-fmt { padding: 9px 4px; gap: 2px; }
.gm--v1 .gm-fmt b { font-size: clamp(15px, 1.25vw, 18px); }
.gm--v1 .gm-spaces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gm--v1 .gm-space { padding: 11px 6px; font-size: 14.5px; text-align: center; white-space: nowrap; }

.gm-result { display: grid; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #ffffff17; }
.gm-result__h { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.gm--v1 .gm-strip canvas { height: 26px; border-radius: 7px; }
.gm--v1 .gm-line { min-height: 0; margin-top: 12px; font-size: 14px; }

/* ===================== Option 2 · one row under both columns ===================== */
.gm-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; align-items: end;
  max-width: 1180px; margin: 28px auto 0; padding-top: 22px; border-top: 1px solid #ffffff17; font-family: var(--display);
}
.gm-row .gm-strip canvas { height: 28px; border-radius: 8px; }
.gm-row .fx-file { margin: 0; padding: 10px 18px; }
.gm--v2 .gm-line { min-height: 0; }

@media (max-width: 1059px) {
  .gm-row { grid-template-columns: minmax(0, 1fr); }
  .gm-row .fx-file { justify-self: center; }
}

/* Option 1: the file is part of "What you get", left-aligned under the strips */
.gm-result .fx-file { margin: 6px 0 0; padding: 10px 18px; justify-content: flex-start; }

/* The picked one-screen page (export/one-screen/section.html). The diagram stays at Option 1's 380px (1.2× was tried, dropped). */

/* The horseshoe was mirrored for a while (tall side right, rising beside the title); un-mirrored again 2026-11-15:
   its tall green side faces the left half, closer to the steps. */
@media (min-width: 1060px) {
  /* One grid for both columns (their wrappers drop out), so the dots caption shares a row with the line under
     the strips: both start on the same line. Rows: step 01 · step 02 · What you get · the two lines.
     The two columns split the screen in half (the block spans the sheet, centred on the screen), and each half's
     content is centred on its own middle: the left column on 25vw, the horseshoe and its caption on 75vw. */
  .gm--one .gm-block {
    --gm-left: min(464px, 36vw);                  /* the left column's width */
    max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0;
    grid-template-rows: auto auto auto auto; row-gap: 0;
  }
  .gm--one .gm-controls, .gm--one .gm-visual { display: contents; }
  /* right edge on the screen's middle, minus a quarter screen, minus half its width: its centre lands on 25vw */
  .gm--one .gm-controls > * {
    grid-column: 1; justify-self: end; box-sizing: border-box;
    width: var(--gm-left); margin-right: calc(25vw - var(--gm-left) / 2);
  }
  .gm--one .gm-line { grid-row: 4; align-self: start; }
  /* The chart starts on the screen's middle; 176px = where the drawn horseshoe's centre sits in the 380px box
     (measured: 380 − 204 mirrored), so the shape itself (not its box) lands on 75vw.
     align-self end: it sits right on its caption; the negative margin lifts it beside the title without growing the rows. */
  .gm--one .fx-chart {
    grid-column: 2; grid-row: 1 / 4; align-self: end; justify-self: start;
    margin-top: clamp(-120px, -7vw, -64px); margin-left: calc(25vw - 176px);
  }
  .gm--one .gm-caption {
    grid-column: 2; grid-row: 4; align-self: start; justify-self: start;
    width: 400px; margin: 12px 0 0 calc(25vw - 200px); font-size: 14px;
  }
}
