/* /cards — the full catalogue, by occasion, paginated.
   Loaded on top of landing.css, whose tokens it uses. Scoped to .br-* so it cannot reach into
   the rest of the site. */

/* The filter row and the count sit together: the count is the answer to what the chips just
   did, and it belongs beside them rather than above the grid on its own. */
.br-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 26px 0 18px;
}
.br-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.br-chip {
  font: inherit; font-size: .82rem; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; line-height: 1.2;
}
.br-chip span { color: var(--muted); font-size: .76rem; margin-left: 3px; }
.br-chip:hover { border-color: var(--line-2); color: var(--text); }
.br-chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #241c05; font-weight: 650;
}
.br-chip[aria-pressed="true"] span { color: #4a3a0c; }
.br-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.br-count { font-size: .8rem; color: var(--muted); margin: 6px 0 0; white-space: nowrap; }

/* auto-fill, not auto-fit: a single card on a wide screen should stay card-sized rather than
   stretching to 1100px wide, which is what auto-fit does and it looks like a bug. */
.br-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.br-tile {
  display: flex; flex-direction: column; gap: 9px;
  text-decoration: none; color: inherit;
  border-radius: 14px; padding: 10px;
  border: 1px solid transparent;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.br-tile:hover {
  border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px);
}
.br-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* aspect-ratio rather than a fixed height: the canvas is 500x700 and the tile should be the
   same shape at any column width. */
.br-art {
  width: 100%; aspect-ratio: 5 / 7; display: block;
  border-radius: 9px; background: var(--panel-2);
  border: 1px solid var(--line);
}

.br-row { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.br-name {
  font-size: .86rem; color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.br-price { font-size: .8rem; color: var(--accent); font-weight: 650; flex: none; }

.br-empty { color: var(--muted); font-size: .9rem; padding: 40px 0; text-align: center; }

.br-pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 30px 0 10px; flex-wrap: wrap;
}
.br-pg {
  font: inherit; font-size: .84rem; min-width: 38px; height: 38px; padding: 0 11px;
  color: var(--text-2); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.br-pg:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); }
.br-pg.is-on {
  background: var(--accent); border-color: var(--accent); color: #241c05; font-weight: 700;
}
.br-pg:disabled { opacity: .35; cursor: default; }
.br-pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.br-gap { color: var(--muted); padding: 0 2px; }

.br-foot {
  font-size: .82rem; color: var(--muted); line-height: 1.6;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .br-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .br-bar { margin: 20px 0 14px; }
  .br-count { white-space: normal; }
  /* 44px, because this is the control people press most on a phone. */
  .br-pg { min-width: 44px; height: 44px; }
}
