/* 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 and pills */
.gfd .psg-filter-card .psg-control-group.ti-pills { flex: 0 1 auto; }
@media (max-width: 575.98px) {
    .gfd .psg-filter-card .psg-control-group { flex: 1 1 140px; }
    .gfd .psg-filter-card .psg-control-group.ti-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; }

/* Empty states */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .card-body > .gfb-empty { padding: 6px 0 10px; }

/* Muted text, signs, team chips, names, position pills */
.gfd .muted { color: #b9b9c3; }
.gfd .sm { font-style: italic; color: var(--d-ft); }
.gfd .ti-good { color: #149b48 !important; }
.gfd .ti-bad { color: #ea5455 !important; }
.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 { 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); }

/* 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; }
@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; }
@media (max-width: 575.98px) {
    .gfd .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Legend 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; }

/* Section heads */
.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-top: 0; margin-bottom: 0; margin-left: auto; justify-content: flex-end; font-size: 11px; }
.gfd .ti-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .ti-desc { color: #9aa0b0; }
.gfd .ti-sortbar { display: flex; margin: 0 0 12px; }
.gfd .ti-sortbar .psg-control-group.ti-sort { flex: 0 1 auto; }

/* Hero */
.gfd .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 2rem; }
@media (min-width: 992px) { .gfd .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gfd .hero .card { margin-bottom: 0; }

/* Margin ladder */
.gfd .lad { display: grid; gap: 4px; align-items: end; min-height: 150px; padding: 6px 0 4px; border-bottom: 1px solid var(--d-bd); }
.gfd .lad-col { display: flex; flex-direction: column-reverse; gap: 3px; min-width: 0; border-radius: 6px; padding: 2px 0; }
.gfd .lad-col.z { background: var(--d-panel); }
.gfd .lad-tag { display: block; font-size: 10px; font-weight: 700; line-height: 1; text-align: center; border-radius: 4px; padding: 4px 0; color: var(--d-hd); overflow: hidden; }
.gfd .lad-ax { display: grid; gap: 4px; margin-top: 4px; font-size: 10.5px; font-weight: 700; text-align: center; color: #b9b9c3; font-variant-numeric: tabular-nums; }
.gfd .lad-tag.lt-g2 { background: #0f7a39; color: #fff; }
.gfd .lad-tag.lt-g1 { background: rgba(20,155,72,.42); color: #0d3a1e; }
.gfd .lad-tag.lt-0 { background: var(--d-nil); color: #2f2b3d; }
.gfd .lad-tag.lt-r1 { background: rgba(234,84,85,.42); color: #7a1f20; }
.gfd .lad-tag.lt-r2 { background: #c93b3c; color: #fff; }
.dark-layout .gfd .lad-tag.lt-g1, .dark-layout .gfd .lad-tag.lt-r1 { color: var(--d-hd); }
.dark-layout .gfd .lad-tag.lt-0 { color: #fff; }
.gfd .legend .lg.lt-g2 { background: #0f7a39; }
.gfd .legend .lg.lt-g1 { background: rgba(20,155,72,.42); }
.gfd .legend .lg.lt-0 { background: var(--d-nil); }
.gfd .legend .lg.lt-r1 { background: rgba(234,84,85,.42); }
.gfd .legend .lg.lt-r2 { background: #c93b3c; }

/* Zone chart */
.gfd .zc { display: block; width: 100%; height: auto; }
.gfd .zc-grid { stroke: var(--d-grid); stroke-width: 1; }
.gfd .zc-ax { fill: #b9b9c3; font-size: 10px; font-weight: 600; }
.gfd .zc-fld { fill: var(--d-track); }
.gfd .zc-ez { fill: var(--d-gr22); }
.gfd .zc-yl { stroke: var(--d-grid); stroke-width: 1; }
.gfd .zc-yl.ti-mid { stroke: var(--d-ft); }
.gfd .zc-bar { fill: #149b48; }
.gfd .zc-bar.ret { fill: var(--d-gr22); stroke: #149b48; stroke-width: 1.5; }
.gfd .zc-v { fill: var(--d-hd); font-size: 14px; font-weight: 800; text-anchor: middle; }
.gfd .zc-n { fill: var(--d-tx); font-size: 11.5px; font-weight: 700; text-anchor: middle; }
@media (max-width: 575.98px) {
    .gfd .zc-ax { font-size: 12px; }
    .gfd .zc-n { font-size: 13px; }
}

/* Team cards */
.gfd .sec-hd .ti-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .ti-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .ti-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .ti-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .ti-hd-key .badge > i, .gfd .ti-hd-key .badge > svg { margin-right: 5px; }
.gfd .ti-hd-key .badge i.bx { width: 14px; height: 14px; font-size: 8.5px; }
.gfd .ti-hd-key .badge svg { display: block; width: 12px; height: 12px; }
.gfd .ti-hd-key .badge i.ti-even { display: inline-block; width: 2px; height: 10px; background: var(--d-hd); opacity: .55; }
.gfd .tc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 576px) { .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 { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--d-bd); border-radius: 8px; background: var(--d-card); box-shadow: var(--d-shadow); }
.gfd .tc-hd { display: flex; align-items: center; gap: 8px; }
.gfd .tc-nm { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--d-hd); font-size: 13.5px; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.gfd .tc-mg { display: flex; flex-direction: column; align-items: flex-end; font-size: 22px; font-weight: 800; line-height: 1; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .tc-mg small { font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #b9b9c3; margin-top: 2px; }
.gfd .tc-gm { display: flex; flex-wrap: wrap; gap: 6px; }
.gfd .wk { font-size: 11px; padding: 2px 7px; border-radius: 50rem; background: var(--d-panel); color: var(--d-tx); }
.gfd .wk b { font-weight: 800; }
.gfd .sw { display: flex; flex-direction: column; gap: 5px; }
.gfd .sw-row { display: flex; align-items: center; gap: 8px; }
.gfd .sw-l { flex: 0 0 34px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #b9b9c3; }
.gfd .sw-bx { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.gfd .bx { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; }
.gfd .bx.tk { background: #149b48; }
.gfd .bx.gv { background: #ea5455; }
.gfd .bx.dn { background: transparent; border: 1px dashed var(--d-tx); color: var(--d-tx); }
.gfd .bx.dn.te { border-style: dotted; background: var(--d-panel); }
.gfd .bx-none { font-size: 11px; color: var(--d-ft); }
.gfd .tc-fd { padding: 8px 8px 6px; border-radius: 6px; background: var(--d-panel); }
.gfd .tc-cap { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #b9b9c3; margin-bottom: 4px; }
.gfd .fd { display: block; width: 100%; height: auto; }
.gfd .fd-fld { fill: var(--d-track); }
.gfd .fd-own { fill: var(--d-grid); }
.gfd .fd-opp { fill: var(--d-gr22); }
.gfd .fd-yl { stroke: var(--d-grid); stroke-width: 1; }
.gfd .fd-yl.ti-mid { stroke: var(--d-ft); stroke-width: 1; }
.gfd .fd-td { fill: #149b48; }
.gfd .fd-fg { fill: var(--d-card); stroke: #149b48; stroke-width: 2; }
.gfd .fd-no { fill: #82868b; }
.dark-layout .gfd .fd-no { fill: #8a8fa0; }
.gfd .fd-ret { fill: #149b48; stroke: var(--d-card); stroke-width: 1; }
.gfd .fd-ax { position: relative; height: 13px; font-size: 9.5px; color: var(--d-tx); }
.gfd .fd-ax i { position: absolute; top: 1px; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.gfd .tc-fx { font-size: 11.5px; color: var(--d-tx); margin-top: 2px; }
.gfd .tc-mx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gfd .mx { min-width: 0; }
.gfd .mx-l { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #b9b9c3; margin-bottom: 4px; }
.gfd .mx-v { font-size: 15px; font-weight: 800; color: var(--d-hd); line-height: 1.2; }
.gfd .mx-v .muted { font-size: 11px; font-weight: 600; }
.gfd .mx-s { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 10.5px; color: var(--d-tx); margin-top: 4px; }
.gfd .pb { display: flex; align-items: center; gap: 5px; font-size: 11px; margin-bottom: 3px; }
.gfd .pb-l { flex: 0 0 30px; color: var(--d-tx); }
.gfd .pb-t { position: relative; flex: 1 1 auto; height: 7px; border-radius: 4px; background: var(--d-track); overflow: hidden; }
.gfd .pb-f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #149b48; }
.gfd .pb-f.neg { background: #ea5455; }
.gfd .pb b { flex: 0 0 auto; min-width: 20px; text-align: right; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .mt { position: relative; height: 8px; border-radius: 4px; background: var(--d-track); margin-top: 4px; }
.gfd .mt-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #149b48; }
.gfd .mt-fill.neg { background: #ea5455; }
.gfd .mt-fill.nil { background: var(--d-nil); }
.gfd .mt-even { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--d-hd); opacity: .55; }
.gfd .more { display: none; margin-top: 12px; width: 100%; }
@media (max-width: 991.98px) {
    .gfd #tcgrid:not(.all) .tc:nth-child(n+9) { display: none; }
    .gfd .more { display: block; }
}

/* Drawers */
.gfd .drw { margin-top: 12px; border: 1px solid var(--d-bd); border-radius: 8px; }
.gfd .drw > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-weight: 600; color: var(--d-hd); font-size: .9rem; }
.gfd .drw > summary::-webkit-details-marker { display: none; }
.gfd .drw > summary::after { content: "+"; font-size: 18px; line-height: 1; color: #149b48; font-weight: 700; }
.gfd .drw[open] > summary::after { content: "\2212"; }
.gfd .drw > summary .muted { font-weight: 500; font-size: .8rem; }
.gfd .drw .dr-scroll { max-height: 460px; overflow-y: auto; border-top: 1px solid var(--d-bd); }
.gfd .tt { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.gfd .tt.in { background: rgba(234,84,85,.16); color: #d63d3e; }
.dark-layout .gfd .tt.in { color: #f59a9b; }
.gfd .tt.fu { background: transparent; color: #d63d3e; box-shadow: inset 0 0 0 1px rgba(234,84,85,.55); }
.dark-layout .gfd .tt.fu { color: #f59a9b; }
.gfd .tt.dn { box-shadow: inset 0 0 0 1px var(--d-ft); color: var(--d-tx); }

/* 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 thead tr.grp th { position: static; background: transparent; color: var(--d-tx); font-size: 9.5px; padding: 2px 10px 4px; text-align: center; }
.dark-layout .gfd .dtbl thead tr.grp th { background: transparent; color: var(--d-tx); }
.gfd .dtbl thead tr.grp th.gl { box-shadow: inset 0 -2px 0 rgba(20,155,72,.55); }
@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 thead tr.grp th:first-child { position: sticky; left: 0; top: auto; z-index: 1; background: var(--d-card); }
    .dark-layout .gfd .dtbl thead tr.grp th:first-child { background: var(--d-card); }
    .gfd .dtbl tbody tr:hover td:first-child { background: #f1f9f4; }
    .dark-layout .gfd .dtbl tbody tr:hover td:first-child { background: #273646; }
}

/* 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; }
}
