/* ===========================================================================
   advtags.css - the "Advanced tags" rail panel (see advtags.js).

   Only what the panel adds on top of the rail's own sheet: the handle under
   the name, the headline of each group, and the second state a word can be
   in (left out). The words themselves are ordinary .facet buttons, so they
   wear the same clothes as every other word in the rail.
   =========================================================================== */

/* --- the handle ---------------------------------------------------------- */
.adv-slide {
  padding: 2px 2px 10px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--hair);
}
.adv-read { font-size: 11.5px; color: var(--ink-faint); line-height: 1.3; }
.adv-read b {
  font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums;
  margin-right: 3px;
}
.adv-add { margin-left: 7px; color: var(--accent); }
.adv-add[hidden] { display: none; }

.adv-bar { margin: 0 0 2px; }
.adv-bar .num-h { margin: 0 2px 8px; }
.adv-bar .num-h b { color: var(--ink-soft); }
.adv-bar .dual { margin-bottom: 2px; }

/* the plain range, only for a page without the site's own bar (dualbar.js) */
.adv-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 20px; margin: 0 0 6px; padding: 0;
  background: transparent; cursor: pointer;
}
.adv-range:disabled { opacity: .4; cursor: default; }
.adv-range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px; background: var(--hair);
}
.adv-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%;
  background: var(--ink-soft); border: 0;
}
.adv-range::-moz-range-track {
  height: 3px; border-radius: 2px; background: var(--hair);
}
.adv-range::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%;
  background: var(--ink-soft);
}

/* --- one group of words -------------------------------------------------- */
.adv-g + .adv-g { margin-top: 2px; }
.adv-h {
  display: flex; align-items: center; gap: 6px; width: 100%;
  margin: 8px 0 3px; padding: 2px 2px; cursor: pointer;
  border: 0; background: transparent;
  font: 600 10.5px/1.2 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  text-align: left;
}
.adv-h:hover { color: var(--ink); }
.adv-h .adv-ar { font-style: normal; font-size: 9px; opacity: .8; }
.adv-h .adv-hn {
  margin-left: auto; font-size: 10px; letter-spacing: 0;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.adv-facets[hidden] { display: none; }

/* --- a word that is left out ---------------------------------------------
   A word has three states and the colour carries all three: asked for wears
   the rail's lit paint, left out wears the red a genre row wears when it is
   turned around (.facet.on.neg in hex.css), let go is quiet again. There is
   no little box inside the row to tick - the paint is the whole sign - so
   nothing of the panel's own sits here but the red's inside, which the
   chip-shaped genre rows are given by hex.css and a rail row has to ask for.
   The rule underneath it is the strike, the one thing the colour cannot say
   on its own: this word is kept out, not merely not asked for. */
.adv-c.on.neg {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 143, 156, .85);
}
.adv-c.on.neg::before {
  background: linear-gradient(180deg, rgba(52, 14, 22, .95), rgba(30, 8, 14, .97)) !important;
}
.adv-c .adv-lb {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- the small print ----------------------------------------------------- */
.adv-foot {
  margin: 10px 2px 0; font-size: 11px; line-height: 1.5; color: var(--ink-faint);
}
.adv-foot b { color: var(--ink-soft); font-weight: 600; }
