/* LiquiLens pages for AI programmes: tables, notes and the four-card grid, on the family record edition.
   Family tokens only. No motion: nothing here animates. */

.ai-table {
  margin: 0 0 28px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ai-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
}

.ai-table caption {
  padding: 0 0 12px;
  text-align: left;
  font-size: 12.5px;
  color: var(--research-muted);
}

.ai-table th,
.ai-table td {
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--research-line);
  text-align: left;
  vertical-align: top;
}

.ai-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--research-muted);
}

.ai-table tbody th {
  width: 26%;
  font-weight: 500;
  color: var(--research-text);
}

.ai-table td {
  color: var(--research-muted);
}

.ai-table code {
  font-family: var(--research-code);
  overflow-wrap: anywhere;
}

.ai-table a,
.ai-boundary a {
  color: var(--research-accent);
}

.ai-muted {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--research-muted);
}

.ai-boundary {
  max-width: 68ch;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--research-accent);
  font-size: 14px;
  line-height: 1.6;
  color: var(--research-text);
}

.ai-facts dd {
  font-family: var(--research-font);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .ai-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-grid--four article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .ai-grid--four {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-table table {
    min-width: 520px;
  }
}

.ai-step {
  min-width: 0;
}

.ai-step .pf-code {
  margin: 14px 0 0;
}

/* Buttons keep their own colours inside a lab hero, whose plain links take the accent. */
.pf-lab a.pf-button {
  color: var(--research-text);
}

.pf-lab a.pf-button--solid {
  color: #000;
}
