/* Glosar · Tendinopatie (26 nov.). Prefix .gt-tp-. Sursa: PAGINA-GLOSAR-TENDINOPATIE.md.
   Primul ecran: graficul ciclului din „De ce odihna singură nu rezolvă”, fără valori. Comutatorul (glosar-termen.js → data-v pe #gt-tp-fig):
   „odihna” = durerea revine după pauză, mai mare; „progresiv” = ce suporți crește treptat. „Unde apare mai des”: figura din față cu patru puncte. */
.gt-tp-fig { width: 100%; justify-items: stretch; gap: 14px; }
.gt-tp-b { position: relative; width: 100%; aspect-ratio: 640 / 380; border-radius: 22px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.gt-tp-b > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gt-tp-ax { fill: none; stroke: rgb(237 232 223 / .4); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gt-tp-sep { fill: none; stroke: rgb(237 232 223 / .16); stroke-width: 2; stroke-dasharray: 3 9; }
.gt-tp-ref { fill: none; stroke: rgb(254 209 148 / .4); stroke-width: 2; stroke-dasharray: 3 9; }
.gt-tp-load { fill: none; stroke: #fed194; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.gt-tp-cap { fill: none; stroke: #5ed0d8; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(94 208 216 / .45)); }
.gt-tp-pain { fill: rgb(242 137 126 / .4); }
.gt-tp-tx { font: 500 21px/1 var(--font-display); fill: rgb(237 232 223 / .6); }
.gt-tp-tx.is-l { fill: #fed194; } .gt-tp-tx.is-c { fill: #7fe0e6; } .gt-tp-tx.is-p { fill: #ffd2cb; font-weight: 600; }
/* stările */
.gt-tp-s { transition: opacity 500ms ease; }
.gt-tp-fig[data-v="odihna"] .gt-tp-s.is-progresiv, .gt-tp-fig[data-v="progresiv"] .gt-tp-s.is-odihna { opacity: 0; }
.gt-tp-fig[data-v="progresiv"] .gt-tp-s.is-progresiv .gt-tp-cap, .gt-tp-fig[data-v="progresiv"] .gt-tp-s.is-progresiv .gt-tp-load { animation: gt-tp-draw 1200ms var(--gt-ease) both; }
@keyframes gt-tp-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* apariția o singură dată: liniile se desenează de la stânga, durerea apare după */
.mk-js .gt-tp-fig .gt-tp-s.is-odihna :is(.gt-tp-cap, .gt-tp-load) { clip-path: inset(0 100% 0 0); transition: clip-path 1600ms var(--gt-ease) 250ms; }
.mk-js .gt-tp-fig .gt-tp-s.is-odihna :is(.gt-tp-pain, .gt-tp-tx) { opacity: 0; transition: opacity 600ms ease 1300ms; }
.mk-js .gt-tp-fig.is-in .gt-tp-s.is-odihna :is(.gt-tp-cap, .gt-tp-load) { clip-path: inset(0 0 0 0); }
.mk-js .gt-tp-fig.is-in .gt-tp-s.is-odihna :is(.gt-tp-pain, .gt-tp-tx) { opacity: 1; }
:is(.mk-shot, .rm) .gt-tp-fig * { clip-path: none !important; transition: none !important; animation: none !important; }
:is(.mk-shot, .rm) .gt-tp-fig .gt-tp-s.is-odihna :is(.gt-tp-pain, .gt-tp-tx) { opacity: 1 !important; }

/* legenda și textul stării */
.gt-tp-lg { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: rgb(237 232 223 / .78); }
.gt-tp-lg li { display: inline-flex; align-items: center; gap: 8px; }
.gt-tp-lg li::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: #fed194; }
.gt-tp-lg .is-c::before { background: #5ed0d8; } .gt-tp-lg .is-p::before { height: 12px; background: rgb(242 137 126 / .55); }
.gt-tp-fig .gt-tog { margin-top: 4px; }
.gt-tp-st { margin: 0; max-width: 40rem; font-size: 1rem; line-height: 1.5; color: #ede8df; min-height: 3em; }
.gt-tp-fig[data-v="odihna"] .gt-tp-st .is-progresiv, .gt-tp-fig[data-v="progresiv"] .gt-tp-st .is-odihna { display: none; }

/* „Unde apare mai des”: figura din față cu patru puncte (lângă tabel) */
.gt-tp-corp { justify-items: start; }
.gt-tp-corp-b { position: relative; width: min(100%, 260px); aspect-ratio: 360 / 760; }
.gt-tp-corp-b > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gt-tp-corp .gt-lbl { font-size: 30px; }
.gt-tp-corp .gt-dot { stroke: #142429; stroke-width: 4; }

@media (max-width: 1023px) { .gt-tp-corp { justify-items: center; } .gt-tp-corp-b { width: min(100%, 200px); } }
@media (max-width: 639px) {
  .gt-tp-tx { font-size: 28px; }
  .gt-tp-tx.is-p { font-size: 25px; }
  .gt-tp-tx.is-f[x="307"], .gt-tp-s.is-odihna :is(.gt-tp-tx.is-l, .gt-tp-tx.is-c) { display: none; }   /* pe telefon, numele liniilor stau doar în legendă */
  .gt-tp-lg { font-size: .875rem; gap: 6px 14px; }
  .gt-tp-st { font-size: .9375rem; }
  .gt-tp-b { border-radius: 16px; }
}

/* „Când te adresezi medicului”: treptele folosesc toată lățimea secțiunii, nu coloana de text de 44rem a șablonului
   (în coloana îngustă, „În aceeași zi” se rupea pe trei rânduri; propunere pentru șablon: la fel pentru orice tip='urgenta'). */
.gt-page[data-pagina="glosar-tendinopatie"] #urgenta .gt-sec-b { max-width: none; }

/* „Surse N”: cifra ieșea cu 0,6–1 px jos la 390 (cifre-cerc.mjs); cifra „2” urcă o jumătate de pixel doar pe telefon (ca la program-postura) */
@media (max-width: 1023px) { .gt-page[data-pagina="glosar-tendinopatie"] .hh-src-h span { position: relative; top: -0.5px; } }
