/* The demo sticker page: a form, the printable sticker and the robots.json entry. */

.sticker-page {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 34em;
  margin: 0 auto;
  padding: 2em 1em 3em;
}

.sticker-head {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.sticker-head h1 {
  font-size: 1.7em;
  line-height: 1.1;
}

.example {
  font-weight: 600;
  white-space: nowrap;
}

.sticker-back a {
  color: var(--focus);
}

.field-note,
.sticker-empty {
  color: var(--ink-muted);
  font-weight: 400;
}

.sticker-form {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.sticker-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-weight: 600;
}

.sticker-form input {
  padding: 0.55em 0.7em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.sticker-error {
  padding: 0.5em 0.8em;
  border-left: 3px solid var(--bad);
  background: var(--surface);
}

.sticker-out {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9em;
}

.sticker-out h2 {
  font-size: 1.1em;
}

/* the sticker: honey frame, white code, model number underneath */
.sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  width: 14em;
  margin: 0;
  padding: 0.9em 0.9em 0.7em;
  border: 4px solid var(--honey);
  border-radius: 0.6em;
  background: #ffffff;
  color: #1c2a36;
}

.sticker-qr,
.sticker-qr svg {
  display: block;
  width: 100%;
}

.sticker figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  font-size: 0.85em;
  text-align: center;
}

.sticker-model {
  font-size: 1.4em;
  font-weight: 700;
}

.entry {
  width: 100%;
  margin: 0;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.85em;
}

@media print {
  body {
    background: #ffffff;
  }

  .sticker-head,
  .sticker-back,
  .sticker-form,
  .sticker-actions,
  .sticker-out h2,
  .entry,
  #copy {
    display: none !important;
  }

  .sticker-page {
    padding: 0;
  }
}
