/* Targeted mobile alignment; desktop composition is unchanged. */
@media (max-width: 767px) {
  html body.delican-page #main-content .delican-feature-tabs .product-tab-list {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-auto-flow: row; grid-auto-columns: auto; width: 100% !important;
    overflow: visible !important; white-space: normal !important;
  }
  html body.delican-page #main-content .delican-feature-tabs .product-tab-list > .product-tab {
    grid-column: auto !important; width: 100% !important; min-width: 0 !important; max-width: none !important;
    flex: none !important; padding: 13px 9px !important; white-space: normal !important;
    font-size: 12px !important; line-height: 1.4 !important; overflow-wrap: break-word;
  }
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__container { justify-items: start !important; text-align: left !important; }
  html body.delican-page #main-content .delican-ground-control #ground-control-title,
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__content,
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__description,
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__specifications { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; justify-self: start !important; }
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__content { width: 100%; }
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__media { justify-self: start !important; margin-left: 0 !important; margin-right: 0 !important; }
  html body.delican-page #main-content .delican-ground-control .gcs-showcase__media img { object-position: left center !important; }
  html body.mcs-page.product-template-page #main-content .civi-catalog-capabilities li {
    display: grid !important; grid-template-columns: 42px minmax(0,1fr) !important;
    align-items: center !important; justify-items: start !important; justify-content: start !important;
    text-align: left !important; gap: 10px !important; padding: 10px 12px !important;
  }
  html body.mcs-page.product-template-page #main-content .civi-catalog-capabilities .civi-capability-icon { width: 42px !important; height: 42px !important; margin: 0 !important; justify-self: start !important; }
  html body.mcs-page.product-template-page #main-content .civi-catalog-capabilities p { text-align: left !important; margin: 0 !important; justify-self: start !important; font-size: 13px !important; line-height: 1.4 !important; }
  html body .site-footer .footer-bottom-inner { --footer-logo-run: calc(var(--footer-logo-size,32px) * 2 + var(--footer-logo-gap,12px) + 4px); }
  html body .site-footer .footer-partner-logos {
    display: flex !important; width: var(--footer-logo-run) !important; left: 50% !important; right: auto !important;
    justify-content: center !important; flex-wrap: nowrap !important; transform: translateX(-50%) !important; margin: 0 !important;
  }
  html body .site-footer .footer-partner-logos .footer-partner-link:last-child { width: calc(var(--footer-logo-size,32px) + 4px); flex: 0 0 calc(var(--footer-logo-size,32px) + 4px); }
  html body .site-footer .footer-bottom-inner::before { right: calc(50% + var(--footer-logo-run) / 2 + 8px) !important; }
  html body .site-footer .footer-bottom-inner::after { left: calc(50% + var(--footer-logo-run) / 2 + 8px) !important; }
}

/* Consistent mobile section rhythm and compact capability rows. */
@media (max-width: 767px) {
  html body { --mobile-section-space: 24px; }
  html body #main-content > section:not(:first-child):not(.product-hero):not(.video-slider),
  html body #main-content > .cekic-content > section {
    margin-top: 0 !important; margin-bottom: 0 !important;
    padding-top: var(--mobile-section-space) !important; padding-bottom: var(--mobile-section-space) !important;
  }
  html body #main-content > .cekic-content { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  html body #main-content :is(.product-use-header,.product-field-header,.product-gallery-header,.cekic-model-family__heading,.simple-founders-heading,.contact-page-location-header) { margin-bottom: 24px !important; }
  html body #main-content .civi-capabilities-shell > h2 { margin-bottom: 0 !important; }
  html body #main-content .civi-capabilities-shell { row-gap: 24px !important; }
  html body #main-content > .home-platforms { padding-top: 32px !important; padding-bottom: 32px !important; }
  html body .site-footer .footer-main { padding-top: 32px !important; padding-bottom: 32px !important; }
  html body:is(.civi-page,.cekic-page).product-template-page #main-content .civi-catalog-capabilities li {
    display: grid !important; grid-template-columns: 42px minmax(0,1fr) !important;
    align-items: center !important; justify-items: start !important; justify-content: start !important;
    text-align: left !important; gap: 10px !important; padding: 10px 12px !important;
  }
  html body:is(.civi-page,.cekic-page).product-template-page #main-content .civi-catalog-capabilities .civi-capability-icon { width: 42px !important; height: 42px !important; margin: 0 !important; justify-self: start !important; }
  html body:is(.civi-page,.cekic-page).product-template-page #main-content .civi-catalog-capabilities p { text-align: left !important; margin: 0 !important; justify-self: start !important; font-size: 13px !important; line-height: 1.4 !important; }
  html body.cekic-page #main-content .cekic-mobile-model { box-shadow: 0 5px 16px rgba(29,29,31,.09),0 1px 3px rgba(29,29,31,.04) !important; }
  html body.civi-page,
  html body.civi-page #main-content,
  html body.civi-page #main-content > section:not(.product-hero) { background: var(--brand-paper,#f5f5f7) !important; background-image: none !important; }
  html body.civi-page #main-content > section:not(.product-hero)::before,
  html body.civi-page #main-content > section:not(.product-hero)::after { background-image: none !important; }
}

@media (max-width: 767px) {
  /* Override the legacy mobile align-content:start and stacked grid placement. */
  html body:is(.civi-page,.cekic-page).product-template-page #main-content .civi-catalog-capabilities li {
    align-content: center !important; align-items: center !important;
    grid-template-rows: auto !important; min-height: 76px !important;
  }
  html body:is(.civi-page,.cekic-page).product-template-page #main-content .civi-catalog-capabilities .civi-capability-icon {
    grid-column: 1 !important; grid-row: 1 !important; align-self: center !important;
  }
  html body:is(.civi-page,.cekic-page).product-template-page #main-content .civi-catalog-capabilities p {
    grid-column: 2 !important; grid-row: 1 !important; align-self: center !important;
  }
  html body.civi-page #main-content :is(.civi-engagement,.civi-engagement__inner,.civi-engagement__content,.civi-integration,.civi-integration__inner) {
    background: var(--brand-paper,#f5f5f7) !important; background-image: none !important;
  }
}

@media (max-width: 767px) {
  /* The original 65px video shadow was clipped into a horizontal band at the next section. */
  html body.civi-page #main-content :is(.civi-autonomous-transfer,.civi-engagement) {
    overflow: visible !important;
    background: var(--brand-paper,#f5f5f7) !important;
    box-shadow: none !important; border: 0 !important;
  }
  html body.civi-page #main-content :is(.civi-autonomous-transfer-media,.civi-engagement__video) {
    box-shadow: 0 5px 14px rgba(29,29,31,.06) !important;
  }
}
