/* Both homepage download areas share one set of column tracks and button sizes. */
.home-download-buttons {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin-top: 30px;
}
.home-download-buttons .download-link-grid {
  display: grid;
  grid-template-columns: repeat(var(--download-platform-count, 3), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  align-items: stretch;
}
.home-download-buttons .download-store-link,
.home-download-buttons .hero-direct-download-link {
  width: 100%;
  min-height: 64px;
  height: 100%;
  padding: 12px;
  border-radius: 8px;
  box-sizing: border-box;
}
.home-download-buttons .download-store-link img {
  width: 150px;
  height: 30px;
  max-width: 100%;
  object-fit: contain;
}
.home-download-buttons .hero-direct-download-link {
  font-size: 14px;
  box-shadow: none;
}
.home-download-buttons a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .home-download-buttons .download-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-download-buttons .download-store-link,
  .home-download-buttons .hero-direct-download-link {
    min-height: 48px;
    padding: 8px;
  }
  .public-home .th-menu-wrapper .th-menu-area {
    max-width: min(310px, 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .public-home .th-menu-wrapper .th-menu-toggle {
    position: sticky;
    display: block;
    top: 8px;
    right: auto;
    margin: 8px 8px -44px auto;
    width: 44px;
    height: 44px;
  }
  .public-home .th-mobile-menu a {
    min-height: 44px;
  }
  .public-home #download-sec {
    scroll-margin-top: 72px;
  }
}
@media (max-width: 479px) {
  .home-download-buttons .direct-download-row { grid-template-columns: 1fr; }
}
