/* Live demos on the QR Code Generation page. Scoped to .hcert-demo. */
.hcert-demo {
  --hd-line: #c9d3dd;
  --hd-tint: #f4f7fa;
  --hd-ink: #1f2933;
  --hd-muted: #52606d;
  --hd-accent: #0b5cad;
  --hd-ok: #1e7b34;
  --hd-bad: #b3261e;
  border: 1px solid var(--hd-line);
  border-left: 4px solid var(--hd-accent);
  border-radius: 6px;
  margin: 1em 0 1.5em;
  background: #fff;
  color: var(--hd-ink);
  max-width: 100%;
}
.hcert-demo .hd-head {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hd-accent);
  padding: 0.5em 0.9em;
  border-bottom: 1px solid var(--hd-line);
  background: var(--hd-tint);
}
.hcert-demo .hd-body { padding: 0.6em 0.9em 0.8em; }
.hcert-demo .hd-field { margin: 0.6em 0; }
.hcert-demo .hd-label { font-size: 0.85em; color: var(--hd-muted); margin-bottom: 0.2em; }
.hcert-demo .hd-code {
  margin: 0;
  padding: 0.5em 0.7em;
  background: var(--hd-tint);
  border: 1px solid var(--hd-line);
  border-radius: 4px;
  font-size: 0.8em;
  line-height: 1.4;
  max-height: 22em;
  overflow: auto;
  white-space: pre;
}
.hcert-demo .hd-hex, .hcert-demo .hd-wrap { white-space: pre-wrap; word-break: break-all; }
.hcert-demo .hd-edit {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.5em;
  border: 1px solid var(--hd-line);
  border-radius: 4px;
}
.hcert-demo .hd-row { display: flex; flex-wrap: wrap; gap: 0.6em; align-items: center; margin: 0.5em 0; }
.hcert-demo .hd-inline { display: inline-flex; gap: 0.4em; align-items: center; font-size: 0.9em; }
.hcert-demo .hd-inline input { width: 9em; padding: 0.2em 0.3em; }
.hcert-demo select { padding: 0.25em; max-width: 100%; }
.hcert-demo .hd-button {
  background: var(--hd-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.4em 0.9em;
  cursor: pointer;
}
.hcert-demo .hd-button:disabled { opacity: 0.6; cursor: progress; }
.hcert-demo .hd-link {
  background: none;
  border: 0;
  color: var(--hd-accent);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2em 0;
  font-size: 0.9em;
}
.hcert-demo .hd-note { font-size: 0.88em; color: var(--hd-muted); margin: 0.5em 0; }
.hcert-demo .hd-status { font-size: 0.85em; color: var(--hd-bad); min-height: 1.2em; }
.hcert-demo .hd-issues { color: var(--hd-bad); font-size: 0.9em; }
.hcert-demo .hd-table { border-collapse: collapse; font-size: 0.9em; margin: 0.4em 0; display: block; max-width: 100%; overflow-x: auto; }
.hcert-demo .hd-table th, .hcert-demo .hd-table td { border: 1px solid var(--hd-line); padding: 0.25em 0.6em; text-align: left; }
.hcert-demo .hd-selected { background: #e6f0fa; font-weight: 600; }
.hcert-demo .hd-verdict { padding: 0.5em 0.7em; border-radius: 4px; margin: 0.6em 0; font-weight: 600; }
.hcert-demo .hd-ok { background: #e7f4ea; color: var(--hd-ok); }
.hcert-demo .hd-bad { background: #fbeae9; color: var(--hd-bad); }
.hcert-demo .hd-steps { list-style: none; padding: 0; margin: 0.4em 0; font-size: 0.9em; }
.hcert-demo .hd-steps li { padding: 0.1em 0; }
.hcert-demo .hd-mark { display: inline-block; width: 1.2em; font-weight: 700; }
.hcert-demo .hd-pass .hd-mark { color: var(--hd-ok); }
.hcert-demo .hd-fail { color: var(--hd-bad); font-weight: 600; }
.hcert-demo .hd-skip { color: var(--hd-muted); }
.hcert-demo .hd-detail { font-weight: 400; }
.hcert-demo .hd-short { max-height: 8em; }
.hcert-demo .hd-qr { display: block; max-width: 100%; height: auto; background: #fff; shape-rendering: crispEdges; image-rendering: pixelated; }
