/* Mobile hardening for community fronts (design1/2/3 + netwerkschakel templates). */

@media only screen and (max-width: 960px) {
  .header {
    gap: 12px;
  }

  .header .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
  }

  .header .nav a {
    display: inline-block;
    line-height: 1.35;
    padding: 10px 4px;
    min-height: 44px;
  }

  .hero__text {
    min-width: 0 !important;
    width: min(100%, 700px);
    box-sizing: border-box;
  }

  .wrapper > .hero {
    height: auto;
    min-height: 220px;
    flex-basis: auto;
    padding: 20px 16px;
  }

  .hero__text h1 {
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.15;
  }

  .hero__text h2 {
    font-size: clamp(17px, 3.8vw, 24px);
    line-height: 1.25;
  }

  .callToAction .btn,
  .callToAction .btn--action {
    max-width: 100%;
    white-space: normal;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
  }

  .callToAction {
    margin-top: 18px;
  }

  .section__container,
  .home-updates {
    width: min(100% - 20px, 1100px);
  }

  .section__container iframe,
  .center--section iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }

  .split .block {
    min-width: 0;
  }

  .split {
    gap: 18px;
  }

  .image--circular img {
    max-width: min(260px, 72vw);
    height: auto;
    margin: 0 auto;
  }

  .section__container img {
    max-width: 100%;
    height: auto;
  }

  .header .header__content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header .hero .split .block {
    min-width: 0;
  }

  .news .news__item .news__image img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile_nav .options .option {
    overflow-wrap: anywhere;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
  }

  .mobile_nav .demo_request {
    position: static;
    margin-top: 20px;
    text-align: center;
  }

  .mobile_nav .demo_request .demo_btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
  }
}

@media only screen and (max-width: 640px) {
  .header .logo img {
    max-width: min(180px, 70vw);
  }

  .hero__text {
    padding: 16px !important;
  }

  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wrapper > .hero {
    min-height: 180px;
  }

  .section__container {
    margin-bottom: 22px;
  }

  .section__container .split .block {
    margin-bottom: 0;
  }

  .section__container p {
    line-height: 1.65;
  }

  .section__container h1,
  .section__container h2,
  .section__container h3 {
    margin-bottom: 12px;
  }

  .home-card h3 {
    font-size: 20px;
  }

  .mobile_nav {
    overflow-y: auto;
    max-height: 100vh;
    padding-bottom: 24px;
  }

  .callToAction {
    margin-top: 14px;
  }

  .final_calltoaction .avatar,
  .community_training .avatar {
    position: static;
    width: auto;
    margin: 0 auto 16px;
  }
}
