/* The page card sits on its own, with the same gap above it (below the header) and below it (above the footer).
   On phones the card runs edge to edge, so there is no gap at the top or the bottom. */
@media (min-width:768px){
  :root{--page-gap:20px}
  .layout{padding-top:var(--page-gap);padding-bottom:var(--page-gap)}
  .main{border-radius:12px}
}

/* A two-column card grid with an odd number of cards: the last card spans the row, so no gap is left. */
.resource-grid .resource:nth-child(odd):last-child{grid-column:1/-1}
