/* The preview note, opened from the account control in the bar and from About,
   Disclaimer and Privacy in the footer.

   Framed like Help — same card, same sticky header, same scrolling panel — for
   the same reason Help is framed like the dictionary: they are the same kind of
   surface, and modals that framed themselves differently would read as
   different applications. Prose, so it keeps Help's narrower measure. */

.preview {
  width: min(38rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 3rem));
  padding: 0;
  border: 1px solid var(--colour-border);
  border-radius: 12px;
  background: var(--colour-shell);
  color: var(--colour-text);
  box-shadow: 0 18px 48px rgb(0 0 0 / 24%);
  overflow: hidden;
}

.preview::backdrop {
  background: rgb(26 26 25 / 45%);
}

.preview__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: inherit;
  padding: 0 1.25rem 1.25rem;
  overflow: auto;
}

/* As in help.css, and for the same reasons. */
.preview__logo {
  align-self: center;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

.preview__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 -1.25rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--colour-border-soft);
  background: var(--colour-shell);
}

.preview__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.preview__close {
  margin-left: auto;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--colour-border);
  border-radius: 50%;
  background: var(--colour-surface);
  color: var(--colour-text-muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.preview__close:hover {
  border-color: var(--colour-accent);
  color: var(--colour-accent-ink);
}

.preview__close:focus-visible {
  outline: 2px solid var(--colour-accent);
  outline-offset: 2px;
}

.preview__section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.preview__heading {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--colour-text-muted);
}

.preview__section p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 60ch;
}
