.directory-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.directory-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 28px;
}

.directory-back {
  color: var(--ink-soft);
  font-size: 10px;
  text-decoration: none;
}

.directory-hero {
  padding: 45px 4px 36px;
}

.directory-hero .eyebrow {
  color: var(--green);
  background: rgba(220, 234, 223, 0.55);
}

.directory-hero .eyebrow-dot {
  background: #61936a;
}

.directory-hero h1 {
  max-width: 900px;
  margin: 18px 0 15px;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 640;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.directory-hero h1 em {
  color: var(--orange-deep);
  font-family: "Songti SC", "STSong", serif;
  font-style: normal;
  font-weight: 600;
}

.directory-hero p {
  max-width: 670px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.directory-tools {
  padding: 9px;
  border-radius: 23px;
}

.directory-tools .search-field {
  height: 52px;
  background: rgba(255, 255, 255, 0.7);
}

.directory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0;
}

.directory-chips button {
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

.directory-chips button.is-active {
  color: #fff;
  background: var(--ink);
}

.directory-meta {
  display: flex;
  justify-content: space-between;
  margin: 5px 4px 13px;
  color: var(--muted);
  font-size: 9px;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.merchant-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 25px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: var(--shadow-sm);
}

.merchant-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.merchant-card__icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 15px;
  color: #8f6221;
  background: var(--gold-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  font-weight: 700;
}

.merchant-card__badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 7px;
  font-weight: 650;
}

.merchant-card h2 {
  margin: 16px 0 5px;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.merchant-card__category {
  color: var(--orange-deep);
  font-size: 8px;
  font-weight: 650;
}

.merchant-card__address {
  min-height: 42px;
  margin: 13px 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}

.merchant-card__meta {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.merchant-card__actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.merchant-card__actions a,
.merchant-card__actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 37px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
  text-decoration: none;
}

.merchant-card__actions a:first-child {
  border-color: transparent;
  color: #fff;
  background: var(--green);
}

.directory-footnote {
  margin-top: 25px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

@media (max-width: 820px) {
  .merchant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .directory-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .directory-topbar {
    padding-bottom: 20px;
  }

  .directory-hero {
    padding: 26px 2px 28px;
  }

  .directory-hero h1 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .merchant-grid {
    grid-template-columns: 1fr;
  }
}
