/* 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 */
.gfd .rz-tb .psg-control-group.rz-sel { flex: 1 1 140px; max-width: 240px; }
.gfd .rz-tb .psg-control-group.rz-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.rz-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; }

/* Definitions legend row */
.gfd .psg-legend-icons { flex-wrap: wrap; }

/* Empty states */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .psg-data-card { margin-bottom: 2rem; }

/* Muted text, team chips */
.gfd .muted { color: #b9b9c3; }
.dark-layout .gfd .muted { color: #676d7d; }
.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; }
@media (max-width: 575.98px) {
}

/* Team table */
.gfd .rz-tbl { font-variant-numeric: tabular-nums; }
.gfd .rz-tbl th, .gfd .rz-tbl td { white-space: nowrap; }
.gfd .rz-tbl th.l, .gfd .rz-tbl td.l { text-align: left; }
.gfd .rz-tbl tr.grp th:not(.psg-sep) { background: #e9e8ef; }
.dark-layout .gfd .rz-tbl tr.grp th:not(.psg-sep) { background: #2d3449; }
.gfd .rz-tbl th a { text-decoration: none; }
.gfd .rz-tbl th a:focus-visible { outline: 2px solid var(--d-gr); outline-offset: 2px; }
.gfd .rz-tbl th .car { display: inline; font-size: 8px; opacity: .45; margin-left: 2px; }
.gfd .rz-tbl th.on { color: #149b48; }
.dark-layout .gfd .rz-tbl th.on { color: #4cc37a; }
.gfd .rz-tbl th.on .car { opacity: 1; }
.gfd .rz-tbl td.strong { font-weight: 700; }
.gfd .rz-tbl td.rank { color: #b9b9c3; font-size: 11px; }
.dark-layout .gfd .rz-tbl td.rank { color: #676d7d !important; }
.gfd .rz-tbl .tpick { display: inline-block; border-radius: 4px; text-decoration: none; }
.gfd .rz-tbl td a.tpick:hover, .gfd .rz-tbl td a.tpick:focus { color: #149b48; }
.dark-layout .gfd .rz-tbl td a.tpick:hover, .dark-layout .gfd .rz-tbl td a.tpick:focus { color: #4cc37a; }
.gfd .rz-tbl .tpick:focus-visible { outline: 2px solid var(--d-gr); outline-offset: 2px; }

/* Team cell */
.gfd .tcell { min-width: 40px; }
.gfd .tcell .tname { margin-left: 8px; font-weight: 600; }
@media (max-width: 991.98px) { .gfd .tcell .tname { display: none; } .gfd .tcell .tm { display: inline; min-width: 0; padding: 0; border-radius: 0; background: transparent; font-size: inherit; font-weight: 600; color: #5e5873; } .dark-layout .gfd .tcell .tm { background: transparent; color: #d0d2d6; } .gfd .rz-tbl td.tcell { text-align: center; } }
@media (min-width: 992px) { .gfd .tcell .tm { display: none; } .gfd .tcell .tname { margin-left: 0; } }

/* Section heads, card summaries */
.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-left: auto; justify-content: flex-end; font-size: 11px; }
.gfd .rz-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .rz-desc { color: #9aa0b0; }
.gfd .logttl .rz-desc { margin: 2px 0 4px; }

/* 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 .tile .tbar { height: 5px; min-width: 0; margin: 5px 0 4px; }
@media (max-width: 575.98px) { .gfd .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bars and meters */
.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; }
.gfd .bar-cell { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.gfd .bar-cell .bv { min-width: 24px; text-align: right; font-weight: 600; }
.gfd .bar-cell .bar-track { flex: 0 0 44px; min-width: 44px; height: 8px; }
.gfd .bar-cell .bar-track.sm { flex: 0 0 30px; min-width: 30px; height: 7px; }
.gfd .rz-tbl .bar-cell { justify-content: center; }

/* TD% heat cells */
.gfd .rz-tbl td.hc { text-align: center; font-weight: 700; min-width: 46px; white-space: nowrap; }
.gfd .rz-tbl td.hc .hcn { font-size: 10.5px; font-weight: 500; }
.gfd .rz-tbl.table--statistics td.hc[class*="heat-"] { --bs-table-accent-bg: transparent; }
.gfd .rz-tbl.table--statistics td.hc.heat-2, .gfd .hsw.heat-2 { background: rgba(20,155,72,.22); }
.gfd .rz-tbl.table--statistics td.hc.heat-3, .gfd .hsw.heat-3 { background: rgba(20,155,72,.38); }
.gfd .rz-tbl.table--statistics td.hc.heat-5, .gfd .hsw.heat-5 { background: #0f7a39; }
.gfd .rz-tbl.table--statistics td.hc.heat-n1, .gfd .hsw.heat-n1 { background: rgba(234,84,85,.14); }
.gfd .rz-tbl.table--statistics td.hc.heat-n2, .gfd .hsw.heat-n2 { background: rgba(234,84,85,.30); }
.gfd .rz-tbl.table--statistics td.hc.heat-n3, .gfd .hsw.heat-n3 { background: rgba(234,84,85,.50); }
.gfd .rz-tbl.table--statistics td.hc.heat-2, .gfd .rz-tbl.table--statistics td.hc.heat-3 { color: #0b5e2b; }
.gfd .rz-tbl.table--statistics td.hc.heat-5 { color: #fff; }
.gfd .rz-tbl.table--statistics td.hc.heat-n1, .gfd .rz-tbl.table--statistics td.hc.heat-n2, .gfd .rz-tbl.table--statistics td.hc.heat-n3 { color: #7a1f20; }
.dark-layout .gfd .rz-tbl td.hc.heat-2, .dark-layout .gfd .rz-tbl td.hc.heat-n1 { color: #b4b7bd !important; }
.dark-layout .gfd .rz-tbl td.hc.heat-3 { color: #eafff1 !important; }
.dark-layout .gfd .rz-tbl td.hc.heat-n2 { color: #ffe3e3 !important; }
.dark-layout .gfd .rz-tbl td.hc.heat-5, .dark-layout .gfd .rz-tbl td.hc.heat-n3 { color: #fff !important; }
.gfd .rz-tbl td.hc.lo { font-style: italic; font-weight: 400; color: var(--d-ft); }
.dark-layout .gfd .rz-tbl td.hc.lo { color: var(--d-ft) !important; }

/* Trip strip */
.gfd .strip { display: inline-flex; align-items: center; gap: 0; }
.gfd .strip .wk { display: inline-flex; gap: 2px; align-items: center; min-width: 58px; padding-right: 6px; }
.gfd .strip .wk + .wk { padding-left: 6px; box-shadow: inset 1px 0 0 #d8d6de; }
.dark-layout .gfd .strip .wk + .wk { box-shadow: inset 1px 0 0 #56607f; }
.gfd .sq { display: inline-block; width: 11px; height: 11px; border-radius: 2px; background: #b9b9c3; }
.gfd .strip .none { font-style: normal; font-size: 10px; color: #b9b9c3; }

/* Outcome squares and legend swatches */
.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 .legend .lg.sqk { width: 11px; height: 11px; border-radius: 2px; }
.gfd .sq.td, .gfd .legend .lg.td { background: #149b48; }
.gfd .sq.fg, .gfd .legend .lg.fg { background: transparent; box-shadow: inset 0 0 0 2px #149b48; }
.gfd .sq.em, .gfd .legend .lg.em { background: #ea5455 linear-gradient(135deg, transparent 38%, #fff 38%, #fff 62%, transparent 62%); }
.gfd .sq.ck, .gfd .legend .lg.ck { background: #b9b9c3; }
.dark-layout .gfd .sq.ck, .dark-layout .gfd .legend .lg.ck { background: #676d7d; }
.dark-layout .gfd .sq.fg, .dark-layout .gfd .legend .lg.fg { box-shadow: inset 0 0 0 2px #3ab86f; }
.gfd .legend .lg.ecl { background: rgba(234,84,85,.16); }
.gfd .hsw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(128,128,128,.3); }
.gfd .hsw:first-of-type { margin-left: 4px; }

/* Empty trip causes */
.gfd .rz-tbl td.how { white-space: normal; min-width: 118px; max-width: 150px; line-height: 1.1; }
.gfd .ec { display: inline-block; white-space: nowrap; margin: 1px 3px 1px 0; padding: 1px 4px; border-radius: 4px; font-size: 10px; font-weight: 700; background: rgba(234,84,85,.16); color: #b8282a; }
.dark-layout .gfd .ec { color: #ff9b9c; }
.gfd .ec.ck { background: rgba(185,185,195,.22); color: #82868b; }
.dark-layout .gfd .ec.ck { color: #b4b7bd; }
.gfd .pc { display: inline-block; min-width: 28px; font-size: 10.5px; color: #b9b9c3; }
.dark-layout .gfd .pc { color: #676d7d; }

/* League row */
.gfd .rz-tbl.table--statistics .lgrow td:not(.psg-sep) { font-weight: 600; box-shadow: inset 0 1px 0 #d8d6de; background: #f8f8fa; }
.dark-layout .gfd .rz-tbl.table--statistics .lgrow td:not(.psg-sep) { box-shadow: inset 0 1px 0 #56607f; background: #2c3450; }
@media (max-width: 991.98px) {
    .gfd .rz-tbl.sticky-cols tr.lgrow td:nth-child(1), .gfd .rz-tbl.sticky-cols tr.lgrow td:nth-child(2) { background-color: #f8f8fa !important; }
    .dark-layout .gfd .rz-tbl.sticky-cols tr.lgrow td:nth-child(1), .dark-layout .gfd .rz-tbl.sticky-cols tr.lgrow td:nth-child(2) { background-color: #2c3450 !important; }
}
.gfd .lgrow .sub { display: block; font-size: 9.5px; font-weight: 600; color: #b9b9c3; }

/* Trip log */
.gfd .res { display: inline-block; padding: 2px 8px; border-radius: 50rem; font-size: 10px; font-weight: 700; }
.gfd .res.td { background: #149b48; color: #fff; }
.gfd .res.fg { box-shadow: inset 0 0 0 1.5px #149b48; color: #149b48; }
.dark-layout .gfd .res.fg { box-shadow: inset 0 0 0 1.5px #3ab86f; color: #4cc37a; }
.gfd .res.em { background: rgba(234,84,85,.16); color: #b8282a; }
.dark-layout .gfd .res.em { color: #ff9b9c; }
.gfd .res.ck { background: rgba(185,185,195,.22); color: #82868b; }
.dark-layout .gfd .res.ck { color: #b4b7bd; }
.gfd .logtop { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 32px; margin-bottom: 10px; }
.gfd .logtop .card-title { margin: 0; }
.gfd .logtop .rz-teambar { width: auto; flex: 0 1 260px; margin-left: auto; }
.gfd .logtop .rz-teambar .psg-control-group { min-width: 200px; }
.gfd .logsum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.gfd .logsum .badge { font-size: .6875rem; }
.gfd .rz-log { min-width: 640px; font-variant-numeric: tabular-nums; }
.gfd .rz-log th, .gfd .rz-log td { white-space: nowrap; }
.gfd .rz-log th, .gfd .rz-log td { text-align: center; }
.gfd .rz-log td.strong { font-weight: 700; }
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; }
.gfd .foot b { font-weight: 600; }

/* 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 .rz-hd-key { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.gfd .rz-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .rz-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .rz-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .rz-hd-key .badge > i, .gfd .rz-hd-key .badge > .dot, .gfd .rz-hd-key .badge > svg { margin-right: 5px; }
.gfd .rz-hd-key .badge > i.hsw { margin: 0; }
.gfd .rz-hd-key .badge > i.hsw:last-of-type { margin-right: 5px; }
