/*
  Leave room for Netlify's fixed "Powered by Netlify" badge
  (64px tall, bottom-right). Do not hide, move, or restyle the badge.
*/
:root {
  --nf-badge-clearance: 6.5rem; /* 104px: 64px badge plus breathing room */
}

/* Picker page */
.wrap {
  padding-bottom: max(var(--nf-badge-clearance), calc(env(safe-area-inset-bottom) + 5.5rem));
}

/*
  On a phone-sized screen, leave a gap after the second edition so the
  badge at the bottom of the first screen sits in empty space, not on a card.
*/
@media (max-width: 430px) and (max-height: 900px) {
  .hero {
    padding-top: 1.15rem;
    padding-bottom: 1rem;
  }
  .card {
    min-height: 7.25rem;
  }
  .edition:nth-child(3) {
    margin-top: 6.25rem;
  }
}

/* Edition app shells: the main column currently uses 1.5rem bottom padding. */
.min-h-dvh .mx-auto.flex.min-h-dvh.w-full.max-w-md.flex-col {
  padding-bottom: max(var(--nf-badge-clearance), calc(env(safe-area-inset-bottom) + 5.5rem));
}

/* Tight enough on a 390x844 phone that all 4 roadblock rows finish above the badge. */
@media (max-width: 430px) and (max-height: 900px) {
  main section.pb-6.pt-6 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  ul[aria-label="Common roadblocks"] {
    gap: 0.5rem;
  }
  ul[aria-label="Common roadblocks"] button {
    min-height: 0;
    padding: 0.7rem 0.8rem;
    gap: 0.4rem;
  }
  /* Push the free-text form below the first screen so the badge sits in the gap. */
  main form {
    margin-top: 5.5rem;
  }
}
