/* ==========================================================================
   Go-live section (#golive, the 10 day timeline) on tablets and phones.
   Load AFTER the design-system stylesheets. Media queries only; every rule
   is scoped to #golive, so the desktop layout is untouched.
   Logical properties throughout, so the same rules hold on an RTL page.
   ========================================================================== */

/* Tablet and small laptop: the auto-fit grid lands on 3 + 1 (one orphan card)
   between roughly 870px and 1184px. Pin it to a clean 2 x 2 instead. */
@media (max-width: 1184px) {
  #golive .days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: clamp(28px, 4vw, 44px);
  }
  #golive .day { min-width: 0; }
  /* body copy was 14px: under the 15px reading floor */
  #golive .day p { font-size: 15px; line-height: 1.6; }
  #golive .day__tag { font-size: 13px; line-height: 1.3; padding: 8px 13px; }
  /* the lime progress stroke is pinned with left:0; anchor it to the reading side */
  #golive .day::after { left: auto; right: auto; inset-inline-start: 0; }
}

/* Phone: one column, each day becomes a compact row with its drawing in a
   fixed rail on the reading side, so four steps no longer take four screens. */
@media (max-width: 640px) {
  #golive .sect-head { max-width: 100%; }
  #golive .sect-head h2 { max-width: 100%; text-wrap: balance; }
  #golive .sect-head .lead { max-width: 100%; font-size: 17px; line-height: 1.5; }
  #golive .sect-body { margin-top: 36px; }

  #golive .days { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  #golive .day {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding-top: 24px;
    text-align: start;
  }
  #golive .day__art {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 68px;
    height: auto;
    max-width: 100%;
    margin: 0;
  }
  #golive .day > :not(.day__art) { grid-column: 2; min-width: 0; }
  #golive .day__d { font-size: 12px; line-height: 1.3; padding-top: 2px; }
  #golive .day h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.25; }
  #golive .day__tag { justify-self: start; margin-top: 12px; }
}

/* Very narrow phones: give the copy the width back. */
@media (max-width: 360px) {
  #golive .day { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  #golive .day__art { width: 52px; }
}
