/* GOLDEN-LINE: homepage-only minimalist brand strip.
   All brand links stay in ordinary HTML; no carousel JS or extra queries. */
#page-home .gl-home-brands {
  min-width: 0;
}
#page-home .gl-home-brands .gl-section-header {
  padding: 18px 20px 7px;
  border-bottom: 0;
}
#page-home .gl-home-brands .gl-brands-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px clamp(10px, 1.5vw, 24px);
  /* Eight readable columns, still anchored to the left edge. */
  width: 100%;
  max-width: 1680px;
  margin: 0;
  padding: 4px 20px 8px;
  border: 0;
  overflow: visible;
}
#page-home .gl-home-brands .gl-brand-cell,
#page-home .gl-home-brands .gl-brand-cell:visited {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 46px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--gl-ink, #111);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
#page-home .gl-home-brands .gl-brand-cell:hover {
  background: transparent;
}
#page-home .gl-home-brands .gl-brand-cell span {
  display: block;
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: break-word;
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  #page-home .gl-home-brands .gl-brand-cell:hover span {
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-offset: 3px;
  }
}
#page-home .gl-home-brands .gl-brand-cell:focus-visible {
  outline: 2px solid var(--gl-gold, #a07840);
  outline-offset: -2px;
}

/* Four columns on tablets and smaller desktops; eight on wide screens.
   The mobile two-row scroller below keeps its original behavior. */
@media (min-width: 768px) and (max-width: 1439.98px) {
  #page-home .gl-home-brands .gl-brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  #page-home .gl-home-brands .gl-section-header {
    padding: 16px 12px 9px;
  }
  #page-home .gl-home-brands .gl-brands-grid {
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(64px, auto));
    grid-auto-flow: column;
    /* Approximately 2.5 columns visible; keep narrow phones readable. */
    grid-auto-columns: max(124px, calc(40% - 7px));
    gap: 6px 12px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 12px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #page-home .gl-home-brands .gl-brands-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  #page-home .gl-home-brands .gl-brand-cell {
    min-height: 64px;
    padding: 10px 0;
    scroll-snap-align: start;
  }
  #page-home .gl-home-brands .gl-brand-cell span {
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .05em;
  }
}
