/**
 * .features-block — a 3-column highlights row with a brand-blue Material Icons
 * checkmark before each item. Config-bound class (Drupal tags the in-columns /
 * featured paragraph pairing with `.features-block`), so there is no twig mount
 * point — this stays a library, attached globally via the theme .info.yml.
 * Most visible as the highlights row under the hero on service-bundle pages.
 *
 * Relocated from css/features-block.css; tokenized (#242637 → --color-slate-700,
 * #009fed → --color-brand; #efefef has no exact token, kept literal). Dropped
 * the vestigial float-clearfix (the region is a flex container) and the
 * `width: 2rem !important` (no competing rule on the pseudo-element). Target-
 * group pages layer their own overrides via `.term-vocabulary-id-target_groups
 * .features-block` in key-target.css — higher specificity, left intact.
 *
 * Unlayered — targets Drupal layout/paragraph descendants without utility classes.
 */
.features-block {
  margin-bottom: 0;
  padding: 2rem 0;
  background-color: #efefef;

  > .layout__region {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;

    @media (min-width: 601px)  { width: 85%; }
    @media (min-width: 993px)  { width: 80%; }
    @media (min-width: 1201px) { width: 70%; }
  }

  /* Section title — dead on service pages but used on target-group pages
     (where key-target.css overrides this base); kept as the base style. */
  .paragraph--title {
    color: var(--color-slate-700);
    text-align: center;
  }

  .field {
    margin-bottom: 0;
  }

  .field--items {
    display: flex;
    flex: 1 0 100%;
    flex-direction: row;
    flex-wrap: wrap;

    > .field--item {
      box-sizing: border-box;
      flex: 0 0 100%;
      max-width: 100%;
      margin-bottom: 2.4rem;
      padding-right: 1.2rem;
      padding-left: 1.2rem;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;

      @media (min-width: 993px) {
        flex: 0 0 33.3333333333%;
        max-width: 33.3333333333%;
        margin-bottom: 0;
      }

      &:last-child {
        margin-bottom: 0;
      }

      /* Brand-blue checkmark glyph (Material Icons "check") before each item. */
      &::before {
        -moz-font-feature-settings: "liga";
        -moz-osx-font-smoothing: grayscale;
        display: flex;
        flex: 0 0 auto;
        align-items: flex-start;
        justify-content: center;
        width: 2rem;
        margin-right: 1.2rem;
        overflow: hidden;
        font-style: normal;
        font-weight: normal;
        font-size: 2em;
        line-height: 1;
        font-family: "Material Icons";
        letter-spacing: normal;
        direction: ltr;
        text-transform: none;
        white-space: nowrap;
        content: "check";
        color: var(--color-brand);
      }

      .paragraph--type-content-section,
      .paragraph {
        flex: 1 1 auto;

        /* Keep the title compact, but let headings + body paragraphs keep their
           natural bottom margin (matches prod — the section-body items breathe;
           the legacy `margin:0` override cramped them on the service pages). */
        h4,
        h2 {
          font-size: 1rem;
          font-weight: 400;
          line-height: 1;
        }
      }
    }
  }
}
