/* ==========================================================================
   M3RBS: Shops page
   Loaded only by shops.html, after base.css (shared tokens, header, footer, page title).
   Shops are grouped by where they are; each group is a two-column spread on wide screens.
   ========================================================================== */

/* ---------- Page head ---------- */
.shops-head {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

.shops-head__lede {
  margin-top: 12px;
  font-size: 1.0625rem;
  max-width: 32rem;
}

.shops-head__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  margin-top: 6px;
}
.shops-head__jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.shops-head__jump a:hover { color: var(--accent); }

@media (min-width: 640px) {
  .shops-head { padding-top: var(--s4); padding-bottom: var(--s3); }
}

@media (min-width: 1000px) {
  .shops-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
    padding-top: var(--s4);
  }
  .shops-head .eyebrow,
  .shops-head .page-title { grid-column: 1 / span 6; }
  .shops-head .page-title { grid-row: 2; }
  .shops-head__lede { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: end; margin: 0 0 6px; }
  .shops-head__jump { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s0); }
}

/* ---------- Location groups ---------- */
.place-group { padding-bottom: var(--s4); }

.place-group__head {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.place-group__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.place-group__address {
  font-size: 0.9375rem;
  color: var(--muted);
}
.place-group__address bdi { white-space: nowrap; color: var(--ink); }

@media (min-width: 640px) {
  .place-group__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: var(--s3);
  }
  .place-group__address { text-align: right; }
}

@media (min-width: 1000px) {
  .place-group { padding-bottom: var(--s5); }
}

/* ---------- Shop entries ----------
   Logo beside the text. The text reads: name, what it sells, hours, (location), actions, kashrut.
   Two columns on wide screens; rows share a rule, but entries keep their natural content. */
.shop-list { display: grid; }

.shop {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: var(--s1);
  align-items: start;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}

.shop__logo {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.shop__name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.shop__what {
  margin-top: 2px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.shop__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Hours: the shop's own wording, one clause per line */
.shop__hours { margin-top: 12px; }
.shop__hours ul {
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.shop__location {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.shop__location bdi,
.shop__location .nowrap { white-space: nowrap; }

/* Actions: explicit verbs, the number or domain visible */
.shop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  margin-top: 10px;
}
.shop__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.shop__kashrut {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.shop__kashrut .shop__label { display: inline; margin-right: 8px; }
.shop__kashrut a { display: inline-flex; align-items: center; min-height: 44px; }

.shop__none {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .shop { grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s2); padding: var(--s2) 0 26px; }
  .shop__logo { width: 72px; height: 72px; }
  .shop__name { font-size: 1.375rem; }
}

@media (min-width: 760px) {
  .shop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s4);
  }
}

@media (min-width: 1000px) {
  .shop-list { column-gap: var(--s5); }
  .shop { grid-template-columns: 80px minmax(0, 1fr); column-gap: 28px; padding: 28px 0 30px; }
  .shop__logo { width: 80px; height: 80px; }
  .shop__name { font-size: 1.5rem; }
  .shop__actions a,
  .shop__kashrut a { min-height: 36px; }
  .shop__hours,
  .shop__location { margin-top: 14px; }
}

/* ---------- Additions and corrections ---------- */
.shops-note {
  padding-top: var(--s1);
  padding-bottom: var(--s5);
}
.shops-note p {
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
