/* Stage-first League Manager V1: compact master/detail selection and wider scheduling fields. */
.league-template-filters {margin-bottom:20px}
.league-template-filters summary {cursor:pointer;display:flex;gap:12px;align-items:center}
.league-template-filters summary small {font-weight:400;color:var(--muted)}
.league-template-filters .form-grid {margin-top:18px}
.league-template-selector {display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.5fr);gap:20px;align-items:start}
.league-template-list,.league-template-detail-area {min-width:0}
.league-template-list h2,.league-template-preview h2 {margin-top:0}
.league-template-links {display:grid;gap:5px;max-height:55vh;overflow:auto}
.league-template-link {display:block;padding:13px 14px;border-radius:9px;border:1px solid transparent;text-decoration:none;color:var(--ink);font-weight:700}
.league-template-link:hover,.league-template-link.is-selected {background:var(--soft);border-color:var(--brand);color:var(--brand-dark)}
.league-template-preview[hidden],.league-template-empty[hidden] {display:none}
.league-template-preview ul {line-height:1.8;padding-left:22px}
.league-template-preview .button {margin-top:12px}
.league-unpublished-note {color:#975b00}
.league-fixture-time {min-width:185px;width:100%;max-width:260px}
.league-fixture-court {min-width:170px;width:100%;max-width:300px}
.league-fixture-table {min-width:760px}
@media (max-width:760px) {
  .league-template-selector {grid-template-columns:1fr}
  .league-template-links {max-height:none}
  .league-template-empty {display:none}
  .league-template-preview:not([hidden]) {display:block}
}


/* Manual fixture scheduling helpers: scoped to League Manager only. */
tr[data-league-slot] { scroll-margin-top: 120px; }
tr[data-league-slot]:target { outline: 2px solid var(--brand); outline-offset: -2px; }
.league-slot-suggested { border-color: var(--brand) !important; }
.league-slot-warning { color: var(--danger); }
[data-slot-feedback] { display: block; max-width: 14rem; margin-top: .35rem; }
[data-league-next-slot] { margin-right: .3rem; white-space: nowrap; }
#league-unscheduled-fixtures .toolbar-actions { margin-top: 1rem; }
