/* Food Fight chart chrome (ff-charts.js). Tokens come from site.css; nothing here names a colour.
   Flat and print-like: no frames, pills, shadows or motion. Radius on chrome is at most 2px. */

.ff-chart{font-family:var(--font-ui,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);font-size:13px;line-height:1.35;color:var(--ink);-webkit-tap-highlight-color:transparent}
.ff-plot{position:relative}
.ff-chart svg{display:block;overflow:visible}
.ff-measure{position:absolute;left:-9999px;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none}

/* ---------- text: ink tokens only, never a series colour ---------- */
.ff-chart svg text{font-family:var(--font-ui,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);font-size:12px;font-weight:400;letter-spacing:0;fill:var(--ink-3);font-variant-numeric:tabular-nums lining-nums;cursor:default;-webkit-user-select:none;user-select:none}
.ff-chart svg .ff-tick{font-size:12px;font-weight:400;fill:var(--ink-3)}
.ff-chart svg .ff-lab{font-size:13px;fill:var(--ink)}
.ff-chart svg .ff-sub{font-size:11px;fill:var(--ink-3)}
.ff-chart svg .ff-val{font-weight:500;fill:var(--ink)}
.ff-chart svg .ff-val.ff-quiet{font-weight:400;fill:var(--ink-2)}
.ff-chart svg .ff-axt,.ff-chart svg .ff-ann,.ff-chart svg .ff-ptlab{fill:var(--ink-2)}
.ff-chart svg .ff-head{font-weight:700;fill:var(--ink)}
.ff-chart svg .ff-strong .ff-lab{font-weight:600}
.ff-chart svg .ff-strong .ff-val{font-weight:700}
.ff-chart svg .ff-on{font-weight:600;fill:#fff;pointer-events:none}
.ff-chart svg .ff-on.ff-on-ink{fill:#0b0b0b}
.ff-chart svg .ff-halo{paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}

/* ---------- furniture: solid hairlines, one step off the surface ---------- */
.ff-gridline{stroke:var(--rule);stroke-width:1;shape-rendering:crispEdges}
.ff-base{stroke:var(--axis);stroke-width:1;shape-rendering:crispEdges}
.ff-rule{stroke:var(--ink-3);stroke-width:1;shape-rendering:crispEdges}
.ff-band{fill:var(--surface-2)}

/* ---------- marks ---------- */
.ff-whisker{fill:none;stroke:var(--ink);stroke-width:1.25}
.ff-connect{stroke:var(--rule);stroke-width:3;stroke-linecap:round}
.ff-dotm{stroke:var(--surface);stroke-width:2}
.ff-linep{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.ff-linep.ff-dim{stroke-width:1.25}
.ff-area{fill-opacity:.1}
.ff-pt{stroke:var(--surface);stroke-width:1}
.ff-bubble{fill-opacity:.78}
.ff-sl{stroke-width:1;stroke-linecap:round}
.ff-sl.ff-hot{stroke-width:2}
.ff-sl.ff-med{stroke-width:2.5;pointer-events:none}
.ff-link{stroke-opacity:.3}
.ff-wcat rect{pointer-events:all;stroke:none}

/* ---------- hover and focus ---------- */
.ff-hit,.ff-rowbg{fill:transparent;pointer-events:all}
.ff-row.is-active>.ff-rowbg{fill:var(--surface-2)}
.ff-colg.is-active>.ff-mark,.ff-mark.is-active{opacity:.75}
.ff-cell.is-active rect{stroke:var(--ink);stroke-width:1.5}
.ff-link.is-active{stroke-opacity:.6}
.ff-sl.is-active,.ff-sl.ff-over{stroke:var(--ink);stroke-opacity:1;stroke-width:2}
.ff-sl.ff-over,.ff-ring,.ff-cross{pointer-events:none}
.ff-ring{fill:none;stroke:var(--ink);stroke-width:1.5}
.ff-cross line{stroke:var(--ink-3);stroke-width:1;shape-rendering:crispEdges}
.ff-waffle:has(.is-active) .ff-wcat:not(.is-active){opacity:.35}
.ff-waffle .ff-wcat.is-active{opacity:1}
.ff-chart svg [tabindex]:focus{outline:none}
.ff-chart svg [tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ff-chart svg .ff-sl:focus-visible{outline:none}

/* ---------- legend: plain text with a small square or line key ---------- */
.ff-legend-slot:empty{display:none}
.ff-legend{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem 1.1rem;margin:0 0 .75rem;font-size:.8125rem;line-height:1.35;color:var(--ink-2)}
.ff-key{display:inline-flex;align-items:center;gap:.4em;white-space:nowrap}
.ff-sw{display:inline-block;flex:none;width:10px;height:10px}
.ff-sw-line{width:16px;height:2px}
.ff-sw-dot{width:7px;height:7px;border-radius:50%}
.ff-key-val{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.ff-legend-note{color:var(--ink-3)}
.ff-ramp{display:inline-flex}
.ff-ramp i{width:15px;height:10px}

/* ---------- tooltip: one solid box, text only ---------- */
.ff-tip{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;box-sizing:border-box;max-width:min(18rem,calc(100vw - 16px));padding:.4rem .6rem .45rem;background:var(--ink);color:var(--bg);border-radius:2px;font-family:var(--font-ui,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);font-size:.8125rem;line-height:1.4;font-variant-numeric:tabular-nums lining-nums}
.ff-tip[hidden]{display:none}
.ff-tip-title{font-weight:700}
.ff-tip-row{display:flex;align-items:baseline;gap:.5em}
.ff-tip-key{flex:none;width:12px;height:3px;align-self:center}
.ff-tip-name{flex:1 1 auto;opacity:.74}
.ff-tip-val{flex:none;font-weight:700;white-space:nowrap}
.ff-tip-note{opacity:.74;font-size:.75rem}

/* ---------- table view and the text link that swaps it in ---------- */
.ff-tools{display:flex;justify-content:flex-end;margin-top:.45rem}
.ff-link{font:inherit;font-size:.78rem;line-height:1.3;color:var(--ink-2);background:none;border:0;border-radius:0;margin:0;padding:.15rem 0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.16em;text-decoration-color:var(--axis)}
.ff-link:hover{color:var(--ink);text-decoration-color:currentColor}
@media (pointer:coarse){.ff-link{padding:.5rem 0}}
.ff-chart table.ff-table{border-collapse:separate;border-spacing:0}
.ff-chart .ff-table td.c,.ff-chart .ff-table th.c{text-align:center}
.ff-tv .table-wrap{max-height:24rem;overflow:auto}
.ff-tv thead th{position:sticky;top:0;background:var(--surface)}

/* ---------- league table (data-chart="table") ---------- */
.ff-league .ff-extra{display:none}
.ff-league.ff-open .ff-extra{display:table-row}
.ff-league .ff-rank{color:var(--ink-3)}
.ff-league .ff-bartd{min-width:7.5rem}
.ff-league td.ff-keyed{position:relative;padding-left:1.05em}
.ff-league td.ff-keyed .ff-sw-dot{position:absolute;left:0;top:calc(.5rem + .7em - 3.5px)}
.ff-cellbar{display:grid;grid-template-columns:calc(var(--vw,4ch) + .3ch) minmax(40px,1fr);align-items:center;column-gap:.6em}
.ff-cellbar-v{text-align:right;white-space:nowrap}
.ff-cellbar-t{display:block;height:8px}
.ff-cellbar-t i{display:block;height:100%;min-width:1px;border-radius:0 2px 2px 0}

/* ---------- small multiples ---------- */
.ff-multi{display:grid;row-gap:1.1rem}
.ff-panel{min-width:0}
.ff-panel-title{font-size:.8125rem;font-weight:700;line-height:1.3;color:var(--ink);margin:0 0 .3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- error ---------- */
.ff-error{margin:0;padding:.5rem 0;font-size:.8125rem;line-height:1.4;color:var(--ink-3)}

@media print{.ff-tools,.ff-tip{display:none!important}}
