/* =====================================================================
   /browse/: the catalog. H1, one line, subject chips, then one shelf per series (catalog order) and the CTA band.
   Builds on panelab.css (.sec--row, .row, .tile, .badge, .cta-band). SLICE! Episodes 2 and 3 look like the home row
   (sharp art, the Members badge). The coming-soon series blur and wash out their stills under a plain ink lock, so
   nothing looks readable that is not out yet.
   ===================================================================== */

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

/* ---------- top: title, line, chips ---------- */
.bw-top { padding: var(--s7) var(--gut) var(--s4); }
.bw-top h1 { margin: 0 0 10px; font: 800 var(--t-h1)/1 var(--display); letter-spacing: -.02em; }
.bw-line { margin: 0 0 var(--s5); color: var(--ink-2); font-size: var(--t-body); line-height: 1.45; text-wrap: pretty; }
.bw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-chip { min-height: var(--tap); min-width: 64px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 var(--t-small)/1 var(--body); cursor: pointer; transition: background .15s, border-color .15s; }
.bw-chip:hover { background: var(--surface-2); }
.bw-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bw-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- one shelf per series ---------- */
.bw-rows { padding-bottom: var(--s5); }
.bw-series[hidden] { display: none; }
.bw-series.sec--row { padding-top: var(--s5); }
.bw-series__head { display: flex; align-items: center; gap: 8px 16px; margin: 0 0 4px; }
.bw-series__head h2 { margin: 0; line-height: 0; }
.bw-logo { display: block; width: auto; height: 44px; }
#slice .bw-logo { height: 46px; }
.bw-tag { padding: 3px 10px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font: 600 var(--t-meta)/1.4 var(--body); white-space: nowrap; }
.bw-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); padding: 0 0 0 8px; color: var(--ink); font: 700 var(--t-small)/1 var(--body); text-decoration: none; white-space: nowrap; }
.bw-more .ic { width: 18px; height: 18px; }
.bw-more:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- locked tiles ---------- */
.tile__art { position: relative; }
.bw-lock { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.bw-lock .ic { width: 24px; height: 24px; color: var(--ink); }
/* coming soon: the still, lightly blurred and washed toward the canvas, the lock on top */
.tile--soon-art .tile__art img { filter: blur(3px) saturate(.75); transform: scale(1.08); }
.tile--soon-art .tile__art::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--canvas) 45%, transparent); }
.tile--soon-art .bw-lock { z-index: 1; }
.tile--soon-art .tile__meta { color: var(--ink-3); }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .bw-top { padding-top: var(--s6); }
  .bw-line { font-size: var(--t-small); }
  .bw-chip { padding: 0 16px; }
  .bw-series__head { flex-wrap: wrap; gap: 6px 12px; }
  .bw-logo { height: 34px; }
  #slice .bw-logo { height: 36px; }
  .bw-tag { font-size: 13px; padding: 2px 8px; }
  body[data-page="browse"] .row { grid-auto-columns: calc((100% - 2 * var(--row-gap)) / 2.3); }
  .bw-rows .tile__title { font-size: 15px; }
  .bw-rows .tile > .badge { top: calc(62.5cqw - 6px); left: 6px; padding: 3px 7px; font-size: 12px; }
  .bw-rows .tile > .badge .ic { width: 12px; height: 12px; }
  .tile--soon-art .tile__art img { filter: blur(2px) saturate(.75); }
}
@media (max-width: 560px) {
  /* logo and More info on one line, the subject under the logo */
  .bw-series__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo more" "tag tag"; justify-items: start; gap: 2px 12px; margin-bottom: 2px; }
  .bw-series__head h2 { grid-area: logo; }
  .bw-tag { grid-area: tag; }
  .bw-more { grid-area: more; }
  .bw-wide { display: none; }
}
@media (max-width: 480px) {
  .bw-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bw-chip { min-width: 0; padding: 0 8px; }
}
