/* Constraints on the plot (todo/11): marks, selection, context menu; separate from d3.parsets.css, which the
   paper renders (tools/render/render-layouts.mjs) embed. */
.constraint-help { color: #666; font-size: 0.85em; max-width: 60em; margin-top: 0.3em; }
#plot-help, #constraint-freedom, #constraint-legend { margin: 0.3em auto 0; text-align: center; }
.ps-legend-item { margin-right: 0.8em; white-space: nowrap; }
.ps-legend-item .ps-menu-icon { margin-right: 0.2em; }
.dimension, .category { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: none; }
/* Marks: icons of src/constraint-icons.json in its accent color (todo/23); the spacer in the label keeps their room.
   The block bracket hangs below the last axis, outside the plot. */
.dimension tspan.ps-mark { font-size: 1.2em; }
#vis-svg { overflow: visible; }
#parallel-sets { padding-bottom: 12px; }
.category.selected rect { stroke: #000; stroke-width: 2px; stroke-dasharray: 4 2; fill-opacity: .3; }
.ps-menu { position: absolute; z-index: 1000; min-width: 14em; max-width: 24em; padding: 4px 0; background: #fff; border: 1px solid #bbb;
  border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font-size: 0.9em; text-align: left; }
.ps-menu-item { display: block; width: 100%; padding: 4px 14px; border: none; background: none; text-align: left; color: #212529; }
.ps-menu-item:hover:not(.disabled) { background: #e9ecef; }
.ps-menu-item.disabled { color: #999; cursor: default; }
.ps-menu-item small { display: block; font-size: 0.85em; margin-left: 1.6em; }
.ps-menu-icon { width: 1.1em; height: 1.1em; margin-right: 0.5em; vertical-align: -0.15em; }
.ps-menu-item.disabled .ps-menu-icon { opacity: .45; }
.ps-menu-separator { margin: 4px 0; border-top: 1px solid #ddd; }
@media (pointer: coarse) { .ps-menu-item { padding: 10px 16px; font-size: 1.1em; } }
#optimize-status { margin-left: 10px; }
/* Explore (todo/55): thumbnails of the five metrics; the selected one framed in gray, as in the teaser. */
#explore { position: relative; margin: 0.8em auto 0; max-width: 1100px; text-align: center; }
.explore-head { color: #666; font-size: 0.85em; margin-bottom: 0.4em; }
.explore-close { position: absolute; right: 0; top: 0; }
.explore-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.explore-item { width: 190px; padding: 4px; border: 2px solid transparent; border-radius: 4px; background: none; color: #212529; }
.explore-item:hover:not(:disabled) { border-color: #ccc; }
.explore-item.selected, .explore-item.selected:hover { border-color: #555; }
.explore-item:disabled { cursor: default; }
.explore-thumb-box { height: 104px; background: #f6f6f6; }
.explore-thumb { display: block; width: 100%; height: 100%; }
.explore-label { font-size: 0.9em; margin-top: 2px; }
.explore-status { font-size: 0.8em; color: #555; }
