/* /roadmap search / filter / sort toolbar (roadmap-tools.js).
   Page-specific styles only; the card shell (.rw-card) comes from
   the shared stylesheets. Filtering uses display:none and sorting
   uses CSS `order` on the existing .rm-grid (CSS grid) items, so
   the cheer / launch modules' DOM work is never disturbed. */

.rmt-bar { padding: 18px 20px; }
.rmt-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rmt-row + .rmt-row { margin-top: 14px; }

.rmt-field { display: flex; flex-direction: column; gap: 6px; flex: 0 1 auto; }
.rmt-field > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--faint, #8B90A5); text-transform: uppercase; }
.rmt-field input[type="search"],
.rmt-field select {
  background: rgba(10, 15, 30, .85);
  border: 1px solid #39415F;
  border-radius: 10px;
  color: var(--text, #EDEFF7);
  font: inherit; font-size: 14px;
  padding: 9px 12px;
  min-height: 42px;
}
.rmt-field input[type="search"]:focus,
.rmt-field select:focus { outline: none; border-color: rgba(255, 215, 0, .65); }
.rmt-search { flex: 1 1 240px; }
.rmt-search input { width: 100%; }

.rmt-chips { align-items: center; }
.rmt-chips-lab { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--faint, #8B90A5); text-transform: uppercase; margin-inline-end: 2px; }
.rmt-chip {
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted, #A7ACC2);
  background: rgba(10, 15, 30, .6);
  border: 1px solid #39415F;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}
.rmt-chip .rmt-chip-n { font-size: 11.5px; font-weight: 800; color: var(--faint, #8B90A5); }
.rmt-chip.on {
  color: #0A0F1E;
  background: linear-gradient(90deg, #FFD700, #FFC46B);
  border-color: rgba(255, 215, 0, .8);
}
.rmt-chip.on .rmt-chip-n { color: rgba(10, 15, 30, .65); }
.rmt-chip:focus-visible { outline: 2px solid rgba(255, 215, 0, .8); outline-offset: 2px; }

/* Status filter buttons use the SAME colors as the card status chips
   (.rm-chip-* in roadmap.css) — the filter categories map 1:1 onto
   chips: live = chip "live", pre = chip "pre", prep = chip "prep"
   (the category also gathers the dev/plan chips, per catOf()),
   idea = chip "idea". The "all" button stays neutral (gold when on).
   Unselected = the chip look (colored text / border / faint tint +
   dot); selected = a solid fill of the same color with dark text and
   a glow, so the on/off state reads from fill density, not hue alone. */
.rmt-chip[data-rmt-cat="live"],
.rmt-chip[data-rmt-cat="pre"],
.rmt-chip[data-rmt-cat="prep"],
.rmt-chip[data-rmt-cat="idea"] { display: inline-flex; align-items: center; gap: 7px; }
.rmt-chip[data-rmt-cat="live"]::before,
.rmt-chip[data-rmt-cat="pre"]::before,
.rmt-chip[data-rmt-cat="prep"]::before,
.rmt-chip[data-rmt-cat="idea"]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}
.rmt-chip[data-rmt-cat="live"] { color: #7DFFB2; border-color: rgba(125, 255, 178, .55); background: rgba(125, 255, 178, .09); }
.rmt-chip[data-rmt-cat="pre"]  { color: #7AE0FF; border-color: rgba(122, 224, 255, .6);  background: rgba(122, 224, 255, .10); }
.rmt-chip[data-rmt-cat="prep"] { color: #B388FF; border-color: rgba(179, 136, 255, .6);  background: rgba(179, 136, 255, .10); }
.rmt-chip[data-rmt-cat="idea"] { color: #A7ACC2; border-color: rgba(167, 172, 194, .55); background: rgba(167, 172, 194, .08); }
.rmt-chip[data-rmt-cat="live"] .rmt-chip-n,
.rmt-chip[data-rmt-cat="pre"] .rmt-chip-n,
.rmt-chip[data-rmt-cat="prep"] .rmt-chip-n,
.rmt-chip[data-rmt-cat="idea"] .rmt-chip-n { color: inherit; opacity: .8; }
.rmt-chip[data-rmt-cat="live"]:hover { background: rgba(125, 255, 178, .18); }
.rmt-chip[data-rmt-cat="pre"]:hover  { background: rgba(122, 224, 255, .19); }
.rmt-chip[data-rmt-cat="prep"]:hover { background: rgba(179, 136, 255, .19); }
.rmt-chip[data-rmt-cat="idea"]:hover { background: rgba(167, 172, 194, .16); }
.rmt-chip[data-rmt-cat="live"].on { background: #7DFFB2; border-color: #7DFFB2; color: #0A0F1E; box-shadow: 0 0 12px rgba(125, 255, 178, .35); }
.rmt-chip[data-rmt-cat="pre"].on  { background: #7AE0FF; border-color: #7AE0FF; color: #0A0F1E; box-shadow: 0 0 12px rgba(122, 224, 255, .35); }
.rmt-chip[data-rmt-cat="prep"].on { background: #B388FF; border-color: #B388FF; color: #0A0F1E; box-shadow: 0 0 12px rgba(179, 136, 255, .35); }
.rmt-chip[data-rmt-cat="idea"].on { background: #A7ACC2; border-color: #A7ACC2; color: #0A0F1E; box-shadow: 0 0 12px rgba(167, 172, 194, .30); }
.rmt-chip[data-rmt-cat="live"].on .rmt-chip-n,
.rmt-chip[data-rmt-cat="pre"].on .rmt-chip-n,
.rmt-chip[data-rmt-cat="prep"].on .rmt-chip-n,
.rmt-chip[data-rmt-cat="idea"].on .rmt-chip-n { color: rgba(10, 15, 30, .65); opacity: 1; }

.rmt-foot { align-items: center; justify-content: space-between; }
.rmt-count { font-size: 12.5px; color: var(--faint, #8B90A5); font-weight: 700; }
.rmt-reset {
  font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--muted, #A7ACC2);
  background: transparent;
  border: 1px solid #39415F;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.rmt-reset:hover { border-color: rgba(255, 215, 0, .6); color: var(--text, #EDEFF7); }

/* Tag filter row + per-card tag labels (roadmap-tools.js TAGS map) */
.rmt-tags-row { align-items: center; }
.rmt-tchip { font-size: 12px; padding: 5px 11px; }
.rmt-spec {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--muted, #A7ACC2);
  cursor: pointer; margin-inline-start: 4px;
}
.rmt-spec input { accent-color: #FFD700; width: 15px; height: 15px; cursor: pointer; }

.rmt-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 7px; }
.rmt-tag {
  font-size: 10px; font-weight: 700; line-height: 1.5;
  color: var(--faint, #8B90A5);
  border: 1px solid #39415F; border-radius: 999px;
  padding: 1px 7px;
}
.rmt-tag-kind {
  color: #FFC46B; border-color: rgba(255, 215, 0, .45);
  background: rgba(255, 215, 0, .07);
}

.rmt-note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint, #8B90A5); }
.rmt-none { margin: 12px 0 0; font-size: 13.5px; font-weight: 700; color: #FFC46B; }

@media (max-width: 640px) {
  .rmt-bar { padding: 16px; }
  .rmt-field { flex: 1 1 100%; }
  .rmt-search { flex: 1 1 100%; }
  .rmt-field select { width: 100%; }
}
