/* Chess Notebook — print rules, loaded with media="print" on top of the
   shared assets/print.css.

   Two things matter here: the annotation rail must survive as real blank paper
   on the right, and boards must stay correct in both color and greyscale. */

@page { margin: 0.35in; }

body[data-branch="chess"] { background: #fff; }

/* The rail becomes a genuine right margin — 2.2in of clear paper on letter,
   which is the room to mark up in Samsung Notes. */
.note-body.hs-host.chess-host {
  padding: 0;
  padding-right: 2.2in;
  border: none;
}

/* Boards keep their real colors on a color printer; in greyscale the light and
   dark squares sit ~38 luminance points apart, so they never merge. */
.cb svg, .cls svg {
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.cb { break-inside: avoid; max-width: 2.6in; }
.cb.cb-small { max-width: 1.8in; }
.cb-row { grid-template-columns: 2.6in 1fr; break-inside: avoid; }

/* A turning point is a unit — diagram, comment and engine line stay together. */
.gm-moment { break-inside: avoid; }
.gm-moment .gm-body { grid-template-columns: 2.6in 1fr; }
.gm-head, .gm-stats, .gm-questions { break-inside: avoid; }
.movelist { break-inside: auto; }
.movelist tr { break-inside: avoid; }

/* Screen-only chrome. */
.gm-applink { display: none !important; }

/* Group boundaries still read on paper. */
.grp-divider::after { background: #999; }
