/* Responsive defects found in the 26 October preview audit. */
/* The directory shares card classes with the fixed-width homepage marquee. */
.post-type-archive-alumni .alumni-section,
.page-template-archive-alumni .alumni-section { padding-inline:var(--page-gutter); }
.alumni-section .alumni-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.alumni-grid > .alumni-card { width:auto; min-width:0; }
.alumni-grid :is(.card-name,.card-role,.card-org,.card-footer) { min-width:0; overflow-wrap:anywhere; }
.alumni-grid .card-footer > div { min-width:0; }
.alumni-grid .card-season { white-space:normal; }
@media(max-width:1280px) { .alumni-section .alumni-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1024px) { .alumni-section .alumni-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:768px) { .alumni-section .alumni-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .alumni-section .alumni-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:640px) {
  .post-type-archive-alumni .filter-right,
  .page-template-archive-alumni .filter-right { width:100%; min-width:0; margin-left:0; flex-wrap:wrap; }
  .post-type-archive-alumni .sort-wrap,
  .page-template-archive-alumni .sort-wrap { flex:1 1 180px; min-width:0; }
  .sort-wrap .filter-select { flex:1; min-width:0; max-width:100%; }
}

/* Footer icon-button sizing must not constrain the labelled contact links. */
.contact-right .social-links { align-items:stretch; }
.contact-right .social-link { width:100%; height:auto; min-height:58px; justify-content:flex-start; }
.contact-right .social-link > div:not(.social-icon) { min-width:0; overflow-wrap:anywhere; }
.contact-body > * { min-width:0; }
.contact-left .enquiry-card > div:last-child { min-width:0; }
.contact-left .enquiry-link { max-width:100%; overflow-wrap:anywhere; }
@media(max-width:1024px) { .contact-body { grid-template-columns:minmax(0,1fr); } }
@media(max-width:400px) {
  .contact-left .enquiry-card { padding:18px; gap:12px; }
  .about-hero .hero-stat { padding:16px 12px; }
}
.about-hero .hero-stat-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.about-hero .hero-stat { min-width:0; }
.about-hero .hero-stat-l { overflow-wrap:anywhere; }

/* Closed popups must also be absent from keyboard and accessibility navigation. */
.modal-overlay[hidden] { display:none; }
.modal-top-inner > div:last-child { min-width:0; overflow-wrap:anywhere; }
@media(max-width:480px) {
  #modalOverlay .modal-top-inner { flex-direction:column; gap:16px; }
  #modalOverlay .modal-top { padding:28px 24px 24px; }
  #modalOverlay .modal-body, #modalOverlay .modal-footer { padding:24px; }
  #modalOverlay .modal-close { width:44px; height:44px; top:12px; right:12px; }
}
@media(max-width:1024px) { .nav-hamburger { min-width:44px; min-height:44px; align-items:center; justify-content:center; } }

/* A multi-row filter panel must not obscure the results beneath it. */
.post-type-archive-alumni .filter-bar,
.page-template-archive-alumni .filter-bar { padding-inline:var(--page-gutter); }
@media(max-width:1024px) {
  .post-type-archive-alumni .filter-bar,
  .page-template-archive-alumni .filter-bar { position:static; }
}
@media(max-width:640px) {
  .post-type-archive-alumni .filter-inner,
  .page-template-archive-alumni .filter-inner { align-items:stretch; gap:16px; }
  .post-type-archive-alumni .search-wrap,
  .page-template-archive-alumni .search-wrap { flex:1 1 100%; min-width:0; max-width:none; }
  .post-type-archive-alumni .filter-group,
  .page-template-archive-alumni .filter-group { min-width:0; width:100%; }
}
