/* 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, definitions, empty states */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .psg-data-card { margin-bottom: 2rem; }
.gfd .psg-legend-icons { flex-wrap: wrap; }
.gfd .st-jump, .gfd .st-sort .psg-control-group { flex: 0 1 auto; }
.gfd .st-sort { display: flex; margin: 0 0 12px; }
@media (max-width: 767.98px) {
    .gfd .psg-filter-card .psg-control-group { flex: 1 1 140px; }
    .gfd .psg-filter-card .psg-control-group.st-jump { flex: 0 1 auto; }
}

/* Pills, team chips, names */
.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; }
.gfd .pill:hover { color: #6e6b7b; border-color: #149b48; }
.dark-layout .gfd .pill { background: #283046; border-color: #56607f; color: #b4b7bd; }
.dark-layout .gfd .pill:hover { color: #b4b7bd; border-color: #149b48; }
.gfd .pill:focus-visible { outline: 2px solid var(--d-gr); outline-offset: 2px; }
.gfd .pill.on, .dark-layout .gfd .pill.on, .gfd .pill.on:hover, .dark-layout .gfd .pill.on:hover { background: #149b48; border-color: #149b48; color: #fff; }
.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 { flex: 0 0 auto; min-width: 28px; padding: 3px 6px; font-size: 9px; line-height: 1.1; }
.gfd .pos-pill.oth { background: transparent; color: var(--d-tx); box-shadow: inset 0 0 0 1px var(--d-nil); }

/* League tiles */

/* 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); }
@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 thead tr + tr th:first-child { left: auto; z-index: 2; }
}

/* Footnote */
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; }
.gfd .foot b { font-weight: 700; }

/* Tool tokens */
.gfd { --d-gr08: rgba(20,155,72,.09); --d-gr28: rgba(20,155,72,.30); --st-opp: #8a879c; --st-ink: #5e5873; --d-shadow: 0 4px 24px rgba(34,41,47,.10); color: var(--d-tx); }
.dark-layout .gfd { --st-opp: #8a93ab; --st-ink: #d0d2d6; --d-shadow: 0 4px 24px rgba(0,0,0,.24); }
.gfd a.pill { text-decoration: none; display: inline-block; }
.gfd .st-h { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin: 0 0 10px; }
.gfd .st-t { font-size: 1.285rem; font-weight: 500; color: var(--d-hd); margin: 0; }
.gfd .st-sub { font-size: 11px; color: var(--d-ft); }
.gfd .st-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .st-desc { color: #9aa0b0; }
.gfd .st-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 10.5px; color: var(--d-ft); margin: 2px 0 12px; }
.gfd .st-leg .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.gfd .st-leg .dot.own { background: var(--d-gr); }
.gfd .st-leg .dot.opp { background: var(--st-opp); }
.gfd .st-leg .dot.ring { background: transparent; box-shadow: inset 0 0 0 1.6px var(--d-gr); }
.gfd .st-leg .dot.end { background: var(--st-ink); }
.gfd .st-leg .ln { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.gfd .st-leg .ln.kick { background: var(--d-gr); }
.gfd .st-leg .ln.ret { background: var(--d-neg); }
.gfd .st-leg .ln.pen { background: repeating-linear-gradient(90deg,var(--d-gr) 0 4px,transparent 4px 6px); }
.gfd .st-leg .ln.pen.neg { background: repeating-linear-gradient(90deg,var(--d-neg) 0 4px,transparent 4px 6px); }
.gfd .st-leg .tri { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--d-gr); }
.gfd .st-leg .tri.opp { border-top: 0; border-bottom: 7px solid var(--st-opp); }
.gfd .st-leg .zone { display: inline-block; width: 14px; height: 9px; border-radius: 2px; background: var(--d-gr28); }
.gfd .st-leg .zone.i20 { background: var(--d-gr08); }
.gfd .st-h .st-leg { margin: 0 0 0 auto; justify-content: flex-end; font-size: 11px; }
.gfd .st-leg .tick { display: inline-block; width: 2px; height: 11px; background: var(--st-ink); }
/* Card grids */
.gfd .st-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; align-items: start; }
@media (min-width: 576px) { .gfd .st-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 992px) { .gfd .st-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 1200px) { .gfd .st-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.gfd .st-grid:not(.all) .more { display: none; }
.gfd .st-morebar { display: flex; justify-content: center; margin: 12px 0 2px; }
.gfd .st-more { display: block; margin: 12px auto 0; font-size: 12px; padding: .35rem .9rem; }
.gfd .sc { background: var(--d-card); border: 1px solid var(--d-bd); border-radius: 8px; box-shadow: var(--d-shadow); padding: 12px 12px 10px; min-width: 0; }
.gfd .sc:hover { border-color: var(--d-gr28); }
.gfd .sc-top { display: flex; align-items: center; gap: 8px; }
.gfd .sc-rk { color: #b9b9c3; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .sc-rk { color: #9aa0b0; }
.gfd .sc-id { flex: 1 1 auto; min-width: 0; }
.gfd .sc-nm { font-size: 13.5px; font-weight: 600; color: var(--d-hd); white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.gfd .sc-nm.st-wrap { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .gfd .sc-nm { white-space: normal; overflow: visible; overflow-wrap: anywhere; } }
.gfd .sc-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 10.5px; color: var(--d-ft); white-space: nowrap; min-width: 0; }
.gfd .sc-meta>span:last-child { overflow: hidden; text-overflow: ellipsis; }
.gfd .sc-big { text-align: right; flex: 0 0 auto; }
.gfd .sc-bv { font-size: 23px; font-weight: 800; line-height: 1; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .sc-bl { font-size: 8.5px; font-weight: 700; letter-spacing: .5px; color: var(--d-ft); margin-top: 3px; white-space: nowrap; text-transform: uppercase; }
.gfd .sc-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 10px 0 8px; padding: 7px 4px; background: var(--d-panel); border-radius: 8px; }
.gfd .sc-tiles.t5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
.gfd .sc-tile { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gfd .sc-tile .tl { font-size: 8.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-ft); line-height: 1; margin-bottom: 4px; white-space: nowrap; }
.gfd .sc-tile .tv { font-size: 13.5px; font-weight: 700; line-height: 1; color: var(--d-hd); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gfd .sc-tile .ts { font-size: 9.5px; color: var(--d-ft); margin-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gfd .st-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gfd .sc-split { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--d-bd); }
.gfd .sc-split>div { min-width: 0; }
.gfd .sc-split .sl { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-ft); white-space: nowrap; }
.gfd .sc-split .sv { display: block; font-size: 12.5px; font-weight: 700; color: var(--d-hd); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 2px; }
.gfd .sc-split .sv small { font-size: 10px; font-weight: 600; color: var(--d-ft); }
.gfd .sc-split .sd { display: block; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }
.gfd .pos-t { color: #149b48; }
.dark-layout .gfd .pos-t { color: #3ab86f; }
.gfd .neg-t { color: #ea5455; }
.gfd .nil-t { color: var(--d-ft); }
.gfd .sc-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 10.5px; color: var(--d-ft); }
.gfd .sc-foot b { color: var(--d-hd); font-weight: 700; font-variant-numeric: tabular-nums; }
/* SVG marks */
.gfd .sv-grid { stroke: var(--d-grid); stroke-width: 1; }
.gfd .sv-mid { stroke: var(--d-grid); stroke-width: 1.6; }
.gfd .sv-goal { stroke: var(--d-bd); stroke-width: 2; }
.gfd .sv-band { fill: var(--d-panel); }
.gfd .sv-i20 { fill: var(--d-gr08); }
.gfd .sv-tx { fill: var(--d-ft); font-size: 9.5px; font-weight: 600; font-family: inherit; }
.gfd .sv-g { font-weight: 800; }
.gfd .sv-own { fill: var(--d-gr); }
.gfd .sv-opp { fill: var(--st-opp); }
.gfd .sv-avg { stroke: var(--d-card); stroke-width: 1; }
.gfd .sv-hit { fill: transparent; }
.gfd g:hover .sv-hit { fill: var(--d-gr08); }
.gfd .sv-kick { stroke: var(--d-gr); stroke-width: 2; stroke-linecap: round; }
.gfd .sv-ret { stroke: var(--d-neg); stroke-width: 2; stroke-linecap: round; }
.gfd .sv-pen { stroke: var(--d-gr); stroke-width: 2; stroke-dasharray: 2.5 1.6; }
.gfd .sv-pen.neg { stroke: var(--d-neg); }
.gfd .sv-los { stroke: var(--st-ink); stroke-width: 1.4; }
.gfd .sv-end { fill: var(--st-ink); stroke: var(--d-card); stroke-width: 1; }
.gfd .sv-end.in20 { fill: var(--d-card); stroke: var(--d-gr); stroke-width: 1.8; }
.gfd .sv-muff { stroke: var(--d-neg); stroke-width: 1.6; fill: none; }
.gfd circle.sv-own:hover, .gfd circle.sv-opp:hover { stroke: var(--st-ink); stroke-width: 1.2; }
/* Kickoff strips */
.gfd .ko-list { display: flex; flex-direction: column; gap: 3px; }
.gfd .ko-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 84px; align-items: center; gap: 8px; padding: 2px 0; }
@media (min-width: 576px) { .gfd .ko-row { grid-template-columns: 150px minmax(0,1fr) 128px; } }
.gfd .ko-id { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; }
.gfd .ko-id .kn { display: none; color: var(--d-hd); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 576px) { .gfd .ko-id .kn { display: inline; } }
.gfd .ko-strip, .gfd .rt-strip { position: relative; height: 22px; border-radius: 4px; background: var(--d-panel); }
.gfd .ko-strip .zl, .gfd .rt-strip .zl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--d-grid); }
.gfd .ko-strip .zl.zmid { width: 2px; }
.gfd .ko-strip .zl.tb { background: var(--d-gr28); width: 2px; }
.gfd .ko-strip i, .gfd .rt-strip i { position: absolute; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--d-gr); box-shadow: 0 0 0 1.5px var(--d-card); }
.gfd .ko-strip i.ring { background: var(--d-card); box-shadow: inset 0 0 0 1.8px var(--d-gr); }
.gfd .ko-strip i.l0, .gfd .rt-strip i.l0 { top: 3px; }
.gfd .ko-strip i.l1, .gfd .rt-strip i.l1 { top: 7px; }
.gfd .ko-strip i.l2, .gfd .rt-strip i.l2 { top: 11px; }
.gfd .ko-strip b, .gfd .rt-strip b { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--st-ink); }
.gfd .ko-val { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; line-height: 1.15; }
.gfd .ko-val .v { font-size: 13px; font-weight: 700; color: var(--d-hd); }
.gfd .ko-val .s { font-size: 10px; color: var(--d-ft); white-space: nowrap; }
@media (min-width: 576px) { .gfd .ko-val { flex-direction: row; align-items: baseline; justify-content: flex-end; gap: 8px; } }
.gfd .ko-axis { display: grid; grid-template-columns: 44px minmax(0,1fr) 84px; gap: 8px; margin-top: 4px; }
@media (min-width: 576px) { .gfd .ko-axis { grid-template-columns: 150px minmax(0,1fr) 128px; } }
.gfd .ko-ticks { position: relative; height: 14px; font-size: 9px; font-weight: 600; color: var(--d-ft); }
.gfd .ko-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.gfd .ko-atitle { text-align: center; }
/* Returner strips */
.gfd .rt-line { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 8px; margin-top: 7px; }
.gfd .rt-line .rl { font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--d-ft); }
.gfd .rt-strip { height: 18px; }
.gfd .rt-strip i.l0 { top: 1px; }
.gfd .rt-strip i.l1 { top: 5px; }
.gfd .rt-strip i.l2 { top: 9px; }
.gfd .rt-strip b { background: var(--d-ft); width: 2px; margin-left: -1px; }
.gfd .rt-strip.none { background: transparent; box-shadow: inset 0 0 0 1px var(--d-bd); }
.gfd .rt-strip.none em { position: absolute; left: 8px; top: 2px; font-size: 10px; font-style: normal; color: var(--d-ft); }
.gfd .rt-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--d-tx); margin-top: 2px; padding-left: 42px; font-variant-numeric: tabular-nums; }
.gfd .rt-cap b { color: var(--d-hd); font-weight: 700; }
.gfd .rt-ticks { position: relative; height: 13px; margin-left: 42px; font-size: 8.5px; font-weight: 600; color: var(--d-ft); margin-top: 3px; }
.gfd .rt-ticks span { position: absolute; transform: translateX(-50%); }
/* Drawers and tables */
.gfd details.st-drawer { border-top: 1px solid var(--d-bd); padding-top: 10px; margin-top: 6px; }
.gfd details.st-drawer+details.st-drawer { margin-top: 10px; }
.gfd details.st-drawer>summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--d-hd); padding: 4px 0 8px; }
.gfd details.st-drawer>summary::-webkit-details-marker { display: none; }
.gfd details.st-drawer>summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--d-gr); border-bottom: 2px solid var(--d-gr); transform: rotate(-45deg); transition: transform .15s; margin: 0 3px; }
.gfd details.st-drawer[open]>summary::before { transform: rotate(45deg); }
.gfd details.st-drawer>summary .st-sub { font-weight: 500; }
.gfd .dtbl th.grp { text-align: center; box-shadow: inset 0 -2px 0 var(--d-gr28); }
.gfd .dtbl td .tm { margin-right: 6px; }
.gfd .edgebar { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.gfd .edgebar .trk { position: relative; width: 70px; height: 8px; border-radius: 4px; background: var(--d-track); }
.gfd .edgebar .trk i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.gfd .edgebar .trk i.p { left: 50%; background: var(--d-gr); }
.gfd .edgebar .trk i.n { right: 50%; background: var(--d-neg); }
.gfd .edgebar .trk:after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--d-ft); }
@media (max-width: 575.98px) { .gfd .hide-sm { display: none; } }
.gfd .sc-units { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--d-bd); }
.gfd .sc-units>div { min-width: 0; }
.gfd .sc-units .sl { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--d-ft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gfd .sc-units .sv { display: block; font-size: 12.5px; font-weight: 700; color: var(--d-hd); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Small samples */
.gfd .st-lo, .gfd .sc-tile .tv.st-lo, .gfd .sc-tile .ts.st-lo, .gfd .dtbl td.st-lo, .dark-layout .gfd .dtbl td.st-lo { font-style: italic; color: var(--d-ft); }

/* Returner legend tick, card meta wrapping */
.gfd .st-leg .tick.st-avgtick { width: 2px; background: var(--d-ft); }
.gfd .st-h .st-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .st-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .st-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .st-hd-key .badge > span { margin-right: 5px; }
.gfd .sc-meta { flex-wrap: wrap; }
.gfd .sc-meta, .gfd .sc-meta > span:last-child { white-space: normal; overflow: visible; overflow-wrap: anywhere; }

/* 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; }
}
