/* 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; }

/* Tool tokens */
.gfd { --x-o1: rgba(20,155,72,.34); --x-o2: rgba(20,155,72,.66); --x-c0: #e2e4e9; --x-sub: #b9b9c3; }
.dark-layout .gfd { --x-o1: rgba(20,155,72,.40); --x-o2: rgba(20,155,72,.70); --x-c0: rgba(255,255,255,.08); --x-sub: #b4b7bd; }

/* 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 .psg-filter-card .psg-control-group.di-pills { flex: 0 1 auto; }
.gfd .psg-filter-card .psg-control-group.di-min { flex: 0 1 96px; }
.gfd .psg-legend-icons { flex-wrap: wrap; }
@media (max-width: 991.98px) {
    .gfd .psg-filter-card .psg-control-group { flex: 1 1 140px; }
    .gfd .psg-filter-card .psg-control-group.di-pills { flex: 0 1 auto; }
    .gfd .psg-filter-card .psg-control-group.di-min { flex: 0 1 96px; }
}
.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; }

/* Empty states, muted text, small samples */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .psg-data-card { margin-bottom: 2rem; }
.gfd .muted { color: #b9b9c3; }
.dark-layout .gfd .muted { color: #676d7d; }
.gfd .lo, .gfd .lo small, .gfd .lo b, .gfd .lo i { font-style: italic; color: var(--d-ft); }

/* Player and team identity */
.gfd .pos-pill { flex: 0 0 auto; min-width: 28px; padding: 3px 6px; font-size: 9px; line-height: 1.1; vertical-align: middle; }
.gfd .pos-pill.oth { background: transparent; color: var(--d-tx); box-shadow: inset 0 0 0 1px var(--d-nil); }
.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; }

/* 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; }
.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; }

/* Bars */
.gfd .bar-track { position: relative; display: block; 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; }
.gfd .bar-cell .bar-track { flex: 0 0 90px; }

/* Legends and footnote */
.gfd .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 10.5px; color: #b9b9c3; margin-top: 8px; }
.gfd .legend .lg { display: inline-block; width: 14px; height: 6px; border-radius: 3px; margin-right: 5px; vertical-align: middle; background: #149b48; }
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; }

/* Card heads, summaries and the map + summary row */
.gfd .sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.gfd .sec-hd .card-title { margin: 0; }
.gfd .sec-hd .legend { margin: 0 0 0 auto; justify-content: flex-end; font-size: 11px; }
.gfd .di-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .di-desc { color: #9aa0b0; }
.gfd .di-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 2rem; }
.gfd .di-row .card { margin-bottom: 0; }
@media (max-width: 991.98px) { .gfd .di-row { grid-template-columns: 1fr; } }

/* SVG cell classes (map, card strips) */
.gfd.di svg .c0 { fill: var(--x-c0); }
.gfd.di svg .c1 { fill: var(--x-o1); }
.gfd.di svg .c2 { fill: var(--x-o2); }
.gfd.di svg .c3 { fill: var(--d-gr); }
.gfd.di svg .dnp { fill: none; stroke: var(--d-nil); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.gfd.di svg .tdm { fill: #fff; stroke: #0b6c30; stroke-width: 1; vector-effect: non-scaling-stroke; }
.gfd.di svg .r-td, .gfd.di svg .r-fg { fill: var(--d-gr); }
.gfd.di svg .r-no { fill: var(--d-nil); }
.gfd.di svg .r-to { fill: var(--d-neg); }
.gfd.di svg rect:hover { stroke: var(--d-hd); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gfd .legend .lg.c0 { background: var(--x-c0); }
.gfd .legend .lg.c1 { background: var(--x-o1); }
.gfd .legend .lg.c2 { background: var(--x-o2); }
.gfd .legend .lg.c3, .gfd .legend .lg.r-td { background: var(--d-gr); }
.gfd .legend .lg.r-no { background: var(--d-nil); }
.gfd .legend .lg.r-to { background: var(--d-neg); }
.gfd .legend .lg.sw { width: 10px; height: 10px; border-radius: 2px; }
.gfd .legend .lg.tdk { background: var(--d-gr); box-shadow: inset 0 0 0 3px var(--d-gr), inset 0 0 0 5px #fff; }
.gfd .legend .lg.dnp { background: transparent; border: 1px dashed var(--d-nil); }
.gfd .legend .lg.dotk { width: 8px; height: 8px; border-radius: 50%; background: var(--d-nil); }
.gfd .legend .lg.dotk.top { background: var(--d-gr); }
.gfd .legend .lg.dotk.own { background: var(--d-nil); box-shadow: 0 0 0 1.5px var(--d-hd); }
.gfd .legend span { white-space: nowrap; }
.gfd .legend span.lo { white-space: normal; }
.gfd .di-key b { font-weight: 700; color: var(--d-hd); }
.gfd .di-map-key { display: flex; flex-direction: column; gap: 4px; margin: -2px 0 12px; }
.gfd .di-map-key .legend { margin: 0; justify-content: flex-start; gap: 6px 12px; align-items: center; }
.gfd .di-map-key .lb { min-width: 74px; }
.gfd .sec-hd .di-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .di-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; }
.gfd .di-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .di-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .di-hd-key .badge .lg { margin-right: 5px; }
.gfd .di-hd-key .badge .lo { font-style: italic; }

/* Drive map */
.gfd .dm { --lab: 124px; display: flex; flex-direction: column; gap: 3px; }
.gfd .dm-r { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) 50px; gap: 8px; align-items: center; min-height: 20px; }
.gfd .dm-lab { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; font-size: 12px; }
.gfd .dm-lab .pname { overflow: hidden; text-overflow: ellipsis; }
.gfd .dm-svg { display: block; width: 100%; height: 15px; }
.gfd .dm-rs { height: 8px; }
.gfd .dm-n { font-size: 11px; text-align: right; color: var(--x-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gfd .dm-n b { color: var(--d-hd); font-size: 12px; }
.gfd .dm-games .dm-n { font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.gfd .gl { position: relative; height: 32px; }
.gfd .gl span { position: absolute; bottom: 0; display: flex; flex-direction: column; line-height: 1.25; font-size: 10.5px; padding-left: 5px; border-left: 2px solid var(--d-bd); white-space: nowrap; overflow: hidden; }
.gfd .gl b { color: var(--d-hd); font-weight: 700; }
.gfd .gl i { font-style: normal; color: var(--x-sub); }
.gfd .dm-narrow { display: none; }
.gfd .dmn-t { white-space: nowrap; font-size: 11.5px; grid-column: 1 / 3; }
.gfd .dmn-t b { color: var(--d-hd); }
.gfd .dmn-t i { font-style: normal; color: var(--x-sub); margin-left: 4px; }
.gfd .dm-narrow .dm-games { min-height: 0; }
.gfd .dm-narrow .dm-games > div:nth-child(2) { display: none; }
.gfd .dm + .gfb-empty, .gfd .dm-narrow + .gfb-empty { margin-top: 10px; }
@media (max-width: 575.98px) {
    .gfd .dm { --lab: 108px; }
    .gfd .dm-lab .pos-pill { min-width: 24px; padding: 3px 4px; }
    .gfd .dm-wide { display: none; }
    .gfd .dm-narrow { display: flex; flex-direction: column; gap: 16px; }
}

/* Team summary */
.gfd .ds-r { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--d-bd); }
.gfd .ds-r:last-child { border-bottom: 0; }
.gfd .ds-l { min-width: 0; font-weight: 600; color: var(--d-hd); font-size: 13px; }
.gfd .ds-l small { display: block; font-weight: 400; font-size: 11.5px; color: var(--x-sub); margin-top: 1px; }
.gfd .ds-v { text-align: right; font-weight: 700; color: var(--d-hd); font-size: 15px; white-space: nowrap; }
.gfd .ds-w { white-space: normal; max-width: 60%; overflow-wrap: anywhere; }

/* Player cards */
.gfd .pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.gfd .pc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 14px; background: var(--d-card); border: 1px solid var(--d-bd); border-radius: 8px; box-shadow: var(--d-shadow); }
.gfd .pc-who b { display: block; font-size: 15px; font-weight: 600; color: var(--d-hd); }
.gfd .pc-who span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--x-sub); margin-top: 3px; }
.gfd .pc-big { font-size: 30px; font-weight: 600; line-height: 1; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .pc-big small { font-size: 12.5px; font-weight: 500; color: var(--x-sub); margin-left: 6px; }
.gfd .pc-big.lo, .gfd .pc-big.lo small { font-style: italic; color: var(--d-ft); }
.gfd .pc-strips { display: flex; flex-direction: column; gap: 6px; }
.gfd .pc-g { display: grid; grid-template-columns: 94px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.gfd .pc-gl { font-size: 11px; color: var(--x-sub); white-space: nowrap; }
.gfd .pc-gl b { color: var(--d-hd); }
.gfd .pc-svg { display: block; width: 100%; height: 19px; }
.gfd .pc-gn { font-size: 11px; text-align: right; color: var(--d-tx); font-variant-numeric: tabular-nums; }
.gfd .pc-dnp { font-size: 11px; font-style: italic; color: var(--x-sub); }
.gfd .pc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--d-bd); padding-top: 10px; }
.gfd .pc-facts div { display: flex; flex-direction: column; line-height: 1.3; }
.gfd .pc-facts span, .gfd .pc-cap { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--x-sub); }
.gfd .pc-facts b { font-size: 14px; font-weight: 600; color: var(--d-hd); }
.gfd .pc-facts .lo b { font-style: italic; color: var(--d-ft); }
.gfd .pc-sc { display: flex; flex-direction: column; gap: 5px; }
.gfd .pc-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 11.5px; }
.gfd .pc-bar b { text-align: right; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .pc-bar.lo b { font-style: italic; color: var(--d-ft); }
.gfd .pc-bar .bar-track { min-width: 0; }
.gfd .pc-with { font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.gfd .pc-pws { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.gfd .pc-with em { font-style: normal; font-weight: 600; color: var(--d-hd); }
.gfd .pc-with i { font-style: normal; color: var(--x-sub); margin-left: 4px; }

/* League */
.gfd .lg-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 2rem; }
.gfd .lg-cards .card { margin-bottom: 0; }
@media (min-width: 992px) { .gfd .lg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gfd .lg-t { display: inline-flex; align-items: center; gap: 8px; }
.gfd .lg-svg { display: block; width: 100%; height: auto; }
.gfd .lg-svg .gx { stroke: var(--d-grid); stroke-width: 1; }
.gfd .lg-svg .dt { fill: var(--d-nil); fill-opacity: .75; }
.gfd .lg-svg .dt.top { fill: var(--d-gr); fill-opacity: 1; }
.gfd .lg-svg .dt.top.lo { fill: var(--d-nil); fill-opacity: .75; }
.gfd .lg-svg .dt.own { stroke: var(--d-hd); stroke-width: 1.4; }
.gfd .lg-ax { position: relative; height: 16px; font-size: 10px; color: var(--x-sub); }
.gfd .lg-ax span { position: absolute; top: 2px; transform: translateX(-50%); }
.gfd .lg-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gfd .lg-list li { display: grid; grid-template-columns: minmax(0, 1fr) 56px 34px 36px; gap: 8px; align-items: center; font-size: 12px; }
.gfd .lg-n { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.gfd .lg-n .pname { overflow: hidden; text-overflow: ellipsis; }
.gfd .lg-list .bar-track { min-width: 0; height: 8px; }
.gfd .lg-list b { text-align: right; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .lg-list i { font-style: normal; text-align: right; color: var(--x-sub); font-size: 11px; font-variant-numeric: tabular-nums; }
.gfd .lg-list li.lo .pname, .gfd .lg-list li.lo b, .gfd .lg-list li.lo i { font-style: italic; color: var(--d-ft); }

/* Drawer and table */
.gfd .di-drawer { margin-top: 22px; }
.gfd .di-drawer > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 14px; margin-bottom: 12px; border-radius: .428rem; background: #fff; box-shadow: 0 4px 24px rgba(34,41,47,.10); font-size: 1.285rem; font-weight: 500; color: #5e5873; }
.gfd .di-drawer > summary::-webkit-details-marker { display: none; }
.gfd .di-drawer > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #149b48; color: #fff; font-weight: 700; flex: 0 0 20px; }
.gfd .di-drawer[open] > summary::before { content: "-"; }
.dark-layout .gfd .di-drawer > summary { background: #283046; color: #d0d2d6; box-shadow: 0 4px 24px rgba(0,0,0,.24); }
.gfd .tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gfd .dtbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gfd .dtbl th { position: sticky; top: 0; z-index: 2; background: #f3f2f7; color: #5e5873; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 8px 10px; text-align: right; white-space: nowrap; }
.dark-layout .gfd .dtbl th { background: #343d55; color: #d0d2d6; }
.gfd .dtbl td { padding: 7px 10px; text-align: right; white-space: nowrap; box-shadow: inset 0 -1px 0 #ebe9f1; color: #6e6b7b; }
.dark-layout .gfd .dtbl td { box-shadow: inset 0 -1px 0 #3b4253; color: #b4b7bd; }
.gfd .dtbl th.l, .gfd .dtbl td.l { text-align: left; }
.gfd .dtbl tbody tr:hover td { background: rgba(20,155,72,.06); }
.gfd .dtbl tr.more { display: none; }
.gfd .dtbl.all tr.more { display: table-row; }
.gfd .dtbl th.sorted { color: #149b48; }
.dark-layout .gfd .dtbl th.sorted { color: #5fd08a; }
.gfd .dtbl .sa { font-size: 8px; margin-left: 3px; }
.gfd .dtbl .tp { display: flex; align-items: center; gap: 8px; }
.gfd .dtbl .rk { color: #b9b9c3; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .dtbl .rk { color: #9aa0b0; }
.gfd .dtbl .tp2 { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.gfd .dtbl .bar-cell b { min-width: 34px; text-align: right; }
.gfd .dtbl .bar-cell .bar-track { flex: 0 0 70px; }
.gfd .dtbl tbody tr.lo td, .gfd .dtbl tbody tr.lo .pname, .gfd .dtbl tbody tr.lo b, .gfd .dtbl tbody td.lo { font-style: italic; color: var(--d-ft); }
.gfd .di-more { margin-top: 12px; font-size: 12px; }
@media (max-width: 575.98px) {
    .gfd .dtbl th:first-child, .gfd .dtbl td:first-child { position: sticky; left: 0; z-index: 1; background: inherit; }
    .gfd .dtbl td:first-child { background: #fff; }
    .dark-layout .gfd .dtbl td:first-child { background: #283046; }
    .gfd .dtbl th:first-child { z-index: 3; background: #f3f2f7; }
    .dark-layout .gfd .dtbl th:first-child { background: #343d55; }
    .gfd .dtbl tbody tr:hover td:first-child { background: #f1f9f4; }
    .dark-layout .gfd .dtbl tbody tr:hover td:first-child { background: #273646; }
    .gfd .ds-v { white-space: normal; max-width: 45%; font-size: 14px; }
    .gfd .dtbl .tp .pname { display: block; max-width: 108px; overflow: hidden; text-overflow: ellipsis; }
}

/* 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; }
}

/* Phones: long filter labels take their short form */
.gfd .psg-control-label .lbl-s { display: none; }
@media (max-width: 767.98px) {
    .gfd .psg-control-label .lbl-l { display: none; }
    .gfd .psg-control-label .lbl-s { display: inline; }
}
