/* The league pages on the classic redesign (include_files/lg_helpers.asp): the header, the statistics' tabs, the leaderboards.
   Needs css/club-info.css (cards, hero, table) and css/squad.css (tabs, position pills, sq-t). */
.inf .lg-head {
  flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px;
  background: radial-gradient(ellipse at top left, #2f5a37 0%, transparent 70%), linear-gradient(180deg, #13321c 0%, #1f5426 100%);
  border-color: #1f5426; color: #fff;
}
.lg-head .inf-hero__body { flex: 1 1 240px; min-width: 0; }
.inf .lg-head .inf-eyebrow { display: flex; align-items: center; gap: 6px; color: #9fc48f; }
.inf .lg-head .inf-hero__name { margin: 2px 0 0; font-size: 20px; color: #fff; }
.inf .lg-head a.inf-btn2 { border-color: rgba(255,255,255,0.55); background: transparent; color: #fff; }
.inf .lg-head a.inf-btn2:hover { background: #fff; color: #1f4d0f; }
.inf .lg-head span.inf-btn2.is-on { display: inline-flex; align-items: center; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #2f6b22; font-weight: bold; }
.lg .lg-flag { vertical-align: 0; }
.lg .lg-tabs { margin-top: 10px; border-radius: 12px 12px 0 0; }
.lg .lg-tabs + .lg-card { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
/* the leaderboard */
.lg .lg-c-rank { width: 1%; text-align: center; }
.lg .lg-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; background: #f3f8e6; font-size: 12px; font-weight: bold; color: #4a5640; }
.lg .lg-rank--1 { background: linear-gradient(180deg, #ffe27a, #e0a800); color: #4a3400; }
.lg .lg-rank--2 { background: linear-gradient(180deg, #eef1f4, #b8c2cc); color: #2d3640; }
.lg .lg-rank--3 { background: linear-gradient(180deg, #f3c9a0, #c8844a); color: #4a2a10; }
.lg .lg-player { display: inline-flex; align-items: center; gap: 6px; }
.lg .lg-player a { font-weight: bold; }
.lg .lg-sub { display: none; }
.lg .lg-c-stat { white-space: nowrap; }
.lg td.lg-c-stat { font-size: 14px; font-weight: bold; color: #1f4d0f; font-variant-numeric: tabular-nums; }
.lg tr.lg-mine td { background: #fbfdf3; }
.lg tr.lg-mine .lg-c-club a, .lg tr.lg-mine .lg-sub a { font-weight: bold; }
/* the referees */
.lg .lg-style { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #f3f8e6; font-size: 11px; font-weight: bold; color: #4a5640; }
.lg .lg-style--1 { background: #fbdcd6; color: #9a3420; }
.lg .lg-style--2 { background: #e8f0fa; color: #2457a6; }
.lg .lg-card-y, .lg .lg-card-r { display: none; width: 9px; height: 12px; border-radius: 2px; vertical-align: -1px; }
.lg .lg-card-y { background: #f2c200; }
.lg .lg-card-r { background: #d9342b; }

/* historial.asp: the seasons and the all-time records */
.lg .hi-c-ep { width: 1%; white-space: nowrap; }
.lg .hi-ep { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 6px; background: #f3f8e6; font-weight: bold; text-align: center; color: #23301a; }
.lg .hi-cup { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px 3px 6px 6px; background: linear-gradient(180deg, #ffe27a, #e0a800); vertical-align: -1px; }
.lg .hi-n { color: #7a8570; font-size: 11px; white-space: nowrap; }
.lg .hi-n::before { content: "("; }
.lg .hi-n::after { content: ")"; }
.lg .hi-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lg .hi-rec { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: #f7faef; box-shadow: inset 0 0 0 1px #e3ecd0; }
.lg .hi-rec__k { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.8px; color: #6b7760; }
.lg .hi-rec__v { font-size: 15px; color: #1f4d0f; overflow-wrap: anywhere; }
.lg .hi-rec__s { font-size: 12px; color: #4a5640; overflow-wrap: anywhere; }

/* onze_ideal.asp: the eleven on a pitch (Field) or as a table (List) */
.lg .oi-sw { display: flex; justify-content: flex-end; margin: 10px 0 0; }
.lg .oi-list { display: none; margin: -10px -14px -12px; }
.lg.is-dense .oi-list { display: block; }
.lg.is-dense .oi-pitch { display: none; }
.lg .oi-pitch {
  display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-height: 380px; padding: 14px 8px; border-radius: 12px;
  background: repeating-linear-gradient(180deg, #3f8f2f 0 38px, #3a862b 38px 76px); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  position: relative; overflow: hidden;
}
.lg .oi-pitch::before { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; }
.lg .oi-pitch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255,255,255,0.3); }
.lg .oi-line { position: relative; z-index: 1; display: flex; justify-content: space-evenly; gap: 6px; }
.lg a.oi-tok {
  display: flex; flex-direction: column; align-items: center; gap: 1px; width: 112px; min-width: 0; padding: 6px 4px; border-radius: 10px;
  background: rgba(255,255,255,0.92); box-shadow: 0 2px 6px rgba(0,0,0,0.25); text-align: center; text-decoration: none; color: #23301a;
}
.lg a.oi-tok:hover { background: #fff; }
.lg a.oi-tok.lg-mine { box-shadow: 0 0 0 2px #f2c200, 0 2px 6px rgba(0,0,0,0.25); }
.lg .oi-tok__r { min-width: 34px; padding: 1px 6px; border-radius: 999px; background: #2f6b22; font-size: 12px; color: #fff; }
.lg .oi-tok__n { max-width: 100%; overflow: hidden; font-size: 12px; font-weight: bold; text-overflow: ellipsis; white-space: nowrap; }
.lg .oi-tok__c { max-width: 100%; overflow: hidden; font-size: 10px; color: #6b7760; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .lg .lg-tabs { overflow-x: auto; }
}

@media (max-width: 820px) {
  .inf .lg-head { padding: 8px 10px; }
  .inf .lg-head .inf-hero__name { font-size: 17px; }
  .lg .lg-nav { flex-wrap: nowrap; gap: 4px; }
  .inf .lg-head .lg-nav .inf-btn2 { min-height: 28px; padding: 3px 8px; font-size: 11px; }
  .lg th.lg-c-stat { white-space: normal; }
  .lg .lg-c-club { display: none; }
  .lg .lg-sub { display: block; margin-top: 2px; font-size: 11px; }
  .lg .lg-sub a { font-weight: normal; }
  .lg .lg-t th, .lg .lg-t td { padding-left: 4px; padding-right: 4px; }
  .lg .lg-hide-s { display: none; }
  .lg .lg-card-y, .lg .lg-card-r { display: inline-block; }
  .lg .hi-recs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lg .oi-pitch { min-height: 340px; padding: 10px 4px; gap: 8px; }
  .lg .oi-line { gap: 3px; }
  .lg a.oi-tok { width: auto; flex: 1 1 0; max-width: 92px; padding: 4px 2px; }
  .lg .oi-tok__n { font-size: 10px; }
  .lg .oi-tok__c { display: none; }
  .lg .oi-list { margin: -10px -10px -12px; }
}
