/* Dicționarul imobiliar (views/dictionar/*.ejs), peste stilurile Utile (utile.css, ut-*) */
.dx .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.dx-search { position: relative; max-width: 640px; margin-top: 18px; }
.dx-search input { width: 100%; min-height: 54px; padding: 12px 18px; border: 0; border-radius: 14px; font: inherit; font-size: 1.08rem; color: #0f172a; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.dx-search--small input { min-height: 46px; font-size: 1rem; }
.dx-search input:focus { outline: 3px solid rgba(147, 197, 253, .9); }
.dx-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .2); max-height: 60vh; overflow: auto; }
.dx-results[hidden] { display: none; }
.dx-results a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; color: #0f172a; text-decoration: none; }
.dx-results li.is-on a, .dx-results a:hover { background: #eff6ff; }
.dx-results b { font-size: .98rem; }
.dx-results span { font-size: .84rem; color: #475569; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-results .dx-none { padding: 10px 12px; color: #475569; font-size: .92rem; }
.dx-results .dx-none a { display: inline; padding: 0; color: #1d4ed8; text-decoration: underline; }
.dx-try { margin-top: 12px; color: #dbeafe; font-size: .92rem; }
.dx-try a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dx-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.dx-card:hover { border-color: #93c5fd; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.dx-card b { color: #0f172a; }
.dx-card span { color: #475569; font-size: .9rem; line-height: 1.45; }
.dx-az { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; margin: 8px 0; background: #f8fafc; }
.dx-az a { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: #1e3a8a; font-weight: 800; text-decoration: none; }
.dx-letter { scroll-margin-top: 120px; padding: 10px 0; border-top: 1px solid #e2e8f0; }
.dx-letter h3 { margin: 0 0 4px; font-size: 1.2rem; color: #1e3a8a; }
.dx-letter p { margin: 0; line-height: 1.9; }
.dx-letter a, .dx-chips a, #despre a { color: #1d4ed8; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-chips a { padding: 6px 12px; border-radius: 99px; background: #eff6ff; text-decoration: none; font-weight: 600; font-size: .9rem; }
/* „Explică-mi actul” */
.dx-explain textarea { width: 100%; min-height: 140px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 14px; font: inherit; font-size: .98rem; line-height: 1.55; background: #fff; }
.dx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dx-out { margin-top: 14px; display: grid; gap: 12px; }
.dx-out[hidden] { display: none; }
.dx-out__n { margin: 0; color: #334155; }
.dx-out__text { padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; line-height: 1.8; font-family: Georgia, serif; overflow-wrap: anywhere; }
.dx-out mark { background: #fef08a; color: inherit; padding: 1px 2px; border-radius: 4px; cursor: pointer; box-shadow: inset 0 -2px 0 #eab308; }
.dx-out mark.is-on, .dx-out mark:focus { background: #fde047; outline: 2px solid #ca8a04; }
.dx-pop { padding: 14px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; }
.dx-pop[hidden] { display: none; }
.dx-pop b { color: #0f172a; }
.dx-pop p { margin: 4px 0 6px; color: #334155; }
.dx-pop a { color: #1d4ed8; font-weight: 700; }
/* pagina termenului */
.dx-short { font-size: 1.15rem !important; max-width: 70ch; }
.dx-term article { display: grid; gap: 12px; margin-top: 8px; }
.dx-block { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; }
.dx-block h2 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.dx-block p { margin: 0; color: #334155; line-height: 1.65; }
.dx-block--ex { background: #f0fdf4; border-color: #bbf7d0; }
.dx-block--warn { background: #fffbeb; border-color: #fde68a; }
.dx-block--law { background: #f8fafc; }
.dx-block blockquote { margin: 0 0 8px; padding: 8px 14px; border-left: 4px solid #1d4ed8; font-family: Georgia, serif; color: #0f172a; line-height: 1.6; background: #fff; border-radius: 0 10px 10px 0; }
.dx-src a { color: #1d4ed8; }
.dx-src { font-size: .9rem; }
.dx-tool { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; text-decoration: none; }
.dx-tool span { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; background: #1d4ed8; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dx-tool span svg { width: 20px; height: 20px; }
.dx-tool small { color: #3b82f6; }
.dx-alt { color: #64748b; font-size: .9rem; margin: 0; }
.dx-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.dx-nav a { color: #1d4ed8; font-weight: 600; }
@media (max-width: 640px) { .dx-az { top: 56px; } .dx-search input { font-size: 1rem; } }
