/* Demo site only. */
.demo-ribbon { position: fixed; z-index: 60; inset-block-start: 10px; inset-inline-start: 50%; transform: translateX(50%);
  pointer-events: none; }
[dir="ltr"] .demo-ribbon { transform: translateX(-50%); }
.demo-ribbon b { display: inline-block; background: var(--sand, #ECE3CA); color: var(--ink, #1d2b24); font-size: 12.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.08); letter-spacing: .02em; }
.demo-note { margin: 0 0 14px; }
.demo-grid { display: grid; gap: 12px; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; } }
.demo-where { display: grid; gap: 12px; }
.demo-where label { display: grid; gap: 6px; }
.demo-lbl { font-size: 13.5px; color: var(--ink-2); }
.demo-where select, .demo-q { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line, #d9e0dc); background: var(--surface, #fff);
  padding: 8px 12px; font: inherit; color: inherit; }
.demo-q { margin: 12px 0 6px; }
.demo-list { display: grid; gap: 2px; max-height: 60vh; overflow: auto; margin-inline: -6px; padding-inline: 6px; }
.demo-course { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-soft, #eef1ef); padding: 10px 4px; cursor: pointer; font: inherit; color: inherit; border-radius: 10px;
  transition: background .18s var(--ease, ease); }
.demo-course:hover { background: var(--marble, #f1f4f2); }
.demo-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line, #c9d3cd); display: grid; place-items: center;
  transition: background .18s var(--ease, ease), border-color .18s var(--ease, ease); }
.demo-box .ic { width: 15px; height: 15px; }
.demo-course[aria-pressed="true"] .demo-box { background: var(--green, #1f6b4a); border-color: var(--green, #1f6b4a); color: #fff; }
.demo-txt { display: grid; gap: 2px; min-width: 0; }
.demo-txt small { color: var(--ink-2); font-size: 12.5px; }
.demo-dock { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-sum { font-size: 14px; color: var(--ink-2); }
@media (max-width: 1023px) {
  .demo-list { max-height: none; overflow: visible; }
  .demo-sum { display: none; }
}
.demo-courses .demo-course { cursor: default; }
.demo-courses .demo-course:hover { background: transparent; }
/* Wide screens: the side rail sits beside the page, so the major page's button bar stays in the
   page column instead of a full-width fixed bar (which faded over the rail's bottom). */
@media (min-width: 1024px) {
  .demo-courses .dock { position: sticky; inset-inline: auto; bottom: 0; padding: 10px 0 2px; background: linear-gradient(to top, var(--surface) 75%, transparent); }
}
