/* 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 { --g1: #2a78d6; --g2: #73396f; --g3: #00a4ad; --g4: #b9b9c3; --g5: #b58900; --g6: #8b5e3c; --d-ft2: #6e6b7b; }
.dark-layout .gfd { --g1: #3987e5; --g2: #a2649c; --g3: #21ab9f; --g4: #56607f; --g5: #d0a93a; --g6: #b58863; --d-ft2: #9ca1b1; }

/* Toolbar */
.gfd .pt-tb .psg-control-group.pt-sel { flex: 1 1 140px; max-width: 240px; }
.gfd .pt-tb .psg-control-group.pt-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; }

/* Empty states */
.gfd .gfb-empty { font-size: .875rem; }

/* 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 tbody tr:hover td:first-child { background: #f1f9f4; }
    .dark-layout .gfd .dtbl tbody tr:hover td:first-child { background: #273646; }
    .gfd .dtbl th:first-child { z-index: 3; background: #f3f2f7; }
    .dark-layout .gfd .dtbl th:first-child { background: #343d55; }
}

/* Team chips */
.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; }

/* 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; }
.gfd .pt-good { color: #149b48 !important; }
.gfd .pt-bad { color: #ea5455 !important; }

/* Bars */
.gfd .bar-track { position: relative; 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; }

/* Heat cells */
.gfd .dtbl td.strong.heat-n1 { background: rgba(234,84,85,.14); }
.gfd .dtbl td.strong.heat-n2 { background: rgba(234,84,85,.30); }
.gfd .dtbl td.strong.heat-n3 { background: rgba(234,84,85,.50); }
.gfd .dtbl td.heat-n3 { color: #7a1f20; }
.gfd .dtbl td.heat-n2 { color: #7a1f20; }
.dark-layout .gfd .dtbl td.heat-n2 { color: #fff; }

/* Legend, layout, 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; }
.gfd .legend .lg.heatn { background: rgba(234,84,85,.5); }
.gfd .legend.pt-tbl-key { align-items: center; gap: 4px 6px; }
.gfd .pt-tbl-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .pt-tbl-key .badge > i { margin-right: 5px; }
.gfd .grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) { .gfd .grid-2 { grid-template-columns: 1fr 1fr; } }
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; line-height: 1.5; }

/* Group colours */
.gfd .g1 { background: var(--g1); }
.gfd .g2 { background: var(--g2); }
.gfd .g3 { background: var(--g3); }
.gfd .g4 { background: var(--g4); }
.gfd .g5 { background: var(--g5); }
.gfd .g6 { background: var(--g6); }

/* Section heads */
.gfd .pt-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin: 0 0 10px; }
.gfd .pt-sec .card-title { margin: 0; }
.gfd .pt-sec .n { font-size: 11px; color: var(--d-ft2); }
.gfd .pt-sec .legend { margin-top: 0; margin-left: auto; justify-content: flex-end; font-size: 11px; }
.gfd .pt-sec .pt-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .pt-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .pt-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .pt-hd-key .badge > i, .gfd .pt-hd-key .badge > .dot, .gfd .pt-hd-key .badge > svg { margin-right: 5px; }
.gfd .pt-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .pt-desc { color: #9aa0b0; }

/* What gets flagged */
.gfd .pt-types { display: grid; grid-template-columns: minmax(0, 10.5em) minmax(40px, 1fr) auto; gap: 7px 10px; align-items: center; font-size: 12px; }
@media (min-width: 576px) { .gfd .pt-types { grid-template-columns: minmax(0, 12.5em) minmax(40px, 1fr) auto; } }
.gfd .pt-types .nm { white-space: normal; line-height: 1.2; color: var(--d-tx); }
.gfd .pt-types .tr { height: 10px; background: var(--d-track); border-radius: 5px; overflow: hidden; }
.gfd .pt-types .tr i { display: block; height: 100%; border-radius: 5px; }
.gfd .pt-types .v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--d-hd); }
.gfd .pt-types .v small { font-size: 10.5px; font-weight: 500; color: var(--d-ft2); }

/* When flags land */
.gfd .pt-qsvg { display: block; width: 100%; height: auto; }
.gfd .pt-qsvg .gl { stroke: var(--d-grid); stroke-width: 1; }
.gfd .pt-qsvg .bl { stroke: var(--d-bd); stroke-width: 2; }
.gfd .pt-qsvg .sg { stroke: var(--d-card); stroke-width: 2; }
.gfd .pt-qsvg text { font-family: inherit; font-size: 10px; fill: var(--d-ft2); text-anchor: middle; }
.gfd .pt-qsvg .vl { font-size: 11px; font-weight: 700; fill: var(--d-hd); }
.gfd .pt-qsvg .xl { font-weight: 600; }
.gfd .pt-qsvg .yl { text-anchor: end; font-size: 9px; }

/* Team cards */
.gfd .pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(292px, 100%), 1fr)); gap: 12px; }
.gfd .pt-card { position: relative; 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; transition: border-color .15s; }
.gfd .pt-card:hover { border-color: rgba(20,155,72,.45); }
.gfd .pt-hd { display: flex; align-items: center; gap: 7px; min-width: 0; }
.gfd .pt-rk { color: #b9b9c3; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .pt-rk { color: #9aa0b0; }
.gfd .pt-nm { flex: 1 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 .pt-big { flex: 0 0 auto; text-align: right; line-height: 1; }
.gfd .pt-big b { font-size: 21px; font-weight: 800; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .pt-big i { display: block; margin-top: 2px; font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--d-ft2); }
.gfd .pt-sub { margin: 1px 0 10px 23px; font-size: 11px; color: var(--d-ft2); }
.gfd .pt-mix { display: flex; gap: 2px; height: 10px; }
.gfd .pt-mix span { min-width: 4px; border-radius: 3px; }
.gfd .pt-mk { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; font-size: 10.5px; font-weight: 600; color: var(--d-tx); font-variant-numeric: tabular-nums; }
.gfd .pt-mk i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -.5px; }
.gfd .pt-tl { margin-top: 10px; }
.gfd .pt-row { display: flex; align-items: flex-end; gap: 6px; margin-top: 4px; }
.gfd .pt-wk { flex: 0 0 46px; font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: var(--d-ft2); line-height: 1.15; padding-bottom: 1px; }
.gfd .pt-wk b { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: var(--d-tx); }
.gfd .pt-track, .gfd .pt-ots { position: relative; height: 26px; border-bottom: 2px solid var(--d-bd); }
.gfd .pt-track { flex: 1 1 auto; min-width: 0; }
.gfd .pt-ots { flex: 0 0 22px; }
.gfd .pt-ots.on { background: var(--d-panel); border-radius: 4px 4px 0 0; }
.gfd .pt-ots.on::before { content: "OT"; position: absolute; top: 1px; left: 0; right: 0; text-align: center; font-size: 7.5px; font-weight: 700; color: var(--d-ft2); }
.gfd .pt-ql { position: absolute; top: 2px; bottom: 0; width: 1px; background: var(--d-grid); }
.gfd .pt-tk { position: absolute; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px 2px 0 0; box-shadow: 0 0 0 1px var(--d-card); cursor: pointer; }
.gfd .pt-tk::before { content: ""; position: absolute; left: -4px; right: -4px; top: -4px; bottom: 0; }
.gfd .pt-tk:hover { box-shadow: 0 0 0 2px var(--d-hd); }
.gfd .pt-ax { display: flex; margin: 3px 28px 0 52px; font-size: 8.5px; font-weight: 600; color: var(--d-ft2); }
.gfd .pt-ax span { flex: 1 1 0; text-align: center; }
.gfd .pt-bf { margin-top: 8px; font-size: 11px; color: var(--d-ft2); }
.gfd .pt-bf b { font-weight: 600; color: var(--d-hd); }
.gfd .pt-cd { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 5px 8px; align-items: center; margin-top: 10px; font-size: 11px; }
.gfd .pt-cd .l { font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-ft2); }
.gfd .pt-cd .bar-track { height: 8px; min-width: 0; }
.gfd .pt-cd .v { text-align: right; white-space: nowrap; font-weight: 600; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .pt-ft { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--d-bd); }
.gfd .pt-chip { font-size: 10.5px; padding: 3px 8px; border-radius: 50rem; background: var(--d-panel); color: var(--d-tx); white-space: nowrap; }
.gfd .pt-chip b { color: var(--d-hd); font-variant-numeric: tabular-nums; }

/* Tick popover */
.gfd .pt-pop { position: absolute; z-index: 5; max-width: calc(100% - 8px); padding: 6px 9px; border-radius: 6px; background: var(--d-hd); color: var(--d-card); font-size: 11px; font-weight: 600; line-height: 1.35; box-shadow: var(--d-shadow); }

/* Games and referee grids */
.gfd .pt-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
@media (max-width: 575.98px) { .gfd .pt-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gfd .pt-gm { padding: 7px 9px 6px; border: 1px solid var(--d-bd); border-radius: 8px; background: var(--d-card); font-size: 11.5px; min-width: 0; }
.gfd .pt-gm .t { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-weight: 600; color: var(--d-tx); }
.gfd .pt-gm .t span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfd .pt-gm .t b { font-size: 16px; font-weight: 800; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .pt-gm .bar-track { display: block; height: 5px; margin-top: 4px; min-width: 0; }
.gfd .pt-gm .ot { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .4px; padding: 1px 4px; margin-left: 3px; border-radius: 4px; background: var(--d-panel); color: var(--d-ft2); vertical-align: 1px; }
.gfd .pt-gm .s { margin-top: 4px; font-size: 9.5px; color: var(--d-ft2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .gfd .pt-gm .t span, .gfd .pt-gm .s { white-space: normal; overflow: visible; overflow-wrap: anywhere; } }
.gfd .pt-ref .s, .gfd .pt-ref .t span { white-space: normal; overflow: visible; overflow-wrap: anywhere; }

/* Drawers */
.gfd .pt-drawer { margin-top: 22px; border: 1px solid var(--d-bd); border-radius: 8px; }
.gfd .pt-drawer > 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 .pt-drawer > summary::-webkit-details-marker { display: none; }
.gfd .pt-drawer > summary::after { content: "+"; font-size: 18px; line-height: 1; color: #149b48; font-weight: 700; }
.gfd .pt-drawer[open] > summary::after { content: "\2212"; }
.gfd .pt-drawer > summary .muted { font-weight: 500; font-size: .8rem; }
.gfd .pt-drawer > summary .chev { display: none; }
.gfd .pt-drawer .tscroll { border-top: 1px solid var(--d-bd); max-height: 520px; overflow: auto; }
.gfd .pt-drawer > .legend { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--d-bd); }
.gfd .pt-drawer > .pt-games { padding: 12px; border-top: 1px solid var(--d-bd); }
.gfd .pt-trk { display: inline-block; min-width: 18px; font-size: 10px; font-weight: 700; color: var(--d-ft2); }
.gfd .pt-more { margin-top: 12px; }
.gfd .pt-phmore { display: none; }
.gfd .pt-phmore:focus-visible { outline: 2px solid var(--d-gr); outline-offset: 2px; }
@media (max-width: 575.98px) {
    .gfd .pt-more:not(.all) { display: none; }
    .gfd .pt-phmore { display: block; margin: 12px auto 0; font-size: 12px; padding: .35rem .9rem; }
}

/* 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; }
}
