/* Matchweek only: legacy destinations retain their existing presentation. */
.mw-page { --mw-line:var(--v3-border); }
.mw-page-heading, .mw-section-heading, .mw-summary-top, .mw-page-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.mw-page-heading { margin:8px 0 24px; }
.mw-page-heading h1 { margin:4px 0 0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.9rem,3.4vw,2.6rem); letter-spacing:-.025em; }
.mw-eyebrow { margin:0; font-size:.75rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--v3-muted); }
.mw-page-actions { font-size:.8125rem; justify-content:flex-end; }
.mw-page .card { margin:0; min-width:0; }
.mw-summary { overflow:hidden; background:linear-gradient(120deg,#fff,#f3f6fa); }
.mw-state { padding:4px 10px; font-size:.75rem; font-weight:650; color:var(--v3-muted); background:#edf1f6; border-radius:999px; }
.mw-state--final { color:var(--v3-success); background:#eaf5ee; }
.mw-versus { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:24px; padding:24px 0; }
.mw-player { display:flex; align-items:center; gap:12px; min-width:0; }
.mw-player:last-child { justify-content:flex-end; }
.mw-player h2 { margin:0 0 3px; font-family:Georgia,"Times New Roman",serif; font-size:1.65rem; overflow-wrap:anywhere; }
.mw-player .muted { font-size:.8125rem; }
.mw-avatar { display:grid; place-items:center; flex:0 0 48px; height:48px; background:var(--v3-navy); color:white; border:1px solid #d5e1f1; border-radius:50%; font-size:1.15rem; font-weight:750; }
.mw-you { color:var(--v3-muted); font-size:.6875rem; font-weight:500; }
.mw-vs { color:var(--v3-muted); font-size:.8125rem; text-align:center; }
.mw-score { font-size:2rem; margin-left:12px; }
.mw-turn, .mw-final-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--mw-line); padding:16px 0 0; }
.mw-turn { color:var(--v3-muted); font-size:.875rem; }
.mw-turn--yours { background:#edf7f1; color:#176141; border:1px solid #c5e1d1; border-radius:8px; padding:14px 16px; }
.mw-final-summary { color:var(--v3-text); }
.mw-final-summary strong { color:var(--v3-success); }
.mw-ready-note { margin:0; padding-top:16px; border-top:1px solid var(--mw-line); color:var(--v3-muted); font-size:.875rem; }
.mw-matchup { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(240px,1fr); gap:24px; align-items:start; }
.mw-matchup > .mw-summary { grid-column:1; }
.mw-draft-layout { display:contents; }
.mw-available { grid-column:1; }
.mw-draft-layout > .mw-history { grid-column:2; grid-row:1 / span 2; }
.mw-section-heading h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:1.3rem; }
.mw-section-heading .muted { font-size:.75rem; }
.mw-available > .muted { font-size:.8125rem; margin:8px 0 20px; }
.mw-fixture { padding:16px 0; border-top:1px solid var(--mw-line); }
.mw-kickoff { color:var(--v3-muted); font-size:.75rem; margin:0 0 10px; }
.mw-club-options, .mw-fixture-identity { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:12px; }
.mw-club-options form { min-width:0; }
.mw-pick { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; min-height:48px; border:1px solid #cddcf1; background:#f6f9ff; border-radius:8px; padding:10px 12px; font:inherit; font-size:.875rem; font-weight:650; text-align:left; color:var(--v3-text); cursor:pointer; overflow-wrap:anywhere; }
.mw-pick:hover:enabled { background:#e9f1ff; border-color:var(--v3-blue); }
.mw-pick:disabled { cursor:default; background:#fafbfc; border-color:var(--mw-line); color:var(--v3-muted); }
.mw-pick-label { font-size:.6875rem; color:var(--v3-blue); font-weight:600; flex-shrink:0; }
.mw-pick:disabled .mw-pick-label { color:var(--v3-muted); }
.mw-history summary { cursor:pointer; font-family:Georgia,"Times New Roman",serif; font-size:1.3rem; font-weight:650; }
.mw-history summary .muted { margin-left:8px; font-size:.75rem; font-weight:400; }
.mw-pick-log { list-style:none; margin:16px 0 0; padding:0; }
.mw-pick-log li { display:flex; align-items:baseline; gap:12px; padding:12px 0; border-top:1px solid var(--mw-line); font-size:.8125rem; overflow-wrap:anywhere; }
.mw-pick-log small { display:block; margin-top:4px; color:var(--v3-muted); }
.mw-pick-sequence { color:var(--v3-muted); font-size:.75rem; min-width:16px; }
.mw-owned-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0; }
.mw-owned .mw-section-heading { margin-bottom:16px; }
.mw-owned-fixture { padding:12px 0; }
.mw-fixture-identity { font-size:.875rem; overflow-wrap:anywhere; }
.mw-fixture-identity > :last-child { text-align:right; }
.mw-selected { font-weight:750; color:#204d43; background:#e4efea; border:1px solid #c4d9cf; border-radius:5px; padding:4px 7px; text-decoration:none; }
.mw-fixture-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-top:12px; font-size:.75rem; }
.mw-result { border-radius:5px; padding:3px 7px; }
.mw-result--correct .mw-result { color:var(--v3-success); background:#eaf5ee; }
.mw-result--incorrect .mw-result { color:var(--v3-wrong); background:#fceff0; }
.mw-result--draw .mw-result { color:var(--v3-neutral); background:#edf1f6; }
.mw-totals { color:var(--v3-muted); font-size:.8125rem; }
.mw-other-section { margin-top:32px; }
.mw-other-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:16px; }
.mw-other h3 { font-size:1rem; margin:12px 0 4px; overflow-wrap:anywhere; }
.mw-other p { margin:4px 0 0; font-size:.8125rem; }
.mw-other .mw-other-score { font-size:1.25rem; font-weight:700; }
.mw-notice { padding:12px 16px; background:#eaf0f8; border-radius:8px; font-size:.875rem; }
.mw-error { color:var(--v3-wrong); font-size:.8125rem; }
@media (max-width:760px) {
  .mw-page-heading { margin-top:0; gap:12px; }
  .mw-page-actions { width:100%; justify-content:space-between; gap:8px; }
  .mw-versus { grid-template-columns:1fr; gap:8px; padding:20px 0; }
  .mw-player:last-child { justify-content:flex-start; }
  .mw-score { margin-left:auto; }
  .mw-versus > .mw-vs { text-align:left; padding-left:56px; }
  .mw-matchup, .mw-owned-grid, .mw-other-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .mw-draft-layout > .mw-history { grid-column:1; grid-row:auto; }
  .mw-turn { align-items:flex-start; flex-direction:column; gap:4px; }
  .mw-club-options { gap:8px; }
  .mw-pick { flex-direction:column; justify-content:center; gap:4px; text-align:center; padding:10px 6px; }
  .mw-fixture-identity { gap:8px; }
  .mw-final-summary { align-items:flex-start; flex-direction:column; }
}
/* Shared Matchweek desk: all states use the same main column and rail. */
.mw-page--matchweek .mw-page-heading {min-height:98px;margin:0 0 20px}
.mw-hero-state {color:#243e60;white-space:nowrap}
.mw-title-week {white-space:nowrap}
.mw-title-week,.mw-hero-state {display:inline-block}
.mw-matchup {grid-template-columns:minmax(0,2.7fr) minmax(280px,1fr);gap:14px 20px}
.mw-matchup .card {padding:18px;border-radius:8px}
.mw-matchup > .mw-summary {display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:0 18px;padding:14px 16px;background:linear-gradient(115deg,#f5f8fa,#eaf0f2 55%,#fff)}
.mw-matchup .mw-summary-top {grid-column:1;justify-content:center}
.mw-matchup .mw-summary-top .mw-state {display:none}
.mw-matchup .mw-summary-top .mw-eyebrow {font-size:.65rem;letter-spacing:.12em}
.mw-matchup .mw-versus {grid-column:1;padding:16px 0 10px;gap:12px}
.mw-matchup .mw-player h2 {font-size:1.6rem}
.mw-matchup .mw-avatar {flex-basis:58px;height:58px;font-size:1.35rem;background:linear-gradient(130deg,#102137,#253442);border:0}
.mw-matchup .mw-player:last-child {flex-direction:row-reverse;text-align:right}
.mw-matchup .mw-versus > .mw-vs {display:grid;place-items:center;border:1px solid #ccd5df;border-radius:50%;width:38px;height:38px;background:#ffffff90;text-transform:uppercase}
.mw-summary-context {grid-column:2;grid-row:1 / span 2;padding:12px;border:1px solid #e3e7ec;border-radius:8px;background:#ffffff9c;font-size:.75rem;color:#405775}
.mw-draft-order ol {display:flex;list-style:none;gap:5px;margin:10px 0;padding:0}
.mw-draft-order li {width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#e0e5ed;font-size:.65rem}
.mw-draft-order li.mw-order-current {background:#54856b;color:white}
.mw-draft-order small {display:block;margin-top:4px;font-size:.65rem}
.mw-turn-banner {grid-column:1;display:flex;align-items:flex-start;gap:14px;border:1px solid #cfdae7;border-radius:7px;padding:13px 18px;background:#edf2f7}
.mw-turn-banner h2 {margin:0;font:700 1.4rem Georgia,serif}
.mw-turn-banner p {margin:3px 0 0;font-size:.875rem;color:#405775}
.mw-turn-banner--yours {border-color:#bed9cb;background:#eaf3ee}
.mw-turn-dot {width:12px;height:12px;border-radius:50%;background:#647c98;flex-shrink:0;margin-top:8px}
.mw-turn-banner--yours .mw-turn-dot {background:#548d6b}
.mw-matchup {grid-template-rows:auto auto minmax(0,1fr)}
.mw-turn-banner > div:not(.mw-turn-actions) {min-width:0;flex:1}
.mw-turn-actions {display:flex;flex-wrap:wrap;align-self:center;justify-content:flex-end;gap:8px;margin-left:auto}
.mw-turn-actions:empty {display:none}
.mw-turn-actions .btn {white-space:nowrap}
.mw-turn-actions .mw-bulk-trigger {margin-left:0;width:auto}
@media(max-width:700px) {
 .mw-turn-actions {flex-basis:100%;margin-left:22px;justify-content:flex-start}
}
.mw-side-rail {grid-column:2;grid-row:1 / span 3;display:grid;gap:16px;min-width:0}
.mw-matchup .mw-section-heading h2,.mw-side-rail .mw-history summary {font-size:1.55rem;letter-spacing:-.025em}
.mw-side-rail .mw-history summary {list-style:none}
.mw-side-rail .mw-history summary::-webkit-details-marker {display:none}
.mw-side-rail .mw-history summary::after {content:'⌄';float:right;color:#65758b;font:400 1rem var(--v3-font)}
.mw-side-rail .mw-history summary .muted {display:none}
.mw-side-rail .mw-pick-log {margin-top:8px}
.mw-pick-log li {display:grid;grid-template-columns:30px 54px minmax(0,1fr);align-items:center;gap:10px;min-height:44px;padding:8px 0;font-size:.75rem}
.mw-pick-sequence {display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eff1f4;font-size:.875rem;font-weight:650;color:#24354c}
.mw-log-club strong {font-family:Georgia,serif;font-size:.875rem}
.mw-pending {color:#748399}
.mw-auto-draft p {font-size:.8125rem;color:#506582;margin:12px 0}
.mw-auto-draft .mw-state {padding:3px 7px;font-size:.625rem}
.mw-auto-draft button {width:100%;padding:12px 8px;border:0;border-radius:7px;background:#e5e8ed;color:#253d60;font:inherit;font-size:.8125rem;cursor:pointer}
.mw-auto-draft button:disabled {opacity:.5;cursor:not-allowed}
.mw-auto-draft summary {cursor:pointer}
.mw-auto-draft select {width:100%;min-width:0;max-width:100%;margin:8px 0}
.mw-auto-priorities {padding-left:24px;overflow-wrap:anywhere}
.mw-auto-priorities li {margin:12px 0}
.mw-auto-priorities small {display:block}
.mw-auto-unavailable {color:#63738a}
.mw-auto-actions {display:flex;gap:6px;margin-top:6px}
.mw-auto-actions form {flex:1;min-width:0}
.mw-available > .muted {margin:2px 0 16px;font-size:.875rem}
.mw-available .mw-section-heading > .muted {background:#eff1f4;border-radius:7px;padding:4px 9px}
.mw-fixture-columns,.mw-available .mw-fixture {display:grid;grid-template-columns:112px minmax(0,1fr) 20px minmax(0,1fr) minmax(210px,1.7fr);gap:10px;align-items:center}
.mw-fixture-columns {border-radius:5px;background:#f5f6f8;color:#50617c;padding:8px 4px;font-size:.6rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.mw-available .mw-fixture {min-height:65px;padding:10px 4px}
.mw-available .mw-kickoff {margin:0;font-size:.7rem;line-height:1.5}
.mw-club-identity {display:flex;align-items:center;gap:8px;font:700 .9rem Georgia,serif;overflow-wrap:anywhere;min-width:0}
.mw-fixture-vs {font-size:.7rem;color:#61728a;text-align:center}
.mw-available .mw-club-options {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.mw-available .mw-pick {min-height:36px;padding:7px 5px;justify-content:center;text-align:center;border-radius:5px;background:white;box-shadow:0 1px 3px #17283d0b;font-size:.7rem;font-weight:500}
.mw-available .mw-pick:disabled {background:#f8f9fa;color:#687789;box-shadow:none}
@media (min-width:761px) and (max-width:1100px) {
 .mw-matchup {grid-template-columns:minmax(0,2fr) 280px}
 .mw-matchup > .mw-summary {grid-template-columns:1fr}
 .mw-summary-context {grid-column:1;grid-row:auto}
 .mw-fixture-columns {display:none}
 .mw-available .mw-fixture {grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}
 .mw-available .mw-kickoff,.mw-available .mw-club-options {grid-column:1 / -1}
}
@media (max-width:760px) {
 .mw-page--matchweek .mw-page-heading {min-height:0;margin-bottom:16px}
 .mw-matchup {grid-template-columns:minmax(0,1fr);gap:12px}
 .mw-matchup > .mw-summary {grid-template-columns:1fr;padding:14px}
 .mw-matchup .mw-versus {grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:6px}
 .mw-matchup .mw-player,.mw-matchup .mw-player:last-child {flex-direction:column;text-align:center;gap:6px}
 .mw-matchup .mw-avatar {flex-basis:44px;width:44px;height:44px;font-size:1rem}
 .mw-matchup .mw-player h2 {font-size:1.25rem}
 .mw-matchup .mw-player .muted {font-size:.65rem}
 .mw-matchup .mw-versus > .mw-vs {width:28px;height:28px;padding:0;font-size:.65rem}
 .mw-summary-context {grid-column:1;grid-row:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
 .mw-draft-order ol {margin:0}
 .mw-draft-order small {margin:0}
 .mw-turn-banner {padding:12px;gap:10px}
 .mw-turn-banner p {font-size:.8125rem}
 .mw-side-rail {grid-column:1;grid-row:auto}
 .mw-fixture-columns {display:none}
 .mw-available .mw-fixture {grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:8px;padding:12px 0}
 .mw-available .mw-kickoff,.mw-available .mw-club-options {grid-column:1 / -1}
 .mw-club-identity {font-size:.95rem}
 .mw-away {justify-content:flex-end;text-align:right}
 .mw-available .mw-pick {min-height:42px;font-size:.8rem}
}
/* Follow-up polish: quieter hero, real season context, and a faint stadium. */
.mw-page--matchweek {position:relative;isolation:isolate}
.mw-page--matchweek::before {content:"";position:absolute;z-index:-1;inset:-24px -24px auto;height:410px;background:linear-gradient(180deg,#cedbe6 0%,#e5ecf1 38%,#f3f5f800 100%);pointer-events:none}
.mw-page--matchweek .mw-page-heading {position:relative;gap:16px;min-height:110px}
.mw-page--matchweek .mw-page-heading h1 {font-size:clamp(1.75rem,2.8vw,2.3rem)}
.mw-hero-copy {position:relative;z-index:1}
.mw-first-kickoff {margin:6px 0 0;font-size:.875rem;color:#405775}
.mw-league-mark {width:116px;height:48px;opacity:.8;margin-left:auto}
.mw-page--matchweek .mw-page-actions {position:relative;z-index:1}
.mw-matchup > .mw-summary {position:relative;isolation:isolate;background:#f2f6f7}
.mw-matchup > .mw-summary::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f6f8fab8,#edf3f46b,#ffffffd9),url('stadium.svg') center 55% / cover no-repeat;opacity:.32;pointer-events:none}
.mw-season-record {display:grid;gap:2px;font-size:.85rem;color:#304b69}
.mw-season-record small {font-size:.6rem;color:var(--v3-muted);white-space:nowrap}
.mw-season-record .muted {font-size:.8rem!important;line-height:1.4}
.mw-fixture-columns > :nth-child(3),.mw-fixture-columns > :last-child {text-align:center}
.mw-available .mw-home {justify-content:flex-end;text-align:right}
.mw-available .mw-away {justify-content:flex-start;text-align:left}
@media (max-width:1100px) {
 .mw-league-mark {width:87px;height:36px}
}
@media (max-width:760px) {
 .mw-page--matchweek::before {inset:-16px -16px auto;height:370px}
 .mw-page--matchweek .mw-page-heading {gap:12px}
 .mw-hero-copy {flex:1;min-width:0}
 .mw-league-mark {width:70px;height:29px;margin-left:0;align-self:flex-start;margin-top:3px}
 .mw-page--matchweek .mw-page-heading h1 {font-size:1.75rem}
 .mw-first-kickoff {font-size:.75rem}
 .mw-available .mw-home {justify-content:flex-start;text-align:left}
 .mw-available .mw-away {justify-content:flex-end;text-align:right}
 .mw-season-record {font-size:.75rem}
}

.mw-fixture-columns > :nth-child(2) {text-align:right}
.mw-owned-grid {grid-column:1;gap:14px;margin:0;align-items:start}
.mw-owned-heading {display:flex;align-items:center;gap:10px;margin-bottom:14px}
.mw-owned-heading h2 {margin:0;font:700 1.45rem Georgia,serif;letter-spacing:-.025em;overflow-wrap:anywhere}
.mw-owned-heading .muted {font-size:.7rem}
.mw-matchup .mw-owned-heading .mw-avatar {flex-basis:40px;width:40px;height:40px;font-size:1rem}
.mw-owned-fixture {padding:12px 0;min-width:0}
.mw-owned-fixture .mw-kickoff {font-size:.7rem;margin:0 0 8px}
.mw-owned-fixture .mw-fixture-identity {grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:8px;font:700 .9rem Georgia,serif}
.mw-owned-fixture .mw-fixture-identity > :first-child {text-align:right}
.mw-owned-fixture .mw-fixture-identity > :last-child {text-align:left}
.mw-owned-fixture .mw-fixture-foot {margin-top:8px;gap:6px;font-size:.7rem}
.mw-owned-fixture .mw-fixture-foot > :first-child {padding:4px 6px;border-radius:4px;background:#edf3f2;color:#285446}
.mw-snapshot dl {margin:12px 0 0;font-size:.8125rem}
.mw-snapshot dl > div {border-top:1px solid var(--mw-line);padding:14px 0}
.mw-snapshot dt {color:var(--v3-muted);font-size:.75rem;margin-bottom:4px}
.mw-snapshot dd {margin:0;font-weight:600;overflow-wrap:anywhere}
.mw-final-player-stats {margin-top:14px;padding-top:12px;border-top:1px solid var(--mw-line);font-size:.8125rem}
.mw-final-player-stats > strong {display:block;margin-bottom:8px}
.mw-final-player-stats dl {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.mw-final-player-stats dl > div {padding:0;border:0;min-width:0;text-align:center}
.mw-final-player-stats dt {margin:0;font-size:.625rem;color:var(--v3-muted)}
.mw-final-player-stats dd {margin:3px 0 0;font-weight:700;font-size:1rem;color:var(--v3-text)}
.mw-owned-fixture .mw-fixture-identity > .mw-selected:first-child {justify-self:end}
.mw-owned-fixture .mw-fixture-identity > .mw-selected:last-child {justify-self:start}
.mw-summary-context > p {margin:8px 0}
.mw-score-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}
.mw-score-pair small,.mw-score-pair strong {display:block;overflow-wrap:anywhere}
.mw-score-pair strong {font:700 1.8rem Georgia,serif;color:var(--v3-navy)}
.mw-summary-context.mw-official-score {display:block}
.mw-summary-context:not(.mw-draft-order) {display:block}
.mw-matchup[data-state="final"] .mw-slate-banner {background:#eaf3ee;border-color:#bed9cb}
.mw-matchup[data-state="final"] .mw-slate-banner .mw-turn-dot {background:#548d6b}
@media (min-width:761px) and (max-width:1100px) {
 .mw-owned-grid {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px) {
 .mw-page--matchweek .mw-hero-copy {flex-basis:100%}
 .mw-page--matchweek .mw-league-mark {position:absolute;right:0;top:0;margin:0}
 .mw-page--matchweek .mw-hero-copy > .mw-eyebrow {padding-right:82px;min-height:24px}
}
