/* =====================================================================
   România Transparentă — componente
   Depinde de tokens.css și base.css. Clasele .is-hover / .is-active /
   .is-focus reproduc stările pentru biblioteca de elemente.
   ===================================================================== */

/* =========================== BUTOANE =========================== */
.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--rt-r-pill);
  font-family: inherit; font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-body); line-height: 1.2;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease),
              box-shadow var(--rt-dur) var(--rt-ease), transform var(--rt-dur) var(--rt-ease);
}
.rt-btn--sm { min-height: 42px; padding: 0 20px; font-size: var(--rt-fs-sm); gap: 8px; }
.rt-btn--block { width: 100%; }
.rt-btn:focus-visible, .rt-btn.is-focus { outline: 2px solid var(--rt-focus); outline-offset: 3px; }
.rt-btn:active, .rt-btn.is-active { transform: translateY(1px); }
/* cercul cu săgeată: semnătura butonului principal */
.rt-btn__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  margin-right: -14px; border-radius: 50%; transition: transform var(--rt-dur) var(--rt-ease), background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease);
}
.rt-btn:hover .rt-btn__arrow, .rt-btn.is-hover .rt-btn__arrow { transform: translateX(3px); }

/* principal — pe fundal deschis: navy → albastru */
.rt-btn--primary { background: var(--rt-navy); color: var(--rt-white); }
.rt-btn--primary .rt-btn__arrow { background: var(--rt-white); color: var(--rt-navy); }
.rt-btn--primary:hover, .rt-btn--primary.is-hover, .rt-btn--primary:active, .rt-btn--primary.is-active { background: var(--rt-accent); }
.rt-btn--primary:hover .rt-btn__arrow, .rt-btn--primary.is-hover .rt-btn__arrow { color: var(--rt-accent); }

/* secundar — pe fundal deschis: contur gri → contur și text albastru */
.rt-btn--secondary { background: var(--rt-white); color: var(--rt-navy); box-shadow: inset 0 0 0 1.5px var(--rt-border); }
.rt-btn--secondary:hover, .rt-btn--secondary.is-hover, .rt-btn--secondary:active, .rt-btn--secondary.is-active { color: var(--rt-accent); box-shadow: inset 0 0 0 1.5px var(--rt-accent); }

/* principal pe navy: alb → galben */
.rt-btn--light { background: var(--rt-white); color: var(--rt-navy); }
.rt-btn--light .rt-btn__arrow { background: var(--rt-navy); color: var(--rt-white); }
.rt-btn--light:hover, .rt-btn--light.is-hover, .rt-btn--light:active, .rt-btn--light.is-active { background: var(--rt-accent-on-dark); }
.rt-btn--light:focus-visible, .rt-btn--light.is-focus { outline-color: var(--rt-focus-on-dark); }

/* secundar pe navy: contur alb → contur și text galben */
.rt-btn--outline-light { background: transparent; color: var(--rt-white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.rt-btn--outline-light:hover, .rt-btn--outline-light.is-hover, .rt-btn--outline-light:active, .rt-btn--outline-light.is-active { color: var(--rt-accent-on-dark); box-shadow: inset 0 0 0 1.5px var(--rt-accent-on-dark); }
.rt-btn--outline-light:focus-visible, .rt-btn--outline-light.is-focus { outline-color: var(--rt-focus-on-dark); }

/* dezactivat */
.rt-btn:disabled, .rt-btn[aria-disabled="true"] {
  background: var(--rt-line); color: var(--rt-gray); box-shadow: none; cursor: not-allowed; transform: none;
}
.rt-btn:disabled .rt-btn__arrow, .rt-btn[aria-disabled="true"] .rt-btn__arrow { background: var(--rt-white); color: var(--rt-gray); transform: none; }

/* buton doar cu icon */
.rt-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: var(--rt-tap); height: var(--rt-tap);
  border-radius: var(--rt-r-md); color: var(--rt-navy); transition: background-color var(--rt-dur), color var(--rt-dur);
}
.rt-icon-btn:hover, .rt-icon-btn.is-hover { background: var(--rt-hover-tint); color: var(--rt-accent); }

/* =========================== LINKURI =========================== */
.rt-link {
  color: var(--rt-link); font-weight: var(--rt-fw-medium);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--rt-dur), text-decoration-thickness var(--rt-dur);
}
.rt-link:hover, .rt-link.is-hover { color: var(--rt-navy); text-decoration-thickness: 2px; }
.rt-link--arrow { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.rt-link--arrow:hover, .rt-link--arrow.is-hover { text-decoration: underline; text-decoration-thickness: 2px; }
.rt-link--arrow .rt-ic { transition: transform var(--rt-dur) var(--rt-ease); }
.rt-link--arrow:hover .rt-ic, .rt-link--arrow.is-hover .rt-ic { transform: translateX(3px); }
.rt-dark .rt-link { color: var(--rt-white); }
.rt-dark .rt-link:hover, .rt-dark .rt-link.is-hover { color: var(--rt-accent-on-dark); }

/* =========================== ETICHETE DE STARE =========================== */
.rt-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: var(--rt-r-pill);
  font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-label); line-height: 1.2; color: var(--rt-ink); white-space: nowrap;
}
.rt-chip .rt-ic { width: 16px; height: 16px; color: var(--rt-navy); }
.rt-chip--ok { background: var(--rt-status-ok); }
.rt-chip--wip { background: var(--rt-status-wip); }
.rt-chip--plan { background: var(--rt-status-plan); }
.rt-chip--bad { background: var(--rt-status-bad); }
.rt-dark .rt-chip { color: var(--rt-navy); }
.rt-dark .rt-chip--ok { background: var(--rt-status-ok-solid); }
.rt-dark .rt-chip--wip { background: var(--rt-status-wip-solid); }
.rt-dark .rt-chip--plan, .rt-dark .rt-chip--bad { background: var(--rt-white); }
.rt-dark .rt-chip--bad .rt-ic { color: var(--rt-red); }

/* =========================== SARI LA CONȚINUT =========================== */
.rt-skip {
  position: absolute; left: var(--rt-s-4); top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--rt-r-md);
  background: var(--rt-navy); color: var(--rt-white); font-weight: var(--rt-fw-medium);
}
.rt-skip:focus, .rt-skip.is-focus { top: var(--rt-s-4); }

/* =========================== HEADER =========================== */
.rt-header { position: relative; z-index: var(--rt-z-header); }
.rt-header__inner { display: flex; align-items: center; gap: var(--rt-s-2); position: relative; }
.rt-header__logo { display: block; flex: none; border-radius: 6px; }
.rt-header__logo .rt-logo { width: 150px; height: auto; }
.rt-header__nav { margin-left: auto; }
.rt-header__cta { margin-left: 10px; }
.rt-header__toggle, .rt-header__search-toggle { display: none; }

/* modul plutitor — paginile de prezentare */
.rt-header--float { margin: 0 var(--rt-s-4); }
.rt-header--float .rt-header__inner {
  height: var(--rt-header-h); padding: 0 10px 0 24px; background: var(--rt-white);
  border-radius: var(--rt-r-pill); box-shadow: var(--rt-shadow-float);
}

/* modul bară compactă fixă — paginile de lucru */
.rt-header--bar { position: sticky; top: 0; background: var(--rt-white); border-bottom: 1px solid var(--rt-border); }
.rt-header--bar .rt-header__inner { height: var(--rt-bar-h); padding: 0 clamp(16px, 2.5vw, 28px); }
.rt-header--bar .rt-header__logo .rt-logo { width: 132px; }

/* elementele meniului */
.rt-nav__list { display: flex; align-items: center; gap: 2px; }
.rt-nav__item {
  display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 14px; border-radius: var(--rt-r-pill);
  font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-navy); white-space: nowrap;
  transition: background-color var(--rt-dur), color var(--rt-dur);
}
.rt-nav__item:hover, .rt-nav__item.is-hover, .rt-nav__item[aria-expanded="true"] { background: var(--rt-hover-tint); color: var(--rt-accent); }
.rt-nav__item[aria-current="page"], .rt-nav__item.is-current { background: var(--rt-hover-tint); color: var(--rt-navy); }
.rt-nav__item .rt-ic { width: 16px; height: 16px; transition: transform var(--rt-dur) var(--rt-ease); }
.rt-nav__item[aria-expanded="true"] .rt-ic { transform: rotate(180deg); }

/* căutarea din bară */
.rt-search {
  display: flex; align-items: center; gap: 8px; height: 42px; min-width: 240px; margin-left: 12px; padding: 0 14px;
  border-radius: var(--rt-r-md); background: var(--rt-paper); color: var(--rt-gray); transition: box-shadow var(--rt-dur), background-color var(--rt-dur);
}
.rt-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: var(--rt-fs-sm); color: var(--rt-ink); }
.rt-search input::placeholder { color: var(--rt-gray); opacity: 1; }
.rt-search:focus-within, .rt-search.is-focus { background: var(--rt-white); box-shadow: inset 0 0 0 2px var(--rt-focus); }

/* =========================== MENIURI DERULANTE =========================== */
.rt-dd { position: relative; }
.rt-dd__panel {
  display: none; position: absolute; top: calc(100% + 12px); z-index: var(--rt-z-dropdown);
  width: min(680px, calc(100vw - 32px)); padding: 12px; border-radius: var(--rt-r-xl);
  background: var(--rt-white); box-shadow: var(--rt-shadow-panel); text-align: left;
}
.rt-dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* punte pentru hover */
.rt-dd__panel--narrow { width: min(600px, calc(100vw - 32px)); }
.rt-dd__trigger[aria-expanded="true"] + .rt-dd__panel, .rt-dd:focus-within > .rt-dd__panel, .rt-dd.is-open > .rt-dd__panel { display: block; }
@media (hover: hover) { .rt-dd:hover > .rt-dd__panel { display: block; } .rt-dd:hover > .rt-nav__item { background: var(--rt-hover-tint); color: var(--rt-accent); } }
.rt-header--float .rt-dd { position: static; }
.rt-header--float .rt-dd__panel { right: 8px; }
.rt-header--bar .rt-dd__panel--start { left: 0; }
.rt-header--bar .rt-dd__panel--end { right: 0; }

.rt-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.rt-menu__item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; color: var(--rt-navy);
  transition: background-color var(--rt-dur);
}
.rt-menu__item > .rt-ic { margin-top: 2px; }
.rt-menu__item:hover, .rt-menu__item.is-hover { background: var(--rt-paper); }
.rt-menu__item:hover .rt-menu__title, .rt-menu__item.is-hover .rt-menu__title { color: var(--rt-accent); }
.rt-menu__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rt-menu__title { font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-sm); transition: color var(--rt-dur); }
.rt-menu__desc { font-size: var(--rt-fs-xs); line-height: 1.35; color: var(--rt-gray); }
.rt-menu__text .rt-chip { align-self: flex-start; margin-top: 5px; }
.rt-dd__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; padding: 14px 12px 4px;
  border-top: 1px solid var(--rt-border); font-size: var(--rt-fs-xs); color: var(--rt-gray);
}

/* =========================== MENIUL DE MOBIL =========================== */
.rt-mnav {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: var(--rt-z-mnav);
  max-height: calc(100dvh - 96px); overflow: auto; padding: 4px 20px 24px;
  background: var(--rt-white); border-radius: 24px; box-shadow: var(--rt-shadow-panel);
}
.rt-header--bar .rt-mnav { top: 100%; border-radius: 0 0 20px 20px; max-height: calc(100dvh - var(--rt-bar-h)); }
.rt-mnav__sec { border-bottom: 1px solid var(--rt-border); }
.rt-mnav__trigger, .rt-mnav__link {
  display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 56px;
  font-weight: var(--rt-fw-bold); font-size: 1.125rem; color: var(--rt-navy); text-align: left;
}
.rt-mnav__link { border-bottom: 1px solid var(--rt-border); }
.rt-mnav__trigger .rt-ic { transition: transform var(--rt-dur) var(--rt-ease); }
.rt-mnav__trigger[aria-expanded="true"] .rt-ic { transform: rotate(180deg); }
.rt-mnav__list { padding-bottom: 12px; }
.rt-mnav__item { display: flex; align-items: center; gap: 12px; min-height: var(--rt-tap); padding: 8px 0; color: var(--rt-navy); font-weight: var(--rt-fw-medium); }
.rt-mnav__item:hover { color: var(--rt-accent); }
.rt-mnav__label { flex: 1; }
.rt-mnav__cta { width: 100%; margin-top: 22px; }

/* =========================== RESPONSIVE: HEADER =========================== */
@media (max-width: 959px) {
  .rt-header--bar .rt-header__nav, .rt-header--bar .rt-search, .rt-header--bar .rt-header__cta { display: none; }
  .rt-header--bar .rt-header__toggle, .rt-header--bar .rt-header__search-toggle { display: inline-flex; }
  .rt-header--bar .rt-header__search-toggle { margin-left: auto; }
  .rt-header--bar .rt-header__logo .rt-logo { width: 120px; }
}
@media (max-width: 719px) {
  .rt-header--float { margin: 0 10px; }
  .rt-header--float .rt-header__inner { height: 60px; padding: 0 6px 0 18px; }
  .rt-header--float .rt-header__nav, .rt-header--float .rt-header__cta { display: none; }
  .rt-header--float .rt-header__toggle { display: inline-flex; margin-left: auto; }
  .rt-header--float .rt-header__logo .rt-logo { width: 120px; }
}

/* =========================== BREADCRUMBS =========================== */
.rt-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--rt-fs-xs); }
.rt-crumbs li { display: flex; align-items: center; gap: 6px; color: var(--rt-ink); }
.rt-crumbs li + li::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.rt-crumbs a { color: var(--rt-link); font-weight: var(--rt-fw-medium); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rt-crumbs a:hover { color: var(--rt-navy); text-decoration-thickness: 2px; }
.rt-dark .rt-crumbs li, .rt-dark .rt-crumbs a { color: var(--rt-white); }
.rt-dark .rt-crumbs a:hover { color: var(--rt-accent-on-dark); }

/* =========================== TABURI =========================== */
/* comutator: pentru vizualizări (Tabel / Hartă) */
.rt-seg { display: inline-flex; padding: 3px; border-radius: var(--rt-r-md); background: var(--rt-white); box-shadow: inset 0 0 0 1px var(--rt-border); }
.rt-seg__item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px;
  font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-gray); transition: background-color var(--rt-dur), color var(--rt-dur);
}
.rt-seg__item:hover, .rt-seg__item.is-hover { color: var(--rt-accent); background: var(--rt-hover-tint); }
.rt-seg__item[aria-selected="true"] { background: var(--rt-navy); color: var(--rt-white); }
.rt-seg__item .rt-ic { width: 18px; height: 18px; }
/* taburi subliniate: pentru secțiunile unei fișe */
.rt-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rt-border); overflow-x: auto; scrollbar-width: none; }
.rt-tabs__item {
  display: inline-flex; align-items: center; min-height: 48px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-gray); white-space: nowrap; transition: color var(--rt-dur), border-color var(--rt-dur);
}
.rt-tabs__item:hover, .rt-tabs__item.is-hover { color: var(--rt-accent); }
.rt-tabs__item[aria-selected="true"], .rt-tabs__item[aria-current="true"] { color: var(--rt-navy); border-bottom-color: var(--rt-navy); }

/* scurtături pe pagină */
.rt-jumps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.rt-jumps__item {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--rt-r-pill); flex: none;
  background: var(--rt-paper); font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-navy); white-space: nowrap;
  transition: background-color var(--rt-dur), color var(--rt-dur);
}
.rt-jumps__item:hover, .rt-jumps__item.is-hover { background: var(--rt-hover-tint); color: var(--rt-accent); }
.rt-jumps__item[aria-current="true"] { background: var(--rt-navy); color: var(--rt-white); }

/* =========================== PAGINARE =========================== */
.rt-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-pager ol { display: flex; gap: 4px; }
.rt-pager__page, .rt-pager__step {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: var(--rt-tap); height: var(--rt-tap);
  padding: 0 12px; border-radius: var(--rt-r-md); font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-navy);
  font-variant-numeric: tabular-nums; transition: background-color var(--rt-dur), color var(--rt-dur);
}
.rt-pager__page:hover, .rt-pager__step:hover, .rt-pager__page.is-hover { background: var(--rt-hover-tint); color: var(--rt-accent); }
.rt-pager__page[aria-current="page"] { background: var(--rt-navy); color: var(--rt-white); }
.rt-pager__step[aria-disabled="true"] { color: var(--rt-gray); pointer-events: none; }
.rt-pager__gap { display: inline-flex; align-items: center; height: var(--rt-tap); min-width: 24px; justify-content: center; color: var(--rt-gray); }

/* =========================== BUTONUL DE SEMNALARE =========================== */
.rt-report { position: fixed; right: var(--rt-s-6); bottom: var(--rt-s-6); z-index: var(--rt-z-report); }
.rt-report__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px 0 16px; border-radius: var(--rt-r-pill);
  background: var(--rt-navy); color: var(--rt-white); font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); white-space: nowrap;
  box-shadow: var(--rt-shadow-fab); transition: background-color var(--rt-dur), color var(--rt-dur), box-shadow var(--rt-dur);
}
.rt-report__btn:hover, .rt-report__btn.is-hover { background: var(--rt-accent); }
.rt-report__btn[aria-expanded="true"] { background: var(--rt-white); color: var(--rt-navy); box-shadow: inset 0 0 0 1.5px var(--rt-navy), 0 10px 30px rgba(10, 34, 87, .18); }
.rt-report__short { display: none; }
.rt-report__panel {
  position: absolute; right: 0; bottom: 64px; width: 390px; padding: 10px; border-radius: var(--rt-r-xl);
  background: var(--rt-white); box-shadow: var(--rt-shadow-panel);
}
.rt-report__title { margin: 0; padding: 10px 12px 4px; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-body); color: var(--rt-navy); }
.rt-report__option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; color: var(--rt-navy); transition: background-color var(--rt-dur); }
.rt-report__option:hover, .rt-report__option.is-hover { background: var(--rt-paper); }
.rt-report__option:hover b, .rt-report__option.is-hover b { color: var(--rt-accent); }
.rt-report__option > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rt-report__option b { font-size: var(--rt-fs-sm); transition: color var(--rt-dur); }
.rt-report__option span span { font-size: var(--rt-fs-xs); color: var(--rt-gray); }
.rt-report__context { display: flex; gap: 6px; align-items: flex-start; margin: 6px 12px; padding-top: 12px; border-top: 1px solid var(--rt-border); font-size: var(--rt-fs-label); color: var(--rt-gray); }
@media (max-width: 719px) {
  .rt-report { right: 14px; bottom: 14px; }
  .rt-report__btn { min-height: 48px; padding: 0 18px 0 14px; }
  .rt-report__long { display: none; } .rt-report__short { display: inline; }
  .rt-report__panel { width: calc(100vw - 28px); }
}

/* =========================== BANDA DE ACTUALIZARE =========================== */
.rt-update { background: rgba(47, 102, 196, .10); font-size: var(--rt-fs-xs); }
.rt-update__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; padding-block: 18px; }
.rt-update__date { display: flex; align-items: center; gap: 8px; color: var(--rt-navy); font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-sm); }
.rt-update__sources { flex: 1; min-width: 240px; color: var(--rt-ink); }
.rt-update__links { display: flex; gap: 20px; flex-wrap: wrap; }
.rt-update__links a { color: var(--rt-navy); font-weight: var(--rt-fw-medium); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rt-update__links a:hover { text-decoration-thickness: 2px; }

/* =========================== FOOTER =========================== */
.rt-footer { margin: var(--rt-s-4); border-radius: var(--rt-r-2xl); background: var(--rt-navy); color: var(--rt-white); }
.rt-footer__inner { padding-block: 64px 28px; }
.rt-footer__grid { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(0, 3fr); gap: clamp(40px, 5vw, 96px); }
.rt-footer__brand > a .rt-logo { width: 180px; height: auto; }
/* pe ecrane late, footerul folosește mai mult din lățime decât coloana de text a paginii */
.rt-footer .rt-container { max-width: calc(1560px + 2 * var(--rt-gutter)); }
.rt-footer__tagline { margin: 10px 0 0; font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-body); color: var(--rt-white); }
.rt-footer__about { margin: 12px 0 0; max-width: 34ch; font-size: var(--rt-fs-sm); color: var(--rt-text-on-dark-2); }
.rt-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rt-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.rt-footer__title { display: block; margin-bottom: 12px; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-body); color: var(--rt-white); }
.rt-footer__link { display: block; padding: 5px 0; font-size: var(--rt-fs-sm); line-height: 1.35; color: var(--rt-text-on-dark-2); }
.rt-footer__title:hover, .rt-footer__link:hover, .rt-footer__legal a:hover { color: var(--rt-accent-on-dark); text-decoration: underline; text-underline-offset: 3px; }
/* trei coloane: mijlocul stă exact pe centrul paginii, deasupra creditului centrat de dedesubt */
.rt-footer__legal {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rt-border-on-dark);
  font-size: var(--rt-fs-label); color: var(--rt-text-on-dark-2);
}
.rt-footer__update { display: block; }
.rt-footer__update .rt-ic { display: inline-block; margin-right: 6px; vertical-align: -3px; }
.rt-footer__update a { text-decoration: underline; text-underline-offset: 3px; }
.rt-footer__legal ul { display: flex; gap: 20px; flex-wrap: wrap; justify-self: end; }
.rt-footer__update { text-align: center; }
.rt-footer__legal a { color: var(--rt-text-on-dark-2); }
.rt-footer__credit { margin: 18px 0 0; text-align: center; font-size: var(--rt-fs-label); letter-spacing: .02em; color: var(--rt-text-on-dark-2); }
.rt-footer__credit a { font-weight: var(--rt-fw-bold); color: var(--rt-white); text-decoration: none; border-bottom: 1px solid currentColor; }
.rt-footer__credit a:hover { color: var(--rt-accent-on-dark); }
@media (max-width: 1199px) {
  .rt-footer__grid { grid-template-columns: 1fr; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .rt-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rt-footer :focus-visible { outline-color: var(--rt-focus-on-dark); }
@media (max-width: 719px) {
  .rt-footer { margin: 10px; border-radius: 22px; }
  .rt-footer__inner { padding-block: 32px 22px; }
  .rt-footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .rt-footer__cols { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .rt-footer__link { display: none; }                 /* pe mobil rămân doar titlurile */
  .rt-footer__title { margin: 0; padding: 10px 0; }
  .rt-footer__legal { grid-template-columns: 1fr; justify-items: start; gap: 10px; margin-top: 22px; }
  .rt-footer__legal ul { justify-self: start; }
  .rt-footer__update { text-align: left; }
  .rt-footer__credit { text-align: left; }
}

/* =========================== PANOUL NAVY (scena) =========================== */
.rt-stage { margin: var(--rt-s-4); padding-top: var(--rt-s-4); border-radius: var(--rt-r-2xl); background: var(--rt-navy); color: var(--rt-white); }
@media (max-width: 719px) { .rt-stage { margin: 10px; padding-top: 10px; border-radius: 22px; } }
.rt-stage > .rt-dark { background: transparent; }   /* conținutul navy din scenă preia colțurile scenei */

/* harta țării, decor discret pe fundal navy: doar contur, foarte transparent */
.rt-stage { position: relative; overflow: hidden; }
.rt-map-bg {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden; pointer-events: none;
}
.rt-map-bg__svg { width: clamp(760px, 92vw, 1180px); height: auto; opacity: .12; }
@media (max-width: 719px) { .rt-map-bg__svg { width: clamp(520px, 160vw, 900px); } }

/* =========================== ANTET DE SECȚIUNE =========================== */
.rt-shead { max-width: 700px; margin-bottom: var(--rt-s-8); }
.rt-shead .rt-kicker { display: block; margin-bottom: var(--rt-s-2); }
.rt-shead .rt-h2 { margin: 0 0 var(--rt-s-3); }
.rt-shead .rt-lead { margin: 0; color: var(--rt-text-muted); max-width: none; }
.rt-dark .rt-shead .rt-lead { color: var(--rt-text-on-dark-2); }
.rt-shead--center { max-width: 640px; margin-inline: auto; text-align: center; }

/* =========================== CIFRE =========================== */
.rt-stat { display: flex; flex-direction: column; gap: var(--rt-s-2); }
.rt-stat__n { font-size: var(--rt-fs-num-l); }
.rt-stat__n--xl { font-size: var(--rt-fs-num-xl); }
.rt-stat__l { font-size: var(--rt-fs-sm); line-height: 1.4; color: var(--rt-text-muted); max-width: 22em; }
.rt-dark .rt-stat__l { color: var(--rt-text-on-dark-2); }
.rt-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--rt-s-8) var(--rt-s-6); }
.rt-stat-row + .rt-src { margin-top: var(--rt-s-6); }
.rt-src {
  display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: var(--rt-fs-label); color: var(--rt-text-muted);
}
.rt-src .rt-ic { margin-top: 1px; color: currentColor; opacity: .8; }
.rt-dark .rt-src { color: var(--rt-text-on-dark-2); }

/* =========================== CARD DE CONSTATARE =========================== */
.rt-finding { display: flex; flex-direction: column; gap: var(--rt-s-3); padding: var(--rt-s-6); border-radius: var(--rt-r-xl); background: var(--rt-paper); }
.rt-finding__n { font-size: var(--rt-fs-num-l); color: var(--rt-red); }
.rt-finding__t { margin: 0; font-size: 1.0625rem; line-height: 1.4; color: var(--rt-navy); font-weight: var(--rt-fw-medium); }
.rt-finding__src { margin-top: auto; }
.rt-dark .rt-finding { background: rgba(255, 255, 255, .07); }
.rt-dark .rt-finding__t { color: var(--rt-white); }

/* =========================== BANDA CTA =========================== */
.rt-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-s-8); flex-wrap: wrap; padding: var(--rt-s-8); border-radius: var(--rt-r-2xl); background: var(--rt-navy); color: var(--rt-white); }
.rt-cta__t { margin: 0 0 6px; font-size: 1.5rem; font-weight: var(--rt-fw-bold); }
.rt-cta__d { margin: 0; color: var(--rt-text-on-dark-2); max-width: 46em; }
.rt-cta__a { display: flex; gap: var(--rt-s-3); flex-wrap: wrap; flex: none; }
.rt-cta--paper { background: var(--rt-paper); color: var(--rt-ink); }
.rt-cta--paper .rt-cta__t { color: var(--rt-navy); } .rt-cta--paper .rt-cta__d { color: var(--rt-text-muted); }
@media (max-width: 719px) { .rt-cta { padding: var(--rt-s-6); } .rt-cta__a { width: 100%; } .rt-cta__a .rt-btn { flex: 1; } }

/* =========================== PRINCIPII =========================== */
.rt-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--rt-s-8) var(--rt-s-6); }
.rt-principle { display: flex; gap: var(--rt-s-3); }
.rt-principle__i { flex: none; color: var(--rt-navy); margin-top: 2px; }
.rt-dark .rt-principle__i { color: var(--rt-accent-on-dark); }
.rt-principle__t { margin: 0 0 4px; font-weight: var(--rt-fw-bold); font-size: 1.0625rem; color: var(--rt-navy); }
.rt-dark .rt-principle__t { color: var(--rt-white); }
.rt-principle__d { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-dark .rt-principle__d { color: var(--rt-text-on-dark-2); }

/* =========================== CARDURI: REGISTRU / INSTITUȚIE / DOCUMENT / ACȚIUNE =========================== */
.rt-card { display: flex; flex-direction: column; gap: var(--rt-s-3); padding: var(--rt-s-6); border-radius: var(--rt-r-xl); background: var(--rt-white); box-shadow: var(--rt-shadow-card); }
.rt-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--rt-s-3); }
.rt-card__t { margin: 6px 0 0; font-weight: var(--rt-fw-bold); font-size: 1.25rem; line-height: 1.25; color: var(--rt-navy); }
.rt-card__d { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-card__go { margin-top: auto; padding-top: 4px; }
.rt-card--flat { box-shadow: none; background: var(--rt-paper); }

.rt-doc-card { display: flex; align-items: flex-start; gap: var(--rt-s-4); padding: var(--rt-s-5); border-radius: var(--rt-r-lg); background: var(--rt-white); box-shadow: inset 0 0 0 1px var(--rt-border); }
.rt-doc-card__i { flex: none; color: var(--rt-navy); }
.rt-doc-card__b { flex: 1; min-width: 0; }
.rt-doc-card__t { margin: 0 0 3px; font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-body); color: var(--rt-navy); }
.rt-doc-card__m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--rt-fs-xs); color: var(--rt-text-muted); }
.rt-doc-card__a { flex: none; }

.rt-action { display: flex; flex-direction: column; gap: var(--rt-s-3); padding: var(--rt-s-6); border-radius: var(--rt-r-xl); background: var(--rt-white); box-shadow: var(--rt-shadow-card); transition: box-shadow var(--rt-dur); }
.rt-action:hover { box-shadow: var(--rt-shadow-float); }
.rt-action__i { color: var(--rt-navy); }

.rt-fisa { padding: var(--rt-s-6); border-radius: var(--rt-r-xl); background: var(--rt-white); box-shadow: var(--rt-shadow-float); }
.rt-fisa__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--rt-s-4); margin-bottom: var(--rt-s-5); }
.rt-fisa__t { margin: 4px 0 2px; font-weight: var(--rt-fw-black); font-size: 1.75rem; color: var(--rt-navy); }
.rt-fisa__s { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-fisa dl { margin: 0 0 var(--rt-s-4); }
.rt-fisa dl > div { display: flex; justify-content: space-between; align-items: center; gap: var(--rt-s-3); padding: 11px 0; border-top: 1px solid var(--rt-border); }
.rt-fisa dt { font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-fisa dd { margin: 0; font-size: var(--rt-fs-sm); text-align: right; }

/* =========================== TOOLTIP / DEFINIȚIE =========================== */
.rt-note { position: relative; display: inline-flex; align-items: center; gap: 3px; border-bottom: 1px dashed currentColor; cursor: help; }
.rt-note__tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 260px; padding: 10px 12px; border-radius: var(--rt-r-md); background: var(--rt-navy); color: var(--rt-white);
  font-size: var(--rt-fs-label); font-weight: var(--rt-fw-book); line-height: 1.4; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity var(--rt-dur), transform var(--rt-dur); pointer-events: none; z-index: var(--rt-z-dropdown);
}
.rt-note__tip::after { content: ""; position: absolute; top: 100%; left: 50%; width: 8px; height: 8px; margin-left: -4px; margin-top: -4px; background: var(--rt-navy); transform: rotate(45deg); }
.rt-note:hover .rt-note__tip, .rt-note:focus-visible .rt-note__tip, .rt-note.is-open .rt-note__tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* =========================== CASETE: AVERTISMENT / INFO / LICENȚĂ =========================== */
.rt-callout { display: flex; gap: var(--rt-s-3); padding: var(--rt-s-5); border-radius: var(--rt-r-lg); font-size: var(--rt-fs-sm); line-height: 1.5; }
.rt-callout__i { flex: none; margin-top: 1px; }
.rt-callout__t { margin: 0 0 2px; font-weight: var(--rt-fw-bold); color: var(--rt-navy); }
.rt-callout__b { margin: 0; color: var(--rt-ink); }
.rt-callout--info { background: rgba(47, 102, 196, .08); } .rt-callout--info .rt-callout__i { color: var(--rt-blue); }
.rt-callout--warn { background: var(--rt-status-wip); } .rt-callout--warn .rt-callout__i { color: var(--rt-navy); }
.rt-callout--bad { background: var(--rt-status-bad); } .rt-callout--bad .rt-callout__i { color: var(--rt-red); }

.rt-license { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--rt-s-4); padding: var(--rt-s-5) var(--rt-s-6); border-radius: var(--rt-r-lg); background: var(--rt-paper); }
.rt-license__t { margin: 0 0 3px; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-sm); color: var(--rt-navy); }
.rt-license__d { margin: 0; font-size: var(--rt-fs-xs); color: var(--rt-text-muted); }
.rt-license__a { display: flex; gap: var(--rt-s-2); flex: none; }

/* =========================== TABEL DE DATE =========================== */
/* overflow: clip (nu hidden): colțurile rămân rotunjite, dar antetul poate rămâne lipit sus la derulare */
.rt-table-wrap { border-radius: var(--rt-r-lg); box-shadow: inset 0 0 0 1px var(--rt-border); overflow: clip; }
.rt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--rt-fs-sm); background: var(--rt-white); }
/* antetul plin, ca într-un tabel de calcul: se vede de unde începe tabelul și ce e în fiecare coloană */
.rt-table th {
  text-align: left; font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-label); line-height: 1.3;
  color: var(--rt-white); background: var(--rt-navy); padding: 12px 16px; vertical-align: bottom;
}
.rt-table th .rt-dtable__sort:hover { color: var(--rt-accent-on-dark); }
.rt-table__total td { font-weight: var(--rt-fw-bold); color: var(--rt-text-strong); background: var(--rt-paper); border-top: 2px solid var(--rt-navy); }
/* antetul rămâne vizibil sub bara de meniu cât derulezi prin tabel (--rt-sticky-top vine din tabele.ts) */
.rt-table thead th { position: sticky; top: var(--rt-sticky-top, 0px); z-index: 2; }
.rt-table th.num, .rt-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rt-table td { padding: 13px 16px; border-bottom: 1px solid var(--rt-border); vertical-align: middle; }
.rt-table tr:last-child td { border-bottom: 0; }
.rt-table td b { display: block; color: var(--rt-navy); font-weight: var(--rt-fw-medium); }
.rt-table td small { font-size: var(--rt-fs-label); color: var(--rt-text-muted); }
.rt-table .go-c { width: 1%; text-align: right; }
.rt-table .go-c a { display: inline-flex; color: var(--rt-blue); }
.rt-table tbody tr:hover { background: var(--rt-paper); }
@media (max-width: 719px) {
  .rt-table-wrap { box-shadow: none; }
  .rt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rt-table, .rt-table tbody, .rt-table tfoot, .rt-table tr, .rt-table td { display: block; width: 100%; }
  .rt-table tr { position: relative; padding: 14px 16px; border-radius: var(--rt-r-lg); box-shadow: inset 0 0 0 1px var(--rt-border); margin-bottom: 10px; }
  .rt-table tr:hover { background: var(--rt-white); }
  .rt-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .rt-table td[data-label]::before { content: attr(data-label); font-size: var(--rt-fs-label); color: var(--rt-text-muted); text-align: left; }
  .rt-table td.rt-table__main { display: block; text-align: left; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--rt-border); }
  .rt-table td.rt-table__main::before { content: none; }
  .rt-table .go-c { position: absolute; top: 12px; right: 12px; padding: 0; }
}

/* =========================== LEGENDĂ =========================== */
.rt-legend { display: flex; flex-wrap: wrap; gap: var(--rt-s-2) var(--rt-s-5); align-items: center; font-size: var(--rt-fs-xs); color: var(--rt-text-muted); }
.rt-legend__i { display: inline-flex; align-items: center; gap: 8px; }
.rt-legend__sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.rt-legend--scale .rt-legend__sw { border-radius: 2px; }
.rt-legend__scale { display: flex; flex: 1 1 160px; min-width: 160px; height: 10px; border-radius: 4px; overflow: hidden; }
.rt-legend__scale i { flex: 1; }
.rt-dark .rt-legend { color: var(--rt-text-on-dark-2); }

/* =========================== BARA DE FILTRE =========================== */
.rt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-s-2); }
.rt-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 var(--rt-s-4); border-radius: var(--rt-r-md);
  background: var(--rt-white); box-shadow: inset 0 0 0 1px var(--rt-border); font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-navy);
  transition: box-shadow var(--rt-dur), color var(--rt-dur);
}
.rt-filter:hover, .rt-filter.is-hover { color: var(--rt-accent); box-shadow: inset 0 0 0 1px var(--rt-accent); }
.rt-filter.is-active { background: var(--rt-navy); color: var(--rt-white); box-shadow: none; }
.rt-filter__count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rt-navy); color: var(--rt-white); font-size: 11px; font-weight: var(--rt-fw-bold); }
.rt-filter.is-active .rt-filter__count { background: rgba(255, 255, 255, .25); }
.rt-filters__clear { margin-left: 4px; color: var(--rt-blue); font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); }
.rt-filters__clear:hover { color: var(--rt-navy); text-decoration: underline; }
.rt-filters__end { margin-left: auto; }
@media (max-width: 719px) { .rt-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .rt-filters__end { margin-left: 0; } }

/* =========================== FORMULARE =========================== */
.rt-field { display: flex; flex-direction: column; gap: 6px; }
.rt-field__label { font-weight: var(--rt-fw-medium); font-size: var(--rt-fs-sm); color: var(--rt-navy); }
.rt-field__hint { font-size: var(--rt-fs-label); color: var(--rt-text-muted); }
.rt-field__error { display: flex; align-items: center; gap: 5px; font-size: var(--rt-fs-label); color: var(--rt-ink); font-weight: var(--rt-fw-medium); }
.rt-field__error .rt-ic { color: var(--rt-red); }
.rt-input, .rt-textarea, .rt-select {
  width: 100%; min-height: var(--rt-tap); padding: 0 14px; border: 0; border-radius: var(--rt-r-md); background: var(--rt-white);
  box-shadow: inset 0 0 0 1.5px var(--rt-border); font: inherit; font-size: var(--rt-fs-body); color: var(--rt-ink);
  transition: box-shadow var(--rt-dur);
}
.rt-textarea { min-height: 120px; padding-block: 12px; resize: vertical; }
.rt-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6270' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.rt-input:hover, .rt-textarea:hover, .rt-select:hover { box-shadow: inset 0 0 0 1.5px var(--rt-gray); }
.rt-input:focus, .rt-textarea:focus, .rt-select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rt-focus); }
.rt-input::placeholder, .rt-textarea::placeholder { color: var(--rt-gray); opacity: 1; }
.rt-field.is-error .rt-input, .rt-field.is-error .rt-textarea, .rt-field.is-error .rt-select { box-shadow: inset 0 0 0 2px var(--rt-red); }
.rt-field.is-disabled .rt-field__label { color: var(--rt-gray); }
.rt-input:disabled, .rt-textarea:disabled, .rt-select:disabled { background: var(--rt-paper); color: var(--rt-gray); box-shadow: inset 0 0 0 1.5px var(--rt-border); cursor: not-allowed; }

.rt-check, .rt-radio { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--rt-fs-sm); color: var(--rt-ink); }
.rt-check input, .rt-radio input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rt-check__box, .rt-radio__box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; box-shadow: inset 0 0 0 1.5px var(--rt-border); background: var(--rt-white);
  display: grid; place-items: center; transition: background-color var(--rt-dur), box-shadow var(--rt-dur);
}
.rt-check__box { border-radius: 6px; } .rt-radio__box { border-radius: 50%; }
.rt-check__box .rt-ic { width: 15px; height: 15px; color: var(--rt-white); opacity: 0; transform: scale(.6); transition: opacity var(--rt-dur), transform var(--rt-dur); }
.rt-radio__box i { width: 10px; height: 10px; border-radius: 50%; background: var(--rt-white); opacity: 0; transform: scale(.5); transition: opacity var(--rt-dur), transform var(--rt-dur); }
.rt-check input:checked ~ .rt-check__box, .rt-radio input:checked ~ .rt-radio__box { background: var(--rt-navy); box-shadow: none; }
.rt-check input:checked ~ .rt-check__box .rt-ic { opacity: 1; transform: scale(1); }
.rt-radio input:checked ~ .rt-radio__box i { opacity: 1; transform: scale(1); }
.rt-check input:focus-visible ~ .rt-check__box, .rt-radio input:focus-visible ~ .rt-radio__box { outline: 2px solid var(--rt-focus); outline-offset: 2px; }

.rt-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--rt-fs-sm); color: var(--rt-ink); }
.rt-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rt-switch__track { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--rt-line); position: relative; transition: background-color var(--rt-dur); }
.rt-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--rt-white); box-shadow: 0 1px 3px rgba(10, 34, 87, .3); transition: transform var(--rt-dur) var(--rt-ease); }
.rt-switch input:checked ~ .rt-switch__track { background: var(--rt-navy); }
.rt-switch input:checked ~ .rt-switch__track::after { transform: translateX(18px); }
.rt-switch input:focus-visible ~ .rt-switch__track { outline: 2px solid var(--rt-focus); outline-offset: 2px; }

.rt-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: var(--rt-s-8) var(--rt-s-6); border-radius: var(--rt-r-lg); border: 2px dashed var(--rt-border); text-align: center; color: var(--rt-text-muted); transition: border-color var(--rt-dur), background-color var(--rt-dur); }
.rt-upload:hover, .rt-upload.is-hover { border-color: var(--rt-blue); background: rgba(47, 102, 196, .04); }
.rt-upload__i { color: var(--rt-navy); }
.rt-upload__t { font-weight: var(--rt-fw-medium); color: var(--rt-navy); }
.rt-upload__h { font-size: var(--rt-fs-label); }
.rt-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.rt-newsletter { display: flex; gap: 10px; max-width: 420px; }
.rt-newsletter .rt-input { flex: 1; }
@media (max-width: 719px) { .rt-newsletter { flex-direction: column; } }

.rt-confirm { display: flex; align-items: flex-start; gap: 10px; padding: var(--rt-s-4) var(--rt-s-5); border-radius: var(--rt-r-lg); background: var(--rt-status-ok); color: var(--rt-navy); font-size: var(--rt-fs-sm); }
.rt-confirm .rt-ic { flex: none; margin-top: 1px; color: var(--rt-navy); }

/* =========================== DIALOG / PANOU LATERAL =========================== */
.rt-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 34, 87, .45); display: flex; }
.rt-dialog { margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); overflow: auto; padding: var(--rt-s-8); border-radius: var(--rt-r-xl); background: var(--rt-white); box-shadow: var(--rt-shadow-panel); }
.rt-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--rt-s-4); margin-bottom: var(--rt-s-4); }
.rt-dialog__t { margin: 0; font-weight: var(--rt-fw-bold); font-size: 1.375rem; color: var(--rt-navy); }
.rt-dialog__b { color: var(--rt-ink); font-size: var(--rt-fs-sm); }
.rt-dialog__a { display: flex; gap: var(--rt-s-3); margin-top: var(--rt-s-6); flex-wrap: wrap; }
.rt-panel { margin-left: auto; width: min(420px, 100vw); height: 100%; padding: var(--rt-s-6); background: var(--rt-white); box-shadow: -12px 0 40px rgba(10, 34, 87, .18); overflow: auto; }
.rt-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--rt-s-5); }
.rt-panel__t { margin: 0; font-weight: var(--rt-fw-bold); font-size: 1.25rem; color: var(--rt-navy); }

/* =========================== STĂRI DE SISTEM =========================== */
.rt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--rt-s-3); padding: var(--rt-s-16) var(--rt-s-6); color: var(--rt-text-muted); }
.rt-empty__i { color: var(--rt-gray); opacity: .7; }
.rt-empty__t { margin: 0; font-weight: var(--rt-fw-bold); font-size: 1.125rem; color: var(--rt-navy); }
.rt-empty__d { margin: 0; max-width: 32em; }

.rt-error { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--rt-s-4); padding: var(--rt-s-24) var(--rt-s-6); }
.rt-error__code { font-weight: var(--rt-fw-black); font-size: 4rem; color: var(--rt-navy); line-height: 1; }
.rt-error__t { margin: 0; font-weight: var(--rt-fw-bold); font-size: 1.375rem; color: var(--rt-navy); }
.rt-error__d { margin: 0; max-width: 32em; color: var(--rt-text-muted); }

.rt-skeleton { position: relative; overflow: hidden; border-radius: var(--rt-r-md); background: var(--rt-line); }
.rt-skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: rt-shimmer 1.6s infinite;
}
@keyframes rt-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .rt-skeleton::after { animation: none; display: none; } }
.rt-skeleton--text { height: 14px; margin-bottom: 8px; } .rt-skeleton--title { height: 24px; width: 60%; margin-bottom: 14px; }
.rt-skeleton--block { height: 120px; } .rt-skeleton--avatar { width: 44px; height: 44px; border-radius: 50%; }

.rt-cookies { position: fixed; left: var(--rt-s-4); right: var(--rt-s-4); bottom: var(--rt-s-4); z-index: 95; display: flex; align-items: center; gap: var(--rt-s-6); flex-wrap: wrap; padding: var(--rt-s-5) var(--rt-s-6); border-radius: var(--rt-r-xl); background: var(--rt-white); box-shadow: var(--rt-shadow-panel); }
.rt-cookies__t { flex: 1; min-width: 240px; margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-ink); }
.rt-cookies__t a { color: var(--rt-blue); text-decoration: underline; text-underline-offset: 2px; }
.rt-cookies__a { display: flex; gap: var(--rt-s-3); flex: none; }
@media (max-width: 719px) { .rt-cookies { left: 10px; right: 10px; bottom: 10px; padding: var(--rt-s-5); } .rt-cookies__a { width: 100%; } .rt-cookies__a .rt-btn { flex: 1; } }

/* =========================== HARTĂ (ilustrare statică) =========================== */
.rt-map-card { display: block; }
.rt-map-card > svg { width: 100%; height: auto; display: block; }
.rt-map-card__legend { margin-top: var(--rt-s-4); }

/* ================= HARTĂ INTERACTIVĂ ================= */
.rt-lmap { margin: 0; }
.rt-lmap__bar { display: flex; flex-wrap: wrap; gap: var(--rt-s-4); margin-bottom: var(--rt-s-5); }
.rt-lmap__bar .rt-field { flex: 1 1 220px; min-width: 0; }
.rt-lmap__stage { position: relative; }
/* lățimea e limitată ca harta să încapă pe un ecran fără derulare; fără spațiu gol
   pe lateral, altfel calculul poziției fișei nu ar mai corespunde desenului */
.rt-lmap__svg { width: 100%; max-width: 860px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.rt-lmap__svg .rt-lmap__judete path { fill: var(--rt-bg-alt); stroke: var(--rt-white); stroke-width: 1; }
.rt-lmap__svg .rt-lmap__judete path.is-on { stroke: var(--rt-navy); stroke-width: 1.2; }
.rt-lmap__dots g { transition: opacity var(--rt-dur) var(--rt-ease); }
.rt-lmap__dots .is-dim { opacity: .13; }
.rt-lmap__pin circle { fill: none; stroke: var(--rt-navy); stroke-width: 2; }

/* culorile punctelor și ale legendei — o singură definiție pentru fiecare rol */
.rt-lmap__dots .d-ok { fill: var(--rt-blue); }
.rt-lmap__dots .d-warn { fill: var(--rt-red); }
.rt-lmap__dots .d-bad { fill: var(--rt-navy); }
.rt-lmap__dots .d-na { fill: var(--rt-gray); }
.rt-lmap__dots .d-s1 { fill: var(--rt-data-2); }
.rt-lmap__dots .d-s2 { fill: var(--rt-data-3); }
.rt-lmap__dots .d-s3 { fill: var(--rt-data-4); }
.rt-lmap__dots .d-s4 { fill: var(--rt-data-5); }
.rt-lmap__legend .d-ok { background: var(--rt-blue); }
.rt-lmap__legend .d-warn { background: var(--rt-red); }
.rt-lmap__legend .d-bad { background: var(--rt-navy); }
.rt-lmap__legend .d-na { background: var(--rt-gray); }
.rt-lmap__legend .d-s1 { background: var(--rt-data-2); }
.rt-lmap__legend .d-s2 { background: var(--rt-data-3); }
.rt-lmap__legend .d-s3 { background: var(--rt-data-4); }
.rt-lmap__legend .d-s4 { background: var(--rt-data-5); }

.rt-lmap__legend { margin-top: var(--rt-s-4); }
.rt-lmap__sum { margin: var(--rt-s-2) 0 0; font-size: var(--rt-fs-xs); color: var(--rt-text-muted); }

/* fișa care apare la trecerea peste un punct sau la atingerea lui */
.rt-lmap__tip {
  position: absolute; z-index: 2; width: 268px; padding: 14px 16px; pointer-events: none;
  background: var(--rt-white); border-radius: var(--rt-r-lg); box-shadow: var(--rt-shadow-float);
}
.rt-lmap__tip.is-pinned { pointer-events: auto; }
.rt-lmap__tip-h { margin: 0 0 10px; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-body-lg); color: var(--rt-navy); line-height: var(--rt-lh-snug); }
.rt-lmap__tip-j { display: block; margin-top: 2px; font-weight: var(--rt-fw-book); font-size: var(--rt-fs-label); color: var(--rt-text-muted); }
.rt-lmap__tip-d { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: var(--rt-fs-label); }
.rt-lmap__tip-d dt { color: var(--rt-text-muted); }
.rt-lmap__tip-d dd { margin: 0; font-weight: var(--rt-fw-medium); color: var(--rt-ink); }
.rt-lmap__tip-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--rt-r-sm); color: var(--rt-text-muted); }
.rt-lmap__tip-x:hover { background: var(--rt-hover-tint); color: var(--rt-navy); }

/* căutarea unei localități, cu listă de sugestii */
.rt-combo { position: relative; }
.rt-combo__list {
  position: absolute; z-index: 3; top: calc(100% + 4px); left: 0; right: 0; max-height: 244px; overflow-y: auto;
  padding: 6px; background: var(--rt-white); border-radius: var(--rt-r-md); box-shadow: var(--rt-shadow-panel);
}
.rt-combo__opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--rt-r-sm); font-size: var(--rt-fs-sm); color: var(--rt-ink); cursor: pointer; }
.rt-combo__opt span { font-size: var(--rt-fs-label); color: var(--rt-text-muted); }
.rt-combo__opt:hover, .rt-combo__opt.is-on { background: var(--rt-hover-tint); }
@media (max-width: 719px) {
  .rt-lmap__bar { gap: var(--rt-s-3); }
  .rt-lmap__bar .rt-field { flex: 1 1 100%; }
  .rt-lmap__tip { width: min(268px, calc(100vw - 56px)); }
}

/* =====================================================================
   PAGINI DE TEXT — antet de pagină și conținut lung
   ===================================================================== */
.rt-phead { padding-block: 28px 48px; }
.rt-phead .rt-crumbs { margin-bottom: 28px; }
.rt-phead__kick { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.rt-phead .rt-h1 { margin-top: 14px; max-width: 860px; }
.rt-phead .rt-lead { color: var(--rt-text-on-dark); margin: 18px 0 0; }

.rt-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rt-s-12); padding-block: var(--rt-s-12) var(--rt-s-16); }
@media (min-width: 960px) { .rt-page--toc { grid-template-columns: 220px minmax(0, 1fr); } }
.rt-page__toc { align-self: start; position: sticky; top: calc(var(--rt-bar-h) + 24px); display: none; }
@media (min-width: 960px) { .rt-page__toc { display: block; } }
.rt-page__toc p { margin: 0 0 10px; font-size: var(--rt-fs-label); font-weight: var(--rt-fw-medium); letter-spacing: var(--rt-ls-label); text-transform: uppercase; color: var(--rt-text-muted); }
.rt-page__toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--rt-border); font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-page__toc a:hover { color: var(--rt-link); border-left-color: var(--rt-link); }

.rt-prose { max-width: 46rem; font-size: var(--rt-fs-body-lg); }
.rt-prose > * + * { margin-top: var(--rt-s-4); }
.rt-prose p { margin: 0; }
.rt-prose h2 { margin-top: var(--rt-s-12); scroll-margin-top: calc(var(--rt-bar-h) + 16px); }
.rt-prose h2:first-child { margin-top: 0; }
.rt-prose h3 { margin-top: var(--rt-s-8); }
.rt-prose ul, .rt-prose ol { padding-left: 1.25em; }
.rt-prose ul { list-style: disc; } .rt-prose ol { list-style: decimal; }
.rt-prose li + li { margin-top: var(--rt-s-2); }
.rt-prose li::marker { color: var(--rt-text-muted); }
.rt-prose a:not([class]) { color: var(--rt-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rt-prose a:not([class]):hover { text-decoration-thickness: 2px; }
.rt-prose strong { font-weight: var(--rt-fw-bold); color: var(--rt-text-strong); }
.rt-prose .rt-callout, .rt-prose .rt-table-wrap, .rt-prose .rt-principles { margin-top: var(--rt-s-6); }
.rt-prose--wide { max-width: none; }

/* lista de fapte scurte: termen → explicație */
.rt-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rt-border); }
.rt-facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rt-border); }
@media (min-width: 720px) { .rt-facts > div { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; } }
.rt-facts dt { font-weight: var(--rt-fw-bold); color: var(--rt-text-strong); }
.rt-facts dd { margin: 0; }

/* catalogul registrelor */
.rt-reg-group + .rt-reg-group { margin-top: var(--rt-s-12); }
.rt-reg-list { display: grid; gap: var(--rt-s-4); margin-top: var(--rt-s-6); }
.rt-reg { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rt-s-3); padding: var(--rt-s-6); border: 1px solid var(--rt-border); border-radius: var(--rt-r-xl); background: var(--rt-bg); }
@media (min-width: 960px) { .rt-reg { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--rt-s-8); } }
.rt-reg__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rt-reg__t { margin: 0; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-h3); line-height: var(--rt-lh-snug); color: var(--rt-text-strong); }
.rt-reg__label { display: block; margin-bottom: 4px; font-size: var(--rt-fs-label); font-weight: var(--rt-fw-medium); letter-spacing: var(--rt-ls-label); text-transform: uppercase; color: var(--rt-text-muted); }
.rt-reg__law { font-size: var(--rt-fs-sm); }
.rt-reg p { margin: 0; }
.rt-reg .rt-link { margin-top: 6px; }

/* =====================================================================
   TABEL DE DATE INTERACTIV — filtre, sortare, paginare
   ===================================================================== */
.rt-dtable__bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--rt-s-4); margin-bottom: var(--rt-s-5); }
.rt-dtable__bar .rt-field--wide { grid-column: span 2; }
@media (max-width: 719px) { .rt-dtable__bar .rt-field--wide { grid-column: auto; } }
.rt-dtable__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rt-s-3); margin-bottom: var(--rt-s-3); font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-dtable__meta .rt-link { font-size: var(--rt-fs-sm); }
.rt-dtable__sort { display: inline-flex; align-items: center; gap: 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.rt-dtable__sort:hover { color: var(--rt-accent); }
.rt-dtable__sort::after { content: "↕"; font-size: .9em; opacity: .45; }
th[aria-sort="ascending"] .rt-dtable__sort::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .rt-dtable__sort::after { content: "↓"; opacity: 1; }
.rt-dtable__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rt-s-3); margin-top: var(--rt-s-5); }
.rt-dtable td .rt-chip { white-space: nowrap; }
.rt-dtable__empty { padding: var(--rt-s-8) var(--rt-s-4); text-align: center; color: var(--rt-text-muted); }
/* paginarea comună (client/lib/pager.ts): câte sunt afișate, numerele paginilor, „Pe pagină" */
.rt-paginare { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rt-s-3) var(--rt-s-5); margin-top: var(--rt-s-4); font-size: var(--rt-fs-sm); color: var(--rt-text-muted); }
.rt-paginare b { color: var(--rt-text-strong); font-weight: var(--rt-fw-medium); }
.rt-paginare__pp { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rt-select--sm, .rt-input--sm { min-height: 36px; padding-block: 6px; font-size: var(--rt-fs-sm); }
.rt-select--sm { width: auto; padding-right: 34px; background-position: right 8px center; }
.rt-tabel-cauta { display: flex; justify-content: flex-end; margin-bottom: var(--rt-s-3); }
.rt-tabel-cauta .rt-input { max-width: 320px; }
@media (max-width: 719px) { .rt-paginare { justify-content: center; } .rt-tabel-cauta .rt-input { max-width: none; } }
/* sub 1024px tabelele largi se derulează pe orizontală (antetul lipit rămâne atunci în cutia tabelului) */
@media (min-width: 720px) and (max-width: 1023px) { .rt-dtable .rt-table-wrap { overflow-x: auto; } }
/* la schimbarea paginii, începutul tabelului apare sub bara de meniu, nu ascuns sub ea */
.rt-table-wrap, .rt-dtable { scroll-margin-top: calc(var(--rt-sticky-top, 0px) + 16px); }
@media (min-width: 720px) {
  .rt-dtable .rt-table th, .rt-dtable .rt-table td { padding-inline: 12px; }
}

/* =================================================================== GRAFIC CU BARE (components/grafic.ts) */
.rt-chart { margin: 0; min-width: 0; }
.rt-chart__t { font-weight: var(--rt-fw-medium); color: var(--rt-text-strong); margin-bottom: 12px; }
.rt-chart__gol { color: var(--rt-text-muted); font-size: var(--rt-fs-sm); }
.rt-chart__plot { position: relative; height: 168px; margin-left: 72px; }
.rt-chart__grid { position: absolute; inset: 0; }
.rt-chart__tick { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rt-border); }
.rt-chart__tick--zero { border-top-color: var(--rt-text-muted); }
.rt-chart__tick i { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-style: normal; font-size: var(--rt-fs-label); color: var(--rt-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-chart__bars { position: absolute; inset: 0; display: flex; gap: 2px; }
.rt-chart__col { position: relative; flex: 1; min-width: 0; outline: none; border-radius: 4px; }
.rt-chart__col:hover, .rt-chart__col:focus-visible { background: var(--rt-hover-tint); }
.rt-chart__col:focus-visible { box-shadow: 0 0 0 2px var(--rt-focus); }
/* bara: subțire, rotunjită la capătul cu valoare, dreaptă la linia zero */
.rt-chart__bar { position: absolute; left: 50%; transform: translateX(-50%); width: min(24px, 70%); background: var(--rt-data-4); border-radius: 4px 4px 0 0; }
.rt-chart__bar--jos { border-radius: 0 0 4px 4px; }
.rt-chart__bar--neg { background: var(--rt-red); }
.rt-chart__nd { position: absolute; left: 50%; bottom: 0; width: 8px; height: 2px; transform: translateX(-50%); background: var(--rt-border); }
.rt-chart__val { position: absolute; right: 0; margin-bottom: 4px; font-size: var(--rt-fs-label); font-weight: var(--rt-fw-medium); color: var(--rt-text-strong); white-space: nowrap; }
.rt-chart__val--jos { margin: 4px 0 0; }
/* tooltip: la hover și la focus, fără JavaScript */
.rt-chart__col[data-tip]:hover::after, .rt-chart__col[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 6px 10px; border-radius: var(--rt-r-sm); background: var(--rt-navy); color: var(--rt-white);
  font-size: var(--rt-fs-label); white-space: nowrap; pointer-events: none;
}
.rt-chart__col:first-child[data-tip]:hover::after, .rt-chart__col:first-child[data-tip]:focus-visible::after { left: 0; transform: none; }
.rt-chart__col:last-child[data-tip]:hover::after, .rt-chart__col:last-child[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }
.rt-chart__x { display: flex; gap: 2px; margin: 8px 0 0 72px; font-size: var(--rt-fs-label); color: var(--rt-text-muted); font-variant-numeric: tabular-nums; }
.rt-chart__x span { flex: 1; min-width: 0; text-align: center; }
.rt-chart__x span:last-child { text-align: right; white-space: nowrap; }
.rt-chart__x--ascuns { visibility: hidden; }
.rt-charts { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* =================================================================== FIȘELE PRIMĂRIILOR (legături din tabel și hartă) */
.rt-table__main b a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rt-table__main b a:hover { color: var(--rt-link); text-decoration-thickness: 2px; }
.rt-lmap__tip-a { margin-top: 10px; font-size: var(--rt-fs-label); }
.rt-facts dd a { color: var(--rt-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }

/* =========================== ÎNCREDERE: INSIGNA DE LÂNGĂ CIFRE =========================== */
/* explicația apare la hover, focus și atingere, fără JS; ascunsă cu display:none, ca să nu lărgească pagina pe telefon */
.rt-trust {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 5px; border-radius: var(--rt-r-pill);
  font-size: var(--rt-fs-label); font-weight: var(--rt-fw-medium); line-height: 1.5; color: var(--rt-navy); white-space: nowrap; vertical-align: middle; cursor: help;
}
.rt-trust .rt-ic { width: 14px; height: 14px; flex: none; }
.rt-trust--oficial { padding-inline: 0; font-weight: var(--rt-fw-book); color: var(--rt-text-muted); }
.rt-trust--derivat { background: rgba(47, 102, 196, .10); }
.rt-trust--citit-automat { background: var(--rt-status-wip); }
.rt-trust--neconfirmat { background: var(--rt-status-bad); }
.rt-trust:focus-visible { outline: 2px solid var(--rt-focus); outline-offset: 2px; }
.rt-trust__tip {
  display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: var(--rt-z-dropdown);
  width: max-content; max-width: min(260px, 72vw); padding: 10px 12px; border-radius: var(--rt-r-md); background: var(--rt-navy); color: var(--rt-white);
  font-size: var(--rt-fs-label); font-weight: var(--rt-fw-book); line-height: 1.4; white-space: normal; text-align: left;
}
.rt-trust:hover .rt-trust__tip, .rt-trust:focus .rt-trust__tip { display: block; }
.rt-dark .rt-trust--oficial { color: var(--rt-text-on-dark-2); }
.rt-dark .rt-trust:not(.rt-trust--oficial) { color: var(--rt-navy); background: var(--rt-white); }
.rt-dark .rt-trust:focus-visible { outline-color: var(--rt-focus-on-dark); }
.rt-stat__inc { display: block; }
.rt-trust-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--rt-s-3) 0 0; font-size: var(--rt-fs-xs); color: var(--rt-text-muted); }
td .rt-trust, dd .rt-trust, .rt-src .rt-trust { margin-left: 4px; }

/* =========================== CITARE =========================== */
.rt-cite { display: grid; gap: var(--rt-s-2); padding: var(--rt-s-5) var(--rt-s-6); border-radius: var(--rt-r-lg); background: var(--rt-paper); }
.rt-cite__t { margin: 0; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-sm); color: var(--rt-navy); }
/* un clic selectează toată citarea: se copiază și fără JavaScript */
.rt-cite__text { margin: 0; padding: 12px 14px; border-radius: var(--rt-r-md); background: var(--rt-white); box-shadow: inset 0 0 0 1px var(--rt-border); font-size: var(--rt-fs-sm); line-height: 1.5; color: var(--rt-ink); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.rt-cite__meta { margin: 0; font-size: var(--rt-fs-xs); color: var(--rt-text-muted); overflow-wrap: anywhere; }
.rt-cite__meta code { font-family: var(--rt-font-mono); font-size: var(--rt-fs-label); color: var(--rt-ink); }
.rt-cite__a { margin: 4px 0 0; }

/* =========================== SEMNALEAZĂ O EROARE (pe fișe) =========================== */
.rt-flag { display: flex; gap: var(--rt-s-3); padding: var(--rt-s-5); border-radius: var(--rt-r-lg); box-shadow: inset 0 0 0 1px var(--rt-border); background: var(--rt-white); }
.rt-flag__i { flex: none; color: var(--rt-navy); margin-top: 2px; }
.rt-flag__b { min-width: 0; }
.rt-flag__t { margin: 0 0 4px; font-weight: var(--rt-fw-bold); color: var(--rt-navy); }
.rt-flag__d { margin: 0 0 10px; font-size: var(--rt-fs-sm); line-height: 1.5; }
.rt-flag__ctx { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--rt-r-sm); background: var(--rt-paper); font-family: var(--rt-font-mono); font-size: var(--rt-fs-label); line-height: 1.5; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.rt-flag__a { display: flex; flex-wrap: wrap; gap: var(--rt-s-2); margin: 0; }

/* =========================== CE S-A SCHIMBAT (lângă banda de actualizare) =========================== */
.rt-changes { background: var(--rt-paper); font-size: var(--rt-fs-xs); border-top: 1px solid var(--rt-border); }
.rt-changes__inner { display: flex; gap: 10px; padding-block: 16px; }
.rt-changes__i { flex: none; color: var(--rt-navy); margin-top: 1px; }
.rt-changes__t { margin: 0 0 2px; font-weight: var(--rt-fw-bold); font-size: var(--rt-fs-sm); color: var(--rt-navy); }
.rt-changes__d { margin: 0; color: var(--rt-ink); }
.rt-changes__l { margin: 4px 0 0; padding-left: 18px; color: var(--rt-ink); line-height: 1.5; }
.rt-changes__l a { color: var(--rt-navy); }
td .rt-trust__tip { bottom: auto; top: calc(100% + 6px); }
.rt-cite__meta a, .rt-flag__d a, .rt-changes__l a { color: var(--rt-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rt-cite__meta a:hover, .rt-flag__d a:hover, .rt-changes__l a:hover { color: var(--rt-accent); text-decoration-thickness: 2px; }
