/* The Santa visit sheet (handouts/santa-visit-phrases.html): the handout's styles (handout.css) plus big phrase cards.
   Same rules as handout.css: no inline styles (strict CSP), nothing from another host, sizes in em inside .sheet.
   Black on white only; no pictures beyond the site's own icon and the QR code. */

.santa .intro p + p { margin-top: 0.2em; }

.sheet .phrases {
  list-style: none;
  margin: 0.15em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

.phrase {
  position: relative;
  padding: 0.6em 0.8em 0.8em 2.6em;
  border: 3px dashed var(--rule);
  border-radius: 0.7em;
  break-inside: avoid;
}

.phrase .num {
  position: absolute;
  left: 0.6em;
  top: 0.7em;
  width: 1.5em;
  height: 1.5em;
  border: 2px solid var(--rule);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.32em;
  text-align: center;
}

.phrase .when {
  font-size: 0.86em;
  color: var(--ink-soft);
}

.phrase .say {
  margin-top: 0.05em;
  font-size: 2.55em;
  line-height: 1.12;
  font-weight: 500;
}

.phrase .say .end { font-weight: 800; }

/* The first two cards run the full width, so the wish card has room for a box to write or draw the wish in,
   beside the phrase, and card 1 is not left half empty next to it. */
.phrase:first-child,
.phrase.wish { grid-column: 1 / -1; }

.phrase.wish {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.2em;
  align-items: end;
}

.phrase.wish .when { grid-column: 1; grid-row: 1; }
.phrase.wish .say { grid-column: 1; grid-row: 2; }

.phrase .draw {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 4.2em;
  border: 1.5px solid var(--rule-soft);
  border-radius: 0.4em;
}

.tips ol { padding-left: 1.15em; }
.tips li + li { margin-top: 0.15em; }

.sheet .get {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1.1em;
  align-items: center;
  padding: 0.45em 0.7em 0.5em;
  border: 2px solid var(--rule);
}

.get h2 { font-size: 1.04em; margin-bottom: 0.15em; }
.get-text p { font-size: 0.95em; }
.get-text p + p { margin-top: 0.25em; }

.get .qr {
  display: block;
  width: 6.2em;
  height: 6.2em;
  image-rendering: pixelated;
}

.get-link { font-weight: 700; }

@media screen {
  .get-link {
    display: inline-block;
    margin: 0.35em 0 0;
    padding: 0.45em 0.9em;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
  }
}

@media screen and (max-width: 720px) {
  .sheet .phrases { grid-template-columns: 1fr; }
  .phrase.wish { grid-template-columns: 1fr; }
  .phrase.wish .draw { grid-column: 1; grid-row: 3; margin-top: 0.3em; }
  .phrase .say { font-size: 1.75em; }
  .sheet .get { grid-template-columns: 1fr; }
  .get .qr { margin-top: 0.6em; }
}

@media print {
  .get-link { display: none; }
}
