/* FTP SERVER BD V5.23 — homepage server cards only.
   Loaded after the existing site CSS; does not change header, category tiles, or admin. */
.directory-section > .server-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%;
}
.directory-section > .server-grid > .server-card {min-width:0;}
/* Tablets, including landscape layouts below desktop width */
@media (min-width:701px) and (max-width:1100px) {
  .directory-section > .server-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
/* Mobile phones */
@media (max-width:700px) {
  .directory-section > .server-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
}
@media (max-width:360px) {
  .directory-section > .server-grid {gap:6px!important;}
}
