/* 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: drive result colours; muted text */
.gfd { --r-td: #149b48; --r-fg: #4fb07a; --r-punt: #b9b9c3; --r-oth: #a3a7b4; --r-to: #ea5455; --r-x: #fff; }
.dark-layout .gfd { --r-td: #3cc878; --r-fg: #23784a; --r-punt: #6b7390; --r-oth: #7d85a1; --r-to: #f06a6b; --r-x: #283046; --d-ft: #9aa0b0; }

/* 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; } }

/* Empty states, toolbar, definitions row */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .psg-data-card { margin-bottom: 2rem; }
.gfd .psg-legend-icons { flex-wrap: wrap; }
@media (max-width: 575.98px) { .gfd .psg-filter-card .psg-control-group { flex: 1 1 140px; } }

/* Team chip */
.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: #b9b9c3; font-weight: 600; width: 32px; }
.gfd .dtbl th[data-tip] { cursor: help; }
.gfd .dtbl th.gs, .gfd .dtbl td.gs { box-shadow: inset 1px 0 0 var(--d-bd), inset 0 -1px 0 var(--d-bd); }
.gfd .dtbl tr.grp th { font-size: 9px; color: var(--d-tx); padding-bottom: 2px; }
.gfd .dtbl td.de-good { color: #0e6e33 !important; }
.gfd .dtbl td.de-bad { color: #b73334 !important; }
.dark-layout .gfd .dtbl td.de-good { color: #4cc97a !important; }
.dark-layout .gfd .dtbl td.de-bad { color: #f59a9b !important; }
.gfd .dtbl td.lown { color: var(--d-ft); font-style: italic; }
.dark-layout .gfd .dtbl td.lown { color: #676d7d; }
.gfd .dtbl tr.de-avg td { font-weight: 600; box-shadow: inset 0 1px 0 var(--d-bd); }
.gfd .dtbl tr.de-avg td.gs { box-shadow: inset 1px 0 0 var(--d-bd), inset 0 1px 0 var(--d-bd); }
@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; }
}

/* League 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; }
@media (min-width: 992px) { .gfd .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.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; }

/* Card headers, summaries, header legends, two-card row, footnote */
.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 .leg2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 0; margin-left: auto; justify-content: flex-end; font-size: 11px; color: var(--d-ft); }
.gfd .sec-hd .leg2 i.mx { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.gfd .de-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .de-desc { color: #9aa0b0; }
.gfd .de-desc b { color: var(--d-hd); }
.gfd .grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 992px) { .gfd .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; }

/* Scatter */
.gfd .sc { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; font-family: inherit; }
.gfd .sc .gr { stroke: var(--d-grid); stroke-width: 1; }
.gfd .sc .ax { font-size: 10px; fill: var(--d-ft); font-variant-numeric: tabular-nums; }
.gfd .sc .al { font-size: 10px; font-weight: 600; fill: var(--d-ft); }
.gfd .sc .ql { font-size: 9px; font-weight: 600; fill: var(--d-ft); letter-spacing: .2px; }
.gfd .sc .dl { font-size: 8.5px; fill: var(--d-ft); font-style: italic; paint-order: stroke; stroke: var(--d-card); stroke-width: 3px; stroke-linejoin: round; }
.gfd .sc .q-good { fill: var(--d-gr22); opacity: .45; }
.gfd .sc .diag { stroke: var(--d-ft); stroke-width: 1; stroke-dasharray: 3 3; }
.gfd .sc .de-avg { stroke: var(--d-hd); stroke-width: 1; opacity: .35; }
.gfd .sc .dot { fill: var(--d-nil); stroke: var(--d-card); stroke-width: 2; }
.gfd .sc .dot.pos { fill: var(--d-gr); }
.gfd .sc .dot.neg { fill: var(--d-neg); }
.gfd .sc .hit { fill: transparent; }
.gfd .sc .tl { font-size: 11px; font-weight: 700; fill: var(--d-hd); paint-order: stroke; stroke: var(--d-card); stroke-width: 3px; stroke-linejoin: round; }
.gfd .sc .pt { cursor: default; }
.gfd .sc .pt:hover .dot { stroke: var(--d-hd); }
.gfd .sc-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; color: var(--d-ft); margin-top: 6px; justify-content: center; }
.gfd .sc-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.gfd .sc-key i.pos { background: var(--d-gr); }
.gfd .sc-key i.neg { background: var(--d-neg); }
.gfd .sc-key i.nil { background: var(--d-nil); }
.gfd .sc-key i.ln { width: 16px; height: 0; border-radius: 0; border-top: 1px dashed var(--d-ft); vertical-align: 3px; }
.gfd .sc-key i.av { width: 16px; height: 0; border-radius: 0; border-top: 1px solid var(--d-hd); opacity: .5; vertical-align: 3px; }

/* Field position rows */
.gfd .fp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; box-shadow: inset 0 -1px 0 var(--d-bd); }
.gfd .fp-lab { font-size: 12px; font-weight: 600; color: var(--d-hd); line-height: 1.2; }
.gfd .fp-lab span { display: block; font-size: 10.5px; font-weight: 500; color: var(--d-ft); }
.gfd .fp-bars { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gfd .fp-ppd { position: relative; height: 18px; border-radius: 4px; background: var(--d-track); margin-right: 34px; }
.gfd .fp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--d-gr); }
.gfd .fp-val { position: absolute; top: 0; line-height: 18px; font-size: 11px; font-weight: 700; color: var(--d-hd); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gfd .mixbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.gfd .fp-row .mixbar { margin-right: 34px; }
.gfd .mx { display: block; height: 100%; }
.gfd .mx.td { background: var(--r-td); }
.gfd .mx.fg { background: var(--r-fg); }
.gfd .mx.punt { background: var(--r-punt); }
.gfd .mx.oth { background: transparent; box-shadow: inset 0 0 0 1px var(--r-oth); }
.gfd .mx.to { background: var(--r-to); }

/* Result legend and all-drives block */
.gfd .rkey { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; color: var(--d-ft); align-items: center; }
.gfd .rkey .sq { margin-right: 5px; vertical-align: -2px; }
.gfd .alld { margin-top: 14px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--d-bd); }
.gfd .alld-h { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-ft); margin-bottom: 6px; }
.gfd .mixbar.big { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.gfd .rkey.cnt b { color: var(--d-hd); font-weight: 700; margin-left: 2px; }
.gfd .alld-n { font-size: 10.5px; color: var(--d-ft); margin-top: 6px; }

/* Result squares */
.gfd .sq { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.gfd .sq.td { background: var(--r-td); }
.gfd .sq.fg { background: radial-gradient(circle, var(--r-x) 1.5px, transparent 2px), var(--r-fg); }
.gfd .sq.punt { background: var(--r-punt); }
.gfd .sq.oth { background: transparent; box-shadow: inset 0 0 0 1.5px var(--r-oth); }
.gfd .sq.to { background: linear-gradient(45deg, transparent 42%, var(--r-x) 42%, var(--r-x) 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--r-x) 42%, var(--r-x) 58%, transparent 58%), var(--r-to); }
.gfd .sq[data-tip] { cursor: default; }

/* Team cards */
.gfd .rkey i.tk, .gfd .rkey i.hb, .gfd .rkey i.hw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.gfd .rkey i.hb { background: rgba(20,155,72,.18); }
.gfd .rkey i.hw { background: rgba(234,84,85,.16); box-shadow: inset 0 -2px 0 var(--d-neg); }
.gfd .rkey i.tk { width: 2px; height: 12px; background: var(--d-hd); opacity: .55; }
.gfd .tc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .gfd .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .gfd .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gfd .tc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gfd .tc-grid .more { display: none; }
.gfd .tc-grid.all .more { display: block; }
.gfd .tcard { background: var(--d-card); border: 1px solid var(--d-bd); border-radius: 8px; box-shadow: var(--d-shadow); padding: 12px; min-width: 0; }
.gfd .tc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gfd .tc-rk { color: #b9b9c3; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .tc-rk { color: #9aa0b0; }
.gfd .tc-name { flex: 0 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--d-hd); white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.gfd .tc-rec { flex: 0 0 auto; font-size: 10.5px; font-weight: 500; color: var(--d-ft); margin-left: -2px; }
.gfd .tc-net { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 50rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--d-hd); cursor: help; }
.gfd .tc-net.pos { background: rgba(20,155,72,.16); color: #0e6e33; }
.gfd .tc-net.neg { background: rgba(234,84,85,.14); color: #b73334; }
.dark-layout .gfd .tc-net.pos { background: rgba(60,200,120,.16); color: #5fd592; }
.dark-layout .gfd .tc-net.neg { background: rgba(240,106,107,.16); color: #f58b8c; }
.gfd .tc-net.lown { color: var(--d-ft); font-style: italic; }
.dark-layout .gfd .tc-net.lown { color: #676d7d; }
.gfd .tc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 10px; }
.gfd .tc-lab { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-ft); }
.gfd .tc-big { font-size: 22px; font-weight: 800; color: var(--d-hd); line-height: 1.15; font-variant-numeric: tabular-nums; }
.gfd .tc-sub { font-size: 10.5px; color: var(--d-ft); margin-bottom: 5px; }
.gfd .tc-side.lown .tc-big, .gfd .tc-side.lown .tc-sub { color: var(--d-ft); font-style: italic; }
.dark-layout .gfd .tc-side.lown .tc-big, .dark-layout .gfd .tc-side.lown .tc-sub { color: #676d7d; }
.gfd .meter { position: relative; height: 6px; border-radius: 3px; background: var(--d-track); }
.gfd .mfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--d-nil); }
.gfd .mfill.de-good { background: var(--d-gr); }
.gfd .mfill.de-bad { background: var(--d-neg); }
.gfd .mtick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--d-hd); opacity: .55; border-radius: 1px; }
.gfd .tc-drv { background: var(--d-panel); border-radius: 6px; padding: 6px 8px 7px; margin-bottom: 10px; }
.gfd .dr-h { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-ft); margin: 4px 0 3px; }
.gfd .dr-h:first-child { margin-top: 0; }
.gfd .dr-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.gfd .dr-g { flex: 0 0 62px; font-size: 10.5px; font-weight: 600; color: var(--d-tx); white-space: nowrap; }
.gfd .dr-sq { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.gfd .dr-pts { flex: 0 0 22px; text-align: right; font-size: 11px; font-weight: 700; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .mini { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.gfd .mini th { font-size: 9px; font-weight: 700; color: var(--d-ft); text-align: right; padding: 0 3px 3px; white-space: nowrap; }
.gfd .mini td { text-align: right; padding: 3px 3px; color: var(--d-tx); border-radius: 3px; }
.gfd .mini .l { text-align: left; width: 34px; font-weight: 700; color: var(--d-hd); font-size: 10px; }
.gfd .mini tr.nfl td { color: var(--d-ft); font-size: 10.5px; }
.gfd .mini td.hb { background: rgba(20,155,72,.18); color: var(--d-hd); font-weight: 700; }
.gfd .mini td.hw { background: rgba(234,84,85,.16); color: var(--d-hd); font-weight: 700; box-shadow: inset 0 -2px 0 var(--d-neg); }
.gfd .mini tr.lown td { color: var(--d-ft); font-style: italic; }
.dark-layout .gfd .mini tr.lown td { color: #676d7d; }
.gfd .showall { display: block; margin: 14px auto 0; }
@media (min-width: 576px) { .gfd .showall.de-sm-only { display: none; } }

/* Drawer */
.gfd details.drawer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1.5rem; font-size: 1.285rem; font-weight: 500; color: #5e5873; }
.dark-layout .gfd details.drawer > summary { color: #d0d2d6; }
.gfd details.drawer > summary::-webkit-details-marker { display: none; }
.gfd details.drawer > summary .chev { font-size: 12px; color: var(--d-ft); transition: transform .15s; }
.gfd details.drawer[open] > summary .chev { transform: rotate(180deg); }
.gfd details.drawer > summary .sm { font-size: 11.5px; font-weight: 500; color: var(--d-ft); }
.gfd details.drawer .card-body { padding-top: 0; }

/* Tooltip */
.de-tip { position: fixed; z-index: 1080; max-width: 260px; padding: 6px 9px; border-radius: 6px; font-size: 11px; line-height: 1.35; background: #343d55; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; opacity: 0; transition: opacity .1s; }
.dark-layout .de-tip { background: #f3f2f7; color: #343d55; }

/* Phones */
@media (max-width: 575.98px) {
    .gfd .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gfd .de-tiles .tile:nth-child(n+5) { display: none; }
    .gfd .tc-grid:not(.all) .more-sm { display: none; }
    .gfd .sc .tl { font-size: 12px; }
    .gfd .sc .ax, .gfd .sc .al { font-size: 12px; }
    .gfd .sc .ql, .gfd .sc .dl { display: none; }
    .gfd .tcard { padding: 10px; }
    .gfd .dr-g { flex-basis: 56px; }
    .gfd .mini .l { width: 26px; }
    .gfd .mini th { padding: 0 1px 3px; font-size: 8.5px; letter-spacing: -.2px; }
}
@media (max-width: 767.98px) { .gfd details.drawer > summary { padding: 14px; } }

/* 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; }
}

/* Card key pills in the title row */
.gfd .sec-hd .de-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .de-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .de-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .de-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .de-hd-key .badge > i, .gfd .de-hd-key .badge > .dot, .gfd .de-hd-key .badge > svg { margin-right: 5px; }
