/*
 * "Groworth vs YNAB / Emma" lapas (2026-11-01, gen-vs.js). Pamats — landing.css + calc.css +
 * raksti.css (bk-steps, cx-more); šeit tikai savas klases ar "vs-". Groworth kolonna iekrāsota
 * viegli, konkurenta faktiem [n] ved uz avotu sarakstu. Telefonā (≤640 px) tabula kļūst par
 * kartītēm: rindas nosaukums augšā, abas lietotnes blakus ar savu vārdu virs teksta.
 */
.vs-answer { margin: 8px 0 18px; border-left: 3px solid var(--accent); }
.vs-answer h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.vs-answer p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.55; max-width: 70ch; }
.vs-disclose { max-width: 70ch; margin: 0 0 36px; color: var(--text-3); font-size: 14px; }

.vs-table h2, .vs-side h2, .vs-switch h2 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.vs-table { margin: 0 0 40px; }
.vs-table > .cx-note { margin: 10px 0 0; }
.vs-scroll { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); }
.calc-page .vs-t { font-size: 14.5px; line-height: 1.45; font-variant-numeric: normal; }
.calc-page .vs-t caption { text-align: left; caption-side: top; padding: 12px 14px 4px; color: var(--text-3); font-size: 13px; }
.calc-page .vs-t th, .calc-page .vs-t td { text-align: left; vertical-align: top; padding: 12px 14px; }
.calc-page .vs-t tbody th { text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 600; color: var(--text); width: 22%; }
.calc-page .vs-t thead th { font-size: 13px; }
.calc-page .vs-t thead th.vs-me { color: var(--accent); }
.vs-t td { color: var(--text-2); width: 39%; }
.vs-t td.vs-me { color: var(--text); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.vs-t tbody tr:last-child th, .vs-t tbody tr:last-child td { border-bottom: 0; }
.vs-ref { margin-left: 2px; line-height: 0; }
.vs-ref a { font-size: 11px; color: var(--text-3); text-decoration: none; white-space: nowrap; }
.vs-ref a:hover, .vs-ref a:focus-visible { color: var(--accent); }

.vs-pros { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 44px; align-items: start; }
.vs-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.vs-side li { color: var(--text-2); line-height: 1.55; }
.vs-side li strong { display: block; color: var(--text); }
.vs-better { border-top: 3px solid var(--text-3); }
.vs-fit { border-top: 3px solid var(--accent); }

.vs-switch { margin: 0 0 12px; max-width: 72ch; }
.vs-switch .bk-steps { margin: 0; }
.vs-switch .bk-steps li { color: var(--text-2); }
.vs-switch .bk-steps strong { color: var(--text); }

.vs-links { margin: 18px 0 0; font-size: 15px; }
.vs-links a { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.vs-links a:hover { color: var(--accent); }
.vs-src { font-size: 14px; padding-left: 22px; }
.vs-src li { margin-bottom: 6px; }
.vs-src span { color: var(--text-3); }
.vs-src li:target { color: var(--text); }
.vs-src li:target a { color: var(--accent); }

@media (max-width: 760px) {
  .vs-pros { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .vs-answer p { font-size: 16px; }
  .vs-scroll { overflow: visible; }
  .calc-page .vs-t, .vs-t tbody, .vs-t caption { display: block; }
  .vs-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vs-t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .vs-t tbody tr:last-child { border-bottom: 0; }
  .calc-page .vs-t tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding: 12px 14px 4px; }
  .calc-page .vs-t td { width: auto; border-bottom: 0; padding: 6px 14px 12px; font-size: 14px; }
  .vs-t td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
  .vs-t td.vs-me::before { color: var(--accent); }
}
