/* =========================================================
   Space City Frames: Prints and Event Photos (prints.html)
   Added 17 Oct 2026. Extends css/style.css and uses its tokens only.

   MOBILE FIRST. Most visits come from a QR code on a ticket or a
   business card, so the base rules are the phone and the min-width
   blocks enlarge it.
   ========================================================= */

/* ---------- Section rhythm ---------- */
section.pr-sec { padding: 30px 0 28px; border-top: 1px solid var(--border); }
.page-hero.compact + section.pr-sec { border-top: 0; padding-top: 14px; }
.pr-head { margin-bottom: 16px; }
.pr-head .eyebrow {
  display: block; color: var(--accent); font-family: 'Oswald', sans-serif;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px;
}
.pr-head h2 { font-size: 1.75rem; line-height: 1.08; }
.pr-head p { color: var(--text-muted); margin: 8px 0 0; font-size: .95rem; max-width: 56ch; }
.pr-sec h3 { font-size: 1.15rem; letter-spacing: .06em; }

/* ---------- Form bits ---------- */
.pr-label {
  display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem; color: var(--text-faint); margin-bottom: 6px; font-weight: 500;
}
.pr-field { display: block; margin-bottom: 14px; }
.pr-row { display: flex; gap: 8px; align-items: stretch; }
.pr-row .btn { flex: 0 0 auto; padding: 12px 18px; }
.pr-input {
  display: block; width: 100%; min-width: 0;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;            /* 16px keeps iOS from zooming in on focus */
  line-height: 1.35; letter-spacing: normal; text-transform: none;
}
textarea.pr-input { resize: vertical; min-height: 64px; }
.pr-input::placeholder { color: var(--text-faint); }
.pr-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.pr-hash {
  display: flex; align-items: center; padding: 0 2px;
  font-family: 'Oswald', sans-serif; font-size: 1.7rem; color: var(--accent);
}
.pr-input.pr-num {
  width: 7.5ch; flex: 0 0 auto;
  font-family: 'Oswald', sans-serif; font-size: 1.45rem; letter-spacing: .06em; padding: 7px 10px;
}
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pr-actions .btn { text-align: center; }
@media (max-width: 559px) { .pr-actions .btn { flex: 1 1 auto; padding: 14px 14px; letter-spacing: .08em; } }

/* "Text" where there is a phone, "Email" where there is a mouse (same rule as Book a Shoot) */
.only-mouse { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .only-touch { display: none !important; }
  .only-mouse { display: inline-block !important; }
}

/* ---------- Find your photos ---------- */
.pr-find { margin-bottom: 12px; }
.pr-found:empty { display: none; }
.pr-found { margin: 4px 0 22px; }
.pr-found-head {
  font-family: 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase;
  font-size: .95rem; margin-bottom: 10px; color: var(--text-muted);
}
.pr-found-head b { color: var(--accent); font-weight: 600; }
.pr-found .pr-addall { margin-top: 12px; width: 100%; text-align: center; }
.pr-found-none {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-elevated); border-radius: var(--radius); padding: 14px 16px;
}
.pr-found-none p { margin: 0; color: var(--text-muted); }
.pr-found-none b { color: var(--text); font-weight: 500; }
.pr-nonum {
  margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--border);
}
.pr-nonum p { color: var(--text-muted); margin: 6px 0 0; font-size: .95rem; max-width: 60ch; }

@media (min-width: 780px) {
  .pr-found .pr-addall { width: auto; }
}

/* ---------- Event galleries ---------- */
.pr-event + .pr-event { margin-top: 28px; }
.pr-ev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
.pr-ev-head h3 { font-size: 1.35rem; }
.pr-ev-head p { margin: 0; color: var(--text-muted); font-size: .88rem; flex: 1 1 100%; }
.pr-ev-n {
  font-family: 'Oswald', sans-serif; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.pr-soon {
  margin: 0; color: var(--text-muted); font-size: .92rem;
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px 16px;
}
/* Ticket and card sets are found by number only (21 Oct 2026): a show lists its
   crowd frames, then this box pointing back up to the number search. */
.pr-tix {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-top: 12px; border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px 16px;
}
.pr-ev-head + .pr-tix { margin-top: 0; }
.pr-tix p { margin: 0; color: var(--text-muted); font-size: .92rem; flex: 1 1 16em; }
.pr-tix .btn { text-align: center; }
@media (max-width: 559px) { .pr-tix .btn { flex: 1 1 100%; padding: 14px; } }

/* Small frames to scan quickly; a tap opens the full photo. Each photo is shown
   whole (contain), never cropped. */
.pr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pr-tile {
  margin: 0; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; min-width: 0;
}
.pr-tile.on { border-color: var(--accent); }
.pr-open {
  display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0;
  background: #000; cursor: zoom-in;
}
.pr-open img { width: 100%; height: 100%; object-fit: contain; }
.pr-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pr-tile figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 3px 3px 3px 7px; min-width: 0;
}
.pr-tile figcaption span {
  font-family: 'Oswald', sans-serif; font-size: .7rem; letter-spacing: .05em;
  color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pr-add {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0;
}
.pr-add:hover { border-color: var(--accent); }
.pr-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pr-tile.on .pr-add { background: var(--accent); border-color: var(--accent); color: #100c06; font-size: 1rem; }
.pr-more { margin-top: 12px; width: 100%; text-align: center; }

@media (min-width: 560px) {
  .pr-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pr-more { width: auto; }
}
@media (min-width: 900px) {
  .pr-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Prices ---------- */
.pr-digital {
  border: 1px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--radius); padding: 14px 16px 14px; margin-bottom: 26px;
}
.pr-price-line {
  margin: 0; font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: .9rem; display: flex; align-items: baseline; gap: 10px;
}
.pr-big { font-size: 2.6rem; color: var(--accent); letter-spacing: 0; line-height: 1; }
.pr-digital p + p { color: var(--text-muted); margin: 8px 0 0; font-size: .95rem; }
.pr-sub { font-size: 1.35rem; }
.pr-subnote { color: var(--text-muted); font-size: .9rem; margin: 6px 0 12px; max-width: 60ch; }
.pr-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pr-size {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  padding: 12px 4px 11px; border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius);
}
.pr-size-name { font-family: 'Oswald', sans-serif; letter-spacing: .04em; font-size: 1rem; line-height: 1.2; white-space: nowrap; }
.pr-size-price {
  font-family: 'Oswald', sans-serif; font-size: 1.45rem; line-height: 1.2;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.pr-tag {
  margin-top: 4px; font-family: 'Oswald', sans-serif; font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 1px 6px; white-space: nowrap;
}
.pr-facts { list-style: none; padding: 0; margin: 16px 0 22px; }
.pr-facts li {
  display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: .93rem;
}
.pr-facts li span {
  flex: 0 0 74px; font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: .72rem; color: var(--text-faint); padding-top: 2px;
}
.pr-gallery-note { margin-bottom: 0; }
.pr-gallery-note a { color: var(--accent); }

@media (min-width: 900px) { .pr-sizes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } }

/* ---------- Your order ---------- */
.pr-cart { max-width: 720px; }
.pr-empty { color: var(--text-muted); margin: 0 0 16px; }
.pr-lines { list-style: none; padding: 0; margin: 0 0 18px; }
.pr-line {
  display: grid; align-items: center; gap: 4px 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas: "img code x" "img sel price" "img qty qty";
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.pr-line > img, .pr-line-ph {
  grid-area: img; width: 48px; height: 64px; object-fit: contain; background: #000;
  border-radius: 2px; align-self: start;
}
.pr-line-ph {
  display: flex; align-items: center; justify-content: center; background: var(--bg-card);
  border: 1px solid var(--border); font-family: 'Oswald', sans-serif; color: var(--text-faint);
}
.pr-line-code {
  grid-area: code; min-width: 0; font-family: 'Oswald', sans-serif; letter-spacing: .05em; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pr-select {
  grid-area: sel; width: 100%; max-width: 240px; min-width: 0; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 8px;
  font-family: 'Inter', sans-serif; font-size: 16px;
}
.pr-select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.pr-qty { grid-area: qty; display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.pr-qty button {
  width: 36px; height: 34px; border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text); border-radius: var(--radius); font-size: 1.05rem; cursor: pointer; padding: 0;
}
.pr-qty span { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.pr-line-price {
  grid-area: price; justify-self: end; font-family: 'Oswald', sans-serif; font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.pr-line-x {
  grid-area: x; justify-self: end; width: 36px; height: 32px; margin: -4px -6px 0 0;
  border: 0; background: none; color: var(--text-faint); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0;
}
.pr-line-x:hover { color: var(--accent); }
.pr-addcode { margin-bottom: 22px; }
.pr-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; }
.pr-printopts { display: grid; gap: 14px; margin-bottom: 14px; }
.pr-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.pr-seg legend { padding: 0; }
.pr-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-seg legend { flex: 1 1 100%; }
.pr-seg label { flex: 1 1 0; min-width: 0; }
.pr-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pr-seg span {
  display: block; text-align: center; padding: 11px 8px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
  font-size: .92rem; color: var(--text-muted);
}
.pr-seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.pr-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.pr-sum { margin: 6px 0 18px; padding: 0; }
.pr-sum div {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: .93rem;
}
.pr-sum dt, .pr-sum dd { margin: 0; }
.pr-sum dd { font-variant-numeric: tabular-nums; text-align: right; }
.pr-sum div.tot {
  border-bottom: 0; color: var(--text); font-family: 'Oswald', sans-serif;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; padding-top: 10px;
}
.pr-sum div.tot dd { color: var(--accent); font-size: 1.5rem; letter-spacing: 0; }
.pr-steps { margin: 0; padding: 0 0 0 20px; }
.pr-steps li { margin-bottom: 18px; color: var(--text-muted); padding-left: 4px; }
.pr-steps li::marker { color: var(--accent); font-family: 'Oswald', sans-serif; }
.pr-steps li b { color: var(--text); font-weight: 500; }
.pr-ref {
  font-family: 'Oswald', sans-serif; letter-spacing: .08em; color: var(--accent);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 2px; padding: 1px 6px;
}
.pr-after { color: var(--text-muted); font-size: .9rem; margin: 0; }
.pr-link {
  background: none; border: 0; padding: 0; color: var(--text-faint); text-decoration: underline;
  font: inherit; cursor: pointer; margin-left: 6px;
}
.pr-link:hover { color: var(--accent); }

/* ---------- Small print ---------- */
section.pr-fine-sec { padding: 24px 0 40px; }
.pr-fine { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 70ch; }
.pr-fine li { color: var(--text-muted); font-size: .9rem; }
.pr-fine b { color: var(--text); font-weight: 500; }
.pr-fine a { color: var(--accent); }

/* ---------- Order bar (phones) ---------- */
.pr-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 20, 22, .97); border-top: 1px solid var(--accent);
}
.pr-bar[hidden] { display: none; }
.pr-bar span { font-family: 'Oswald', sans-serif; letter-spacing: .06em; font-size: .95rem; }
.pr-bar .btn { padding: 11px 16px; }
body.pr-has-bar { padding-bottom: 70px; }

/* ---------- Photo viewer ---------- */
.pr-viewer {
  position: fixed; inset: 0; z-index: 300; background: #050506;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
}
.pr-viewer[hidden] { display: none; }
.pr-v-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 4px 16px; }
.pr-v-code { font-family: 'Oswald', sans-serif; letter-spacing: .12em; color: var(--accent); font-size: 1rem; }
.pr-v-close {
  width: 44px; height: 44px; border: 0; background: none; color: var(--text-muted);
  font-size: 2.1rem; line-height: 1; cursor: pointer;
}
.pr-v-close:hover { color: var(--text); }
.pr-v-stage {
  position: relative; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; touch-action: pan-y;
}
.pr-v-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.pr-v-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 72px; border: 0; background: rgba(10, 10, 11, .55);
  color: var(--text); font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.pr-v-nav.prev { left: 0; }
.pr-v-nav.next { right: 0; }
.pr-v-nav[hidden] { display: none; }
.pr-v-nav:hover { color: var(--accent); }
.pr-v-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
}
.pr-v-meta { color: var(--text-muted); font-size: .9rem; min-width: 0; }
.pr-v-bottom .btn { flex: 0 0 auto; }
body.pr-lock { overflow: hidden; }

@media (min-width: 780px) {
  section.pr-sec { padding: 46px 0 40px; }
  .pr-head h2 { font-size: 2rem; }
  .pr-v-nav { width: 56px; }
  .pr-v-stage { padding: 0 60px; }
  .pr-v-bottom { justify-content: center; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
