/* Small-screen layouts prioritize readable information and comfortable taps. */
@media (max-width: 800px) {
  html.has-sticky-header { scroll-padding-top: calc(44px + var(--nav-island-top) + 18px); }
  .header-shell[data-header-compact="true"] > .site-header { height: 44px; }
  .header-shell[data-header-compact="true"] .header-actions .menu-toggle { height: 44px; }
  .range-toolbar { border-bottom: 0; }
  .range-toolbar .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
  }
  .range-toolbar .filter-tab {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #4e5b6238;
    border-radius: 4px;
    color: #526067;
    background: transparent;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
  }
  .range-toolbar .filter-tab.active {
    border-color: var(--slate);
    background: var(--slate);
    color: #fff;
  }
  .range-toolbar .filter-tab[data-filter="all"] { grid-column: 1 / -1; }
  .range-toolbar .filter-tab:focus-visible { outline-color: var(--slate); outline-offset: 3px; }
  .range-footnote .text-link { min-height: 44px; font-size: 14px; }

  /* The fixed dialog frame and its scrollable copy panel remain intact. */
  #product-dialog .product-detail-copy { padding: 24px; }
  #product-dialog .product-detail-copy h2 { margin-top: 0; }
  #product-dialog .product-detail-copy .detail-description { font-size: 15px; line-height: 1.8; }
  #product-dialog .detail-specs > div { gap: 16px; padding-block: 12px; font-size: 14px; line-height: 1.6; }
  #product-dialog .detail-specs dt { color: #526067; }
  #product-dialog .detail-specs dd { color: var(--ink); }
  #product-dialog .detail-note { font-size: 12px; line-height: 1.7; }
  #product-dialog .detail-actions { gap: 12px; }
  #product-dialog .detail-actions .button,
  #product-dialog .detail-actions > .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 11px 14px;
    margin-left: 0;
    font-size: 14px;
    line-height: 1.5;
  }
  #product-dialog > .dialog-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 28px; }

  .contact-section { flex-direction: column; align-items: stretch; gap: 24px; }
  .contact-section .contact-page-link { width: 100%; min-height: 50px; margin: 0; font-size: 14px; }

  .site-footer .footer-main { flex-wrap: wrap; gap: 20px; }
  .site-footer .footer-main nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: 100%;
    order: 2;
    width: 100%;
    margin: 0;
    gap: 4px 20px;
  }
  .site-footer .footer-main nav a,
  .site-footer .footer-main nav button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.5;
  }
  .site-footer .back-to-top { order: 1; width: 44px; height: 44px; margin-left: auto; }
  .site-footer .footer-bottom { flex-wrap: wrap; gap: 10px 20px; font-size: 11px; line-height: 1.7; }
  .site-footer .footer-bottom button { min-height: 44px; padding: 10px 0 10px 10px; font-size: 12px; }
}

@media (max-width: 700px) {
  .company-facts, .process-list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .page-columns > .page-column { display: block; grid-row: auto; }
  .home-platform-card { display: flex; flex-direction: column; align-items: stretch; }
  .home-platform-media { height: auto; min-height: 0; aspect-ratio: 1672 / 941; }
  .home-platform-media img { object-fit: cover; }
}

@media (max-width: 520px) {
  #product-dialog .product-detail-copy { padding: 22px 20px; }
  #product-dialog .detail-actions { flex-direction: column; align-items: stretch; }
  #product-dialog .detail-actions .button,
  #product-dialog .detail-actions > .text-link { width: 100%; }
}
