.layout {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 10px;
  gap: 20px;
  transition:
    background 0.3s,
    border 0.3s,
    box-shadow 0.3s,
    transform 0.4s;
}
.layout.section-shell {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: normal;
  align-content: normal;
  justify-content: normal;
  gap: 0;
  padding-block: 0;
}
.container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: min(100%, 1140px);
  margin: 0 auto;
  padding-block: 10px;
  gap: 20px;
}
.site-surface > .layout {
  margin-inline: auto;
  max-width: 100%;
}
.content-block {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin-block-end: 0;
  transition:
    background 0.3s,
    border 0.3s,
    border-radius 0.3s,
    box-shadow 0.3s,
    transform 0.4s;
}
.video-block {
  width: 100%;
}
main .rich-text,
main .heading {
  overflow-wrap: anywhere;
}
.video-block .wrapper > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 1024px) {
  .container {
    max-width: min(100%, 1024px);
  }
}
@media (max-width: 767px) {
  .container,
  .layout {
    flex-wrap: wrap;
  }
  .container {
    max-width: min(100%, 767px);
  }
}

/* Mobile service cards follow the reference: wide cards and compact leading icons. */
@media (max-width: 767px) {
  .site-surface .layout.mobile-card-section {
    padding-inline: 8px;
  }
  .site-surface .mobile-card-section .rich-text {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .site-surface .layout.card-badge {
    align-self: flex-start;
    flex-shrink: 0;
    width: 56px;
  }
  .site-surface .layout.card-badge:not(.card-badge-step) {
    height: 56px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 0;
    border-radius: 14px;
  }
  .site-surface .layout.card-badge .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
  .site-surface .layout.card-badge .icon {
    display: block;
    padding: 0;
    font-size: 26px;
    line-height: 1;
  }
  .site-surface .layout.card-badge .icon svg {
    width: 1em;
    height: 1em;
  }
  .site-surface .layout.card-badge-step {
    width: 46px;
  }
}
