/* ============================================================
   MaLuce — comparison pages (/vs/...)
   Layers on top of styles.css, legal.css and blog.css.
   ============================================================ */

/* "Prices checked on" line under the title */
.legal-hero .vs-checked {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.3px;
}

/* Screen-reader-only label (same rule as index.html) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Wide tables scroll inside their own frame on a phone, never the page.
   position: relative keeps the hidden label inside the frame. */
.vs-table-wrap {
  position: relative;
  overflow-x: auto;
  margin: 0 0 12px;
  -webkit-overflow-scrolling: touch;
}
.vs-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vs-table-wrap table { margin: 0; min-width: 560px; }
.vs-table-wrap caption {
  /* Stays readable on a phone while the table scrolls under it */
  position: sticky;
  left: 0;
  max-width: calc(100vw - 48px);
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 0 10px;
}
.vs-table-wrap tbody th { width: 26%; }
.vs-table-wrap td,
.vs-table-wrap th { vertical-align: top; }

.vs-table-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* Worked cost example */
.vs-example {
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 24px;
}
.vs-example p:last-child,
.vs-example ul:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .vs-example { padding: 18px 18px; }
}
