/* Keep every offer card on the same reading grid, including the optional pack label. */
@media (min-width: 801px) {
  .classes-page .offer-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }

  .classes-page .offer-list article {
    min-height: 31rem;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(8.25rem, auto) minmax(2.5rem, auto) minmax(7.2rem, auto) minmax(2.6rem, auto) auto;
    align-items: start;
  }

  .classes-page .offer-list article > span { grid-row: 1; }
  .classes-page .offer-list article > h3 { grid-row: 2; }
  .classes-page .offer-list article > .offer-pack { grid-row: 3; }
  .classes-page .offer-list article > p { grid-row: 4; min-height: 0; }
  .classes-page .offer-list article > strong { grid-row: 5; margin-top: 0; min-height: 0; }
  .classes-page .offer-list article > a {
    grid-row: 6;
    align-self: end;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    margin-top: 1rem;
    padding: .85rem 1.35rem;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  }

  .classes-page .offer-list article > a:hover,
  .classes-page .offer-list article > a:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--black);
    transform: translateY(-3px);
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .classes-page .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .classes-page .offer-list article {
    min-height: 0;
    height: auto;
    display: flex;
  }

  .classes-page .offer-list article > a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 3rem;
    margin-top: 1rem;
    padding: .85rem 1.35rem;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: #fff;
  }
}
