/* Logo wall: ten sponsors as a 5 × 2 grid on desktop, 2 × 5 on phones, no orphan card. */
.sponsor-list-section .sponsor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 22px; margin: 0; padding: 0; list-style: none; }
.sponsor-card { min-width: 0; }
.sponsor-logo-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 4; padding: 14% 12%; overflow: hidden; background: var(--frame, #fff); border: 1px solid #e3dccd; border-radius: 3px; transition: transform .25s ease, box-shadow .25s ease; }
.sponsor-logo-frame img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
/* Square marks would tower over the wide wordmarks at the same padding. */
.sponsor-square .sponsor-logo-frame { padding: 9% 22%; }
.sponsor-sign .sponsor-logo-frame { padding: 4%; }
/* Logos drawn on their own gradient canvas fill the card edge to edge. */
.sponsor-fill .sponsor-logo-frame { padding: 0; }
.sponsor-fill .sponsor-logo-frame img { object-fit: cover; }
.sponsor-list-section .sponsor-grid h3 { margin-top: 14px; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: break-word; }

/* Home-page section: a short intro above the wall, a quiet sponsorship ask below it.
   Scroll margin keeps the heading clear of the top edge when the nav jumps here. */
#partners { scroll-margin-top: 12px; border-top: 1px solid var(--line); }
.sponsor-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.sponsor-intro p { max-width: 420px; font-size: 16px; line-height: 1.85; color: var(--muted); }
.sponsor-ask { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin-top: 54px; font-size: 15px; color: var(--muted); }
.sponsor-ask .text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); }
@media (hover: hover) {
  .sponsor-card:hover .sponsor-logo-frame { transform: translateY(-3px); box-shadow: 0 12px 26px #20342c1c; }
}
@media (max-width: 1050px) { .sponsor-list-section .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sponsor-list-section .sponsor-grid > :nth-child(10) { grid-column: 2; } }
@media (max-width: 700px) {
  .sponsor-list-section .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .sponsor-list-section .sponsor-grid > :nth-child(10) { grid-column: auto; }
  .sponsor-list-section .sponsor-grid h3 { font-size: 18px; margin-top: 10px; }
  .sponsor-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 34px; }
  .sponsor-ask { margin-top: 38px; flex-direction: column; text-align: center; }
}
@media (min-width: 701px) and (max-width: 1050px) { .sponsor-intro { gap: 40px; } }
@media (prefers-reduced-motion: reduce) { .sponsor-logo-frame { transition: none; } }
