/* ── Bottom sheet (mobile-driven interaction) ─────────────────────────
 *
 * Promoted from matos's local CSS by the 2026-06-01 audit (§3.4). The
 * class names still carry the historical `matos-bs-` prefix; a future
 * naming sweep will rename to `bs-*` once campscout and secretariat
 * adopt the pattern. For now the rules live here so consumers can
 * `<link rel="stylesheet" href="/vendor/style/bottom-sheet.css">`
 * instead of duplicating the block.
 *
 * Anatomy:
 *   .matos-bottom-sheet-backdrop  fixed full-screen scrim
 *   .matos-bottom-sheet            sliding panel anchored to bottom
 *   .matos-bs-handle               drag affordance (top center)
 *   .matos-bs-header               title row
 *   .matos-bs-header h2
 *   .matos-bs-close                close button
 *   .matos-bs-toolbar              optional action row above the list
 *   .matos-bs-list                 scrollable list container
 *   .matos-bs-row                  one selectable row
 *   .matos-bs-group-header         section header inside the list
 *   .matos-bs-footer               sticky footer area
 */

.matos-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.matos-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wh);
  max-height: 70vh;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.matos-bs-handle {
  width: 36px;
  height: 4px;
  margin: var(--sp-2) auto;
  background: var(--g3);
  border-radius: 2px;
}
.matos-bs-header {
  display: flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
}
.matos-bs-header h2 {
  flex: 1;
  font-size: var(--fs-lg);
  margin: 0;
}
.matos-bs-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--fs-xl);
  color: var(--g4);
  padding: var(--sp-1) var(--sp-2);
}
.matos-bs-toolbar {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
}
.matos-bs-list {
  padding: 0;
}
.matos-bs-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-2) var(--sp-4);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.matos-bs-row:active {
  background: var(--g1);
}
.matos-bs-group-header {
  padding: var(--sp-2) var(--sp-4) var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--g4);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.matos-bs-footer {
  padding: var(--sp-3) var(--sp-4);
}
