/* Event-owned match labels only. Pools, standings and outcome crests stay intact. */
@font-face{font-family:"Cup Anton";src:url("fonts/wordmarks/Anton-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-024F}
@font-face{font-family:"Cup Oswald";src:url("fonts/wordmarks/Oswald-Variable.ttf") format("truetype");font-weight:200 700;font-style:normal;font-display:swap;unicode-range:U+0000-024F}
[data-wordmark-style]{--wm-panel:linear-gradient(var(--wordmark-direction,90deg),rgb(var(--wordmark-rgb,75 159 245) / .19),rgb(var(--wordmark-rgb,75 159 245) / .025));--wm-ink:var(--text);--wm-border:rgb(var(--wordmark-rgb,75 159 245) / .2);--wm-shadow:0 1px 0 #0003;--wm-winner-ink:var(--win)}
[data-wordmark-style="gold"]{--wm-panel:linear-gradient(115deg,#d4ba7d1c,#c6aa6710);--wm-ink:#eed6a2;--wm-border:#d1b26b60;--wm-shadow:0 1px 0 #4d381c,1px 2px 0 #0b0805}
[data-wordmark-style="chrome"]{--wm-panel:linear-gradient(115deg,#a8b0b8 0%,#e6eaed 32%,#bac2c9 66%,#f0f1ef 100%);--wm-ink:#182028;--wm-border:#edf0f2;--wm-shadow:0 1px 0 #ffffffad;--wm-winner-ink:#135334}
[data-wordmark-style="silver"]{--wm-panel:linear-gradient(115deg,#bfc5ce24,#8389950a 55%,#edf0f313);--wm-ink:#f0f1f3;--wm-border:#d0d5df38;--wm-shadow:1px 1px 0 #0b0b0d,2px 2px 0 #bfc4cc25}
[data-wordmark-style="chrome-dark"],[data-wordmark-style="chrome-team"]{
 --wm-metal-sheen:linear-gradient(180deg,#ffffff24 0%,#ffffff09 19%,#ffffff02 43%,#00000055 51%,#ffffff03 57%,#ffffff09 100%);
 --wm-metal-reflection:linear-gradient(118deg,transparent 17%,#d9e5f108 34%,#eaf4ff20 38%,#d9e5f107 44%,transparent 53%);
 --wm-metal-grain:repeating-linear-gradient(0deg,#ffffff03 0px,#ffffff03 1px,transparent 1px,transparent 3px);
 --wm-metal-base:linear-gradient(110deg,#030508,#10151c 39%,#080b10 70%,#020305);
 --wm-panel:var(--wm-metal-sheen),var(--wm-metal-reflection),var(--wm-metal-grain),var(--wm-metal-base);
 --wm-ink:#edf1f5;--wm-border:#a7b1bd69;--wm-shadow:0 1px 2px #000e;--wm-winner-ink:#80efb5
}
[data-wordmark-font]{--wm-latin-family:Impact,"Arial Narrow",sans-serif;--wm-latin-weight:700;--wm-latin-style:italic;--wm-latin-spacing:.055em;--wm-latin-transform:none}
[data-wordmark-font="anton"]{--wm-latin-family:"Cup Anton",Impact,sans-serif;--wm-latin-weight:400;--wm-latin-style:oblique 8deg;--wm-latin-spacing:.02em}
[data-wordmark-font="oswald"],[data-wordmark-font="oswald-slant"]{--wm-latin-family:"Cup Oswald","Arial Narrow",sans-serif;--wm-latin-weight:700;--wm-latin-style:normal;--wm-latin-spacing:.025em}
[data-wordmark-font="oswald-slant"]{--wm-latin-transform:skewX(-12deg)}
[data-wordmark-font="segoe"]{--wm-latin-family:"Segoe UI",Arial,sans-serif;--wm-latin-weight:650;--wm-latin-style:normal;--wm-latin-spacing:.025em}
/* Resolve side colours on the side itself, rather than its ancestor. */
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]){--wordmark-rgb:75 159 245;--wordmark-direction:90deg}
:is(:root[data-match-label-mode] [data-match-wordmark="red"]:not([data-wordmark-preview] [data-match-wordmark="red"]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark="red"]){--wordmark-rgb:241 91 114;--wordmark-direction:270deg}
:is(:root[data-wordmark-style="original"] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-wordmark-style="original"] [data-match-wordmark]){--wm-panel:linear-gradient(var(--wordmark-direction),rgb(var(--wordmark-rgb) / .19),rgb(var(--wordmark-rgb) / .025));--wm-border:rgb(var(--wordmark-rgb) / .2)}
:is(:root[data-wordmark-style="chrome-team"] [data-match-wordmark="blue"]:not([data-wordmark-preview] [data-match-wordmark="blue"]),[data-wordmark-preview][data-wordmark-style="chrome-team"] [data-match-wordmark="blue"]){--wm-metal-base:linear-gradient(110deg,#020612,#0b2142 39%,#061126 70%,#010309);--wm-border:#5988bf70;--wm-panel:var(--wm-metal-sheen),var(--wm-metal-reflection),var(--wm-metal-grain),var(--wm-metal-base)}
:is(:root[data-wordmark-style="chrome-team"] [data-match-wordmark="red"]:not([data-wordmark-preview] [data-match-wordmark="red"]),[data-wordmark-preview][data-wordmark-style="chrome-team"] [data-match-wordmark="red"]){--wm-metal-base:linear-gradient(250deg,#140307,#3b0c16 39%,#20070d 70%,#090103);--wm-border:#b8677970;--wm-panel:var(--wm-metal-sheen),var(--wm-metal-reflection),var(--wm-metal-grain),var(--wm-metal-base)}
/* Equal outer columns reserve an identical badge slot on both sides. */
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark])>.fixture-winner{flex:0 0 18px;width:18px;box-sizing:border-box;padding-inline:0;margin-inline:0;text-align:center}
.fixture-winner.is-placeholder{visibility:hidden!important;pointer-events:none}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark])>.team-caption{flex:1 1 0;min-width:0;max-width:100%;box-sizing:border-box;text-align:center!important}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-content{min-width:0;max-width:100%;justify-content:center!important;align-items:center!important;text-align:center!important}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) :is(.team-caption-name,.team-caption-tag){text-align:center!important}
/* Only match captions obey the three modes; other team names keep their role. */
:is(:root:is([data-match-label-mode="name"],[data-match-label-mode="crest_name"]) [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="name"],[data-match-label-mode="crest_name"]) [data-match-wordmark]) .team-caption-content>.team-caption-name{display:block!important}
:is(:root:is([data-match-label-mode="name"],[data-match-label-mode="crest_name"]) [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="name"],[data-match-label-mode="crest_name"]) [data-match-wordmark]) .team-caption-tag{display:none!important}
:is(:root:is([data-match-label-mode="short"],[data-match-label-mode="crest_short"]) [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="short"],[data-match-label-mode="crest_short"]) [data-match-wordmark]) .team-caption-content.has-tag>.team-caption-name{display:none!important}
:is(:root:is([data-match-label-mode="short"],[data-match-label-mode="crest_short"]) [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="short"],[data-match-label-mode="crest_short"]) [data-match-wordmark]) .team-caption-content.has-tag>.team-caption-tag{display:block!important;color:inherit;font-size:inherit;white-space:nowrap}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-tag::before,
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-tag::after{content:none}
:is(:root:is([data-match-label-mode="name"],[data-match-label-mode="short"]) [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="name"],[data-match-label-mode="short"]) [data-match-wordmark])>.team-mark{display:none!important}
:is(:root:is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"]) [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"]) [data-match-wordmark])>.team-mark{display:inline-flex!important}
:is(:root,[data-wordmark-preview])[data-match-label-mode] .training-card-team[data-match-wordmark="red"]{flex-direction:row;justify-content:flex-end}
:is(:root,[data-wordmark-preview]):is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"]) .training-card-team[data-match-wordmark="red"]{flex-direction:row-reverse}
/* Side markers remain separate from the selected plate colour. */
:is(:root:is([data-match-label-mode="name"],[data-match-label-mode="short"]) [data-match-wordmark="blue"]:not([data-wordmark-preview] [data-match-wordmark="blue"]),[data-wordmark-preview]:is([data-match-label-mode="name"],[data-match-label-mode="short"]) [data-match-wordmark="blue"])::before,
:is(:root:is([data-match-label-mode="name"],[data-match-label-mode="short"]) [data-match-wordmark="red"]:not([data-wordmark-preview] [data-match-wordmark="red"]),[data-wordmark-preview]:is([data-match-label-mode="name"],[data-match-label-mode="short"]) [data-match-wordmark="red"])::after{content:"";display:block;align-self:center;flex:0 0 3px;width:3px;height:1.5em;min-height:22px;border-radius:1px;background:rgb(var(--wordmark-rgb));box-shadow:0 0 8px rgb(var(--wordmark-rgb) / .2)}
/* Static materials; transform glyphs only, never plates, scores or connectors. */
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark])>.team-caption{
 isolation:isolate;position:relative;padding:2px 7px 3px;background:var(--wm-panel);border-block:1px solid var(--wm-border);color:var(--wm-ink)!important;
 clip-path:polygon(0 0,calc(100% - 5px) 0,100% 5px,100% 100%,5px 100%,0 calc(100% - 5px))
}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]).is-winner>.team-caption{color:var(--wm-winner-ink)!important}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-content :is(.team-caption-name,.team-caption-tag-text){color:inherit;text-shadow:var(--wm-shadow);transform-origin:center}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-tag-text{display:inline-block;max-width:100%}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-content[data-name-script="latin"]>.team-caption-name,
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-content:not([data-tag-script="han"]) .team-caption-tag-text{font-family:var(--wm-latin-family);font-weight:var(--wm-latin-weight);font-style:var(--wm-latin-style);letter-spacing:var(--wm-latin-spacing);transform:var(--wm-latin-transform)}
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-content[data-name-script="han"]>.team-caption-name,
:is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) .team-caption-content[data-tag-script="han"] .team-caption-tag-text{font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",sans-serif;font-weight:850;font-style:normal;letter-spacing:.025em;transform:skewX(-10deg)}
/* Plain abbreviations with crests use the ordinary site type. */
[data-match-wordmark].is-winner{--wm-plain-ink:var(--win)}
:is(:root:is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"])[data-crest-wordmark="plain"] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"])[data-crest-wordmark="plain"] [data-match-wordmark])>.team-caption{background:none;border-color:transparent;clip-path:none;color:var(--wm-plain-ink,inherit)!important}
:is(:root:is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"])[data-crest-wordmark="plain"] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview]:is([data-match-label-mode="crest_short"],[data-match-label-mode="crest_name"])[data-crest-wordmark="plain"] [data-match-wordmark]) .team-caption-content :is(.team-caption-name,.team-caption-tag-text){font-family:inherit;font-weight:inherit;font-style:normal;letter-spacing:0;transform:none;text-shadow:none}
/* Retain compact graph dimensions and a single line for four Han characters. */
:root[data-match-label-mode] .schedule-page .tournament-graph .graph-match .fixture-card [data-match-wordmark]>.team-caption{padding:1px 3px 2px}
:root[data-match-label-mode] .schedule-page .tournament-graph .graph-match .fixture-card [data-match-wordmark] :is(.team-caption-name,.team-caption-tag){overflow:hidden;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-overflow:ellipsis;line-height:1.4;letter-spacing:0;-webkit-line-clamp:unset}
:root[data-match-label-mode] .home-page .home-fixtures [data-match-wordmark]>.team-caption{padding:4px 9px 5px}
:root[data-match-label-mode] .home-page .home-fixtures [data-match-wordmark] .team-caption-content{flex-wrap:nowrap}
:root[data-theme="light"][data-wordmark-style="gold"],:root[data-theme="light"] [data-wordmark-preview][data-wordmark-style="gold"]{--wm-ink:#74521a;--wm-shadow:0 1px 0 #fff9;--wm-border:#85632c70}
:root[data-theme="light"][data-wordmark-style="silver"],:root[data-theme="light"] [data-wordmark-preview][data-wordmark-style="silver"]{--wm-ink:#28313c;--wm-shadow:0 1px 0 #fff9;--wm-border:#626c7b50}
@media(forced-colors:active){
 :is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark])>.team-caption{background:Canvas;border-color:CanvasText;color:CanvasText!important;clip-path:none}
 :is(:root[data-match-label-mode] [data-match-wordmark]:not([data-wordmark-preview] [data-match-wordmark]),[data-wordmark-preview][data-match-label-mode] [data-match-wordmark]) :is(.team-caption-name,.team-caption-tag-text){text-shadow:none}
}

/* Uploaded team crests keep their own artwork without a system frame. */
:is(.teams-page,.schedule-page,.home-page) .team-mark.has-custom-crest{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
:is(.teams-page,.schedule-page,.home-page) .team-mark.has-custom-crest>img{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
/* The selected team's crest above its roster remains prominent at every size. */
.teams-page .team-identity>.team-mark{width:clamp(56px,6vw,72px)!important;height:clamp(56px,6vw,72px)!important;flex-basis:clamp(56px,6vw,72px)!important}
/* The bracket artwork is optically a little lower than the nameplate. Keep
   the layout slot unchanged so scores, lines and support bars stay aligned. */
.schedule-page .tournament-graph .graph-match .fixture-card .match-team>.team-mark.has-custom-crest{transform:translateY(-1px) scale(1.08);transform-origin:center}
