/* Chart presentation shared with the local index dashboard. */
.fgc-head { display: flex; align-items: flex-start; gap: 26px; margin-bottom: 12px; }
.fgc-spacer { flex: 1; }
.fgc-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; }
.fgc-big { display: flex; align-items: baseline; gap: 9px; }
.fgc-bigv { font: 700 30px/1 var(--mono); font-variant-numeric: tabular-nums; }
.fgc-biglabel { font: 600 15px/1 var(--sans); }
.fgc-rangev { font: 600 22px/1.1 var(--mono); font-variant-numeric: tabular-nums;
  color: var(--text); }

.fgc-tabs { display: flex; gap: 2px; background: var(--panel-3);
  border: 1px solid var(--border); border-radius: 7px; padding: 2px; }
.fgc-tab { font: 600 11px var(--mono); color: var(--muted); background: none;
  border: 0; border-radius: 5px; padding: 5px 11px; cursor: pointer;
  letter-spacing: .04em; transition: background .12s, color .12s; }
.fgc-tab:hover { color: var(--text); }
.fgc-tab.on { background: var(--accent); color: #0a0d13; }
/* A window the series does not reach. Kept in place rather than removed so
   the control does not reflow as a basket's history lengthens. */
.fgc-tab.off { opacity: .35; cursor: default; }
.fgc-tab.off:hover { color: var(--muted); }

.fgc-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.fgc-lg { display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); }
.fgc-lg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.fgc-plot { width: 100%; position: relative; }

/* hover readout */
.fgc-hit { fill: transparent; cursor: crosshair; }
/* The HTML [hidden] attribute is not dependable on an SVG <g> — without this the
   crosshair renders at its default 0,0 down the left edge before first hover. */
.fgc-cross[hidden] { display: none; }
.fgc-crossline { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 3 3; }
.fgc-crossdot { stroke: var(--panel); stroke-width: 2; }
.fgc-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--panel-3); border: 1px solid var(--border-2);
  border-radius: 7px; padding: 7px 10px; min-width: 132px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.fgc-tipd { font: 10.5px var(--mono); color: var(--muted); margin-bottom: 3px; }
.fgc-tipv { display: flex; align-items: baseline; gap: 7px; }
.fgc-tipv span { font: 700 19px/1 var(--mono); font-variant-numeric: tabular-nums; }
.fgc-tipv em { font: 600 11px var(--sans); font-style: normal; }
/* where the reading sits on the 0-100 scale, so the band is spatial and not
   just a word — the tick is positioned by the value itself */
.fgc-tipbar {
  position: relative; height: 4px; border-radius: 2px; margin: 7px 0 4px;
  background: linear-gradient(to right,
    #d4483b 0%, #d4483b 25%, #cf7a37 25%, #cf7a37 40%,
    #b9a33c 40%, #b9a33c 60%, #6fae4a 60%, #6fae4a 75%,
    #1f9d76 75%, #1f9d76 100%);
  opacity: .85;
}
.fgc-tipbar i {
  position: absolute; top: -3px; width: 2px; height: 10px; border-radius: 1px;
  transform: translateX(-1px); box-shadow: 0 0 0 1.5px var(--panel-3);
}
.fgc-tipn { font: 10px var(--mono); color: var(--muted-2); }
/* The SVG carries its own pixel width/height from fgchart.js so that scaling
   stays 1:1 and markers stay round; CSS must not stretch it. */
.fgc-svg { display: block; max-width: 100%; }
.fgc-grid { stroke: var(--border); stroke-width: 1; }
.fgc-ytick, .fgc-xtick { font: 10px var(--mono); fill: var(--muted-2); }
.fgc-line { fill: none; stroke: #e8eefc; stroke-width: 2.1;
  stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.fgc-area { fill: #e8eefc; opacity: .05; stroke: none; }
.fgc-dot { stroke: var(--panel); stroke-width: 1; }
.fgc-now { stroke: var(--panel); stroke-width: 2; }

.fgc-evline { stroke: var(--muted-2); stroke-width: 1; }
.fgc-evdot { fill: var(--panel-3); stroke: var(--border-2); stroke-width: 1; }
/* approximate date — dashed so a guess never draws like a known one */
.fgc-evline.soft, .fgc-evdot.soft { stroke-dasharray: 2.5 2; stroke: var(--warn);
  opacity: .8; }
.fgc-evnum { font: 600 10px var(--mono); fill: var(--text); }
.fgc-ev { cursor: default; }

.fgc-events { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.fgc-events-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:5px 14px; margin-bottom:8px; }
.fgc-events-heading h3 { margin:0; font:600 11px var(--sans); color:var(--text); }
.fgc-events-heading>span { font-size:9.5px; color:var(--muted); }
.fgc-caps { list-style:none; display:grid; gap:6px 16px; margin:0; padding:0; grid-template-columns:repeat(4,minmax(0,1fr)); font-size:10px; color:var(--muted); }
.fgc-caps li { display:flex; gap:5px; align-items:baseline; min-width:0; line-height:1.35; }
.fgc-caps b { font:600 9px var(--mono); color:var(--text); min-width:12px; text-align:right; }
.fgc-capd { color:var(--muted-2); white-space:nowrap; font-size:9px; }
.fgc-caplabel { min-width:0; overflow-wrap:anywhere; }
@media(max-width:1000px){.fgc-caps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.fgc-caps{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px}.fgc-events-heading>span{line-height:1.35}}
@media(max-width:520px){.fgc-caps{grid-template-columns:minmax(0,1fr);gap:4px}}

.fgc-empty { display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; text-align: center;
  border: 1px dashed var(--border-2); border-radius: 8px; padding: 20px; }
.fgc-empty-h { font-size: 13px; color: var(--text); font-weight: 600; }
.fgc-empty-b { font-size: 11.5px; color: var(--muted); max-width: 62ch;
  line-height: 1.6; }

@media (max-width: 820px) {
  .fgc-head { flex-wrap: wrap; gap: 16px; }
  .fgc-tabs { width: 100%; justify-content: space-between; }
}
/* --------------------------- the chart ---------------------------------- */
.fgc-k { font-family: var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.fgc-bigv { letter-spacing: -.025em; }
.fgc-rangev { color: var(--ink); letter-spacing: -.01em; }
.fgc-tab {
  background: transparent; border: none; color: var(--ink-2);
  border-radius: 1px; font-size: 10.5px; letter-spacing: .06em;
  /* 24px minimum hit height — the tabs measured 22px, the one interactive
     element on the page under the touch-target floor (2026-08-20 audit). */
  padding-top: 6px; padding-bottom: 6px;
}
.fgc-tabs {
  background: var(--face-inset); border: 1px solid var(--border);
  border-radius: var(--chamfer); padding: 2px;
  box-shadow: inset 0 1px 1px rgba(174,181,187,.2);
}
.fgc-tab.on {
  background: var(--metal-hi); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(174,181,187,.35);
}
.fgc-lg { color: var(--ink-2); }
.fgc-grid { stroke: #E8E1CE; }
.fgc-ytick, .fgc-xtick { fill: var(--ink-3); font-family: var(--mono); }
.fgc-line { stroke: var(--ink); stroke-width: 1.5; }
.fgc-crossline { stroke: var(--metal-st); }
.fgc-tip {
  background: rgba(252,249,239,.97); border: 1px solid var(--metal-st);
  border-radius: var(--chamfer); box-shadow: var(--contact); color: var(--ink);
}
.fgc-tipd { color: var(--ink-2); font-family: var(--mono); }
.fgc-tipn { color: var(--ink-3); }
.fgc-tipbar { background: var(--metal-2); }
.fgc-evdot { fill: var(--metal-hi); stroke: var(--metal-st); }
.fgc-evnum { fill: var(--ink-2); }
.fgc-evline { stroke: var(--metal-st); }
.fgc-caps { color: var(--ink-2); }
.fgc-capd { color: var(--ink-3); }
.fgc-empty-h { color: var(--ink); }
.fgc-empty-b { color: var(--ink-2); }
.fgc-unsourced { color: var(--ink-3); }



.fgc-bay-shade{fill:none;stroke:#C6BDA5;stroke-width:1}.fgc-bay-lip{fill:none;stroke:#fff;stroke-width:1;stroke-opacity:.85}.fgc-grid{stroke:#D3C8AD;stroke-width:1;stroke-opacity:.55}.fgc-gridlip{stroke:#fff;stroke-width:1;stroke-opacity:.5}.fgc-area{fill:var(--ink);opacity:.035}.fgc-nowhalo{fill:none;stroke:var(--signal);stroke-width:1.5;opacity:.5}.fgc-livepoint{fill:var(--metal-hi);stroke-width:2.2px}.fgc-livelink{fill:none;stroke-width:1.6px;stroke-dasharray:3 3}.fgc-tip[hidden]{display:none}.fg-live{font-size:10px;letter-spacing:.03em}.fg-live-dot{display:inline-block;width:5px;height:5px;border:1px solid currentColor;border-radius:50%;margin-right:5px}
