/* Top Picks of the Week - Shared layout styling */

/* The compact hero above it already clears the fixed header, so this only
   needs its own spacing below that section, not the header-clearance
   padding-top it needed while it was the first section on the page.
   scroll-margin-top is separate — the header's Top Picks anchor link
   (header.php) jumps straight here, so it still needs the same ~100px/50px
   clearance .section--below-header uses, just via scroll-margin instead of
   padding since this section isn't the one flush against the header. */
.top-picks {
  padding: var(--section-spacing-sm) 0 var(--section-spacing);
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  .top-picks {
    scroll-margin-top: 50px;
  }
}

.top-picks .tp-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.top-picks .tp-eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin: 0;
}

.top-picks .section__title {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.top-picks .tp-sub {
  color: var(--color-text-light);
  margin: 0;
}

.coffee-marquee {
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(63, 42, 29, 0.08);
  border-bottom: 1px solid rgba(63, 42, 29, 0.08);
  position: relative;
  margin: 1rem 0 1.75rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 50s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee-group a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0 1.5rem;
  transition: color 0.3s ease;
}

.marquee-group a:hover {
  color: var(--color-primary);
}

.divider {
  color: rgba(63, 42, 29, 0.28);
}

.coffee-marquee::before,
.coffee-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.coffee-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.coffee-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

