/* ---- reports ----
   One hue throughout. Magnitude is carried by length, never by colour, so
   nothing here needs a second accent; red appears only when an allotment is
   actually overspent. Identity always sits in a text label beside the mark. */
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-100); margin-top: var(--sp-100); }
.rep-wide { grid-column: 1 / -1; }
.card-note { font-size: var(--fs-72); color: var(--text-faint); margin-top: var(--sp-80); }
.card-title .hint { float: right; font-weight: 600; letter-spacing: 0.04em; text-transform: none; opacity: 0.75; }

/* column chart, built from real boxes so the type never scales with a viewBox */
.cols { display: flex; align-items: flex-end; gap: var(--sp-2px); height: 9rem; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 0; border: 0; background: none; border-radius: 3px; }
.col-fill { display: block; width: 100%; background: var(--violet); border-radius: 4px 4px 0 0; min-height: 2px; transition: background 0.15s ease; }
.col:hover .col-fill, .col:focus-visible .col-fill { background: var(--violet-deep); }
.col:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.col-zero .col-fill { background: var(--line); }
.cols-x { display: flex; gap: var(--sp-2px); margin-top: var(--sp-40); }
/* only every nth column carries a label, so a number may spill into its empty
   neighbours rather than being clipped to the column width */
.cols-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: var(--fs-62); color: var(--text-faint); font-variant-numeric: tabular-nums; overflow: visible; white-space: nowrap; }

/* horizontal bars: label, track, value */
.hbs { display: grid; gap: var(--sp-55); }
.hb { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 3.6rem; gap: var(--sp-70); align-items: center; width: 100%; padding: 0.15rem 0; border: 0; background: none; text-align: left; border-radius: var(--radius-sm); }
.hb:hover .hb-fill, .hb:focus-visible .hb-fill { background: var(--violet-deep); }
.hb:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.hb-label { font-size: var(--fs-80); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { display: block; height: 0.6rem; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 999px; background: var(--violet); min-width: 2px; transition: background 0.15s ease; }
.hb-val { font-size: var(--fs-80); color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hb-val .pct { display: block; font-size: var(--fs-68); font-weight: 400; color: var(--text-faint); }

/* a small figure pair, for counts that are not worth a chart */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: 0.9rem 1.2rem; }
.fig-v { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.fig-k { font-size: var(--fs-68); letter-spacing: 0.1em; color: var(--text-faint); margin-top: var(--sp-15); }
.fig-none { font-size: var(--fs-82); color: var(--text-faint); font-style: italic; }

/* allotment meters */
.meters { display: grid; gap: 1.3rem; }
.meter-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-75); margin-bottom: var(--sp-50); }
.meter-k { font-size: var(--fs-80); color: var(--text-dim); font-weight: 500; }
.meter-n { font-size: var(--fs-78); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.meter-bar { height: 0.7rem; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--violet); }
.meter-over .meter-fill { background: var(--crit); }
.meter-foot { display: flex; align-items: center; gap: var(--sp-40); margin-top: var(--sp-45); font-size: var(--fs-76); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.meter-over .meter-foot { color: var(--crit); font-weight: 600; }

/* one shared tooltip, moved on pointer */
.tip {
  position: fixed; z-index: 60; pointer-events: none; opacity: 0;
  transform: translate(-50%, -125%); transition: opacity 0.12s ease;
  background: var(--bg-0); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.4rem 0.6rem; font-size: var(--fs-76); color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); white-space: nowrap;
}
.tip[data-on="1"] { opacity: 1; }
.tip b { font-weight: 600; }
.tip .tip-sub { display: block; color: var(--text-faint); font-size: var(--fs-70); }

@media (max-width: 62rem) { .rep-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 52rem) {
  .cols { height: 7rem; }
  .hb { grid-template-columns: 6.5rem minmax(0, 1fr) 3.2rem; gap: var(--sp-50); }
  .hb-label { font-size: var(--fs-76); }
  .cols-x span { font-size: 0.58rem; }
}
