/*
 * Post Three Columns Info Boxes.
 * The :is() prefix beats the theme's global rule in assets/css/single.css:
 * section.single-post .section-inner .post-content * { ... }
 */
:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 24px;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__box,
:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__box:visited {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
  padding: 15px 12px;
  background: #fff;
  border: 1px solid #e2ddd3;
  border-radius: 12px;
  color: #002345;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

:is(section.single-post .section-inner .post-content, body) a.post-three-columns-info-boxes__box:hover {
  border-color: #002345;
}

:is(section.single-post .section-inner .post-content, body) a.post-three-columns-info-boxes__box:focus-visible {
  outline: 2px solid #002345;
  outline-offset: 2px;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__body {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__title {
  margin: 0;
  color: #002345;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__text {
  margin: 0;
  color: #3a3a3b;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__text :is(strong, b, em, i) {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__text :is(strong, b) {
  font-weight: 700;
}

/* 2-column variant: two boxes per row on mobile and desktop (Figma 10627:5983). */
:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
}

/* 12/12 on mobile, 18/18 from 768px up. Long labels wrap so the arrow stays inside the card. */
:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__label {
  min-width: 0;
  margin: 0;
  color: #002345;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  text-decoration: underline;
  text-transform: capitalize;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__arrow {
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0;
  transform: rotate(-90deg);
}

@media (min-width: 768px) {
  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__box,
  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__box:visited {
    padding: 24px 20px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__text {
    font-size: 18px;
    line-height: 26px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__label {
    font-size: 18px;
    line-height: 18px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes__arrow {
    width: 18px;
    height: 18px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes--cols-2 .post-three-columns-info-boxes__box,
  :is(section.single-post .section-inner .post-content, body) .post-three-columns-info-boxes--cols-2 .post-three-columns-info-boxes__box:visited {
    padding: 20px;
  }
}
