/**
 * MonkeySee Games — Print Stylesheet
 *
 * Strips chrome, neutralizes brand surfaces, and tunes typography so a
 * publisher hitting Cmd+P on a game detail page (or the games index)
 * gets a legible, ink-friendly handout instead of the on-screen UI.
 *
 * Loaded via wp_enqueue_style with media="print".
 */

@page {
  margin: 15mm;
}

body {
  font-size: 11pt;
  color: #000;
  background: #fff;
}

/* ── Hide chrome and interactive surfaces ─────────────────────── */

.site-header,
.site-footer,
.bgp-site-footer,
.bgp-nav,
.bgp-nav-toggle,
.bgp-cta-band,
.bgp-playtester-cta,
.bgp-game-contact,
.bgp-contact-pair,
.bgp-rulebook-gate,
.no-print,
.skip-link {
  display: none !important;
}

/* Hide form controls and CTA buttons that don't make sense on paper. */
button,
input[type="submit"],
input[type="button"],
.wp-block-button,
.wp-block-buttons,
.game-card__cta {
  display: none !important;
}

/* ── Body / typography ────────────────────────────────────────── */

* {
  background-color: transparent !important;
  background-image: none !important;
  color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

a,
a:visited {
  color: #000 !important;
  text-decoration: underline;
}

/* Append the URL after external links so the printed page is useful
   without the live site (skip mailto: and tel: which read awkwardly). */
a[href^="http"]:not([href*="monkeysee.games"])::after {
  content: " (" attr(href) ")";
  font-size: 9pt;
  font-style: italic;
}

img {
  max-width: 100% !important;
  page-break-inside: avoid;
}

/* ── Mechanics chips: keep legible with strong border ─────────── */

.bgp-chip,
.card-mechanics .bgp-chip,
.game-mechanics-label {
  border: 1px solid #000 !important;
  color: #000 !important;
  background: #fff !important;
  padding: 2px 6px !important;
  font-weight: 600;
}

.card-mechanics,
.game-mechanics-label {
  color: #000 !important;
}

/* ── Stats bar: thin rules instead of tinted band ─────────────── */

.bgp-stats,
.game-stats,
.card-stats,
#bgp-game-content .game-stats,
#bgp-game-content .game-data-band .game-stats {
  border-top: 1px solid #000 !important;
  border-bottom: 1px solid #000 !important;
  background: #fff !important;
  padding: 6pt 0 !important;
  margin-block: 8pt !important;
}

.game-stats .game-stat,
.card-stats .card-stat {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
}

/* Strip the decorative emoji icons that won't render predictably in
   print drivers. */
.game-stats .game-stat::before {
  display: none !important;
}

/* ── Page-break discipline ────────────────────────────────────── */

.game-card,
.bgp-card-lift,
#bgp-game-content,
#bgp-game-content .game-hero,
#bgp-game-content .game-hero-image,
.game-data-band {
  page-break-inside: avoid;
}

h1, h2, h3 {
  page-break-after: avoid;
}

p, li {
  orphans: 3;
  widows: 3;
}
