/* Busola Curriculară: finalitățile și RÎ față de UC și CS (#/finalitati, site/viz/finalitati.js) */
:root { --fc-bad: #a8231b; --fc-bad-soft: #fbe4e1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fc-bad: #f4a39b; --fc-bad-soft: #3d1c19; } }
:root[data-theme="dark"] { --fc-bad: #f4a39b; --fc-bad-soft: #3d1c19; }
.fc-nota p { margin: 0; }
.fc-cap { justify-content: space-between; align-items: baseline; }
.fc-tbl th button.fc-sort { all: unset; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; min-height: 24px; display: inline-flex; align-items: center; }
.fc-tbl th button.fc-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-tbl th[aria-sort="ascending"] button::after { content: " ▲"; }
.fc-tbl th[aria-sort="descending"] button::after { content: " ▼"; }
.fc-tbl tbody th { text-transform: none; letter-spacing: 0; font-size: var(--t-s); color: var(--ink); background: none; position: static; font-weight: 600; }
.fc-tbl td.num { white-space: nowrap; }
.fc-bara { display: inline-flex; width: 4.5rem; height: .5rem; border-radius: 999px; overflow: hidden; background: var(--surface-2); vertical-align: middle; margin-left: .35rem; }
.fc-bara i { display: block; height: 100%; }
.fc-bara i.g-ok { background: var(--ok); }
.fc-bara i.g-part { background: var(--warn); }
.fc-bara i.g-fara { background: var(--fc-bad); }
.fc-g { display: inline-block; font-size: var(--t-xs); font-weight: 700; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.fc-g.g-ok { background: var(--ok-soft); color: var(--ok); }
.fc-g.g-part { background: var(--warn-soft); color: var(--warn); }
.fc-g.g-fara { background: var(--fc-bad-soft); color: var(--fc-bad); }
.fc-g.g-nu { background: var(--surface-2); color: var(--muted); }
.fc-el td { min-width: 9rem; }
.fc-el td:first-child { min-width: 16rem; }
.fc-el td:last-child { min-width: 16rem; }
.fc-el p { margin: .3rem 0 0; }
.fc-uc { display: inline-block; margin: 0 .35rem .2rem 0; vertical-align: top; }
.fc-uc summary { cursor: pointer; min-height: 24px; display: inline-flex; align-items: center; }
.fc-uc[open] { display: block; max-width: 28rem; }
.fc-uc[open] > span { display: block; padding: .25rem 0 .35rem; }
.fc-dc { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.fc-dc li { padding: var(--s-3); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fc-lipsa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2rem; }
.fc-lipsa > b { margin-right: .2rem; }
