/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.squares-grid-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 0.5rem; /* space for scrollbar */
}

.squares-grid {
  display: grid;
  grid-template-columns: repeat(11, 4rem);
  width: max-content;
  gap: 2px;
}

.square-cell {
  aspect-ratio: 1;
  min-width: 0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: var(--wa-border-radius-s);
  background: var(--wa-color-neutral-0);
}

/* Default: show full name, hide initials */
.square-cell .full-name { display: inline; }
.square-cell .initials  { display: none; }

@media (max-width: 768px) {
  .squares-grid {
    grid-template-columns: repeat(11, 2.5rem);
  }

  .square-cell {
    font-size: 0.6rem;
  }

  .square-cell .full-name { display: none; }
  .square-cell .initials  { display: inline; }

  .square-cell::part(base) {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .team-logo {
    width: 40px;
    height: 40px;
  }
}

.corner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.home-logo-row {
  text-align: center;
  padding: var(--wa-space-s);
}

wa-card {
  max-width: 100%;
  overflow: hidden;
}

