/* Phone and tablet fixes for the Latest features pages. The release export's
   own stylesheet is regenerated by scripts/import-latest-features.mts, so
   site-specific adjustments live here; composeV33Page links this file after it. */
@media (max-width: 860px) {
  /* Release pages pin a quick-action bar to the bottom of the screen. Keep the
     footer's last links clear of it, and lift the site's floating cards
     (they read --site-bottom-dock) above it instead of on top of it. */
  body[data-page="latest-features"]:has(.lf-dock) {
    --site-bottom-dock: 74px;
  }
  body[data-page="latest-features"]:has(.lf-dock) main.lf {
    padding-bottom: 0;
  }
  body[data-page="latest-features"]:has(.lf-dock) footer.site-footer {
    padding-bottom: calc(max(30px, env(safe-area-inset-bottom, 0px)) + 86px);
  }
  .lf .lf-dock {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  /* Product filters scroll sideways: run them to the screen edge, fade the
     edge so the overflow reads as scrollable, and hide the scrollbar. */
  .lf .lf-fl {
    margin-right: -20px;
    padding-right: 32px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .lf .lf-fl::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 600px) {
  /* "2 launches · 1 update · 1 coming soon" as three even tiles, rather than
     two chips and a third wrapping onto its own row. */
  .lf .lf-tally {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }
  .lf .lf-tally li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 13px 14px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.25;
  }
  .lf .lf-tally b {
    font-size: 28px;
  }
}
