/* Comparison pages (virlow-vs-*.html, compare.html): a two-column table of
   Virlow against one other app. Cells carry sentences, so they wrap; the
   table scrolls inside its own box on a phone rather than widening the
   page. */
.compare-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table thead th {
  background: var(--surface);
  font-size: 14px;
}
.compare-table tbody th {
  width: 22%;
  font-weight: 600;
}
.compare-table td {
  width: 39%;
  color: var(--muted);
}

/* On a phone the second app's column would sit off-screen behind a
   sideways scroll, so each row stacks instead: the topic, then each app's
   cell under its own name (data-label). */
@media (max-width: 640px) {
  .compare-table {
    min-width: 0;
  }
  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .compare-table tbody,
  .compare-table tr,
  .compare-table tbody th,
  .compare-table td {
    display: block;
    width: auto;
  }
  .compare-table tbody tr {
    border-bottom: 1px solid var(--border);
  }
  .compare-table tbody tr:last-child {
    border-bottom: 0;
  }
  .compare-table tbody th {
    padding: 14px 16px 4px;
    border-bottom: 0;
  }
  .compare-table td {
    padding: 6px 16px;
    border-bottom: 0;
  }
  .compare-table td:last-child {
    padding-bottom: 14px;
  }
  .compare-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
  }
}

/* The comparison and feature pages use the site's guide layout
   (ai-connections.css): a large intro, then sections with the heading on the
   left. These pieces span the full width of the site instead. */
.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.back-link::before {
  content: '\2190' / '';
  margin-right: 10px;
}
.back-link::after {
  content: none;
}
.guide-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.guide-intro .directory-row {
  margin-top: 32px;
}
.page-block {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
.block-heading {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.page-figure {
  margin: 0;
  padding: 0 0 52px;
}
.page-figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* Web app captures are drawn at their real 1280px on a wide window, as in
   styles.css, reaching past the column on each side. */
@media (min-width: 1376px) {
  .page-figure img.app-shot {
    width: 1280px;
    max-width: none;
    margin-inline: calc((100% - 1280px) / 2);
  }
}
.page-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
/* A capture narrower than the site (a phone, the connect screen, the
   memories list) is shown at its own size, centered, with its caption. */
.page-figure--fixed picture,
.page-figure--fixed figcaption {
  display: block;
  max-width: var(--draw);
  margin-inline: auto;
}
.page-figure--fixed img,
.phones img {
  border: 1px solid var(--border);
}
.phones {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.phones picture {
  flex: 0 1 var(--draw);
  min-width: 0;
}
.page-figure--phones figcaption {
  text-align: center;
}
.page-boundary {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 720px) {
  .page-block {
    padding: 36px 0;
  }
  .page-figure {
    padding-bottom: 36px;
  }
  .phones {
    gap: 12px;
  }
}
