/* Small-screen fixes for the compiled tailwind.css, which was built without responsive variants. */
@media (max-width: 767px) {
  .max-w-6xl.flex-row {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
  }
  .max-w-6xl.flex-row.py-24 {
    align-items: stretch;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .grid-cols-5 {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .col-span-2,
  .col-span-3 {
    grid-column: auto;
  }
  .w-1\/2 {
    width: 100%;
  }
  .p-12 {
    padding: 1.5rem;
  }
  .text-4xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .gap-20 {
    gap: 3rem;
  }
}

/* Contrast: the compiled red on light grey and the code colour for keys sit just under 4.5:1. */
.bg-stone-100.text-primary-600 {
  color: #b91c1c;
}
.token.string-property {
  color: #f28b94 !important;
}

/* Phones: keep the code window and the limits grid inside the screen. */
@media (max-width: 767px) {
  pre {
    overflow-x: auto;
    max-width: 100%;
  }
  .mt-10.grid.gap-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .mt-10.grid.gap-6 > div {
    padding: 1rem;
  }
  img {
    max-width: 100%;
  }
}

/* Sticky "Pick PDFs" button: phones only, hidden while the upload form is on screen. */
.pick-pdfs {
  display: none;
}
@media (max-width: 767px) {
  .pick-pdfs {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
  }
  .pick-pdfs.is-hidden {
    display: none;
  }
  footer.py-10 {
    padding-bottom: 6rem;
  }
}
