/* The example row on the home page and its chat sheet (site/js/demo-row.js). Colours are the site's own tokens. */
.demoRow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 82%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0; list-style: none; }
.demoTile { scroll-snap-align: start; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 5px 0 var(--aqua); display: flex; flex-direction: column; gap: 10px; }
.demoName { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.15; }
.demoQs { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.demoQs button { width: 100%; min-height: 44px; padding: 9px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.demoQs button:hover { border-color: var(--teal); }
.demoQs button:focus-visible, .demoSheetClose:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.demoNote { margin: 8px 0 0; font-size: 15px; color: var(--ink2); }
@media (min-width: 960px) {
  .demoRow { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

.demoSheet { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: var(--paper); }
.demoSheet[hidden] { display: none; }
.demoSheetBar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; border-bottom: 2px solid var(--line); }
.demoSheetBar p { margin: 0; font-weight: 900; }
.demoSheetClose { width: 48px; height: 48px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.demoSheetFrame { flex: 1; width: 100%; border: 0; background: var(--paper); }
html.demoSheetOpen { overflow: hidden; }
html.demoSheetOpen #homeChat { visibility: hidden; }
@media (min-width: 720px) {
  .demoSheet { inset: auto 24px 24px auto; width: 400px; height: min(640px, calc(100vh - 48px)); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 0 var(--aqua); }
  html.demoSheetOpen { overflow: auto; }
}
