/* US Wastewater Virus Monitor */
:root {
    /* Five ordered levels, light to dark (CDC: very low ... very high); text on each chosen for contrast. */
    --nx-tool-ww-l0: #d9f0e3; --nx-tool-ww-t0: #10291b;
    --nx-tool-ww-l1: #f6e7a1; --nx-tool-ww-t1: #2e2604;
    --nx-tool-ww-l2: #f4b066; --nx-tool-ww-t2: #2f1704;
    --nx-tool-ww-l3: #c2452a; --nx-tool-ww-t3: #ffffff;
    --nx-tool-ww-l4: #8f1d3f; --nx-tool-ww-t4: #ffffff;
    --nx-tool-ww-none: transparent;
}
.ww-switch { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.ww-btn { min-height: 36px; padding: 0.35rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); font: inherit; font-weight: 600; cursor: pointer; }
.ww-btn[aria-pressed="true"] { background: var(--accent-teal); border-color: var(--accent-teal); color: #ffffff; }
[data-theme="dark"] .ww-btn[aria-pressed="true"] { color: #062a26; }
.ww-text { margin: var(--space-2) 0 var(--space-3); line-height: 1.55; font-weight: 600; }
.ww-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: 0; margin: var(--space-3) 0 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.ww-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.ww-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border-color); }
.ww-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; margin-top: var(--space-3); max-width: 44rem; }
.ww-tile { aspect-ratio: 1; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700; line-height: 1.1; border: 1px solid var(--border-subtle); min-width: 0; overflow: hidden; }
.ww-tile span { font-weight: 500; }
.ww-tile.is-none { color: var(--text-muted); background: transparent; border-style: dashed; }
.ww-more { margin-top: var(--space-4); }
.ww-more summary { cursor: pointer; min-height: 1.75rem; font-weight: 600; }
.ww-chip { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.ww-detect { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: var(--space-2); }
.ww-detect li { line-height: 1.5; }
.ww-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: var(--space-2); vertical-align: baseline; }
.ww-cell-yes { font-weight: 700; }
@media (max-width: 600px) {
    .ww-grid { gap: 2px; }
    .ww-tile span { display: none; }
}
