/* The cause rail and the Cause select (design K3, Explorations/Across causes, boards d17fc15292c90347 at 1440, 56039e4eadc6d113
   at 1024, d582db25bf9c9e85 the states). At 1280 px and up a 216 px rail 52 px from the edge, the page beside it (48 px in,
   100 px from the right edge); below, the rail gives way to the select above the title. Linked by the desk, the contributors
   and the feed pages; js/cause-rail.js marks the current row and builds the select. */
.cr-page { display: grid; grid-template-columns: 216px minmax(0, 1fr); max-width: 1440px; margin-inline: auto; padding-left: 52px; } /* the 1440 board, centred on a wider screen */
.cr-page > main { min-width: 0; padding-left: 48px; padding-right: 100px; }
.cr-rail { display: flex; flex-direction: column; align-self: start; padding-top: 56px; }
.cr-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-6); color: var(--color-ink); text-decoration: none; }
.cr-item b { font: 500 14px/1.21 var(--sans); }
.cr-item span { font: 400 12px/1.25 var(--sans); color: var(--color-ink-meta); }
.cr-item span:empty { display: none; }
.cr-item:hover { background: var(--color-surface-sunk); }
.cr-item:focus-visible { outline: 1.5px solid var(--color-ink); outline-offset: -1.5px; }
.cr-item.is-current { background: var(--color-ink); color: var(--color-surface); }
.cr-item.is-current b { font-weight: 600; }
.cr-item.is-current span { color: var(--color-surface); }
.cr-group { padding: 10px 12px; font: 600 11px/1.18 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--color-ink-meta); }

/* The select: "Cause" and a small box with the cause's name and a chevron (1024 board). */
.cr-cause { display: none; align-items: center; gap: 8px; }
.cr-select-label { font: 400 12px/1.25 var(--sans); color: var(--color-ink-meta); }
.cr-select-box { position: relative; display: inline-flex; align-items: center; }
.cr-select { appearance: none; padding: 4px 26px 4px 9px; border: 1px solid var(--color-rule-verify); border-radius: var(--radius-6); background: var(--color-surface-raised); font: 500 12px/1.25 var(--sans); color: var(--color-ink); cursor: pointer; }
.cr-select:focus-visible { outline: 1.5px solid var(--color-ink); outline-offset: 1px; }
.cr-select-box svg { position: absolute; right: 9px; pointer-events: none; color: var(--color-ink-secondary); }

@media (max-width: 1279px) {
  .cr-page { display: block; padding-left: 0; }
  .cr-page > main { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cr-rail { display: none; }
  .cr-cause:not([hidden]) { display: inline-flex; }
}
@media (max-width: 760px) { .cr-select { min-height: 44px; font-size: 14px; } }

/* The desk beside the rail (Ami 26 Nov 22:2xZ, "rail and three"), 1:1 to the export pequalnp_desk_rail_1127 (Explorations/Desk
   rail + 3-up: D1 093ac2b4e11e8bc4 at 1440, D2b 2566c721a68b7b50 at 1280, D3 be69f1ceefff7045 at 1024): the rail from 1024 px,
   not 1280, with the Cause select hidden beside it; the cards 32 px from the rail and 64 px from the right edge, three a row
   from 1440 (345 px, gap 20), two below (448 px at 1280); at 1024 the cards 24 px from the rail and the edge (346 px, gap 16).
   Below 1024, as Contributors: the Cause select above the title. */
@media (min-width: 1024px) {
  .cr-desk .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-desk.cr-page > main { padding-left: 32px; padding-right: 64px; }
}
@media (min-width: 1440px) { .cr-desk .dk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .cr-desk.cr-page { display: grid; padding-left: 52px; }
  .cr-desk.cr-page > main { padding-left: 24px; padding-right: 24px; }
  .cr-desk .cr-rail { display: flex; }
  .cr-desk .cr-cause:not([hidden]) { display: none; }
  .cr-desk .dk-grid { gap: 16px; }
}
@media (max-width: 760px) { .cr-desk.cr-page > main { padding-left: 20px; padding-right: 20px; } } /* the phone, 20 px in (export at 390) */

/* Filters (design K3): on one line at 1440; at 768 px and below a Filters button and a sheet (the 390 sheet c40f4121e9d44d8c). */
.cr-filters-open { display: none; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--color-rule-verify); border-radius: var(--radius-6); background: var(--color-surface-raised); font: 500 12px/1.25 var(--sans); color: var(--color-ink); cursor: pointer; }
.cr-filters-open .narrow { display: none; }
.cr-filters-open b { font-weight: 600; }
.cr-sheet { inset: auto 0 0; width: 100%; max-width: 100%; margin: 0; padding: 0 0 max(16px, env(safe-area-inset-bottom)); border: 0; border-radius: var(--radius-16) var(--radius-16) 0 0; background: var(--color-surface-raised); color: var(--color-ink); }
.cr-sheet::backdrop { background: var(--a-27-26-23-01); }
.cr-sheet::before { content: ''; display: block; width: 36px; height: 4px; margin: 8px auto 0; border-radius: var(--radius-full); background: var(--color-rule-strong); }
.cr-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--color-rule); }
.cr-sheet-head h2 { font: 600 14px/1.25 var(--mono); }
.cr-sheet-head p { font: 400 12px/1.25 var(--sans); color: var(--color-ink-meta); }
.cr-sheet-close { width: 44px; height: 44px; margin: -10px -10px 0 0; border: 0; background: none; font: 400 26px/1 var(--sans); color: var(--color-ink); cursor: pointer; }
.cr-sheet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--color-rule); }
.cr-sheet-row:last-child { border-bottom: 0; }
.cr-sheet button.dk-level, .cr-sheet button.dk-kind { cursor: pointer; min-height: 32px; }
.cr-sheet button[aria-pressed='true'] { box-shadow: 0 0 0 1.5px var(--color-ink); }
.cr-sheet.is-picking button[aria-pressed='false']:is(.dk-level, .dk-kind) { opacity: 0.45; }
@media (max-width: 768px) {
  .cr-page .dk-filters { flex-wrap: nowrap; justify-content: space-between; gap: 12px; } /* the Filters button, the sort at the right edge (export pequalnp_desk_rail_1127 at 390) */
  .cr-page .dk-filters > .dk-filter { display: none; }
  .cr-filters-open { display: inline-flex; }
}
@media (max-width: 600px) { .cr-filters-open { min-height: 44px; } .cr-filters-open .wide { display: none; } .cr-filters-open .narrow { display: inline; } }
.hub-head .cr-cause { margin: 8px 0 4px; }
@media (max-width: 768px) { .cr-page .filters > :is(.pills, .picks) { display: none; } .cr-sheet .cr-sheet-row > :is(.pills, .picks) { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; } }
/* Beside the rail the list column is narrower: the "Your agent here" row gives its sparkline room to its words (board 6951b0ccda054225). */
@media (min-width: 1280px) { .cr-page .lb-row.yours { grid-template-columns: 24px 32px minmax(0, 1fr) 28px 40px auto; } }
/* A locked cause's row (build.mjs RD_LOCKED; ui-lab raredx_locked_1127): no link, its name muted, its countdown, the lock at its top right. */
.cr-item.is-locked { position: relative; cursor: default; } .cr-item.is-locked:hover { background: none; }
.cr-item.is-locked b { color: var(--color-ink-muted); }
.cr-item.is-locked .ico-lock { position: absolute; top: 11px; right: 12px; color: var(--color-ink-muted); }
