/* 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 (above .gfd, so not scoped) */
.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; } }

/* Tool tokens */
.gfd { --d-grt: #0f7a39; --d-sub: #b9b9c3; }
.dark-layout .gfd { --d-grt: #2fc26a; --d-sub: #a3a7b5; }

/* Empty states and the game select */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .gm-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.gfd .gm-bar .psg-control-group { min-width: 0; }
@media (min-width: 768px) { .gfd .gm-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); } }
.gfd .psg-data-card { margin-bottom: 2rem; }
@media (max-width: 575.98px) { .gfd .psg-filter-card .psg-control-group { flex: 1 1 140px; } }

/* Muted text, pills, team chips */
.gfd .muted { color: #b9b9c3; }
.dark-layout .gfd .muted { color: #676d7d; }
.gfd .pill { font: inherit; font-size: 12px; font-weight: 600; padding: .35rem .75rem; border-radius: 50rem; border: 1px solid #d8d6de; background: #fff; color: #6e6b7b; cursor: pointer; }
.dark-layout .gfd .pill { background: #283046; border-color: #56607f; color: #b4b7bd; }
.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; }

/* Data table */
.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 td.strong { font-weight: 700; color: #5e5873; }
.dark-layout .gfd .dtbl td.strong { color: #d0d2d6; }
.gfd .dtbl tbody tr:hover td { background: rgba(20,155,72,.06); }
.gfd .dtbl .rank { color: var(--d-sub); font-weight: 600; width: 32px; }
@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 .dtbl th.on { color: #0f7a39; }
.dark-layout .gfd .dtbl th.on { color: #2fc26a; }
.gfd .dtbl td.muted { color: #b9b9c3; font-size: 11px; }
.dark-layout .gfd .dtbl td.muted { color: #a3a7b5; }
.gfd .dtbl td .tm { min-width: 34px; }
.gfd .dtbl tr.lg-row td { font-weight: 700; box-shadow: inset 0 1px 0 #d8d6de; }
.dark-layout .gfd .dtbl tr.lg-row td { box-shadow: inset 0 1px 0 #56607f; }
.gfd .dtbl td.lo, .dark-layout .gfd .dtbl td.lo { font-style: italic; color: var(--d-sub); }

/* Definitions legend row */
.gfd .psg-legend-icons { flex-wrap: wrap; }

/* Section heads, tiles */
.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 .ppc-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .ppc-desc { color: #9aa0b0; }
.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; }
.dark-layout .gfd .tile .tv { color: #d0d2d6; }
.gfd .tile .tv small { font-size: 12px; font-weight: 700; }
.gfd .tile .ts { font-size: 11px; color: var(--d-sub); }
.gfd .grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) { .gfd .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Tempo vs neutral pass rate */
.gfd .sc { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; }
.gfd .sc-m { display: none; }
@media (max-width: 575.98px) { .gfd .sc-d { display: none; } .gfd .sc-m { display: block; } }
.gfd .sc-grid { stroke: var(--d-grid); stroke-width: 1; }
.gfd .sc-avg { stroke: var(--d-ft); stroke-width: 1.2; stroke-dasharray: 4 3; }
.gfd .sc-ax { fill: var(--d-sub); font-size: 9.5px; font-family: inherit; }
.gfd .sc-axt { font-weight: 700; letter-spacing: .3px; }
.gfd .sc-q { fill: var(--d-sub); font-size: 8.5px; font-weight: 800; letter-spacing: .6px; font-family: inherit; }
.gfd .sc-avgl { fill: var(--d-sub); font-size: 8px; font-weight: 700; font-family: inherit; }
.gfd .sc-m .sc-ax { font-size: 10.5px; }
.gfd .sc-m .sc-q { font-size: 9.5px; }
.gfd .sc-m .sc-avgl { font-size: 9px; }
.gfd .sc-dot { fill: var(--d-gr); stroke: var(--d-card); stroke-width: 1.5; }
.gfd .sc-dot.nil { fill: var(--d-nil); }
.gfd .sc-lab { fill: var(--d-hd); font-size: 10.5px; font-weight: 700; font-family: inherit; }
.gfd .sc-lead { stroke: var(--d-ft); stroke-width: 1; }
.gfd .qd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gfd .qd-box { background: var(--d-panel); border-radius: 8px; padding: 8px 10px; }
.gfd .qd-hd { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-sub); margin-bottom: 6px; }
.gfd .qd-hd span { color: var(--d-grt); margin-left: 3px; }
.gfd .qd-tms { display: flex; flex-wrap: wrap; gap: 4px; }
.gfd .qd .tm { background: var(--d-card); }

/* Plays per game and pass share */
.gfd .pb-wrap { position: relative; padding-top: 14px; }
.gfd .pb-row { display: grid; grid-template-columns: 38px 1fr 84px; align-items: center; gap: 0; height: 21px; }
.gfd .pb-row .tm { min-width: 32px; padding: 2px 4px; }
.gfd .pb-track { position: relative; height: 12px; margin-left: 6px; background: var(--d-track); border-radius: 4px; overflow: hidden; }
.gfd .pb-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--d-nil); border-radius: 4px; overflow: hidden; }
.gfd .pb-pass { position: absolute; top: 0; bottom: 0; left: 0; background: var(--d-gr); }
.gfd .pb-v { padding-left: 8px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--d-hd); }
.gfd .pb-s { font-size: 10.5px; color: var(--d-sub); }
.gfd .pb-avg { position: absolute; top: 0; bottom: 0; margin-left: 6px; border-left: 1.5px dashed var(--d-ft); pointer-events: none; z-index: 1; }
.gfd .pb-avg span { position: absolute; top: 0; left: 3px; font-size: 8px; font-weight: 700; letter-spacing: .3px; color: var(--d-sub); white-space: nowrap; }

/* Team cards */
.gfd .tcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 12px; }
.gfd .tc-more { display: none; margin: 12px auto 0; font-size: 12px; padding: .35rem .9rem; }
@media (max-width: 575.98px) {
    .gfd .tcs:not(.all) > .tc:nth-child(n+6):nth-last-child(n+6) { display: none; }
    .gfd .tc-more { display: block; }
}
.gfd .tc { background: var(--d-card); border: 1px solid var(--d-bd); border-radius: 8px; box-shadow: var(--d-shadow); padding: 12px 12px 9px; min-width: 0; }
.gfd .tc:hover { border-color: rgba(20,155,72,.4); }
.gfd .tc-hd { display: flex; align-items: center; gap: 7px; }
.gfd .tc-rk { color: #b9b9c3; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .tc-rk { color: #9aa0b0; }
.gfd .tc-nm { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--d-hd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gfd .tc-hd .tc-nm { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.gfd .tc-kpis { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 6px; margin-top: 9px; }
.gfd .kpi { min-width: 0; }
.gfd .kl { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-sub); white-space: nowrap; }
.gfd .kv { font-size: 19px; font-weight: 800; line-height: 1.15; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .kv small { font-size: 11px; font-weight: 700; }
.gfd .kv.lo { font-style: italic; color: var(--d-sub); }
.gfd .ks { font-size: 10px; color: var(--d-sub); white-space: nowrap; }
.gfd .ks .up { color: var(--d-grt); font-weight: 700; }
.gfd .ks .dn { color: var(--d-tx); font-weight: 700; }
.gfd .tc-meter { margin-top: 7px; }
.gfd .tc-mt { position: relative; height: 6px; border-radius: 3px; background: var(--d-track); }
.gfd .tc-mf { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--d-gr); }
.gfd .tc-ma { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--d-hd); border-radius: 1px; }
.gfd .tc-cap { margin-top: 9px; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-sub); }
.gfd .tc-cap .muted { font-weight: 600; text-transform: none; letter-spacing: 0; }
.gfd .mc { display: block; width: 100%; height: auto; margin-top: 2px; }
.gfd .mc-grid { stroke: var(--d-grid); stroke-width: 1; stroke-dasharray: 2 3; }
.gfd .mc-track { fill: var(--d-track); }
.gfd .mc-bar { fill: var(--d-gr); }
.gfd .mc-bar.nil { fill: var(--d-nil); }
.gfd .mc-avg { stroke: var(--d-hd); stroke-width: 1.6; opacity: .75; }
.gfd .mc-v { fill: var(--d-hd); font-size: 11.5px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.gfd .mc-v.nil { fill: var(--d-sub); font-style: italic; }
.gfd .mc-l { fill: var(--d-tx); font-size: 10px; font-weight: 600; text-anchor: middle; font-family: inherit; }
.gfd .mc-n { fill: var(--d-sub); font-size: 9.5px; text-anchor: middle; font-family: inherit; }
.gfd .tc-ft { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--d-bd); font-size: 11px; color: var(--d-hd); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gfd .tc-ft span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-sub); }
.gfd .tc-ft b { font-size: 9.5px; color: var(--d-sub); margin-right: 2px; }
.gfd .tc-ft .ftn { font-size: 9.5px; color: var(--d-sub); }
.gfd .tc-ft .lo { font-style: italic; color: var(--d-sub); }

/* Full table drawer */
.gfd .drawer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.285rem; font-weight: 500; color: #5e5873; }
.dark-layout .gfd .drawer > summary { color: #d0d2d6; }
.gfd .drawer > summary::-webkit-details-marker { display: none; }
.gfd .drawer > summary .chev { font-size: 18px; line-height: 1; color: var(--d-sub); transition: transform .2s; }
.gfd .drawer[open] > summary .chev { transform: rotate(90deg); color: #149b48; }
.gfd .drawer > summary .sub { font-size: 11px; font-weight: 500; color: var(--d-sub); margin-left: 8px; }
.gfd .drawer .tscroll { margin-top: 12px; max-height: 560px; overflow-y: auto; }

/* Legends */
.gfd .leg2 { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10.5px; color: var(--d-sub); margin-top: 8px; }
.gfd .leg2 i { display: inline-block; width: 14px; height: 6px; border-radius: 3px; margin-right: 5px; vertical-align: middle; background: var(--d-gr); }
.gfd .leg2 i.nil { background: var(--d-nil); }
.gfd .leg2 i.tick { width: 14px; height: 2px; border-radius: 1px; background: var(--d-hd); }
.gfd .leg2 i.dash { width: 14px; height: 0; border-top: 1.5px dashed var(--d-ft); border-radius: 0; background: none; }
.gfd .sec-hd .leg2 { margin-top: 0; margin-left: auto; justify-content: flex-end; font-size: 11px; }

/* Game environment */
.gfd .mu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gfd .mu-gm { grid-column: 1 / -1; order: 3; }
@media (min-width: 768px) { .gfd .mu { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); } .gfd .mu-gm { grid-column: auto; order: 0; } }
.gfd .mu-p { background: var(--d-panel); border-radius: 8px; padding: 9px 12px 8px; min-width: 0; }
.gfd .mu-p.mu-gm { background: var(--d-card); box-shadow: inset 0 0 0 1px rgba(20,155,72,.45); }
.gfd .mu .tm { background: var(--d-card); }
.gfd .mu-hd { display: flex; align-items: center; gap: 7px; min-height: 22px; margin-bottom: 2px; }
.gfd .mu-gt { font-size: 13px; font-weight: 700; color: var(--d-hd); }
.gfd .mu-ha { flex: 0 0 auto; margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-sub); }
.gfd .mu-hd .tm { display: none; }
@media (max-width: 575.98px) { .gfd .mu-hd .tc-nm { display: none; } .gfd .mu-hd .tm { display: inline-block; } }
.gfd .mu-r { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; box-shadow: inset 0 1px 0 var(--d-grid); }
.gfd .mu-hd + .mu-r { box-shadow: none; }
.gfd .mu-l { min-width: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-sub); }
.gfd .mu-v { flex: 0 0 auto; text-align: right; font-size: 16px; font-weight: 800; line-height: 1.15; color: var(--d-hd); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gfd .mu-v small { font-size: 10.5px; font-weight: 700; }
.gfd .mu-s { display: block; font-size: 10px; font-weight: 600; color: var(--d-sub); }
.gfd .mu-track { position: relative; height: 12px; margin-top: 8px; border-radius: 4px; background: var(--d-track); }
.gfd .mu-a, .gfd .mu-h { position: absolute; top: 0; bottom: 0; }
.gfd .mu-a { left: 0; background: var(--d-gr); border-radius: 4px 0 0 4px; }
.gfd .mu-h { background: var(--d-nil); border-radius: 0 4px 4px 0; }
.gfd .mu-t { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--d-hd); border-radius: 1px; }
.gfd .mu .ppc-hd-key { margin-top: 6px; }

/* 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; }
}

/* Card key pills in the title row */
.gfd .sec-hd .ppc-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .ppc-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .ppc-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .ppc-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .ppc-hd-key .badge > i, .gfd .ppc-hd-key .badge > .dot, .gfd .ppc-hd-key .badge > svg { margin-right: 5px; }
