/* vastuunjakotaulukko table artifact (B1 battle 2026-07-31).
 * The table lives inside a marker-mode svc-prose band on
 * /asuntoriidat/taloyhtion-vastuunjakotaulukko; the band's 38rem
 * centered measure is right for prose but not for a reference table,
 * so the band widens when it carries the table. Print rules make the
 * table a standalone printable artifact (the SERP winner class is a
 * table/PDF artifact, not prose). */

.svc-prose-inner:has(> .vjt-wrap) {
  max-width: 60rem;
  text-align: left;
}
.svc-prose-inner:has(> .vjt-wrap) h2 { text-align: center; }

.vjt-wrap { overflow-x: auto; margin: 1.5rem 0 0.5rem; }

.vjt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
  line-height: 1.45;
}
.vjt-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--ll-font-heading);
  font-size: 1.15rem;
  padding: 0.6rem 0.75rem;
}
.vjt-table th, .vjt-table td {
  border: 1px solid var(--ll-beige);
  padding: 0.55rem 0.75rem;
  vertical-align: top;
  text-align: left;
}
.vjt-table thead th {
  background: var(--ll-green);
  color: #fff;
  font-weight: 600;
}
.vjt-table th[scope="rowgroup"] {
  background: var(--ll-gray);
  font-family: var(--ll-font-heading);
  font-weight: 600;
}
.vjt-table td.vjt-mark {
  text-align: center;
  width: 5.5rem;
  font-weight: 600;
  white-space: nowrap;
}
.vjt-table tbody tr:nth-child(even) td { background: var(--ll-bg); }
.vjt-note { font-size: 0.9rem; margin-top: 0.75rem; }
/* print button = the site pill button (owner rule 2026-07-31: every
   button/interactive element uses the page's own brand components,
   never browser-default chrome; values mirror
   .svc-prose-inner .pill-row > a in service.css) */
.vjt-print-row { margin: 1rem 0 0; }
.vjt-print-row button {
  display: inline-block;
  border: 1px solid var(--ll-green); border-radius: 999px;
  color: var(--ll-green); background: transparent;
  font: inherit; line-height: var(--ll-lh-ui);
  padding: 0.74rem 2.5rem;
  cursor: pointer;
}
.vjt-print-row button:hover {
  background: var(--ll-green); color: #fff;
}

/* narrow screens: all three columns stay visible — the yhtiö/osakas
   marks are the answer, they must not scroll out of view */
@media (max-width: 767px) {
  .vjt-table { font-size: 0.9rem; }
  .vjt-table th, .vjt-table td { padding: 0.45rem 0.5rem; }
  .vjt-table td.vjt-mark { width: 3.2rem; }
}

/* print: the page becomes the table artifact — chrome, bands, CTAs,
   FAQ and photos drop; the table prints whole with its source line */
@media print {
  body:has(.vjt-table) header,
  body:has(.vjt-table) .contact-strip,
  body:has(.vjt-table) .header-main,
  body:has(.vjt-table) nav,
  body:has(.vjt-table) footer,
  body:has(.vjt-table) .svc-hero-img,
  body:has(.vjt-table) .svc-steps,
  body:has(.vjt-table) .svc-split,
  body:has(.vjt-table) .faq,
  body:has(.vjt-table) .pill-row,
  body:has(.vjt-table) .vjt-print-row,
  body:has(.vjt-table) .svc-articles,
  body:has(.vjt-table) .latest-articles,
  body:has(.vjt-table) .cta,
  body:has(.vjt-table) .badge-band,
  body:has(.vjt-table) .svc-prose.svc-bg--b1 { display: none !important; }
  .vjt-wrap { overflow: visible; }
  .vjt-table { min-width: 0; font-size: 9pt; }
  .vjt-table th, .vjt-table td { border-color: #999; padding: 3pt 5pt; }
  .vjt-table thead th { color: #000; background: #eee; }
  .vjt-table tr { break-inside: avoid; }
}
