/* ── Print / PDF stylesheet — this is where "maintains printability" lives ── */
@page {
  size: letter;
  margin: 18mm 16mm 20mm;
  @bottom-left  { content: "V-1.2 2026 — Contest Rules"; font: 9pt -apple-system, sans-serif; color: #888; }
  @bottom-right { content: "Page " counter(page); font: 9pt -apple-system, sans-serif; color: #888; }
}

.no-print, .topnav, .pagefoot { display: none !important; }

body { background: #fff; }
.page { max-width: none; margin: 0; padding: 0; }

/* keep blocks intact across page breaks */
.rule-card, .maneuver--image, .maneuver--card, .section-head { break-inside: avoid; }

/* each top-level section starts on a fresh page */
.rule-section, .maneuver-grid > .maneuver--image { break-before: page; }
.rule-section:first-of-type { break-before: avoid; }

/* one maneuver diagram per printed page (matches today's layout) */
.maneuver--image { border: 0; margin: 0; }
.maneuver__svg { max-height: 90vh; object-fit: contain; }

a { color: inherit; text-decoration: none; }
