/* flux: bara familiilor, filtrele, cele două fluxuri și panoul de detaliu */
.fx-lead { max-width: 72ch; }
.fx-bar { display: grid; gap: var(--s-2); }
.fx-bar-svg { display: block; overflow: visible; }
.fx-bar-svg text { font-family: var(--f-body); fill: var(--ink); }
.fx-bar-svg .v-muted { fill: var(--muted); }
.fx-seg { transition: opacity .15s; }
.fx-seg.off { opacity: .22; }

/* filtrele: culoarea e a familiei; ascunsă, pastila rămâne doar conturată */
.fx-chip {
  font: inherit; font-size: var(--t-xs); font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  min-height: 32px;
}
.fx-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--c); flex: none; }
.fx-chip .fx-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-chip:hover { border-color: var(--c, var(--accent)); }
.fx-chip[aria-pressed="false"] { color: var(--muted); background: transparent; border-style: dashed; }
.fx-chip[aria-pressed="false"] i { background: transparent; }
.fx-chip.fx-all { color: var(--accent); border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 2px; }

/* direcția mutărilor, în cifre */
.fx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-2) var(--s-4); }
.fx-stats > div { display: flex; align-items: baseline; gap: var(--s-2); font-size: var(--t-s); color: var(--muted); }
.fx-stats b { font-family: var(--f-display); font-size: var(--t-xl); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.fx-chart svg { margin-inline: auto; }
.fx-empty { margin: 0; }
.fx-sub { margin-top: var(--s-3); }
.fx-ed.e2019 rect { fill: var(--ed19-soft); }
.fx-ed.e2019 text { fill: var(--ed19) !important; }
.fx-ed.e2026p rect { fill: var(--ed26-soft); }
.fx-ed.e2026p text { fill: var(--ed26) !important; }
.fx-sep { stroke: var(--v-grid); stroke-dasharray: 3 4; }
.fx-grp { letter-spacing: .02em; }

/* benzile: subțiri, transparente, cu o margine de culoarea fundalului care le separă */
.fx-rib { fill-opacity: var(--fx-op, .55); stroke: var(--surface); stroke-width: .75; cursor: pointer; transition: fill-opacity .15s, opacity .15s; }
.fx-rib:hover, .fx-rib:focus-visible, .fx-rib.fx-hi { fill-opacity: .85; }
.fx-rib.fx-sel { fill-opacity: .9; stroke: var(--ink); stroke-width: 1.25; }
.fx-rib:focus-visible { stroke: var(--ink); stroke-width: 1.5; outline: none !important; }
.fx-svg.fx-focus .fx-rib:not(.fx-hi) { opacity: .15; }
.fx-svg:has(.fx-rib:hover) .fx-rib:not(:hover):not(.fx-sel) { opacity: .45; }
.fx-node { cursor: pointer; }
.fx-hit { fill: transparent; }
.fx-node:focus-visible { outline: none !important; }
.fx-node:focus-visible .fx-hit { stroke: var(--accent); stroke-width: 2; }
.fx-stub .fx-bar-node { fill-opacity: .7; }

/* panoul cu perechile unei benzi */
.fx-detail-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.fx-detail-head .btn { padding: .3rem .7rem; }
.fx-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.fx-pairs > li { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.fx-pairs > li:first-child { border-top: 0; padding-top: 0; }
.fx-chg { font-size: var(--t-xs); font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.fx-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.fx-arrow { color: var(--muted); padding-top: .2rem; }
.fx-els { list-style: none; margin: 0; padding: 0 0 0 var(--s-3); display: grid; gap: var(--s-1); font-size: var(--t-s); min-width: 0; }
.fx-els.e2019 { border-left: 3px solid var(--ed19); }
.fx-els.e2026p { border-left: 3px solid var(--ed26); }
.fx-none { color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
  .fx-sides { grid-template-columns: 1fr; }
  .fx-arrow { transform: rotate(90deg); justify-self: start; padding: 0 0 0 var(--s-3); }
}
/* pe fundal închis aceeași transparență pare stinsă: benzile primesc puțin mai multă culoare */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx-svg { --fx-op: .68; } }
:root[data-theme="dark"] .fx-svg { --fx-op: .68; }
