/* Where the browse pages put their content: beside the site's left menu (Live\Chrome::sidebar), centred in the room that is left, like the big sites: a whole number of cards (--cw wide, set by
   chrome.js / the first-paint script so they fill the room) and the same gutter (--gut) on both sides. --ch-side is the width of the menu in its current state (open or rail); this is the ONLY
   place the page is offset. A sliding row is as wide as the grid plus a --peek strip on each side: the next card shows a little, which tells you it slides. */
.bp { margin: 25px 0; min-height: calc(100vh - var(--ch-h, 54px)); }
.bp-content { position: relative; float: none; width: 100%; max-width: none; }
.bp-main { display: block; box-sizing: border-box; margin: 19px 0 20px; text-align: center; }
@media (min-width: 1200px) {
  body:has(.ch-sidebar:not(.is-overlay)) { --ch-side: clamp(200px, 13vw, 250px); }
  body.sidebar-rail:has(.ch-sidebar:not(.is-overlay)) { --ch-side: 64px; }
  body.sidebar-norail.sidebar-rail:has(.ch-sidebar:not(.is-overlay)) { --ch-side: 0px; } /* the admin chose: a folded menu disappears, the cards use the whole width */
  .bp-content { padding-left: var(--ch-side, 0px); box-sizing: border-box; }
  body:has(.bp) .lv-fm { margin-left: var(--ch-side, 0px); } /* the footer is centred in the room beside the menu, like the account pages: it follows the menu when it is open, folded to its rail, or gone */
  .bp-main { width: auto; height: auto; padding-left: var(--gut, 24px); }
  .bp-main .browse-head, .bp-main .home-sec-head, .bp-main .home-sec-text, .bp-main .home-rail-wrap, .bp-main .home-rail[data-scroll], .bp-main .bp-grid { padding-right: var(--gut, 24px); box-sizing: border-box; }
  .home-rail[data-scroll] .home-track { --peek: min(32px, var(--gut, 24px)); margin-inline: calc(-1 * var(--peek)); padding-inline: var(--peek); scroll-padding-inline: var(--peek); }
}
@media (max-width: 1199px) { .bp-content { padding: 0 4px; } .bp-main { width: 100%; height: auto; } }

/* the grid fades in when a page of cards is put on the screen */
.bp-fade { opacity: 0; animation: bp-fade .3s ease-in forwards; }
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }

/* "load more" at the bottom of the grid */
.bp-more { width: 100%; padding: 20px 0; text-align: center; clear: both; }
.bp-more-btn { padding: 15px 40px; border: 0; border-radius: var(--btn-r, 8px); background: linear-gradient(180deg, var(--msg-accent), var(--msg-accent-2)); color: var(--msg-on-accent); font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px color-mix(in srgb, var(--msg-black) 20%, transparent); transition: opacity .3s ease; }
.bp-more-btn:hover { opacity: .9; }
.bp-count { margin: 0 0 12px; color: var(--msg-muted); font-size: 14px; }
.bp-count[hidden] { display: none; }
.bp-spinner { margin-top: 15px; font-size: 24px; color: var(--msg-accent); }
.bp-nomore { margin: 0; opacity: .6; font-style: italic; }
