/* Evolving Notebook — print stylesheet (loaded with media="print").
   Notes pages: Cornell layout with visible rules and generous writing space
   (drops into Samsung Notes for hand annotation).
   Deck page: hides the viewer and prints the 2x4-inch card sheet instead. */

/* 0.25in page margin so the 8in-wide flashcard pair fits on letter paper;
   text pages add their own padding below to get comfortable margins. */
@page { margin: 0.25in; }

.no-print, .site-header, .toolbar, .nb-pager, #lock-banner { display: none !important; }

body { background: #fff; color: #000; }
.container { max-width: none; padding: 0.25in; }
a { color: #000; text-decoration: none; }

.note-body { border: none; border-radius: 0; }
.tag-chip { background: none; color: #444; border: 1px solid #999; }
.xref { color: #000; border-bottom: none; }

/* Cornell layout in print: keep the cue line and summary rules, add extra
   writing room per section. */
.cornell { overflow: visible; }
.cornell-cue { border-right: 1.5px solid #444; padding-bottom: 0.6in; }
.cornell-row { border-top: 1px solid #999; break-inside: auto; }
.cornell-notes { line-height: 2.0; }
.cornell-summary { border-top: 1.5px solid #444; }
.summary-line { border-bottom: 1px solid #999; height: 0.4in; }

.quiz-q { border: 1px solid #bbb; break-inside: avoid; }
.key-table td { border-bottom: 1px solid #bbb; }

/* ---------- flashcard 2x4 sheet ---------- */
/* Each card = FRONT cell + BACK cell side-by-side horizontally (8in x 2in pair).
   Pairs pack down the page; a pair is never split across pages. */

body[data-page="deck"] .fc-stage,
body[data-page="deck"] .page-head { display: none !important; }

body[data-page="deck"] { margin: 0; }

.fc-print { display: block !important; }

.fc-print-title {
  font-size: 9pt; color: #555; margin: 0 0 0.08in;
}

.fc-pair {
  display: flex;
  width: 8in;
  height: 2in;
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 0.08in 0;
}

.fc-cell {
  width: 4in;
  height: 2in;
  border: 1px dashed #888;          /* cut lines */
  padding: 0.12in;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.fc-cell + .fc-cell { border-left: none; }

.fc-cell-label {
  position: absolute; top: 0.04in; left: 0.08in;
  font-size: 5.5pt; letter-spacing: 0.08em; color: #999;
}

.fc-cell-text { font-size: 11pt; line-height: 1.25; }
.fc-back .fc-cell-text { font-size: 9.5pt; }

/* Deck page uses the full printable width so the 8in pair fits. */
body[data-page="deck"] .container { padding: 0; }
