/* Premier League Market (2026-12-02, redesign same day). Sits on
   /squads/squads.css (site chrome and tokens: --bg --card --line --gold --ink
   --mut --ink-2 --up --down --warn). The idea: a trading floor for
   footballers. One loud thing, the ticker tape under the header; the board
   below is a quiet exchange screen where the price is the biggest type.
   BRAND (owner 2026-12-02, "go upgraded"): the page wears the homepage's
   black static family (<html data-family="static">, tools/_theme.js) and its
   fonts (tools/_fonts.js): Anton headings, Space Grotesk text, JetBrains Mono
   labels in --pitch. The rules below keep their content-family names; this
   block points them at the static tokens, so light and colour-blind follow. */
#mkt,.mk-sheet{--warn:var(--gold);--ink:var(--paper);--ink-2:var(--bone);--mut:var(--mute);--line:color-mix(in srgb,var(--paper) 16%,transparent);--card:color-mix(in srgb,var(--paper) 5%,var(--bg))}
body{font-family:'Space Grotesk','Space Grotesk Fallback',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--bone)}
#mkt,.mk-sheet{color:var(--ink)}
#mkt h1{color:var(--paper)}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#mkt{font-variant-numeric:tabular-nums}
#mkt h2{font-size:1.05rem;font-weight:900;margin:0 0 10px}
.mk-mut{color:var(--mut);font-size:14px;margin:0}
.up{color:var(--up)}.down{color:var(--down)}

/* ---------- header: title left, the live status card right ---------- */
.mk-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:18px 28px;align-items:end;margin:0 0 16px}
.mk-hero h1{margin:4px 0 8px;font-size:clamp(1.9rem,4.4vw,2.9rem);line-height:1;letter-spacing:-.02em}
.mk-hero .intro{margin:0 0 8px;max-width:60ch;color:var(--ink-2)}
.offer-line{margin:0;color:var(--mut);font-size:13.5px}
@media (max-width:760px){.mk-hero{grid-template-columns:1fr}}

.mk-status{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.mk-status p{margin:0}
.mk-trial{display:block;width:fit-content;font-size:12.5px;font-weight:800;color:var(--warn);border:1px solid color-mix(in srgb,var(--warn) 45%,transparent);border-radius:999px;padding:2px 10px;margin:0 0 10px!important}
.mk-status__lead{font-weight:800;font-size:15px}
.mk-status__sub{margin-top:4px!important;color:var(--mut);font-size:13.5px}
.mk-clock{display:flex;gap:6px;margin:10px 0 4px}
.mk-clock span{display:flex;flex-direction:column;align-items:center;min-width:58px;padding:6px 4px;border-radius:10px;background:var(--bg);font-size:11.5px;color:var(--mut)}
.mk-clock b{font-size:1.6rem;line-height:1.05;color:var(--ink);font-weight:900}

/* your portfolio, once you are in */
.mk-who{font-weight:800;color:var(--gold);font-size:13px;margin-bottom:2px!important}
.mk-value{font-size:2.2rem;font-weight:900;line-height:1.05;margin:0 0 8px!important}
.mk-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 10px!important}
.mk-facts span{background:var(--bg);border-radius:10px;padding:6px 8px;font-size:11.5px;color:var(--mut);display:flex;flex-direction:column}
.mk-facts b{font-size:15px;color:var(--ink)}
.mk-facts b.up{color:var(--up)}.mk-facts b.down{color:var(--down)}

/* ---------- the ticker tape: the one moving thing on the page ---------- */
.mk-tape{position:relative;overflow:hidden;border-block:1px solid var(--line);margin:0 0 18px;padding:9px 0;-webkit-mask-image:linear-gradient(90deg,transparent,var(--ink) 6%,var(--ink) 94%,transparent);mask-image:linear-gradient(90deg,transparent,var(--ink) 6%,var(--ink) 94%,transparent)}
.mk-tape:empty{display:none}
.mk-tape__run{display:flex;gap:28px;width:max-content;white-space:nowrap}
.mk-tape__item{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:800}
.mk-tape__item i{font-style:normal;font-weight:700;font-size:13px}
.mk-tape__item .flat{color:var(--mut)}
@media (prefers-reduced-motion:no-preference){
  .mk-tape__run{animation:mktape 70s linear infinite}
  .mk-tape:hover .mk-tape__run{animation-play-state:paused}
  @keyframes mktape{to{transform:translateX(-50%)}}
}
@media (prefers-reduced-motion:reduce){.mk-tape{overflow-x:auto;-webkit-mask-image:none;mask-image:none}}

/* club chip: the shirt colour with its own text colour (api/_clubcolors.js) */
.mk-kit{display:inline-grid;place-items:center;flex:none;width:38px;height:24px;border-radius:6px;font-size:11px;font-weight:900;letter-spacing:.02em;background:var(--kit,var(--line));color:var(--kit-ink,var(--ink));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 14%,transparent)}

/* ---------- join ---------- */
.mk-entry{background:var(--card);border:1px solid var(--gold);border-radius:14px;padding:14px 16px;margin:0 0 18px}
.mk-entry h2{margin-bottom:4px!important}
.mk-entry p{margin:0 0 12px;color:var(--ink-2);font-size:14px}
.mk-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.mk-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--mut)}
.mk-form input{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:11px 12px;font-size:16px}
.mk-form .cta{border:0;cursor:pointer;text-align:center;white-space:nowrap;margin:0}
.mk-form .mk-err{grid-column:1/-1;order:9}
.mk-alt{margin:10px 0 0!important;font-size:13.5px!important;color:var(--mut)!important}
.mk-alt a{color:var(--ink)}
@media (max-width:620px){.mk-form{grid-template-columns:1fr 1fr}.mk-form .cta{grid-column:1/-1}}

/* ---------- board left, your shares + leaderboard + rules right ---------- */
.mk-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.mk-aside{display:flex;flex-direction:column;gap:22px}
.mk-layout>.mk-entry{grid-column:1/-1;margin:0;scroll-margin-top:16px}
.mk-jump{display:none}
@media (max-width:960px){.mk-layout{grid-template-columns:1fr;gap:22px}.mk-aside{display:contents}.mk-survey{order:-2}.mk-mine{order:-1}.mk-layout>.mk-entry{order:1}.mk-lb,.mk-rules{order:2}.mk-jump:not([hidden]){display:block;margin:0 0 10px;font-size:14px;color:var(--mut)}.mk-jump a{color:var(--ink);font-weight:800}}

.mk-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.mk-search{flex:1 1 200px}
.mk-search input,.mk-sort select{width:100%;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:16px;min-height:40px}
.mk-pos{display:flex;gap:4px}
.mk-pos button,.mk-side button{background:transparent;color:var(--mut);border:1px solid var(--line);border-radius:10px;padding:8px 11px;font-weight:800;font-size:13px;cursor:pointer;min-height:40px}
.mk-pos button[aria-pressed="true"],.mk-side button[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.mk-note{margin:0 0 6px;font-size:13.5px;color:var(--mut)}

/* the exchange screen */
.mk-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.mk-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:2px 12px;align-items:center;padding:10px 4px;border-bottom:1px solid var(--line)}
.mk-row:hover{background:color-mix(in srgb,var(--ink) 4%,transparent)}
.mk-row__name{min-width:0}
.mk-row__name b{font-weight:800;font-size:15.5px}
.mk-row__name small{display:block;color:var(--mut);font-size:12.5px;margin-top:1px}
.mk-row__q{display:flex;align-items:center;gap:12px;justify-content:flex-end}
.mk-row__price{text-align:right;font-size:1.2rem;font-weight:900;min-width:4.6em}
.mk-chg{font-size:12.5px;font-weight:800;border-radius:6px;padding:3px 6px;min-width:56px;text-align:center}
.mk-chg.up{background:color-mix(in srgb,var(--up) 14%,transparent)}
.mk-chg.down{background:color-mix(in srgb,var(--down) 14%,transparent)}
.mk-chg.flat{color:var(--mut)}
.mk-row__why{grid-column:2/-1;grid-row:2;margin:2px 0 0;font-size:12.5px;color:var(--mut)}
.mk-tag{display:inline-block;font-size:11.5px;font-weight:800;border-radius:6px;padding:1px 6px;margin-left:6px;vertical-align:2px}
.mk-tag--young{color:var(--pitch);border:1px solid color-mix(in srgb,var(--pitch) 50%,transparent)}
.mk-tag--hurt{background:color-mix(in srgb,var(--down) 14%,transparent);color:var(--down)}
.mk-tag--warn{background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--warn)}
.mk-trade{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:6px 14px;font-weight:800;cursor:pointer;min-height:40px}
.mk-trade:hover{border-color:var(--ink)}
.mk-trade[disabled]{opacity:.45;cursor:default}
.mk-empty{padding:18px 0;color:var(--mut)}
.mk-more{display:block;margin:14px auto 0;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 18px;font-weight:800;cursor:pointer;min-height:40px}
@media (max-width:560px){
  .mk-row{gap:2px 10px;padding:10px 0}
  .mk-row__q{flex-direction:column;align-items:flex-end;gap:2px}
  .mk-row__price{min-width:0}
  .mk-chg{padding:1px 5px;min-width:0}
  .mk-trade{padding:6px 10px}
  .mk-tools{display:grid;grid-template-columns:minmax(0,1fr) 128px}
  .mk-sort{grid-row:1;grid-column:2;min-width:0}
  .mk-pos{grid-column:1/-1}
  .mk-pos button{flex:1}
  .mk-note{display:none}
}

/* your shares */
.mk-hold{display:grid;grid-template-columns:1fr auto;gap:0 12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.mk-hold small{color:var(--mut)}

/* leaderboard */
.mk-lbt{width:100%;border-collapse:collapse;font-size:14px}
.mk-lbt th{text-align:left;color:var(--mut);font-weight:700;font-size:12.5px;padding:6px 4px;border-bottom:1px solid var(--line)}
.mk-lbt td{padding:8px 4px;border-bottom:1px solid var(--line)}
.mk-lbt .r{text-align:right}
.mk-lbt tr.me td{background:color-mix(in srgb,var(--gold) 10%,transparent)}
.mk-lbt .city{color:var(--mut);font-size:12.5px}
.mk-lb .mk-mut{background:var(--card);border:1px dashed var(--line);border-radius:12px;padding:14px}

/* rules, folded */
.mk-rules details{border-bottom:1px solid var(--line)}
.mk-rules details:first-of-type{border-top:1px solid var(--line)}
.mk-rules summary{display:flex;flex-direction:column;gap:1px;padding:10px 26px 10px 0;cursor:pointer;list-style:none;position:relative}
.mk-rules summary::-webkit-details-marker{display:none}
.mk-rules summary::after{content:"+";position:absolute;right:4px;top:12px;color:var(--mut);font-weight:900}
.mk-rules details[open] summary::after{content:"−"}
.mk-rules summary b{font-size:14px}
.mk-rules summary span{font-size:13px;color:var(--mut)}
.mk-rules details p{margin:0 0 12px;font-size:13.5px;color:var(--ink-2)}

/* trade sheet */
.mk-sheet{position:fixed;inset:0;overscroll-behavior:contain;background:color-mix(in srgb,var(--bg) 72%,transparent);display:flex;align-items:flex-end;justify-content:center;z-index:50;padding:0}
.mk-sheet[hidden]{display:none}
.mk-sheet__card{background:var(--card);border:1px solid var(--line);border-radius:16px 16px 0 0;width:100%;max-width:520px;padding:18px 16px calc(18px + env(safe-area-inset-bottom));font-variant-numeric:tabular-nums}
@media (min-width:600px){.mk-sheet{align-items:center}.mk-sheet__card{border-radius:16px}}
.mk-sheet h2{margin:0!important;font-size:1.15rem;font-weight:900}
.mk-sheet__sub{margin:2px 0 12px;color:var(--mut);font-size:14px}
.mk-side{display:flex;gap:6px;margin:0 0 12px}
.mk-side button{flex:1}
.mk-qty{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--mut)}
.mk-qty__row{display:flex;gap:6px}
.mk-qty__row button{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;min-width:44px;min-height:44px;font-size:18px;font-weight:900;cursor:pointer}
.mk-qty__row .mk-max{font-size:13px;padding:0 12px}
.mk-qty input{flex:1;min-width:0;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px;font-size:18px;font-weight:800;text-align:center}
.mk-quote{margin:12px 0 0;font-size:14.5px}
.mk-err{margin:8px 0 0;color:var(--down);font-size:14px;min-height:1em}
.mk-err:empty{display:none}
.mk-sheet__actions{display:flex;gap:8px;margin-top:14px}
.mk-cancel{flex:1;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:12px;font-weight:800;cursor:pointer;min-height:48px}
.mk-go{flex:2;border:0;cursor:pointer;text-align:center}
.mk-go[disabled]{opacity:.5;cursor:default}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
#mkt button,.mk-sheet button{touch-action:manipulation}
@media (prefers-reduced-motion:no-preference){.mk-flash{animation:mkflash .9s ease-out}@keyframes mkflash{from{background:color-mix(in srgb,var(--gold) 22%,transparent)}to{background:transparent}}}

/* practice-round survey */
.mk-survey{background:var(--card);border:1px solid var(--gold);border-radius:14px;padding:14px;margin:0}
.mk-survey .mk-q legend{font-size:13.5px}.mk-survey .mk-q__opts span{padding:6px 10px;font-size:13px}
.mk-q{border:0;margin:0 0 14px;padding:0}
.mk-q legend{font-weight:800;font-size:14.5px;margin-bottom:6px;padding:0}
.mk-q__opts{display:flex;flex-wrap:wrap;gap:6px}
.mk-q__opts label{position:relative;cursor:pointer}
.mk-q__opts input{position:absolute;opacity:0;width:1px;height:1px}
.mk-q__opts span{display:inline-block;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:13.5px;font-weight:700;color:var(--mut);min-height:40px;line-height:22px}
.mk-q__opts input:checked+span{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.mk-q__opts input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.mk-q__note{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--mut);margin:0 0 8px}
.mk-q__note textarea{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:16px;font-family:inherit;resize:vertical}
#mkSurveyF .cta{border:0;cursor:pointer;width:100%;text-align:center}

/* phones: the first player row should be on the first screen */
@media (max-width:560px){
  .mk-hero{gap:12px;margin-bottom:12px}
  .mk-hero h1{font-size:1.75rem}
  .mk-hero .intro{font-size:15px;margin-bottom:4px}
  .offer-line{font-size:12.5px}
  .mk-status{padding:12px}
  .mk-trial{margin-bottom:6px!important}
  .mk-value{font-size:1.7rem;margin-bottom:6px!important}
  .mk-facts{margin-bottom:8px!important}
  .mk-facts span{padding:4px 8px}
  .mk-status__lead{display:inline;font-size:14px}
  .mk-clock{display:inline-flex;gap:4px;margin:0 0 0 6px;vertical-align:middle}
  .mk-clock span{flex-direction:row;align-items:baseline;gap:2px;min-width:0;padding:2px 6px;font-size:11px}
  .mk-clock b{font-size:14px}
  .mk-status__sub{font-size:12.5px}
  .mk-tape{margin-bottom:12px;padding:7px 0}
  .mk-entry{padding:12px}
  .mk-entry p{font-size:13.5px;margin-bottom:10px}
  .mk-row__name small{white-space:nowrap}
}
.mk-row__name small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-form label{min-width:0}
.mk-form input{min-width:0;width:100%;box-sizing:border-box}
.mk-form .cta{box-sizing:border-box;max-width:100%}
@media (max-width:620px){.mk-form .cta{width:100%}}

/* ---------- brand layer: homepage type ---------- */
.mk-hero h1,#mkt .mk-entry h2,#mkt .mk-survey h2,.mk-sheet h2{font-family:'Anton','Anton Fallback',Impact,sans-serif;font-weight:400;letter-spacing:.01em;text-transform:uppercase}
.mk-hero h1{font-size:clamp(2.4rem,5vw,3.6rem);line-height:.98}
#mkt .mk-entry h2,#mkt .mk-survey h2{font-size:1.5rem;line-height:1.1;margin-bottom:6px!important}
.mk-sheet h2{font-size:1.5rem!important;font-weight:400!important}
#mkPlayersH,#mkMineH,#mkLbH,#mkRulesH,.mk-trial,.mk-chg,.mk-tape__item i,.mk-clock span,.mk-facts span,.mk-lbt th,.mk-pos button,.mk-side button,.mk-who{font-family:'JetBrains Mono','JetBrains Mono Fallback',ui-monospace,monospace}
#mkPlayersH,#mkMineH,#mkLbH,#mkRulesH{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--pitch);margin:0 0 12px}
.mk-row__price,.mk-value,.mk-clock b,.mk-facts b{font-family:'Space Grotesk','Space Grotesk Fallback',sans-serif;font-weight:700}
.mk-row__price{font-size:1.25rem}
.mk-clock b{font-size:1.5rem}
/* practice pill: small mono caps, like the homepage's season pill */
.mk-trial{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--pitch);border-color:color-mix(in srgb,var(--pitch) 55%,transparent);padding:3px 10px}

/* nothing has moved yet: no column of dashes */
.mk-list--flat .mk-chg,.mk-tape--flat .mk-tape__item i{display:none}

/* every badge the same shape: an outline in its own colour */
.mk-tag{border:1px solid color-mix(in srgb,currentColor 50%,transparent);white-space:nowrap;font-family:'JetBrains Mono','JetBrains Mono Fallback',ui-monospace,monospace;font-weight:700;font-size:11px}
.mk-row__name b{margin-right:0}

/* sort menu dressed like the search box */
.mk-sort{position:relative}
.mk-sort select{-webkit-appearance:none;appearance:none;padding-right:34px;cursor:pointer;font-family:inherit}
.mk-sort::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(45deg);pointer-events:none}
.mk-search input,.mk-form input,.mk-q__note textarea,.mk-qty input{font-family:inherit}

/* the right column stays in view down the long board */
@media (min-width:961px){
  .mk-aside{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}
}

/* the headline runs the full width; the text and the status card sit under it */
@media (min-width:761px){
  .mk-hero{align-items:start}
  .mk-hero__text{display:contents}
  .mk-hero h1{grid-column:1/-1;margin-bottom:0}
  .mk-hero .intro{grid-column:1;grid-row:2}
  .mk-hero .offer-line{grid-column:1;grid-row:3;align-self:start}
  .mk-status{grid-column:2;grid-row:2/4}
}

/* phones, after the brand layer: one-line headline, the compact clock again */
@media (max-width:560px){
  .mk-hero h1{font-size:2rem;line-height:1}
  .mk-clock b{font-size:14px}
  .mk-clock span{font-size:10.5px}
  .mk-trial{font-size:10px;letter-spacing:.08em}
}

/* the sort menu's open list follows the theme (Windows draws it white otherwise); headings wrap evenly */
.mk-sort select{color-scheme:dark}
:root[data-theme=light] .mk-sort select{color-scheme:light}
.mk-hero h1,#mkt h2{text-wrap:balance}
