/*
  LegalHold - css/lh-legislatie-registru.css  (versiunea 1.0, 2026-11-03)  QA #182-#183
  Familia "Legislatie" (manual identitate vizuala, sectiunea 29, familia 4): hartie #F7F4EE, bronz #8F6F40,
  cerneala #1A2540, linii de registru #EFE7D6, numere in caractere cu spatiere fixa, insigne de stare
  (verde "in vigoare", gri "abrogat"). Se aplica DOAR paginilor cu <body data-fam="legislatie">
  (baza-legi.html si cautare.html), peste lh-identitati.css. Nu atinge paginile din /legislatie/.
  Retragere: scoate <link> din cele doua pagini.
*/
body[data-fam="legislatie"]{
  --reg-bronz:#8f6f40; --reg-bronz-deep:#7c5d2e; --reg-ink:#1a2540; --reg-paper:#f7f4ee;
  --reg-sheet:#fbf8f1; --reg-line:#efe7d6; --reg-border:#ddd2b9; --reg-hover:#f7f0e2;
}

/* ===================== COMUN: scroll unic in lista "Tip act" (QA #183) ===================== */
/* Pagefind pune overflow si max-height si pe .pf-dropdown-menu, si pe .pf-dropdown-options => doua bare.
   Derularea ramane doar pe lista de optiuni. */
body[data-fam="legislatie"] .pf-dropdown-menu{overflow:visible!important;max-height:none!important;padding:6px!important;
  border:1px solid var(--reg-border)!important;border-radius:10px!important;background:#fff!important;
  box-shadow:0 14px 34px rgba(26,37,64,.16)!important}
body[data-fam="legislatie"] .pf-dropdown-options{max-height:280px!important;overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;scrollbar-color:#b08d57 #f1eadb}
body[data-fam="legislatie"] .pf-dropdown-options::-webkit-scrollbar{width:8px}
body[data-fam="legislatie"] .pf-dropdown-options::-webkit-scrollbar-track{background:#f1eadb;border-radius:4px}
body[data-fam="legislatie"] .pf-dropdown-options::-webkit-scrollbar-thumb{background:#b08d57;border-radius:4px}
body[data-fam="legislatie"] .pf-dropdown-option{border-radius:6px;font:14px/1.3 Arial,Helvetica,sans-serif;color:var(--reg-ink)}
body[data-fam="legislatie"] .pf-dropdown-option:hover,
body[data-fam="legislatie"] .pf-dropdown-option[aria-selected="true"]{background:var(--reg-hover)}
body[data-fam="legislatie"] .pf-dropdown-option[aria-selected="true"] .pf-dropdown-option-label{font-weight:700}

/* ===================== CAUTARE.HTML ===================== */
body[data-fam="legislatie"] .lh-search-input{
  border:1px solid var(--reg-border);border-radius:10px;background:#fff;padding:15px 18px;
  box-shadow:0 1px 0 var(--reg-line),0 8px 22px rgba(26,37,64,.06);
}
body[data-fam="legislatie"] .lh-search-input:focus{outline:0;border-color:var(--reg-bronz);box-shadow:0 0 0 3px rgba(143,111,64,.22)}
/* panoul de filtre = foaie de registru */
body[data-fam="legislatie"] .search-filters{
  padding:14px;margin:0 0 16px;border:1px solid var(--reg-border);border-top:3px double var(--reg-bronz);border-radius:10px;
  background:repeating-linear-gradient(180deg,transparent 0 31px,rgba(143,111,64,.10) 31px 32px),var(--reg-sheet);
}
body[data-fam="legislatie"] .pf-dropdown-trigger{
  min-height:42px;border:1px solid var(--reg-border);border-radius:8px;background:#fff;color:var(--reg-ink);
  font:700 14px/1.2 Arial,Helvetica,sans-serif;transition:border-color .15s,background .15s;
}
body[data-fam="legislatie"] .pf-dropdown-trigger:hover{background:var(--reg-hover);border-color:var(--reg-bronz)}
body[data-fam="legislatie"] .pf-dropdown-trigger[aria-expanded="true"]{border-color:var(--reg-bronz);box-shadow:0 0 0 3px rgba(143,111,64,.2)}
body[data-fam="legislatie"] .pf-dropdown-selected-badge{background:var(--reg-bronz);color:#fff}
body[data-fam="legislatie"] .search-filter-help{padding-left:10px;border-left:3px solid var(--reg-bronz)}
body[data-fam="legislatie"] .lh-results-summary{
  display:flex;align-items:center;gap:10px;margin:6px 0 16px;padding:9px 14px;border-radius:8px;
  background:var(--reg-sheet);border:1px solid var(--reg-line);color:var(--reg-ink);font-weight:700
}
body[data-fam="legislatie"] .lh-email-box button,body[data-fam="legislatie"] .lh-email-box input{border-color:var(--reg-bronz);border-radius:8px}
body[data-fam="legislatie"] .lh-email-box button{color:var(--reg-bronz-deep);font-weight:700;background:#fff}
body[data-fam="legislatie"] .lh-email-box button:hover{background:var(--reg-bronz);color:#fff}
body[data-fam="legislatie"] .lh-result-group-title{border-bottom:3px double var(--reg-bronz);color:var(--reg-ink)}
/* rezultate = fise de registru */
body[data-fam="legislatie"] pagefind-results .pf-results{list-style:none;margin:0;padding:0;display:grid;gap:12px}
body[data-fam="legislatie"] pagefind-results .pf-result{margin:0;list-style:none}
body[data-fam="legislatie"] pagefind-results .pf-result-card{
  position:relative;padding:16px 18px 16px 22px;border:1px solid var(--reg-border);border-radius:10px;background:#fff;
  box-shadow:0 1px 0 var(--reg-line);transition:box-shadow .15s,border-color .15s,transform .15s;
}
body[data-fam="legislatie"] pagefind-results .pf-result-card::before{
  content:"";position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:0 3px 3px 0;background:var(--reg-bronz);opacity:.55
}
body[data-fam="legislatie"] pagefind-results .pf-result-card:hover{border-color:var(--reg-bronz);box-shadow:0 8px 22px rgba(26,37,64,.10);transform:translateY(-1px)}
body[data-fam="legislatie"] pagefind-results .pf-result-card:hover::before{opacity:1}
body[data-fam="legislatie"] pagefind-results .pf-result-title{margin:0 0 6px;font:700 17px/1.3 Georgia,'Times New Roman',serif}
body[data-fam="legislatie"] pagefind-results a.pf-result-link{color:var(--reg-ink);text-decoration:none}
body[data-fam="legislatie"] pagefind-results a.pf-result-link:hover{color:var(--reg-bronz-deep);text-decoration:underline;text-underline-offset:3px}
body[data-fam="legislatie"] pagefind-results .pf-result-excerpt{margin:0;color:#4a4f5c;font:14px/1.6 Georgia,'Times New Roman',serif}
body[data-fam="legislatie"] pagefind-results .pf-result-excerpt mark{background:rgba(176,141,87,.28);color:var(--reg-ink);padding:0 2px;border-radius:3px}
body[data-fam="legislatie"] pagefind-results .pf-result-tags,
body[data-fam="legislatie"] pagefind-results .pf-result-meta{font:12px/1.4 'Courier New',ui-monospace,monospace;color:var(--reg-bronz-deep)}

/* ===================== BAZA-LEGI.HTML ===================== */
body[data-fam="legislatie"] header:not(.site-header){
  background:var(--reg-sheet);border-bottom:3px double var(--reg-bronz);box-shadow:0 8px 22px rgba(26,37,64,.07);
  padding:18px 28px 16px;
}
body[data-fam="legislatie"] header:not(.site-header) .stats{
  display:inline-block;margin:0 0 4px;padding:5px 12px;border-left:3px solid var(--reg-bronz);border-radius:6px;
  background:#fff;color:var(--reg-ink);font:700 13px/1.4 Arial,Helvetica,sans-serif;box-shadow:0 2px 8px rgba(26,37,64,.06)
}
body[data-fam="legislatie"] header:not(.site-header) input[type=text],
body[data-fam="legislatie"] header:not(.site-header) select{
  min-height:42px;border:1px solid var(--reg-border);border-radius:8px;background:#fff;color:var(--reg-ink);
  font:14px/1.2 Arial,Helvetica,sans-serif;
}
body[data-fam="legislatie"] header:not(.site-header) input[type=text]:focus,
body[data-fam="legislatie"] header:not(.site-header) select:focus{outline:0;border-color:var(--reg-bronz);box-shadow:0 0 0 3px rgba(143,111,64,.22)}
body[data-fam="legislatie"] .exact-toggle{padding:9px 12px;border:1px solid var(--reg-border);border-radius:8px;background:#fff;color:var(--reg-ink);font-weight:700}
body[data-fam="legislatie"] .exact-toggle input{accent-color:var(--reg-bronz)}
body[data-fam="legislatie"] .sortbar{padding:8px 12px;border-radius:8px;background:var(--reg-line);color:var(--reg-ink)}
body[data-fam="legislatie"] .sortbar select,body[data-fam="legislatie"] .sort-reset{min-height:30px;border:1px solid var(--reg-border);border-radius:6px;background:#fff;color:var(--reg-ink);cursor:pointer}
body[data-fam="legislatie"] .sort-reset:hover{background:var(--reg-bronz);border-color:var(--reg-bronz);color:#fff}
body[data-fam="legislatie"] .crosslink-note{
  position:relative;padding:12px 16px 12px 46px;border:1px dashed var(--reg-bronz);border-left:3px solid var(--reg-bronz);background:#fff;border-radius:8px
}
body[data-fam="legislatie"] .crosslink-note::before{
  content:"\00a7";position:absolute;left:14px;top:50%;transform:translateY(-50%);font:700 24px/1 Georgia,serif;color:var(--reg-bronz);opacity:.8
}
/* tabel = registru */
body[data-fam="legislatie"] #lawsTable{
  border:1px solid var(--reg-border);border-top:3px solid var(--reg-bronz);border-radius:10px;
  box-shadow:0 10px 28px rgba(26,37,64,.08);
}
body[data-fam="legislatie"] #lawsTable th{
  background:#f1eadb;color:var(--reg-bronz-deep);border-bottom:2px solid var(--reg-bronz);
  font:700 11.5px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.08em;padding:12px 14px
}
body[data-fam="legislatie"] #lawsTable th:hover{color:var(--reg-ink);background:#ebe1cb}
body[data-fam="legislatie"] #lawsTable td{
  padding:13px 14px;border-bottom:1px solid var(--reg-line);color:var(--reg-ink);line-height:1.5
}
body[data-fam="legislatie"] #lawsTable tr:last-child td{border-bottom:0}
body[data-fam="legislatie"] #lawsTable tbody tr{transition:background .12s}
body[data-fam="legislatie"] #lawsTable tbody tr:hover td{background:var(--reg-hover)}
body[data-fam="legislatie"] #lawsTable tbody tr:hover td:first-child{box-shadow:inset 3px 0 0 var(--reg-bronz)}
body[data-fam="legislatie"] #lawsTable td.numar{
  font:700 12.5px/1.4 'Courier New',ui-monospace,monospace;color:var(--reg-ink);letter-spacing:.01em;white-space:nowrap
}
body[data-fam="legislatie"] #lawsTable .law-meta{margin-top:5px;font:12px/1.4 'Courier New',ui-monospace,monospace;color:var(--reg-bronz-deep)}
body[data-fam="legislatie"] .badge{padding:4px 10px;border-radius:999px;font:700 10.5px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.06em}
body[data-fam="legislatie"] .badge.vig{background:#e7f2e9;color:#2f6b45;border:1px solid #bcd9c3}
body[data-fam="legislatie"] .badge.abr{background:#ecebe6;color:#5f5b52;border:1px solid #d2cfc5}
body[data-fam="legislatie"] button.openlink,body[data-fam="legislatie"] a.openlink{
  display:inline-block;padding:7px 13px;border:1px solid var(--reg-bronz);border-radius:999px;background:#fff;color:var(--reg-bronz-deep);
  font:700 12.5px/1 Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,color .15s
}
body[data-fam="legislatie"] button.openlink:hover,body[data-fam="legislatie"] a.openlink:hover{background:var(--reg-bronz);color:#fff;text-decoration:none}
body[data-fam="legislatie"] .pager button{border:1px solid var(--reg-bronz);border-radius:999px;background:#fff;color:var(--reg-bronz-deep);font-weight:700;padding:8px 18px}
body[data-fam="legislatie"] .pager button:hover:not(:disabled){background:var(--reg-bronz);color:#fff}
body[data-fam="legislatie"] .pager span{color:var(--reg-ink);font-weight:700}

/* telefon: tabelul ramane cel responsiv existent; doar strangem spatiile */
@media (max-width:700px){
  body[data-fam="legislatie"] header:not(.site-header){padding:14px 14px 12px}
  body[data-fam="legislatie"] #lawsTable td{padding:11px 12px}
  body[data-fam="legislatie"] .search-filters{padding:10px}
}
