/* The inline datasette-vega chart is REMOVED from the genomes table (chart_enhancer.js is no longer loaded;
   see the plugin note). datasette-vega is a global datasette plugin that still mounts client-side into
   #vis-tool, so hide the WHOLE mount — the form panel (.datasette-vega), the collapsed toggle
   (.datasette-vega-inactive), AND the chart itself (.vega-embed), which is a sibling of the form, not a
   child, so hiding only the form left the chart visible. /explore is the headline viz. */
#vis-tool, .datasette-vega, .datasette-vega-inactive, .vega-embed, #wtmta-chart-cap-note {
  display: none !important;
}

/* Featured-view chips in the genomes-table header (description_html) — one-click deep-links into curated
   /explore scatter presets. Datasette pages are always light, so fixed colors are fine here. */
.featured-views { display: block; margin-top: .5em; font-size: .9em; color: #666; }
.featured-views .fv { display: inline-block; margin: .18em .3em .18em 0; padding: 2px 10px;
  border: 1px solid #e4e6ea; border-radius: 999px; background: #fff; color: #3a3f47;
  text-decoration: none; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.featured-views .fv:hover { border-color: #1a1a1a; background: #f6f7f9; color: #1a1a1a; }

/* WtMTA genome-table charting enhancer — column curation.
 *
 * datasette-vega lists every column in its X/Y/Color/Size pickers. Hide the
 * ones that are meaningless to plot (identifiers, URLs, file paths, the long
 * taxonomy lineage string, redundant labels) so the dropdowns show only
 * chartable fields. `display:none` on <option> is honored by Chromium/Firefox/
 * Edge and — being pure CSS — survives datasette-vega's React re-renders,
 * unlike JS option-pruning. Left visible: the ~22 numeric metrics, the
 * categorical groupers (group/phylum/order/family/u12_status/motif_category/
 * snrna_status/source), and `species` (useful as a Label axis on small sets).
 */
form.datasette-vega select option[value="taxonomy_id"],
form.datasette-vega select option[value="common_name"],
form.datasette-vega select option[value="accession"],
form.datasette-vega select option[value="genome_version"],
form.datasette-vega select option[value="assembly_url"],
form.datasette-vega select option[value="ncbi_taxonomy_url"],
form.datasette-vega select option[value="wikipedia_url"],
form.datasette-vega select option[value="common_name_level"],
form.datasette-vega select option[value="minor_snrnas"],
form.datasette-vega select option[value="taxonomy"],
form.datasette-vega select option[value="genome_path"],
form.datasette-vega select option[value="annotation_path"] {
  display: none;
}

/* The long semicolon-joined lineage lives in a compact fixed-size SCROLL box (.tax-scroll, wrapped by
   render_cell) so every row stays a short, uniform height instead of one row blowing out tall. The td
   just bounds the width; break-word wraps at the ";<wbr>" rank boundaries without breaking mid-word. */
td.col-taxonomy { min-width: 10rem; max-width: 16rem; }
.tax-scroll { display: block; max-height: 5.2em; overflow-y: auto; overflow-x: hidden;
  scrollbar-gutter: stable; white-space: normal; overflow-wrap: break-word; line-height: 1.45; }
