/* section: beer_catalog → ACF/CPT archive (WP: Beer CPT + beer_category taxonomy) */
.beer-catalog {
  padding-block: calc(var(--section-pad) * 0.6) var(--section-pad);
  background: var(--bg);
}

/* category jump nav (tabs → anchors) */
.beer-catalog__nav {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 3px solid var(--bg-ink);
  margin-bottom: clamp(48px, 6vw, 80px);
  overflow-x: auto;
}
.beer-catalog__nav-track {
  display: flex;
  gap: 4px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.beer-catalog__nav a {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 18px 12px;
  white-space: nowrap;
  color: var(--text-secondary);
  border-bottom: 4px solid transparent;
  margin-bottom: -3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.beer-catalog__nav a:hover, .beer-catalog__nav a.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.beer-catalog__group { margin-bottom: clamp(64px, 9vw, 120px); }
.beer-catalog__group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* the intro sits level with the middle of the heading, not hanging off its baseline */
  gap: 16px 28px;
  margin-bottom: 40px;
}
.beer-catalog__group-title {
  font-size: clamp(44px, 6vw, 84px);
}
.beer-catalog__group-title em { font-style: normal; color: var(--accent); }
.beer-catalog__group-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 52ch;
}

.beer-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* label-forward card, cream variant */
.brew {
  background: var(--bg-elevated);
  border: 2px solid var(--bg-ink);
  padding: 16px 16px 20px;
  display: flex; /* the inner link fills the (grid-stretched) card so heights match */
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.brew__link {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 auto; min-width: 0;
  text-decoration: none; color: inherit;
}
.brew:hover {
  transform: translateY(-6px) rotate(0.4deg);
  box-shadow: 8px 8px 0 var(--accent);
}
.brew__art {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
}
.brew__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.brew:hover .brew__art img { transform: scale(1.05); }
.brew__name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
}
.brew__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.brew__style {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.brew__abv {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1.5px solid currentColor;
  padding: 4px 8px 2px;
}
.brew__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;      /* clamp to a uniform height; full text on the detail page */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brew__more {
  margin-top: auto;           /* pin to the bottom so every card's CTA lines up */
  padding-top: 4px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.brew__more-arrow { transition: transform 0.25s ease; }
.brew:hover .brew__more-arrow { transform: translateX(4px); }

/* text-only list for rare/archive series */
.beer-catalog__list {
  columns: 3;
  column-gap: 40px;
  border-top: 3px solid var(--bg-ink);
  padding-top: 30px;
}
.beer-catalog__list li {
  break-inside: avoid;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.beer-catalog__list li span {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .beer-catalog__list { columns: 2; }
  .beer-catalog__nav { top: 64px; }
}
/* Phones: drop the sticky behaviour. Two stacked sticky bars (the navbar plus
   this nav) jitter vertically as iOS Safari collapses its address bar, which
   made the category tabs hard to tap. Static = it scrolls with the page. */
@media (max-width: 700px) {
  .beer-catalog__nav { position: static; top: auto; }
}
@media (max-width: 560px) {
  .beer-catalog__list { columns: 1; }
  .beer-catalog__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .brew__name { font-size: 24px; }
}

/* location filter sits above the category nav */
.beer-catalog__filter { padding-top: clamp(28px, 4vw, 48px); padding-bottom: 4px; }

/* no beers published: one plain line, styled like the Menus page's empty note */
.beer-catalog__empty {
  margin-top: clamp(28px, 4vw, 48px);
  border: 2px dashed var(--border-medium);
  background: var(--bg-elevated);
  padding: 44px 26px;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

/* ── 1.2.0: beers pouring nowhere ─────────────────────────────── */
/* a tag under the name: the home category (in the gathered section) or the status (when left in place) */
.brew__home,
.brew__off {
  display: inline-block;
  align-self: flex-start; /* a small tag, not a bar across the card (the card is a column flexbox) */
  margin: 2px 0 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-medium);
  padding: 4px 9px 2px;
}
/* 1.2.1: in a venue's view of that section, a beer pouring at another venue says where */
.brew__elsewhere {
  align-self: flex-start;
  margin: -6px 0 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.brew--off .brew__art img { filter: grayscale(0.85); opacity: 0.78; transition: filter 0.3s ease, opacity 0.3s ease; }
.brew--off .brew__link:hover .brew__art img,
.brew--off .brew__link:focus-visible .brew__art img { filter: none; opacity: 1; }
.beer-catalog__group--off { border-top: 3px solid var(--bg-ink); padding-top: clamp(28px, 4vw, 48px); }
