/* Sharing (D-020): the digital frame card on a room's page and the postcard
   action on a drawing. The frame itself has its own sheet, frame.css. */

.frame-card h3 {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
}
.frame-new {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ok) 8%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line));
}
.frame-new p { margin: 0; }
.frame-new .invite-url code { user-select: all; -webkit-user-select: all; }
.frame-new button { justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; }
.frame-new button .icon { width: 1.1rem; height: 1.1rem; }
form.frame-row > span:first-of-type { display: grid; gap: 0.1rem; min-width: 0; }
form.frame-row .frame-row-label { overflow-wrap: anywhere; }
form.frame-row .muted { font-size: 0.82rem; }

/* The postcard action under a drawing in the room viewer: quiet, a label
   among labels, and big enough to tap. */
.room-viewer .exhibit-label .postcard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.room-viewer .exhibit-label .postcard-link:hover { color: var(--ink); background: var(--hover); }
.room-viewer .exhibit-label .postcard-link span { display: inline; margin: 0; color: inherit; font-size: inherit; }
.postcard-link .icon, [data-postcard] .icon { width: 1.1rem; height: 1.1rem; }
[data-postcard][aria-busy="true"] { opacity: 0.6; pointer-events: none; }
