/* ==========================================================================
   Printable QR sheets: one entrance poster plus per-language table tents.
   --------------------------------------------------------------------------
   These end up on paper at the gate and on banquet tables, so the print rules
   are the real design: dark brand panels are dropped to plain ink, the code
   keeps a hard white quiet zone, and each card is kept off page breaks.
   ========================================================================== */

.qrpage { background: var(--bg-2); }

.qrhead {
  width: min(100%, 760px); margin-inline: auto;
  padding: clamp(22px, 5vw, 36px) var(--pad) 0;
  display: grid; gap: 20px;
}
.qrhead__brand { display: flex; align-items: flex-start; gap: 14px; }
.qrhead__logo { height: 32px; width: auto; flex: none; }
html[data-theme="dark"] .qrhead__logo,
html[data-theme="dark"] .poster__logo { filter: brightness(0) invert(1); opacity: .92; }
.qrhead__brand strong {
  display: block; font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.qrhead__brand small {
  display: block; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 4px;
}

.qrform {
  padding: 20px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 14px;
}
.qrform label { display: grid; gap: 7px; }
.qrform span {
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.qrform input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 15px;
}
.qrform input:focus {
  outline: none; border-color: var(--lime-600);
  box-shadow: 0 0 0 3px rgba(141, 196, 65, .16);
}
.qrhint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.qrhint.is-warn { color: var(--live); font-weight: 500; }
.qractions { display: flex; gap: 10px; flex-wrap: wrap; }

/* shared QR frame — the white padding is the scanner's quiet zone, not decor */
.qrbox {
  background: #fff; border-radius: var(--r-xs); padding: 10px;
  border: 1px solid var(--line);
}
.qrbox svg { display: block; width: 100%; height: auto; }
.qrbox--lg { padding: 16px; border-radius: var(--r-sm); max-width: 320px; margin-inline: auto; }

/* entrance poster */
.poster {
  width: min(100%, 760px); margin: clamp(22px, 5vw, 36px) auto;
  padding: 0 var(--pad);
}
.poster__inner {
  padding: clamp(30px, 6vw, 48px) var(--pad);
  border-radius: var(--r-md); text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 16px; justify-items: center;
}
.poster__logo { height: 40px; width: auto; }
.poster__inner h1 {
  font-family: var(--font-display);
  font-size: clamp(25px, 6vw, 35px); font-weight: 600; letter-spacing: -.015em;
  line-height: 1.22; text-wrap: balance;
}
/* Hairline + diamond, same divider as the guest hero. */
.poster__rule {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  width: min(100%, 240px);
}
.poster__rule::before, .poster__rule::after {
  content: ""; flex: 1; height: 1px; background: var(--rule); opacity: .55;
}
.poster__rule span { width: 5px; height: 5px; background: var(--lime-500); transform: rotate(45deg); flex: none; }
.poster__sub { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.poster__url {
  font-size: 12px; color: var(--teal-700); font-weight: 500;
  word-break: break-all; max-width: 42ch; font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .poster__url { color: var(--teal-300); }
.poster__note { font-size: 13px; color: var(--ink-2); line-height: 1.7; text-wrap: balance; }

/* per-language cards */
.cards {
  width: min(100%, 760px); margin-inline: auto; padding: 0 var(--pad) 40px;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }

.card-qr {
  padding: 18px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 13px;
}
.card-qr__head { display: flex; align-items: center; gap: 12px; }
.card-qr__flag { font-size: 25px; line-height: 1; flex: none; }
.card-qr__head strong {
  display: block; font-family: var(--font-display);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
}
.card-qr__head small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-qr__url { font-size: 10.5px; color: var(--muted); word-break: break-all; }

.qrfoot {
  width: min(100%, 760px); margin-inline: auto; padding: 0 var(--pad) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; font-weight: 500; color: var(--muted);
}
.qrfoot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { .qrfoot a:hover { color: var(--ink); } }

/* ---------------------------------------------------------------- print */

@media print {
  .no-print { display: none !important; }

  /* Force the light palette: a dark theme left on screen would otherwise
     print as solid ink, and the codes must sit on white to scan. */
  :root, html[data-theme="dark"] {
    --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #fff;
    --ink: #000; --ink-2: #1a1a1a; --muted: #555;
    --line: #ccc; --line-2: #ddd; --rule: #999;
  }
  html[data-theme="dark"] .qrhead__logo,
  html[data-theme="dark"] .poster__logo { filter: none; opacity: 1; }

  body { background: #fff; color: #000; }
  .poster, .cards { width: 100%; max-width: none; padding: 0; }
  .poster { margin: 0; break-after: page; }
  .poster__inner, .card-qr { border: none; box-shadow: none; break-inside: avoid; }
  .qrbox { border: none; padding: 6px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card-qr { break-inside: avoid; page-break-inside: avoid; }
  .poster__url, .card-qr__url { color: #333; }
}
