@font-face {
  font-family: 'PmxSignature';
  src: url('/fonts/signature.woff2') format('woff2');
  font-display: block;
}

/* ID card: portrait CR80 proportions (54 x 85.6 mm). Light so it prints well. */
.pmx-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.pmx-card {
  --ink: #12151c;
  --ink-soft: #5b6475;
  --paper: #fbfaf6;
  --gold: #c9a24e;
  --sig: #1d2f6f;
  width: 300px; height: 476px; flex-shrink: 0;
  border-radius: 16px; overflow: hidden; position: relative;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  display: flex; flex-direction: column;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.pmx-card * { box-sizing: border-box; }

.pmx-band {
  background: linear-gradient(135deg, #0b0d12 0%, #171b24 100%);
  color: #fff; padding: 14px 16px 12px; display: flex; align-items: center; gap: 10px;
  border-bottom: 3px solid var(--gold);
}
.pmx-band img { width: 30px; height: 30px; }
.pmx-band .brand { font-weight: 800; letter-spacing: .06em; font-size: 14px; line-height: 1.1; }
.pmx-band .brand span { color: var(--gold); }
.pmx-band .kind { font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; color: #aab3c5; margin-top: 3px; }

.pmx-front-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 18px 18px 0; text-align: center; }
.pmx-photo {
  width: 124px; height: 155px; border-radius: 12px; object-fit: cover; background: #e9e6dc;
  border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--gold), 0 6px 16px rgba(0, 0, 0, .15);
  display: flex; align-items: center; justify-content: center; color: #9a9384; font-size: 12px;
}
.pmx-name { margin-top: 14px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; word-break: break-word; }
.pmx-title { margin-top: 3px; font-size: 12.5px; color: #8a6d2a; font-weight: 600; }
.pmx-dept { margin-top: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pmx-id { margin-top: auto; width: 100%; padding: 12px 0 14px; border-top: 1px dashed #d8d2c2; }
.pmx-id .label { font-size: 8.5px; letter-spacing: .3em; color: var(--ink-soft); text-transform: uppercase; }
.pmx-id .num { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: .32em; margin-top: 2px; padding-left: .32em; }
.pmx-foot { background: #0b0d12; color: #aab3c5; font-size: 9px; letter-spacing: .14em; text-align: center; padding: 7px 0; text-transform: uppercase; }

.pmx-back-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 10px; text-align: center; }
.pmx-qr { width: 128px; height: 128px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #e1dccf; }
.pmx-qr img { width: 100%; height: 100%; display: block; }
.pmx-scan { margin-top: 6px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.pmx-signs { margin-top: auto; width: 100%; display: flex; justify-content: center; gap: 14px; }
.pmx-sign { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pmx-sign .by { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.pmx-sig {
  font-family: 'PmxSignature', 'Brush Script MT', cursive; font-size: 30px; color: var(--sig);
  line-height: 1.25; margin-top: 2px; white-space: nowrap; transform: rotate(-4deg);
}
.pmx-sig .u { border-bottom: 1.6px solid var(--sig); padding-bottom: 1px; border-radius: 0 0 40% 10%; }
.pmx-sig-img { display: block; height: 84px; width: auto; max-width: 100%; margin: 2px auto 0; object-fit: contain; }
.pmx-card.founder .pmx-sig-img { height: 60px; }
.pmx-sign .line { width: 100%; border-top: 1px solid #b9b2a2; margin-top: 2px; }
.pmx-sign .role { margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pmx-meta { margin-top: 12px; font-size: 9.5px; color: var(--ink-soft); line-height: 1.5; }
.pmx-meta strong { color: var(--ink); }

/* Spot used for the QR code before one exists, and the seal on the public verification page. */
.pmx-qr-empty { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10.5px; line-height: 1.4; color: var(--ink-soft); border: 1.5px dashed #cfc8b6; box-shadow: none; background: transparent; }
.pmx-seal {
  width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px double #2e9d5b; color: #237a46; background: radial-gradient(circle, rgba(46,157,91,.08), rgba(46,157,91,.02));
}
.pmx-seal .tick { font-size: 34px; line-height: 1; font-weight: 700; }
.pmx-seal .txt { margin-top: 4px; font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.pmx-seal .sub { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #4c6a57; margin-top: 2px; }

/* Founder variant */
.pmx-card.founder { box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 2px var(--gold); }
.pmx-card.founder .pmx-band { background: linear-gradient(135deg, #d9b765 0%, #b38a35 55%, #8c6a24 100%); color: #14110a; border-bottom-color: #0b0d12; }
.pmx-card.founder .pmx-band .brand span { color: #fff; }
.pmx-card.founder .pmx-band .kind { color: #2b2210; }
.pmx-card.founder .pmx-foot { background: linear-gradient(90deg, #8c6a24, #c9a24e, #8c6a24); color: #14110a; }
.pmx-card.founder .pmx-sig { font-size: 26px; }

@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .print-area .pmx-cards { justify-content: flex-start; gap: 8mm; }
  /* 300 x 476 px at 0.68 = 204 x 324 px = 54 x 85.6 mm, the standard ID-card size. */
  .print-area .pmx-card { box-shadow: none; border: .3mm solid #999; zoom: .68; }
}
