/* Sophie's stamp stickers (src/stickers.mjs): a sheet that only ever prints. On /play, Print My
   Stamps puts html.is-printing-stickers on and prints just this sheet (assets/js/play.js);
   printables/build-stickers.mjs prints the same sheet to the free PDF on /passport. Real inches:
   each sticker is 1.65 in square, enough to cover the stamp on a city page of the paper passport.
   Also here: the stickers' section on /passport (.pstix). */
.stix { display: none; }

/* /passport: the link to the single-sided passport, under the printing steps */
.howto__single { margin-top: 0.5rem; }
.howto__single a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

/* /passport: the stickers' section, with the sheet and the Paris page wearing its sticker -------- */
.pstix { padding: 0 0 var(--section); }
.pstix__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pstix__copy .h2 { margin: 0.8rem 0 1rem; }
.pstix__how { margin-top: 0.7rem; color: var(--ink-2); }
.pstix__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.pstix__note { margin-top: 1.2rem; font-size: 0.92rem; color: var(--ink-2); }
.pstix__art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: end; }
@media (max-width: 900px) {
  .pstix__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .pstix__actions { justify-content: center; }
  .pstix__art { max-width: 34rem; margin: 0 auto; }
}

@media print {
  @page { size: letter portrait; margin: 0.45in 0.5in; }
  html.is-printing-stickers, html.is-printing-stickers body { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important; }
  /* Everything but the sheet (and the icon sprite its stamps draw from) stays off the paper,
     the site's paper grain too. */
  html.is-printing-stickers body > :not(.stix):not(.sprite) { display: none !important; }
  html.is-printing-stickers body::after { content: none !important; }
  .is-printing-stickers .stix { display: block; }

  .stix { width: 7.5in; margin: 0 auto; color: #1d3640; font: 400 10.5pt/1.4 'DM Sans', Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .stix p, .stix ol { margin: 0; padding: 0; }
  .stix__head { display: flex; align-items: center; justify-content: space-between; gap: 0.3in; }
  .stix__titles { flex: 1; }
  .stix__logo { display: block; width: 1.75in; height: auto; }
  .stix__kicker { margin-top: 0.16in !important; font-size: 8.5pt; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: #cc4637; }
  .stix__title { margin-top: 0.03in !important; font: 650 36pt/1.02 'Fraunces', Georgia, serif; color: #2a5d6e; }
  .stix__lead { margin-top: 0.08in !important; font-size: 12.5pt; color: #4a636c; }
  .stix__sophie { display: block; flex: none; width: auto; height: 2.15in; margin-right: 0.2in; }

  .stix__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.16in; margin: 0.24in 0 0.34in !important; list-style: none; }
  .stix__steps li { display: flex; gap: 0.09in; align-items: flex-start; padding: 0.11in 0.13in; border-radius: 0.12in; background: #fdf3cf; font-size: 9.5pt; line-height: 1.35; }
  /* An outlined number, so it still shows if the browser leaves the box colours off the paper. */
  .stix__n { flex: none; display: grid; place-items: center; width: 0.25in; height: 0.25in; border: 1.6px solid #cc4637; border-radius: 50%; color: #cc4637; font-size: 9pt; font-weight: 700; line-height: 1; }

  .stix__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3in; }
  .stix__cell { break-inside: avoid; }
  .stix__cell[hidden] { display: none; }
  .stix__sticker { display: block; width: 1.65in; height: 1.65in; }
  .stix__sticker .stamp__ink { filter: url(#f-stamp-dense); }
  .stix__sticker text { fill: currentColor; font-family: 'DM Sans', Arial, sans-serif; font-weight: 700; }
  .stix__sticker .stamp__arc { font-size: 12.5px; letter-spacing: 0.14em; }
  .stix__sticker .stamp__code { font-size: 23px; letter-spacing: 0.04em; }
  .stix__sticker .stamp__code--big { font-size: 30px; }
  .stix__sticker .stamp__small { font-size: 9.5px; letter-spacing: 0.16em; }
  .stix__sticker .stamp__small--long { font-size: 8px; letter-spacing: 0.06em; }

  .stix__foot { margin-top: 0.4in !important; text-align: center; font-size: 8.5pt; line-height: 1.6; color: #4a636c; }
  .stix__foot strong { color: #cc4637; }
}
