/* styles/sections/closing-break.css
 * The closing heading's line break for the column, lines and stacked closings (closing.modifiers
 * ['column'], ['lines'], ['stacked']), BRI-7867. The D and W frames break the heading where its
 * "\n" puts it; the M frames draw none, so below 900 the <br> drops. Every page with one of these
 * closings links this file, except Coding with Agents, whose M frame (ITpMT) keeps the break. */
@layer sections {
  @media (width < 900px) {
    :is(.closing-cta--column, .closing-cta--lines, .closing-cta--stacked) .closing-cta__heading br {
      display: none;
    }

    /* The lines and stacked closings wrap the heading greedily; the column closing keeps the
       recipe's balanced wrap */
    :is(.closing-cta--lines, .closing-cta--stacked) .closing-cta__heading {
      text-wrap: wrap;
    }
  }
}
