/* goldstraw.app list pages on paper: a tick-box checklist on A4.
   Loads after guides-v1.css, whose print rules (only the list, no header,
   footer, buttons or pictures) stay as released: browsers and Cloudflare keep
   a stylesheet by its name for hours, so the checklist gets a file of its own.
   It applies only to a list that carries data-print-foot, so a page without
   one prints as before. scripts/website/buildPrintables.mjs makes the PDFs
   from this same view.

   On paper: the list's own name (data-list-title, which follows the number
   picked), each aisle, and each item beside an empty square to tick. A long
   list sits in two columns. No item or aisle is split across a page or a
   column, and one quiet line at the foot gives the page's address.

   Above the list (12 Nov 2026): the site's own brand line, the tile and the
   name Goldstraw in Goldstraw green, with "Christmas 2026" on the right, so
   a sheet on the fridge says whose it is and which Christmas. Change the year
   here each autumn. */
@media print {
  @page { size: A4; margin: 12mm 16mm 11mm; }
  html, body:has(.guide-list[data-print-foot]) { background: #fff; }
  body:has(.guide-list[data-print-foot]) .site-header { display: flex; align-items: center; justify-content: space-between; max-width: none; margin: 0 0 4mm; padding: 0; border: 0; background: none; }
  body:has(.guide-list[data-print-foot]) .site-header .header-link { display: none; }
  body:has(.guide-list[data-print-foot]) .site-header .brand { min-height: 0; gap: 3mm; color: var(--customer-green-deep); font-size: 14pt; font-weight: 700; }
  body:has(.guide-list[data-print-foot]) .site-header .brand img { flex: 0 0 8mm; width: 8mm; height: 8mm; border-radius: 2mm; }
  body:has(.guide-list[data-print-foot]) .site-header::after { content: "Christmas 2026"; color: var(--customer-green); font-size: 11pt; font-weight: 600; }
  .guide:has(.guide-list[data-print-foot]) .guide-head { display: none; }
  .guide .guide-list[data-print-foot] { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #000; columns: 2; column-gap: 12mm; column-fill: balance; }
  /* A short list (three aisles or fewer) keeps one column. */
  .guide .guide-list[data-print-foot]:not(:has(ul ~ ul ~ ul ~ ul)) { columns: 1; }
  .guide-list[data-print-foot] > :not(h3, ul) { display: none; }
  .guide-list[data-print-foot]::before { content: attr(data-list-title); display: block; column-span: all; margin: 0 0 5mm; padding-bottom: 3.5mm; border-bottom: 1.5pt solid #000; color: #000; font-size: 22pt; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
  .guide-list[data-print-foot]::after { content: attr(data-print-foot); display: block; column-span: all; margin-top: 6mm; padding-top: 2.5mm; border-top: .5pt solid #999; color: #555; font-size: 9pt; font-weight: 400; line-height: 1.4; }
  .guide .guide-list[data-print-foot] h3 { margin: 6mm 0 2mm; color: #000; font-size: 12.5pt; font-weight: 700; line-height: 1.2; letter-spacing: 0; break-after: avoid; break-inside: avoid; }
  .guide .guide-list[data-print-foot] h3:first-of-type { margin-top: 0; }
  /* An aisle stays whole in its column, so no item is left behind, away from its heading. */
  .guide .guide-list[data-print-foot] ul { margin: 0; padding: 0; columns: auto; break-before: avoid; break-inside: avoid; }
  .guide .guide-list[data-print-foot] li { position: relative; margin: 0; padding: 1.6mm 0 1.6mm 7.5mm; color: #000; font-size: 11pt; line-height: 1.35; break-inside: avoid; }
  .guide .guide-list[data-print-foot] li::before { content: ""; position: absolute; top: calc(1.6mm + .675em - 1.75mm); left: 0; width: 3.5mm; height: 3.5mm; box-sizing: border-box; border: .9pt solid #000; border-radius: 0; background: none; }
}
