/* ═══════════════════════════════════════════════════════════════════
   Homestead Hollow — Vendor List page (loaded only on /vendors/)
   v1.1 compact: an A–Z index that flows down newspaper columns, one
   tight two-line row per vendor, a small category icon as the only tag.
   ═══════════════════════════════════════════════════════════════════ */

.vnd-page { padding: 128px 0 90px; background: var(--linen); overflow: hidden; }
.vnd-page .hero-rule { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.vnd-page .hero-rule .line { flex: 1; height: 1px; background: var(--ink-30); position: relative; }
.vnd-page .hero-rule .line::after { content: "❖"; position: absolute; right: 0; top: 50%; transform: translateY(-52%); font-size: 9px; color: var(--brass); background: var(--linen); padding-left: 8px; }
.vnd-page .hero-rule .label { color: var(--clay); white-space: nowrap; }
.vnd-page h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.025em;
  font-size: clamp(36px, 4.8vw, 62px); line-height: 1.02; color: var(--ink);
}
.vnd-page h1 .ital { font-style: italic; font-weight: 300; color: var(--clay); }
.vnd-page .vnd-sub { margin-top: 14px; font-size: 17.5px; line-height: 1.55; color: var(--ink-70); max-width: 600px; }

.vnd-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.vnd { margin-top: 22px; }

/* ── which show ───────────────────────────────────────────────────── */
.vnd-show {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--magnolia); border: 1px solid var(--ink-14);
}
.vnd-show i { font-size: 18px; color: var(--clay); }
.vnd-show-k { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-50); }
.vnd-show strong { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: -.005em; color: var(--ink); }
.vnd-show-d { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--clay); }
.vnd-show-d::before { content: "·"; margin-right: 10px; color: var(--ink-30); }
.vnd-show.is-past i, .vnd-show.is-past .vnd-show-d { color: var(--ink-50); }

/* ── search + count ───────────────────────────────────────────────── */
.vnd-bar { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.vnd-search {
  flex: 0 1 460px; min-width: 0; position: relative;
  display: flex; align-items: center; gap: 2px;
  background: var(--magnolia); border: 1.5px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); padding: 0 6px 0 18px;
  transition: box-shadow .15s, border-color .2s;
}
.vnd-search:focus-within { border-color: var(--clay); box-shadow: 3px 3px 0 var(--clay); }
.vnd-search > .ti-search { font-size: 19px; color: var(--clay); flex: 0 0 auto; }
.vnd-search input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--serif-2); font-size: 17px; color: var(--ink);
  padding: 12px 10px; -webkit-appearance: none; appearance: none;
}
.vnd-search input::placeholder { color: var(--ink-50); font-style: italic; }
.vnd-search input::-webkit-search-cancel-button { display: none; }
.vnd-clear {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--linen-2); color: var(--ink-70); cursor: pointer; font-size: 15px;
  transition: background .2s, color .2s;
}
.vnd-clear[hidden] { display: none; }
.vnd-clear:hover { background: var(--clay); color: var(--magnolia); }
.vnd-clear:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.vnd-count {
  white-space: nowrap;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-50);
}
.vnd-count b { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: 0; color: var(--clay); margin-right: 2px; }

/* ── category chips ───────────────────────────────────────────────── */
.vnd-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.vnd-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-70); background: transparent;
  border: 1px solid var(--ink-30); border-radius: 999px; padding: 7px 14px;
  transition: border-color .2s, color .2s, background .2s;
}
.vnd-chip i { font-size: 15px; color: var(--clay); transition: color .2s; }
.vnd-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--magnolia); }
.vnd-chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--magnolia); }
.vnd-chip[aria-pressed="true"] i { color: var(--brass-lt); }
.vnd-chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
/* no fades until hh-vendors.js has set the starting state */
.vnd:not(.is-ready) .vnd-chip, .vnd:not(.is-ready) .vnd-chip i, .vnd:not(.is-ready) .vnd-search { transition: none; }

/* ── the A–Z index ────────────────────────────────────────────────── */
/* one list flowing down up to four columns (each at least 230px wide) */
.vnd-list {
  list-style: none; margin: 26px 0 0; padding: 6px 0 0;
  border-top: 1px solid var(--ink-14);
  columns: 230px 4; column-gap: 40px;
}
.vnd-item {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start;
  padding: 5px 0 6px;
}
.vnd-item[hidden], .vnd-empty[hidden] { display: none !important; }
/* the first vendor of each letter carries the letter, with a hairline;
   .is-cont = the same letter repeated faintly at the top of the next column */
.vnd-item.is-first::before, .vnd-item.is-cont::before {
  content: attr(data-letter); grid-column: 1 / -1;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 25px; line-height: 1;
  color: var(--clay); padding: 16px 0 6px;
  background: linear-gradient(var(--ink-14), var(--ink-14)) no-repeat 30px 62% / calc(100% - 30px) 1px;
}
.vnd-item.is-cont::before { color: rgba(176,86,47,.42); }
.vnd-ic {
  width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(176,86,47,.09); color: var(--clay); font-size: 13.5px;
}
.vnd-name {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 17px;
  line-height: 1.25; letter-spacing: -.005em; color: var(--ink);
}
.vnd-desc { display: block; margin-top: 1px; font-size: 15px; line-height: 1.4; color: var(--ink-70); }
.vnd-desc.is-tbd { font-style: italic; color: var(--ink-50); }
.vnd-item mark { background: rgba(212,174,98,.42); color: inherit; border-radius: 3px; padding: 0 1px; }

/* nothing found */
.vnd-empty { padding: 44px 20px 40px; text-align: center; }
.vnd-empty p { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-70); }
.vnd-empty-q { font-style: normal; color: var(--clay); }
.vnd-reset {
  margin-top: 14px; cursor: pointer; background: none; border: 0; padding: 4px 2px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay); border-bottom: 1.5px solid currentColor;
}
.vnd-reset:hover { color: var(--clay-dk); }

/* ── footer line ──────────────────────────────────────────────────── */
.vnd-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ink-14);
}
.vnd-note { display: flex; align-items: center; gap: 8px; font-style: italic; font-size: 15px; color: var(--ink-50); }
.vnd-note i { color: var(--clay); font-size: 17px; flex: 0 0 auto; }
.vnd-maker { font-size: 15.5px; color: var(--ink-70); }
.vnd-maker b {
  margin-left: 6px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay); border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.vnd-maker b i { font-size: 14px; transition: transform .2s; }
.vnd-maker:hover b { color: var(--clay-dk); }
.vnd-maker:hover b i { transform: translateX(3px); }

/* ── phone ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .vnd-page { padding: 100px 0 70px; }
  .vnd-page .hero-rule { gap: 12px; margin-bottom: 16px; }
  .vnd-page .hero-rule .line { display: none; }
  .vnd-page .hero-rule .label { white-space: normal; letter-spacing: .2em; font-size: 10.5px; line-height: 1.5; }
  .vnd-page h1 { font-size: clamp(34px, 10vw, 44px); }
  .vnd-page .vnd-sub { font-size: 16.5px; }
  .vnd { margin-top: 18px; }
  .vnd-show { border-radius: 14px; padding: 8px 14px 8px 12px; }
  .vnd-show-d::before { display: none; }

  .vnd-bar { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
  .vnd-search { flex-basis: auto; }
  .vnd-search input { font-size: 16px; }   /* 16px = no iOS zoom on focus */

  /* chips: one swipeable row so the list starts sooner */
  .vnd-filters {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 12px -20px 0; padding: 2px 20px 6px; gap: 7px;
  }
  .vnd-filters::-webkit-scrollbar { display: none; }
  .vnd-chip { flex: 0 0 auto; min-height: 40px; }

  .vnd-list { margin-top: 14px; }
  .vnd-item { padding: 5px 0; }
  .vnd-item.is-first::before { padding-top: 14px; }
  .vnd-foot { flex-direction: column; align-items: flex-start; }
  .vnd-note { align-items: flex-start; }
  .vnd-note i { margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .vnd-search, .vnd-chip, .vnd-chip i, .vnd-clear, .vnd-maker b i { transition: none; }
}
