/* Comparison Chart (Vertical) 1.1.0. Scoped to .vcc. Colors, display font and corner radii come from
   Settings > Comparison Chart and are printed as --vcc-* variables after this file;
   the values below are only fallbacks. */
.vcc {
  container-type: inline-size;
  display: grid;
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin: 32px auto;
  color: var(--vcc-ink, #1f2937);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
.vcc *, .vcc *::before, .vcc *::after { box-sizing: border-box; }
.vcc__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Card: content column + price column */
.vcc__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 212px;
  background: var(--vcc-card, #fff);
  border: 1px solid var(--vcc-line, #e5e7eb);
  border-radius: var(--vcc-radius, 12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.vcc__main { min-width: 0; padding: 22px 24px 0; display: flex; flex-direction: column; }

/* Header */
.vcc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.vcc__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vcc__logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; }
.vcc .vcc__logo-img { display: block; width: 52px; height: 52px; max-width: 52px; margin: 0; object-fit: contain; border-radius: 8px; }
.vcc__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vcc__rank { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--vcc-rank-bg, #1f2937); color: var(--vcc-rank-ink, #fff); font-size: 13px; font-weight: 700; line-height: 1; }
.vcc__name { font-family: var(--vcc-heading-font, inherit); font-size: 22px; font-weight: var(--vcc-heading-weight, 700); line-height: 1.2; letter-spacing: 0; color: var(--vcc-ink, #1f2937); overflow-wrap: anywhere; }
.vcc__badge { flex: 0 0 auto; margin-left: auto; padding: 5px 13px; border-radius: var(--vcc-badge-radius, 999px); background: var(--vcc-accent-bg, #eef2ff); color: var(--vcc-accent-ink, #3730a3); font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; }

/* Summary */
.vcc .vcc__summary { margin: 16px 0 0; padding: 0; font-size: 16px; line-height: 1.65; color: var(--vcc-ink, #1f2937); }
.vcc__summary a { color: var(--vcc-link, #2563eb); text-decoration: underline; text-underline-offset: 2px; }

/* Pros/cons + score */
.vcc__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin: 18px 0 22px; }
.vcc__body--no-score { grid-template-columns: minmax(0, 1fr); }
.vcc .vcc__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.vcc .vcc__point { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; font-size: 15px; line-height: 1.45; color: var(--vcc-ink, #1f2937); }
.vcc .vcc__point::before, .vcc .vcc__point::marker { content: none; }
.vcc__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 0; }
.vcc__point--pro .vcc__icon { color: var(--vcc-pro, #16a34a); }
.vcc__point--con .vcc__icon { color: var(--vcc-con, #dc2626); }
.vcc__point--pro + .vcc__point--con { margin-top: 6px; }
/* Fallback: features HTML from an EP-style chart item */
.vcc .vcc__points--legacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.vcc .vcc__points--legacy li { position: relative; margin: 0; padding-left: 30px; font-size: 15px; line-height: 1.45; }
.vcc .vcc__points--legacy li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--vcc-pro, #16a34a); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='m8 12.4 2.6 2.6L16.2 9.4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='m8 12.4 2.6 2.6L16.2 9.4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.vcc .vcc__points--legacy p { margin: 0 0 8px; }

.vcc__score { display: flex; align-items: center; gap: 14px; justify-self: end; padding-right: 4px; }
.vcc__score-num { display: inline-flex; align-items: baseline; justify-content: center; min-width: 90px; padding: 16px 14px; border-radius: var(--vcc-radius, 12px); background: var(--vcc-accent-bg, #eef2ff); color: var(--vcc-accent-ink, #3730a3); font-family: var(--vcc-heading-font, inherit); font-size: 36px; font-weight: var(--vcc-heading-weight, 700); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vcc__score-num small { margin-left: 2px; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; opacity: 0.75; }
.vcc__score-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.vcc__score-link { font-size: 15px; font-weight: 600; color: var(--vcc-accent-ink, #3730a3); }
.vcc a.vcc__score-link { color: var(--vcc-link, #2563eb); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vcc a.vcc__score-link:hover, .vcc a.vcc__score-link:focus { color: var(--vcc-link-hover, #1d4ed8); }
.vcc__verdict { font-size: 15px; color: var(--vcc-accent-ink, #3730a3); }

/* Key facts strip */
.vcc .vcc__specs { display: grid; grid-template-columns: repeat(var(--vcc-spec-cols, 4), minmax(0, 1fr)); gap: 12px 18px; margin: auto -24px 0; padding: 16px 24px 18px; border-top: 1px solid var(--vcc-line, #e5e7eb); }
.vcc__body:last-child, .vcc__summary:last-child { margin-bottom: 22px; }
.vcc__spec { min-width: 0; }
.vcc .vcc__spec dt { margin: 0; font-size: 13px; font-weight: 400; color: var(--vcc-muted, #6b7280); line-height: 1.35; }
.vcc .vcc__spec dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--vcc-ink, #1f2937); line-height: 1.35; overflow-wrap: anywhere; }

/* Price column */
.vcc__side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 18px; border-left: 1px solid var(--vcc-line, #e5e7eb); background: var(--vcc-side, #f9fafb); text-align: center; }
.vcc__offer, .vcc__actions { display: flex; flex-direction: column; align-items: center; width: 100%; }
.vcc__plan { font-size: 15px; font-weight: 600; color: var(--vcc-ink, #1f2937); line-height: 1.3; }
.vcc__plan-note { margin-top: 2px; font-size: 13px; color: var(--vcc-muted, #6b7280); }
.vcc__price { margin-top: 10px; font-family: var(--vcc-heading-font, inherit); font-size: 32px; font-weight: var(--vcc-heading-weight, 700); line-height: 1.05; letter-spacing: -0.02em; color: var(--vcc-ink, #1f2937); font-variant-numeric: tabular-nums; }
.vcc__offer > .vcc__price:first-child { margin-top: 0; }
.vcc__price-note { margin-top: 4px; font-size: 13px; color: var(--vcc-muted, #6b7280); line-height: 1.35; }
.vcc .vcc__pricing-text { font-size: 14px; line-height: 1.45; color: var(--vcc-ink, #1f2937); }
.vcc .vcc__pricing-text p { margin: 0 0 4px; }
.vcc .vcc__pricing-text p:last-child { margin-bottom: 0; }
.vcc a.vcc__cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 190px; min-height: 46px; margin: 0; padding: 11px 18px; border: 0; border-radius: var(--vcc-btn-radius, 8px); background: var(--vcc-cta, #2563eb); color: var(--vcc-cta-ink, #fff); font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; box-shadow: none; transition: background-color 0.25s ease-out, color 0.25s ease-out; }
.vcc a.vcc__cta:hover, .vcc a.vcc__cta:focus { background: var(--vcc-cta-hover, #1d4ed8); color: var(--vcc-cta-ink-hover, #fff); text-decoration: none; }
.vcc a.vcc__cta:focus-visible, .vcc a.vcc__link:focus-visible, .vcc a.vcc__score-link:focus-visible { outline: 2px solid var(--vcc-ink, #1f2937); outline-offset: 3px; }
.vcc__cta-note { margin-top: 8px; font-size: 13px; color: var(--vcc-muted, #6b7280); }
.vcc a.vcc__link { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--vcc-link, #2563eb); text-decoration: underline; text-underline-offset: 3px; }
.vcc a.vcc__link:hover, .vcc a.vcc__link:focus { color: var(--vcc-link-hover, #1d4ed8); }

/* Medium article columns (about 560-760px): score above the pros, narrower price column */
@container (max-width: 760px) {
  .vcc__card { grid-template-columns: minmax(0, 1fr) 188px; }
  .vcc__main { padding: 20px 20px 0; }
  .vcc .vcc__specs { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .vcc .vcc__specs--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcc__body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vcc__score { order: -1; justify-self: start; padding-right: 0; }
  .vcc__score-num { min-width: 80px; padding: 12px; font-size: 30px; }
  .vcc__side { padding: 22px 14px; }
  .vcc__price { font-size: 30px; }
}

/* Narrow: price column moves under the content */
@container (max-width: 560px) {
  .vcc__card { grid-template-columns: minmax(0, 1fr); }
  .vcc__side { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-left: 0; border-top: 1px solid var(--vcc-line, #e5e7eb); text-align: left; }
  .vcc__offer { align-items: flex-start; width: auto; min-width: 0; }
  .vcc__actions { width: auto; flex: 0 0 auto; }
  .vcc a.vcc__cta { width: auto; min-width: 160px; }
}

/* Phones */
@container (max-width: 440px) {
  .vcc__main { padding: 18px 16px 0; }
  .vcc__name { font-size: 20px; }
  .vcc__logo, .vcc .vcc__logo-img { width: 44px; height: 44px; max-width: 44px; }
  .vcc__badge { margin-left: 0; font-size: 12px; padding: 5px 12px; white-space: normal; }
  .vcc .vcc__summary { font-size: 15px; }
  .vcc .vcc__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: -16px; margin-right: -16px; padding: 14px 16px 16px; }
  .vcc__side { flex-direction: column; align-items: stretch; padding: 18px 16px; text-align: center; }
  .vcc__offer, .vcc__actions { align-items: center; width: 100%; }
  .vcc a.vcc__cta { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) { .vcc a.vcc__cta { transition: none; } }
@media print { .vcc__card { break-inside: avoid; box-shadow: none; } }
