/* The public preview (docs/try-first.md): the ribbon across the top and the soft-lock cards.
   Everything here only applies with html.preview (set by preview-app.js). */

/* The ribbon sits in a strip above the top bar: the app's safe-area top grows by its height,
   so the top bar, the stage header and the sheets all move down to make room. */
html.preview { --pv-ribbon-h: 30px; --sat: calc(env(safe-area-inset-top, 0px) + var(--pv-ribbon-h)); }
.pv-ribbon {
  position: fixed; left: 0; right: 0; top: 0; z-index: 900;
  height: calc(env(safe-area-inset-top, 0px) + var(--pv-ribbon-h, 30px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--accent); color: var(--accent-text, #fff);
  font-size: 13px; line-height: 1; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
}
.pv-ribbon span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pv-ribbon b { font-weight: 800; }
.pv-ribbon-go {
  flex: none; color: inherit; font-weight: 800; text-decoration: none;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
}
.pv-ribbon-go:active { filter: brightness(0.9); }
.pv-ribbon-switch { flex: none; color: inherit; font: inherit; font-weight: 700; opacity: 0.92; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* Town, when your first day is done (preview-app.js previewWallHTML). */
.pv-wall { padding: 16px 16px 14px; border: 2px solid color-mix(in srgb, var(--accent2) 60%, transparent); }
.pv-wall-k { font-weight: 850; font-size: 17px; margin-bottom: 4px; }
.pv-wall p { margin: 0 0 12px; color: var(--text-soft, var(--muted)); font-size: 15px; line-height: 1.4; }
.pv-wall-acts { display: grid; gap: 8px; }
@media (max-width: 400px) {
  .pv-ribbon { font-size: 12px; gap: 8px; padding-left: 8px; padding-right: 8px; letter-spacing: -0.01em; }
  .pv-ribbon-go { padding: 3px 8px; }
}

/* A soft lock: a small friendly card, never a wall. */
.pv-lock {
  margin: 12px auto; max-width: 420px; padding: 18px 18px 16px;
  border-radius: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
}
.pv-lock-ic { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.pv-lock-k { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.pv-lock-line { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.pv-lock .pv-plans { display: grid; place-items: center; width: 100%; text-decoration: none; }
.pv-lock .pv-back { margin-top: 8px; }
.pv-lock.in-modal { margin: 4px 0 6px; padding: 12px 14px; }
.pv-lock.in-modal .pv-lock-line { margin: 0; }
.pv-lock-step { padding: 18px 16px; text-align: center; }
.pv-lock-step h2 { margin: 4px 0 8px; }

/* Town, three weeks in: the tour of every kind of question. */
.pv-tour { display: flex; align-items: center; gap: 12px; width: auto; padding: 14px 16px; text-align: left; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pv-tour-ic { font-size: 26px; line-height: 1; }
.pv-tour-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-tour-t b { font-size: 16px; }
.pv-tour-t small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.pv-tour-go { font-size: 24px; color: var(--muted); }
