/* Expanded runtime CSS entrypoint. Keep this file import-free for WebView route transitions. */

/* brigades-desktop/01-brigades-desktop.css */
.brigades-page-shell {
  background: var(--page-backdrop) !important;
}

.sb-public-page-shell .brigades-page-main {
  flex: 0 0 auto;
  min-height: 0;
}

.brigades-page-shell .wrap, .brigades-page-shell .wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 24px;
}

.brigades-page-shell a {
  color: inherit;
}

.brigades-page-shell .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  color: var(--foreground);
  font-size: var(--text-xs);
}

.brigades-page-shell .crumb a {
  text-decoration: none;
}

.brigades-page-shell .crumb a:hover {
  color: var(--foreground);
}

.brigades-page-shell .crumb svg {
  width: 13px;
  height: 13px;
}

.brigades-page-shell .crumb span {
  color: var(--foreground);
}

.brigades-page-shell .searchrow {
  display: flex;
  gap: 12px;
  margin: 20px 0 14px;
}

.brigades-page-shell .searchrow .sb-input-group {
  display: flex;
  flex: 1;
  align-items: center;
  height: 3.25rem;
  overflow: hidden;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.brigades-page-shell .searchrow .sb-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.85 0.12 95 / 0.4);
}

.brigades-page-shell .searchrow .sb-icon {
  position: static !important;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  color: var(--foreground);
  flex: none;
}

.brigades-page-shell .searchrow .sb-input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-base);
  outline: none;
  padding: 0 16px 0 12px;
}

.brigades-page-shell .search-go {
  height: 3.25rem;
  flex: none;
  gap: 8px;
}

.brigades-page-shell .search-go svg {
  width: 17px;
  height: 17px;
}

/* Opens the filter sheet on a phone. Hidden here because above 640px the bar it opens is
   already on the page, and a button that reveals what you can see reads as a broken control. */
.brigades-page-shell .brigades-filter-mobile-bar { display: none; }

.brigades-filter-trigger { align-items: center; gap: 8px; }

.brigades-filter-trigger-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* The filters that are on, along the top of the board. Scrolls sideways rather than wrapping:
   four chips wrap to two rows on a narrow phone, and the second row pushes the performers down
   again -- which is the whole problem the sheet was opened to solve. */
.brigades-page-shell .brigades-filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }

.brigades-page-shell .brigades-filter-chips::-webkit-scrollbar { display: none; }

.brigades-page-shell .brigades-filter-chip { flex: none; height: 34px; padding: 0 13px; gap: 6px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Dark fill for a filter that is on, as in the mockup: colour alone would not survive a
   greyscale screen, so the chip also carries aria-pressed for anything that is not looking. */
.brigades-page-shell .brigades-filter-chip[data-active="true"] { background: var(--selected); border-color: var(--selected); color: var(--on-selected); }

.brigades-page-shell .brigades-filter-chip-chevron { width: 15px; height: 15px; opacity: .7; }

.brigades-filter-sheet-actions { display: flex; align-items: center; gap: 10px; }

.brigades-filter-sheet-actions > :last-child { flex: 1; min-width: 0; }

.brigades-page-shell .filterbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.brigades-page-shell .fb-row {
  display: grid;
  grid-template-columns: 240px 300px 300px minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

/*
 * The row above is three fixed fields, a spacer and the buttons: about 1230px. Below 1280 the
 * window is narrower than that and the row does not wrap, so the whole board was wider than the
 * window -- by 461px at 768, measured on production -- and scrolled sideways. Here the fields
 * share the width and the buttons take a row of their own.
 */
@media (min-width: 641px) and (max-width: 1280px) {
  .brigades-page-shell .fb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brigades-page-shell .fb-spacer {
    display: none;
  }

  /* The row's last child is the buttons. Named by position, not by its class: the same block is
     drawn inside the phone's filter sheet, which a rule scoped to this shell cannot reach. */
  .brigades-page-shell .fb-row > :last-child {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.brigades-page-shell .fb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brigades-page-shell .fb-field > label, .fb-field-label {
  color: var(--foreground);
  font-size: var(--text-xs);
  font-weight: 600;
}

.brigades-page-shell .fb-spacer {
  min-width: 0;
}

.brigades-page-shell .obj-dd {
  position: relative;
  min-width: 0;
}

.fake-select, .brigades-page-shell .cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 2.75rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-base);
  text-align: left;
}

.fake-select {
  width: 100%;
  min-width: 0;
  padding: 0 12px 0 14px;
  justify-content: space-between;
}

.brigades-page-shell .cat-trigger {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  text-decoration: none;
}

.brigades-page-shell [data-slot="button"].fake-select, .brigades-page-shell [data-slot="button"].cat-trigger {
  appearance: none;
}

.fake-select:hover, .brigades-page-shell .cat-trigger:hover {
  border-color: oklch(0.82 0 0);
}

/* brigades-desktop/02-brigades-desktop.css */
.brigades-page-shell .cat-trigger .ct-lead {
  width: 18px;
  height: 18px;
  color: var(--primary-hover);
  flex: none;
}

.brigades-page-shell .cat-trigger .ct-label, .fake-select span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.brigades-page-shell .cat-trigger .ct-label {
  flex: 1;
}

.brigades-page-shell .cat-trigger .ct-chev, .fake-select svg {
  width: 17px;
  height: 17px;
  color: var(--muted-foreground);
  flex: none;
}

.brigades-filter-sheet-list {
  display: grid;
  gap: 4px;
}

.brigades-filter-sheet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  width: 100%;
  gap: 16px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.brigades-filter-sheet-option:hover, .brigades-filter-sheet-option[data-active="true"] {
  background: var(--muted);
}

.brigades-filter-sheet-option[data-active="true"] {
  font-weight: 700;
}

.brigades-filter-sheet-option svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-success);
}

.brigades-more-filters-options {
  display: grid;
  gap: 4px;
}

.brigades-more-filters-option.brigades-filter-sheet-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  justify-content: start;
}

.brigades-more-filters-option-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
  color: var(--foreground);
}

.brigades-more-filters-option[data-active="true"] .brigades-more-filters-option-check {
  border-color: var(--primary);
  background: var(--primary);
}

.brigades-more-filters-option-check svg {
  width: 14px;
  height: 14px;
  color: var(--foreground);
}

@media (min-width: 641px) {
  .brigades-more-filters-sheet.sb-mobile-sheet, .brigades-more-filters-sheet.sb-mobile-sheet[data-snap="content"][data-content-height="ready"], .brigades-more-filters-sheet.sb-mobile-sheet[data-snap="full"] {
    width: min(680px, 94vw);
    max-height: min(640px, calc(100dvh - 48px));
  }

  .brigades-more-filters-sheet .sb-mobile-sheet-head {
    min-height: 72px;
    padding: 20px 24px 18px;
  }

  .brigades-more-filters-sheet .sb-mobile-sheet-title {
    font-size: var(--text-h4);
    line-height: 1.1;
  }

  .brigades-more-filters-sheet-body {
    padding: 18px 24px;
  }

  .brigades-more-filters-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .brigades-more-filters-option.brigades-filter-sheet-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    justify-content: start;
    min-height: 52px;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    font-size: var(--text-sm);
    font-weight: 600;
  }

  .brigades-more-filters-option.brigades-filter-sheet-option:hover {
    border-color: oklch(0.82 0 0);
    background: var(--muted);
  }

  .brigades-more-filters-option.brigades-filter-sheet-option[data-active="true"] {
    border-color: var(--primary);
    background: color-mix(in oklch, var(--primary) 10%, var(--card));
    font-weight: 700;
  }

  .brigades-more-filters-sheet-foot {
    padding: 0;
  }

  .brigades-more-filters-sheet-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
  }

  .brigades-more-filters-sheet-actions .brigades-filter-sheet-reset {
    min-width: 160px;
  }
}

.brigades-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  display: grid;
  width: max-content;
  min-width: 100%;
  max-height: min(360px, calc(100vh - 160px));
  gap: 4px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--popover, var(--background));
  box-shadow: 0 18px 44px oklch(0.145 0 0 / 0.16);
}

.brigades-filter-menu[hidden] {
  display: none;
}

.brigades-filter-menu--wide {
  width: min(360px, calc(100vw - 48px));
}

.brigades-page-shell .brigades-filter-menu--sort {
  right: 0;
  left: auto;
  min-width: 220px;
}

.brigades-filter-menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  width: 100%;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.brigades-filter-menu-option:hover, .brigades-filter-menu-option:focus-visible, .brigades-filter-menu-option[data-active="true"] {
  background: var(--muted);
  outline: none;
}

.brigades-filter-menu-option[data-active="true"] {
  font-weight: 700;
}

.brigades-filter-menu-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brigades-filter-menu-option svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-success);
}

.rate-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 2.75rem;
}

.rate-inputs .sb-input {
  width: 110px;
  height: 100%;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  padding: 0 12px;
}

.rate-inputs span {
  color: var(--foreground);
}

.fb-end {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-end;
}

.more-filters {
  height: 2.75rem;
  gap: 7px;
}

.more-filters svg {
  width: 16px;
  height: 16px;
}

.brigades-page-shell .reset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 2.75rem;
  border: none;
  background: none;
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  text-decoration: none;
}

.brigades-page-shell .reset-link:hover {
  color: var(--foreground);
}

.brigades-page-shell .reset-link svg {
  width: 14px;
  height: 14px;
}

.brigades-page-shell .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.brigades-page-shell .toolbar .count {
  color: var(--foreground);
  font-size: var(--text-sm);
}

.brigades-page-shell .toolbar .count b {
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.brigades-page-shell .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brigades-page-shell .sort-dd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brigades-page-shell .sort-dd label, .brigades-page-shell .sort-label {
  color: var(--foreground);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.brigades-page-shell .sort-dd .fake-select {
  min-width: 190px;
  height: 2.5rem;
}

/* brigades-desktop/03-brigades-desktop.css */
.brigades-page-shell .view-toggle {
  display: inline-flex;
  height: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

.brigades-page-shell .view-toggle [data-slot="button"] {
  display: grid;
  place-items: center;
  width: 40px;
  height: 100%;
  border: none;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.brigades-page-shell .view-toggle [data-slot="button"] + [data-slot="button"] {
  border-left: 1px solid var(--border);
}

.brigades-page-shell .view-toggle [data-slot="button"][data-active="true"] {
  background: var(--muted);
  color: var(--foreground);
}

.brigades-page-shell .view-toggle svg {
  width: 17px;
  height: 17px;
}

.brigades-page-shell .feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.brigades-page-shell .feed[data-view="list"] {
  grid-template-columns: 1fr;
}

.brigades-page-shell .wcard {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
}

.brigades-page-shell .wcard[data-view="list"] {
  flex-direction: row;
  align-items: stretch;
}

.brigades-page-shell .wcard[data-view="list"] .wcard-top {
  min-width: 0;
  flex: 1;
}

.brigades-page-shell .wcard[data-view="list"] .wcard-photo {
  width: 88px;
  height: 88px;
}

.brigades-page-shell .wcard[data-view="list"] .wcard-foot {
  width: 260px;
  border-top: none;
  border-left: 1px solid var(--border);
  flex: none;
}

.brigades-page-shell .wcard-top {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 16px;
}

.brigades-page-shell .wcard-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--secondary);
  background-position: center;
  background-size: cover;
  color: var(--foreground);
  flex: none;
}

.brigades-page-shell .wcard-photo > svg, .brigades-page-shell .wcard-photo > [data-slot="icon-anchor"] > svg {
  width: 26px;
  height: 26px;
  opacity: 0.4;
}

/* Saving a performer sits on the photo rather than beside the two footer actions: it is a
   different kind of act from opening a profile or writing, and the footer already carries both.
   A Button, so the primitive's own size and centring are dropped with size={null}. */
.brigades-page-shell .wcard-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: color-mix(in oklch, var(--card) 88%, transparent);
  color: var(--foreground);
}

.brigades-page-shell .wcard-fav:hover {
  background: var(--card);
}

.brigades-page-shell .wcard-fav svg {
  width: 16px;
  height: 16px;
}

/* Filled, not merely tinted: at 16px a colour change alone is easy to miss, and the whole point
   of the control is telling saved from unsaved at a glance. */
.brigades-page-shell .wcard-fav[data-active="true"] svg {
  fill: currentColor;
}

.brigades-page-shell .wcard-photo .kind {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: oklch(0.145 0 0 / 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.brigades-page-shell .wcard-photo .kind svg {
  width: 11px;
  height: 11px;
}

.brigades-page-shell .wcard-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.brigades-page-shell .wcard-promotion {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-bottom: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-accent-subtle);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
}

.brigades-page-shell .wcard-promotion svg {
  width: 13px;
  height: 13px;
  color: var(--primary-hover);
}

.brigades-page-shell .wcard-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--foreground);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brigades-page-shell .wcard-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brigades-page-shell .wcard-spec {
  margin-top: 3px;
  color: var(--foreground);
  font-size: var(--text-sm);
}

.brigades-page-shell .wcard-rrow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.brigades-page-shell .wcard-rate {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* brigades-desktop/04-brigades-desktop.css */
.brigades-page-shell .wcard-rate .u {
  color: var(--foreground);
  font-size: var(--text-xs);
  font-weight: 500;
}

.brigades-page-shell .wcard-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--foreground);
  font-size: var(--text-xs);
}

.brigades-page-shell .wcard-meta svg {
  width: 13px;
  height: 13px;
}

.brigades-page-shell .wcard-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.brigades-page-shell .wskill {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  -webkit-touch-callout: none;
}

.brigades-page-shell .wskill--spec {
  padding: 5px 13px;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Free to start: green, and with the same dot the profile hero uses, so the two screens say
   availability the same way. Measured 6.87:1 on the tint, over the 4.5 floor for 11px text. */
.brigades-page-shell .wskill--free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: oklch(0.45 0.15 149 / 0.28);
  background: var(--surface-success-subtle);
  color: var(--text-success);
  font-weight: 600;
}

.brigades-page-shell .wskill--free .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.brigades-page-shell .wskill--spec a {
  color: inherit;
  pointer-events: none;
  text-decoration: none;
}

.brigades-page-shell .wcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.brigades-page-shell .wcard-rev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.brigades-page-shell .wcard-rev svg {
  width: 15px;
  height: 15px;
  color: #e0a800;
}

.brigades-page-shell .wcard-rev .rv {
  color: var(--foreground);
  font-weight: 400;
}

.brigades-page-shell .wcard-actions {
  display: flex;
  gap: 8px;
}

.brigades-page-shell .pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.brigades-page-shell .pager a, .brigades-page-shell .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  color: var(--foreground);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.brigades-page-shell .pager a:hover {
  background: var(--muted);
}

.brigades-page-shell .pager .is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
}

.brigades-page-shell .pager .edge[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* The ellipsis for skipped pages: a mark between the buttons, not a button itself. */
.brigades-page-shell .pager .dots {
  min-width: 24px;
  padding: 0;
  border: none;
  background: none;
  pointer-events: none;
}

.brigades-page-shell .empty {
  padding: 60px 24px;
  color: var(--foreground);
  text-align: center;
}

.brigades-page-shell .empty svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  opacity: 0.4;
}

.brigades-page-shell .empty p {
  margin: 12px 0 20px;
  font-size: var(--text-sm);
}

.brigades-page-shell .seo-band {
  margin-top: 44px;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.brigades-page-shell .seo-block {
  padding: 40px 0 60px;
}

.brigades-page-shell .seo-block h2 {
  margin: 0 0 22px;
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brigades-page-shell .seo-catcols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}

.brigades-page-shell .seo-cat {
  display: flex;
  flex-direction: column;
}

/* brigades-desktop/05-brigades-desktop.css */
.brigades-page-shell .seo-cat h3 {
  margin: 0 0 12px;
  font-size: var(--text-base);
  font-weight: 700;
}

/* Links, and still text: the brand yellow on a white page read 1.73:1. The other pages' link
   lists are in the text colour and underline on hover; this one had kept the mockup's yellow. */
.brigades-page-shell .seo-cat a, .brigades-page-shell .seo-cols a {
  padding: 4px 0;
  color: var(--foreground);
  font-size: var(--text-sm);
  text-decoration: none;
}

.brigades-page-shell .seo-cat a:hover, .brigades-page-shell .seo-cols a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brigades-page-shell .seo-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 24px;
}

@media (max-width: 1024px) {
  .brigades-page-shell .feed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .brigades-page-shell .seo-cols, .brigades-page-shell .seo-catcols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /*
   * The filters move into a sheet, and the button that opens it appears.
   *
   * Inline the bar stands 380px tall; with the banner and search above it the first performer
   * began at y=812 on a 390px screen. 640px is the width this board already treats as a phone --
   * the filter row, search row and toolbar all stack here -- so the swap happens with them
   * rather than on a breakpoint of its own.
   */
  .brigades-page-shell .brigades-filterbar-inline {
    display: none;
  }

  /*
   * The button and the chips share one sideways-scrolling row, as in the mockup. Stacking them
   * would cost a second row of height on the one screen this whole change exists to shorten.
   */
  .brigades-page-shell .brigades-filter-mobile-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 -16px 14px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .brigades-page-shell .brigades-filter-mobile-bar::-webkit-scrollbar {
    display: none;
  }

  /* The row scrolls, so the button must not be squeezed by the chips beside it: it is the only
     way to the rest of the filters, and a shrunk one loses its label before its icon. */
  .brigades-filter-trigger {
    display: inline-flex;
    flex: none;
  }

  /* The chips already sit inside the row's own gutter and scroll with it, so they drop the
     negative margin and padding that make them a scroller of their own on a wider screen --
     doubled, those would indent the first chip by 32px and scroll two boxes against each other. */
  .brigades-page-shell .brigades-filter-chips {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .sb-chrome-header {
    overflow: hidden;
  }

  .sb-chrome-header .sb-chrome-inner {
    min-width: 0;
    padding: 0 16px;
  }

  .sb-chrome-header .sb-nav, .sb-chrome-header .sb-chrome-right {
    display: none;
  }

  .brigades-page-shell .wrap, .brigades-page-shell .wrap {
    padding: 0 16px;
  }

  .brigades-page-shell .searchrow, .brigades-page-shell .fb-row, .brigades-page-shell .toolbar, .brigades-page-shell .toolbar-right {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .brigades-page-shell .toolbar {
    gap: 14px;
  }

  .brigades-page-shell .toolbar-right {
    width: 100%;
  }

  .brigades-page-shell .sort-dd {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .brigades-page-shell .sort-label {
    font-size: 15px;
    line-height: 1.3;
  }

  .brigades-page-shell .search-go, .fake-select, .brigades-page-shell .cat-trigger, .more-filters, .brigades-page-shell .reset-link, .brigades-page-shell .sort-dd .fake-select {
    width: 100%;
  }

  .brigades-page-shell .view-toggle {
    width: 100%;
  }

  /*
   * Each segment fills its half of the bar.
   *
   * The desktop rule sizes a segment through `[data-slot="button"]` at 40px, which is (0,3,0).
   * The phone rule here was written as `.view-toggle button` -- (0,2,1) -- and the shared sheet's
   * `body.sb .view-toggle button` is (0,2,2), so both lost and the segments stayed 40px wide
   * inside two half-width tracks: one icon at the far left, one in the middle, and an active
   * background the size of the icon. Same selector as the desktop rule, so the later one wins.
   */
  .brigades-page-shell .view-toggle [data-slot="button"] {
    width: 100%;
  }

  .rate-inputs .sb-input {
    width: 100%;
  }

  .brigades-page-shell .wcard-top {
    flex-direction: column;
  }

  .brigades-page-shell .wcard-photo {
    width: 100%;
    height: 180px;
  }

  .brigades-page-shell .wcard[data-view="list"] {
    flex-direction: column;
  }

  .brigades-page-shell .wcard[data-view="list"] .wcard-top {
    flex-direction: row;
    gap: 12px;
    padding: 14px;
  }

  .brigades-page-shell .wcard[data-view="list"] .wcard-photo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }

  .brigades-page-shell .wcard[data-view="list"] .wcard-photo .kind {
    right: auto;
    bottom: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    gap: 3px;
    padding: 2px 5px;
    font-size: 9px;
    line-height: 1.1;
  }

  .brigades-page-shell .wcard[data-view="list"] .wcard-photo .kind svg {
    width: 9px;
    height: 9px;
  }

  .brigades-page-shell .wcard[data-view="list"] .wcard-rrow {
    gap: 6px;
  }

  .brigades-page-shell .wcard[data-view="list"] .wcard-foot {
    width: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    border-left: none;
  }

  .brigades-page-shell .wcard-actions {
    gap: 10px;
  }

  .brigades-page-shell .wcard-actions [data-slot="button"] {
    min-height: 52px;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.15;
  }

  .brigades-page-shell .wcard-actions [data-slot="button"] svg {
    width: 18px !important;
    height: 18px !important;
  }

  .brigades-page-shell .seo-cols, .brigades-page-shell .seo-catcols {
    grid-template-columns: 1fr;
  }
}
