/* =========================================================================
   BLOCK 2C LABEL TIT + TEXT            el_id and class: ht--block-2c-label-tit-text
   BLOCK 2C LABEL TIT + TEXT (DARK)     el_id ht--block-2c-label-tit-text-dark,
                                        classes ht--block-2c-label-tit-text
                                        + ht--block-2c-label-tit-text--dark
   Block with the same grid as the topics: inner Row 1/3 + 2/3 (class
   ht--internal-row), rendered as UIKit col-4 + col-8 (30 px gutter).
     column 1: label (Text, DIV tag, class ht--label) + H2
     column 2: Text block with the copy; optional note in a second Text
               block with class ht--block-2c-label-tit-text-note
   The --dark variant is the dark blue band (LocWorld56 Synthesis).
   ========================================================================= */

.l-section.ht--block-2c-label-tit-text {
  padding: 48px 0;                    /* UIKit main>section */
}

/* UIKit grid col-4 + col-8 (30 px gutter) only on the intended layout (1/3 + 2/3)
   and only above 840: if an editor changes the columns, Impreza's grid applies */
@media (min-width: 841px) {
  .l-section.ht--block-2c-label-tit-text .ht--internal-row.g-cols.cols_1-2 {
    grid-template-columns: calc((100% + 30px) / 3 - 30px) 1fr;
    column-gap: 30px;
    align-items: start;
  }
}

/* H2 = UIKit .H600: 32 / 30 / 28 / 23 */
.l-section.ht--block-2c-label-tit-text h2 {
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
}

.l-section.ht--block-2c-label-tit-text p {
  margin: 10px 0 0;
  /* explicit: pages add 24px below paragraphs, posts remove it */
  margin-bottom: 24px !important;
  font-size: 18px;
  line-height: 1.6;
}

.l-section.ht--block-2c-label-tit-text p:first-child {
  margin-top: 0;
}

/* between paragraphs the global margin-bottom (24px) is enough; the last one has none */
.l-section.ht--block-2c-label-tit-text p + p {
  margin-top: 0;
}

.l-section.ht--block-2c-label-tit-text .wpb_text_column:last-child p:last-child {
  margin-bottom: 0 !important;
}

/* note: dedicated Text block, muted text */
.l-section.ht--block-2c-label-tit-text .ht--block-2c-label-tit-text-note p {
  color: var(--color-dark-grey, #768190);
}

/* ---------- dark variant ---------- */

.l-section.ht--block-2c-label-tit-text--dark {
  /* the UIKit has no dark sections; as a band it uses the
     section--wide spacing (UIKit) */
  background: var(--color-maincolordark, #00479a);
  color: #fff;
  padding: 80px 0;
  margin: 50px 0;
}

.l-section.ht--block-2c-label-tit-text--dark h2,
.l-section.ht--block-2c-label-tit-text--dark p {
  color: #fff;
}

.l-section.ht--block-2c-label-tit-text--dark .ht--label,
.l-section.ht--block-2c-label-tit-text--dark .ht--label *,
.l-section.ht--block-2c-label-tit-text--dark .ht--block-2c-label-tit-text-note p {
  color: #e6edf7;                    /* design --pale-blue */
}

/* readable links on dark blue (the theme blue would have 1.3:1 contrast) */
.l-section.ht--block-2c-label-tit-text--dark a {
  color: #fff;
  text-decoration: underline;
}

.l-section.ht--block-2c-label-tit-text--dark a:hover {
  color: #e6edf7;
}

.l-section.ht--block-2c-label-tit-text--dark a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Impreza breakpoints mapped to the UIKit scale */
@media (min-width: 1025px) and (max-width: 1920px) {
  .l-section.ht--block-2c-label-tit-text h2 {
    font-size: 30px;
  }
  .l-section.ht--block-2c-label-tit-text--dark {
    padding: 70px 0;
    margin: 40px 0;
  }
}

@media (min-width: 841px) and (max-width: 1024px) {
  .l-section.ht--block-2c-label-tit-text h2 {
    font-size: 28px;
  }
  .l-section.ht--block-2c-label-tit-text--dark {
    padding: 60px 0;
    margin: 30px 0;
  }
}

@media (max-width: 840px) {
  /* stacked columns, UIKit 30 px gutter */
  .l-section.ht--block-2c-label-tit-text .ht--internal-row.g-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .l-section.ht--block-2c-label-tit-text h2 {
    font-size: 23px !important;      /* posts force 24px !important on mobile */
  }
  .l-section.ht--block-2c-label-tit-text p {
    font-size: 16px;
  }
  .l-section.ht--block-2c-label-tit-text--dark {
    padding: 40px 0;
    margin: 20px 0;
  }
}
