/* Blog overview and article pilot. Keep all rules scoped to the modern Blog family. */
.blog-page {
  --ui-blog-topic: #aab5bc;
  --ui-blog-muted: #cccccc;
  overflow-x: clip;
  background: var(--ui-grey);
}

.blog-page--index {
  background: var(--ui-white);
}

.blog-page a:focus-visible,
.blog-page button:focus-visible {
  outline: 3px solid var(--ui-black);
  outline-offset: 3px;
}

.ui-blog-container {
  width: min(calc(100% - 100px), 1340px);
  margin-right: auto;
  margin-left: auto;
}

.ui-blog-filter {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ui-blog-topic);
  scrollbar-width: none;
}

.ui-blog-filter::-webkit-scrollbar {
  display: none;
}

.ui-blog-filter__list,
.ui-blog-grid,
.ui-blog-pagination__list,
.ui-blog-share-tools__list,
.ui-blog-related__grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ui-blog-filter__list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-blog-filter__item::before,
.ui-blog-grid__item::before,
.ui-blog-pagination__item::before,
.ui-blog-share-tools__list li::before,
.ui-blog-related__item::before {
  display: none;
  content: none;
}

.ui-blog-filter__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--ui-white) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.75px;
  text-decoration: none;
  white-space: nowrap;
}

.ui-blog-filter__link:hover,
.ui-blog-filter__link:focus-visible {
  color: var(--ui-white) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.ui-blog-filter__link.is-active {
  box-shadow: none;
}

/* Overview */
.ui-blog-overview {
  padding: 43px 0 72px;
}

.ui-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 55px;
}

.ui-blog-grid__item,
.ui-blog-related__item {
  display: flex;
  min-width: 0;
}

.ui-blog-card {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 598px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ui-white);
}

.ui-blog-card__media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 410 / 258;
  background: var(--ui-grey);
}

.ui-blog-card__picture,
.ui-blog-card__image {
  width: 100%;
  height: 100%;
}

.ui-blog-card__image {
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.ui-blog-card__media:hover .ui-blog-card__image {
  transform: scale(1.015);
}

.ui-blog-card__content {
  display: flex;
  min-height: 340px;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 0;
}

/* Figma 11552:11432: preview copy sits flush with the image, with natural
   content spacing rather than pushing the link to a fixed card baseline. */
.ui-blog-card--index .ui-blog-card__content {
  min-height: 0;
  flex: 0 1 auto;
  gap: 13px;
  padding: 26px 0 10px;
}

.ui-blog-card--index .ui-blog-card__content > * {
  margin: 0 !important;
}

.ui-blog-card__category {
  width: max-content;
  max-width: 100%;
  padding: 4px 10px !important;
  border-radius: 2px;
  color: var(--ui-white) !important;
  background: var(--ui-blog-topic);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.5px;
}

.ui-blog-card__date {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ui-blog-card__title {
  display: -webkit-box;
  margin-top: 8px !important;
  overflow: hidden;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.25px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ui-blog-card__title a {
  color: var(--ui-black) !important;
  text-decoration: none;
}

.ui-blog-card__title a:hover,
.ui-blog-card__title a:focus-visible {
  color: var(--ui-red) !important;
}

.ui-blog-card__description {
  display: -webkit-box;
  margin-top: 14px !important;
  overflow: hidden;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ui-blog-card .ui-blog-card__action {
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.75px;
}

.ui-blog-card .ui-blog-card__action .ui-action__icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.ui-blog-card .ui-blog-card__action img {
  width: 7px;
  height: 12px;
}

.ui-blog-card--index .ui-blog-card__action {
  gap: 0;
  padding-top: 0;
}

.ui-blog-overview__empty {
  padding: 64px 24px;
  font-size: 18px;
  line-height: 27px;
  text-align: center !important;
}

.ui-blog-pagination {
  margin-top: 43px;
}

.ui-blog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.ui-blog-pagination__link {
  display: grid;
  width: 30.7692px;
  height: 44px;
  place-items: center;
  text-decoration: none;
}

.ui-blog-pagination__dot {
  display: block;
  width: 14.7692px;
  height: 14.7692px;
  transition: transform 160ms ease;
}

.ui-blog-pagination__link:hover .ui-blog-pagination__dot {
  transform: scale(1.12);
}

/* Article */
.ui-blog-article__header {
  padding: 16px 0 36px;
}

.ui-blog-share-tools {
  display: grid;
  min-height: 76px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 27px 43px;
  column-gap: 32px;
  row-gap: 6px;
}

.ui-blog-share-tools__sharing {
  display: contents;
}

.ui-blog-share-tools__sharing > p {
  width: max-content;
  grid-column: 1;
  grid-row: 1;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.5px;
}

.ui-blog-share-tools__list {
  display: flex;
  width: max-content;
  height: 43px;
  align-items: center;
  grid-column: 1;
  grid-row: 2;
  gap: 21px;
}

.ui-blog-share-tools__list a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
}

.ui-blog-share-tools__icon {
  display: block;
  object-fit: contain;
}

.ui-blog-share-tools__icon--facebook {
  /* The SVG has a square intrinsic canvas; a narrow box shrinks its glyph. */
  width: 33px;
  height: 33px;
}

.ui-blog-share-tools__icon--twitter {
  width: 30px;
  height: 30px;
}

.ui-blog-share-tools__icon--linkedin {
  width: 31px;
  height: 33px;
}

.ui-blog-share-tools__icon--whatsapp {
  width: 34px;
  height: 34px;
}

.ui-blog-share-tools__icon--mail {
  width: 38px;
  height: 30px;
}

.ui-blog-share-tools__download {
  width: 149px;
  align-self: start;
  grid-column: 2;
  grid-row: 2;
  margin-top: 3px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.ui-blog-share-tools__download .ui-action__icon img {
  display: block;
  width: 14px;
  height: 14px;
}

.ui-blog-article__title-block {
  width: 100%;
  max-width: none;
  margin: 12px auto 0;
  text-align: center;
}

.ui-blog-article__meta {
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ui-blog-article__meta span[aria-hidden="true"] {
  padding: 0 7px;
}

.ui-blog-article__title-block h1 {
  margin-top: 20px !important;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.25px;
  text-align: center;
}

.ui-blog-article__lead {
  max-width: none;
  margin: 20px auto 0 !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.5px;
  text-align: left !important;
}

.ui-blog-article__hero {
  margin: 36px 0 0;
}

.ui-blog-article__hero-picture {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1120 / 515;
  background: var(--ui-grey);
}

.ui-blog-article__hero-image {
  object-fit: cover;
  object-position: center;
}

.ui-blog-article__prose {
  padding-top: 4px;
  padding-bottom: 76px;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.5px;
}

.ui-blog-article__prose h2,
.ui-blog-article__prose h3,
.ui-blog-article__prose h4 {
  margin-top: 34px !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
}

.ui-blog-article__prose h2:first-child,
.ui-blog-article__prose h3:first-child,
.ui-blog-article__prose h4:first-child {
  margin-top: 0 !important;
}

.ui-blog-article__prose p {
  margin-top: 18px !important;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.ui-blog-article__prose > p:first-child {
  margin-top: 0 !important;
}

.ui-blog-article__prose h2 + p,
.ui-blog-article__prose h3 + p,
.ui-blog-article__prose h4 + p {
  margin-top: 12px !important;
}

.ui-blog-article__prose span {
  color: inherit;
  font: inherit;
}

.ui-blog-article__prose [style*="text-align:justify"] {
  text-align: left !important;
}

.ui-blog-article__prose [style*="font-family"] {
  font-family: inherit !important;
}

.ui-blog-article__prose a {
  color: var(--ui-red) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ui-blog-article__prose img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
}

.ui-blog-article__prose ul,
.ui-blog-article__prose ol {
  padding-left: 28px;
  margin: 18px 0 0;
}

.ui-blog-article__prose li {
  margin-top: 8px;
}

.ui-blog-contact {
  min-height: 398px;
  padding: 46px 0 53px;
  background: var(--ui-grey);
}

.ui-blog-contact__inner {
  text-align: left;
}

.ui-blog-contact h2,
.ui-blog-related h2 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.25px;
  text-align: center;
}

.ui-blog-contact p {
  max-width: none;
  margin: 39px 0 0 !important;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.5px;
  text-align: left !important;
}

.ui-blog-contact p + p {
  margin-top: 27px !important;
}

.ui-blog-contact a:not(.ui-action) {
  color: inherit !important;
  font-weight: inherit;
}

.ui-blog-contact__action {
  margin-top: 38px;
}

.ui-blog-related {
  padding: 66px 0 88px;
}

.ui-blog-related__grid {
  display: grid;
  margin-top: 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.ui-blog-card--related .ui-blog-card__media {
  aspect-ratio: 356 / 258;
}

.ui-blog-card--related .ui-blog-card__content {
  padding-right: 24px;
  padding-left: 24px;
}

.ui-blog-card--related .ui-blog-card__title {
  display: block;
  overflow: visible;
  font-size: 28px;
  line-height: 1.25;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

@media (min-width: 1024px) {
  .blog-page--article .ui-container {
    width: min(calc(100% - 100px), 1140px);
  }
}

@media (min-width: 601px) and (max-width: 1023px) {
  .ui-blog-container {
    width: min(calc(100% - 64px), 896px);
  }

  .ui-blog-filter {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ui-blog-filter__list {
    width: max-content;
    min-width: 100%;
  }

  .ui-blog-overview {
    padding-top: 40px;
  }

  .ui-blog-grid,
  .ui-blog-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 32px;
  }

  .ui-blog-card {
    min-height: 560px;
  }

  .ui-blog-card__content {
    min-height: 330px;
  }

  .ui-blog-card__title,
  .ui-blog-card--related .ui-blog-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .ui-blog-related__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 32px) / 2);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .ui-blog-container,
  .blog-page .ui-container {
    width: calc(100% - 40px);
  }

  .ui-blog-filter {
    min-height: 58px;
    padding: 6px 12px;
    overflow: visible;
  }

  .ui-blog-filter__list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-blog-filter__link {
    width: 100%;
    min-height: 44px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    white-space: normal;
  }

  .ui-blog-overview {
    padding: 32px 0 56px;
  }

  .ui-blog-grid,
  .ui-blog-related__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .ui-blog-card {
    min-height: 0;
  }

  .ui-blog-card__content {
    min-height: 318px;
    padding-top: 20px;
  }

  .ui-blog-card--related .ui-blog-card__content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ui-blog-card__title,
  .ui-blog-card--related .ui-blog-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .ui-blog-card__description {
    font-size: 16px;
    line-height: 24px;
  }

  .ui-blog-pagination {
    margin-top: 32px;
  }

  .ui-blog-article__header {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .ui-blog-share-tools {
    display: flex;
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .ui-blog-share-tools__sharing {
    display: flex;
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ui-blog-share-tools__list {
    width: 100%;
    height: auto;
    justify-content: space-between;
  }

  .ui-blog-share-tools__download {
    align-self: flex-end;
    margin-top: 0;
  }

  .ui-blog-article__title-block {
    margin-top: 40px;
  }

  .ui-blog-article__title-block h1 {
    margin-top: 16px !important;
    font-size: 30px;
    line-height: 38px;
  }

  .ui-blog-article__lead {
    margin-top: 16px !important;
    font-size: 16px;
    line-height: 24px;
  }

  .ui-blog-article__hero {
    margin-top: 28px;
  }

  .ui-blog-article__hero-picture {
    min-height: 215px;
    aspect-ratio: 374 / 215;
  }

  .ui-blog-article__prose {
    padding-bottom: 56px;
    font-size: 16px;
    line-height: 24px;
  }

  .ui-blog-article__prose h2,
  .ui-blog-article__prose h3,
  .ui-blog-article__prose h4 {
    margin-top: 30px !important;
    font-size: 22px;
    line-height: 30px;
  }

  .ui-blog-contact,
  .ui-blog-related {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .ui-blog-contact {
    min-height: 0;
  }

  .ui-blog-contact h2,
  .ui-blog-related h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .ui-blog-contact p {
    margin-top: 24px !important;
    font-size: 16px;
    line-height: 24px;
  }

  .ui-blog-contact p + p {
    margin-top: 24px !important;
  }

  .ui-blog-contact__action {
    margin-top: 25px;
  }

  .ui-blog-related__grid {
    margin-top: 30px;
  }
}

@media (max-width: 374px) {
  .ui-blog-container,
  .blog-page .ui-container {
    width: calc(100% - 32px);
  }

  .ui-blog-filter__link {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ui-blog-share-tools__list a {
    width: 36px;
  }

  .ui-blog-article__title-block h1 {
    font-size: 28px;
    line-height: 36px;
  }
}

@media print {
  .blog-article-document .site-header,
  .blog-article-document .site-footer,
  .blog-article-document #cookie-notice,
  .ui-blog-filter,
  .ui-blog-share-tools,
  .ui-blog-contact,
  .ui-blog-related {
    display: none !important;
  }

  .blog-page,
  .ui-blog-article__header,
  .ui-blog-article__prose {
    padding: 0 !important;
    background: #ffffff !important;
  }

  .blog-page .ui-container {
    width: 100% !important;
    max-width: none !important;
  }

  .ui-blog-article__title-block {
    margin-top: 0;
  }

  .ui-blog-article__hero {
    break-inside: avoid;
  }

  .ui-blog-article__prose a {
    color: #000000 !important;
  }
}
