/* Styles for scan.html only. Shared tokens and components live in css/styles.css. */
.page-hero .eyebrow:empty { display: none; }

.scan-layout { display: grid; grid-template-columns: auto minmax(0, 460px); justify-content: start; gap: var(--s8); align-items: start; }
/* The poster stays white in both themes so the code always scans. */
.qr-sheet { margin: 0; width: 340px; padding: var(--s6) var(--s6) var(--s5); background: #fff; color: #121316; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: var(--s5); justify-items: center; }
.qr-frame { width: 240px; aspect-ratio: 1; }
.qr-frame img, .qr-frame canvas { width: 100% !important; height: auto !important; image-rendering: pixelated; }
.qr-sheet figcaption { display: grid; gap: 4px; text-align: center; width: 100%; padding-top: var(--s4); border-top: 1px solid #e4e4e0; }
.qr-brand { font: 700 var(--t-lg)/1.2 var(--font-display); letter-spacing: -0.01em; }
.qr-url { font: 500 var(--t-xs)/1.4 var(--font-mono); color: #4a4d55; word-break: break-all; }
.scan-controls { display: grid; gap: var(--s4); }
.scan-controls h2 { font-size: var(--t-xl); }
.scan-actions { display: flex; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s2); }
.scan-controls .hint { font-size: var(--t-sm); color: var(--muted); padding-top: var(--s4); border-top: 1px solid var(--line); }

@media (max-width: 899px) {
  .scan-layout { grid-template-columns: 1fr; gap: var(--s6); justify-items: center; }
  .scan-controls { width: 100%; max-width: 520px; }
}
@media (max-width: 420px) {
  .qr-sheet { width: 100%; padding: var(--s5); }
  .qr-frame { width: min(240px, 100%); }
  .scan-actions .btn { flex: 1 1 100%; }
  .qr-url { font-size: var(--t-sm); }
}
@media (max-width: 767px) {
  .scan-actions .btn { min-height: 48px; }
  .scan-controls .hint { font-size: var(--t-md); }
}

@media print {
  body > header, body > footer, .page-hero, .scan-controls, .toast, .announce { display: none !important; }
  .section { padding: 0 !important; }
  .scan-layout { display: block; }
  .qr-sheet { width: 100%; max-width: 14cm; margin: 2cm auto 0; border: 2px solid #121316; padding: 1.5cm; }
  .qr-frame { width: 9cm; }
  .qr-brand { font-size: 28pt; }
  .qr-url { font-size: 11pt; }
}
