@page {
  size: A4 portrait;
  margin: 12mm;
}

body {
  background: #fff !important;
}

.generator-hero,
.generator-panel,
.print-actions,
.mode-tabs {
  display: none !important;
}

.word-search-page {
  width: 100%;
  padding: 0;
}

.preview-panel {
  box-shadow: none;
  border: 0;
  padding: 0;
}

.grid-preview {
  page-break-inside: avoid;
  gap: var(--cell-gap, 4px);
}

.cell {
  border: 1.5px solid #111;
  color: #111;
  font-size: 18pt;
}

.cell.answer {
  background: #fff;
  outline: var(--print-answer-outline, 4px) solid #111;
  outline-offset: calc(var(--print-answer-outline, 4px) * -1);
}

body.print-answer .cell.answer {
  background: repeating-linear-gradient(45deg, #fff, #fff 4px, #ddd 4px, #ddd 8px);
}

body.print-mono .cell,
body.print-mono .cell.answer {
  color: #000;
  border-color: #000;
}

body.landscape {
  size: A4 landscape;
}

body[data-print-font-size="large"] .cell {
  font-size: 16pt;
}

body[data-print-font-size="extra-large"] .cell {
  font-size: 18pt;
}

body[data-print-font-size="full"] .cell {
  font-size: 22pt;
}

body.print-fit .grid-preview {
  width: min(100%, 180mm);
}

.word-list {
  font-size: 14pt;
}
