/* Seria „X sau Y” pe blog (utils/blog-xy.js): răspunsul pe scurt, tabelele de comparație, casetele, întrebările frecvente,
   sursele, comparațiile înrudite și instrumentele mici (views/partials/blog-xy-tool.ejs, public/js/blog-xy.js) */
.xy-pe-scurt { margin: 0 0 1.6em; padding: 16px 18px; border-radius: 14px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e293b; }
.xy-pe-scurt > :first-child { margin-top: 0; }
.xy-pe-scurt > :last-child { margin-bottom: 0; }
.xy-pe-scurt strong:first-child { color: #1e3a8a; }
.prose .xy-scroll { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.prose .xy-scroll table { margin: 0; min-width: 520px; }
.prose table.xy-tabel { font-size: .92em; }
.prose table.xy-tabel th, .prose table.xy-tabel td { vertical-align: top; padding: .55em .7em; }
.prose table.xy-tabel thead th { background: #f8fafc; }
.prose table.xy-tabel tbody th { font-weight: 600; color: #0f172a; }
.xy-caseta { margin: 1.6em 0; padding: 14px 16px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #422006; }
.xy-caseta > :first-child { margin-top: 0; }
.xy-caseta > :last-child { margin-bottom: 0; }
.xy-caseta--exemplu { background: #f0fdf4; border-color: #bbf7d0; color: #052e16; }
.xy-caseta--atentie { background: #fef2f2; border-color: #fecaca; color: #450a0a; }
.prose .xy-faq h3 { font-size: 1.05em; margin-top: 1.4em; }
.prose .xy-surse { font-size: .9em; color: #475569; border-top: 1px solid #e2e8f0; margin-top: 2.2em; padding-top: .6em; }
.prose .xy-surse h2 { font-size: 1.15em; }
.prose .xy-surse li { margin: .3em 0; }
.prose a.xy-auto { text-decoration-style: dotted; }
/* comparațiile înrudite, sub articol */
.xy-rel { margin: 8px 0 28px; padding: 18px; border-radius: 16px; border: 1px solid #e2e8f0; background: #f8fafc; }
.xy-rel h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.xy-rel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .xy-rel ul { grid-template-columns: 1fr 1fr; } }
.xy-rel a { display: block; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; color: #1d4ed8; font-weight: 600; line-height: 1.35; text-decoration: none; }
.xy-rel a:hover { border-color: #93c5fd; }
/* instrumentul mic din articol */
.xy-tool { margin: 2em 0; padding: 18px; border-radius: 18px; border: 1px solid #c7d2fe; background: linear-gradient(180deg, #f5f7ff, #fff 140px); color: #0f172a; font-size: .95rem; }
.xy-tool__k { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4338ca; background: #e0e7ff; border-radius: 99px; padding: 3px 9px; }
.xy-tool__head h3 { font-size: 1.15rem; font-weight: 800; margin: 8px 0 4px; line-height: 1.3; }
.xy-tool__head p { color: #475569; margin: 0 0 12px; line-height: 1.5; }
.xy-form { display: grid; gap: 12px; }
@media (min-width: 640px) { .xy-form:has(.xy-fs--half) { grid-template-columns: 1fr 1fr; } }
.xy-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
@media (min-width: 640px) { .xy-fs:not(.xy-fs--half):not(.xy-choice) { grid-template-columns: 1fr 1fr; } }
.xy-fs legend { font-weight: 800; font-size: .9rem; margin-bottom: 6px; color: #1e293b; }
.xy-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.xy-field { display: grid; gap: 4px; font-size: .85rem; color: #334155; min-width: 0; }
.xy-in { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; overflow: hidden; }
.xy-in:focus-within { border-color: #6366f1; box-shadow: 0 0 0 3px #e0e7ff; }
.xy-in input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: inherit; font-size: 1rem; color: #0f172a; background: transparent; outline: none; }
.xy-in em { font-style: normal; color: #64748b; background: #f8fafc; padding: 0 10px; display: flex; align-items: center; border-left: 1px solid #e2e8f0; font-size: .82rem; white-space: nowrap; }
.xy-field > select, .xy-field > input[type="date"] { border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 10px; font: inherit; background: #fff; color: #0f172a; min-width: 0; width: 100%; }
.xy-choice label, .xy-check label { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; line-height: 1.4; }
.xy-choice label:has(input:checked) { border-color: #6366f1; background: #eef2ff; }
.xy-check label:has(input:checked) span { color: #64748b; text-decoration: line-through; }
.xy-choice input, .xy-check input { margin-top: 3px; flex: none; accent-color: #4f46e5; }
.xy-check { display: grid; gap: 14px; }
.xy-progress { font-weight: 700; color: #3730a3; margin: 0; }
.xy-out { margin-top: 14px; }
.xy-out .xy-scroll { overflow-x: auto; }
.xy-out table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 12px; overflow: hidden; min-width: 420px; }
.xy-out th, .xy-out td { padding: 9px 10px; border-bottom: 1px solid #eef2f7; text-align: right; font-variant-numeric: tabular-nums; }
.xy-out th:first-child { text-align: left; font-weight: 600; color: #334155; }
.xy-out thead th { background: #eef2ff; color: #312e81; font-size: .8rem; }
.xy-verdict, .xy-answer { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b; line-height: 1.5; }
.xy-small { margin: 8px 0 0; font-size: .82rem; color: #64748b; line-height: 1.45; }
.xy-tool__note { margin: 12px 0 0; font-size: .78rem; color: #64748b; }
/* pe ecranele înguste, tabelul se derulează lateral, iar prima coloană (eticheta rândului) rămâne pe loc */
.prose .xy-scroll tbody th, .prose .xy-scroll thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #e2e8f0; }
.prose .xy-scroll thead th:first-child { background: #f8fafc; }
@media (max-width: 640px) { .prose .xy-scroll table { font-size: .84em; min-width: 560px; } .prose .xy-scroll tbody th { max-width: 34vw; } }
/* tabelele de rezultat ale instrumentelor au 2–3 coloane scurte: încap pe telefon fără derulare și fără coloană fixă */
.prose .xy-out .xy-scroll table, .xy-out table { min-width: 0; }
.prose .xy-out .xy-scroll tbody th, .prose .xy-out .xy-scroll thead th:first-child { position: static; box-shadow: none; max-width: none; }
@media (max-width: 640px) { .prose .xy-out .xy-scroll table { min-width: 0; font-size: .88rem; } .xy-out th, .xy-out td { padding: 8px 7px; } }
