/* League One Match Centre preview v5: universal team links + reusable form dots. */

.l1mc-universal-team-link,
.l1mc-row-team-profile-link,
.l1mc-pm-team-profile-link{
  color:inherit;
  text-decoration:none;
}
.l1mc-universal-team-link:hover,
.l1mc-universal-team-link:focus-visible,
.l1mc-row-team-profile-link:hover,
.l1mc-row-team-profile-link:focus-visible,
.l1mc-pm-team-profile-link:hover,
.l1mc-pm-team-profile-link:focus-visible{
  color:#67d9f4;
  text-decoration:underline;
  outline:none;
}

/* Generic compact form strip used outside the standard standings table. */
.l1mc-universal-form-mini{
  display:flex;
  align-items:center;
  gap:2px;
  width:max-content;
  margin-top:3px;
  line-height:1;
  overflow:visible;
}
.l1mc-universal-form-mini button.l1mc-form-dot{
  appearance:none;
  display:block;
  position:relative;
  flex:0 0 auto;
  width:7px;
  height:5px;
  padding:0;
  border:0;
  border-radius:2px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  cursor:pointer;
  overflow:visible;
  font-size:0;
  line-height:0;
}
.l1mc-universal-form-mini button.l1mc-form-dot.w{background:#1f7054;}
.l1mc-universal-form-mini button.l1mc-form-dot.d{background:var(--result-draw);}
.l1mc-universal-form-mini button.l1mc-form-dot.l{background:#743b48;}
.l1mc-universal-form-mini button.l1mc-form-dot:focus-visible{outline:2px solid #7af3ff;outline-offset:2px;}

/* Run-in: keep the analysis unchanged; add Last-6 directly under the club. */
.insight-table.runin-view .team-col .insight-team-button{display:block;}
.insight-table.runin-view .team-col .l1mc-runin-form{justify-content:flex-start;}

/* Handicap tables: same clickable club + Last-6 treatment as the league table. */
#handicapTable.handicap-table td.handicap-team .l1mc-handicap-team-link{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.18;
}
#handicapTable.handicap-table td.handicap-team .l1mc-handicap-form{
  justify-content:flex-start;
}

/* Match list: the row remains the match target while club names are independent links. */
.l1mc-match-row[role="button"]:focus-visible{
  border-color:rgba(0,218,232,.55);
  outline:2px solid rgba(0,218,232,.26);
  outline-offset:1px;
}
.l1mc-row-team-profile-link{font:inherit;font-weight:inherit;}

@media (max-width:700px){
  .l1mc-universal-form-mini button.l1mc-form-dot{width:7px;height:6px;}

  /* The mobile Run-in header becomes two rows only for the team/form area;
     position and summary remain vertically centred and the analysis grid stays unchanged. */
  .runin-card-head .runin-card-pos{grid-column:1;grid-row:1 / span 2;align-self:center;}
  .runin-card-head .runin-card-team{grid-column:2;grid-row:1;}
  .runin-card-head .l1mc-runin-form{grid-column:2;grid-row:2;margin-top:2px;}
  .runin-card-head .runin-card-summary{grid-column:3;grid-row:1 / span 2;align-self:center;}

  #handicapTable.handicap-table td.handicap-team .l1mc-handicap-team-link{font-size:13px;}
}
