/* Chart tokens */
.gfd {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--d-tx); line-height: 1.35;
    --d-card: #ffffff; --d-bd: #ebe9f1; --d-hd: #5e5873; --d-tx: #6e6b7b; --d-ft: #b9b9c3;
    --d-panel: #f0f1f2;
    --d-gr: #149b48; --d-gr08: rgba(20,155,72,.08); --d-gr22: rgba(20,155,72,.22);
    --d-gr28: rgba(20,155,72,.28); --d-grhi: #11843d;
    --d-neg: #ea5455; --d-nil: #b9b9c3;
    --d-track: #eef0f2; --d-grid: rgba(94,88,115,.16);
    --d-shadow: 0 4px 24px rgba(34,41,47,.10);
}
.dark-layout .gfd {
    --d-card: #283046; --d-bd: #3b4253; --d-hd: #d0d2d6; --d-tx: #b4b7bd; --d-ft: #676d7d;
    --d-panel: rgba(0,0,0,.22);
    --d-nil: #56607f;
    --d-track: rgba(0,0,0,.24); --d-grid: rgba(255,255,255,.10);
    --d-shadow: 0 4px 24px rgba(0,0,0,.24);
}
.gfd *, .gfd *::before, .gfd *::after { box-sizing: border-box; }

/* Summary + byline row */
.gfd-sub > span:first-child { flex: 1 1 320px; min-width: 0; margin-right: 1rem; }
@media (min-width: 576px) { .gfd-sub > span:last-child { white-space: nowrap; } }

/* Toolbar */
.gfd .ds-bar .psg-control-group { flex: 1 1 140px; max-width: 240px; }
.gfd .ds-cardtools .psg-control-group.ds-pills { flex: 0 1 auto; }
.gfd .ds-cardtools .psg-control-group.ds-min { flex: 0 1 120px; }
@media (max-width: 575.98px) {
    .gfd .psg-filter-card .psg-control-group { flex: 1 1 140px; }
    .gfd .ds-cardtools .psg-control-group.ds-pills { flex: 0 1 auto; }
}
.gfd .pill-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.gfd .pill { display: inline-block; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; padding: .35rem .75rem; border-radius: 50rem; border: 1px solid #d8d6de; background: #fff; color: #6e6b7b; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gfd .pill:hover, .gfd .pill:focus { color: #6e6b7b; border-color: rgba(20,155,72,.5); text-decoration: none; }
.dark-layout .gfd .pill { background: #283046; border-color: #56607f; color: #b4b7bd; }
.dark-layout .gfd .pill:hover, .dark-layout .gfd .pill:focus { color: #b4b7bd; border-color: rgba(20,155,72,.6); }
.gfd .pill.on, .gfd .pill.on:hover, .gfd .pill.on:focus,
.dark-layout .gfd .pill.on, .dark-layout .gfd .pill.on:hover, .dark-layout .gfd .pill.on:focus { background: #149b48; border-color: #149b48; color: #fff; }
.gfd .pill:focus-visible { outline: 2px solid var(--d-gr); outline-offset: 2px; }

/* Definitions and colour legend */
.gfd .psg-legend-icons { flex-wrap: wrap; }
.gfd .sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.gfd .psg-legend-icons .badge > .sw { margin-right: 0; }

/* Empty states */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .psg-data-card { margin-bottom: 2rem; }
.gfd .ds-empty { padding: 14px; }

/* Shared kit parts */
.gfd .tm { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; text-align: center; background: #f0f1f2; color: #5e5873; }
.dark-layout .gfd .tm { background: rgba(0,0,0,.22); color: #d0d2d6; }
.gfd .pname { font-weight: 600; color: #5e5873; }
.dark-layout .gfd .pname { color: #d0d2d6; }
.gfd .pos-pill { display: inline-block; min-width: 28px; padding: 3px 6px; border-radius: 50rem; font-size: 9px; font-weight: 700; line-height: 1.1; text-align: center; vertical-align: middle; }
.gfd .pos-pill.oth { background: transparent; color: var(--d-tx); box-shadow: inset 0 0 0 1px var(--d-nil); }
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; }

/* Stat tiles */
.gfd .tilewrap { margin-bottom: 1.5rem; }
.gfd .tilewrap > .card-body { padding: 1rem; }
.gfd .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; }
.gfd .tiles .card.tile { margin-bottom: 0; padding: 12px 14px; border: 1px solid #ebe9f1; box-shadow: none; min-width: 0; }
.dark-layout .gfd .tiles .card.tile { border-color: #3b4253; }
.gfd .tile .tl { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #b9b9c3; }
.gfd .tile .tv { font-size: 20px; font-weight: 800; color: #5e5873; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.dark-layout .gfd .tile .tv { color: #d0d2d6; }
.gfd .tile .ts { font-size: 11px; color: #b9b9c3; }
.gfd .tile .tv.bad, .dark-layout .gfd .tile .tv.bad { color: #ea5455; }
.gfd .tile .tv.thin { color: #b9b9c3; font-style: italic; }
.dark-layout .gfd .tile .tv.thin { color: #676d7d; }

/* Bars */
.gfd .bar-track { position: relative; height: 10px; border-radius: 5px; background: #eef0f2; overflow: hidden; min-width: 60px; }
.dark-layout .gfd .bar-track { background: rgba(0,0,0,.24); }
.gfd .bar-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; background: #149b48; }
.gfd .bar-fill.nil { background: #b9b9c3; }
.dark-layout .gfd .bar-fill.nil { background: #56607f; }
.gfd .bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

/* Tool: directional splits */
.gfd .tile .tv .tm { font-size: 11px; vertical-align: 3px; margin-right: 2px; }
.gfd .mix { display: flex; gap: 2px; height: 10px; margin: 8px 0 5px; }
.gfd .mix i { display: block; height: 100%; border-radius: 3px; }
.gfd .mix .s1 { background: #149b48; }
.gfd .mix .s2 { background: rgba(20,155,72,.5); }
.gfd .mix .s3 { background: rgba(20,155,72,.25); }
.dark-layout .gfd .mix .s2 { background: rgba(47,194,106,.55); }
.dark-layout .gfd .mix .s3 { background: rgba(47,194,106,.28); }
.gfd .mixlab { display: flex; gap: 2px; font-size: 11px; font-weight: 700; color: #5e5873; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .mixlab { color: #d0d2d6; }
.gfd .mixlab span { white-space: nowrap; }
.gfd .ds-cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.gfd .ds-cardhead .card-title { margin: 0; }
.gfd .ds-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .ds-desc { color: #9aa0b0; }
.gfd .ds-cardhead .ds-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .ds-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .ds-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .ds-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .ds-hd-key .badge > i, .gfd .ds-hd-key .badge > .dot, .gfd .ds-hd-key .badge > svg { margin-right: 5px; }
.gfd .ds-hd-key .badge i.tick { display: inline-block; width: 2px; height: 12px; border-radius: 1px; background: #5e5873; opacity: .55; }
.dark-layout .gfd .ds-hd-key .badge i.tick { background: #d0d2d6; }
.gfd .ds-hd-key .badge > i.sw:first-child { margin-right: 2px; }
.gfd .ds-cardtools { padding: 10px 14px 0; }
.gfd .lean, .gfd .weak { display: inline-block; min-width: 74px; padding: 3px 7px; border-radius: 50rem; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; line-height: 1.1; text-align: center; white-space: nowrap; }
.gfd .lean.hi { background: #5e5873; color: #fff; }
.dark-layout .gfd .lean.hi { background: #d0d2d6; color: #283046; }
.gfd .lean.md { color: #5e5873; box-shadow: inset 0 0 0 1px #8e8a9c; }
.dark-layout .gfd .lean.md { color: #d0d2d6; box-shadow: inset 0 0 0 1px #8e93a3; }
.gfd .lean.ev { color: #6e6b7b; box-shadow: inset 0 0 0 1px #b9b9c3; }
.dark-layout .gfd .lean.ev { color: #8e93a3; box-shadow: inset 0 0 0 1px #56607f; }
.gfd .lean.thin { color: #b9b9c3; font-style: italic; box-shadow: inset 0 0 0 1px #b9b9c3; }
.dark-layout .gfd .lean.thin { color: #676d7d; box-shadow: inset 0 0 0 1px #56607f; }
.gfd .weak.hi { background: #ea5455; color: #fff; }
.gfd .weak.md { color: #d63f40; background: rgba(234,84,85,.08); box-shadow: inset 0 0 0 1px rgba(234,84,85,.7); }
.dark-layout .gfd .weak.md { color: #ff8a8b; }
.gfd .ds-foot { padding: 0 14px 14px; }

/* Data tables (the site's table--statistics tables, ASP.NET-first) */
.gfd .ds-tsc { margin-top: 10px; }
.gfd .ds-tbl { margin-bottom: 0; font-variant-numeric: tabular-nums; }
.gfd .ds-tbl th, .gfd .ds-tbl td { white-space: nowrap; }
.gfd .ds-tbl th { text-align: center; line-height: 1.3; }
.gfd .ds-tbl tr:not(.grp) th { vertical-align: bottom !important; }
.gfd .ds-tbl th.l, .gfd .ds-tbl td.l { text-align: center; }
.gfd .ds-tbl th.c, .gfd .ds-tbl td.c { text-align: center; }
.gfd .ds-tbl tr.grp th { vertical-align: middle; }
.gfd .ds-tbl tr.grp th:not(.psg-sep) { background: #e9e8ef; }
.dark-layout .gfd .ds-tbl tr.grp th:not(.psg-sep) { background: #2d3449; }
.gfd .ds-tbl th.srt { color: #149b48; }
.dark-layout .gfd .ds-tbl th.srt { color: #2fc26a; }
.gfd .ds-tbl.table--statistics.table-striped td.srt { background: rgba(20,155,72,.05); }
.gfd .ds-tbl td.rank { color: #b9b9c3; font-size: 11px; }
.dark-layout .gfd .ds-tbl td.rank { color: #676d7d !important; }
.gfd .ds-tbl .tname { margin-left: 8px; font-weight: 600; color: #5e5873; }
.dark-layout .gfd .ds-tbl .tname { color: #d0d2d6; }
.gfd .ds-tbl td.ds-team .tm { display: none; }
.gfd .ds-tbl td.ds-team .tname { margin-left: 0; }
@media (max-width: 767.98px) { .gfd .ds-tbl .tname { display: none; } .gfd .ds-tbl td.ds-team .tm { display: inline; min-width: 0; padding: 0; border-radius: 0; background: transparent; font-size: inherit; font-weight: 600; color: #5e5873; } .dark-layout .gfd .ds-tbl td.ds-team .tm { background: transparent; color: #d0d2d6; } }
.gfd .ds-tbl td.strong, .gfd .ds-tbl .strong { font-weight: 700; }
.gfd .ds-tbl td.nil { color: var(--d-ft); }
.dark-layout .gfd .ds-tbl td.nil { color: var(--d-ft) !important; }
.gfd .ds-tbl td.thin { color: var(--d-ft); font-style: italic; }
.dark-layout .gfd .ds-tbl td.thin { color: var(--d-ft) !important; }
.gfd .ds-tbl .frac { font-size: 10px; color: #b9b9c3; margin-left: 4px; font-style: normal; }
.dark-layout .gfd .ds-tbl .frac { color: #676d7d; }
.gfd .ds-tbl.table--statistics tr.ds-avg td:not(.psg-sep) { font-weight: 700; background: #fafafb; box-shadow: inset 0 1px 0 #d8d6de; }
.dark-layout .gfd .ds-tbl.table--statistics tr.ds-avg td:not(.psg-sep) { background: #2c354c; box-shadow: inset 0 1px 0 #56607f; }
@media (max-width: 991.98px) {
    .gfd .ds-tbl.sticky-cols tr.ds-avg td:nth-child(1), .gfd .ds-tbl.sticky-cols tr.ds-avg td:nth-child(2) { background-color: #fafafb !important; }
    .dark-layout .gfd .ds-tbl.sticky-cols tr.ds-avg td:nth-child(1), .dark-layout .gfd .ds-tbl.sticky-cols tr.ds-avg td:nth-child(2) { background-color: #2c354c !important; }
}
.gfd .ds-rb .sn { display: none; }

/* Share bars in the tables */
.gfd .ds-tbl .bar-cell { justify-content: center; gap: 6px; }
.gfd .ds-tbl .bar-cell .shv { min-width: 40px; text-align: right; }
.gfd .ds-tbl .bar-cell .bar-track { flex: 0 0 64px; min-width: 64px; overflow: visible; }
.gfd .ds-tbl .bar-track .ds-tick { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #5e5873; opacity: .55; border-radius: 1px; }
.dark-layout .gfd .ds-tbl .bar-track .ds-tick { background: #d0d2d6; }

/* Heat cells: above the site's dark stripe (0,4,2) and the sorted-column tint, no light stripe overlay */
.gfd .sw.heat-2 { background: rgba(20,155,72,.22); }
.gfd .sw.heat-3 { background: rgba(20,155,72,.38); }
.gfd .sw.heat-n1 { background: rgba(234,84,85,.14); }
.gfd .sw.heat-n2 { background: rgba(234,84,85,.30); }
.gfd .ds-tbl.table--statistics td[class*="heat-"] { --bs-table-accent-bg: transparent; }
.gfd .ds-tbl.table--statistics.table-striped td.heat-2 { background: rgba(20,155,72,.22); color: #0d5e2c; }
.gfd .ds-tbl.table--statistics.table-striped td.heat-3 { background: rgba(20,155,72,.38); color: #0d5e2c; }
.gfd .ds-tbl.table--statistics.table-striped td.heat-n1 { background: rgba(234,84,85,.14); color: #7a1f20; }
.gfd .ds-tbl.table--statistics.table-striped td.heat-n2 { background: rgba(234,84,85,.30); color: #7a1f20; }
.dark-layout .gfd .ds-tbl td.heat-2, .dark-layout .gfd .ds-tbl td.heat-n1 { color: #b4b7bd !important; }
.dark-layout .gfd .ds-tbl td.heat-3, .dark-layout .gfd .ds-tbl td.heat-n2 { color: #fff !important; }
.gfd .ds-tbl td[class*="heat-"] .frac { color: inherit; opacity: 1; }

/* Footnote */
.gfd .ds-note { margin: 0 0 1rem; }

/* Phones */
@media (max-width: 575.98px) {
    .gfd .ds-rb .fn { display: none; }
    .gfd .ds-rb .sn { display: inline; }
    .gfd .ds-rb.table--statistics td.l { white-space: normal; }
    .gfd .ds-rb .sn { display: inline-block; max-width: 96px; line-height: 1.25; }
}

/* Phones: the site filter panel (Filter Options toggle), label left and control right as on every site page */
@media (max-width: 767.98px) {
    .gfd .psg-section--filters .psg-toolbar-row .psg-control-group { flex: 0 0 auto; max-width: none; }
}
/* Phones: a Definitions row that would wrap scrolls sideways as one line instead */
@media (max-width: 767.98px) {
    .gfd .psg-legend-row .psg-legend-group { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .gfd .psg-legend-row .psg-legend-group::-webkit-scrollbar { display: none; }
    .gfd .psg-legend-row .psg-legend-icons { flex-wrap: nowrap; flex: 0 0 auto; }
    .gfd .psg-legend-row .psg-legend-group > *, .gfd .psg-legend-row .psg-legend-icons > * { flex: 0 0 auto; white-space: nowrap; }
}
