/* Captions carry evidence boundaries throughout the product site. Keep them
   readable as editorial copy instead of shrinking them into decorative
   metadata. Page-specific color treatments remain intact. */
main figcaption {
  font-size: .875rem !important;
  line-height: 1.55;
}

/* Fast routes combine Proxmox-style product findability with VMBook's
   evidence-first hierarchy. The full card is a single, generous target. */
.entry-routes {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.entry-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.entry-route-grid a {
  min-width: 0;
  padding: 32px 34px 34px;
  border-right: 1px solid var(--line);
  transition: background-color .2s ease;
}
.entry-route-grid a:first-child { border-left: 1px solid var(--line); }
.entry-route-grid a:hover,
.entry-route-grid a:focus-visible { background: #f3f6fc; }
.entry-route-grid span,
.entry-route-grid strong,
.entry-route-grid small { display: block; }
.entry-route-grid span {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.entry-route-grid strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}
.entry-route-grid small {
  margin-top: 9px;
  color: #58647b;
  font-size: .875rem;
  line-height: 1.55;
}

/* Shared guardrails for editorial pages. A layout class must not cancel the
   horizontal auto margins supplied by .wrap. */
.wrap.editorial-pair,
.wrap.content-split,
.wrap.editorial-split {
  margin-left: auto;
  margin-right: auto;
}

/* Pages with a dedicated matrix component replace tables with cards. This is
   the safe fallback for older editorial tables: scroll the data locally rather
   than widening or scaling the entire mobile document. */
.section-index {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.section-index a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #26344f;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.section-index a:hover,
.section-index a:focus-visible {
  border-color: #3157d5;
  color: #214bc4;
}

/* Keep in-page headings visible below the sticky global navigation. */
main section[id] {
  scroll-margin-top: 100px;
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 60px;
  align-items: center;
}

.docs-hero-grid figure,
.docs-home-evidence {
  margin: 0;
}

.docs-hero-grid figure img,
.docs-home-evidence img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.docs-hero-grid figcaption,
.docs-home-evidence figcaption {
  margin-top: 9px;
  color: #5b6780;
  font-size: .78rem;
}

.docs-home-evidence {
  margin-top: 58px;
  margin-bottom: 10px;
}

.perf-evidence {
  margin: 72px 0;
}

.perf-evidence img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.perf-evidence figcaption {
  max-width: 850px;
  margin-top: 10px;
  color: #5b6780;
  font-size: .8rem;
}

.compat-evidence {
  margin: 64px 0;
}

.compat-evidence img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.compat-evidence figcaption {
  max-width: 880px;
  margin-top: 10px;
  color: #5b6780;
  font-size: .8rem;
}

.source-boundary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 50px;
}

.source-boundary article {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  background: #f8faff;
}

.source-boundary b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.source-boundary p {
  margin: 0;
  font-size: .9rem;
}

@media (max-width: 800px) {
  /* Put the real interface directly after the home-page promise on phones. */
  .enterprise-hero .hero-grid {
    display: grid;
    gap: 0;
  }
  .enterprise-hero .hero-copy {
    display: contents;
  }
  .enterprise-hero .hero-copy .eyebrow { order: 1; }
  .enterprise-hero .hero-copy h1 { order: 2; }
  .enterprise-hero .hero-product-shot {
    order: 3;
    margin-top: 76px;
    margin-bottom: 28px;
  }
  .enterprise-hero .hero-product-shot figcaption {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(213, 221, 234, .9);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(18, 31, 61, .09);
  }
  .enterprise-hero .hero-copy .lede { order: 4; }
  .enterprise-hero .hero-copy .actions { order: 5; }
  .enterprise-hero .hero-copy .ticks { order: 6; }

  .entry-route-grid { grid-template-columns: 1fr; }
  .entry-route-grid a,
  .entry-route-grid a:first-child {
    padding: 25px 20px 27px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .entry-route-grid a:last-child { border-bottom: 0; }
  .entry-route-grid span { margin-bottom: 9px; }

  .source-boundary {
    grid-template-columns: 1fr;
  }
  .docs-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .comparison-evidence,
  .provider-flow,
  .qk-lab,
  .measure-grid,
  .numa-map,
  .passthrough-choices,
  .migration-example,
  .backup-evidence,
  .backup-boundary,
  .whpx-check,
  .whpx-layers,
  .hwv-cost,
  .hwv-checks,
  .translation-walk,
  .group-lab,
  .dma-flow,
  .migration-rounds,
  .ha-incident {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .comparison-evidence > *,
  .provider-flow > *,
  .qk-lab > *,
  .measure-grid > *,
  .numa-map > *,
  .passthrough-choices > *,
  .migration-example > *,
  .backup-evidence > *,
  .backup-boundary > *,
  .whpx-check > *,
  .whpx-layers > *,
  .hwv-cost > *,
  .hwv-checks > *,
  .translation-walk > *,
  .group-lab > *,
  .dma-flow > *,
  .migration-rounds > *,
  .ha-incident > * {
    min-width: 0;
    max-width: 100%;
  }

  .docs-layout,
  .docs-layout > *,
  .docs-sidebar,
  .docs-article,
  .docs-article > *,
  .table-scroll,
  .comparison-ledger,
  .comparison-ledger > * {
    min-width: 0;
    max-width: 100%;
  }

  .docs-sidebar {
    width: 100%;
  }

  .docs-article pre,
  .docs-article .endpoint-heading,
  .docs-article .endpoint-list,
  .table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .docs-article table,
  .download-page .compare-table,
  main:not(.comparison-page) > .prose .compare-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-ledger {
    max-width: 100vw;
    overflow: hidden;
  }

  .passthrough-choices,
  .migration-example {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .prose > section > table,
  main > section.wrap > table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  pre,
  .endpoint-heading,
  .endpoint-list a,
  .process-rail,
  .migration-safe,
  .hierarchy {
    min-width: 0;
    max-width: 100%;
  }

  :not(pre) > code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
