/* Shops directory page only. Shared header/footer/button/chip/card styles live in
   shared/css/components.css. */

.shops-page {
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(64px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 60px);
}

/* ---- Hero ---- */

.shops-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.shops-hero__title {
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 850;
  text-wrap: balance;
}

.shops-hero__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 680px;
  text-wrap: pretty;
}

.shops-hero__lead b {
  color: var(--brand);
}

/* ---- Groups ---- */

.shops-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shops-group__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.shops-group__note {
  margin: -6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
}

.shops-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

/* ---- Shop card ---- */

.shop-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

a.shop-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.shop-card__logo {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ghost);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.shop-card__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 7px;
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shop-card__body b {
  font-size: 15px;
}

.shop-card__host {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.shop-card__reason {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.shop-card__depts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.shop-card__dept {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}

.shop-card__dept--all {
  background: var(--ghost);
  color: var(--muted);
}

.shop-card--closed {
  opacity: 0.72;
}

.shop-card--closed .shop-card__logo {
  filter: grayscale(1);
}

/* ---- "Want a shop added?" CTA ---- */

.shops-cta {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
}

.shops-cta__text {
  font-size: 20px;
}

.shops-cta__btn {
  border-radius: 14px;
  min-height: 48px;
  padding: 0 20px;
}

/* ---- v2: the page opens with the shared dark hero band ---- */
.shops-page { padding-top: clamp(32px, 4vw, 56px); }
.shop-card__logo { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.shop-card:hover .shop-card__logo { transform: rotate(-6deg) scale(1.1); }
