/* Сторінка «Порівняння інверторів Deye і Fox» (compare_deye_fox.py). Лише власні класи vs-*, site.css не змінюється. */
.vs-root .container, .vs-root .container--narrow { position: relative; }
.vs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vs-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vs-card__img { display: grid; place-items: center; height: 190px; margin-bottom: 14px; padding: 12px; border-radius: var(--radius); background: var(--paper); }
.vs-card__img img { max-height: 160px; width: auto; object-fit: contain; }
.vs-card h3 { margin-bottom: .25em; font-size: 1.08rem; }
.vs-card h3 a { color: var(--ink); text-decoration: none; }
.vs-card h3 a:hover { color: var(--green); }
.vs-card__sub { margin-bottom: 10px; color: var(--muted); font-size: .93rem; }
.vs-card__pts { margin: 0 0 14px; padding-left: 18px; font-size: .93rem; }
.vs-card__pts li { margin-bottom: 4px; }
.vs-card .link-arrow { margin-top: auto; }
.vs-short { margin-top: 18px; gap: 12px; }
.vs-scroll { margin: 20px 0 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vs-scroll:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.vs-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.vs-table th, .vs-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs-table thead th { position: sticky; top: 0; background: var(--paper); font-weight: 600; border-top: 3px solid var(--green); }
.vs-table thead th:nth-child(3) { border-top-color: var(--ink); }
.vs-table thead th:nth-child(4) { border-top-color: var(--yellow-600); }
.vs-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 200px; max-width: 260px; background: #fff; font-weight: 600; box-shadow: 1px 0 0 var(--line); }
.vs-table thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.vs-table .vs-sec th { background: var(--green-50); color: var(--green-900); font-weight: 700; letter-spacing: .02em; box-shadow: none; }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table--pick { min-width: 0; }
.vs-table--pick tbody th[scope="row"] { position: static; max-width: none; box-shadow: none; }
.vs-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.vs-ok { background: #e6f7ed; color: #0f57c7; }
.vs-edge { background: #fff1c2; color: #6b4a00; }
.vs-bad { background: #fde3e3; color: #9b1c1c; }
.vs-note { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.vs-src { margin: 12px 0 0; padding-left: 18px; font-size: .93rem; }
.vs-src li { margin-bottom: 4px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .vs-cards { grid-template-columns: 1fr; } .vs-card__img { height: 160px; } }
@media (max-width: 640px) { .vs-table { min-width: 600px; font-size: .86rem; } .vs-table th, .vs-table td { padding: 8px 9px; } .vs-table tbody th[scope="row"] { min-width: 128px; max-width: 150px; } .vs-table--pick { min-width: 0; } }
