/* 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 { --d-z5: rgba(20,155,72,.14); --d-p20: #78c595; --d-p30: #43ad6f; --d-p40: #149b48; --d-p50: #0b6c30; }
.dark-layout .gfd { --d-z5: #1e4232; --d-p20: #2c7250; --d-p30: #1f9152; --d-p40: #3ab86f; --d-p50: #86dfa8; }

/* Empty state and toolbar */
.gfd .gfb-empty { font-size: .875rem; }
.gfd .kr-bar { margin-bottom: 12px; }
.gfd .kr-bar:last-child { margin-bottom: 0; }
.gfd .kr-bar .psg-control-group { flex: 0 1 240px; }

/* Pills, team chips, names, position pills */
.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; vertical-align: middle; }
.gfd .pos-pill.oth { background: transparent; color: var(--d-tx); box-shadow: inset 0 0 0 1px var(--d-nil); }

/* Headings: card header row (title, legend right) and the one-line summary */
.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 .kr-desc { margin: -4px 0 12px; font-size: 12px; color: #b9b9c3; }
.dark-layout .gfd .kr-desc { color: #9aa0b0; }
.gfd .kr-t { font-size: .95rem; font-weight: 600; color: var(--d-hd); }
.gfd .kr-sub { font-size: 11px; color: #b9b9c3; }
.gfd .kr-lab { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #b9b9c3; }
.gfd .kr-bar .psg-control-group.kr-sort { flex: 0 1 auto; }

/* Stat tiles: each tile is a site card */
.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; }
.dark-layout .gfd .tile .tv { color: #d0d2d6; }
.gfd .tile .ts { font-size: 11px; color: #b9b9c3; }

/* Shared distance scale: one column per yard, SCALEMIN to SCALEMAX (set inline on .kr-sc) */
.gfd .kr-bands { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; pointer-events: none; }
.gfd .kr-bands span { height: 100%; }
.gfd .kr-bands .z1 { flex: var(--kr-z1); }
.gfd .kr-bands .z2 { flex: 10; background: var(--d-panel); }
.gfd .kr-bands .z3 { flex: 10; }
.gfd .kr-bands .z4 { flex: 10; background: var(--d-panel); }
.gfd .kr-bands .z5 { flex: var(--kr-z5); background: var(--d-z5); }
.gfd .kr-hist { position: relative; display: grid; grid-template-columns: repeat(var(--kr-cols), minmax(0, 1fr)); align-items: end; height: 104px; border-bottom: 2px solid var(--d-bd); border-radius: 6px 6px 0 0; overflow: hidden; }
.gfd .kr-col { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; height: 100%; padding: 0 0 3px; }
.gfd .kd { display: block; width: 100%; max-width: 9px; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--d-gr); flex: 0 0 auto; }
.gfd .kd.miss { background: transparent; box-shadow: inset 0 0 0 1.6px var(--d-neg); }
.gfd .kd.blk { background: var(--d-neg); border-radius: 2px; transform: rotate(45deg) scale(.78); }
.gfd .kr-bk { display: flex; margin-top: 6px; }
.gfd .kr-bk > div { min-width: 0; padding: 0 3px; text-align: center; }
.gfd .kr-bk .z1 { flex: var(--kr-z1); padding: 0; }
.gfd .kr-bk .z2, .gfd .kr-bk .z3, .gfd .kr-bk .z4 { flex: 10; }
.gfd .kr-bk .z5 { flex: var(--kr-z5); }
.gfd .kr-bk .bl { display: block; font-size: 9px; font-weight: 700; letter-spacing: .3px; color: var(--d-tx); white-space: nowrap; }
.gfd .kr-bk .bv { display: block; font-size: 12.5px; font-weight: 700; color: var(--d-hd); font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; }
.gfd .kr-bk .bp { display: block; font-size: 10px; color: var(--d-tx); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gfd .kr-bk .bm { display: block; height: 4px; margin: 3px auto 0; max-width: 64px; border-radius: 2px; background: var(--d-track); overflow: hidden; }
.gfd .kr-bk .bm i { display: block; height: 100%; background: var(--d-gr); border-radius: 2px; }
.gfd .kr-bk .none .bv { color: var(--d-ft); }

/* Legends */
.gfd .sec-hd .kr-hd-key { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 14px; margin-left: auto; }
.gfd .kr-hd-key .legend { margin: 0; justify-content: flex-end; align-items: center; gap: 4px 6px; display: flex; flex-wrap: wrap; font-size: 11px; }
.gfd .kr-hd-key .psg-legend-label { margin-right: 4px; }
.gfd .kr-hd-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .kr-hd-key .badge > i, .gfd .kr-hd-key .badge > .dot, .gfd .kr-hd-key .badge > svg { margin-right: 5px; }
.gfd .kr-hd-key .badge i.kd { width: 9px; height: 9px; }
.gfd .kr-hd-key .badge i.sw { display: inline-block; width: 14px; height: 8px; border-radius: 2px; }
.gfd .sw.kp50 { background: var(--d-p50); }
.gfd .sw.kp40 { background: var(--d-p40); }
.gfd .sw.kp30 { background: var(--d-p30); }
.gfd .sw.kp20 { background: var(--d-p20); }
.gfd .sw.pat { background: var(--d-nil); }
.gfd .sw.z5 { background: var(--d-z5); box-shadow: inset 0 0 0 1px var(--d-gr28); }

/* Kicker cards */
.gfd .kr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gfd .kr-grid:not(.all) .kc.more { display: none; }
.gfd .kc { background: var(--d-card); border: 1px solid var(--d-bd); border-radius: 8px; box-shadow: var(--d-shadow); padding: 12px 12px 4px; min-width: 0; transition: border-color .15s; }
.gfd .kc:hover, .gfd .kc.open { border-color: var(--d-gr28); }
.gfd .kc-top { display: flex; align-items: center; gap: 8px; }
.gfd .kc-rk { color: #b9b9c3; font-variant-numeric: tabular-nums; }
.dark-layout .gfd .kc-rk { color: #9aa0b0; }
.gfd .kc-id { flex: 1 1 auto; min-width: 0; }
.gfd .kc-nm { font-size: 13.5px; font-weight: 600; color: var(--d-hd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gfd .kc-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 10.5px; color: var(--d-tx); min-width: 0; }
.gfd .kc-meta > span:last-child { min-width: 0; }
.gfd .kc-pts { text-align: right; flex: 0 0 auto; }
.gfd .kc-pv { font-size: 24px; font-weight: 800; line-height: 1; color: var(--d-hd); font-variant-numeric: tabular-nums; }
.gfd .kc-pl { font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--d-tx); margin-top: 2px; white-space: nowrap; }
.gfd .kc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 11px 0 12px; padding: 7px 4px; background: var(--d-panel); border-radius: 8px; }
.gfd .kc-tile { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gfd .kc-tile .tl { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-tx); line-height: 1; margin-bottom: 3px; white-space: nowrap; }
.gfd .kc-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 .kc-tile .tv.lo { color: var(--d-ft); font-style: italic; }
.gfd .kc-sl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.gfd .kc-sl .kr-sub { font-size: 10px; }
.gfd .kc-sl.kc-sl0 { margin: 0; }
.gfd .kc-strip { position: relative; height: 32px; border-bottom: 2px solid var(--d-bd); border-radius: 5px 5px 0 0; overflow: hidden; }
.gfd .kc-strip .kd { position: absolute; width: 10px; max-width: none; margin-left: -5px; }
.gfd .kc .kr-bk .bv { font-size: 12px; }
.gfd .kc-pb { margin-top: 12px; }
.gfd .kc-bar { display: flex; gap: 2px; height: 10px; margin-top: 5px; border-radius: 3px; overflow: hidden; }
.gfd .kc-bar i { display: block; height: 100%; }
.gfd .kc-bar .kp50 { background: var(--d-p50); }
.gfd .kc-bar .kp40 { background: var(--d-p40); }
.gfd .kc-bar .kp30 { background: var(--d-p30); }
.gfd .kc-bar .kp20 { background: var(--d-p20); }
.gfd .kc-bar .pat { background: var(--d-nil); }
.gfd .kc-bar .kpx { background: repeating-linear-gradient(135deg, var(--d-nil) 0 2px, transparent 2px 4px); }
.gfd .kc-cap { margin-top: 4px; font-size: 10.5px; color: var(--d-tx); }
.gfd .kc-cap b { color: var(--d-hd); font-weight: 700; }
.gfd .kc-rz { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--d-bd); }
.gfd .kc-blocks { display: flex; flex-wrap: wrap; gap: 3px; }
.gfd .rb { display: block; width: 11px; height: 11px; border-radius: 3px; }
.gfd .rb.fg { background: var(--d-gr); }
.gfd .rb.td { background: #8e8b9c; }
.dark-layout .gfd .rb.td { background: #7a849f; }
.gfd .rb.mfg { box-shadow: inset 0 0 0 1.6px var(--d-neg); }
.gfd .rb.no { box-shadow: inset 0 0 0 1.5px var(--d-tx); }
.gfd .kc-rzt { font-size: 11px; color: var(--d-tx); white-space: nowrap; }
.gfd .kc-rzt b { color: var(--d-hd); }
.gfd .kc-drw { margin-top: 10px; border: 1px solid var(--d-bd); border-radius: 8px; }
.gfd .kc-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 .kc-drw > summary::-webkit-details-marker { display: none; }
.gfd .kc-drw > summary::after { content: "+"; font-size: 18px; line-height: 1; color: #149b48; font-weight: 700; }
.gfd .kc-drw[open] > summary::after { content: "\2212"; }
.gfd .kc-drw > summary .muted { font-weight: 500; font-size: .8rem; }
.gfd .kc-drw > summary .chev { display: none; }
.gfd .kc-drin { padding: 0 12px 10px; }
.gfd .kc-list { margin: 2px 0 10px; padding: 4px 10px; background: var(--d-panel); border-radius: 8px; }
.gfd .kl { display: grid; grid-template-columns: 36px minmax(44px, 1fr) 28px 50px 60px; gap: 5px; align-items: center; padding: 5px 0; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gfd .kl + .kl { border-top: 1px solid var(--d-bd); }
.gfd .kl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--d-hd); font-weight: 600; }
.gfd .kl .lw, .gfd .kl .lq { color: var(--d-tx); font-weight: 500; }
.gfd .kl .ly { text-align: right; }
.gfd .kl.kh span { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--d-tx); }
.gfd .res { justify-self: end; font-style: normal; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #fff; letter-spacing: .3px; }
.gfd .res.r-made { background: var(--d-gr); }
.gfd .res.r-miss, .gfd .res.r-blk { background: var(--d-neg); }
.gfd .kc-pat { font-size: 10.5px; color: var(--d-tx); padding: 6px 0 2px; }
.gfd .kr-more { display: flex; justify-content: center; margin: 14px 0 0; }

/* Full table drawer */
.gfd .kr-tbl { margin-top: 0; border: 1px solid var(--d-bd); border-radius: 8px; }
.gfd .kr-tbl > 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 .kr-tbl > summary::-webkit-details-marker { display: none; }
.gfd .kr-tbl > summary::after { content: "+"; font-size: 18px; line-height: 1; color: #149b48; font-weight: 700; }
.gfd .kr-tbl[open] > summary::after { content: "\2212"; }
.gfd .kr-tbl > summary .muted { font-weight: 500; font-size: .8rem; }
.gfd .kr-tbl > summary .chev { display: none; }
.gfd .kr-tbl > summary .kr-t { font-size: inherit; font-weight: inherit; color: inherit; }
.gfd .kr-tbl .tscroll { border-top: 1px solid var(--d-bd); }
.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 td.nm .rk { display: inline-block; width: 20px; color: #b9b9c3; font-weight: 600; font-size: 11px; }
.gfd .dtbl td.dim { color: var(--d-ft); }
.dark-layout .gfd .dtbl td.dim { color: var(--d-ft); }
.gfd .dtbl td.lo, .dark-layout .gfd .dtbl td.lo { color: var(--d-ft); font-style: italic; }

/* K Pts heat (quintiles) and its legend */
.gfd .dtbl td.strong.heat-1, .gfd .legend .lg.heat-1 { background: rgba(20,155,72,.10); }
.gfd .dtbl td.strong.heat-2, .gfd .legend .lg.heat-2 { background: rgba(20,155,72,.22); }
.gfd .dtbl td.strong.heat-3, .gfd .legend .lg.heat-3 { background: rgba(20,155,72,.38); }
.gfd .dtbl td.strong.heat-4, .gfd .legend .lg.heat-4 { background: rgba(20,155,72,.56); }
.gfd .dtbl td.strong.heat-5, .gfd .legend .lg.heat-5 { background: #0f7a39; }
.gfd .dtbl td.strong.heat-3, .gfd .dtbl td.strong.heat-4 { color: #0d3a1e; }
.gfd .dtbl td.strong.heat-5 { color: #fff; }
.dark-layout .gfd .dtbl td.strong.heat-3 { color: #d0d2d6; }
.dark-layout .gfd .dtbl td.strong.heat-4, .dark-layout .gfd .dtbl td.strong.heat-5 { color: #fff; }
.gfd .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 10.5px; color: #b9b9c3; margin-top: 10px; }
.gfd .legend .lg { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; box-shadow: inset 0 0 0 1px var(--d-gr28); }
.gfd .legend.kr-tbl-key { align-items: center; gap: 4px 6px; }
.gfd .kr-tbl-key .badge { display: inline-flex; align-items: center; font-size: .6875rem; }
.gfd .kr-tbl-key .badge > i { margin-right: 5px; }

/* Footnote */
.gfd .foot { font-size: 11px; color: #b9b9c3; margin-top: 10px; }

@media (min-width: 768px) {
    .gfd .kr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .gfd .kr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .gfd .kr-bar .psg-control-group { flex: 1 1 0%; }
    .gfd .kc-pv { font-size: 22px; }
    .gfd .kr-hist { height: 96px; }
    .gfd .tiles .xs-hide { display: none; }
    .gfd .dtbl th:first-child, .gfd .dtbl td:first-child { position: sticky; left: 0; z-index: 1; }
    .gfd .dtbl td:first-child { background: #fff; }
    .dark-layout .gfd .dtbl td:first-child { background: #283046; }
    .gfd .dtbl thead th:first-child { z-index: 3; background: #f3f2f7; }
    .dark-layout .gfd .dtbl thead 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; }
}

/* 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; }
}
