/* The demos in the site's look: loaded after look.css. The demos keep their full-screen
   3D, so their top bar floats over it (no solid bar or rule), and the cards and buttons
   follow the day and night colours. */

.topbar {
  background: none;
  border-bottom: 0;
  padding-bottom: 0;
}
.stage::after {        /* the soft fade behind the top bar, in the page's colour */
  height: calc(env(safe-area-inset-top, 0px) + 190px) !important;
  background: linear-gradient(color-mix(in srgb, var(--bg) 88%, transparent) 35%, color-mix(in srgb, var(--bg) 0%, transparent)) !important;
}

.back { color: var(--soft); }
.tagline { color: var(--soft); }
.back .mark { opacity: 1; }
.product-name, .topbar .name { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }

/* Cards: nearly square, in the surface colour. */
.panel, .card, .intro, .sheet, .book, .contact { border-radius: 4px !important; }
.panel { background: color-mix(in srgb, var(--surface) 95%, transparent) !important; }

/* Main actions in the accent. */
.next, .btn.primary {
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
}
.next:hover, .btn.primary:hover { background: var(--accent); filter: brightness(1.06); }
.pill { border-radius: 3px; }

/* The lightbulb sits with the top bar's actions. */
.topbar .bulb { flex: none; margin: -6px -8px -6px 0; }

/* What the demo shows: a small note under the name that opens on a tap. */
.demo-about {
  pointer-events: auto;
  margin-top: 8px;
  max-width: 320px;
  font-size: 13px;
  color: var(--muted);
}
.demo-about summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.demo-about summary::-webkit-details-marker { display: none; }
.demo-about summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.demo-about[open] summary::before { transform: rotate(45deg); }
.demo-about summary:hover { color: var(--text); }
.demo-about ul {
  margin: 8px 0 0;
  padding: 10px 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--soft);
  line-height: 1.45;
}
.demo-about li + li { margin-top: 6px; }
.demo-about b { color: var(--text); font-weight: 600; }

.top-right { pointer-events: auto; display: flex; align-items: center; gap: 6px; }
.top-right:has(.hint) { flex-direction: column; align-items: flex-end; gap: 0; }
.top-right .hint { margin-top: 2px; }
