/* Saved recommendation cards retain their order, content and destinations. */
#recommended-products .sy-mobile-recommendations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
#recommended-products .sy-mobile-recommendation-group {
  min-width: 0;
}
#recommended-products .sy-mobile-recommendation-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}
#recommended-products .sy-mobile-recommendation-track > a {
  min-width: 0;
  height: 100%;
}
#recommended-products .sy-mobile-recommendation-track:focus-visible {
  outline: 2px solid var(--blue, #1756d9);
  outline-offset: 5px;
}
body[data-page="home"] #main :is(#recommended-products, #why-us) .sy-mobile-swipe-hint {
  display: none;
}

@media (max-width: 767px) {
  /* Two native scroll tracks, three cards each; no carousel JavaScript. */
  #recommended-products .sy-mobile-recommendations {
    gap: 28px;
  }
  #recommended-products .sy-mobile-recommendation-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: thin;
    scrollbar-color: #1756d9 #edf2fa;
    padding: 0 0 15px;
  }
  #recommended-products .sy-mobile-recommendation-track > a {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    transform: none;
  }
  #recommended-products .sy-mobile-recommendation-track::-webkit-scrollbar {
    height: 4px;
  }
  #recommended-products .sy-mobile-recommendation-track::-webkit-scrollbar-track {
    background: #edf2fa;
    border-radius: 4px;
  }
  #recommended-products .sy-mobile-recommendation-track::-webkit-scrollbar-thumb {
    background: #1756d9;
    border-radius: 4px;
  }
  #recommended-products .sy-mobile-recommendation-track .product-visual,
  #recommended-products .sy-mobile-recommendation-track .blueprint-category-image {
    aspect-ratio: 1.4;
  }
  #recommended-products .sy-mobile-recommendation-track .product-visual img {
    padding: 20px;
  }
  #recommended-products .sy-mobile-recommendation-track .product-body,
  #recommended-products .sy-mobile-recommendation-track .blueprint-category-copy {
    padding: 22px 20px;
  }
  #recommended-products .sy-mobile-recommendation-track h3 {
    font-size: clamp(21px, 5.5vw, 24px);
    line-height: 1.28;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  #recommended-products .sy-mobile-recommendation-track .product-body > p:not(.product-type) {
    font-size: clamp(14px, 3.7vw, 15px);
    line-height: 1.75;
  }
  #recommended-products .sy-mobile-recommendation-track .product-type,
  #recommended-products .sy-mobile-recommendation-track .blueprint-category-number {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .12em;
  }
  #recommended-products .sy-mobile-recommendation-track .product-link {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Content typography only: no form labels, inputs, dialog or icon selectors. */
  body[data-page="home"] #main .home-hero .hero-copy h1 {
    font-size: clamp(32px, 8.4vw, 40px);
    line-height: 1.15;
    letter-spacing: -.035em;
  }
  body[data-page] #main :is(.hero-inner h1, .article-hero h1, .case-hero h1, .project-hero h1, .about-hero h1),
  body[data-page="products"] #main .product-hero .hero-inner h1 {
    font-size: clamp(30px, 7.8vw, 38px);
    line-height: 1.17;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
  }
  body[data-page] #main :is(.section-head h2, .company-copy > h2, .closing-cta h2, .product-details-panel h2, .category-enquiry h2) {
    font-size: clamp(27px, 7.2vw, 32px);
    line-height: 1.22;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
  }
  body[data-page] #main :is(.product-card h3, .case-card h3, .article-card h3, .why-grid h3, .certificate-card h3, .principle-stage-copy h3) {
    font-size: clamp(21px, 5.5vw, 24px);
    line-height: 1.3;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  body[data-page] #main :is(.hero-description, .category-hero .lead, .product-hero .lead, .section-head > p, .company-copy > p, .closing-cta > .container > p, .section > .container > p, .contact-aside > p) {
    font-size: clamp(15px, 3.8vw, 16px);
    line-height: 1.75;
  }
  body[data-page] #main :is(.product-card p:not(.eyebrow):not(.product-type), .case-card p:not(.eyebrow), .article-card p:not(.eyebrow), .why-grid p, .certificate-card p, .principle-stage-copy p, .product-details-panel > .container > p, .product-details-panel > .container > ul > li, .article-body > p, .article-body > ul > li, .article-body > ol > li, .faq-list details > p, .faq-list details > div) {
    font-size: clamp(14px, 3.7vw, 15px);
    line-height: 1.75;
  }
  body[data-page] #main .faq-list summary {
    font-size: 16px;
    line-height: 1.5;
  }
  body[data-page] #main .breadcrumbs {
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  body[data-page] #main .eyebrow {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .14em;
  }
  body[data-page] #main :is(.hero-actions .button, .home-hero .button-row .button, .closing-cta .button) {
    min-height: 48px;
    font-size: 13px;
    line-height: 1.5;
  }
  body[data-page] #main :is(.hero-actions .text-link, .section-head > .text-link, .article-footer .text-link, .case-card .text-link) {
    font-size: 13px;
    line-height: 1.5;
  }
  body[data-page="home"] #main > .section:not(.home-hero) {
    padding-block: 52px;
  }
  body[data-page="home"] #main .section-head {
    margin-bottom: 26px;
  }
}

@media (max-width: 640px) {
  #recommended-products .sy-mobile-recommendation-track {
    grid-auto-columns: 100%;
    gap: 18px;
  }
}

/* Only the homepage advantage cards change layout, and only below 768px. */
@media (max-width: 767px) {
  body[data-page="home"] #why-us :is(.why-grid, .blueprint-advantages-grid) {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: thin;
    scrollbar-color: #1756d9 #edf2fa;
    padding-bottom: 15px;
  }
  body[data-page="home"] #why-us :is(.why-grid, .blueprint-advantages-grid) > article {
    min-width: 0;
    height: 100%;
    padding: 26px 24px 48px;
    scroll-snap-align: start;
  }
  body[data-page="home"] #why-us :is(.why-grid, .blueprint-advantages-grid)::-webkit-scrollbar {
    height: 4px;
  }
  body[data-page="home"] #why-us :is(.why-grid, .blueprint-advantages-grid)::-webkit-scrollbar-track {
    background: #edf2fa;
    border-radius: 4px;
  }
  body[data-page="home"] #why-us :is(.why-grid, .blueprint-advantages-grid)::-webkit-scrollbar-thumb {
    background: #1756d9;
    border-radius: 4px;
  }
}
@media (max-width: 640px) {
  body[data-page="home"] #why-us :is(.why-grid, .blueprint-advantages-grid) {
    grid-auto-columns: 100%;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  body[data-page="home"] #main :is(#recommended-products, #why-us) .sy-mobile-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    color: #1756d9;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .02em;
  }
  body[data-page="home"] #main :is(#recommended-products, #why-us) .sy-mobile-swipe-hint::before {
    content: "";
    width: 28px;
    height: 3px;
    flex: 0 0 28px;
    border-radius: 3px;
    background: currentColor;
  }
  body[data-page="home"] #main :is(#recommended-products, #why-us) .sy-mobile-swipe-hint > span {
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
  }
}
