/* Presentation only: the shared league context, editors and publication rules stay unchanged. */
html body .admin_main_content :is(.fixture-management-card,.fixture-order-card) :is(.fixture-editor-card,.fixture-summary-card,.fixture-order-item){background:#092333!important;border:1px solid #305164!important;border-radius:10px!important;box-shadow:0 4px 12px #0002!important;overflow:hidden}
html body .admin_main_content :is(.fixture-management-card,.fixture-order-card) :is(.fixture-editor-heading,.fixture-summary-card>header){background:#103345!important;border-bottom:1px solid #305164!important;padding:9px 12px!important}
html body .admin_main_content .fixture-editor-heading b{color:#d0f500}
html body .admin_main_content .fixture-editor-footer{background:#071c2a!important;border-top:1px solid #284958!important}
html body .admin_main_content .fixture-summary-card footer{background:#0d2c3c!important;border-top:1px solid #284958!important}
html body .admin_main_content .fixture-summary-match{padding:18px 12px}
html body .admin_main_content :is(.stats-entry-panel,.stats-context-panel,.stats-publication-toolbar,.stats-snapshot,.stats-empty-state){background:#092333!important;border:1px solid #305164!important;border-radius:10px!important;box-shadow:0 4px 12px #0002!important;overflow:hidden}
html body .admin_main_content .stats-entry-panel>header{background:#103345!important;border-bottom:1px solid #305164;padding:14px 16px}
html body .admin_main_content .stats-table-scroll{padding-top:0;margin-top:0}
html body .admin_main_content .stats-modern-table{margin-top:0;border-spacing:0}
html body .admin_main_content .stats-modern-table thead th{background:#102d3d!important;color:#b9cdd8!important;border-bottom:1px solid #305164}
html body .admin_main_content .stats-modern-table tbody tr:hover{background:#123547!important}
html body .admin_main_content .stats-modern-table .stats-club-rank{background:#c9ef0020;color:#d0f500;border:1px solid #c9ef0040;border-radius:6px}
/* Public Calendar/Stats and modern admin tables already share lp-card markup. */
html body .lp-page:has(.mc-league-card)>.lp-card,
html body .admin_main_content .lp-ops:has(.mc-league-card)>.lp-card{background:#092333!important;border:1px solid #305164!important;border-radius:10px!important;padding:0!important;margin:18px 0!important;overflow:hidden;box-shadow:0 4px 12px #0002!important}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card>h2{margin:0!important;padding:13px 16px!important;font-size:18px!important;background:#103345;border-bottom:1px solid #305164;color:#edf4f7}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card>.lp-table-wrap{padding:0;margin:0;overflow-x:auto}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card table{width:100%;margin:0;border-collapse:collapse;border-spacing:0}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card table th,
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card table td{padding:11px 14px;border-bottom:1px solid #28495880;vertical-align:middle}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card table thead th{background:#0c293a;color:#b9cdd8;font-size:12px;white-space:nowrap}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card tbody tr:nth-child(even){background:#0c293a80}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card tbody tr:hover{background:#123547}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card tbody tr:last-child :is(th,td){border-bottom:0}
html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card tbody td:last-child{color:#d0f500;font-weight:700}
html body .lp-page:has(.mc-league-card)>h1{padding-bottom:16px;border-bottom:1px solid #284958;margin-bottom:18px}
html body .lp-page:has(.mc-league-card)>.mc-page-label{font-size:20px;margin:22px 0 12px;color:#edf4f7;border-left:3px solid #c8f000;padding-left:12px}
html body .admin_main_content .lp-ops:has(.mc-row-form)>.fp-setup-panel{background:#092333!important;border:1px solid #305164!important;box-shadow:0 4px 12px #0002!important}
html body .admin_main_content .lp-ops:has(.mc-row-form)>.fp-setup-panel>h3{padding-bottom:12px;border-bottom:1px solid #305164;color:#58e4eb}
html body .admin_main_content .lp-ops .fp-setup-panel details{margin:8px 0;border:1px solid #284958;border-radius:6px;background:#071c2a;overflow:hidden}
html body .admin_main_content .lp-ops .fp-setup-panel details>summary{padding:12px;cursor:pointer;background:#0e2f40}
html body .admin_main_content .lp-ops .fp-setup-panel details>form{padding:12px}
@media(max-width:650px){html body :is(.lp-page,.lp-ops):has(.mc-league-card)>.lp-card table :is(th,td){padding:9px 10px}}
/* Label/input alignment for additional league scheduling options. */
html body .admin_main_content .config-scheduling-fields>h2{font-size:16px;margin:0 0 14px;color:#edf4f7}
html body .admin_main_content .config-scheduling-fields .config-form-grid>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:700}
html body .admin_main_content .config-scheduling-fields :is(input,select){width:100%;min-width:0;height:40px;box-sizing:border-box;padding:8px 10px;border:1px solid #365666;border-radius:6px;background:#061925;color:#edf4f7;font:inherit}
/* Help text occupies its own row, so both filter controls share a baseline. */
html body .mc-round-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:start}
html body .mc-round-filter>label{display:grid;grid-template-rows:auto 40px auto;align-content:start}
html body .mc-round-filter>button{align-self:start;margin-top:24px}
html body .lp-ops:has(.mc-admin-stats-view){width:min(1536px,calc(100% - 64px));max-width:1536px;padding-top:36px;margin-left:auto;margin-right:auto}
html body .lp-ops:has(.mc-admin-stats-view)>h1{border-bottom:1px solid #284958;padding-bottom:16px;margin-bottom:18px}
html body .mc-admin-stats-view>.mc-league-card{margin-top:0}
html body .mc-standings-empty{border:1px solid #305164!important;border-radius:10px!important;overflow:hidden;padding:0!important;background:#092333!important}
html body .mc-standings-empty>h2{margin:0;padding:14px 16px;background:#103345;border-bottom:1px solid #305164;font-size:18px}
html body .mc-standings-empty>div{padding:16px}
html body a.mc-empty-action{display:inline-block;margin-top:12px;background:#c8f000;color:#06111b;padding:10px 14px;border-radius:6px;font-weight:700;text-decoration:none}
html body .mc-standings-card .mc-club{display:flex;align-items:center;gap:10px;min-width:155px;text-align:left}
html body .mc-club-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #335968;border-radius:6px;background:#14394a;color:#58e4eb;overflow:hidden;text-transform:uppercase}
html body .mc-club-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:2px;box-sizing:border-box;background:#092333}
html body .mc-club-avatar img[hidden]{display:none}
html body .mc-rank{display:inline-flex;min-width:24px;height:24px;align-items:center;justify-content:center;background:#c9ef0015;border:1px solid #c9ef0040;border-radius:5px;color:#d0f500}
html body .mc-points{display:inline-flex;min-width:27px;height:27px;padding:0 4px;box-sizing:border-box;align-items:center;justify-content:center;border-radius:50%;background:#c8f000;color:#06111b;font-weight:800}
html body .mc-standings-card .mc-table-disclosure{padding:12px;text-align:center;border-top:1px solid #284958;background:#071c2a}
html body .mc-table-disclosure button{border:1px solid #c9ef0060;border-radius:18px;background:#c9ef0015;color:#d0f500;padding:7px 14px;cursor:pointer;font:inherit;font-weight:700}
html body .mc-table-disclosure button:focus-visible{outline:2px solid #58e4eb;outline-offset:3px}
@media(min-width:701px){html body .mc-collapsed .mc-extra-team{display:none}}
@media(max-width:700px){html body .mc-table-disclosure{display:none}html body .mc-round-filter{grid-template-columns:1fr}html body .mc-round-filter>button{margin-top:0;width:100%}html body .lp-ops:has(.mc-admin-stats-view){width:calc(100% - 32px)}}
/* Beat the older .lp-page .mc-selector button reset explicitly. */
html body .lp-page form.mc-selector.mc-round-filter>label{font-size:13px;line-height:18px;gap:6px}
html body .lp-page form.mc-selector.mc-round-filter>button{margin:24px 0 0!important;align-self:start;height:40px;min-height:40px}
html body .lp-page .mc-standings-card .mc-table-disclosure>button{color:#d0f500!important;background:#1b3422;border:1px solid #728d25;line-height:1.3}
html body .lp-page .mc-standings-card .mc-table-disclosure>button:hover{background:#294b2d;color:#edffab!important}
@media(max-width:700px){html body .lp-page form.mc-selector.mc-round-filter>button{margin:0!important;width:100%}}
/* Identical table tracks in every round keep scores and vs aligned. */
html body .lp-page .mc-round-card table.mc-fixture-table{table-layout:fixed;width:100%;min-width:850px}
.mc-fixture-table .mc-fixture-col{width:52%}.mc-fixture-table .mc-kickoff-col{width:auto}.mc-fixture-table .mc-result-col{width:110px}
html body .lp-page .mc-round-card .mc-fixture-table :is(th,td).mc-result-cell{text-align:right;padding-right:20px;white-space:nowrap;font-variant-numeric:tabular-nums}
html body .lp-page .mc-round-card .mc-matchup{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:8px}
html body .lp-page .mc-round-card .mc-fixture-club{display:flex;align-items:center;gap:8px;min-width:0}
html body .lp-page .mc-round-card .mc-club-name{overflow-wrap:anywhere;line-height:1.35}
html body .lp-page .mc-round-card .mc-versus{text-align:center;font-size:12px;font-weight:700;color:#93b5c5}
html body .lp-page .mc-round-card .mc-kickoff-cell{font-size:13px;font-variant-numeric:tabular-nums}
html body .lp-page .mc-stats-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:16px 0}
html body .lp-page .mc-stats-meta>p{margin:0;flex:0 1 36%;font-size:14px}
html body .lp-page .mc-stats-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 12px;flex:1;max-width:680px;color:#b9cdd8;font-size:11px;line-height:1.6;text-align:right}
html body .lp-page .mc-stats-legend>span{white-space:nowrap}
.mc-stats-legend b{display:inline-block;padding:0 4px;border-radius:3px;background:#14394a;color:#58e4eb}
.mc-stats-legend .mc-key-wins b,.mc-stats-legend .mc-key-points b{background:#c9ef001a;color:#d0f500}
.mc-stats-legend .mc-key-draws b{background:#ffb4001a;color:#ffd166}
.mc-stats-legend .mc-key-losses b{background:#ff72721a;color:#ffaaaa}
.mc-stats-legend .mc-key-difference b{background:#c4a7ff1a;color:#d4bcff}
@media(max-width:700px){html body .lp-page .mc-stats-meta{flex-direction:column;gap:8px}html body .lp-page .mc-stats-legend{justify-content:flex-start;text-align:left}}
/* Separate team columns place the label and each club on the same track. */
.mc-fixture-table .mc-home-col,.mc-fixture-table .mc-away-col{width:200px}
.mc-fixture-table .mc-vs-col{width:28px}
html body .lp-page .mc-round-card .mc-fixture-table .mc-home-cell{text-align:left;padding-left:16px;padding-right:12px}
html body .lp-page .mc-round-card .mc-fixture-table .mc-away-cell{text-align:right;padding-left:12px;padding-right:16px}
html body .lp-page .mc-round-card .mc-fixture-table .mc-vs-cell{text-align:center;padding-left:0;padding-right:0}
html body .lp-page .mc-round-card .mc-home-cell .mc-fixture-club{justify-content:flex-start;flex-direction:row;text-align:left}
html body .lp-page .mc-round-card .mc-away-cell .mc-fixture-club{justify-content:flex-start;flex-direction:row-reverse;text-align:right}
.mc-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Remove the previous vertical padding that raised the reset text. */
html body .mc-league-card>form.mc-selector>a{align-self:flex-end;display:block;margin:0;padding:0;line-height:16px}

/* Standings title and legend share the card header. */
html body .lp-page .mc-standings-card>.mc-standings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#103345;border-bottom:1px solid #305164}
html body .lp-page .mc-standings-heading>h2{margin:0;padding:0;border:0;font-size:18px;flex-shrink:0}
html body .lp-page .mc-standings-heading>.mc-stats-legend{margin:0;margin-left:auto}
@media(max-width:700px){html body .lp-page .mc-standings-card>.mc-standings-heading{flex-wrap:wrap}html body .lp-page .mc-standings-heading>.mc-stats-legend{flex-basis:100%;margin-left:0}}

/* Separate the compact matchup from its kickoff information. */
html body .lp-page .mc-round-card .mc-fixture-table tr>:nth-child(4){padding-left:24px;padding-right:24px;text-align:left}

html body .lp-page .mc-round-card .mc-kickoff-block{display:block;width:260px;max-width:100%;margin-inline:auto;text-align:left}
