/* harta: Firul competențelor (harta de metrou a competențelor specifice) */
.h-grid { display: grid; grid-template-columns: var(--h-lab, 66px) minmax(0, 1fr); }
.h-labels { position: relative; border-right: 1px solid var(--line); background: var(--surface); z-index: 1; }
.h-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.h-lab-head { position: absolute; left: 0; font-weight: 600; letter-spacing: .06em; }
.h-lab {
  position: absolute; left: 0; right: 6px; display: flex; flex-direction: column; gap: 1px;
  text-decoration: none; color: var(--ink); line-height: 1.15; border-radius: 6px; padding: 2px 4px 2px 0;
}
.h-lab b { font-family: var(--f-mono); font-size: .82rem; white-space: nowrap; }
.h-lab .h-tag { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.h-lab:hover b, .h-lab.on b { color: var(--accent); }

.h-chart svg text { font-size: 12px; }
.h-band { fill: none; }
.h-band.alt { fill: var(--surface-2); opacity: .7; }
.h-band-l { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.h-col { font-size: 13px; font-weight: 600; }
.h-vgrid { stroke: var(--v-grid); stroke-width: 1; }
.h-sep { stroke: var(--line); stroke-width: 1; }
.h-cap { font-size: 12px; }
.h-verb { font-size: 12px; }

.h-seg { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none; }
.h-seg.nec { stroke-dasharray: 1 6; opacity: .75; }
.h-dot { fill: var(--accent-strong); stroke: var(--surface); stroke-width: 2; }
.h-dot.gol { fill: var(--surface); stroke: var(--accent-strong); stroke-width: 2.5; }
.h-dot-sel { stroke: var(--gold); stroke-width: 3; }
.h-pip { fill: var(--accent-strong); }
.h-pip.aso { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.h-hit { fill: transparent; }
.h-ring { fill: none; stroke: transparent; stroke-width: 3; }
.h-st { cursor: pointer; }
.h-st:hover .h-ring { stroke: var(--v-axis); }
.h-chart svg .h-st:focus-visible { outline: none; }
.h-st:focus-visible .h-ring { stroke: var(--accent); }
.h-st.on .h-ring { stroke: var(--gold); }

.h-row, .h-lab { transition: opacity .15s; }
.h-dim .h-row:not(.on), .h-dim .h-lab:not(.on) { opacity: .22; }

.h-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.h-page .v-legend svg { flex: none; overflow: visible; }
.h-part { display: grid; gap: var(--s-1); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.h-part ul.plain { margin-bottom: var(--s-1); }
.h-close { min-height: 32px; padding: .3rem .7rem; }

@media (prefers-reduced-motion: reduce) { .h-row, .h-lab { transition: none; } }
.h-grid { position: relative; }
.h-grid.h-more::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--surface));
}
.h-swipe { margin-top: var(--s-2); }

/* firele dintre trepte: temeiul legăturii se vede în linie */
.h-seg.dedus { stroke-dasharray: 7 5; stroke-linecap: butt; }
.h-conn { fill: none; stroke: var(--accent); stroke-width: 1.75; opacity: .55; stroke-linecap: round; }
.h-conn.dedus { stroke-dasharray: 5 4; stroke-linecap: butt; }
.h-jm { fill: var(--surface); stroke: var(--accent-strong); stroke-width: 1.75; }
.h-jm.sec { stroke: var(--accent); stroke-width: 1.25; }
.h-hitl { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; }
.h-lk { cursor: pointer; }
.h-lk.sec .h-hitl { stroke-width: 12; }
.h-lk:hover .h-conn, .h-lk:focus-visible .h-conn, .h-lk.on .h-conn { opacity: 1; stroke-width: 2.5; }
.h-lk:hover .h-jm, .h-lk:focus-visible .h-jm { stroke-width: 2.5; }
.h-lk:hover .h-hitl { stroke: var(--v-axis); opacity: .35; }
.h-lk:focus-visible .h-hitl { stroke: var(--accent); opacity: .25; }
.h-lk.on-sel .h-hitl { stroke: var(--gold); opacity: .35; }
.h-lk.on-sel .h-conn { stroke: var(--gold); opacity: 1; stroke-width: 2.5; }
.h-lk.on-sel .h-jm { stroke: var(--gold); }
.h-chart svg .h-lk:focus-visible { outline: none; }
.h-conns { transition: opacity .15s; }
.h-dim .h-lk.sec:not(.on) { opacity: .15; }
.v-legend .h-conn { opacity: .8; }
.h-tip-seg { margin-top: 6px; }
.h-tip-st { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.h-nota { color: var(--warn); }
@media (prefers-reduced-motion: reduce) { .h-conns { transition: none; } }
