/* <----- KUPITI MOBILE: fixed-on-scroll category shortcuts; no design changes -----> */
@media (max-width: 680px) {
  /* Header/search are intentionally NOT sticky on mobile. Department shortcuts
     stay at the top after their normal scroll position reaches the viewport. */
  .quick-bar {
    position: sticky;
    top: 0;
    z-index: 18;
    transform: none;
    transition: none;
  }

  /* Category chips sit immediately below the shortcuts, with height measured
     at runtime for different phones, font sizes and landscape orientation. */
  #departments > .subcategory-nav {
    top: var(--kupiti-mobile-shortcuts-height, 0px);
    transition: none;
  }

  /* Hide scrollbar chrome on BOTH horizontal navigation rows, but preserve
     touch swiping, touchpad movement, and keyboard horizontal navigation. */
  .quick,
  .subcategory-scroll {
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* Legacy Edge */
    -webkit-overflow-scrolling: touch;
  }
  .quick::-webkit-scrollbar,
  .subcategory-scroll::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari */
    width: 0;
    height: 0;
  }

  /* Footer: compact editorial spacing, with two balanced link columns. */
  .site-footer .footer-inner {
    padding: 33px 20px calc(92px + env(safe-area-inset-bottom));
  }
  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 23px;
    align-items: start;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }
  .site-footer .footer-brand .brand-logo {
    width: 172px;
  }
  .site-footer .footer-brand p {
    font-size: 12px;
    line-height: 1.65;
    max-width: 310px;
    margin: 11px 0 0;
  }
  .site-footer .footer-nav {
    min-width: 0;
    gap: 1px;
  }
  .site-footer .footer-nav + .footer-nav {
    border-left: 1px solid var(--line);
    padding-left: 21px;
  }
  .site-footer .footer-nav h2 {
    font-size: 10px;
    letter-spacing: 1.15px;
    line-height: 1.45;
    margin: 0 0 8px;
  }
  .site-footer .footer-nav h2::after {
    content: '';
    display: block;
    height: 2px;
    width: 24px;
    margin-top: 10px;
    background: #9bc83b;
  }
  .site-footer .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 0;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--line);
    margin-top: 21px;
    padding-top: 17px;
  }
  .site-footer .footer-bottom p {
    font-size: 11px;
    line-height: 1.65;
  }
  .site-footer .footer-copyright { white-space: normal; }
  .site-footer .footer-note { max-width: 340px; text-align: left; }
}
