/* Contourly — How to play (2b), page-like. Mobile: single column of the three
   rule cards + the scoring-marks legend + CTA. Desktop: the rules become a
   3-across card row and the page carries the global brand chrome. Owned by Wave-2.
   Root = .ct-screen--page → children are centred in a ≤1200px column by app.css;
   the body narrows that to a comfortable reading width below. */

.ct-howto__body {
  /* ties .ct-screen--page > * (0,1,0) and wins on source order → narrows column */
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 40px;
}

.ct-howto__title {
  font: 700 27px/1.05 var(--ct-font);
  letter-spacing: -.02em;
  margin: 8px 0 4px;
}

.ct-howto__steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* scoring-marks card */
.ct-howto__marks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
}
.ct-howto__marks-legend { justify-content: flex-start; margin-top: 8px; }
.ct-howto__marks-note { white-space: nowrap; }

.ct-howto__foot {
  margin-top: 8px;
  padding: 0;
}
.ct-howto__foot .ct-btn { width: 100%; }

/* ========================================================================= */
/* TABLET ≥768: rules as a 3-across row, roomier type, CTA becomes a pill.     */
/* ========================================================================= */
@media (min-width: 768px) {
  .ct-howto__body { gap: 20px; padding: 18px 32px 52px; }
  .ct-howto__title { font-size: 36px; }

  .ct-howto__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  /* foundation .ct-howto__step is a centred row; go vertical inside each card */
  .ct-howto__step {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 22px 20px;
  }
  .ct-howto__step-title { font-size: 16.5px; }
  .ct-howto__step-sub { font-size: 13.5px; }

  .ct-howto__foot { display: flex; justify-content: flex-start; margin-top: 4px; }
  .ct-howto__foot .ct-btn { width: auto; min-width: 240px; }
}

@media (min-width: 1024px) {
  .ct-howto__title { font-size: 42px; }
  .ct-howto__steps { gap: 20px; }
}
