/* Guides and the demo page (2026-11-10). Loaded only by those pages. Tokens come from styles.css. */

/* Demo box inside articles and on the guides hub */

.demo-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}

.page-body > .demo-box { margin-top: 3.5rem; }

.demo-box img { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--white); }

.demo-box p { margin: 0; color: #c7d0dd; font-size: 1rem; }

.demo-box .demo-box-title { color: var(--white); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }

.demo-box .pill { background: var(--white); color: var(--ink); white-space: nowrap; }

.demo-box .pill:hover { background: var(--tint); }

.demo-box :focus-visible { outline-color: var(--white); }

/* Sample chat in an article */

.prose .convo { display: grid; gap: 0.6rem; margin-top: 1.25rem; padding: 1.25rem; border-radius: 16px; background: var(--paper); }

.prose .convo p { max-width: 85%; margin: 0; padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 1rem; }

.prose .convo .you { justify-self: end; background: var(--ink); color: var(--white); }

.prose .convo .bani { justify-self: start; background: var(--white); border: 1px solid var(--line); }

/* Keep reading */

.keep-reading { margin-top: 4.5rem; }

.card-list-3 { grid-template-columns: repeat(3, 1fr); }

/* Demo page */

.booking { border-radius: 20px; background: var(--paper); padding: 0.75rem; }

.booking-frame { display: block; width: 100%; height: 760px; border: 0; border-radius: 14px; background: var(--white); }

.booking-fallback { margin-top: 0.75rem; padding-inline: 0.5rem; color: var(--muted); font-size: 1rem; }

.booking-fallback a { color: var(--ink); text-underline-offset: 0.2em; }

.demo-more { margin-top: 4.5rem; }

@media (max-width: 60rem) {
  .card-list-3 { grid-template-columns: 1fr; }
  .booking-frame { height: 1180px; }
}

@media (max-width: 36rem) {
  .demo-box { grid-template-columns: 1fr; justify-items: start; }
  .demo-box img { display: none; }
  .booking { padding: 0.4rem; border-radius: 16px; }
}

/* "What can you ask" tables: the same three columns on every table in the article. */
.ask-table { table-layout: fixed; }
.ask-table thead th:first-child { width: 36%; }
.ask-table thead th:last-child { width: 18%; }
