/* sundayvisit.com.au/guides/printable-conversation-cards/: 48 conversation cards, eight to an A4 page (23 Nov 2026).
   Loaded after guides.css and puzzles.css (which give the buttons and the one-per-page print rules).
   Nothing under 18px on screen (staticPageTextSize.test.ts). On paper a page holds eight cards in two columns and
   four rows, with a line to cut along on every side of each card: the question at 22 point (the longest takes four
   lines of the four a card holds), and every other line at 14 point or larger.
   Chrome 78: no flex gap, and a plain value before any clamp(). */

/* Eight cards to a page: one above another on a phone, two columns on a wider screen, as on paper. On screen each
   card is drawn with its own dashed line, the line to cut along. */
.cc-grid { display: grid; grid-template-columns: 1fr; grid-gap: 1rem; }
.cc-card { padding: 1rem 1.25rem 1.15rem; border: 2px dashed #9aa3ad; border-radius: 16px; background: var(--card); box-shadow: 0 1px 0 var(--rule), 0 14px 32px -24px rgba(19, 36, 59, .35); }
.cc-n { display: block; margin: 0 0 .35rem; color: var(--pine); font: 600 1.125rem/1.2 var(--sans); }
.cc-q { margin: 0; font: 500 1.375rem/1.35 var(--sans); }
/* guides.css puts 1rem above a paragraph that follows a paragraph; the source line sits closer to its question. */
.sv-guide .cc-src { margin: .6rem 0 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.45; }
/* The site's address sits at the top right of a printed page, beside the page's name. */
.cc-site { display: none; }

@media (min-width: 40rem) {
  .cc-grid { grid-template-columns: 1fr 1fr; grid-gap: 1.25rem; }
  .cc-card { padding: 1.25rem 1.5rem 1.4rem; }
  .cc-q { font-size: 1.5rem; }
}

@media print {
  /* The page's name is a label, not what the page is for: the cards get the room. */
  .cc-page { position: relative; }
  .cc-page h2 { font-size: 16pt; }
  /* Single lines, set close: the tallest page (the first, whose foot line wraps twice) stays inside the sheet. */
  .cc-page .wsp-how, .cc-page .wsp-from { line-height: 1.3; }
  .cc-page .wsp-how { margin-bottom: 3mm; }
  .cc-site { display: block; position: absolute; top: 0; right: 0; margin: 0; color: #444; font-size: 14pt; line-height: 1.2; }
  /* One line around the page of cards and one between neighbours, so every card has a line on each of its four sides. */
  .cc-grid { grid-template-columns: 1fr 1fr; grid-gap: 0; border: 1.5pt dashed #555; }
  .cc-card { height: 57mm; padding: 3mm 5mm 4mm; border: 0; border-right: 1.5pt dashed #555; border-bottom: 1.5pt dashed #555; border-radius: 0; background: none; box-shadow: none; break-inside: avoid; }
  .cc-card:nth-child(2n) { border-right: 0; }
  .cc-card:nth-last-child(-n+2) { border-bottom: 0; }
  .cc-n { margin: 0 0 2mm; color: #000; font-size: 14pt; }
  .cc-q { font-size: 22pt; line-height: 1.25; color: #000; }
  /* On paper each page says once which guides its cards come from. */
  .cc-src { display: none; }
  .cc-page .wsp-from { margin-top: 3mm; }
  /* The last page is the last: nothing forces a break after it, and the sources stay on screen. */
  .cc-last { break-after: auto; }
  .cc-sources-band { display: none !important; }
}
