/* Busola Curriculară: Observatorul curricular (#/observator, site/viz/observator.js) */
body {
  --ob-necesar: var(--ed26);
  --ob-util: var(--auto);
  --ob-folosit-in: var(--v-nou);
  --ob-transfer: var(--ed19);
  --ob-reluare: var(--muted);
  --ob-rau: var(--v-eliminat);
  --ob-tinta: var(--gold);
  --ob-prerechizit: var(--accent);
  --ob-aplicatie: var(--v-nou);
  --ob-transfer-r: var(--v-mutat);
}

.ob-nota { border-left: 3px solid var(--gold); padding: var(--s-1) var(--s-3); background: var(--surface); border-radius: 0 6px 6px 0; max-width: 72ch; }

/* index */
.ob-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.ob-card h3 { margin: 0; }
.ob-card h3 a { text-decoration: none; }
.ob-card h3 a:hover { text-decoration: underline; }
.ob-ed { display: grid; grid-template-columns: auto 1fr; gap: .2rem var(--s-2); align-items: center; }
.ob-ed > .xs { grid-column: 1 / -1; }
.ob-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.ob-bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.ob-sem { overflow-wrap: anywhere; }
.ob-pasi { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ob-pasi h3 { margin: 0; font-size: var(--t-m); }

/* controale */
.ob-ctl { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.ob-t-lipsa b { color: var(--ob-rau); }
.ob-t-ordine b { color: var(--ob-rau); }
.ob-t-decalaj b { color: var(--v-mutat); }
.ob-t-acelasi-an b { color: var(--warn); }
.ob-semnale { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--t-s); }
.ob-semnale li { padding: .35rem 0 .35rem var(--s-2); border-left: 3px solid var(--line); }
.ob-s-lipsa, .ob-s-ordine { border-left-color: var(--ob-rau) !important; }
.ob-s-decalaj { border-left-color: var(--v-mutat) !important; }
.ob-s-acelasi-an { border-left-color: var(--warn) !important; }
.ob-semnale a { overflow-wrap: anywhere; }

/* graful și panoul */
.ob-lucru { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
.ob-vedere { min-width: 0; display: grid; gap: var(--s-2); }
.ob-det { position: sticky; top: var(--s-3); max-height: calc(100vh - 2 * var(--s-3)); overflow: auto; }
.ob-det-h { font-size: var(--t-l); margin: 0; }
@media (max-width: 900px) {
  .ob-lucru { grid-template-columns: minmax(0, 1fr); }
  .ob-det { position: static; max-height: none; }
}
.ob-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-height: 78vh; -webkit-overflow-scrolling: touch; }
.ob-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-graf { display: block; font-family: var(--f-body); }
.ob-col { font-size: 11px; fill: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.ob-n { cursor: pointer; outline: none; }
.ob-n rect:first-child { fill: var(--bg); stroke: var(--line); stroke-width: 1.2; transition: stroke .15s, opacity .15s; }
.ob-n text { font-size: 11.5px; fill: var(--ink); pointer-events: none; }
.ob-n .ob-n-cls { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; fill: var(--accent); }
.ob-n .ob-n-disc { font-size: 10.5px; fill: var(--muted); font-style: italic; }
.ob-n-rol { fill: var(--ob-prerechizit); }
.ob-r-tinta .ob-n-rol { fill: var(--ob-tinta); }
.ob-r-tinta rect:first-child { stroke: var(--ob-tinta); stroke-width: 2; }
.ob-r-aplicatie .ob-n-rol { fill: var(--ob-aplicatie); }
.ob-r-transfer .ob-n-rol { fill: var(--ob-transfer-r); }
.ob-n-lipsa rect:first-child { stroke: var(--ob-rau); stroke-dasharray: 5 3; fill: color-mix(in srgb, var(--ob-rau) 7%, var(--bg)); }
.ob-n-lipsa .ob-n-cls { fill: var(--ob-rau); }
.ob-n-semnal rect:first-child { stroke: var(--v-mutat); stroke-width: 2; }
.ob-n:hover rect:first-child, .ob-n:focus-visible rect:first-child { stroke: var(--accent); stroke-width: 2; }
.ob-n-sel rect:first-child { stroke: var(--ink); stroke-width: 2.6; }
.ob-n-stins { opacity: .38; }

.ob-m { fill: none; stroke: var(--ob-necesar); opacity: .75; transition: opacity .15s; }
.ob-m-necesar { stroke: var(--ob-necesar); }
.ob-m-util { stroke: var(--ob-util); stroke-dasharray: 6 4; }
.ob-m-alternativ { stroke: var(--ob-util); stroke-dasharray: 2 4; }
.ob-m-folosit-in { stroke: var(--ob-folosit-in); }
.ob-m-transfer { stroke: var(--ob-transfer); stroke-dasharray: 8 3 2 3; }
.ob-m-reluare { stroke: var(--ob-reluare); stroke-dasharray: 1 3; }
.ob-m.ob-m-rau { stroke: var(--ob-rau); stroke-dasharray: none; opacity: .95; }
.ob-m-alt { opacity: .12; }
.ob-m-stins { opacity: .14; }
.ob-m-sel { opacity: 1; }
.ob-sag { fill: var(--muted); }
.ob-sag-rau { fill: var(--ob-rau); }

/* legenda */
.ob-leg { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: center; }
.ob-leg > span { display: inline-flex; gap: .35rem; align-items: center; }
.ob-li { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--ob-necesar); }
.ob-li.ob-m-util { border-top: 3px dashed var(--ob-util); }
.ob-li.ob-m-folosit-in { border-top-color: var(--ob-folosit-in); }
.ob-li.ob-m-transfer { border-top: 3px dashed var(--ob-transfer); }
.ob-li.ob-m-rau { border-top-color: var(--ob-rau); }
.ob-ln { display: inline-block; width: 22px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); }
.ob-ln.ob-n-lipsa { border: 1.5px dashed var(--ob-rau); background: color-mix(in srgb, var(--ob-rau) 7%, transparent); }

/* pe clase */
.ob-clase { font-size: var(--t-s); }
.ob-clase th[scope="row"] { font-weight: 400; min-width: 16rem; max-width: 26rem; }
.ob-clase th[scope="row"] a { text-decoration: none; }
.ob-clase th[scope="row"] a:hover { text-decoration: underline; }
.ob-clase tr > th[scope="row"] { border-left: 4px solid var(--ob-prerechizit); padding-left: var(--s-2); }
.ob-clase tr.ob-r-tinta > th[scope="row"] { border-left-color: var(--ob-tinta); font-weight: 600; }
.ob-clase tr.ob-r-aplicatie > th[scope="row"] { border-left-color: var(--ob-aplicatie); }
.ob-clase tr.ob-r-transfer > th[scope="row"] { border-left-color: var(--ob-transfer-r); }
.ob-clase tr.sel { background: var(--accent-soft); }
.ob-clase td.num { white-space: nowrap; text-align: center; }
.ob-pt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 1px; vertical-align: middle; border: 2px solid currentColor; background: transparent; }
.ob-pt.e2026p { color: var(--ed26); }
.ob-pt.e2019 { color: var(--ed19); }
.ob-pt.prim { background: currentColor; }

/* lista */
.ob-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ob-lista li { padding: .3rem var(--s-2); border-radius: 6px; }
.ob-lista li.sel { background: var(--accent-soft); }
.ob-lista a { overflow-wrap: anywhere; }

/* panoul nodului */
.ob-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s-2); margin: 0; }
.ob-dl dt { font-size: var(--t-xs); color: var(--muted); }
.ob-dl dd { margin: 0; font-size: var(--t-s); font-weight: 500; }
.ob-h4 { font-size: var(--t-s); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: var(--s-2) 0 0; }
.ob-leg-l { display: grid; gap: var(--s-2); }
.ob-leg-l li { display: grid; gap: .15rem; font-size: var(--t-s); }
.ob-leg-l li > .tag { justify-self: start; }
.ob-just { color: var(--ink); opacity: .85; }
.ob-det a { overflow-wrap: anywhere; }
.tag.ob-tag-lipsa { background: color-mix(in srgb, var(--ob-rau) 14%, transparent); color: var(--ob-rau); font-weight: 600; }
.tag.ob-tag-semnal { background: color-mix(in srgb, var(--v-mutat) 16%, transparent); color: var(--v-mutat); font-weight: 600; }
.tag.ob-tag-necesar { background: color-mix(in srgb, var(--ob-necesar) 14%, transparent); color: var(--ob-necesar); font-weight: 600; }
.tag.ob-tag-util, .tag.ob-tag-alternativ { background: color-mix(in srgb, var(--ob-util) 14%, transparent); color: var(--ob-util); }
.tag.ob-tag-folosit-in { background: color-mix(in srgb, var(--ob-folosit-in) 16%, transparent); color: var(--ob-folosit-in); }
.tag.ob-tag-transfer { background: color-mix(in srgb, var(--ob-transfer) 16%, transparent); color: var(--ob-transfer); }
.ob-semnale .tag { font-weight: 600; }

/* tabele și pagini */
.ob-ipt, .ob-cmpt, .ob-mt { font-size: var(--t-s); }
.ob-ipt td, .ob-cmpt td, .ob-mt td { vertical-align: top; }
.ob-cmpt td:nth-child(5) { min-width: 18rem; }
.ob-cmpt tr.ob-md { background: var(--accent-soft); }
.ob-cmpt a, .ob-ipt td { overflow-wrap: anywhere; }
.ob-2 { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ob-ol { margin: 0; padding-left: 1.3rem; display: grid; gap: var(--s-1); max-width: 80ch; }
.ob-pasi-v { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ob-pas { position: relative; padding-top: var(--s-4); }
.ob-pas h3 { margin: 0; }
.ob-pas-n { position: absolute; top: calc(-1 * var(--s-2)); left: var(--s-3); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 600; }
.ob-pasi-v { padding-top: var(--s-2); }

@media (max-width: 600px) {
  .ob-ctl .seg { width: 100%; }
  .ob-clase th[scope="row"] { min-width: 11rem; }
  .ob-cmpt td:nth-child(5) { min-width: 14rem; }
}

/* evaluarea experților (#/observator/<id>/evaluare) */
.ob-acord { color: var(--muted); }
.ob-acord.ok { color: var(--ok); font-weight: 600; }
.ob-ev-cine { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border: 1px solid var(--line); }
.ob-ev-cine legend { font-weight: 600; padding: 0 var(--s-1); }
.ob-ev-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); counter-reset: ev; }
.ob-ev { display: grid; gap: var(--s-1); counter-increment: ev; }
.ob-ev-ab { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: baseline; font-size: var(--t-s); }
.ob-ev-ab::before { content: counter(ev) "."; color: var(--muted); font-family: var(--f-mono); font-size: var(--t-xs); }
.ob-ev-ab b { font-weight: 500; overflow-wrap: anywhere; }
.ob-ev-sag { color: var(--accent); font-weight: 700; }
.ob-ev-prec { margin: 0; color: var(--ed26); }
.ob-ev-campuri { display: grid; gap: var(--s-2); grid-template-columns: minmax(150px, 1fr) minmax(110px, .6fr) minmax(0, 2fr); align-items: end; }
@media (max-width: 600px) { .ob-ev-campuri { grid-template-columns: 1fr 1fr; } .ob-ev-com { grid-column: 1 / -1; } }

/* harta modelului (#/observator/<id>): graful pe tot ecranul, cu ferestrele vizorului deasupra */
body.ob-harta-on .frame { max-width: none; padding: 0; }
body.ob-harta-on .foot-site { margin-top: 0; }
.ob-pg { display: grid; gap: var(--s-6); align-content: start; }
.ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ob-harta { min-height: 380px; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--bg); }
.ob-hbar { position: absolute; z-index: 6; top: 10px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; pointer-events: none; }
.ob-hbar > * { pointer-events: auto; }
.ob-hcap { display: flex; align-items: center; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px 14px 6px 6px; min-width: 0; max-width: min(520px, 100%); }
.ob-hback { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--ink); flex: none; }
.ob-hback:hover { background: var(--surface-2); }
.ob-hback svg { width: 20px; height: 20px; }
.ob-ht { min-width: 0; display: grid; }
.ob-ht .eyebrow { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-ht h1 { margin: 0; font-size: var(--t-l); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-hctl { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.ob-hctl .seg { box-shadow: var(--shadow); }
.ob-hsel select, .ob-hcauta input { font: inherit; font-size: var(--t-s); height: 38px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); max-width: 220px; }
.ob-hcauta input { width: 200px; }
.ob-hbtn .ob-hsel { flex: none; }
.ob-hbtn .ob-hsel select { height: 34px; }
.ob-hbtn { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ob-hbtn button { font: inherit; font-size: var(--t-s); font-weight: 500; height: 34px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; }
.ob-hbtn button b { font-family: var(--f-mono); font-size: var(--t-xs); background: var(--surface-2); border-radius: 999px; padding: .05rem .4rem; }
.ob-hbtn button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ob-hbtn button[aria-pressed="true"] b { background: color-mix(in srgb, var(--bg) 25%, transparent); }
.ob-harta { --vz-sus: 132px; }
.ob-harta .ob-n rect:first-child { fill: var(--surface); }
.ob-placi-mici { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.ob-placi-mici div { padding: var(--s-2); }
.ob-placi-mici b { font-size: 1.25rem; }
.ob-f-nod .vz-fer-corp .ob-det-h { font-size: var(--t-l); }
.ob-leg-v { display: grid; gap: var(--s-1); }
.ob-ipl, .ob-cmpl { display: grid; gap: var(--s-3); }
.ob-ipl > li, .ob-cmpl > li { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.ob-ipl p, .ob-cmpl p { margin: 0; }
.ob-cmpl .ob-md { border-top: 0; padding: var(--s-1) var(--s-2); background: var(--accent-soft); border-radius: 6px; }
@media (max-width: 700px) {
  .ob-hbar { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .ob-hcap { max-width: 100%; flex: 1 1 100%; padding-right: 10px; }
  .ob-ht h1 { font-size: var(--t-m); }
  .ob-hctl { flex: 1 1 100%; gap: 6px; }
  .ob-hctl .seg button { padding: .3rem .6rem; }
  .ob-hbtn .ob-hsel select { max-width: 150px; height: 32px; }
  .ob-hcauta { flex: 1 1 120px; }
  .ob-hcauta input { width: 100%; height: 34px; }
  .ob-hbtn { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 24px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .ob-hbtn::-webkit-scrollbar { display: none; }
  .ob-hbtn button { flex: none; height: 32px; }
  .ob-harta { --vz-sus: 150px; }
  /* pe telefon harta are nevoie de loc; săgeata din bară duce înapoi la Observator */
  body.ob-harta-on .subnav { display: none; }
}
.ob-ev summary { padding-block: 3px; cursor: pointer; }
/* clasa și disciplina alese pe site (doar citite) */
.ob-harta .ob-n.ob-n-clasa rect:first-child, .ob-n.ob-n-clasa rect:first-child { fill: var(--accent-soft); }
.ob-ln.ob-n-clasa { background: var(--accent-soft); border-color: var(--accent); }
.ob-tag-ta { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
