/* tp.css — tema comună a site-ului (extrasă din enhance.js, oct. 2026).
   Încărcată direct din <head> (vezi site_shell.py), ca pagina să nu „sară” după încărcare. */
:root {
  --tp-bg:#ffffff; --tp-fg:#1a1a1a; --tp-muted:#4b5563;
  --tp-border:#e5e7eb; --tp-card-bg:#fafafa; --tp-link:#2563eb;
  --tp-accent:#dc2626; --tp-warn:#f59e0b; --tp-info:#eab308;
}
html[data-tp-theme="dark"] {
  --tp-bg:#0a0a0a; --tp-fg:#f3f4f6; --tp-muted:#9ca3af;
  --tp-border:#2a2a2a; --tp-card-bg:#141414; --tp-link:#60a5fa;
  color-scheme: dark;
}

/* Skip link (keyboard accessibility) */
.tp-skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--tp-accent); color: #fff;
  padding: .5rem 1.1rem; border-radius: 0 0 6px 6px;
  font-size: .9rem; font-weight: 600; z-index: 9999;
  text-decoration: none; transition: top .15s;
}
.tp-skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

/* Sticky nav */
.tp-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--tp-bg);
  border-bottom: 1px solid var(--tp-border);
}
.tp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .55rem 1rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.tp-nav-brand {
  font-weight: 700; text-decoration: none; color: var(--tp-fg);
  white-space: nowrap; font-size: .95rem; display: flex; align-items: center; gap: .4rem;
}
.tp-nav-date {
  font-size: .68rem; font-weight: 400; opacity: .65;
  background: rgba(0,0,0,.06); border-radius: 3px; padding: 1px 5px;
  white-space: nowrap;
}
.tp-nav-links {
  display: flex; gap: .15rem; flex: 1; flex-wrap: wrap;
}
.tp-nav-links a {
  padding: .4rem .75rem; border-radius: 6px;
  text-decoration: none; color: var(--tp-fg); font-size: .88rem;
}
.tp-nav-links a:hover { background: var(--tp-card-bg); }
.tp-nav-links a.active { background: var(--tp-accent); color: #fff; }

/* Toolbar */
.tp-toolbar {
  position: sticky; top: 49px; z-index: 90;
  background: var(--tp-bg);
  border-bottom: 1px solid var(--tp-border);
  padding: .65rem 1rem;
}
.tp-toolbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: .55rem;
}
.tp-toolbar-row {
  display: flex; gap: .45rem; flex-wrap: wrap; align-items: center;
}
.tp-search {
  flex: 1; min-width: 200px;
  padding: .5rem .75rem;
  border: 1px solid var(--tp-border); border-radius: 8px;
  background: var(--tp-bg); color: var(--tp-fg); font-size: .95rem;
}
.tp-search:focus { outline: 2px solid var(--tp-link); outline-offset: -1px; }
.tp-select {
  padding: .5rem .65rem;
  border: 1px solid var(--tp-border); border-radius: 8px;
  background: var(--tp-bg); color: var(--tp-fg);
  font-size: .88rem; cursor: pointer; max-width: 280px;
}
.tp-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .75rem;
  border: 1px solid var(--tp-border); border-radius: 999px;
  background: var(--tp-bg); color: var(--tp-fg);
  cursor: pointer; font-size: .82rem; user-select: none;
}
.tp-chip:hover { background: var(--tp-card-bg); }
.tp-chip[data-sev="CRITIC"].active { background: #dc2626; border-color: #dc2626; color: #fff; }
.tp-chip[data-sev="MAJOR"].active  { background: #f59e0b; border-color: #f59e0b; color: #1a1a1a; }
.tp-chip[data-sev="MEDIU"].active  { background: #eab308; border-color: #eab308; color: #1a1a1a; }
.tp-chip[data-shell].active        { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.tp-chip-cnt { font-size:.75em; font-weight:700; opacity:.85; margin-left:.18em; }
/* Mini-badge financiar pe card (angajați + CA) ─ injectat de enhance.js */
.tp-fin-badge { display:flex; flex-wrap:wrap; gap:.3em; margin:.35em 0 .2em .5em; }
.tp-fin-badge .tp-fb-item {
  font-size:.72rem; color:var(--tp-muted);
  background:rgba(107,114,128,.07); border:1px solid rgba(107,114,128,.16);
  border-radius:4px; padding:.1em .45em; white-space:nowrap;
}
.tp-dark .tp-fin-badge .tp-fb-item { background:rgba(156,163,175,.1); border-color:rgba(156,163,175,.2); }
#tp-shell-row { display: none; }  /* ascuns până confirmăm că există panele */
/* Chips severitate — grupate, nu se separă pe linii diferite */
.tp-chips-sev {
  display: flex; gap: .3rem; flex-shrink: 0; flex-wrap: nowrap;
}

.tp-btn {
  padding: .45rem .85rem;
  border: 1px solid var(--tp-border); border-radius: 6px;
  background: var(--tp-bg); color: var(--tp-fg);
  cursor: pointer; font-size: .85rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
}
.tp-btn:hover { background: var(--tp-card-bg); }
.tp-btn-primary { background: var(--tp-accent); color: #fff; border-color: var(--tp-accent); }
.tp-btn-primary:hover { background: #b91c1c; }

.tp-stats {
  font-size: .82rem; color: var(--tp-muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.tp-stats strong { color: var(--tp-fg); }

/* Summary widget */
.tp-summary {
  max-width: 1200px; margin: 1rem auto; padding: 1rem;
  background: var(--tp-card-bg);
  border: 1px solid var(--tp-border); border-radius: 12px;
}
.tp-summary h3 { margin: 0 0 .75rem 0; font-size: 1rem; }
.tp-summary-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tp-summary-list { font-size: .85rem; }
.tp-summary-li {
  display: flex; justify-content: space-between;
  padding: .35rem 0;
  border-bottom: 1px solid var(--tp-border); gap: .5rem;
}
.tp-summary-li:last-child { border: 0; }
.tp-summary-li strong { color: var(--tp-fg); font-weight: 600; }
.tp-summary-li span.tp-muted { color: var(--tp-muted); font-size: .8rem; }
.tp-summary-bar {
  height: 22px; border-radius: 6px; overflow: hidden;
  display: flex; margin-top: .35rem;
  border: 1px solid var(--tp-border);
}
.tp-summary-bar > span {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem; font-weight: 600;
}

/* Carduri */
.tp-card-hidden { display: none !important; }
.tp-card-anchor {
  margin-left: .5rem; color: var(--tp-muted);
  text-decoration: none; font-size: .8rem;
  opacity: 0; transition: opacity .15s;
}
*:hover > .tp-card-anchor { opacity: 1; }
.tp-card-anchor:hover { color: var(--tp-link); }
.tp-card-flash {
  animation: tpFlash 1.5s ease-out;
}
@keyframes tpFlash {
  0%   { background: rgba(220,38,38,.18); }
  100% { background: transparent; }
}

/* Load more / empty */
.tp-loadmore {
  max-width: 1200px; margin: 1.5rem auto;
  display: flex; justify-content: center;
}
.tp-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--tp-muted);
}
.tp-empty p { margin: .4rem 0; }
.tp-empty code {
  background: var(--tp-card-bg, #f1f5f9); padding: 1px 5px;
  border-radius: 4px; font-size: .85em;
}
.tp-suggest {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center; margin: .5rem 0 1rem;
}
.tp-suggest-btn { font-weight: 600; }

/* Back-to-top */
.tp-back-top {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--tp-border);
  background: var(--tp-bg); color: var(--tp-fg);
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 50; font-size: 1.1rem;
}
.tp-back-top.visible { opacity: 1; pointer-events: auto; }

/* ── Breadcrumbs ── */
.tp-breadcrumb { padding: 8px 16px; font-size: 13px; color: var(--tp-muted, #4b5563); }
.tp-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; max-width: 1200px; margin: 0 auto; }
.tp-breadcrumb li::after { content: '›'; margin-left: 6px; opacity: .5; }
.tp-breadcrumb li:last-child::after { content: ''; margin: 0; }
.tp-breadcrumb li:last-child { font-weight: 600; color: var(--tp-fg, #1a202c); }
.tp-breadcrumb a { color: var(--tp-accent, #00427A); text-decoration: none; }
.tp-breadcrumb a:hover { text-decoration: underline; }

/* ── Sticky CTA mobile ── */
.tp-sticky-cta { display: none; }
@media (max-width: 640px) {
  .tp-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--tp-bg, #fff); border-top: 1px solid var(--tp-border, #e2e8f0);
    display: flex; justify-content: space-around; padding: 6px 8px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.1);
  }
  .tp-sticky-cta a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; font-weight: 600; color: var(--tp-fg, #1a202c);
    text-decoration: none; padding: 6px 12px; border-radius: 8px;
    min-height: 44px; justify-content: center;
  }
  .tp-sticky-cta a:hover, .tp-sticky-cta a:active { background: var(--tp-card-bg, #f7fafc); }
  body { padding-bottom: 64px; }
}
@media print { .tp-sticky-cta { display: none !important; } }

/* ── Focus-visible pe elemente interactive ── */
.tp-chip:focus-visible, .tp-btn:focus-visible, .tp-nav-links a:focus-visible,
.tp-theme-toggle:focus-visible, .tp-back-top:focus-visible, .tp-search:focus-visible,
#tp-load-more:focus-visible, .tp-hamburger:focus-visible {
  outline: 2px solid var(--tp-accent, #00427A); outline-offset: 2px; border-radius: 6px;
}

/* ── Print ── */
@media print {
  .tp-nav, .tp-toolbar, .tp-back-top, .tp-breadcrumb, .alert-banner { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* ── touch-action pe toate elementele interactive ── */
.tp-chip, .tp-btn, .tp-nav-links a, #tp-load-more, .tp-theme-toggle, .tp-back-top {
  touch-action: manipulation;
}
/* ── Touch targets min 44px ── */
.tp-chip { min-height: 44px; display: inline-flex; align-items: center; }
.tp-btn { min-height: 44px; display: inline-flex; align-items: center; }
.tp-search { min-height: 44px; }
.tp-select { min-height: 44px; }
.tp-nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
#tp-load-more { min-height: 44px; min-width: 200px; }
/* ── Hamburger ── */
.tp-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 10px; border: none; background: transparent;
  cursor: pointer; min-width: 44px; min-height: 44px;
  color: var(--tp-fg); border-radius: 6px; touch-action: manipulation; flex-shrink: 0;
}
.tp-hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.tp-nav.open .tp-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-nav.open .tp-hamburger span:nth-child(2) { opacity: 0; }
.tp-nav.open .tp-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ── Mobile ── */
@media (max-width: 640px) {
  .tp-nav-inner { padding: .4rem .6rem; gap: .4rem; flex-wrap: nowrap; align-items: center; }
  .tp-hamburger { display: flex; }
  .tp-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    flex-direction: column; gap: 0; background: var(--tp-bg);
    border-bottom: 2px solid var(--tp-accent); box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: .5rem .6rem;
  }
  .tp-nav.open .tp-nav-links { display: flex; }
  .tp-nav-links a { padding: .6rem .8rem; font-size: .95rem; border-radius: 6px; border-bottom: 1px solid var(--tp-border); min-height: 48px; }
  .tp-nav-links a:last-child { border-bottom: none; }
  .tp-nav-brand { font-size: .82rem; flex: 1; }
  .tp-toolbar { padding: .5rem .6rem; }
  .tp-toolbar-row { flex-wrap: wrap; max-width: 100%; }
  .tp-chips-sev { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tp-chips-sev::-webkit-scrollbar { display: none; }
  .tp-toolbar-row:nth-child(2) { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tp-toolbar-row:nth-child(2)::-webkit-scrollbar { display: none; }
  .tp-select { min-width: 140px; flex: 0 0 auto; }
  .tp-search { font-size: 16px; flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 480px) {
  .tp-nav-brand { font-size: .78rem; }
  .tp-chip { font-size: .8rem; padding: .3rem .6rem; }
}
@media (min-width: 641px) { .tp-hamburger { display: none !important; } }

/* Print */
@media print {
  .tp-nav, .tp-toolbar, .tp-back-top,
  .tp-loadmore, .tp-summary, .tp-banner-whats-new { display: none !important; }
  .tp-card-hidden { display: block !important; }
  .flag-detail { display: block !important; }
  .no-print { display: none !important; }
  details { page-break-inside: avoid; }
  details summary { font-weight: 700; }
  details:not([open]) > *:not(summary) { display: block !important; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="#"]::after,
  a[href^="javascript"]::after { content: ""; }
  .tp-flag { page-break-inside: avoid; border: 1px solid #ddd !important; margin-bottom: 8pt !important; }
}

/* Dark mode toggle */
.tp-theme-toggle {
  padding: .35rem .6rem; border-radius: 6px;
  background: transparent; border: 1px solid var(--tp-border);
  color: var(--tp-fg); cursor: pointer; font-size: 1rem; line-height: 1;
  flex-shrink: 0;
}
.tp-theme-toggle:hover { background: var(--tp-card-bg); }

/* Buton sesizare ANAP pe carduri */
.tp-anap-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .5rem;
  padding: .35rem .75rem;
  background: #fef2f2; border: 1px solid #fca5a5; border-radius: 6px;
  color: #b91c1c; text-decoration: none; font-size: .82rem;
  cursor: pointer; font-family: inherit;
}
.tp-anap-btn:hover { background: #fee2e2; }
html[data-tp-theme="dark"] .tp-anap-btn {
  background: #3f1515; border-color: #7f1d1d; color: #fca5a5;
}

/* Modal mailto fallback (WebView) */
.tp-mailto-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.tp-mailto-modal {
  background: var(--tp-bg, #fff); border-radius: 14px;
  max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 1.5rem; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  position: relative;
}
.tp-mailto-modal h3 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.tp-mailto-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; font-size: 1.3rem; cursor: pointer;
  color: var(--tp-muted, #888); padding: .25rem;
}
.tp-mailto-field { margin-bottom: .75rem; }
.tp-mailto-field label { display: block; font-size: .75rem; font-weight: 600; color: var(--tp-muted, #888); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .5px; }
.tp-mailto-field textarea, .tp-mailto-field input {
  width: 100%; border: 1px solid var(--tp-border, #e5e7eb); border-radius: 6px;
  padding: .5rem; font-size: .85rem; font-family: inherit;
  background: var(--tp-card-bg, #fafafa); color: var(--tp-fg, #1a1a1a);
  resize: vertical;
}
.tp-mailto-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.tp-mailto-actions a, .tp-mailto-actions button {
  padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px;
}
.tp-mailto-copy { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5 !important; }
.tp-mailto-copy:hover { background: #fee2e2; }
.tp-mailto-web { background: #e67e22; color: #fff; }
.tp-mailto-web:hover { background: #d35400; }
.tp-mailto-email { background: #0070C0; color: #fff; }
.tp-mailto-email:hover { background: #005a9e; }
.tp-mailto-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: #27ae60; color: #fff; padding: .6rem 1.2rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; z-index: 10001;
  animation: tpToastIn .3s ease;
}
@keyframes tpToastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
html[data-tp-theme="dark"] .tp-mailto-modal { background: #1a1a1a; }
html[data-tp-theme="dark"] .tp-mailto-copy { background: #3f1515; border-color: #7f1d1d !important; color: #fca5a5; }
html[data-tp-theme="dark"] .tp-mailto-field textarea,
html[data-tp-theme="dark"] .tp-mailto-field input { background: #141414; border-color: #2a2a2a; color: #f3f4f6; }

/* Bandă limită date SEAP */
.tp-data-band {
  background: #fffbeb; color: #78350f; border-bottom: 1px solid #fde68a;
  padding: .45rem 1rem; text-align: center; font-size: .85rem; line-height: 1.4;
}
.tp-data-band strong { font-weight: 700; }
html[data-tp-theme="dark"] .tp-data-band { background: #2a1f05; color: #fde68a; border-color: #4a3a0a; }

/* Butoane de partajare */
.tp-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin-top: .6rem; font-size: .8rem; color: var(--tp-muted);
}
.tp-share-lbl { margin-right: .15rem; }
.tp-share a, .tp-share button {
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 36px; padding: 0 .75rem; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--tp-border); background: var(--tp-bg); color: var(--tp-fg);
}
.tp-share a:hover, .tp-share button:hover { background: var(--tp-card-bg); }
.tp-share .tp-sh-wa { color: #15803d; }
.tp-share .tp-sh-fb { color: #1d4ed8; }
html[data-tp-theme="dark"] .tp-share .tp-sh-wa { color: #4ade80; }
html[data-tp-theme="dark"] .tp-share .tp-sh-fb { color: #93c5fd; }
@media (max-width: 480px) {
  .tp-share-lbl { display: none; }
  .tp-share a, .tp-share button { padding: 0 .6rem; }
}
.tp-share-page { margin: .25rem 0 1rem; font-size: .88rem; }
.tp-share-page a, .tp-share-page button { min-height: 44px; }
html:not(.tp-theme) .tp-sh-copy { display: none; } /* fără JavaScript butonul n-ar face nimic */
@media print { .tp-share, .tp-data-band { display: none !important; } }

/* Banner "ce e nou" */
.tp-banner-whats-new {
  background: var(--tp-accent, #dc2626); color: #fff;
  padding: .6rem 1rem; text-align: center;
  position: relative; font-size: .9rem;
}
.tp-banner-whats-new a { color: #fff; text-decoration: underline; margin: 0 .4rem; }
.tp-banner-close {
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: 0; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  padding: 0 .2rem;
}
.tp-banner-close:hover { opacity: .8; }

/* ════════════════════════════════════════════════════════════════
   (font-display: optional — fără reașezarea textului când fontul sosește târziu)
   TEMA „REGISTRU” (oct. 2026) — albastru-ardezie, serif pentru titluri.
   Vine ultima în CSS, deci suprascrie regulile de mai sus. Culorile vechi
   din stilurile inline ale paginilor generate sunt remapate prin selectori
   de atribut (vezi „Remapare culori inline”).
   ════════════════════════════════════════════════════════════════ */
@font-face { font-family: "TP Serif"; font-style: normal; font-weight: 600; font-display: optional;
  src: url("fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Serif"; font-style: normal; font-weight: 600; font-display: optional;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "TP Sans"; font-style: normal; font-weight: 400; font-display: optional;
  src: url("fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Sans"; font-style: normal; font-weight: 400; font-display: optional;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "TP Sans"; font-style: normal; font-weight: 600; font-display: optional;
  src: url("fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Sans"; font-style: normal; font-weight: 600; font-display: optional;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "TP Sans"; font-style: normal; font-weight: 700; font-display: optional;
  src: url("fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Sans"; font-style: normal; font-weight: 700; font-display: optional;
  src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --tp-bg:#ffffff; --tp-paper:#F4F6F9; --tp-fg:#15243A; --tp-muted:#55627A;
  --tp-border:#D7DEE8; --tp-card-bg:#F4F6F9; --tp-link:#2A5C8F;
  --tp-accent:#2A5C8F; --tp-accent-d:#1D3F63; --tp-tint:#E6EDF5; --tp-line:#4D86C2;
  --tp-hi:#A23B2C; --tp-mid:#8F5A1E; --tp-low:#5E6B78;
  --tp-hi-t:#F6E7E4; --tp-mid-t:#F3EADF; --tp-low-t:#ECEFF2;
  --tp-serif:"TP Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  --tp-sans:"TP Sans", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html[data-tp-theme="dark"] {
  --tp-bg:#111A27; --tp-paper:#0C131E; --tp-fg:#E6ECF4; --tp-muted:#A2AFC2;
  --tp-border:#26354A; --tp-card-bg:#16212F; --tp-link:#8DB6E3;
  --tp-accent:#6E9FD6; --tp-accent-d:#4F82BB; --tp-tint:#17263A; --tp-line:#6E9FD6;
  --tp-hi:#E08A79; --tp-mid:#D6A160; --tp-low:#A2AFC2;
  --tp-hi-t:#3A211D; --tp-mid-t:#35291A; --tp-low-t:#1E2834;
}
html.tp-theme body { font-family: var(--tp-sans) !important; background: var(--tp-paper) !important; color: var(--tp-fg); }
html.tp-theme h1, html.tp-theme h2, html.tp-theme h3 { font-family: var(--tp-serif) !important; font-weight: 600 !important; letter-spacing: -.005em; }
:where(html.tp-theme) :where(a) { color: var(--tp-link); }

/* Meniu */
.tp-nav { background: var(--tp-bg); border-bottom: 1px solid var(--tp-border); }
.tp-nav-inner { max-width: 1120px; padding: 0 24px; min-height: 64px; gap: 24px; flex-wrap: nowrap; }
.tp-nav-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--tp-fg); min-width: 0; }
.tp-nav-name { display: block; font-family: var(--tp-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.tp-nav-brand small { display: block; font-family: var(--tp-sans); font-weight: 400; font-size: .8rem; color: var(--tp-muted); margin-top: 3px; letter-spacing: .02em; }
/* Simbolul (logo_tp.py): dimensiuni fixe, ca meniul să nu se mute la încărcare */
.tp-logo { display: block; flex: none; width: 44px; height: 44px; --tp-logo-bg: #1D3F63; --tp-logo-fg: #fff; --tp-logo-hi: #9CC0E6; }
html[data-tp-theme="dark"] .tp-logo { --tp-logo-bg: #6E9FD6; --tp-logo-fg: #0C131E; --tp-logo-hi: #E6ECF4; }
.tp-nav-date { display: none; }
.tp-nav-links { flex: 0 1 auto; gap: 22px; align-items: center; flex-wrap: nowrap; }
.tp-nav-links a, .tp-more summary { padding: 0; border-radius: 0; font-size: .98rem; font-weight: 600; color: var(--tp-fg); text-decoration: none; min-height: 64px; display: inline-flex; align-items: center; white-space: nowrap; }
.tp-nav-links a:hover, .tp-more summary:hover { background: none; color: var(--tp-link); }
.tp-nav-links a.active { background: none; color: var(--tp-link); box-shadow: inset 0 -3px 0 var(--tp-link); }
.tp-more { position: relative; }
.tp-more summary { list-style: none; cursor: pointer; }
.tp-more summary::-webkit-details-marker { display: none; }
.tp-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 8px; }
.tp-more-list { position: absolute; right: 0; top: 100%; background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 8px; box-shadow: 0 10px 30px rgba(21,36,58,.12); padding: 6px; min-width: 260px; z-index: 300; }
.tp-more-list a { display: flex; min-height: 44px; padding: 0 12px; font-weight: 400; border-radius: 6px; }
.tp-more-list a:hover { background: var(--tp-tint); }
.tp-theme-toggle { border: 1px solid var(--tp-border); color: var(--tp-muted); width: 40px; height: 40px; padding: 0; border-radius: 8px; display: inline-grid; place-items: center; }
@media (max-width: 1000px) {
  .tp-nav-inner { padding: 0 16px; min-height: 58px; gap: 8px; }
  .tp-hamburger { display: flex !important; order: 3; }
  .tp-theme-toggle { order: 2; }
  .tp-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--tp-bg);
    border-bottom: 1px solid var(--tp-border); box-shadow: 0 10px 24px rgba(21,36,58,.12); padding: 6px 16px 12px; }
  .tp-nav.open .tp-nav-links { display: flex; }
  .tp-nav-links a { min-height: 48px; border-bottom: 1px solid var(--tp-border); font-size: 1.02rem; }
  .tp-nav-links a.active { box-shadow: inset 3px 0 0 var(--tp-link); padding-left: 12px; }
  .tp-more summary { display: none; }
  .tp-more-list { position: static; display: block; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .tp-more:not([open]) .tp-more-list { display: block; }
  .tp-more-list a { padding: 0; border-radius: 0; border-bottom: 1px solid var(--tp-border); color: var(--tp-muted); }
  .tp-more-list a:last-child { border-bottom: 0; }
  .tp-nav-brand { gap: 9px; }
  /* numele scade odată cu ecranul, ca să nu ajungă sub butoanele din dreapta */
  .tp-nav-name { font-size: clamp(.9rem, calc((100vw - 176px) / 12.6), 1.06rem); }
  .tp-nav-brand small { font-size: .78rem; margin-top: 2px; }
  .tp-logo { width: 36px; height: 36px; }
}
@media (max-width: 400px) { .tp-logo { width: 32px; height: 32px; } }
@media (max-width: 340px) { .tp-nav-name { white-space: normal; font-size: .95rem; } .tp-nav-brand small { display: none; } }
@media (min-width: 1001px) { .tp-hamburger { display: none !important; } }
/* <details> închis ascunde conținutul; pe telefon îl vrem mereu vizibil */
@media (max-width: 1000px) { .tp-more > .tp-more-list { display: block !important; } .tp-more { display: block; } .tp-more:not([open]) > :not(summary) { display: block; } }

/* Bandă date + banner + breadcrumb */
.tp-data-band { background: var(--tp-tint); color: var(--tp-accent-d); border-bottom: 1px solid var(--tp-border); text-align: left; font-size: .92rem; padding: 9px 24px; }
.tp-data-band strong { font-weight: 600; }
.tp-data-band a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
html[data-tp-theme="dark"] .tp-data-band { background: var(--tp-tint); color: var(--tp-fg); border-color: var(--tp-border); }
.tp-banner-whats-new { background: var(--tp-accent-d); }
.tp-breadcrumb { max-width: 1120px; margin: 0 auto; padding: 10px 24px; }
.tp-breadcrumb a { color: var(--tp-link); }

/* Butoane, chips, căutare */
.tp-btn { border-radius: 8px; font-weight: 600; }
.tp-btn-primary, .tp-btn-primary:hover { background: var(--tp-accent); border-color: var(--tp-accent); }
.tp-search { border: 2px solid var(--tp-fg); border-radius: 10px; font-size: 1rem; }
.tp-chip { font-weight: 600; }
.tp-chip[data-sev="CRITIC"].active { background: var(--tp-hi); border-color: var(--tp-hi); color: #fff; }
.tp-chip[data-sev="MAJOR"].active  { background: var(--tp-mid); border-color: var(--tp-mid); color: #fff; }
.tp-chip[data-sev="MEDIU"].active  { background: var(--tp-low); border-color: var(--tp-low); color: #fff; }
.tp-chip[data-shell].active        { background: var(--tp-accent-d); border-color: var(--tp-accent-d); color: #fff; }
.tp-summary { background: var(--tp-bg); border-radius: 8px; }
.tp-summary h3 { font-size: 1.15rem; }
.tp-summary-bar > span { color: #fff !important; }
.tp-sticky-cta a { font-size: 13px; }
.tp-share a, .tp-share button { border-radius: 8px; }
.tp-share .tp-sh-wa, .tp-share .tp-sh-fb { color: var(--tp-link); }
@keyframes tpFlash { 0% { background: rgba(42,92,143,.16); } 100% { background: transparent; } }

/* Carduri de semnal (raport) */
html.tp-theme .tp-flag { background: var(--tp-bg) !important; border: 1px solid var(--tp-border) !important;
  border-left: 4px solid var(--sev, var(--tp-low)) !important; border-radius: 6px !important; box-shadow: none !important; }
html.tp-theme .tp-flag:hover { box-shadow: 0 4px 14px rgba(21,36,58,.08) !important; }
.tp-flag[data-severity="CRITIC"] { --sev: var(--tp-hi); --sev-t: var(--tp-hi-t); }
.tp-flag[data-severity="MAJOR"]  { --sev: var(--tp-mid); --sev-t: var(--tp-mid-t); }
.tp-flag[data-severity="MEDIU"]  { --sev: var(--tp-low); --sev-t: var(--tp-low-t); }
.tp-sevpill { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--sev, var(--tp-low)) !important;
  background: var(--sev-t, var(--tp-low-t)); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
html.tp-theme .tp-flag .tp-riskpill { background: transparent !important; color: var(--tp-muted) !important; border: 1px solid var(--tp-border);
  font-weight: 600 !important; border-radius: 999px !important; }
html.tp-theme .tp-anap-btn { background: var(--tp-bg); border-color: var(--tp-border); color: var(--tp-fg); font-weight: 600; border-radius: 8px; }
html.tp-theme .tp-anap-btn:hover { background: var(--tp-tint); }
html.tp-theme .tp-flag > div:nth-child(3) span { white-space: nowrap; }

/* Antetul raportului (stilurile inline sunt scoase din JS) */
.tp-rhero { background: var(--tp-bg); border-bottom: 1px solid var(--tp-border); padding: 40px 24px 32px; color: var(--tp-fg); }
.tp-rhero > div { max-width: 960px; margin: 0 auto; }
.tp-rhero h1 { font-size: 2.3rem; line-height: 1.12; margin: 0 0 8px; }
.tp-rhero h1 span { color: var(--tp-link); }
.tp-rhero p { color: var(--tp-muted); margin: 0; }
.tp-rhero .no-print { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.tp-rhero .no-print a, .tp-rhero .no-print button { font: 600 .95rem var(--tp-sans); border-radius: 8px; padding: 10px 16px;
  border: 1px solid var(--tp-border); background: var(--tp-bg); color: var(--tp-fg); text-decoration: none; cursor: pointer; }
.tp-rhero .no-print button { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; }
.tp-rhero .no-print span { font-size: .85rem; color: var(--tp-muted); }
.tp-rhero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 26px; border-top: 3px solid var(--tp-line); }
.tp-rhero-stats > div { padding: 14px 28px 4px 0; margin-right: 28px; }
.tp-rhero-stats > div > div:first-child { font: 600 1.7rem/1.1 var(--tp-serif); color: var(--tp-fg); }
.tp-rhero-stats > div > div:last-child { font-size: .9rem; color: var(--tp-muted); }

/* Remapare culori inline (paginile generate de monitor: raport, fișe furnizori) */
html.tp-theme [style*="color:#0070C0"], html.tp-theme [style*="color:#1A5276"], html.tp-theme [style*="color:#00427A"],
html.tp-theme [style*="color:#005A9C"], html.tp-theme [style*="color:#00244A"], html.tp-theme [style*="color:#2E86C1"] { color: var(--tp-link) !important; }
html.tp-theme [style*="background:#0070C0"], html.tp-theme [style*="background:#00427A"], html.tp-theme [style*="background:#00244A"] { background: var(--tp-accent) !important; }
html.tp-theme [style*="background:#1E8449"], html.tp-theme [style*="background:#117A65"],
html.tp-theme [style*="background:#8E44AD"], html.tp-theme [style*="background:#6C3483"] { background: var(--tp-accent-d) !important; }
html.tp-theme [style*="background:#EBF5FB"] { background: var(--tp-tint) !important; }
html.tp-theme [style*="border-left:4px solid #0070C0"] { border-left-color: var(--tp-line) !important; }
html.tp-theme [style*="color:#C0392B"], html.tp-theme [style*="color:#641E16"] { color: var(--tp-hi) !important; }
html.tp-theme [style*="color:#E67E22"], html.tp-theme [style*="color:#B7950B"] { color: var(--tp-mid) !important; }
html.tp-theme [style*="color:#F39C12"] { color: var(--tp-low) !important; }
html.tp-theme [style*="color:#27AE60"] { color: var(--tp-muted) !important; }
html.tp-theme [style*="background:#C0392B"], html.tp-theme [style*="background:#641E16"] { background: var(--tp-hi) !important; }
html.tp-theme [style*="background:#E67E22"], html.tp-theme [style*="background:#B7950B"] { background: var(--tp-mid) !important; }
html.tp-theme [style*="background:#F39C12"] { background: var(--tp-low) !important; }
html.tp-theme [style*="background:#FDEDEC"] { background: var(--tp-hi-t) !important; }
html.tp-theme [style*="border-left:4px solid #C0392B"] { border-left-color: var(--tp-hi) !important; }
html.tp-theme [style*="border-left:4px solid #E67E22"] { border-left-color: var(--tp-mid) !important; }
html.tp-theme [style*="border-left:4px solid #F39C12"] { border-left-color: var(--tp-low) !important; }
html.tp-theme [style*="border-top:4px solid"] { border-top: 3px solid var(--tp-line) !important; box-shadow: none !important; border-radius: 6px !important; }
html.tp-theme [style*="border-top:4px solid"] > span:first-child { color: var(--tp-fg) !important; font-family: var(--tp-serif); }
html.tp-theme thead { background: var(--tp-accent-d) !important; }
html.tp-theme [style*="background:#F4F6F9"], html.tp-theme [style*="background:#f5f7fa"] { background: var(--tp-paper) !important; }
/* Tema întunecată: griurile inline gândite pentru fond alb */
html[data-tp-theme="dark"].tp-theme :is([style*="color:#333"],[style*="color:#444"],[style*="color:#1A1A2E"],[style*="color:#1a1a1a"]) { color: var(--tp-fg) !important; }
html[data-tp-theme="dark"].tp-theme :is([style*="color:#555"],[style*="color:#666"],[style*="color:#777"],[style*="color:#888"],[style*="color:#999"],[style*="color:#aaa"],[style*="color:#bbb"]) { color: var(--tp-muted) !important; }
html[data-tp-theme="dark"].tp-theme :is([style*="background:#fff"],[style*="background:#F4F6F8"],[style*="background:#f8f9fa"],[style*="background:#f5f5f5"]) { background: var(--tp-card-bg) !important; }
/* Fișe furnizori */
html.tp-theme .container .stat { box-shadow: none; border: 1px solid var(--tp-border); border-radius: 6px; }
html.tp-theme .container .stat-val { font-family: var(--tp-serif); font-weight: 600; color: var(--tp-fg); }
html.tp-theme .container .ext-btn { background: var(--tp-accent); border-radius: 8px; font-weight: 600; }
html.tp-theme .container .stat-val[style*="color:#C0392B"] { color: var(--tp-hi) !important; }
html.tp-theme .container .stat-val[style*="color:#E67E22"] { color: var(--tp-mid) !important; }
html.tp-theme .container .stat-val[style*="color:#F39C12"] { color: var(--tp-low) !important; }
html.tp-theme .container h2 { color: var(--tp-fg); }
html.tp-theme .container .back-link { color: var(--tp-link); }

/* Înălțimea meniului (pentru tab-urile și bara de filtre lipite sub el) */
:root { --tp-nav-h: 64px; }
@media (max-width: 1000px) { :root { --tp-nav-h: 58px; } }

/* ════════════════════════════════════════════════════════════════
   COMPONENTE STATICE (oct. 2026) — markup generat direct de monitor,
   fără stiluri inline și fără retușuri din JS după încărcare.
   ════════════════════════════════════════════════════════════════ */
html.tp-theme input, html.tp-theme select, html.tp-theme button, html.tp-theme textarea { font-family: inherit; }
.tp-muted { color: var(--tp-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.tp-hi { color: var(--tp-hi); font-weight: 700; }

/* Bandă de date (una singură) */
.tp-data-band { padding: 8px 24px; font-size: .9rem; }
.tp-data-band-in { max-width: 1120px; margin: 0 auto; }
.tp-data-band span[aria-hidden] { opacity: .55; margin: 0 .2rem; }

/* Subsol comun */
.tp-site-footer { background: #14263D; color: #C3CEDD; margin-top: 48px; padding: 32px 24px; font-size: .92rem; line-height: 1.6; }
.tp-site-footer-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.tp-site-footer strong { color: #fff; font-family: var(--tp-serif); font-size: 1.05rem; }
.tp-site-footer p { margin: .4rem 0 0; }
.tp-site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.tp-site-footer nav:last-child ul { columns: 1; }
.tp-site-footer li { margin: 0 0 .3rem; break-inside: avoid; }
html.tp-theme .tp-site-footer a { color: #fff; text-decoration: none; }
html.tp-theme .tp-site-footer a:hover { text-decoration: underline; }
@media (max-width: 760px) { .tp-site-footer-in { grid-template-columns: 1fr; gap: 18px; } }
@media print { .tp-site-footer { display: none; } }

/* ── Raport ─────────────────────────────────────────────────── */
.tp-page-raport .wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; }
.tp-page-raport h2 { color: var(--tp-fg); margin: 32px 0 10px; font-size: 1.5rem; }
.tp-rhero-stats > div > div:last-child small { display: block; font-size: .8rem; }
.tp-note { background: var(--tp-tint); border-left: 4px solid var(--tp-line); border-radius: 0 8px 8px 0; padding: 14px 18px;
  color: var(--tp-fg); font-size: .93rem; line-height: 1.6; margin: 8px 0 18px; }
.tp-note a { font-weight: 600; }
.tp-note-ok { border-left-color: var(--tp-low); }
.tp-more-link { margin: 8px 0 0; font-weight: 600; }
.tp-sources { color: var(--tp-muted); font-size: .9rem; margin-top: 28px; }
.tp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.tp-kpi { background: var(--tp-bg); border: 1px solid var(--tp-border); border-top: 3px solid var(--tp-line); border-radius: 6px; padding: 14px 16px; }
.tp-kpi-v { font: 600 1.45rem/1.15 var(--tp-serif); color: var(--tp-fg); }
.tp-kpi-v-sm { font-size: 1rem; }
.tp-kpi-l { font-size: .85rem; color: var(--tp-muted); margin-top: 4px; }
.tp-kpi-n { font-size: .82rem; color: var(--tp-muted); margin-top: 2px; }
.tp-kpi-hi { border-top-color: var(--tp-hi); }
.tp-atp { background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.tp-atp > summary { cursor: pointer; font-weight: 700; color: var(--tp-fg); list-style: none; display: flex; gap: 8px; align-items: center; min-height: 32px; }
.tp-atp > summary::-webkit-details-marker { display: none; }
.tp-atp > summary span { margin-left: auto; font-weight: 400; font-size: .85rem; color: var(--tp-muted); }
/* Analiză pe categorii de semnale (raport) */
.tp-atp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.tp-atp-card[data-sev="CRITIC"], .tp-atp-panel[data-sev="CRITIC"], .tp-sevpill[data-sev="CRITIC"] { --sev: var(--tp-hi); --sev-t: var(--tp-hi-t); }
.tp-atp-card[data-sev="MAJOR"],  .tp-atp-panel[data-sev="MAJOR"],  .tp-sevpill[data-sev="MAJOR"]  { --sev: var(--tp-mid); --sev-t: var(--tp-mid-t); }
.tp-atp-card[data-sev="MEDIU"],  .tp-atp-panel[data-sev="MEDIU"],  .tp-sevpill[data-sev="MEDIU"]  { --sev: var(--tp-low); --sev-t: var(--tp-low-t); }
.tp-atp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: var(--tp-fg);
  background: var(--tp-bg); border: 1px solid var(--tp-border); border-top: 4px solid var(--sev, var(--tp-line)); border-radius: 6px;
  padding: 14px 16px; cursor: pointer; transition: box-shadow .15s, opacity .15s; }
.tp-atp-card:hover { box-shadow: 0 4px 14px rgba(21,36,58,.08); }
.tp-atp-card:focus-visible, .tp-atp-close:focus-visible { outline: 3px solid var(--tp-link); outline-offset: 2px; }
.tp-atp-ales .tp-atp-card[aria-expanded="false"] { opacity: .6; }
.tp-atp-n { font: 600 1.45rem/1.15 var(--tp-serif); }
.tp-atp-l { font-size: .85rem; font-weight: 700; }
.tp-atp-v { font-size: .8rem; color: var(--tp-muted); }
.tp-atp-sev { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tp-atp-sev .tp-sevpill { font-size: .72rem; padding: 1px 8px; }
.tp-atp-panel { margin-top: 16px; background: var(--tp-bg); border: 1px solid var(--tp-border); border-left: 4px solid var(--sev, var(--tp-line));
  border-radius: 6px; padding: 16px 20px; }
.tp-atp-panel-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tp-atp-panel-h h3 { margin: 0; font-size: 1.05rem; color: var(--tp-fg); }
.tp-atp-close { min-height: 44px; padding: 0 14px; font: 600 .85rem var(--tp-sans); color: var(--tp-muted); background: var(--tp-card-bg);
  border: 1px solid var(--tp-border); border-radius: 8px; cursor: pointer; }
.tp-atp-panel h4 { margin: 16px 0 8px; font-size: .9rem; color: var(--tp-muted); }
.tp-atp-bar { display: inline-block; vertical-align: middle; width: 120px; height: 10px; border-radius: 3px; background: var(--tp-low-t); overflow: hidden; }
.tp-atp-bar > span { display: block; height: 100%; background: var(--tp-line); }
.tp-atp-pct { font-size: .75rem; color: var(--tp-muted); }
.tp-atp-luna { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .8rem; }
.tp-atp-luna > span:first-child { min-width: 60px; color: var(--tp-muted); }
@media (max-width: 640px) {
  .tp-atp { padding: 10px 12px; }
  .tp-atp-grid { gap: 8px; }
  .tp-atp-card { padding: 10px 12px; }
  .tp-atp-panel { padding: 12px; }
  .tp-atp-panel .tp-kpis { grid-template-columns: 1fr 1fr; }
  .tp-atp-panel .tp-table .tp-atp-bar { width: 48px; }
}
.tp-toolbar-slot { min-height: 168px; }
@media (max-width: 640px) { .tp-toolbar-slot { min-height: 214px; } }

/* Tabele */
.tp-table { width: 100%; border-collapse: collapse; background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 6px; font-size: .92rem; }
html.tp-theme .tp-table thead { background: var(--tp-accent-d) !important; color: #fff; }
.tp-table th { padding: 9px 12px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.tp-table th.num { text-align: right; }
.tp-table td { padding: 8px 12px; border-bottom: 1px solid var(--tp-border); vertical-align: top; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table-sm { font-size: .85rem; }
.tp-table-sm td, .tp-table-sm th { padding: 6px 9px; }

/* Rezumat */
.tp-summary { border: 1px solid var(--tp-border); padding: 16px 18px; margin: 0 0 14px; }
.tp-summary-h { font-size: .92rem; display: block; margin-bottom: .4rem; }
.tp-summary-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; font-size: .75rem; font-weight: 700; }
.tp-summary-bar > span { display: flex; align-items: center; justify-content: center; color: #fff; }
.tp-sevbar-critic { background: var(--tp-hi); } .tp-sevbar-major { background: var(--tp-mid); } .tp-sevbar-mediu { background: var(--tp-low); }
.tp-summary-li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--tp-border); }
.tp-summary-li > span:last-child { white-space: nowrap; text-align: right; }
.tp-summary-note { font-size: .8rem; color: var(--tp-muted); margin: 10px 0 0; }
.tp-linkbtn { background: none; border: 0; padding: 0 0 0 4px; color: var(--tp-muted); font-size: .78rem; cursor: pointer; text-decoration: underline; }
.tp-linkbtn:hover { color: var(--tp-link); }

/* Carduri de semnal */
/* fără content-visibility: în cardurile nerandate axe vedea țintele „acoperite” (target-size);
   oricum doar primele 25 de carduri sunt afișate, restul au tp-pre-hidden */
.tp-flag { padding: 14px 18px; margin-bottom: 10px; cursor: pointer; }
/* doar cu JS (clasa tp-theme vine din scriptul din <head>); fără JS se văd toate */
html.tp-theme .tp-flag.tp-pre-hidden { display: none; }
.flag-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tp-flag[data-severity="CRITIC"] .tp-sevpill { background: var(--tp-hi-t); }
.tp-flag[data-severity="MAJOR"] .tp-sevpill { background: var(--tp-mid-t); }
.flag-firm { font-size: 1rem; font-weight: 700; }
.flag-firm a { color: var(--tp-fg); text-decoration: none; }
/* ținte de atingere ≥ 24 px (WCAG 2.5.8): linkul firmei, titlul semnalului, scorul firmei */
.flag-firm a, .flag-title, .flag-code { display: inline-flex; align-items: center; min-height: 28px; }
.flag-firm a:hover { color: var(--tp-link); text-decoration: underline; }
.flag-title { font-size: .9rem; color: var(--tp-muted); }
.flag-new { background: var(--tp-accent-d); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.tp-riskpill { background: transparent; color: var(--tp-muted); border: 1px solid var(--tp-border); border-radius: 999px; font-size: .75rem; font-weight: 600; padding: 2px 10px; min-height: 28px; cursor: pointer; }
.tp-riskpill:hover { color: var(--tp-link); border-color: var(--tp-link); }
.flag-arrow { margin-left: auto; font-size: .8rem; color: var(--tp-muted); white-space: nowrap; }
.flag-arrow::after { content: " ▾"; }
.tp-flag.open .flag-arrow::after { content: " ▴"; }
.flag-desc { font-size: .92rem; color: var(--tp-fg); margin: 0 0 8px; line-height: 1.55; }
.flag-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--tp-muted); }
.flag-code { font-weight: 700; color: var(--tp-link); text-decoration: none; border: 1px solid var(--tp-border); border-radius: 4px; padding: 0 6px; background: var(--tp-tint); }
.flag-code:hover { text-decoration: underline; }
.flag-code-old { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.flag-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tp-border); cursor: default; }
.flag-actions, .tp-fp-links, .tp-firm-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-act { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--tp-border);
  background: var(--tp-bg); color: var(--tp-fg) !important; font: 600 .88rem var(--tp-sans); text-decoration: none; cursor: pointer; }
.tp-act:hover { background: var(--tp-tint); }
.tp-act-primary { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff !important; }
.tp-act-primary:hover { background: var(--tp-accent-d); }
html[data-tp-theme="dark"] .tp-act-primary { color: #0C131E !important; }
.flag-share .tp-share { margin: 10px 0 0; }
.flag-sub { margin-top: 12px; }
.flag-sub-h { font-size: .85rem; font-weight: 700; color: var(--tp-fg); margin: 8px 0 6px; }
.flag-help { font-size: .82rem; color: var(--tp-muted); margin: 10px 0 0; }
.firma-contracts-panel { margin-top: 12px; font-size: .9rem; }
.flag-actions .tp-anap-btn { margin: 0 !important; min-height: 40px; display: inline-flex; align-items: center; }

/* Panou profil firmă */
#tp-firma-overlay { display: none; position: fixed; inset: 0; background: rgba(12,19,30,.45); z-index: 9000; }
#tp-firma-panel { position: fixed; top: 0; right: 0; width: min(560px, 100vw); height: 100vh; background: var(--tp-bg); color: var(--tp-fg);
  box-shadow: -4px 0 24px rgba(0,0,0,.18); z-index: 9001; overflow-y: auto; transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1); }
#tp-firma-panel.open { transform: translateX(0); }
.tp-fp-head { position: sticky; top: 0; z-index: 1; background: var(--tp-accent-d); color: #fff; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.tp-fp-title { flex: 1; }
#tp-fp-name { font: 600 1.1rem var(--tp-serif); }
#tp-fp-cui { font-size: .8rem; opacity: .8; }
.tp-fp-head button { background: rgba(255,255,255,.15); border: 0; color: #fff; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 1rem; }
#tp-fp-body { padding: 16px 18px 28px; font-size: .92rem; }
#tp-fp-body h4 { margin: 18px 0 8px; font-size: .95rem; }
.tp-fp-score { display: flex; gap: 14px; align-items: center; background: var(--tp-card-bg); border: 1px solid var(--tp-border); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.tp-fp-score > div:first-child { text-align: center; }
.tp-fp-score > div:first-child span { display: block; font: 600 2rem/1 var(--tp-serif); }
.tp-fp-score > div:first-child small { color: var(--tp-muted); font-size: .7rem; text-transform: uppercase; }
.tp-fp-score p { margin: 6px 0 0; font-size: .85rem; }
.tp-sevpill[data-sev="CRITIC"], [data-sev="CRITIC"] > .tp-sevpill { --sev: var(--tp-hi); background: var(--tp-hi-t); }
.tp-sevpill[data-sev="MAJOR"], [data-sev="MAJOR"] > .tp-sevpill { --sev: var(--tp-mid); background: var(--tp-mid-t); }
.tp-sevpill[data-sev="MEDIU"], [data-sev="MEDIU"] > .tp-sevpill { --sev: var(--tp-low); background: var(--tp-low-t); }
.tp-fp-flag { display: block; border: 1px solid var(--tp-border); border-left-width: 3px; border-radius: 0 6px 6px 0; padding: 8px 10px; margin-bottom: 6px; color: inherit !important; text-decoration: none; }
.tp-fp-flag[data-sev="CRITIC"] { border-left-color: var(--tp-hi); }
.tp-fp-flag[data-sev="MAJOR"] { border-left-color: var(--tp-mid); }
.tp-fp-flag[data-sev="MEDIU"] { border-left-color: var(--tp-low); }
a.tp-fp-flag:hover { background: var(--tp-tint); }
.tp-fp-desc { display: block; font-size: .85rem; margin-top: 4px; line-height: 1.45; }
.tp-fp-meta { display: block; font-size: .8rem; color: var(--tp-link); margin-top: 4px; font-weight: 600; }
.tp-fp-src { font-size: .8rem; color: var(--tp-muted); margin-top: 18px; }

/* ── Fișa firmei și indexul de firme ─────────────────────────── */
.tp-page-firma .container, .tp-page-firme .container { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; }
.tp-page-firma h1, .tp-page-firme h1 { font-size: 2rem; line-height: 1.15; margin: 8px 0 6px; }
.tp-page-firma h2, .tp-page-firme h2 { font-size: 1.3rem; margin: 30px 0 10px; color: var(--tp-fg); }
.tp-page-firma .meta, .tp-page-firme .sub { color: var(--tp-muted); margin-bottom: 18px; }
.tp-page-firma .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.tp-page-firma .stat { background: var(--tp-bg); border: 1px solid var(--tp-border); border-top: 3px solid var(--tp-line); border-radius: 6px; padding: 12px 14px; }
.tp-page-firma .stat-val { font: 600 1.4rem/1.15 var(--tp-serif); color: var(--tp-fg); }
.tp-page-firma .stat-lbl { font-size: .82rem; color: var(--tp-muted); margin-top: 4px; }
.tp-page-firma .stat[data-sev="CRITIC"] { border-top-color: var(--tp-hi); }
.tp-page-firma .stat[data-sev="MAJOR"] { border-top-color: var(--tp-mid); }
.tp-page-firma .stat[data-sev="MEDIU"] { border-top-color: var(--tp-low); }
.ext-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 8px; background: var(--tp-accent); color: #fff !important;
  font-weight: 600; font-size: .9rem; text-decoration: none; }
.ext-btn:hover { background: var(--tp-accent-d); }
.ext-btn-sec { background: var(--tp-bg) !important; color: var(--tp-fg) !important; border: 1px solid var(--tp-border); }
.ext-btn-sec:hover { background: var(--tp-tint) !important; }
html[data-tp-theme="dark"] .ext-btn:not(.ext-btn-sec) { color: #0C131E !important; }
.tp-firm-links { margin: 6px 0 4px; }
.tp-sigs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tp-sig { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--tp-fg) !important; text-decoration: none;
  border: 1px solid var(--tp-border); border-radius: 999px; padding: 2px 10px 2px 2px; background: var(--tp-bg); }
a.tp-sig:hover { border-color: var(--tp-link); color: var(--tp-link) !important; }
.tp-sig .tp-sevpill { font-size: .7rem; padding: 1px 8px; }
.tp-table tr.has-sig td:first-child { box-shadow: inset 3px 0 0 var(--tp-mid); }
.tp-sigcard { background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; }
.tp-sigcard p { margin: 6px 0 0; font-size: .9rem; }
.tp-ment { background: var(--tp-bg); border: 1px solid var(--tp-border); border-left: 3px solid var(--tp-line); border-radius: 0 6px 6px 0; padding: 8px 14px; margin-bottom: 8px; }
.tp-ment > a { font-weight: 600; }
.tp-ment-meta, .tp-ment-rez { font-size: .85rem; color: var(--tp-muted); margin-top: 3px; }
.tp-list { margin: .3rem 0 .5rem 1.2rem; }
.tp-fin h3 { font-size: 1rem; margin: 14px 0 4px; }
.tp-fin-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 6px 0 0; }
.tp-fin-dl dt { color: var(--tp-muted); }
.tp-fin-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-fin .tp-sources { margin-top: 10px; }
.tp-filterbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.tp-filterbar input { flex: 1 1 260px; min-height: 44px; padding: 0 12px; border: 2px solid var(--tp-fg); border-radius: 10px; background: var(--tp-bg); color: var(--tp-fg); font-size: 1rem; }
.tp-filterbar select { min-height: 44px; padding: 0 10px; border: 1px solid var(--tp-border); border-radius: 8px; background: var(--tp-bg); color: var(--tp-fg); }
.tp-page-firme td.sig-hi { color: var(--tp-hi); font-weight: 700; }
.tp-page-firme td.sig-mid { color: var(--tp-mid); font-weight: 600; }
.tp-page-firme td.sig-none { color: var(--tp-muted); }
/* Lista firmelor pe telefon: fiecare rând devine card (eticheta coloanei vine din CSS) */
@media (max-width: 640px) {
  .tp-page-firme .tp-table, .tp-page-firme .tp-table tbody, .tp-page-firme .tp-table tr, .tp-page-firme .tp-table td { display: block; }
  .tp-page-firme .tp-table { border: 0; background: transparent; font-size: .95rem; }
  .tp-page-firme .tp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tp-page-firme .tp-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--tp-bg);
    border: 1px solid var(--tp-border); border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; }
  .tp-page-firme .tp-table td { border: 0; padding: 0; text-align: left; }
  .tp-page-firme .tp-table td:first-child { grid-column: 1 / -1; font-weight: 600; overflow-wrap: anywhere; }
  .tp-page-firme .tp-table td:first-child a { display: inline-block; padding: 6px 0; }
  .tp-page-firme .tp-table td:nth-child(4) { grid-column: 1 / -1; }
  .tp-page-firme .tp-table td:nth-child(n+2)::before { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; color: var(--tp-muted); }
  .tp-page-firme .tp-table td:nth-child(2)::before { content: "Valoare contracte"; }
  .tp-page-firme .tp-table td:nth-child(3)::before { content: "Contracte"; }
  .tp-page-firme .tp-table td:nth-child(4)::before { content: "Semnale (critic / major / mediu)"; }
}

/* Pagina 404 */
.tp-404 { max-width: 720px; margin: 0 auto; padding: 56px 16px; }
.tp-404 h1 { font-size: 2.2rem; margin: 0 0 10px; }
.tp-404 form { display: flex; max-width: 560px; border: 2px solid var(--tp-fg); border-radius: 10px; overflow: hidden; margin: 20px 0; background: var(--tp-bg); }
.tp-404 input { flex: 1; min-width: 0; border: 0; padding: 13px 16px; font-size: 1.05rem; background: transparent; color: var(--tp-fg); }
.tp-404 button { border: 0; background: var(--tp-accent); color: #fff; font-weight: 600; padding: 0 22px; cursor: pointer; }
.tp-404 ul { line-height: 1.9; }

/* Pagina: fără marginea implicită a browserului (paginile generate nu mai au stil propriu pe body) */
html.tp-theme body { margin: 0; }

/* Antetul raportului pe telefon: titlu mai mic, cifrele pe două coloane */
@media (max-width: 640px) {
  .tp-rhero { padding: 24px 16px 18px; }
  .tp-rhero h1 { font-size: 1.7rem; }
  .tp-rhero p { font-size: .92rem; }
  .tp-rhero-actions a, .tp-rhero-actions span { display: none !important; }
  .tp-rhero-stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; margin-top: 18px; }
  .tp-rhero-stats > div { padding: 10px 0 2px; margin-right: 0; }
  .tp-rhero-stats > div > div:first-child { font-size: 1.35rem; }
  .tp-rhero-stats > div > div:last-child { font-size: .82rem; }
  .tp-page-raport .wrap, .tp-page-firma .container, .tp-page-firme .container { padding: 18px 14px 32px; }
  .tp-page-raport h2 { font-size: 1.3rem; margin-top: 26px; }
  .tp-page-firma h1, .tp-page-firme h1 { font-size: 1.6rem; }
  .tp-flag { padding: 12px 14px; }
  .flag-arrow { margin-left: 0; }
  .tp-data-band { padding: 7px 16px; font-size: .84rem; }
  .tp-summary-li { flex-wrap: wrap; }
  .tp-summary-li > span:last-child { white-space: normal; }
}

@media print {
  .tp-flag.tp-pre-hidden { display: block !important; }
  .tp-data-band, .tp-skip-link, .tp-toolbar-slot, #tp-firma-panel, #tp-firma-overlay { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   TEMA „AFIȘ” (29.10.2026) — litere groase (Archivo Black / Archivo), chenare
   de 3 px, fără colțuri rotunjite și fără umbre. Paleta: bleumarin, albastru,
   albastru deschis și roșu (doar pentru ce e grav).
   Vine ultima, deci suprascrie tema „Registru” de mai sus. Aspectul de dinainte:
   assets/tp-clasic.css și tag-ul git stil-vechi-2026-10-29.
   Selectorii încep cu html.tp-theme ca să bată și stilurile proprii ale paginilor.
   ════════════════════════════════════════════════════════════════ */
@font-face { font-family: "TP Display"; font-style: normal; font-weight: 400; font-display: optional;
  src: url("fonts/archivo-black-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Display"; font-style: normal; font-weight: 400; font-display: optional;
  src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "TP Grotesk"; font-style: normal; font-weight: 400; font-display: optional;
  src: url("fonts/archivo-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Grotesk"; font-style: normal; font-weight: 400; font-display: optional;
  src: url("fonts/archivo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "TP Grotesk"; font-style: normal; font-weight: 600; font-display: optional;
  src: url("fonts/archivo-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Grotesk"; font-style: normal; font-weight: 600; font-display: optional;
  src: url("fonts/archivo-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "TP Grotesk"; font-style: normal; font-weight: 800; font-display: optional;
  src: url("fonts/archivo-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TP Grotesk"; font-style: normal; font-weight: 800; font-display: optional;
  src: url("fonts/archivo-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

html.tp-theme {
  --tp-ink:#002A59; --tp-ink-bg:#002A59; --tp-sky:#8FA9D8; --tp-sky-text:#4A62A4;
  --tp-bg:#ffffff; --tp-paper:#ffffff; --tp-fg:#002A59; --tp-muted:#3A4F73;
  --tp-border:#B2BFCD; --tp-card-bg:#EEF2F8; --tp-link:#00458C;
  --tp-accent:#00458C; --tp-accent-d:#002A59; --tp-accent-fill:#00458C; --tp-tint:#E8EEF7; --tp-line:#6C8CC7;
  --tp-hi:#D0001B; --tp-hi-fill:#E3001E; --tp-mid:#00458C; --tp-low:#4A62A4;
  --tp-hi-t:#FFE5E8; --tp-mid-t:#E1EAF5; --tp-low-t:#ECEFF6;
  --tp-display:"TP Display", "Archivo Black", "Arial Black", Impact, sans-serif;
  --tp-serif:var(--tp-display);
  --tp-sans:"TP Grotesk", Archivo, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
html.tp-theme[data-tp-theme="dark"] {
  --tp-ink:#6C8CC7; --tp-ink-bg:#00244D; --tp-sky:#8FA9D8; --tp-sky-text:#8FA9D8;
  --tp-bg:#001A38; --tp-paper:#00142C; --tp-fg:#EEF3FA; --tp-muted:#B2BFCD;
  --tp-border:#2C4A75; --tp-card-bg:#00244D; --tp-link:#9DB8E8;
  --tp-accent:#9DB8E8; --tp-accent-d:#6C8CC7; --tp-accent-fill:#00458C; --tp-tint:#062B57; --tp-line:#6C8CC7;
  --tp-hi:#FF6B7C; --tp-hi-fill:#E3001E; --tp-mid:#9DB8E8; --tp-low:#B2BFCD;
  --tp-hi-t:#3D0A12; --tp-mid-t:#082F5E; --tp-low-t:#0F2A4E;
}

/* Bază */
html.tp-theme body { font-family: var(--tp-sans) !important; background: var(--tp-paper) !important; color: var(--tp-fg); }
html.tp-theme h1, html.tp-theme h2, html.tp-theme h3 { font-family: var(--tp-display) !important; font-weight: 400 !important; letter-spacing: -.01em; line-height: 1.1; }
html.tp-theme h4 { font-weight: 800; }
html.tp-theme strong, html.tp-theme b { font-weight: 800; }
html.tp-theme a { text-underline-offset: 3px; }
html.tp-theme ::selection { background: var(--tp-sky); color: #002A59; }

/* Meniu: o bandă albă cu chenar gros dedesubt */
html.tp-theme .tp-nav { background: var(--tp-bg); border-bottom: 3px solid var(--tp-ink); }
html.tp-theme .tp-nav-name { font-family: var(--tp-display); font-weight: 400; font-size: 1.18rem; letter-spacing: .01em; text-transform: uppercase; }
html.tp-theme .tp-nav-brand small { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
html.tp-theme .tp-logo { --tp-logo-bg: #002A59; --tp-logo-fg: #fff; --tp-logo-hi: #6C8CC7; }
html.tp-theme[data-tp-theme="dark"] .tp-logo { --tp-logo-bg: #fff; --tp-logo-fg: #002A59; --tp-logo-hi: #00458C; }
html.tp-theme .tp-nav-links a { border-radius: 0; font-weight: 800; color: var(--tp-fg); }
html.tp-theme .tp-nav-links a:hover { background: transparent; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
html.tp-theme .tp-nav-links a.active, html.tp-theme .tp-nav-links a[aria-current="page"] { background: var(--tp-ink-bg); color: #fff; text-decoration: none; }
html.tp-theme .tp-more summary { font-weight: 800; }
html.tp-theme .tp-more-list { border: 3px solid var(--tp-ink); border-radius: 0; box-shadow: none; background: var(--tp-bg); }
html.tp-theme .tp-theme-toggle { border-radius: 0; border: 3px solid var(--tp-ink); color: var(--tp-fg); }

/* Banda de date: albastru plin */
html.tp-theme .tp-data-band, html.tp-theme[data-tp-theme="dark"] .tp-data-band { background: var(--tp-accent-fill); color: #fff; border-bottom: 3px solid var(--tp-ink); font-weight: 600; }
html.tp-theme .tp-data-band strong { font-weight: 800; }
html.tp-theme .tp-data-band a { color: #fff; }
html.tp-theme .tp-banner-whats-new { background: var(--tp-hi-fill); }
html.tp-theme .tp-skip-link { background: var(--tp-hi-fill); border-radius: 0; }

/* Butoane, câmpuri, etichete */
html.tp-theme .tp-btn, html.tp-theme .tp-act, html.tp-theme .ext-btn, html.tp-theme .tp-anap-btn, html.tp-theme .tp-atp-close,
html.tp-theme .tp-share a, html.tp-theme .tp-share button, html.tp-theme .tp-chip, html.tp-theme .tp-select, html.tp-theme .tp-search,
html.tp-theme .tp-riskpill, html.tp-theme .flag-new, html.tp-theme .tp-sig, html.tp-theme .flag-code { border-radius: 0 !important; }
html.tp-theme .tp-act, html.tp-theme .ext-btn, html.tp-theme .tp-anap-btn { border: 3px solid var(--tp-ink) !important; font-weight: 800; box-shadow: none; }
html.tp-theme .tp-act-primary, html.tp-theme .ext-btn:not(.ext-btn-sec), html.tp-theme .tp-btn-primary { background: var(--tp-accent-fill) !important; border-color: var(--tp-accent-fill) !important; color: #fff !important; }
html.tp-theme .tp-act-primary:hover, html.tp-theme .ext-btn:not(.ext-btn-sec):hover { background: var(--tp-ink-bg) !important; }
html.tp-theme[data-tp-theme="dark"] .tp-act-primary, html.tp-theme[data-tp-theme="dark"] .ext-btn:not(.ext-btn-sec) { color: #fff !important; }
html.tp-theme .tp-search, html.tp-theme .tp-filterbar input, html.tp-theme .tp-404 form { border: 3px solid var(--tp-ink); border-radius: 0; }
html.tp-theme .tp-filterbar select, html.tp-theme .tp-select { border: 3px solid var(--tp-ink); border-radius: 0; }
html.tp-theme .tp-404 button { background: var(--tp-accent-fill); font-family: var(--tp-display); font-weight: 400; text-transform: uppercase; }
html.tp-theme .tp-chip { border: 3px solid var(--tp-ink); font-weight: 800; }
html.tp-theme .tp-chip.active { background: var(--tp-ink-bg); border-color: var(--tp-ink-bg); color: #fff; }
html.tp-theme .tp-chip[data-sev="CRITIC"] { border-color: var(--tp-hi-fill); color: var(--tp-hi); }
html.tp-theme .tp-chip[data-sev="CRITIC"].active { background: var(--tp-hi-fill); border-color: var(--tp-hi-fill); color: #fff; }
html.tp-theme .tp-chip[data-sev="MAJOR"].active { background: var(--tp-accent-fill); border-color: var(--tp-accent-fill); color: #fff; }
html.tp-theme .tp-chip[data-sev="MEDIU"].active { background: var(--tp-sky); border-color: var(--tp-sky); color: #002A59; }
html.tp-theme .tp-toolbar { border-bottom: 3px solid var(--tp-ink); }

/* Etichetele de severitate: dreptunghiuri pline, cu majuscule */
html.tp-theme .tp-sevpill { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .72rem; padding: 3px 8px; }
html.tp-theme .tp-sevpill[data-sev="CRITIC"], html.tp-theme [data-sev="CRITIC"] > .tp-sevpill, html.tp-theme .tp-flag[data-severity="CRITIC"] .tp-sevpill { background: var(--tp-hi-fill) !important; color: #fff !important; }
html.tp-theme .tp-sevpill[data-sev="MAJOR"], html.tp-theme [data-sev="MAJOR"] > .tp-sevpill, html.tp-theme .tp-flag[data-severity="MAJOR"] .tp-sevpill { background: var(--tp-accent-fill) !important; color: #fff !important; }
html.tp-theme .tp-sevpill[data-sev="MEDIU"], html.tp-theme [data-sev="MEDIU"] > .tp-sevpill, html.tp-theme .tp-flag[data-severity="MEDIU"] .tp-sevpill { background: var(--tp-sky) !important; color: #002A59 !important; }
html.tp-theme .flag-new { background: var(--tp-hi-fill); }
html.tp-theme .tp-flag[data-severity="CRITIC"], html.tp-theme .tp-atp-card[data-sev="CRITIC"], html.tp-theme .tp-atp-panel[data-sev="CRITIC"] { --sev: var(--tp-hi-fill); }
html.tp-theme .tp-flag[data-severity="MAJOR"], html.tp-theme .tp-atp-card[data-sev="MAJOR"], html.tp-theme .tp-atp-panel[data-sev="MAJOR"] { --sev: var(--tp-accent-fill); }
html.tp-theme .tp-flag[data-severity="MEDIU"], html.tp-theme .tp-atp-card[data-sev="MEDIU"], html.tp-theme .tp-atp-panel[data-sev="MEDIU"] { --sev: var(--tp-sky); }

/* Carduri: chenar gros, margine colorată lată, fără rotunjiri și umbre */
html.tp-theme .tp-flag { border: 3px solid var(--tp-ink) !important; border-left: 12px solid var(--sev, var(--tp-sky)) !important; border-radius: 0 !important; box-shadow: none !important; }
html.tp-theme .tp-flag:hover { box-shadow: none !important; background: var(--tp-tint) !important; }
html.tp-theme .flag-firm { font-family: var(--tp-display); font-weight: 400; font-size: 1.12rem; letter-spacing: -.005em; }
html.tp-theme .flag-title { color: var(--tp-fg); font-weight: 600; }
html.tp-theme .flag-code { border: 2px solid var(--tp-ink); background: transparent; }
html.tp-theme .flag-detail { border-top: 3px solid var(--tp-ink); }
html.tp-theme .tp-kpi, html.tp-theme .tp-page-firma .stat, html.tp-theme .tp-atp-card, html.tp-theme .tp-atp-panel, html.tp-theme .tp-atp,
html.tp-theme .tp-summary, html.tp-theme .tp-sigcard, html.tp-theme .tp-ment, html.tp-theme .tp-fp-score, html.tp-theme .tp-fp-flag {
  border: 3px solid var(--tp-ink) !important; border-radius: 0 !important; box-shadow: none !important; }
html.tp-theme .tp-kpi-hi, html.tp-theme .tp-page-firma .stat[data-sev="CRITIC"] { background: var(--tp-hi-fill); border-color: var(--tp-hi-fill) !important; }
html.tp-theme .tp-kpi-hi *, html.tp-theme .tp-page-firma .stat[data-sev="CRITIC"] * { color: #fff !important; }
html.tp-theme .tp-atp-card { border-top: 10px solid var(--sev, var(--tp-sky)) !important; }
html.tp-theme .tp-atp-panel, html.tp-theme .tp-fp-flag, html.tp-theme .tp-ment { border-left: 12px solid var(--sev, var(--tp-sky)) !important; }
html.tp-theme .tp-fp-flag[data-sev="CRITIC"] { --sev: var(--tp-hi-fill); }
html.tp-theme .tp-fp-flag[data-sev="MAJOR"] { --sev: var(--tp-accent-fill); }
html.tp-theme .tp-kpi-v, html.tp-theme .tp-atp-n, html.tp-theme .tp-page-firma .stat-val, html.tp-theme .tp-rhero-stats > div > div:first-child,
html.tp-theme .tp-fp-score > div:first-child span, html.tp-theme #tp-fp-name { font-family: var(--tp-display); font-weight: 400; letter-spacing: -.01em; }
html.tp-theme .tp-kpi-v, html.tp-theme .tp-page-firma .stat-val { font-size: 1.9rem; line-height: 1; }
html.tp-theme .tp-kpi-l, html.tp-theme .tp-page-firma .stat-lbl, html.tp-theme .tp-atp-l { font-weight: 600; color: var(--tp-fg); }
html.tp-theme .tp-note { border-radius: 0; border: 3px solid var(--tp-ink); border-left: 12px solid var(--tp-accent-fill); background: var(--tp-bg); }
html.tp-theme .tp-summary-bar { border-radius: 0; border: 3px solid var(--tp-ink); height: 26px; }
html.tp-theme .tp-sevbar-critic { background: var(--tp-hi-fill); }
html.tp-theme .tp-sevbar-major { background: var(--tp-accent-fill); }
html.tp-theme .tp-sevbar-mediu { background: var(--tp-sky); }
html.tp-theme .tp-summary-bar > span.tp-sevbar-mediu { color: #002A59 !important; }

/* Tabele: cap bleumarin, linii groase */
html.tp-theme .tp-table { border: 3px solid var(--tp-ink); border-radius: 0; }
html.tp-theme .tp-table thead { background: var(--tp-ink-bg) !important; }
html.tp-theme .tp-table th { font-weight: 800; letter-spacing: .08em; }
html.tp-theme .tp-table td { border-bottom: 2px solid var(--tp-border); }
html.tp-theme .tp-table tr.has-sig td:first-child { box-shadow: inset 6px 0 0 var(--tp-hi-fill); }

/* Antetele mari (raport, buget): afiș bleumarin */
html.tp-theme .tp-rhero, html.tp-theme header.tp-bhero { background: var(--tp-ink-bg) !important; color: #fff !important; border-bottom: 3px solid var(--tp-ink) !important; }
html.tp-theme .tp-rhero h1, html.tp-theme header.tp-bhero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: .98; letter-spacing: -.02em; }
html.tp-theme .tp-rhero h1 span, html.tp-theme header.tp-bhero h1 span { color: var(--tp-sky) !important; }
html.tp-theme .tp-rhero p, html.tp-theme header.tp-bhero .header-main p { color: #C9D5EA !important; }
html.tp-theme .tp-rhero-stats, html.tp-theme header.tp-bhero .header-stats { border-top: 3px solid var(--tp-sky) !important; }
html.tp-theme .tp-rhero-stats > div > div:first-child, html.tp-theme header.tp-bhero .stat-pill .val { color: #fff !important; font-family: var(--tp-display) !important; font-weight: 400 !important; font-size: 2rem !important; line-height: 1.05; }
html.tp-theme .tp-rhero-stats > div > div:last-child, html.tp-theme header.tp-bhero .stat-pill .lbl { color: #C9D5EA !important; font-weight: 600; }
html.tp-theme .tp-rhero-stats > div:first-child > div:first-child { color: var(--tp-sky) !important; }
html.tp-theme .tp-rhero .no-print a, html.tp-theme .tp-rhero .no-print button,
html.tp-theme header.tp-bhero .header-actions a, html.tp-theme header.tp-bhero .header-actions button {
  border-radius: 0 !important; border: 3px solid #fff !important; background: transparent !important; color: #fff !important; font-weight: 800 !important; }
html.tp-theme .tp-rhero .no-print button, html.tp-theme header.tp-bhero .header-actions a.primary { background: #fff !important; color: #002A59 !important; }
html.tp-theme .tp-rhero .no-print span { color: #C9D5EA; }
html.tp-theme header.tp-bhero .badge-civic { border-radius: 0; background: var(--tp-sky); color: #002A59; }
html.tp-theme .tp-page-firma h1, html.tp-theme .tp-page-firme h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.02em; }
html.tp-theme .tp-page-firma .meta { font-weight: 600; letter-spacing: .04em; color: var(--tp-accent); }
html.tp-theme .tp-page-raport h2, html.tp-theme .tp-page-firma h2, html.tp-theme .tp-page-firme h2 { font-size: 1.7rem; border-bottom: 3px solid var(--tp-ink); padding-bottom: 6px; }

/* Panoul profilului firmei */
html.tp-theme #tp-firma-panel { border-left: 3px solid var(--tp-ink); box-shadow: none; }
html.tp-theme .tp-fp-head { background: var(--tp-ink-bg); }
html.tp-theme .tp-fp-head button { border-radius: 0; }

/* Paginile cu stil propriu (despre, modele, petiție, presă, GDPR, hartă, rețele) */
html.tp-theme .page-wrap h1 { font-size: clamp(2rem, 5vw, 3.2rem) !important; line-height: 1 !important; letter-spacing: -.02em; color: var(--tp-fg) !important; }
html.tp-theme .page-wrap h2 { color: var(--tp-fg) !important; border-bottom: 3px solid var(--tp-ink) !important; }
html.tp-theme .page-wrap h3 { color: var(--tp-fg) !important; }
html.tp-theme .page-wrap p, html.tp-theme .page-wrap li { color: var(--tp-fg); }
html.tp-theme .page-wrap a { color: var(--tp-link); }
html.tp-theme .note, html.tp-theme .warn, html.tp-theme .callout { border-radius: 0 !important; border: 3px solid var(--tp-ink) !important; border-left: 12px solid var(--tp-accent-fill) !important; background: var(--tp-bg) !important; color: var(--tp-fg) !important; }
html.tp-theme .warn { border-left-color: var(--tp-hi-fill) !important; }
html.tp-theme .tag { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; }
html.tp-theme .tag-critic { background: var(--tp-hi-fill); color: #fff; }
html.tp-theme .tag-major { background: var(--tp-accent-fill); color: #fff; }
html.tp-theme .tag-mediu { background: var(--tp-sky); color: #002A59; }
html.tp-theme .counter-box { border-radius: 0 !important; background: var(--tp-ink-bg) !important; }
html.tp-theme .counter-num { font-family: var(--tp-display); font-weight: 400; font-size: 3.6rem; }
html.tp-theme .petition-form { border-radius: 0 !important; border: 3px solid var(--tp-ink) !important; box-shadow: none !important; }
html.tp-theme .page-wrap input[type="text"], html.tp-theme .page-wrap input[type="email"], html.tp-theme .page-wrap textarea { border: 3px solid var(--tp-ink); border-radius: 0; }
html.tp-theme .page-wrap button { border-radius: 0 !important; font-weight: 800; }
html.tp-theme .page-wrap code { border-radius: 0; background: var(--tp-tint); color: var(--tp-fg); }

/* Bara de jos (telefon) și butonul „sus” */
html.tp-theme .tp-sticky-cta { border-top: 3px solid var(--tp-ink); box-shadow: none; padding: 0; justify-content: stretch; }
html.tp-theme .tp-sticky-cta a { flex: 1; border-radius: 0; font-weight: 800; font-size: 12px; padding: 6px 4px; text-align: center; }
html.tp-theme .tp-sticky-cta a + a { border-left: 3px solid var(--tp-ink); }
html.tp-theme .tp-sticky-cta a:first-child { background: var(--tp-ink-bg); color: #fff; }
html.tp-theme .tp-back-top { border-radius: 0; border: 3px solid var(--tp-ink); box-shadow: none; font-weight: 800; }

/* Subsol */
html.tp-theme .tp-site-footer { background: var(--tp-ink-bg); color: #C9D5EA; border-top: 10px solid var(--tp-accent-fill); }
html.tp-theme .tp-site-footer strong { font-family: var(--tp-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
html.tp-theme .tp-site-footer a { font-weight: 600; }

@media (max-width: 640px) {
  html.tp-theme .tp-nav-name { font-size: clamp(.72rem, 3.5vw, .95rem); letter-spacing: 0; }
  html.tp-theme .tp-nav-brand small { font-size: .62rem; letter-spacing: .08em; }
  html.tp-theme .tp-rhero-stats > div > div:first-child, html.tp-theme header.tp-bhero .stat-pill .val { font-size: 1.5rem !important; }
  html.tp-theme .tp-flag { border-left-width: 8px !important; }
  html.tp-theme .tp-page-firme .tp-table tr { border: 3px solid var(--tp-ink); border-radius: 0; }
}
@media print {
  html.tp-theme .tp-rhero, html.tp-theme header.tp-bhero { background: #fff !important; color: #000 !important; }
  html.tp-theme .tp-rhero h1, html.tp-theme .tp-rhero-stats > div > div:first-child { color: #000 !important; }
}

/* ── Afiș: componentele paginilor cu stil propriu ─────────────────────── */
/* Fără colțuri rotunjite și fără umbre în conținut (excepții: ștampila rotundă,
   punctele din legende și hărțile) */
html.tp-theme main :is(div, section, article, aside, a, button, span, input, select, textarea, ul, ol, table, details, summary, label, nav, p):not(.ph-stamp):not([class*="leaflet"]):not([class*="legend-dot"]):not(.status-dot) {
  border-radius: 0 !important; box-shadow: none !important; }

/* Pagina unui semnal (semnale/*.html) */
html.tp-theme main > article.card { border: 3px solid var(--tp-ink); border-left: 14px solid var(--sev, var(--tp-sky)); padding: 26px 28px; }
html.tp-theme article.card[data-sev="CRITIC"] { --sev: var(--tp-hi-fill); }
html.tp-theme article.card[data-sev="MAJOR"] { --sev: var(--tp-accent-fill); }
html.tp-theme article.card[data-sev="MEDIU"] { --sev: var(--tp-sky); }
html.tp-theme article.card .sev { background: var(--sev, var(--tp-sky)); color: #fff; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 12px; padding: 4px 10px; }
html.tp-theme article.card[data-sev="MEDIU"] .sev { color: #002A59; }
html.tp-theme article.card h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.02; letter-spacing: -.02em; }
html.tp-theme article.card .firma a { font-family: var(--tp-display); font-weight: 400; font-size: 1.15rem; }
html.tp-theme article.card .fapte span:first-child { font-family: var(--tp-display); font-size: 1.6rem; color: var(--tp-fg); }
html.tp-theme article.card .btn { background: var(--tp-accent-fill); border: 3px solid var(--tp-accent-fill); font-weight: 800; }
html.tp-theme article.card .btn:hover { background: var(--tp-ink-bg); border-color: var(--tp-ink-bg); }
html.tp-theme article.card .btn.sec { background: var(--tp-bg); color: var(--tp-fg); border: 3px solid var(--tp-ink); }
html.tp-theme article.card .btn.sec:hover { background: var(--tp-tint); }

/* Butoanele de distribuire */
html.tp-theme .tp-share a, html.tp-theme .tp-share button { border: 3px solid var(--tp-ink) !important; font-weight: 800; color: var(--tp-fg) !important; background: var(--tp-bg); }
html.tp-theme .tp-share .tp-sh-wa, html.tp-theme .tp-share .tp-sh-fb { background: var(--tp-accent-fill); border-color: var(--tp-accent-fill) !important; color: #fff !important; }
html.tp-theme .tp-share-lbl { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* Meniu: elementul activ are loc pentru text */
@media (min-width: 641px) {
  html.tp-theme .tp-nav-links { gap: 2px; }
  html.tp-theme .tp-nav-links a { padding: 0 10px; }
  html.tp-theme .tp-more summary { padding: 0 10px; }
}
html.tp-theme .tp-nav-links a.active { box-shadow: none; }
@media (max-width: 640px) {
  html.tp-theme .tp-nav-links { border-bottom: 3px solid var(--tp-ink); box-shadow: none; }
  html.tp-theme .tp-nav-links a { border-radius: 0; border-bottom: 2px solid var(--tp-border); }
}

/* Fișa firmei: căsuța „critic” e roșie doar ca bordură (poate fi 0) */
html.tp-theme .tp-page-firma .stat[data-sev="CRITIC"], html.tp-theme .tp-kpi-hi { background: var(--tp-bg); border-color: var(--tp-ink) !important; border-top: 10px solid var(--tp-hi-fill) !important; }
html.tp-theme .tp-page-firma .stat[data-sev="CRITIC"] *, html.tp-theme .tp-kpi-hi * { color: inherit !important; }
html.tp-theme .tp-page-firma .stat[data-sev="CRITIC"] .stat-val, html.tp-theme .tp-kpi-hi .tp-kpi-v { color: var(--tp-hi) !important; }
html.tp-theme .tp-page-firma .stat[data-sev="MAJOR"] { border-top: 10px solid var(--tp-accent-fill) !important; }
html.tp-theme .tp-page-firma .stat[data-sev="MEDIU"] { border-top: 10px solid var(--tp-sky) !important; }

/* Bugetul (transparenta_pantelimon.html) */
html.tp-theme nav.tabs { background: var(--tp-bg) !important; border-bottom: 3px solid var(--tp-ink) !important; box-shadow: none !important; }
html.tp-theme nav.tabs ul li a { color: var(--tp-fg) !important; font-weight: 800 !important; border-bottom: 0 !important; }
html.tp-theme nav.tabs ul li a:hover { background: var(--tp-tint) !important; }
html.tp-theme nav.tabs ul li a.active { background: var(--tp-ink-bg) !important; color: #fff !important; }
html.tp-theme nav.tabs .cnt, html.tp-theme nav.tabs [class*="badge"] { background: var(--tp-hi-fill) !important; color: #fff !important; }
html.tp-theme .section-title { font-family: var(--tp-display) !important; font-weight: 400 !important; color: var(--tp-fg) !important; font-size: clamp(1.5rem, 3vw, 2rem) !important;
  border-bottom: 3px solid var(--tp-ink) !important; }
html.tp-theme .section-title .icon { display: none; }
html.tp-theme .card:not([data-sev]), html.tp-theme .chart-box, html.tp-theme .flag-card, html.tp-theme .source-item, html.tp-theme .sources-box, html.tp-theme .method-box,
html.tp-theme .score-box, html.tp-theme .kpi-detail-panel, html.tp-theme .d-item, html.tp-theme .signature-block, html.tp-theme .revendicari,
html.tp-theme .doc-list > li, html.tp-theme .contact-box, html.tp-theme .petition-form, html.tp-theme .stat-chip, html.tp-theme .retea-table-wrap,
html.tp-theme .info-placeholder, html.tp-theme #cy, html.tp-theme #map {
  border: 3px solid var(--tp-ink) !important; background: var(--tp-bg) !important; }
html.tp-theme .card:not([data-sev]) { border-top-width: 10px !important; }
html.tp-theme .card.red, html.tp-theme .flag-card.red { border-top-color: var(--tp-hi-fill) !important; }
html.tp-theme .card.orange, html.tp-theme .flag-card.orange { border-top-color: var(--tp-accent-fill) !important; }
html.tp-theme .card.green, html.tp-theme .card.blue, html.tp-theme .flag-card.yellow { border-top-color: var(--tp-sky) !important; }
html.tp-theme .flag-card { border-top-width: 3px !important; border-left: 12px solid var(--tp-sky) !important; }
html.tp-theme .flag-card.red { border-left-color: var(--tp-hi-fill) !important; }
html.tp-theme .flag-card.orange { border-left-color: var(--tp-accent-fill) !important; }
html.tp-theme .card .val, html.tp-theme .d-val, html.tp-theme .score-number { font-family: var(--tp-display) !important; font-weight: 400 !important; color: var(--tp-fg) !important; letter-spacing: -.01em; }
html.tp-theme .card .lbl, html.tp-theme .d-lbl { font-weight: 600 !important; color: var(--tp-fg) !important; }
html.tp-theme .alert, html.tp-theme .disclaimer, html.tp-theme .legal-citation {
  border: 3px solid var(--tp-ink) !important; border-left: 12px solid var(--tp-accent-fill) !important; background: var(--tp-bg) !important; color: var(--tp-fg) !important; }
html.tp-theme .alert.red, html.tp-theme .disclaimer { border-left-color: var(--tp-hi-fill) !important; }
html.tp-theme .alert.orange { border-left-color: var(--tp-sky) !important; }
html.tp-theme .alert *, html.tp-theme .disclaimer *, html.tp-theme .legal-citation * { color: inherit !important; }
html.tp-theme .data-table { border: 3px solid var(--tp-ink) !important; }
html.tp-theme .data-table thead, html.tp-theme .data-table th { background: var(--tp-ink-bg) !important; color: #fff !important; }
html.tp-theme .badge, html.tp-theme .tag, html.tp-theme .sev { text-transform: uppercase; letter-spacing: .05em; font-weight: 800 !important; }
html.tp-theme .badge.red, html.tp-theme .tag.red, html.tp-theme .sev.sev-critic { background: var(--tp-hi-fill) !important; color: #fff !important; }
html.tp-theme .badge.orange, html.tp-theme .tag.orange, html.tp-theme .sev.sev-major { background: var(--tp-accent-fill) !important; color: #fff !important; }
html.tp-theme .badge.green, html.tp-theme .badge.blue, html.tp-theme .tag.yellow, html.tp-theme .sev.sev-mediu, html.tp-theme .sev.sev-ok { background: var(--tp-sky) !important; color: #002A59 !important; }
html.tp-theme .progress-bar-bg { background: var(--tp-tint) !important; border: 2px solid var(--tp-ink); }
html.tp-theme .progress-bar-fill { background: var(--tp-accent-fill) !important; }
html.tp-theme .chip, html.tp-theme .filter-btn, html.tp-theme .citizen-report-btn, html.tp-theme .cy-btn {
  border: 3px solid var(--tp-ink) !important; background: var(--tp-bg) !important; color: var(--tp-fg) !important; font-weight: 800 !important; }
html.tp-theme .filter-btn.active { background: var(--tp-ink-bg) !important; color: #fff !important; }

/* Modele de cereri, petiție, rețele */
html.tp-theme .doc-title { font-family: var(--tp-display) !important; font-weight: 400 !important; font-size: 1.2rem !important; color: var(--tp-fg) !important; }
html.tp-theme .doc-dl, html.tp-theme .submit-btn { background: var(--tp-accent-fill) !important; border: 3px solid var(--tp-accent-fill) !important; color: #fff !important; font-weight: 800 !important; }
html.tp-theme .doc-dl:hover, html.tp-theme .submit-btn:hover { background: var(--tp-ink-bg) !important; border-color: var(--tp-ink-bg) !important; }
html.tp-theme .doc-list { counter-reset: doc; }
html.tp-theme .doc-list > li { counter-increment: doc; position: relative; padding-left: 92px !important; }
html.tp-theme .doc-list > li::before { content: counter(doc, decimal-leading-zero); position: absolute; left: 20px; top: 14px; font: 400 44px/1 var(--tp-display); color: var(--tp-sky-text); }
html.tp-theme .revendicari li strong { font-family: var(--tp-display); font-weight: 400; }
html.tp-theme .subtitle, html.tp-theme .back-link { color: var(--tp-muted) !important; font-weight: 600; }
html.tp-theme .stat-chip strong, html.tp-theme .stat-chip b { font-family: var(--tp-display); font-weight: 400; font-size: 1.2rem; }

@media (max-width: 640px) {
  html.tp-theme main > article.card { padding: 18px 16px; border-left-width: 10px; }
  html.tp-theme .doc-list > li { padding-left: 68px !important; }
  html.tp-theme .doc-list > li::before { left: 12px; font-size: 34px; }
}

/* Meniul lărgit cu Consiliul Local: pe calculator numele stă pe două rânduri, ca să nu ajungă sub linkuri;
   pe ecranele late doar cât să nu încapă, rămâne simbolul, iar numele e citit în continuare de cititoarele de ecran. */
@media (min-width: 1001px) {
  html.tp-theme .tp-nav-inner { gap: 18px; }
  html.tp-theme .tp-nav-links { gap: 2px; }
  html.tp-theme .tp-nav-links > a, html.tp-theme .tp-more summary { padding: 0 10px; }
  html.tp-theme .tp-nav-name { white-space: normal; width: min-content; font-size: 1.05rem; }
  html.tp-theme .tp-nav-brand small { display: none; }
}
@media (min-width: 1001px) and (max-width: 1099px) {
  html.tp-theme .tp-nav-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
