/* Print pages (sign, tent, stickers, scorecard QR). Loaded after app.css. Marketing styles: marketing.css. */

/* ================= print pages ================= */
.print-body { background: #e9edf2; }
.print-toolbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 12px; }
.pt-inner { max-width: 840px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pt-title { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.pt-title b { font-family: var(--font-display); font-size: 17px; }
.pt-title span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 12px; overflow-x: auto; max-width: 100%; }
.pt-tabs a { padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pt-tabs a[aria-current="page"] { background: #fff; color: var(--brand-ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.print-toolbar .btn { min-height: 42px; }
.pt-note { max-width: 840px; margin: 8px auto 0; font-size: 13px; font-weight: 700; color: #92400e; background: #fff7e6; padding: 8px 12px; border-radius: 10px; }
.pages { padding: 16px 12px 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pages .loading { min-height: 30vh; }

.page {
  zoom: var(--z, 1);
  width: 8.5in; height: 11in; position: relative; overflow: hidden; flex: none;
  background: #fff; color: #0f172a; box-shadow: 0 10px 40px -10px rgba(15,23,42,.35);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  font-family: var(--font);
}
.pw { position: absolute; left: 0; right: 0; bottom: .32in; text-align: center; font-size: 10pt; color: #475569; font-weight: 600; }

/* --- counter sign --- */
.sign-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .7in .75in .6in; background: var(--bg); }
.sp-band { position: absolute; left: 0; right: 0; top: 0; height: 2.35in; background: var(--brand); }
.sp-band::after { content: ""; position: absolute; right: -0.9in; top: -1.2in; width: 3.6in; height: 3.6in; border-radius: 50%; background: rgba(255,255,255,.12); }
.sp-head { position: relative; display: flex; align-items: center; gap: .25in; color: var(--on-brand); min-height: 1.2in; }
.sp-logo { width: 1.15in; height: 1.15in; object-fit: contain; background: #fff; border-radius: .28in; padding: .08in; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.sp-head h1 { margin: 0; font-family: var(--font-display); font-size: 40pt; line-height: 1.02; letter-spacing: -.02em; font-weight: 900; text-align: left; max-width: 5.2in; }
.sp-kicker { position: relative; margin-top: .55in; font-size: 15pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.sp-qr { margin-top: .16in; width: 4.5in; height: 4.5in; padding: .14in; background: #fff; border-radius: .3in; box-shadow: 0 0 0 .05in var(--brand); }
.sp-qr svg { width: 100%; height: 100%; }
.sp-main { margin: .32in 0 0; font-family: var(--font-display); font-size: 30pt; line-height: 1.1; font-weight: 900; letter-spacing: -.015em; }
.sp-steps { list-style: none; display: flex; gap: .2in; margin: .3in 0 0; padding: 0; }
.sp-steps li { display: flex; align-items: center; gap: .1in; font-size: 12.5pt; font-weight: 700; color: #334155; background: #fff; border-radius: .2in; padding: .1in .16in .1in .1in; }
.sp-steps b { display: grid; place-items: center; width: .34in; height: .34in; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 12pt; flex: none; }
.sp-url { margin: .22in 0 0; font-size: 12pt; font-weight: 700; color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* --- table tent (fold along the middle; top half is upside down) --- */
.tent-page { display: grid; grid-template-rows: 1fr auto 1fr; padding: 0; }
.tent-half { display: flex; align-items: center; gap: .4in; padding: .55in .6in; background: var(--bg); position: relative; }
.tent-half::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .22in; background: var(--brand); }
.tent-half.flip { transform: rotate(180deg); }
.th-left { flex: 1; min-width: 0; }
.th-logo { width: .95in; height: .95in; object-fit: contain; background: #fff; border-radius: .22in; padding: .06in; box-shadow: 0 4px 12px rgba(0,0,0,.12); margin-bottom: .18in; }
.tent-half h2 { margin: 0 0 .12in; font-family: var(--font-display); font-size: 25pt; line-height: 1.05; font-weight: 900; color: var(--brand-ink); letter-spacing: -.015em; }
.th-main { margin: 0 0 .12in; font-family: var(--font-display); font-size: 21pt; font-weight: 900; line-height: 1.12; }
.th-sub { margin: 0 0 .14in; font-size: 11.5pt; color: #475569; font-weight: 600; }
.th-url { margin: 0; font-size: 10.5pt; font-weight: 700; color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.th-qr { width: 3.05in; height: 3.05in; flex: none; background: #fff; padding: .1in; border-radius: .2in; box-shadow: 0 0 0 .04in var(--brand); }
.th-qr svg { width: 100%; height: 100%; }
.fold { height: 0; border-top: 1.5px dashed #94a3b8; position: relative; z-index: 2; }
.fold span { position: absolute; left: 50%; top: -.09in; transform: translateX(-50%); background: #fff; padding: 0 .1in; font-size: 8pt; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; line-height: .18in; }
.tent-page .pw { bottom: .08in; font-size: 8pt; }

/* --- hole stickers: 3 x 4 grid of 2.5in squares, cut lines --- */
.sticker-page { padding: .45in .5in .5in; }
.st-grid { display: grid; grid-template-columns: repeat(3, 2.5in); grid-template-rows: repeat(4, 2.5in); }
.sticker { border: 1px dashed #cbd5e1; margin: -0.5px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: .14in .16in .12in; background: #fff; position: relative; }
.sticker::before { content: ""; position: absolute; inset: .07in; border-radius: .2in; background: var(--brand-softer); box-shadow: inset 0 0 0 .03in var(--brand); }
.sticker > * { position: relative; }
.st-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.st-logo { width: .42in; height: .42in; object-fit: contain; background: #fff; border-radius: .1in; padding: .03in; }
.st-hole { display: flex; align-items: baseline; gap: .05in; font-family: var(--font-display); font-weight: 900; font-size: 26pt; color: var(--brand-ink); line-height: 1; }
.st-hole small { font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.st-qr { width: 1.32in; height: 1.32in; background: #fff; padding: .04in; border-radius: .06in; }
.st-qr svg { width: 100%; height: 100%; }
.st-bot { display: flex; justify-content: space-between; width: 100%; font-size: 9pt; font-weight: 800; color: #334155; }
.st-bot span:first-child { background: var(--brand); color: var(--on-brand); border-radius: 99px; padding: .015in .1in; }
.st-foot { position: absolute; left: 0; right: 0; bottom: .22in; text-align: center; font-size: 8.5pt; color: #64748b; font-weight: 600; }

/* --- scorecard-size QR sheet: 5 x 6 grid of 1.2in codes --- */
.cards-page { padding: .5in .5in .6in; }
.cq-grid { display: grid; grid-template-columns: repeat(5, 1.5in); grid-auto-rows: 1.6in; }
.cq { border: 1px dashed #cbd5e1; margin: -0.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05in; }
.cq-qr { width: 1.2in; height: 1.2in; }
.cq-qr svg { width: 100%; height: 100%; }
.cq-t { font-size: 7.5pt; font-weight: 800; color: #334155; }

@page { size: letter; margin: 0; }
.print-foot { display: flex; justify-content: center; gap: 18px; padding: 8px 12px 24px; font-size: 13px; }
.print-foot a { color: #475467; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
@media print {
  html, body, .print-body { background: #fff !important; }
  .print-toolbar, .print-foot { display: none !important; }
  .pages { padding: 0; gap: 0; display: block; }
  .page { zoom: 1; box-shadow: none; margin: 0; break-after: page; page-break-after: always; }
  .page:last-child { break-after: auto; page-break-after: auto; }
}

/* A course name that is one very long word wraps instead of running off the sign or the page. */
.sp-head h1, .tent-half h2, .sp-head p, .tent-half p, .pt-title b { overflow-wrap: anywhere; }
