.cheat-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.cheat-sheet-column {
  min-width: 0;
}

.cheat-sheet-column h2 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.cheat-sheet-column table {
  width: 100%;
}

.cheat-sheet-column td:first-child {
  white-space: nowrap;
}

.cheat-sheet code {
  overflow-wrap: anywhere;
}

@media screen and (max-width: 700px) {
  .cheat-sheet-grid {
    grid-template-columns: 1fr;
  }
}

@page {
  size: landscape;
  margin: 0.32in;
}

@media print {
  header,
  footer,
  nav,
  aside,
  .navbar,
  .sidenav,
  .toc,
  .contribution,
  .back-to-top,
  .cheat-sheet-print-note {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  main,
  article,
  .container,
  .content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cheat-sheet {
    color: #000;
    font-size: 10pt;
    line-height: 1.28;
  }

  .cheat-sheet a,
  .cheat-sheet code,
  .cheat-sheet pre *,
  .cheat-sheet th,
  .cheat-sheet td {
    color: #000 !important;
  }

  .cheat-sheet pre,
  .cheat-sheet th,
  .cheat-sheet td {
    background: transparent !important;
  }

  .cheat-sheet code {
    font-size: 0.9em;
  }

  .cheat-sheet h1 {
    font-size: 19pt;
    margin: 0 0 0.08in;
  }

  .cheat-sheet h2 {
    font-size: 11.5pt;
    margin: 0.1in 0 0.04in;
  }

  .cheat-sheet p,
  .cheat-sheet ul,
  .cheat-sheet table,
  .cheat-sheet pre {
    margin: 0 0 0.08in;
  }

  .cheat-sheet ul {
    padding-left: 1.2em;
  }

  .cheat-sheet li {
    margin-bottom: 0.02in;
  }

  .cheat-sheet pre {
    padding: 0.04in;
    overflow: visible;
    white-space: pre;
  }

  .cheat-sheet pre code {
    font-size: 8.5pt;
  }

  .cheat-sheet th,
  .cheat-sheet td {
    padding: 0.03in;
  }

  .cheat-sheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.18in;
  }
}
