/* Crests are in the markup always; a block shows them only while its
   own toggle is on (.show-club-logos). */
.club-logo {
  display: none;
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 2px;
  flex: 0 0 auto;
  pointer-events: none;
}
.show-club-logos .club-logo { display: inline-block; }

.p-club-abbr-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 0;
}
.p-club-abbr-wrap .club-logo { margin-left: 0; }

.club-logo-toggle {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid var(--border, #ccc);
  background: var(--surface-alt, transparent);
  color: var(--text-dim, #666);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.club-logo-toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-shadow: inset 0 -3px 0 0 currentColor;
}
.club-logo-toggle[aria-pressed="true"] {
  color: var(--accent, #3d7eff);
  border-color: var(--accent, #3d7eff);
  background: color-mix(in srgb, var(--accent, #3d7eff) 18%, transparent);
}

.season-cal-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 0.4rem;
  background: #fff;
  border-bottom: 1px solid #ccc;
}
.season-cal-wrap .club-logo-toggle {
  color: #333;
  border-color: #bbb;
  background: #fff;
}
.season-cal-wrap .club-logo-toggle[aria-pressed="true"] {
  color: #1a5fd0;
  border-color: #1a5fd0;
  background: #e7f0ff;
}
.show-club-logos .season-cal .sc-day { min-width: 3.7rem; }
.show-club-logos .season-cal .sc-team { min-width: 4.6rem; }
.season-cal .club-logo,
.pd-cal-opp .club-logo {
  width: 12px;
  height: 12px;
}

.pd-modes { position: relative; }
.pd-modes .club-logo-toggle { margin-left: auto; }
