/* Glosar · Ligament încrucișat (26 nov.). Prefix .gt-li-. Sursa: PAGINA-GLOSAR-LIGAMENT-INCRUCISAT.md.
   Primul ecran: genunchiul din față (imagini/menisc-test/genunchi-fata-720.webp), cu X-ul auriu care se desenează în golul dintre condili
   („se încrucișează ca un X”) și colateralele punctate pe laturi; dedesubt, ce oprește fiecare (D, „Pe înțelesul tuturor”). */
.gt-li-fig { width: min(100%, 440px); justify-items: stretch; }
.gt-li-b { --ar: 580 / 640; height: auto !important; width: 100%; aspect-ratio: 580 / 640; }
.gt-li-b > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
/* decupajul imaginii (femurul sus, tibia jos) se topește în scenă, nu se vede ca o margine tăiată */
.gt-li-b { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%); }
.gt-li-x { fill: none; stroke: #fed194; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgb(254 209 148 / .55)); }
.gt-li-x.is-b { stroke: #ecc980; }
.gt-li-o { fill: #142429; stroke: #fed194; stroke-width: 3; }
.gt-li-col { fill: none; stroke: #9fe0d4; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 12; opacity: .9; }
.gt-li-tf { font-size: 28px; fill: rgb(237 232 223 / .7) !important; }
.gt-li-tc { font-size: 28px; fill: #9fe0d4 !important; }
/* cutia figurii stă mereu pe scena închisă: etichetele rămân deschise */
.gt-li-fig .gt-lbl { stroke: rgb(12 37 44 / .85) !important; }
.gt-li-fig .gt-lbl.is-k { fill: #ecc980 !important; }

/* apariția: întâi colateralele, apoi X-ul care se desenează (o dată), apoi etichetele */
.mk-js .gt-li-fig .gt-li-x { stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--gt-ease) 300ms; }
.mk-js .gt-li-fig .gt-li-x.is-b { transition-delay: 650ms; }
.mk-js .gt-li-fig :is(.gt-li-col, .gt-li-o, .gt-lbl) { opacity: 0; transition: opacity 600ms ease 150ms; }
.mk-js .gt-li-fig .gt-li-o { transition-delay: 1500ms; }
.mk-js .gt-li-fig .gt-lbl { transition-delay: 1300ms; }
.mk-js .gt-li-fig.is-in .gt-li-x { stroke-dashoffset: 0; }
.mk-js .gt-li-fig.is-in :is(.gt-li-col, .gt-li-o, .gt-lbl) { opacity: 1; }
:is(.mk-shot, .rm) .gt-li-fig :is(.gt-li-x, .gt-li-col, .gt-li-o, .gt-lbl) { stroke-dashoffset: 0 !important; opacity: 1 !important; transition: none !important; }

/* legenda: ce oprește fiecare ligament (pe două coloane, ca la stenoză) */
.gt-li-lg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gt-li-lg p { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .9375rem; line-height: 1.4; color: rgb(237 232 223 / .78); }
.gt-li-lg p:first-child { border-image: linear-gradient(90deg, #fed194, transparent) 1; }
.gt-li-lg b { font: 500 1.0625rem/1.25 var(--font-display); color: #ede8df; }
.gt-li-fig .gt-cap { justify-self: center; }
.mk-js .gt-li-fig .gt-li-lg p { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease 1400ms, transform 600ms var(--gt-ease) 1400ms; }
.mk-js .gt-li-fig .gt-li-lg p + p { transition-delay: 1600ms; }
.mk-js .gt-li-fig.is-in .gt-li-lg p { opacity: 1; transform: none; }
:is(.mk-shot, .rm) .gt-li-fig .gt-li-lg p { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (max-width: 1023px) {
  .gt-li-fig { width: min(100%, 360px); justify-self: center; }
}
@media (max-width: 639px) {
  .gt-li-fig { width: min(100%, 250px); gap: 8px; }
  .gt-li-lg { gap: 10px; } .gt-li-lg p { font-size: .875rem; } .gt-li-lg b { font-size: 1rem; }
}

/* „Când te adresezi medicului”: patru trepte (D are patru termene) nu încap în coloana de text de 44rem a șablonului;
   pe această pagină treptele folosesc toată lățimea secțiunii (propunere pentru șablon: la fel pentru orice tip='urgenta'). */
.gt-page[data-pagina="glosar-ligament-incrucisat"] #urgenta .gt-sec-b { max-width: none; }

/* „Surse N”: cifra ieșea cu 0,6–1 px jos la 390 (cifre-cerc.mjs); stratul propriu o aliniază la pixel împreună cu cercul (ca la test-sold) */
@media (max-width: 1023px) { .gt-page[data-pagina="glosar-ligament-incrucisat"] .hh-src-h span { will-change: transform; } }
