/* The comparison table with verdict chips and a highlighted Virto column.
   Shared by /virto-calendar-app-vs-microsoft-365-calendars/ (and its German
   twin, layouts/_default/calendar-vs-microsoft-365.html) and by product pages
   that set comparison_virto_first (layouts/partials/product/
   product-comparison-virto-first.html). Tokens come from critical.css (:root).
   Page-specific rules stay in calendar-vs-m365.css. */
/* ── Table: the buyer's questions as rows, the Virto column first ── */
.cvm-table-wrap { border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(29, 32, 136, .06); }
.cvm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; line-height: 1.5; }
.cvm-table thead th { padding: 20px 14px 16px; vertical-align: bottom; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--color-text); border-bottom: 2px solid var(--color-border); }
.cvm-table thead th:first-child { width: 17%; }
.cvm-table thead img { display: block; width: 32px; height: 32px; margin-bottom: 10px; }
.cvm-table tbody th { padding: 16px 14px 16px 20px; vertical-align: top; text-align: left; font-weight: 700; color: var(--color-text); }
.cvm-table td { padding: 16px 14px; vertical-align: top; color: var(--color-text-secondary); }
.cvm-table tbody tr + tr > * { border-top: 1px solid var(--color-border-light); }
.cvm-table .is-virto { background: #F0F3FF; color: var(--color-text); }
.cvm-table thead .is-virto { border-radius: 14px 14px 0 0; color: #2A2F9E; }
/* The Virto column is the first after the questions, so its band rounds both bottom corners. */
.cvm-table tbody tr:last-child .is-virto { border-radius: 0 0 14px 14px; }
.cvm-table td.is-virto { font-weight: 600; }
.cvm-table a { color: var(--color-primary-dark); }
/* German compounds ("Serienbesprechungen", "Gruppenkalender") are wider than a
   column at 1000 px: they may break, between syllables on the German page. */
.cvm-table th, .cvm-table td { overflow-wrap: break-word; }
.cvm-table :is(th, td):lang(de) { -webkit-hyphens: auto; hyphens: auto; }
/* Verdict chips: the table reads at a glance, the words explain. */
.cvm-v { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 3px 10px 3px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.cvm-v__icon { flex: none; width: 16px; height: 16px; border-radius: 50%; background: currentColor center / 12px no-repeat; }
.cvm-v--yes { background: #DCFCE7; color: #166534; }
.cvm-v--yes .cvm-v__icon { background-color: #16A34A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cvm-v--no { background: #F1F2F6; color: #4B4B5A; }
.cvm-v--no .cvm-v__icon { background-color: #8A8A99; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cvm-v--part { background: #FEF3C7; color: #854D0E; }
.cvm-v--part .cvm-v__icon { background-color: #D97706; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cvm-cell { display: block; }
.cvm-footnote { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* Below 1100 px the table becomes one card per question, each answer
   labelled with its column: six columns no longer fit German compounds,
   and a phone never scrolls sideways. */
@media (max-width: 1100px) {
  .cvm-table-wrap { background: none; box-shadow: none; }
  .cvm-table, .cvm-table tbody, .cvm-table tr, .cvm-table th, .cvm-table td { display: block; width: auto; }
  .cvm-table thead { display: none; }
  .cvm-table tbody tr { margin-bottom: 16px; padding: 4px 0; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(29, 32, 136, .06); }
  .cvm-table tbody tr + tr > th { border-top: 0; }
  .cvm-table tbody th { padding: 16px 18px 8px; font-size: 17px; }
  .cvm-table tbody td, .cvm-table tbody tr + tr > td { padding: 10px 18px; border-top: 1px solid var(--color-border-light); }
  .cvm-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--color-text-muted); }
  .cvm-table td.is-virto::before { color: #2A2F9E; }
  /* The verdict and its words share a line once each answer has the row's width. */
  .cvm-v { margin: 0 8px 2px 0; vertical-align: 1px; }
  .cvm-cell { display: inline; }
  /* Virto's answer comes first in each card, right under the question: square corners, the card keeps its own. */
  .cvm-table tbody tr:last-child .is-virto, .cvm-table td.is-virto { border-radius: 0; }
}
/* On a tablet the calendar's name stands beside its answer, not above it. */
@media (min-width: 641px) and (max-width: 1100px) {
  /* A float in a flow-root cell: a two-line name keeps the row as tall as it. */
  .cvm-table tbody td, .cvm-table tbody tr + tr > td { display: flow-root; padding-left: 258px; }
  .cvm-table td::before { float: left; width: 216px; margin: 0 0 0 -240px; font-size: 13px; }
}

/* ── On a product page ── */
/* The product section is white, not tinted: the table, and below 1100 px each
   question's card, need an edge to stand off it. */
.product-comparison--virto-first .cvm-table-wrap { border: 1px solid #e6e9f5; text-align: left; }
.product-comparison--virto-first .product-comparison__subtitle { max-width: 780px; margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) {
  .product-comparison--virto-first .cvm-table-wrap { border: 0; }
  .product-comparison--virto-first .cvm-table tbody tr { border: 1px solid #e6e9f5; }
}
